Comments (3)
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.
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.
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)
- libmad build fails HOT 3
- toolchain might be better to use armv8l instead of armv7a HOT 1
- Information gathering for voice assistant implementation via porcupine and vosk HOT 10
- Xiaoai Speaker Play - L05B HOT 19
- Hack into my new LX06 HOT 26
- wget2: certificate verify failed HOT 1
- mpd: Input latency for AUX input HOT 2
- Build for package 'sndio' not completed HOT 2
- AS05G HOT 15
- Is this the correct image? HOT 38
- Docker container exits with error "Build for package 'glibc' not completed" HOT 5
- I tried to connect procupine to MQTT, but failed.
- L09G HOT 60
- Question about the fallback partition on LX06 HOT 4
- bluealsa-aplay v4 not working HOT 1
- `porcupine_launcher` does not work with recent Home Assistant HOT 1
- monitor.sh install is broken HOT 6
- Requirements for new packages HOT 5
- support on arm64 host? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xiaoai-patch.