[meta-freescale] Problem with root fs when booting from memory.

Juha Vuorivirta jvp.vuorivirta at gmail.com
Mon May 20 22:51:19 PDT 2013


Hi!

I have used tftpboot to load uImage from tftp server and after that tried
to run image from memory using bootm command, like guide
uboot_mx6x.pdf says.
Kernel loads fine but root fs could not be found.
System is halted here:

List of all partitions:
1f00            1024 mtdblock0  (driver?)
1f01            3072 mtdblock1  (driver?)
b300         7757824 mmcblk0  driver: mmcblk
b310            2048 mmcblk0boot1  (driver?)
b308            2048 mmcblk0boot0  (driver?)
b318         7761920 mmcblk1  driver: mmcblk
  b319            8192 mmcblk1p1 00000000-0000-0000-0000-000000000000
  b31a          864256 mmcblk1p2 00000000-0000-0000-0000-000000000000
No filesystem could mount root, tried:  jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)

U-boot evn variables are following:
baudrate=115200
boot_fdt=try
bootargs=console=ttymxc0,115200 root=/dev/nfs
nfsroot=10.170.3.64:/export/rootfs
ip=dhcp
bootcmd=mmc dev ${mmcdev};if mmc rescan ${mmcdev}; then if run
loadbootscript; then run bootscript; else if run loaduimage; then run
mmcboot; else run netboot; fi; fi; else run netboot; fi
bootdelay=1
bootfile=uImage
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc0
ethact=FEC
ethaddr=00:04:9f:02:70:9c
ethprime=FEC
fdt_addr=0x11000000
fdt_file=imx6q-sabresd.dtb
fdt_high=0xffffffff
fileaddr=12000000
filesize=3A99E4
initrd_high=0xffffffff
ip_dyn=yes
ipaddr=10.170.3.22
loadaddr=0x12000000
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes
|| test ${boot_fdt} = try; then if run loadfdt; then bootm ${loadaddr} -
${fdt_addr}; else if test ${boot_fdt} = try; then bootm; else echo WARN:
Cannot load the DT; fi; fi; else bootm; fi;
mmcdev=0
mmcpart=1
mmcroot=/dev/mmcblk1p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs
ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes;
then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd}
${uimage}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if
${get_cmd} ${fdt_addr} ${fdt_file}; then bootm ${loadaddr} - ${fdt_addr};
else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the
DT; fi; fi; else bootm; fi;
netmask=255.255.248.0
script=boot.scr
serverip=10.170.3.64
stderr=serial
stdin=serial
stdout=serial
uimage=uImage
Environment size: 1916/8188 bytes

Filesystem is in SD card. I have used .sdcard file with dd command to
create SD card. With NFS boot, system is halted in same place.

I understand that problem is kernel cannot find filesystem from SD card.
Any advice how to make rootfs available? I am little bit confused
because SD card works, but bootm does not, even using same bootloader and
uImage...

br,

jv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130521/fb700a58/attachment.html>


More information about the meta-freescale mailing list