Mount mmc root file system on beagleXm board

Hello,

I am using BeagleXm RevC board. I am using x-loader and uboot got from
Arago. (TI psp release 04.02.00.07). I am facing few problems.

1) How to save env since there is no Nand?

2) I could not figure out why I can not use uSD card as my root file
system. I set bootcmd and bootargs like following:
setenv bootcmd 'mmc init; fatload mmc 1 0x81000000 uImage; bootm
0x81000000'
setenv bootargs 'console=ttyO2,115200n8 root=/dev/mmcblk0p2 mem=128M
rootwait'

When the board boot up, it stops when trying to mount root fs. Here is
log.

[ 4.578765] mmc0: new high speed SDHC card at address 1234
[ 4.587707] mmcblk0: mmc0:1234 SA04G 3.67 GiB (ro)
[ 4.599792] mmcblk0: p1 p2
[ 4.705047] VFS: Cannot open root device "mmcblk0p2" or unknown-
block(179,2)
[ 4.712493] Please append a correct "root=" boot option; here are
the available partitions:
[ 4.721343] b300 3858432 mmcblk0 driver: mmcblk
[ 4.726928] b301 120456 mmcblk0p1
00000000-0000-0000-0000-000000000mmcblk0p1
[ 4.735321] b302 3445942 mmcblk0p2
00000000-0000-0000-0000-000000000mmcblk0p2
[ 4.743713] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(179,2)
[ 4.752593] [<c004a348>] (unwind_backtrace+0x0/0xec) from
[<c0418abc>] (panic+0x54/0x180)
[ 4.761169] [<c0418abc>] (panic+0x54/0x180) from [<c0009168>]
(mount_block_root+0x1d0/0x210)
[ 4.769989] [<c0009168>] (mount_block_root+0x1d0/0x210) from
[<c0009248>] (mount_root+0xa0/0xbc)
[ 4.779174] [<c0009248>] (mount_root+0xa0/0xbc) from [<c00093c8>]
(prepare_namespace+0x164/0x1bc)
[ 4.788482] [<c00093c8>] (prepare_namespace+0x164/0x1bc) from
[<c0008708>] (kernel_init+0x10c/0x14c)
[ 4.798034] [<c0008708>] (kernel_init+0x10c/0x14c) from
[<c0045590>] (kernel_thread_exit+0x0/0x8)

Here is the content on SD card.
$ ls /media/boot_/
MLO U-BOOT.BIN uEnv.txt UIMAGE

$ ls /media/Narcissus-rootfs
arago-psp-image-glibc-ipk-2011.02-arago-armv7.rootfs.tar.gz dev
lib mnt sbin tmp
bin etc
linuxrc opt srv usr
boot home
media proc sys var

3) Is it possible to use NFS as rootfs?

Thanks,
yan

hi,

Hello,

I am using BeagleXm RevC board. I am using x-loader and uboot got from
Arago. (TI psp release 04.02.00.07). I am facing few problems.

  1. How to save env since there is no Nand?

  2. I could not figure out why I can not use uSD card as my root file
    system. I set bootcmd and bootargs like following:
    setenv bootcmd ‘mmc init; fatload mmc 1 0x81000000 uImage; bootm
    0x81000000’
    setenv bootargs ‘console=ttyO2,115200n8 root=/dev/mmcblk0p2 mem=128M
    rootwait’

I think here u have to use root=uuid (of partion to be mounted) if u don’t want to use initrd.
Please let me know if it works…

cheers,
Yadi.

Hello,

I am using BeagleXm RevC board. I am using x-loader and uboot got from
Arago. (TI psp release 04.02.00.07). I am facing few problems.

  1. How to save env since there is no Nand?

The default boot environment typically makes an attempt to read either a mkimage produced script (boot.scr) or a text file with environment variable settings (uenv.txt), depending on the version of u-boot you are using. If it is the current TI PSP release, it is probably boot.scr. The mainline currently uses uenv.txt.

  1. I could not figure out why I can not use uSD card as my root file
    system. I set bootcmd and bootargs like following:
    setenv bootcmd ‘mmc init; fatload mmc 1 0x81000000 uImage; bootm
    0x81000000’
    setenv bootargs ‘console=ttyO2,115200n8 root=/dev/mmcblk0p2 mem=128M
    rootwait’

When the board boot up, it stops when trying to mount root fs. Here is
log.

[ 4.578765] mmc0: new high speed SDHC card at address 1234
[ 4.587707] mmcblk0: mmc0:1234 SA04G 3.67 GiB (ro)
[ 4.599792] mmcblk0: p1 p2
[ 4.705047] VFS: Cannot open root device “mmcblk0p2” or unknown-
block(179,2)
[ 4.712493] Please append a correct “root=” boot option; here are
the available partitions:
[ 4.721343] b300 3858432 mmcblk0 driver: mmcblk
[ 4.726928] b301 120456 mmcblk0p1
00000000-0000-0000-0000-000000000mmcblk0p1
[ 4.735321] b302 3445942 mmcblk0p2
00000000-0000-0000-0000-000000000mmcblk0p2
[ 4.743713] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(179,2)
[ 4.752593] [] (unwind_backtrace+0x0/0xec) from
[] (panic+0x54/0x180)
[ 4.761169] [] (panic+0x54/0x180) from []
(mount_block_root+0x1d0/0x210)
[ 4.769989] [] (mount_block_root+0x1d0/0x210) from
[] (mount_root+0xa0/0xbc)
[ 4.779174] [] (mount_root+0xa0/0xbc) from []
(prepare_namespace+0x164/0x1bc)
[ 4.788482] [] (prepare_namespace+0x164/0x1bc) from
[] (kernel_init+0x10c/0x14c)
[ 4.798034] [] (kernel_init+0x10c/0x14c) from
[] (kernel_thread_exit+0x0/0x8)

Here is the content on SD card.
$ ls /media/boot_/
MLO U-BOOT.BIN uEnv.txt UIMAGE

Ah, looks like you have a uenv.txt-based u-boot. Are you sure this is a PSP release? Perhaps you should copy the arago-devel mailing list.

$ ls /media/Narcissus-rootfs
arago-psp-image-glibc-ipk-2011.02-arago-armv7.rootfs.tar.gz dev
lib mnt sbin tmp
bin etc
linuxrc opt srv usr
boot home
media proc sys var

What is the format of the second partition?

  1. Is it possible to use NFS as rootfs?

Yes. Just be sure you have the necessary ethernet driver compiled into the kernel.

hi,

Hello,

I am using BeagleXm RevC board. I am using x-loader and uboot got from
Arago. (TI psp release 04.02.00.07). I am facing few problems.

  1. How to save env since there is no Nand?

  2. I could not figure out why I can not use uSD card as my root file
    system. I set bootcmd and bootargs like following:
    setenv bootcmd ‘mmc init; fatload mmc 1 0x81000000 uImage; bootm
    0x81000000’
    setenv bootargs ‘console=ttyO2,115200n8 root=/dev/mmcblk0p2 mem=128M
    rootwait’

I think here u have to use root=uuid (of partion to be mounted) if u don’t want to use initrd.
Please let me know if it works…

I doubt your suggestion. Is that something new? Specifying the partition this way has worked in the past.

UUID based mounting pretty much requires an initramfs, especially if you want to use it for your rootfs. The can't magically run blkid on its own :slight_smile: