arhi Posted April 18, 2017 Posted April 18, 2017 I'm trying to get my MAC address on my orangepi-one to be what it used to be before the upgrade to "ARMBIAN 5.27 stable Debian GNU/Linux 8 (jessie) 4.10.11-sun8i" but I'm having dificulty I tried decompiling /boot/dtb/sun8i-h3-orangepi-one.dtb and adding mac-address = [52 53 3d 80 aa 0c]; few other tries, then tried mac-address = <0x52 0x53 0x3d 0x80 0xaa 0x0c>; in the ethernet@1c30000 { section: latest version looks like: ethernet@1c30000 { compatible = "allwinner,sun8i-h3-emac"; syscon = <0x20>; reg = <0x1c30000 0x104>; interrupts = <0x0 0x52 0x4>; resets = <0x2 0xc>; reset-names = "ahb"; clocks = <0x2 0x1b>; clock-names = "ahb"; #address-cells = <0x1>; #size-cells = <0x0>; status = "okay"; phy-handle = <0x21>; phy-mode = "mii"; allwinner,leds-active-low; linux,phandle = <0x57>; phandle = <0x57>; mac-address = <0x52 0x53 0x3d 0x80 0xaa 0x0c>; mdio { #address-cells = <0x1>; #size-cells = <0x0>; linux,phandle = <0x58>; phandle = <0x58>; ethernet-phy@1 { reg = <0x1>; clocks = <0x2 0x43>; resets = <0x2 0x27>; linux,phandle = <0x21>; phandle = <0x21>; }; }; }; I recompile this DTS to DTB (over the old one that I have backed up) dtc -I dtb -O dts -o sun8i-h3-orangepi-one.dts sun8i-h3-orangepi-one.dtb mv sun8i-h3-orangepi-one.dtb sun8i-h3-orangepi-one.dtb.original vi sun8i-h3-orangepi-one.dts dtc -O dtb -I dts -o sun8i-h3-orangepi-one.dtb sun8i-h3-orangepi-one.dts but I'm still getting old mac address after reboot !? I have zero experience with u-boot (if that's what's being used to boot this, I don't know for sure) or armbian till today so any help appreciated
martinayotte Posted April 18, 2017 Posted April 18, 2017 It is probably hard-coded into u-boot, and not over-writable.
arhi Posted April 18, 2017 Author Posted April 18, 2017 that's weird what's even weirder, if I go and edit /etc/network/interfaces and add hwaddress ether ... and reboot it boots with old mac address but does not get ip from the dhcp server .. if I manually ifconfig eth0 hw ether .. it changes the mac address but again restarting networking won't get dhcp ip addr ?!?! totally weird.. will reconfigure other devices for the new mac on this one but weird that I can't change it will have to look how the u-boot works, it's attm complete mystery to me
martinayotte Posted April 18, 2017 Posted April 18, 2017 I maybe wrong, but I remember that several months ago, I was able to over-write it. But then, after using newer u-boot, I wasn't able, maybe a bug has been introduced elsewhere, not by Armbian.
arhi Posted April 18, 2017 Author Posted April 18, 2017 thanks for confirming I'm not doing anything wrong .. that's important 'cause I was running in circles for a while.
Recommended Posts