Set MAC-Address on boot


(Frank W.) #1

Hi,

Is it possible to set MAC via cmdline?

On raspberry pi i can set it via

smsc95xx.macaddr=B8:27:EB:59:EB:25

Regards Frank


#2

No. You can set it from dts


(Frank W.) #3

If i set ot via dts,all users using my kernels having my mac if they don’t change dts and recompile. This is only problematic if 2 such devices are in same lan-segment (like in my lan).

But maybe its a start to get rid of random mac.

How can it be done?

Maybe its a good start for testing dto :slight_smile: can you give me such example?

I’m trying to set via uboot,passing as self-defined param in cmdline and parsing cmdline in linux to set via ip-command