meta-riscv icon indicating copy to clipboard operation
meta-riscv copied to clipboard

beaglev-ahead: sdcard mount error

Open RP38 opened this issue 1 year ago • 1 comments

When I try to mount an sdcard in r/w, i get this error:

[  831.328665] I/O error, dev mmcblk1, sector 8194 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0

[  831.337729] Buffer I/O error on dev mmcblk1p5, logical block 0, lost sync page write

[  831.345940] EXT4-fs (mmcblk1p5): I/O error while writing superblock

[  831.352354] EXT4-fs (mmcblk1p5): mount failed

[  831.357216] Aborting journal on device mmcblk1p5-8.

[  831.363109] I/O error, dev mmcblk1, sector 270600 op 0x1:(WRITE) flags 0x9800 phys_seg 1 prio class 0

[  831.372448] Buffer I/O error on dev mmcblk1p5, logical block 32801, lost sync page write

[  831.380924] JBD2: I/O error when updating journal superblock for mmcblk1p5-8 

No errors when mounting in read-only. I tried multiples sd cards, recreate gpt partition table, new partitions, but I always get this error. Might be due to missing drivers or latest kernel (6.14).

RP38 avatar Apr 22 '25 12:04 RP38

after further tests, it seems that some cards work. In my case, an sdcard ultra sandisk 8GB worked. Unfortunately, it seems we cannot boot from this sdcard with current u-boot.

u-boot is unable to interact with it :

C910 Light# mmc dev 1
Card did not respond to voltage select!

However a standard kingston 8GB worked in both u-boot and linux. (HC SDC4/8GB)

So if you use mainline kernel, I recommend to use a very standard and well known sdcard and it should work OOTB.

RP38 avatar Jun 02 '25 08:06 RP38