Hi,
I've been using LSDK-21.08 to flash partitions to an SD card.
After flashing, I insert the SD card into the LS1046ARDB reader. I can successfully boot into these from u-boot by using "cpld reset sd"
At this point, I try some basic operations. Some examples would be echoing text to a file, reading back that file using cat. I also configured 01-network-manager-all.yaml to enable a default network configuration.
After this, I call "sudo reboot now".
After rebooting, write operations will complete without returning any error. But these writes will not be reflected in the SD card storage.
From my hours of digging around on help forums for SD cards, this usually indicates the card has triggered some internal lock. This causes it to be put into 'permanent read-only' for the sake of protecting data.
I've bricked 3 SD cards at this point while trying to find out what was causing it.
I'm wondering if this is a known issue, or something I can fix such that I can use new SD cards to boot the LS1046ARDB without breaking them.
Thanks in advance,
Matt.
Please try LSDK 21.08 pre-built images to check whether there is problem with your built rootfs filesystem.
$ wget https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img
$ wget https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz
$ wget https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz
$ flex-installer -b boot_arm64_lts_5.10.tgz -r rootfs_lsdk2108_ubuntu_main_arm64.tgz -f firmware_ls1046ardb_sdboot.img -d /dev/sdx
Note: /dev/sdx is SD device name on the host.
Thanks for the quick response. Is there any difference between your method and using,
$ flex-installer -i auto -m ls1046ardb -d /dev/sdX
as per the LSDK Quick Start Guide for LS1046ARDB. (Obviously replacing sdX with the correct device).
This was how I initially set up the SD card.
If it's the same, I don't want to risk compromising a fresh SD card.
Cheers.