主题 : 从SD卡启动Android的问题,启动.img格式失败 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 8729
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
贡献值: 0 点
综合积分: 18 分
注册时间: 2009-09-04
最后登录: 2018-07-15
楼主  发表于: 2011-01-12 19:57

 从SD卡启动Android的问题,启动.img格式失败

我根据刷机手册上修改FriendlyARM.imi
只改了两个地方:
Action=run
Android-RootFs-RunImage = Android/rootfs_android.img
如下:

#This line cannot be removed. by FriendlyARM(www.arm9.net)

CheckOneButton=No
Action=run
OS= android

VerifyNandWrite=No

StatusType = Beeper| LED

################### Android ####################
Android-BootLoader = Android/u-boot_nand-ram128.bin
Android-Kernel = Android/azImage_n43
Android-CommandLine = root=ubi0:FriendlyARM-root ubi.mtd=2 rootfstype=ubifs init=/linuxrc console=ttySAC0,115200
Android-RootFs-InstallImage = Android/rootfs_android.ubi
Android-RootFs-RunImage = Android/rootfs_android.img

Images文件夹也拷贝到sd卡上了

启动时看到cmd_line:
Kernel command line: root=ubi0:FriendlyARM-root ubi.mtd=2 rootfstype=ubifs init
=/linuxrc console=ttySAC0,115200 run_fs_image=/images/Android/rootfs_android.img

结果启动失败,最后几句是:
Freeing init memory: 924K
mount: mounting /dev/loop0 on /r failed: Invalid argument
mount: mounting /sdcard on /r/sdcard failed: No such file or directory
1Wire touchscreen OK
/init: line 102: can't open /r/dev/console: no such file
Kernel panic - not syncing: Attempted to kill init!

怎么会挂载/sdcard? 我只是拷贝了images目录,没有看见要创建过sdcard目录的,请版主指点。
按默认的Android/rootfs_android.ext3是可以启来到的,但是我希望是可以启动不同的文件系统,还有什么地方要改的吗?

谢谢啦
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
贡献值: 27 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2011-01-12 21:21
SD直接启动要使用ext3格式才行
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 8729
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
贡献值: 0 点
综合积分: 18 分
注册时间: 2009-09-04
最后登录: 2018-07-15
2楼  发表于: 2011-01-13 08:29
#This line cannot be removed. by FriendlyARM(www.arm9.net)

CheckOneButton=No
Action=install
OS= linux

VerifyNandWrite=No

明白了。 还有个问题:
我用SD卡重新安装linux yaffs系统,linux目录也拷贝到里面了,上电,什么现象都没有,在终端什么也没显示,这是怎么回事呢? 我用的是8G sdhc 卡
StatusType = Beeper| LED

#################### Linux #####################
Linux-BootLoader = Linux/u-boot_nand-ram128.bin
Linux-Kernel = Linux/zImage_n43
Linux-CommandLine = root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200
Linux-RootFs-InstallImage = linux/rootfs_qtopia_qt4.img
Linux-RootFs-RunImage = linux/rootfs_qtopia_qt4.ext3
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
贡献值: 27 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
3楼  发表于: 2011-01-13 08:57
根目录下有images目录吗?
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 8729
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
贡献值: 0 点
综合积分: 18 分
注册时间: 2009-09-04
最后登录: 2018-07-15
4楼  发表于: 2011-01-13 12:19

那个8G的SD HC卡没有反应, KingMAX的
我换了一个4G   Transcend 的SD HC能够安装文件系统了。