- 论坛徽章:
- 0
|
本帖最后由 skykingf 于 2011-04-13 10:17 编辑
之前从网上下载了个u-boot.2010.03,可以引导linux内核和initramfs系统。
最近自己亲自移植了u-boot.2010.09,用nand write把内核写到nand里面后reset有时会出现引导不成功的问题
uboot解压缩完内核后就死在
Uncompressing
Linux.............................................................
............................................ done, booting the kernel.
之后就没有任何提示了
nand 分区
static struct mtd_partition smdk_default_nand_part[] = {
[0] = {
.name = "U-Boot",
.size = 0x60000,
.offset = 0,
},
[1] = {
.name = "U-Boot Parameter",
.offset = 0x60000,
.size = 0x20000,
},
[2] = {
.name = "Linux Kernel",
.offset = 0x80000,
.size = 0x1300000,
},
[3] = {
.name = "Data",
.offset = 0x1380000,
.size = 0x08000000-0x1380000, //0x6C80000
}
};
uboot 的环境变量
bootargs=noinitrd init=/linuxrc root=/dev/nfs nfsroot=192.168.2.103:/home/wangfei/devlop/rootfs console=ttySAC0,115200 mem=64M ip=192.168.2.109 netmask=255.255.255.0
bootcmd=nboot 30008000 0 80000;bootm 30008000
bootdelay=3
baudrate=115200
ethaddr=08:00:3e:26:0a:5b
ipaddr=192.168.2.109
serverip=192.168.2.103
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
ethact=dm9000
百思不得其解。
这两个uboot环境变量都是设置成一样的。
从有时用nand write把内核写到nand里面后reset能成功 可判断不是mach-ID不匹配的问题。
问题出在哪里呢?请各位高手给个线索。 |
|