ikarso has quit [Quit: Connection closed for inactivity]
___nick___ has quit [Ping timeout: 272 seconds]
___nick___ has joined #u-boot
jerwood has joined #u-boot
mmu_man has joined #u-boot
<jerwood>
Hi all—I have a question about accessing eMMC GPP partitions from u-boot. Is it possible to read from them using commands like `ext4load`?
ikarso has joined #u-boot
monstr has quit [Remote host closed the connection]
<marex>
jerwood: load mmc 0.1 or some such iirc (instead of : use . to access hw parts)
<jerwood>
marex Thanks for the pointer! I'll try that out.
<jerwood>
Hmmmm. Haven't managed to find my partition so far. I do see that "." is looked at in `blk_get_device_by_str()`, but I don't know the code well enough to intuit the syntax. I'm testing by trying to list the contents of mmc 0, GPP3. I've put a MSDOS partition table into GPP3 (/dev/mmcblk0gp2 in Linux). I also have a MBR partition in mmc 0 UDA
<jerwood>
(/dev/mmcblk0 in linux). I can list that partition with "ext4ls mmc 0:2".
<jerwood>
Forty-Bot Thanks! That did the trick—not sure how I hadn't found that page. 🤦♂️ I hadn't tried going up that high in partition numbers. Now getting:
<jerwood>
ext4ls mmc 0.6:1
<jerwood>
<DIR> 1024 .
<jerwood>
<DIR> 1024 ..
<jerwood>
<DIR> 12288 lost+found
<jerwood>
33 hello_world
<Forty-Bot>
iirc you can use `part list` to list partitions
<Forty-Bot>
oh, but that's a pretty large hardware partition
<Forty-Bot>
are they listed by mmc info?
<Forty-Bot>
I don't recall
<jerwood>
Yeah, the hwpartitions show up in mmc info:
<jerwood>
ZynqMP> mmc info
<jerwood>
Device: mmc@ff160000
<jerwood>
Manufacturer ID: 13
<jerwood>
OEM: 4e
<jerwood>
Name: G1M15L
<jerwood>
Bus Speed: 187499998
<jerwood>
Mode: HS200 (200MHz)
<jerwood>
Rd Block Len: 512
<jerwood>
MMC version 5.1
<jerwood>
High Capacity: Yes
<jerwood>
Capacity: 26.5 GiB
<jerwood>
Bus Width: 4-bit
<jerwood>
Erase Group Size: 512 KiB
<jerwood>
HC WP Group Size: 8 MiB
<jerwood>
User Capacity: 26.5 GiB ENH WRREL
<jerwood>
User Enhanced Start: 0 Bytes
<jerwood>
User Enhanced Size: 256 MiB
<jerwood>
But I couldn't figure out how to access them with the various tools, until now. Thanks!
<marex>
try mmc part or part list, as Forty-Bot suggested
<Forty-Bot>
marex: I think the issue was that his mmc has some general-purpose hardware partitions configured
<marex>
do you have partition table in the hw partition or only one filesystem across that entire hw part block device ?
<marex>
Forty-Bot: well that is 0.1 / 0.2 / ... 0.1:1 is first (soft) partition in BOOT hw partition I think
<jerwood>
Both `mmc part` and `part list` default to showing the logical partitions in the mmc0 user data area.
<marex>
jerwood: how did you create the filesystem in that hardware partition ? mkfs.ext* /dev/mmcblkXgpY ?
<marex>
or some mkfs.ext* /dev/mmcblkXgpYpZ ?
<jerwood>
I used `parted` to make a MSDOS partition table, and then I used mkfs.ext3 on /dev/mmcblk0gp2p1.
<jerwood>
er, mkfs.ext4
pgreco_ has quit [Ping timeout: 252 seconds]
<marex>
then I think you need to use 'ls mmc 0.5:1'
<jerwood>
According to https://docs.u-boot.org/en/latest/usage/partitions.html, "hardware partition 3 is the RPMB partition, and further partitions are general-purpose user-created partitions". So, GPP3 would be at 6. In linux, the GPP's start at 0, instead of 1. So, `mmc 0.6:1` is equivalent to `/dev/mmcblk0gp2p1`.
<jerwood>
Much thanks to marex and Forty-Bot for helping me figure this out!
sugoi has joined #u-boot
Stat_headcrabed has joined #u-boot
goliath has joined #u-boot
enok has joined #u-boot
Stat_headcrabed has quit [Quit: Stat_headcrabed]
ikarso has quit [Quit: Connection closed for inactivity]
pgreco has joined #u-boot
eballetbo has quit [Quit: Connection closed for inactivity]
fatal has quit [Ping timeout: 260 seconds]
goliath has quit [Quit: SIGSEGV]
fatal has joined #u-boot
enok has quit [Ping timeout: 246 seconds]
enok has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
___nick___ has quit [Ping timeout: 246 seconds]
hanetzer has quit [Ping timeout: 276 seconds]
hanetzer has joined #u-boot
prabhakalad has quit [Ping timeout: 252 seconds]
jaganteki has quit [Quit: Client closed]
enok has quit [Ping timeout: 260 seconds]
mmu_man has joined #u-boot
slobodan has joined #u-boot
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #u-boot
ikarso has joined #u-boot
slobodan_ has joined #u-boot
slobodan has quit [Ping timeout: 245 seconds]
slobodan_ is now known as slobodan
alperak has quit [Quit: Connection closed for inactivity]
redbrain has quit [Read error: Connection reset by peer]