Yep, I'm serious. It works on our custom BBGW-like hardware. /drivers/net/wireless/ti/wl18xx/main.c: wl18xx_get_mac() retrieves built-in MAC from the fuses (WL18XX_REG_FUSE_BD_ADDR_1) and stores into fuse_oui_addr.
Next, in: /drivers/net/wireless/ti/wlcore/main.c: wl1271_register_hw <https://elixir.bootlin.com/linux/v3.9/source/drivers/net/wireless/ti/wlcore/v3.9/ident/wl1271_register_hw>() the code checks for nvs_len and retrieves nic_addr+out_addr from nvs_ptr. However: if (oui_addr == 0 && nic_addr == 0) { oui_addr = wl->fuse_oui_addr; ... So, if NVS is zeroed or conf file is missing, built-in 'fused' MAC is used. Of course, 'correct' way to fix that would involve a bit more work in the kernel: not only check for '00:00..', but also for 'DE:AD:BE:EF', so that the same wl1271-nvs.bin can be used for all wireless modules. But for our own needs, just removing wl1271-nvs.bin or patching it with 00:00... worked flawlessly. Eugene On Saturday, 24 February 2018 18:12:29 UTC+3, RobertCNelson wrote: > > On Sat, Feb 24, 2018 at 4:51 AM, <[email protected] <javascript:>> > wrote: > > Hi Robert, > > > > By the way, I'm curious why don't you just use 00:00:00:00:00:00 as a > MAC > > instead? If you patch wl1271-nvs.bin and replace 'deadbeef' with 00:.., > TI > > WLAN driver will attempt to read wl1271-nvs.bin, and if '00:00....' is > > stored, it will automatically use wl18xx built-in MAC, which is unique > for > > every wireless chip produced by TI. Of course, this will only work for > > wl18xx chips, but most wireless-capable Beaglebones come with wl18xx. > > > > In other words, if you patch wl1271-nvs.bin and replace 'deadbeef' with > > '00:00:00..', or completely remove wl1271-nvs.bin, no other patches or > > scripts will be required, and WLAN MAC will be assigned automatically. > > Are you Serious? > > Jason? can you confirm with TI's wifi team? > > I'm about to jump on an airplane to Europe, but i'll throw a bbgw into > my luggage and test this when i land tomorrow. > > If this works with all our wl1835 productions units, i'll pre-patch > the firmware at image create time and rip out all the "eeprom/mac" > hacks that waste boot time.. > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/fc988527-0037-4c5a-96c5-61c11feb8e4d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
