rockchip-linux / u-boot

U-Boot tree for pending commits
115 stars 79 forks source link

rockchip: tinker: set ethaddr in late init #5

Closed Kwiboo closed 7 years ago

Kwiboo commented 7 years ago

This PR sets ethernet mac address in late init for Tinker Board and prevents getting a random mac address at each boot. Address is loaded from eeprom same as in /etc/init.d/rockchip.sh on Tinker OS, first 6 bytes from 0x50 on i2c2.

Tested with my experimental LibreELEC Tinker Board project at https://github.com/Kwiboo/LibreELEC.tv/tree/tinkerboard/projects/TinkerBoard

wzyy2 commented 7 years ago

It looks good, but could you also send it to u-boot mail list? You can send patch by issuing tools/patman -c 1.

We don't maintain uboot here and this branch will be force updated to sync with upstream regularly.

Kwiboo commented 7 years ago

@wzyy2 thanks, will sent it to the u-boot mail list as soon as I have mail configured on my dev box.

wzyy2 commented 7 years ago

Close it and I will cherry-pick your patch from mail list.