点一下右上角的 reboot
然后 (百米冲刺跑出去
看了一下源码,还真是要写 /etc/ 目录下面的文件:
ubuntu:/opt/D1/tina_d1_open$ grep /etc -r package/allwinner/wifimanager/ --include *.c
package/allwinner/wifimanager/demo/wifi_longtime_test.c: wmg_printf(MSG_INFO,"DESCRIPTION:\n\tTest the stability of wifi module(see the test result in file:/etc/test_result).\n");
package/allwinner/wifimanager/demo/wifi_longtime_test.c: *see the test result in file:/etc/test_result
package/allwinner/wifimanager/demo/wifi_longtime_test.c: wmg_debug_open_file("/etc/wifi_long_time_test.log");
package/allwinner/wifimanager/demo/wifi_longtime_test.c: sprintf(prt_buf,"echo \"Test Times:%d, Success Times:%d(including get IP timeout times:%d), Failed Times:%d\" > /etc/test_results",i,success_times,timeout_times,fail_times);
package/allwinner/wifimanager/demo/wifi_longtime_test.c: sprintf(prt_buf,"echo \"Connecting mean time: %llu.%-llu seconds\" >> /etc/test_results",(total_con_microsec/1000000)/i,(total_con_microsec/i)%1000000);
package/allwinner/wifimanager/demo/wifi_longtime_test.c: wmg_printf(MSG_INFO,prt_buf,"echo \"Disconnecting mean time: %llu.%-llu seconds\" >> /etc/test_results",(total_disc_microsec/1000000)/i,(total_disc_microsec/i)%1000000);
package/allwinner/wifimanager/demo/wifi_longtime_test.c: sprintf(prt_buf,"echo Congratulations! >> /etc/test_results");
package/allwinner/wifimanager/src/core/wifi_udhcpc.c: system("/etc/wifi/udhcpc_wlan0 start >/dev/null");
package/allwinner/wifimanager/src/core/wifimanager.c: system("/etc/wifi/udhcpc_wlan0 stop >/dev/null");
package/allwinner/wifimanager/src/core/wifi.c:static const char IFACE_DIR[] = "/etc/wifi/sockets";
package/allwinner/wifimanager/src/core/wifi.c:static const char SUPP_CONFIG_TEMPLATE[]= "/etc/wifi/wpa_supplicant_src.conf";
package/allwinner/wifimanager/src/core/wifi.c:static const char SUPP_CONFIG_FILE[] = "/etc/wifi/wpa_supplicant.conf";
package/allwinner/wifimanager/src/core/wifi.c:static const char CONTROL_IFACE_PATH[] = "/etc/wifi/sockets";
package/allwinner/wifimanager/src/core/wifi.c: strncpy(cmd, "/etc/wifi/wifi start", 511);
package/allwinner/wifimanager/src/core/wifi.c: system("/etc/wifi/wifi stop");
package/allwinner/wifimanager/src/daemon/wifid_cmd_handle.c: system("/etc/init.d/wifi_daemon start");
package/allwinner/wifimanager/src/daemon/wifid_cmd_handle.c: system("/etc/init.d/wifi_daemon stop");
ubuntu:/opt/D1/tina_d1_open$
ubuntu:/opt/D1/tina_d1_open$
@haoxuan-cui 默认没这么大, 我的166M
$ ls output/images/*.img -l
-rw-r--r-- 1 cube cube 166986240 Aug 14 17:11 output/images/sdcard.img
如果是烧卡启动,系统是把 只读的squashfs挂到根文件系统 /
并没有可读写的 overlayfs ,所以出现了 /etc/ 目录不可写的问题
root@TinaLinux:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 17152 17152 0 100% /
devtmpfs 503924 0 503924 0% /dev
tmpfs 508116 52 508064 0% /tmp
/dev/mmcblk0p1 8151 305 7846 4% /mnt/SDCARD
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# mount
/dev/root on / type squashfs (ro,noatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=503924k,nr_inodes=125981,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/kernel/config type configfs (rw,relatime)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/mmcblk0p1 on /mnt/SDCARD type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root@TinaLinux:/#