[Letux-kernel] jz4730 Ethernet - works now (unreliable and with some deficiencies)

H. Nikolaus Schaller hns at goldelico.com
Tue Jun 22 22:03:28 CEST 2021


Hi David,

> Am 22.06.2021 um 21:44 schrieb David Boddie <david at boddie.org.uk>:
> 
> On Fri Mar 12 14:58:05 CET 2021, H. Nikolaus Schaller wrote:
> 
>> * where do we get the MAC address from?
>> 
>> 	- is there some EEPROM or NVRAM encoding the MAC address?
>> 	- the devices have a sticker with an individual MAC address printed on it
>> 	- but that may just be the WiFI MAC - in our good old l400-2.6 kernel
>> 	there was a hack to call get_ethernet_addr() - have to research what it
>> 	was doing
> 
> I know you already figured out how the kernel gets the MAC address and I
> guess you verified that it matches the sticker on the bottom of the case.

Yes it does - if U-Boot provides:

ethaddr=${ethaddr}

But - somehow the kernel parameters are not properly passed/merged.
So therefore I currently have some hack in my build script.

> 
> Based on photos I took of the inside of my Minibook, I think the WiFi MAC
> is written on a sticker on the motherboard.

I think there is some flash/nvram inside the WiFi module and processed by
the USB driver inside the module. It did magically work like with any WiFi
stick you would plug in.

BR,
Nikolaus



More information about the Letux-kernel mailing list