[U-Boot] fatload from eMMC general purpose partition

Hi,
using an eMMC I want to load uImage and dtb from a general purpose partition (since these can be configured as pSLC independent of the user data area). From the kernel I can format and access the GP-partition, in my case mkfs.vfat. However, U-Boots fatload/extload on the GP-partition do not work or maybe I just give the wrong parameters. Is this implemented at all, any hints?
Regards
Andreas

Hi Andreas,
Hi,
using an eMMC I want to load uImage and dtb from a general purpose partition (since these can be configured as pSLC independent of the user data area). From the kernel I can format and access the GP-partition, in my case mkfs.vfat. However, U-Boots fatload/extload on the GP-partition do not work or maybe I just give the wrong parameters. Is this implemented at all, any hints?
As far as I remember the FAT related directories are working correctly with some our boards.
Could you share exact output from your console?
Regards
Andreas

Hi,
Could you share exact output from your console?
below follows some linux console output from writing some file to a gp- and a user data partion (foo/bar). After that trying to see that file from U-Boot...:
[root]# ls /dev/mmcblk3* /dev/mmcblk3 /dev/mmcblk3boot1 /dev/mmcblk3gp0p1 /dev/mmcblk3p1 /dev/mmcblk3rpmb /dev/mmcblk3boot0 /dev/mmcblk3gp0 /dev/mmcblk3gp1
Rest of User Data Area mount /dev/mmcblk3p1 /media/usb0/ touch /media/usb0/foo umount /media/usb0/
General purpose patition [root]# mount /dev/mmcblk3gp0p1 /media/usb0/ [root]# touch /media/usb0/bar [root]# umount /media/usb0/
Start u-boot
Rest of User Data Area U-Boot =>fatls mmc 2:1 / 0 foo
1 file(s), 0 dir(s)
U-Boot =>fatls mmc 2:2 / ** Invalid partition 2 ** U-Boot =>fatls mmc 2:3 / ** Invalid partition 3 ** U-Boot =>fatls mmc 2:4 / ** Invalid partition 4 ** U-Boot =>fatls mmc 2:5 / ** Invalid partition 5 ** U-Boot =>fatls mmc 2:6 / ** Invalid partition 6 ** U-Boot =>fatls mmc 2:7 / ** Invalid partition 7 ** U-Boot =>fatls mmc 2:8 / ** Invalid partition 8 ** U-Boot =>fatls mmc 2:9 / ** Invalid partition 9 ** U-Boot =>fatls mmc 2:a / ** Invalid partition 10 ** U-Boot =>fatls mmc 2:b / ** Invalid partition 11 ** U-Boot =>fatls mmc 2:c / ** Invalid partition 12 ** U-Boot =>fatls mmc 2:d / ** Invalid partition 13 ** U-Boot =>fatls mmc 2:e / ** Invalid partition 14 ** U-Boot =>fatls mmc 2:f / ** Invalid partition 15 **
Where to find bar ?
regards, Andreas

Hi Andreas,
I am facing a similar problem not able to access the GP partitions from uboot. Did you have any luck accessing these partitions??
Thanks, Harsha
-- View this message in context: http://u-boot.10912.n7.nabble.com/fatload-from-eMMC-general-purpose-partitio... Sent from the U-Boot mailing list archive at Nabble.com.
participants (3)
-
Andreas Naumann
-
harsha kiran
-
Lukasz Majewski