你好!
我们用的开发板是自己画的,ARM芯片是TI的ARM9芯片AM1808。
在一开始的时候,我们的嵌入式linux是可以跑起来的,后来被我在U-Boot状态下,改了一些环境配置,以后就成这种现象了。我改的环境配置如下:
1、输入setenv bootcmd 'nand read.e 0xc0700000 0x200000 0x250000;bootm'
2、输入setenv bootargs 'mem=128M console=ttyS2,115200n8 root=/dev/mtdblock4 rw rootfstype=jffs2 ip=192.168.1.3:192.168.1.105:192.168.1.1:255.255.255.0::eth0:off eth=00:40:01:2B:64:60'
3、输入saveenv
正确的环境配置如下:
1、输入setenv bootcmd 'nand read.e 0xc0700000 0x200000 0x400000;bootm'
2、输入setenv bootargs 'mem=64M console=ttyS2,115200n8 root=/dev/mtdblock4 rw rootfstype=jffs2 ip=192.168.1.3:192.168.1.105:192.168.1.1:255.255.255.0::eth0:off eth=00:40:01:2B:64:60'
3、输入saveenv
以后不管怎么改环境配置,擦除nand,冲烧系统,烧Uboot,都不管用,但是可以正常烧写。
以下的启动信息就是我们板子目前的状况。它一直停在“Uncompressing Linux… done, booting the kernel.”不动。
OMAP-L138 initialization passed!
Booting TI User Boot Loader
UBL Version: 1.65
UBL Flashtype: NAND
Starting NAND Copy…
Valid magicnum, 0x55424CBB, found in block 0x00000006.
DONE
Jumping to entry point at 0xC1080000.
U-Boot 2009.11 (11鏈?02 2011 – 17:59:40)
I2C: ready
DRAM: 128 MB
NAND: 1024 MiB
MMC: davinci: 0
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
nand_read_bbt: Bad block at 0x00001a340000
nand_read_bbt: Bad block at 0x0000206e0000
nand_read_bbt: Bad block at 0x000022560000
nand_read_bbt: Bad block at 0x000028f80000
nand_read_bbt: Bad block at 0x00002b5c0000
nand_read_bbt: Bad block at 0x00002bf80000
nand_read_bbt: Bad block at 0x00002c700000
nand_read_bbt: Bad block at 0x000030e60000
nand_read_bbt: Bad block at 0x0000331e0000
nand_read_bbt: Bad block at 0x0000336a0000
nand_read_bbt: Bad block at 0x00003c020000
nand_read_bbt: Bad block at 0x00003d640000
nand_read_bbt: Bad block at 0x00003ebc0000
nand_read_bbt: Bad block at 0x00003f980000
In: serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
DDR Clock : 150000000 Hz
Net: Ethernet PHY: GENERIC @ 0x00
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x200000, size 0x400000
4194304 bytes read: OK
## Booting kernel from Legacy Image at c0700000 …
Image Name: Linux-2.6.33-rc4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2169300 Bytes = 2.1 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum … OK
Loading Kernel Image … OK
OK
Starting kernel …
Uncompressing Linux… done, booting the kernel.
noaming:
您好,首先根据你的描述,建议你重新将整个NAND芯片全部擦除一遍,然后再烧写UBOOT、内核,然后检查UBOOT的环境变量,重新启动板子看看效果。其次,你可以打开内核调试选项(在内核配置选项中查找),这样可以打印出错的信息,方便对问题进行定位,有什么情况,再讨论。
Yaoming Qin:
一个是查下你烧写和读取nand的ecc设置是否一致,另外,你看看你设置的tty和系统里配置的tty是否一致
noaming:
回复 Yaoming Qin:
如果确定你的内核没有问题的话,出现这种情,我建议你手动启动内核,首先将内核下载到内存某一处地址处如0x80000000,直接boot如下:
bootm 0x80000000
如果内核还不能运行,就说明内核是有问题的。
zhenhua zhang:
回复 noaming:
不是,是时钟管脚没给电