How to access GP partitions from uboot (2015.04)
Hi!
I have created 4 hw GP partitions on the eMMC (GP1,2,3,4) and formatted with ext4 fs. I have to read the contents of these partitions from the uboot but i am not finding them in the mmc part command.
I can see them in the mmc info...
U-Boot# mmc info
Device: OMAP SD/MMC
Manufacturer ID: fe
OEM: 14e
Name: MMC16
Tran Speed: 52000000
Rd Block Len: 512
MMC version 4.4.1
High Capacity: Yes
Capacity: 13.5 GiB
Bus Width: 8-bit
Erase Group Size: 8 MiB
HC WP Group Size: 16 MiB
User Capacity: 13.5 GiB
Boot Capacity: 16 MiB ENH
RPMB Capacity: 128 KiB ENH
GP1 Capacity: 256 MiB
GP2 Capacity: 400 MiB
GP3 Capacity: 256 MiB
GP4 Capacity: 256 MiB
But when i do mmc part i only see the user data partition information..i dont see the gp partition information
U-Boot# mmc part
Partition Map for MMC device 1 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type 1 16 31280 00000000-01 0e Boot 2 31296 28181952 00000000-02 83
Do i have to enable any thing in the config to see them?
Thanks,
Harsha
--
View this message in context: http://u-boot.10912.n7.nabble.com/How-to-access-GP-partitions-from-uboot-2015-04-tp212394.html
Sent from the U-Boot mailing list archive at Nabble.com.
I think i figured out how to access the GP partitions on the new new uboot. Solution:
1)We can only have access to one partition at a time from uboot.
2) GP partitions have to be partitioned again to be from kernel (/dev/mmcblk0gp0p1,/dev/mmcblk0gp1p1,/dev/mmcblk0gp2p1,/dev/mmcblk0gp3p1)
3) in uboot, by default mmc part will display the user data partition information.
4) To access GP1 partition issue the following commands..
mmc rescan
mmc partconf 1 0 0x7 0x4 (1 = emmc, 0= bootack, 0x7= user data
part, 0x4 = Access to GP)
mmc part
-----------Now mmc part will display the gp1p1 data. similarly for GP2
mmc rescan
mmc partconf 1 0 0x7 0x5 (1 = emmc, 0= bootack, 0x7= user data
part, 0x4 = Access to GP)
mmc part
Thanks,
Harsha
--
View this message in context: http://u-boot.10912.n7.nabble.com/How-to-access-GP-partitions-from-uboot-2015-04-tp212394p212587.html
Sent from the U-Boot mailing list archive at Nabble.com.
HI HARSHA,
I need Your help.In our project we are using internel emmc of 32Gb.
Can u please provide how u created the GP partitions...when we are reading or writing commands in mmc we are getting partitions are not created and unsupported format..kindly let us know how you fornmatted for ext4 file sysytem...
Waiting for your reply as early as possible..
Thanks
--
View this message in context: http://u-boot.10912.n7.nabble.com/How-to-access-GP-partitions-from-uboot-2015-04-tp212394p244363.html
Sent from the U-Boot mailing list archive at Nabble.com.