BPI-R4: u-boot: i2c

But if mac address is first

all works correctly

Снимок экрана_20250609_093403

I’m fix this error.

I read the values ​​incorrectly.

tlv_eeprom_fix_read.patch (2,6 КБ)

Now it’s work correctly

Снимок экрана_20250609_111545

1 Like

have applied the patch manually because i did some cleanup before…can you verify it is right? only compile-tested yet, will do function test later

All correctly. The patch has been applied correctly.

ok, yes quick-tested it with my already written eeprom, works now

eth1addr=F2:B8:7B:4D:00:02
eth2addr=F2:B8:7B:4D:00:03
ethaddr=F2:B8:7B:4D:00:01

maybe we should add a normal printf to show, that mac is loaded from eeprom (and applied)? btw. is mac also used for uboot or only inserted into linux devicetree?

currently only this is shown:

BPI-R4> fatload usb 0:1 $loadaddr u-boot-eeprom.bin
911952 bytes read in 81 ms (10.7 MiB/s)
BPI-R4> go $loadaddr
## Starting application at 0x46000000 ...


U-Boot 2025.04-bpi-eeprom-00036-gb649d849e4dc-dirty (Jun 09 2025 - 10:41:05 +0200)

CPU:   MediaTek MT7988
Model: mt7988-rfb
DRAM:  4 GiB
Core:  57 devices, 23 uclasses, devicetree: separate
MMC:   mmc@11230000: 0
Loading Environment from nowhere... OK
In:    serial@11000000
Out:   serial@11000000
Err:   serial@11000000
=> board_late_init...
bootmedia:sd
Net:   MediaTek MT7988 built-in switch
eth0: ethernet@15110100
Hit any key to stop autoboot:  0 
BPI-R4>
1 Like

Maybe later. I need to prepare a new image taking into account these changes.

If anyone is interested

This my image of vyos for bpi-r4

with tlv_eeprom and kernel 6.12-main from @frank-w

login/password of image is vyos/vyos

docs of vyos https://docs.vyos.io

https://dev.koenig.su/bpi-r4_sdmmc.img.gz

Have you tested if your original order works too?

Yes. It’s worked fine.