Page 1 of 1

Issues uploading an image on Linux (segmentation fault)

Posted: 2025-05-08 13:52
by random123
I'm having issues uploading a new image to the Luckfox Pico Ultra W from Linux, resulting in a segmentation fault. I first followed the explanation in the wiki, but that seems to be incorrect. Then, I somehow found out that the following should be used, but I still get the segmentation fault. Please help me to flash a new image, because the system is completely useless right now.

- Download SDK (git clone ) https://github.com/LuckfoxTECH/luckfox-pico
- Download Image https://wiki.luckfox.com/Luckfox-Pico/L ... e-download
- Put image into folder in SDK folder `output/image`
- Hold Boot button while connecting Board to USB
- check with `lsusb` (refer to https://wiki.luckfox.com/Luckfox-Pico/L ... Burn-Image)

Code: Select all

$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 027: ID 2207:110c Fuzhou Rockchip Electronics Company 

Code: Select all

./luckfox-pico$ sudo ./rkflash.sh update
[sudo] password for user: 
Using ./luckfox-pico/tools/linux/Linux_Upgrade_Tool/config.ini
Loading firmware...
Support Type:1106       FW Ver:0.0.00   FW Time:2025-03-13 10:07:02
Loader ver:1.01 Loader Time:2025-03-13 10:05:39
./rkflash.sh: line 96: 1505574 Segmentation fault      (core dumped) $UPGRADETOOL uf $UPDATE

Re: Issues uploading an image on Linux (segmentation fault)

Posted: 2025-05-09 8:41
by Luckfox Taylor
Hello sir,

I've tested the burning process on my end, and everything worked normally. I wasn't able to reproduce your issue. Could you please try replacing the download data cable? Additionally, you can refer to the successful download log I've provided to check for any error messages. Identify the relevant issues based on the errors. During the flashing process, you might experience brief USB disconnections/reconnections, which is normal.

Code: Select all

sudo dmesg | tail -n 50
flash-emmc-linux.png
flash-emmc-linux-dmesg.png

Re: Issues uploading an image on Linux (segmentation fault)

Posted: 2025-05-12 14:46
by random123
Thank you for your reply. I changed the cable (the one provided with the device) and I was able to flash it once. But only once! Now the segmentation error message occurs every time I try to update the device, using the same cable!
What can I do? This seems very unreliable. Is this the case for all devices?

I've noticed that you loader time is more recent than mine. Yours is 2025-04-23. Might this be an issue?

Re: Issues uploading an image on Linux (segmentation fault)

Posted: 2025-05-13 7:25
by random123
I found a solution. I can successfully flash the firmware when I press the BOOT button all the time while starting the `sudo ./rkflash.sh update` command.

This was not really clear from the guide in your wiki. Maybe something you could update. Here is my updated procedure, which might help someone in the future

- Download SDK (git clone ) https://github.com/LuckfoxTECH/luckfox-pico into new folder `luckfox-pico`
- Download Image https://wiki.luckfox.com/Luckfox-Pico/L ... e-download
- Extract and put image into folder `luckfox-pico/output/image`
- Open a terminal and go into `luckfox-pico` folder
- Copy the udev rules and restart udev (maybe you need to use sudo for all commands)

Code: Select all

cp tools/linux/Linux_Upgrade_Tool/88-rockusb.rules /etc/udev/rules.d/
udevadm control --reload-rules
service udev restart
- Hold Boot button while connecting Board to USB and hold the button until flashing is complete (at least until the flash command started successfully)
- check with `lsusb` if device is visible (refer to https://wiki.luckfox.com/Luckfox-Pico/L ... Burn-Image)
- Run the command `sudo ./rkflash.sh update`