Linux upgrade tool error: Erase IDB Fail
Posted: 2025-08-04 11:13
Hi, I want to erase my Luckfox Lyra on Linux without any previous step with Windows tools, but I have the next error when I perform the erase directive, like this:
The upgrade_tool output show:
At the same time the UART console output show:
And of course, I have issues trying to flash a new fresh build image using your SDK or buildroot environment. The rkflash.sh tool believes that the target is the internal flash, and fails for partition size:
Note: The complete process flashing the SPI_NAND version, I mean, using only internal flash, works fine. I don't have any problem. The Linux tools works ok for these options of build lunch selections: 0,1,0.
My environment details:
SDK: luckfox-sdk-250623
OS: Debian GNU/Linux 11 (bullseye)
Code: Select all
sudo tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool ef output/firmware/MiniLoaderAll.binCode: Select all
Using /storage/pico/luckfox/luckfox-sdk-250623/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
Code: Select all
DDR 0ac6b06a19 typ 24/11/13-17:22:48,fwver: v1.04
tREFI:4x, sr_idle:93, pd_idle:13
PHY drv:clk:60,ca:160,DQ:80,odt:480
vrefinner:50%, vrefout:50%
dram drv:40,odt:0
sr_dq:0, sr_ca:0, sr_clk:0
rg:0x29-0x0-0x2, 0x1c-0x0-0x2,status:a007
rdtrn:0x12-0x2a-0x43(0x31)
wrtrn:0xa-0x24-0x3f(0x35)
DDR3, 750MHz
BW=16 Col=10 Bk=8 CS0 Row=13 CS=1 Size=128MB
out
Boot1 Release Time: Nov 5 2024 17:09:59, version: 1.02 NO FTL
rom_version: 0x30303156
chip_id:524b350600,0
ChipType = 33
sfc nor id: ff ef aa
sfc_nand id: ef aa 22
sfc_nand_density 80000
sfc_nand_density 7fc00
UsbBoot ...3930
powerOn 658298
sfc_nand_check_bad_block page= 1ff00 ret= 0 spare= 0
e: 7fc00 is bad block skip0
sfc_nand_check_bad_block page= 1ff40 ret= 0 spare= 0
e: 7fd00 is bad block skip0
Code: Select all
Download Image... (1%)
Download Firmware Fail
Note:Image is larger than partition size in the firmware
My environment details:
SDK: luckfox-sdk-250623
OS: Debian GNU/Linux 11 (bullseye)