| 
 
贡献0 
飞刀0 FD
注册时间2010-10-25
在线时间0 小时积分1 
 
 扫一扫,手机访问本帖  | 
 
| 向2440里面烧写裸板程序,led灯轮流点亮的那个,使用AXD做为编译环境。没有用它作为load image和debug工具,我暂时还没有JTAG. 源码参见“开发板配套教程”里面的2.8.2 使用ADS创建工程中的例子,init.s,main.c
 几个参数都详细对照过了,比如ROBASE=0X32000000 IMAGE ENTRY=0X32000000等。
 dnw的usb下载地址为0x30800000
 
 编译跑马灯程序后生成image文件 2440led.bin。
 
 启动板子,选择menu下的[1]download to flash,进入子菜单:
 选择 3  offset .......[my app]
 再按照要求的usb port->transmit 选择要烧写的bin文件2440led.bin
 
 界面提示下载成功。进入selectmenu
 
 然后我选择3 boot my app
 打印如下,最后启动不起来,进入了linux kernel
 +------------------------------------------------------------+
 | [0] Download & Run                                         |
 | [1] Download to flash                                      |
 | [2] Download From UART                                     |
 | [3] Boot My Application                                    |
 | [4] Boot Linux                                             |
 | [5] Boot Wince                                             |
 | [6] Erase Flash Partition                                  |
 | [7] Config parameters                                      |
 +------------------------------------------------------------+
 NAND ID is 0xecda
 
 Please select which region to write : Esc to abort
 0 : offset 0x00000000, size 0x00020000 [boot]
 1 : offset 0x00020000, size 0x00060000 [bootParam]
 2 : offset 0x00080000, size 0x00100000 [pic]
 3 : offset 0x00180000, size 0x00380000 [MyApp]
 4 : offset 0x00500000, size 0x00300000 [kernel]
 5 : offset 0x00800000, size 0x03c00000 [fs_yaffs]
 6 : offset 0x04400000, size 0x00080000 [eboot]
 7 : offset 0x04480000, size 0x03b80000 [wince]
 
 Now download and write nand flash part [ MyApp ]
 press [USB Port-->transmit] to choose the file
 
 Now, Downloading [ADDRESS:30800000h,TOTAL:478]
 RECEIVED FILE SIZE:     478
 ( 72.3KB/S,0.0S)
 Now, Checksum calculation
 Download O.K.
 
 Now write nand flash page 0x300 from ram address 0x30800000, filesize = 478
 .Program nand flash partition success
 
 +------------------------------------------------------------+
 |                     Select Menu                            |
 +------------------------------------------------------------+
 | [0] Download & Run                                         |
 | [1] Download to flash                                      |
 | [2] Download From UART                                     |
 | [3] Boot My Application                                    |
 | [4] Boot Linux                                             |
 | [5] Boot Wince                                             |
 | [6] Erase Flash Partition                                  |
 | [7] Config parameters                                      |
 +------------------------------------------------------------+
 NAND ID is 0xecda
 Memory Test(30200000h-33ff0000h):O.K.
 Load Application...
 run 0x32000000...
 NAND ID is 0xecda
 Set boot params = root=/dev/mtdblock3 init=/linuxrc load_ramdisk=0 console=ttySAC0,115200 mem=65536K devfs=mount display=sam320
 Load Kernel...
 Uncompressing Linux................................................................................................................. done, booting the kernel.
 Linux version 2.6.12-h1940 (root@localhost.localdomain) (gcc version 3.4.1) #428 Fri Jan 29 16:49:06 CST 2010
 
 CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
 
 CPU0: D VIVT write-back cache
 
 CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
 
 CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
 
 Machine: SMDK2410
 
 ATAG_INITRD is deprecated; please update your bootloader.
 
 Memory policy: ECC disabled, Data cache writeback
 
 CPU S3C2440A (id 0x32440001)
 
 S3C2440: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
 
 S3C2410 Clocks, (c) 2004 Simtec Electronics
 
 Built 1 zonelists
 
 Kernel command line: root=/dev/mtdblock3 init=/linuxrc load_ramdisk=0 console=ttySAC0,115200 mem=65536K devfs=mount display=sam320
 
 irq: clearing pending ext status 000d0000
 
 irq: clearing subpending status 00000093
 
 irq: clearing subpending status 00000092
 
 PID hash table entries: 512 (order: 9, 8192 bytes)
 
 timer tcon=00500d00, tcnt a2c1, tcfg 0000020f,00000030, usec 00001eb8
 
 Console: colour dummy device 80x30
 
 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
 
 Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
 
 Memory: 64MB = 64MB total
 
 Memory: 60800KB available (2936K code, 920K data, 112K init)
 
 Mount-cache hash table entries: 512
 
 CPU: Testing write buffer coherency: ok
 
 NET: Registered protocol family 16
 
 S3C2440: Initialising architecture
 
 S3C2440: IRQ Support
 
 S3C2440: Clock Support, UPLL 96.000 MHz
 
 SCSI subsystem initialized
 
 usbcore: registered new driver usbfs
 
 usbcore: registered new driver hub
 
 Bluetooth: Core ver 2.7
 
 NET: Registered protocol family 31
 
 Bluetooth: HCI device and connection manager initialized
 
 Bluetooth: HCI socket layer initialized
 
 S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
 
 DMA channel 0 at c4800000, irq 33
 
 DMA channel 1 at c4800040, irq 34
 
 DMA channel 2 at c4800080, irq 35
 
 DMA channel 3 at c48000c0, irq 36
 
 NetWinder Floating Point Emulator V0.97 (double precision)
 
 devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
 
 devfs: boot_options: 0x1
 
 NTFS driver 2.1.22 [Flags: R/W].
 
 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
 
 yaffs Nov  4 2008 17:54:45 Installing.
 
 Initializing Cryptographic API
 
 --- s3c2410fb init ---!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
 pxafb_probe start!!!!!!!!!!!!!!!!!!!!!!!!!!
 
 VA=0xc4880000, PA=0x305c0000, size=0x00027000
 
 Console: switching to colour frame buffer device 40x15
 
 success to register framebuffer device: 0!!!
 
 enable_irq(32) unbalanced from c001729c
 
 done probe!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
 fb1: Virtual frame buffer device, using 1024K of video memory
 
 in s3c2410ts init()
 
 success get major number!!!!!!
 
 s3c2410-ts device driver MAJOR:253
 
 success to get adc clock source!
 
 base_addr = 0xc4860000
 
 line 543 passed!
 
 register s3c2410-ts driver success, return code is 0
 
 S3C2410 RTC, (c) 2004 Simtec Electronics
 
 我是新手,目前以我有限的知识感到难以定位,求高手解答
 附件是2440_led的AXD工程源码等。
 我的邮箱albert4278@gmail.com
 | 
 |