4. Build script
● ./m.sh
– cd qsdk
– make defconfig # openwrt standard
– make V=s -j8
– cd -
– ./pack.sh
● cp -rvf qsdk/bin/ipq806x/openwrt* common/build/ipq #use new build squashfs-root.img
● cd common/build/
● python update_common_info.py #build mtd single bin
● cp -vf bin/nornand-ipq40xx-single.img /media/sean/project/IPQ4019/img/spf5.img # release fw
● cd -
● Mount smb of 176 to local path
– sudo mount -t cifs //192.168.180.176/project/ /media/sean/project/ -o guest
7. Download fw
● Self upgrade (recommend)
– Copy fw bin to device
● Use scp # see ssh to openwrt
– Use sysupgrade
● Tftp download
– Need to connect serial port
– See uboot and tftpboot
● Flash program
– Need program device
8. Telnet to openwrt
If not set root passwd
telnet 192.168.1.1
●
passwd #set root password, needed by
scp&ssh
10. sysupgrade
sysupgrade -c -v /tmp/xxx-single.img
Not need serial port
openwrt 升级功能介绍
https://blog.csdn.net/u013485792/article/details/50505
706
WARN: can't upgrade from nor to nornand
22. luci and juci conflict
● cp v9.luci.config .config
● cp v9.juci.config .config
●
make menuconfig
– Select luci and unselect all juci
– Select juci and unselect all luci
24. make
make V=s -j8
make -j8
make download V=s # download to dl folder
make V=s -j1 # for check build error
make package/juci/compile V=s -j1
27. Power 4G modem
● Qsdk/package/base-files/files/etc/rc.local
● Power up:gpio 39
● Power on:gpio 21
28. UCI is a data backend
https://openwrt.org/zh-cn/doc/techref/uci
https://openwrt.org/docs/guide-user/base-
system/uci
Configuration Files Lists
UCI 配置文件位于目录 /etc/config/ 内
use init.d call to take effect
/etc/config/samba overwrite
/etc/samba/smb.conf when running
/etc/init.d/samba start