Recently I’ve purchased [Libre Computer AML-S905X-CC ], and 32gb libre computer emmc drive.
I wrote the latest libre Raspbian to sdcard, copied Raspbian, Ubuntu and Debian 12 images for my device to sdcard and booted it. Then I login to os running on sdcard and used dd command to flush the emmc.
I’ve tried all tree images . Flush was successful, no errors, but now I’m not able to boot from emmc with none of mentioned images.
Emmc is mounted correctly and I can see it from os booted from sdcard, but boot from emmc is not working. It freeze, not even open display and red and blue lights are on, just as with booting from sdcard, but the screen is not opening and the the os is not booting.
You know that you’re wiping the image with this command right? If you ran this after the previous command, you are wiping off the first 128MB of the image that you just wrote.
Please read and and follow the instructions carefully.
First I’ve cleabed out the emmc card :
dd if=/dev/zero of=/dev/mmcblk0 count=128 status=progress
128+0 records in
128+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.00890138 s, 7.4 MB/s
dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=128 status=progress
128+0 records in
128+0 records out
134217728 bytes (134 MB, 128 MiB) copied, 2.39457 s, 56.1 MB/s
reboot
dd if=debian-12-base-arm64+aml-s905x-cc.img bs=1M of=/dev/mmcblk0 status=progress
1865416704 bytes (1.9 GB, 1.7 GiB) copied, 24 s, 77.6 MB/s
1792+0 records in
1792+0 records out
1879048192 bytes (1.9 GB, 1.8 GiB) copied, 28.96 s, 64.9 MB/s
reboot
The same , OS is not booting .
Yes of course I’ve extracted image using xz utility.
You have a damaged pin on your eMMC module. Take a picture of both the board connector and the module connector. Your previous image of the module connector is not very clear.
Since you are booting Raspbian from uSD, what happens when you use the Raspberry Flasher GUI app?
After writing, it should look like this:
2024-04-10 00:31:41 root@lepotato:~# lsblk -o +label,fstype,uuid
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS LABEL FSTYPE UUID
mmcblk0 179:0 0 116.5G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /media/pi/bootfs bootfs vfat 35DE-9C73
└─mmcblk0p2 179:2 0 116.2G 0 part /media/pi/rootfs rootfs btrfs e57d1fe0-6df4-4b8c-90fe-0ae3245d2fd6
mmcblk0boot0 179:32 0 4M 1 disk
mmcblk0boot1 179:64 0 4M 1 disk
mmcblk1 179:96 0 119.3G 0 disk
├─mmcblk1p1 179:97 0 512M 0 part /boot/efi bootfs vfat 1E1E-DAB6
└─mmcblk1p2 179:98 0 118.7G 0 part / rootfs btrfs 283cfb79-a50f-43ab-bc96-42f866f8d541
zram0 251:0 0 3.8G 0 disk [SWAP]
2024-04-10 00:31:46 root@lepotato:~#
Be sure to echo "boot_targets=usb mmc1 mmc0" > /media/pi/bootfs/boot.ini before rebooting so you can always boot from uSD in the future without removing the eMMC.