[meta-freescale] : boot 32be from sdcard

Zheng, Ruoqin zhengrq.fnst at cn.fujitsu.com
Wed Apr 5 19:17:21 PDT 2017


32be_rootfs boot from sdcard (ls1046)

I used source code provided by nxp QorIQ-Linux-SDK-v2.0-SOURCE.iso + SDK-V2.0-1701 to build the kernel and rootfs , then it can’t boot from sdcard.


1.      I put kernel(32be) and rootfs(32be) in SD card , and boot it follow the SDK2.0, it was fail to mount the rootfs(while 64be kernel is normal),and here is part of log:

My boot option is :
=> setenv bootcmd "ext2load mmc 0 a0000000 kernel.itb && bootm a0000000"
=> setenv bootargs "root=/dev/mmcblk0p1 rw earlycon=uart8250,0x21c0500 console=ttyS0,115200"
=> boot

mmcblk0: mmc0:0007 SL32G 29.0 GiB
 mcblk0: p1
VFS: Mounted root (ext2 filesystem) on device 1:0.
VFS: Cannot open root device "mmcblk0p1" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100          262144 ram0  (driver?)
0101          262144 ram1  (driver?)
0102          262144 ram2  (driver?)
0103          262144 ram3  (driver?)
0104          262144 ram4  (driver?)
0105          262144 ram5  (driver?)
0106          262144 ram6  (driver?)
0107          262144 ram7  (driver?)
1f00          524288 mtdblock0  (driver?)
b300        30375936 mmcblk0  driver: mmcblk
  b301        30371936 mmcblk0p1 00000000-01
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.30-rt34+ #2
Hardware name: Freescale LAYERSCAPE

The entire log is in atachments, do anyone have any idea about this problem?


2.  By the way, I tried to boot the kernel with command “bootm a0000000:kernel at 1 - a0000000:fdt at 1”
And the log show as below, you can see that mmcblk0 device is missed, do anyone know the reason?

=> setenv bootcmd "ext2load mmc 0 a0000000 kernel.itb && bootm a0000000"
=> setenv bootargs "root=/dev/mmcblk0p1 rw earlycon=uart8250,0x21c0500 console=ttyS0,115200"
=> bootm a0000000:kernel at 1 - a0000000:fdt at 1

ALSA device list:
  No soundcards found.
VFS: Cannot open root device "mmcblk0p1" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100          262144 ram0  (driver?)
0101          262144 ram1  (driver?)
0102          262144 ram2  (driver?)
0103          262144 ram3  (driver?)
0104          262144 ram4  (driver?)
0105          262144 ram5  (driver?)
0106          262144 ram6  (driver?)
0107          262144 ram7  (driver?)
1f00          524288 mtdblock0  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.30-rt34+ #2
Hardware name: Freescale LAYERSCAPE


Zheng Ruoqin
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
ADDR.: No.6 Wenzhu Road, Software Avenue,
       Nanjing, 210012, China
MAIL : zhengrq.fnst at cn.fujistu.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20170406/b1b9f403/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 32be_kernel+32be_rootfs_boot from sdcard.txt
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20170406/b1b9f403/attachment.txt>


More information about the meta-freescale mailing list