milkv-duo / duo-buildroot-sdk

Milk-V Duo Official buildroot SDK
411 stars 174 forks source link

SD Card flashing fails and root partition unable to mount with 'milkv-duo256m-sd-v1.1.2-2024-0801.img #137

Open BehicKlncky opened 2 months ago

BehicKlncky commented 2 months ago

While flashing the 'milkv-duo256m-sd-v1.1.2-2024-0801.img' file to an SD card using Etcher, the process repeatedly fails during validation. After the flashing, the SD card’s root partition is also unable to mount, suggesting it may be corrupt. Could this be an issue with the image file, or is there another reason for the corruption and validation failure? Any advice on how to fix this?

Edit: I tried using an 8GB SD card, and the image flashed successfully without issues. However, I don’t have any other 8GB cards available. When I tried with a 64GB SD card, the validation step still failed, and the root partition was unable to mount, possibly corrupt. Is there a specific size limitation or another reason why the 64GB card isn’t working?

Plaque-fcc commented 3 days ago

Dear friend, this problem quite unlike to happen if otherwise your TF (microSD) card works fine. I haven't used Balena Etcher (which I personally consider bloatware, but it isn't currently relevant) — instead I put firmware images for my Milk-V Duo boards (and other boards who boot off of TF cards) with OG dd (or dcfldd, if you prefer) tool, and it simply writes anything what you got in the image file onto your block device, which is your TF removable media. Thus, if your image is bigger than your block device, it won't succeed. Else, it will write the contents of the file, and there will remain zero or more space in the end.

Therefore, you'd better check your 64GB card whether it is fake, or failing in some other way.