在线时间0 小时
UID2097807
注册时间2014-5-28
NXP金币0
该用户从未签到
新手上路

- 积分
- 19
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2014-7-8 12:38:54
|
显示全部楼层
RE:做好了cpio.gz之后怎么用呢?
我换了一个办法,把uImage和initramfs_data.cpio.gz都考到根目录下,然后设置uboot环境变量
mmc dev 1
ext2ls mmc1 1:1
嗯,能找到这两个文件
ext2load mmc1 1:1 12000000 /uImage
嗯,加载没问题
setenv bootargs $bootargs console=ttymxc1,15200 root=/dev/ram rw initrd=20000000,CD07199
bootm 12000000 20000000
然后他说:
booting kernel from Legacy Image at 12000000...
...
...
verifying checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
这是不是说一定要ramdisk.gz? 不是说2.6内核直接可以用initramfs_data.cpio.gz么?
我还尝试把initramfs_data.cpio.gz编译到内核里,结果启动到一半就没动静了。
## Booting kernel from Legacy Image at 12000000 ...
Image Name: Linux-3.0.35-g9363010
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 215850608 Bytes = 205.9 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
EHCI failed to shut down host controller.
Loading Kernel Image ...oting the kernel.
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
哪位大侠路过给指点一下吧
 |
|