编译前:

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

  2.1 Openwrt下的路径:package/network/services/dropbear/files/dropbear.config
  [openwrt@root files]$ vim dropbear.config 
   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

 

posted on 2013-06-03 07:08  popman  阅读(8030)  评论(0编辑  收藏  举报