busybox 移植 Udhcpd 到 Arm 板子 實現 路由熱點
下載最新版本:
wget https://busybox.net/downloads/busybox-1.25.1.tar.bz2
tar -jxvf busybox-1.25.1.tar.bz2
一、 交叉編譯生成busybox 萬能小寶貝工具:
修改 編譯配置:
Additon Crossfile:
make menuconfig -->> Busybox Settings -->> Build Option -->> Corss Compile prefix
這裡寫上你 交叉編譯工具鏈的路徑:
/home/hongzhunzhun/work/OpenWrt-SDK-sunxi-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-arm_cortex-a7+neon_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-uclibcgnueabi-
nsenter.c:(.text.nsenter_main+0x1b0): undefined reference to `setns'
make menuconfig
Linux System Utilities--->nsenter,去掉該選項,重新編譯make,又出現如下錯誤:
sync.c:(.text.sync_main+0x7c): undefined reference to `syncfs'
make menuconfig
Coreutils--->sync選項去掉,重新make編譯通過,生成了busybox可執行檔案。
make && make install
這一幕 好激動有木有:
大功告成 !!!
預設安裝路徑 在 主目錄下面的 _install 目錄 .
UDHCPC:/sbin 目錄
UDHCPD:/usr/sbin 目錄
DHCPD 使用:
3.配置udhcpd.conf
vi udhcpd.conf
4.建立 leases
mkdir -p /var/lib/misc/
touch /var/lib/misc/udhcpd.leases
5.啟動熱點
sh /opt/ipnc/program/wifi/wifi_ap.sh
./root/usr/sbin/udhcpd -f /etc/udhcpd.conf &
附件 udhcpd.conf:
# Sample udhcpd configuration file (/etc/udhcpd.conf) # Values shown are defaults # The start and end of the IP lease block start 192.168.43.20 end 192.168.43.254 # The interface that udhcpd will use interface wlan0 # The maximim number of leases (includes addresses reserved # by OFFER's, DECLINE's, and ARP conficts). Will be corrected # if it's bigger than IP lease block, but it ok to make it # smaller than lease block. #max_leases 254 # The time period at which udhcpd will write out a dhcpd.leases # file. If this is 0, udhcpd will never automatically write a # lease file. Specified in seconds. #auto_time 7200 # The amount of time that an IP will be reserved (leased to nobody) # if a DHCP decline message is received (seconds). #decline_time 3600 # The amount of time that an IP will be reserved # if an ARP conflct occurs (seconds). #conflict_time 3600 # How long an offered address is reserved (seconds). #offer_time 60 # If client asks for lease below this value, it will be rounded up # to this value (seconds). #min_lease 60 # The location of the leases file #lease_file /var/lib/misc/udhcpd.leases # The location of the pid file #pidfile /var/run/udhcpd.pid # Everytime udhcpd writes a leases file, the below script will be called. #notify_file # default: no script #notify_file dumpleases # useful for debugging # The following are bootp specific options, settable by udhcpd. #siaddr 192.168.0.22 #default: 0.0.0.0 #sname zorak #default: none #boot_file /var/nfs_root #default: none # The remainer of options are DHCP options and can be specifed with the # keyword 'opt' or 'option'. If an option can take multiple items, such # as the dns option, they can be listed on the same line, or multiple # lines. The only option with a default is 'lease'. # Examples: opt dns 192.168.10.2 192.168.10.10 option subnet 255.255.255.0 opt router 192.168.10.2 opt wins 192.168.10.10 option dns 129.219.13.81 # appened to above DNS servers for a total of 3 option domain local option lease 864000 # 10 days of seconds # Currently supported options (for more info, see options.c): #opt subnet #opt timezone #opt router #opt timesrv #opt namesrv #opt dns #opt logsrv #opt cookiesrv #opt lprsrv #opt bootsize #opt domain #opt swapsrv #opt rootpath #opt ipttl #opt mtu #opt broadcast #opt wins #opt lease #opt ntpsrv #opt tftp #opt bootfile # Static leases map #static_lease 00:60:08:11:CE:4E 192.168.0.54 #static_lease 00:60:08:11:CE:3E 192.168.0.44
拿走不謝 !!!
相關推薦
busybox 移植 Udhcpd 到 Arm 板子 實現 路由熱點
下載最新版本: wget https://busybox.net/downloads/busybox-1.25.1.tar.bz2 tar -jxvf busybox-1.25.1.tar.bz2 一、 交叉編譯生成busybox 萬能小寶貝工具: 修改 編譯配置: Additon Cross
Busybox移植到ARM Linux教程
BusyBox 是一個集成了一百多個常用Linux命令和工具的應用程式。它不僅包含了一些簡單的命令,如 cat 、echo和ls等,而且還包含了一些更大、更復雜的工具,例如 grep、find、mount 以及 telnet等。簡單地說,BusyBox就好像是個大工具箱,集成了許多Linux常用的工
轉發:Iperf3移植到ARM Linux及使用教程(已在ZedBoard上實現)
iperf是一個基於Client/Server的網路效能測試工具,可以測試TCP、UDP和SCTP頻寬質量,能夠提供網路吞吐率資訊,以及震動、丟包率,最大段和最大傳輸單元大小等統計資訊,幫助我們測試網路效能,定位網路瓶頸。其中抖動和丟包率適應於UDP測試,二頻寬測試適應於
將lrzsz工具移植到ARM開發板 ---只通過串列埠實現window和ARM板之間檔案互傳
事情背景:由於需要在windows和ARM板之間只通過串列埠傳輸檔案(windows的檔案只通過串列埠傳輸到ARM板上) 這時超級終端SecureCRT+lrzsz工具可以完成這項使命!(其他終端軟體
Arm板子上移植putty
For building on Unix: - unix/configure is for Unix and GTK. If you don't have GTK, you should still be able to build the command-line utilities (PSCP,
移植PPP2.4.5到ARM上實現撥號
1、核心編譯的時候,看到以下關於PPP的全部要選擇如下: Device Drivers--->Network device support ---> │ │ <*> PPP (point-to-point prot
《net-snmp5.7.3移植到arm-linux平臺》
b2c bash oca 創建 tran ros base embed mic net-snmp5.7.3移植到arm-linux平臺 本次交叉編譯在ubuntu 15.04 64位系統下進行。 準備工作 在編譯移植前有幾項準備工作需要完成。 1下載net-snmp 5.
win10實現移動熱點共享WIFI
inter 安全 打開 法律 rfi 編輯 ont 如果 int 電腦有線上網有WIFI網卡,想共享WIFI給手機還在為下載獵豹WIFI、360WIFI、WIFI共享精靈?擔心密碼泄露?擔心網絡安全?現在一切都不用煩惱。windows10系統自帶熱點共享
Spring Cloud Zuul 實現路由,獲取參數
esp 參數 實現 bsp pos 舉例 nbsp 傳遞 重寫 Spring Cloud Zuul作為網關,可實現請求驗證過濾,路由到具體服務的作用。 舉例: 比如請求訂單接口,報文包括驗證信息及具體請求參數。 通過配置路由到具體接口,通過參數調用接口,返回具體報文。 參數
無線網卡實現AP 熱點功能,共享Internet連接設置
roc hosted 分享圖片 ces 面板 src pro 網絡 oss 1. 首先確定無線網卡是否支持AP熱點功能 windows 命令提示符中輸入 "netsh wlan show drivers"。命令輸出中,有一行““支持的承載網絡” ,“是
運用rip實現路由信息協議--華為拓撲
rip 端口 組播 關閉 roc 場景 ati 由器 所有 一、了解RIP1.定義:routing information protocol , 路由信息協議在內網的多個路由器之間自動的學習、同步路由表,以計算出一個去往目標網絡的最短、無環、數據轉發路徑;2.場景:一般在小
VRRP原理詳解&實例說明實現路由設備的負載均衡
VRRP 負載均衡 VRRP概述:#VRRP(Virtual Router Redundancy Protocol)虛擬路由冗余協議,容錯協議,它通過把幾臺路由設備聯合組成一臺虛擬的路由設備,並通過一定的機制來保證當主機的下一跳設備出現故障時 ,可以及時將業務切換到其它設備,從而保持通訊的連續性和可靠
vuex實現路由切換動畫同時嵌套路由同樣使用
路由 切換動畫 vuex 示例 http://47.94.90.89/dist/#/aaa一、安裝vue-cli1 下載安裝node.js 2 npm install -g cnpm --registry=https://registry.npm.taobao.org 換源3
用Vue來實現音樂播放器(四十):歌單詳情頁布局以及Vuex實現路由數據通訊
二級 font 利用 imp 實現 map color 音樂 image 1、歌單詳情頁是推薦頁面的二級路由頁面 將推薦頁面歌單的數據傳到歌曲詳情頁面 利用vuex 1、首先在state下定義一個歌單對象 disc{} 2、在mutaions
vue2實現路由懶加載
webpack scrip keep ron out script 首頁 ber keyword 一、什麽是懶加載 顧名思義,懶加載就是隨用隨加載,什麽時候需要就什麽時候加載。 二、為什麽需要懶加載 在單頁應用中,如果沒有使用懶加載,webpac
樂鑫esp8266的 基於Nonos移植紅外線1883,實現遙控器控制
查詢 lock bit ddr https 描述 read 博文 out 代碼地址如下:http://www.demodashi.com/demo/12613.html 一、前言。 距離上篇的8266進階博文有那麽一段時間了,那麽本文帶來的是基於Nonos的紅外線H
vue 實現路由跳轉
1.前一節已經安裝了vue-router(npm install vue-router --save),現在就來使用一下 1)先在App.vue元件中配置路由出口 <template> <div id="app"> <div class="conta
Vue中使用children實現路由的嵌套
con tle lin 對象 routes ont methods 根路徑 doc Vue中使用children實現路由的嵌套 相關Html: <!DOCTYPE html> <html lang="en"> <head&
QML實現新聞熱點向上滾動的效果
實現思路: 一個可視的Rectangle設定其高度等於ListView的item的高度,這樣保證顯示一個。 通過移動ListView的x值得位置實現向上滾動的效果。利用動畫修改x的值,達到動態效果。 效果如下: 截圖效果不好哈 具體程式碼如下 用了兩種方式,推薦使用第一種方式,看個人
Vue模擬資料,實現路由進入詳情頁面
{ path: '/goodDetail', component:goodDetail } selectGood(){ router.push({ path: 'goodDetail', query:{goodId:this.goodDetail.id}}) } 詳情頁: export