Here is the new Luckfox Lyra Pi board, just arrived
Nice, what will you use it for?
Does anybody had success accessing the Picocalc SD-Card in the u-boot? I can access it from Linux without an issue, but I cannot configure the u-boot to see it. Iāve already updated the spi_mmc.c driver to use SPI_DM and I can see the MMC over SPI device in u-boot. But it always says it cannot find the card (error -110).
Thanks! for this awesome hack.
One question, I have a Luckfox Lyra board, and I was trying to upload the image using the SD card, but I have the problem that I only have Linux. I already flashed a fresh firmware using the official SDK steps with Linux, and it is working from the nand flash, and I already have ADB (shell). But I want to use these Drive images with your drivers for the Picocalc, but I donāt know, maybe Iām wrong and my āerase allā step without Windows is wrong. I have the next output:
avp:luckfox-sdkȹ sudo ./rkflash.sh erase
Using /home/avp/pico/luckfox/luckfox-sdk/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/config.ini
Loading loader...
Start to erase flash...
Download Boot Start
Download Boot Success
Wait For Maskrom Start
Wait For Maskrom Success
Test Device Start
Test Device Success
Get FlashInfo Start
Get FlashInfo Success
Prepare IDB Start
Prepare IDB Success
Erase IDB Start
Erase IDB Fail
Also I burned the image using dd:
sudo dd if=picocalc-luckfox-lyra-update-sd-2025-04-19-sdcard-slot.img of=/dev/sdc bs=4M
but nothing..
Anyone knows how to flash the SD card image and erase the Luckfox Lyra on Linux?
Unfortunately, The Luckfox images are somewhat proprietary, and I have found no way to do this without using the Luckfox software under Windows. They can be converted to a standard image that can then be burned using dd, but I have no idea how to do it, and I have not had much time in the last several weeks to work it out.
Ubuntu OS running with a mipi display
Thanks! Iām relative new with the Picocalc and I also was trying to have something like your Docker repo. Your repo for now is my best finding, I tested some others.. Just a few minutes ago I did a little Pull Request on your repo and I was trying to use your development in my Debian 11, and also Iām looking the way to use the Luckfox Lyra without Windows, but I have the problem that I canāt erase the flash for boot it completely with the SD card, for this reason I was trying to use you repo for build a NAND Flash image.
Is possible that you will open the issue section in your repo? I have one, but I love Docker too, I could help. I have a similar repo like your repo, for build a complete images for Linux on ESP32S3 using it.
Thanks in advance.
Thanks for the PR, i got that merged. I had already wiped the built-in flash in my lyra before I got this working, so I wasnāt too concerned with wiping the flash. I just got a second lyra though, so I should be able to test this now. I went ahead and opened the Issues section, so feel free to bury me with complaints.
Seems that it is possible. I tested these images, with the Linux tool dd,
and these are working thanks to this repo:
Also I confirmed with a normal execution of:
sudo ./rkflash.sh erase
is enough to erase all around the nand flash to enable the boot only from of the SDCard in Linux. My problem was the creation of the image.
Now I need understand how make the Picocalc Luckfox images compatible with dd
on Linux using their tool
making it work with dd is not something I have managed so far. but you can easily enough use rkflash.sh in the sdk folder after making a build to flash the SD card when itās inserted in the lyra and itās in loader mode. I do have a simple wrapper for rkflash.sh (./flash.sh) - itās pretty unnecessary but checks for permissions to perform the flash and stuff.