編譯前:
1. make menuconfig
這次openwrt升級后, 編譯完刷上固件,openwrt會自動進入failsafe模式。怎么編譯都不行。 后來發現, 新的固件里面選擇了 Kernel Modules\Other modules\kmod-button-hotplug 模組。這個模組在啟動的時候,觸發了"f"或者“enter”按鍵,所以在啟動的過程中就自動進入了failsafe模式。取消選擇后,一切正常。
2. 不要整個LUCI, 只是要Luci rpc模塊的話, Luci\Collection\Luci不要選擇。 則整個web界面都不會被安裝。只有rpc的功能會存在。
2. Openwrt默認不開啟wifi,要開啟的話, 修改這個文件: openwrt/trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh. 滾到文件最后, 注釋掉
# REMOVE THIS LINE TO ENABLE WIFI:
#option disabled 1
3. openwrt默認開機啟動ssh的方法
http://www.2cto.com/os/201304/204073.html
1config dropbear
2 option PasswordAuth 'on'
3 option RootPasswordAuth 'on'
4 option Port '22'
5 option Interface 'lan'
6# option BannerFile '/etc/banner'
openwrt/trunk/package/base-files/files/etc/shadow
root:$1$uml/DyCk$QHYqbMVYwxtE4Tk.SVifM.:15838:0:99999:7:::
密碼:123456
4. Luci 的文件拷貝到
rpc.lua 拷貝到 openwrt/trunk/feeds/luci/modules/rpc/luasrc/controller
openwrt/trunk/feeds/luci/libs/web/luasrc