Jump to content

Recommended Posts

Posted

hello , im a 0 in linux ,

i have orange 5 with mvme ,

i folowed how to for boot directly to mvme ,
the how to made me delete the spi flash.

all was good, o5 boot on mvme succesfully
but at each reboot , my hardware have new mac adress.

any one can show me what to do step by step ?

i used :
Joshua-Riek/ubuntu-orange-pi5: Ubuntu 22.04 LTS for the Orange Pi5  ( desktop & serveur )
Armbian_23.02.2_Orangepi5_jammy_legacy_5.10.110.img.xz

ubuntu serveur 23.04 ( 64 )

 

it's the same on all ,
boot one time i have mac adress , reboot = new mac adress
i cant fix ip localy ,
so i think when i deleted spi flash , may be deleted config to get fixed mac adress ?

any help / link ?  , thank's
 

Posted (edited)

yep ,i tryed mac changer and other way
but nothing fix.


i assigned all other hardware with a ip with my box
and set dhcp with only 1 adress.. only way to get always same ip ...
but at each reboot , mac adress change (but no probleme to let it work ... )

Edited by J. C.
Posted
On 4/23/2023 at 5:56 PM, J. C. said:

any help / link ?  , thank's

Here is what worked for me - this is from the armbian init scripts not sure why they did not work in the first place

 

#!/bin/sh
UUID=8bc44dd6-7880-36fd-93e8-09b4dccd0b2d #take this from nmcli
nmcli connection down $UUID
nmcli connection modify $UUID ethernet.cloned-mac-address "44:ee:bc:6c:76:ba" #put here your preferred MAC address
nmcli connection modify $UUID -ethernet.mac-address ""
nmcli connection up $UUID

Posted (edited)

@OttawaHacker Thank you for sharing the solution. I just followed your guide and it worked after first reboot. 

By the way, later on, after several other reboot, the mac is reset again.

Do you have any other suggesstion to fix?

 

Thank you.

Edited by chinhhut
Posted
8 hours ago, chinhhut said:

Thank you for sharing the solution. I just followed your guide and it worked after first reboot. 

By the way, later on, after several other reboot, the mac is reset again.

Do you have any other suggestion to fi

My solution has been stable - wondering if you possibly have some other network settings that might interfere. You could just put this script into one of the network init scripts to apply it on every boot.

Posted
10 hours ago, OttawaHacker said:

My solution has been stable - wondering if you possibly have some other network settings that might interfere. You could just put this script into one of the network init scripts to apply it on every boot.

I used the latest build of Orange pi 5b.  The strange point is our ethernet inteface is "end1" while normally it should be "eth0".

 

By the way, I tried other solution by editting the file /etc/network/interfaces and it seems to work well up to now.

Quote

allow-hotplug eth0
no-auto-down eth0
iface eth0 inet dhcp
    hwaddress 12:34:56:78:90:ab

 

Posted
On 9/10/2023 at 10:47 PM, chinhhut said:

By the way, I tried other solution by editting the file /etc/network/interfaces and it seems to work well up to now.

Yes this is the solution if you don't have NetworkManager installed - which should be the case on Debian/non desktop Ubuntu.

Posted
8 hours ago, Spooky said:

I think this is due to the bootloader. Try to revert the below commit in u-boot.

could you help me how to do the u-boot patch according to your source code? I guess it may require to build the u-boot file again manually?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines