Is there any way to mount an SD card in a BeagleV Fire running `trixie`?

I have a BeagleV Fire running Debian trixie. I put an ext4 formatted 64 GB SD card in the slot but lsblk doesn’t show it.

znmeb in  beaglev-fire in ~
❯ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk0      179:0    0 14.6G  0 disk
├─mmcblk0p1  179:1    0  684K  0 part
├─mmcblk0p2  179:2    0  128M  0 part /boot/firmware
└─mmcblk0p3  179:3    0 14.5G  0 part /
mmcblk0boot0 179:256  0    4M  1 disk
mmcblk0boot1 179:512  0    4M  1 disk

I’ve attached the journalctl log for the bootup.

journalctl.zip (14.2 KB)

Un-fix the first of the two fixes that went into:
image
and you should be good to go…

Thanks! Which repo is that file in? I think I found it in https://openbeagle.org/beagleboard/BeagleBoard-DeviceTrees/-/tree/v6.1.x-Beagle but I have no clue how to translate that into a reproducible test case for opening an issue. All I’m doing is creating an image using the code in https://git.beagleboard.org/beaglev-fire/BeagleV-Fire-ubuntu.

Those scripts download a bunch of files but I haven’t really looked at them. I just got a build container up and running this afternoon so if I can find the file I can patch it somewhere in the build process. See Container for building BeagleV Ahead and Fire images for a bit about the container.

Well, I managed to figure out how to patch the device tree:

  echo "Patching sd_card enable"
  diff $HOME/Scripts/mpfs-beaglev-fire.dts $HOME/Projects/BeagleV-Fire-ubuntu/device-tree/src/riscv/micr
ochip/mpfs-beaglev-fire.dts \
    || true
  cp $HOME/Scripts/mpfs-beaglev-fire.dts $HOME/Projects/BeagleV-Fire-ubuntu/device-tree/src/riscv/microc
hip/mpfs-beaglev-fire.dts

- - - - -

Patching sd_card enable
133c133
<               output_high;
---
>               output-high;

but it still does not see a formatted SD card.

znmeb@beaglev-fire:~$ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk0      179:0    0 14.6G  0 disk
|-mmcblk0p1  179:1    0  684K  0 part
|-mmcblk0p2  179:2    0  128M  0 part /boot/firmware
`-mmcblk0p3  179:3    0 14.5G  0 part /
mmcblk0boot0 179:256  0    4M  1 disk
mmcblk0boot1 179:512  0    4M  1 disk
znmeb@beaglev-fire:~$

So … plan B: download a recent trixie image from https://git.beagleboard.org/beaglev-fire/BeagleV-Fire-ubuntu/-/artifacts and if it doesn’t see the SD card, open an issue.

I couldn’t find a trixie image but there is an Ubuntu 24.04 LTS image and it can’t see a formatted microSD card either. Issue is https://openbeagle.org/beaglev-fire/BeagleV-Fire-ubuntu/-/issues/10

Yes, I see your predicament.

@RobertCNelson I am having trouble removing the sd_card_cs fix we spoke about a while back.
(Is there any way to mount an SD card in a BeagleV Fire running `trixie`? - #2 by lranders)

The BVF won’t get past mounting the rootfs partition without the hog:

[    2.519119] mpfs-generic-service mpfs-generic-service: Registered MPFS generic service - FOR DEVELOPMENT ONLY, DO NOT USE IN PRODUCTION
[    2.532515] mpfs-sys-controller syscontroller: Registered MPFS system controller
[    2.723661] clk: Disabling unused clocks
[    2.730277] /dev/root: Can't open blockdev
[    2.734489] VFS: Cannot open root device "/dev/mmcblk0p3" or unknown-block(179,3): error -6
[    2.742887] Please append a correct "root=" boot option; here are the available partitions:
[    2.751293] b300         3887104 mmcblk0
[    2.751311]  driver: mmcblk
[    2.758165]   b301         3882991 mmcblk0p1 91a545c5-01
[    2.758182]

Could this be a 6.6 regression?
It makes no difference wether an SD card is in the receptacle or not…

I have tried both

fdt rm /soc/gpio@20120000/sd-card-cs-hog

and

fdt rm /soc/gpio@20120000/sd-card-cs-hog output-high
fdt set /soc/gpio@20120000/sd-card-cs-hog output_high

to do a quick poke; no difference.

Thanks for looking into this. If it matters, my BeagleV Ahead does work with a microSD card and trixie - I haven’t tried noble because I’d rather have trixie at this point in it’s test cycle.