BPI-F3 how to reset EEPROM to factory default

I want to reset EEPROM to factory default because board can’t boot from TF card (mmc) no matter what and how I try. It boots fine from emmc.

current TLV is here (from u-boot prompt)

=> tlv
TLV: 0
TlvInfo Header:
   Id String:    TlvInfo
   Version:      1
   Total Length: 88
TLV Name             Code Len Value
-------------------- ---- --- -----
Product Name         0x21   9 k1-x_deb1
Base MAC Address     0x24   6 FE:FE:FE:12:34:45
MAC Addresses        0x2A   2 2
Manufacture Date     0x25  19 04/24/2024 10:23:55
Manufacturer         0x2B   8 spacemit
Device Version       0x26   1 5
Unknown              0x40   1  0x02
Unknown              0x41   1  0x01
Wifi MAC Address     0x60   6 8E:2A:5D:CA:D8:01
Bluetooth Address    0x61   6 3C:D9:7B:AF:5E:6C
Unknown              0x42   1  0x31
CRC-32               0xFE   4 0x70FF4796
Checksum is valid

My last idea to boot from TF card is to reset to factory setting and try again

Hello, could you provide the complete SD card boot log? I’ll ask around for you.

here is log booting from mmc, serial console:

sys: 0x2
try sd...
bm:3
j...

U-Boot SPL 2022.10 2.0.4 (Dec 19 2024 - 20:33:13 +0000)
DDR type 1
lpddr4_silicon_init consume 10ms
Change DDR data rate to 2400MT/s
BPI: partition=2 part_name[uboot]
BPI: p=1 info.name=[mmcsda1] info.start[2000]
BPI: p=2 info.name=[mmcsda2] info.start[42000]
BPI: p=3 info.name=[uboot] info.start[800]
BPI:hdr read sector 800, count=1
mmc_load_image_raw_sector: mmc block read error
spl: partition error
BPI: partition=1 part_name[opensbi]
BPI: p=1 info.name=[opensbi] info.start[500]
BPI:hdr read sector 500, count=0
mmc_load_image_raw_sector: mmc block read error
spl: partition error
SPL: Unsupported Boot Device!
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

here is boot log booting from emmc (same board, same u-boot):

U-Boot 2022.10 2.0.4 (Dec 28 2024 - 15:23:58 +0000)

CPU:   rv64imafdcv
Model: spacemit k1-x deb1 board
DRAM:  DDR size = 2048 MB
DDR size = 2048 MB
DDR size = 2048 MB
2 GiB
reset driver probe start
reset driver probe finish
DCDC_REG1@dcdc1: enabling
DCDC_REG3@dcdc3: enabling
LDO_REG1@ldo1: enabling
SWITCH_REG1@switch1: enabling
SWITCH_REG2@pwr-event: enabling
SWITCH_REG3@pwr-int: enabling
SWITCH_REG4@rtc-ctrl: enabling
SWITCH_REG5@rtc-event: enabling
SWITCH_REG6@rtc-irq: enabling
SWITCH_REG7@power-down: enabling
SWITCH_REG8@reboot-flag: enabling
DDR size = 2048 MB
Core:  409 devices, 29 uclasses, devicetree: board
WDT:   Started PMIC_WDT with servicing (60s timeout)
WDT:   Started watchdog@D4080000 with servicing (60s timeout)
MMC:   sdh@d4280000: probe done.
sdh@d4281000: probe done.
sdh@d4280000: 0, sdh@d4281000: 2
Loading Environment from MMC... OK
initialize_console_log_buffer
Have allocated memory for console log buffer
In:    serial
Out:   serial
...

here is short guide I wrote year ago how to install Alpine linux on BPI-F3:

https://arvanta.net/alpine/alpine-on-spacemit/

there is script I created to make TF card image and link to image which can be downloaded and flash (dd) to mmc.

this all worked fine for some people which use Alpine on bpi-f3 and worked for me but about month ago stopped to boot from mmc while works fine from mmc.

I’ve added opensbi and u-boot to alpine for bpi-f3