SD card not working properly

I still have problems with the newest image and a 128GB SD card: https://dl.khadas.com/products/vim4/firmware/ubuntu/generic/vim4-ubuntu-22.04-gnome-linux-5.4-fenix-1.5-230425.img.xz

I noticed that sometimes after replugging power a third time the VIM4 seems to boot?

I am using a self-made header with 12V, 2.2A to the VIN to power the khadas.

U-Boot output:

[    4.067269@3]  Btrfs loaded, crc32c=crc32c-generic
[    4.331516@0]  meson-gx-mmc fe08a000.sd: 25 [0x4c0000], CRC[0x0100]
[    4.342731@0]  meson-gx-mmc fe08a000.sd: 25 [0x4c0000], CRC[0x0100]
[    4.355340@0]  meson-gx-mmc fe08a000.sd: 25 [0x80008], CRC[0x0100]
[    4.356733@0]  meson-gx-mmc fe08a000.sd: 25 [0x80008], CRC[0x0100]
[    4.357747@0]  meson-gx-mmc fe08a000.sd: 25 [0x80008], CRC[0x0100]
[    4.358397@0]  meson-gx-mmc fe08a000.sd: 25 [0x80008], CRC[0x0100]
[    4.359123@0]  meson-gx-mmc fe08a000.sd: 25 [0x80008], CRC[0x0100]
[    4.956113@0]  random: crng init done
[    4.972570@4]  r: b_s = e, b_sz = 32, f: b_s = 0, b_sz = 1a
[    4.972621@4]  the final result: sel = 1, rx = 27
[    4.973806@0]  meson-gx-mmc fe08a000.sd: 25 [0x80008], CRC[0x0100]
[    4.974039@1]  blk_update_request: I/O error, dev mmcblk1, sector 524296 op 0x1:(WRITE) flags 0x800 phys_seg 8 prio class 0
[    4.975331@1]  Buffer I/O error on dev mmcblk1p2, logical block 1, lost async page write
[    4.976347@1]  Buffer I/O error on dev mmcblk1p2, logical block 2, lost async page write
[    4.977345@1]  Buffer I/O error on dev mmcblk1p2, logical block 3, lost async page write
[    4.978353@1]  Buffer I/O error on dev mmcblk1p2, logical block 4, lost async page write
[    4.979360@1]  Buffer I/O error on dev mmcblk1p2, logical block 5, lost async page write
[    4.980368@1]  Buffer I/O error on dev mmcblk1p2, logical block 6, lost async page write
[    4.981375@1]  Buffer I/O error on dev mmcblk1p2, logical block 7, lost async page write
[    4.982382@1]  Buffer I/O error on dev mmcblk1p2, logical block 8, lost async page write
[    5.033279@0]  meson-gx-mmc fe08a000.sd: 25 [0x4c0000], CRC[0x0100]
[    5.043888@0]  meson-gx-mmc fe08a000.sd: 25 [0x4c0000], CRC[0x0100]
[    5.054467@0]  meson-gx-mmc fe08a000.sd: 25 [0x4c0000], CRC[0x0100]
[    5.065037@0]  meson-gx-mmc fe08a000.sd: 25 [0x4c0000], CRC[0x0100]

What‘’s the model of your sd card?

SanDisk Extreme Pro 128GB, A2.

I don’t quite understand - I have multiple khadas and the following happens:

  • One Khadas VIM4 bootes fine with the above mentioned 128GB SD card (this SD card had the test image you uploaded here once), the second Khadas VIM4 only boots after multiple power on-off cycles with this SD Card
  • The second khadas also has problems with a 32GB SD Card, similar behaviour. I/O Buffer error or EXT4 mount failed.
  • Just inserted the 32GB SD Card into a third khadas and it was booting up just fine.

So I am really losing my mind here… I have quite a custom setup but really confused that the behaviour is so unpredictable.