1 1
dhlii

OPI Lite WiFi MAC

Recommended Posts

Looking for any means of finding a unique and permanent MAC address for opilites. 

 

Is there some kind of serial number or other unique number of any kind in an H3 SOC or in something on an OPI Lite board that could be used to derive a MAC ?

 

As things currently are I either have to manually setup the mac for each board I build - in a conf file in /etc/modprobe.d or live with the fact that the board comes up with a new mac/ip with every boot.  

Share this post


Link to post
Share on other sites

I must have missed that. 

 

I am running Armbian 5.27/Linux 4.10 

If that sets the MAC randomly ONCE that will do what I need. 

 

Thank you. 

Share this post


Link to post
Share on other sites

That patch is only for legacy kernel. I don't think anyone bothered to make similar patch for mainline kernel. Don't get me wrong, it is not trivial, some kernel knowledge is required.

Share this post


Link to post
Share on other sites

Then I guess I get to look at that, cause I have zero interest in the legacy kernel. 

Share this post


Link to post
Share on other sites

Ok, mainline kernel. IIRC Martin Ayotte mentioned that setting MAC address from DT should work? If not,  please feel free to send a PR with a patch against https://github.com/igorpecovnik/lib and please report back in any case how you solved it (adding the /etc/modprobe.d/8189fs.conf tweak back to firstrun script when mainline kernel is detected is IMO a valid option)

Share this post


Link to post
Share on other sites
11 hours ago, jernej said:

I don't think anyone bothered to make similar patch for mainline kernel. Don't get me wrong, it is not trivial, some kernel knowledge is required.

I don't think anybody is interested in mainlining 8189es and 8189fs drivers at all. If these drivers were converted into platform drivers and DTs were patched accordingly with aliases then u-boot could set unique SID based MAC address automatically.

Share this post


Link to post
Share on other sites

IIRC Jeff Moine had some patches for wifi as well. Unfortunately, I didn't save his patches before he deleted them. Does anybody have his patches?

Share this post


Link to post
Share on other sites

Ok, that was not what I expected. I thought that at some point there was patch for mainline RTL wifi driver which added SDIO IDs and maybe few other things. I wonder if that would work or not, but it would take some time before I can test this theory. After all, it would be unproductive for Realtek to always completely redesign the chips.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
1 1