Giter VIP home page Giter VIP logo

Comments (3)

duhow avatar duhow commented on May 27, 2024

I don't think that's appropiate, since nandg private already contains the MAC address set. Should take it from there instead of generating a new random one. If it is not doing so, then that's another problem.

from xiaoai-patch.

hillbicks avatar hillbicks commented on May 27, 2024

Appropriate? Absolutely not! Does it work for me? Yes :p

good point about nandg, just checked and the real mac is in there it seems, I just checkd nandg for two devices. Come to think of it, when setting up the devices before they were flashed, I'm pretty sure they had the original mac from nandg (can't confirm it though) Just after flashing ( and I didn't touch nandg apart from taking a backup) the modified image the problem appeared. I only noticed because the ssh host key kept changing when connecting to the same IP.

Could you please check the mac on your lx01 so we can see if it's something on my end or with the creation of the image?
Thanks!

from xiaoai-patch.

duhow avatar duhow commented on May 27, 2024

Sorry for taking too long. I did have a deep look at what's going on.

When booting, /etc/init.d/wireless program loads the driver and tells to load config from /data/wifi.
Also some part is specified in /etc/init.d/check_mac.
That makes sense, otherwise having all devices to run with same MAC address on /lib/firmware would cause network issues, as you may have guessed.
In my case, field macaddr in /data/wifi/ files contained the right MAC, while il0macaddr was set to this factory-default.

When device is booting up, it loads default values from /lib:

[   15.031432] Final fw_path=/lib/firmware/fw_bcm43438a1.bin
[   15.031440] Final nv_path=/lib/firmware/nv_43438a1.txt
[   15.031446] Final clm_path=/lib/firmware/clm_bcmdhd.blob
[   15.031452] Final conf_path=/lib/firmware/config.txt

But when I ask the device to restart wireless:

/etc/init.d/wireless restart
[  569.980478] Final fw_path=/lib/firmware/fw_bcm43438a1.bin
[  569.980486] Final nv_path=/data/wifi/nv_43438a1.txt
[  569.980494] Final clm_path=/lib/firmware/clm_bcmdhd.blob
[  569.980501] Final conf_path=/lib/firmware/config.txt

So here's where the problem comes from.
Although, MAC address shouldn't be changing constantly, neither the SSH key, as you reported.
That may be that /data partition is not mounted properly, check nandi and do mkfs.ext4 nandi if required.

from xiaoai-patch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.