You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the demo.bin file is left on the sdcard, it appears to be copied into the file system /dev/mtdblock3 (/config) which is where the overlay files are copied. These overlay files are then used to build out the rest of the system, including wpa_supplicant.conf.
Default size for /dev/mtdblock3 is 256K. It is mounted using mount -t jffs2 /dev/mtdblocks3 /config in /usr/bin/general_init.sh
Not entirely sure how, but demo.bin ended up in the path /config/overlay even though on the sdcard it's only in the root
The file /config/overlay/demo.bin is only 120K of the full /sdcard/demo.bin
install command is used to copy files from /sdcard/config to /config by replacing /sdcard off the path
This fails if the /config path is full
# find /sdcard/config -type f -exec sh -c 'SOURCE={};TARGET=${SOURCE#/sdcard};install -D $SOURCE $TARGET' \; -print
install: can't create '/config/overlay/etc/hostname': No space left on device
install: can't create '/config/overlay/etc/openmiko.conf': No space left on device
install: can't create '/config/overlay/etc/wpa_supplicant.conf': No space left on device
Because this fails, files such as the wpa_supplicant.conf never make it into /etc and the wifi never becomes reachable and never joins the specified wifi.
I did notice that /etc/init.d/S35wifi looks for /sdcard/wpa_supplicant.conf and copies that to /etc and allows the wifi to start still. I was able to get onto my device by using the file in the root of the sdcard.
When the
demo.bin
file is left on the sdcard, it appears to be copied into the file system/dev/mtdblock3
(/config
) which is where the overlay files are copied. These overlay files are then used to build out the rest of the system, includingwpa_supplicant.conf
.Specs
Wyze Cam v2
openmiko v1.0.0-alpha.1 (a272ff0)
/dev/mtdblock3
is 256K. It is mounted usingmount -t jffs2 /dev/mtdblocks3 /config
in/usr/bin/general_init.sh
install
command is used to copy files from/sdcard/config
to/config
by replacing/sdcard
off the path/config
path is fullBecause this fails, files such as the
wpa_supplicant.conf
never make it into/etc
and the wifi never becomes reachable and never joins the specified wifi.I did notice that
/etc/init.d/S35wifi
looks for/sdcard/wpa_supplicant.conf
and copies that to/etc
and allows the wifi to start still. I was able to get onto my device by using the file in the root of the sdcard.I have not yet figured out how demo.bin got into /config.
The text was updated successfully, but these errors were encountered: