luckfox-pico icon indicating copy to clipboard operation
luckfox-pico copied to clipboard

sd card support?

Open antgame11 opened this issue 1 year ago • 4 comments

how do I flash this to an sd card? I'm using linux

antgame11 avatar Sep 10 '24 01:09 antgame11

I also have no idea the SocToolKit keeps crashing

joshuasv avatar Dec 13 '24 15:12 joshuasv

The sysupgrade image can't be flashed to SD card, but with a few tweaks I was able to include the .img files created from the build process into the resulting artifact to use for flashing SD.

al-heisner avatar Dec 31 '24 19:12 al-heisner

Could you share more info on that? Thanks

joshuasv avatar Jan 07 '25 11:01 joshuasv

in main.yml, output all contents of the output directory instead of just the sysupgrade image used by upgrade-tool. Then the zip file produced should then contain the image files that SocToolKit wants / uses. From there, it's even possible to write to SD on Linux without SocToolKit using something like blkenvflash if you are able to work out what needs to be in the .env.txt (I grep this info out of env.img)

      path: output/*

blkenvflash: https://gist.github.com/Spiritdude/da36d2cf064e49094c870e0a8b9f972f

al-heisner avatar Jan 07 '25 14:01 al-heisner