Jump to content

orangepi-one MAC address


arhi

Recommended Posts

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 :)

 

Link to comment
Share on other sites

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 :(

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines