Page 2 of 2

Re: how to do clone nand flas luckfox pico max

Posted: 2024-02-01 6:15
by cttelegram
hi thanks for the reply.
I'm a linux user and I would like to create an sdcard with ubuntu from the command line.
I saw among the downloads but the files are single boot.img rootfs.img .. I would like to use balena etcher.
I tried first with mk-update_pack.sh to put the files together and then etcher flashes.. but the sdcard doesn't start.. maybe I'm doing something wrong?
Thank you for your patience and help.

Re: how to do clone nand flas luckfox pico max

Posted: 2024-02-01 6:56
by Eng38
If you wish to flash the firmware to a TF card, you will need to use SocToolKit software in a Windows environment for the flashing process.
https://wiki.luckfox.com/Luckfox-Pico/L ... urn-Image/
企业微信截图_17067705607234.png

Re: how to do clone nand flas luckfox pico max

Posted: 2024-02-07 18:59
by cttelegram
Thanks

Re: how to do clone nand flas luckfox pico max

Posted: 2024-08-12 19:25
by kornpow
Eng38 wrote: 2024-02-01 1:13 Hello,

There's no need to erase the SPI NAND FLASH memory. During the boot sequence, the system will first prioritize detecting the TF card and then proceed to check the SPI NAND FLASH.
I just wanted to mention that the docs don't seem to match what you are saying here @Eng38. Unless the wording is confusing the docs indicate to me that you MUST erase the flash before the SD card will work. This is an important distinction because sometimes it is very difficult to tell whether or not you are booting from SD or flash.
erase-flash.png

Re: how to do clone nand flas luckfox pico max

Posted: 2024-08-13 1:13
by Crocodile
kornpow wrote: 2024-08-12 19:25
Eng38 wrote: 2024-02-01 1:13 Hello,

There's no need to erase the SPI NAND FLASH memory. During the boot sequence, the system will first prioritize detecting the TF card and then proceed to check the SPI NAND FLASH.
I just wanted to mention that the docs don't seem to match what you are saying here @Eng38. Unless the wording is confusing the docs indicate to me that you MUST erase the flash before the SD card will work. This is an important distinction because sometimes it is very difficult to tell whether or not you are booting from SD or flash.
erase-flash.png
If there is a mirror image in the SPI NAND and an SD card with a mirror image is inserted, the SPL in both the SPI NAND and the SD card will be the same, but the boot ROM will prioritize using the SPL from the SPI NAND. However, within the SPL, the storage media priority is higher for the SD card than for the SPI NAND. This results in the behavior where the system will attempt to use the image from the SD card first. But since the SPL from the SPI NAND is used, some initialization steps for the SD card might be skipped, leading to certain SD cards failing to be recognized, and ultimately the system falls back to using the image from the SPI NAND.

To ensure that the image being used is the one you actually intend to use, it is recommended to erase the SPI NAND before using the image from the SD card, as mentioned in the wiki.

The issue has already been preliminarily resolved and will be fixed in the next SDK update.