① busybox璇︾粏璧勬枡澶у叏
BusyBox 鏄涓涓闆嗘垚浜嗕笁鐧惧氫釜鏈甯哥敤linux鍛戒护鍜屽伐鍏风殑杞浣撱侭usyBox 鍖呭惈浜嗕竴浜涚畝鍗曠殑宸ュ叿锛屼緥濡俵s銆乧at鍜宔cho绛夌瓑锛岃繕鍖呭惈浜嗕竴浜涙洿澶с佹洿澶嶆潅鐨勫伐鍏凤紝渚媑rep銆乫ind銆乵ount浠ュ強tel銆傛湁浜涗汉灏 BusyBox 绉颁负 Linux 宸ュ叿閲岀殑鐟炲+鍐涘垁銆傜畝鍗曠殑璇碆usyBox灏卞ソ鍍忔槸涓澶у伐鍏风憋紝瀹冮泦鎴愬帇缂╀簡 Linux 鐨勮稿氬伐鍏峰拰鍛戒护锛屼篃鍖呭惈浜 Android 绯荤粺鐨勮嚜甯︾殑shell銆
鍩烘湰浠嬬粛
- 杞浣撳悕绉 锛欱usyBox
- 寮鍙戝晢 锛歊ob,Bernhard,Denys绛
- 杞浣撳钩鍙 锛氱被Unix绯荤粺
- 杞浣撶増鏈 锛歜usybox-1.29.3
- 鏇存柊鏃堕棿 锛2018-9-9
- 杞浣撹瑷 锛欳璇瑷
- 杞浣撳ぇ灏 锛2.2M(V1.29.3,tar.bz)
- 杞浣撴巿鏉 锛欸PLv2
绠浠,鍙戞簮,缂栬瘧瀹夎,浜ゅ弶缂栬瘧,閰嶇疆,浣跨敤鎶宸,
绠浠
BusyBox 灏嗚稿氬叿鏈夊叡鎬х殑灏忕増鏈鐨刄NIX宸ュ叿缁撳悎鍒颁竴涓鍗曚竴鐨勬墽琛屾。銆傝繖鏍风殑闆嗗悎鍙浠ユ浛浠eぇ閮ㄥ垎甯哥敤宸ュ叿姣斿傜殑GNU fileutils 锛 shellutils绛夊伐鍏凤紝BusyBox鎻愪緵浜嗕竴涓姣旇緝瀹屽杽鐨勭幆澧冿紝鍙浠ラ傜敤浜庝换浣曞皬鐨勫祵鍏ュ紡绯荤粺銆
鍙戞簮
BusyBox 鏈鍒濇槸鐢 Bruce Perens 鍦 1996 骞翠负Debian GNU/Linux瀹夎呯洏缂栧啓鐨勩傚叾鐩鏍囨槸鍦ㄤ竴寮犺蒋纰熶笂鍒涘缓涓涓鍙寮曞肩殑 GNU/Linux 绯荤粺锛岃繖鍙浠ョ敤浣滃畨瑁呯洏鍜屾ユ晳鐩樸
缂栬瘧瀹夎
#make defconfig #make #make install 缂栬瘧濂藉悗鍦╞usybox鐩褰曚笅鐢熸垚瀛愮洰褰昣install,閲岄潰鐨勫唴瀹: drwxr-xr-x 2 root root 4096 11鏈 24 15:28 bin rwxrwxrwx 1 root root 11 11鏈 24 15:28linuxrc -> bin/busybox drwxr-xr-x 2 root root 4096 11鏈 24 15:28 *** in 鍏朵腑鎵ц屾。busybox鍦ㄩ渶瑕佸埗浣滄。妗堢郴缁熸槧鍍忕儳鍏ユ澘瀛愮殑鎯呭喌涓嬶紝busybox搴旀斁鍦ㄦ牴妗f堢郴缁熺洰褰曚笅鐨刡in涓锛屽叾浠栫殑閮芥槸鎸囧悜浠栫殑绗﹀彿杩炵粨.
浜ゅ弶缂栬瘧
瑕佸疄鐜颁氦鍙夌紪璇戯紝闇瑕佽惧畾濂戒氦鍙夌紪璇戝櫒鍓嶇紑锛屽彲浠ヤ娇鐢ㄤ互涓嬪懡浠よ惧畾鍓嶇紑锛 #make CROSS_COMPILE=arm-linux-uclibcgnueabi- 鎴栬咃紝鍙浠ョ敱鐜澧冨彉鏁拌惧畾CROSS_COMPILE鐨勫硷紝CROSS_COMPILE鐨勯粯璁ゅ间笉鏄鎵ц屾。鐨勫墠缂銆
閰嶇疆
busybox鐨勯厤缃绋嬪紡鍜宭inux鏍稿績閫夊崟閰嶇疆鏂瑰紡绠鐩翠竴妯′竴鏍.鐔熸倝鐢╩ake menuconfig鏂瑰紡閰嶇疆linux鏍稿績鐨勬湅鍙嬪緢瀹规槗涓婃墜. #cp busybox-1.00.tar.gz /babylinux #cd /babylinux #tar xvfz busybox-1.00.tar.gz #cd busybox-1.00 #make menuconfig 涓嬮潰鏄闇瑕佺紪璇戣繘busybox鐨勫姛鑳介夐」銆 General Configuration搴旇ラ夌殑閫夐」 Show verbose applet usage messages Runtime SUID/SGID configuration via /etc/busybox.conf Build Options Build BusyBox as a static binary (no shared libs) 杩欎釜閫夐」鏄涓瀹氳侀夋嫨鐨,杩欐牱鎵嶈兘鎶奲usybox缂栬瘧鎴愰潤鎬佽繛缁撶殑鎵ц屾。,杩愯屾椂鎵嶇嫭绔嬩簬鍏朵粬鍑藉紡棣.鍚﹀垯蹇呴渶瑕佸叾浠栧簱妗f堟墠鑳借繍琛,鍦ㄥ崟涓涓猯inux鏍稿績涓嶈兘浣垮畠姝e父宸ヤ綔. Installation Options Don't use /usr 杩欎釜閫夐」涔熶竴瀹氳侀,鍚﹀垯make install 鍚巄usybox灏嗗畨瑁呭湪鍘熺郴缁熺殑/usr涓,杩欏皢瑕嗙洊鎺夌郴缁熷師鏈夌殑鍛戒护.閫夋嫨杩欎釜閫夐」鍚,make install鍚庝細鍦╞usybox鐩褰曚笅鐢熸垚涓涓鍙玙install鐨勭洰褰,閲岄潰鏈塨usybox鍜屾寚鍚戝畠鐨勮繛缁. 鍏跺畠閫夐」閮芥槸涓浜沴inux鍩烘湰鍛戒护閫夐」,鑷宸遍渶瑕佸摢浜涘懡浠ゅ氨缂栬瘧杩涘幓,涓鑸鐢ㄩ粯璁ょ殑灏卞彲浠ヤ簡锛岄厤缃濂藉悗閫鍑哄苟淇濆瓨銆
浣跨敤鎶宸
鍙浠ヨ繖鏍风敤busybox #busybox ls 浠栫殑鍔熻兘灏辩浉褰撹繍琛宭s鍛戒护 鏈甯哥敤鐨勭敤娉曟槸寤虹珛鎸囧悜busybox鐨勮繛缁,涓嶅悓鐨勮繛缁撳悕瀹屾垚涓嶅悓鐨勫姛鑳. #ln -s busybox ls #ln -s busybox rm #ln -s busybox mkdir 鐒跺悗鍒嗗埆杩愯岃繖涓変釜杩炵粨: #./ls #./rm #./mkdir 灏卞彲浠ュ垎鍒瀹屾垚浜唋s rm 鍜宮kdir鍛戒护鐨勫姛鑳.铏界劧浠栦滑閮芥寚鍚戝悓涓涓鍙鎵ц岀▼寮廱usybox锛屼絾鏄鍙瑕佽繛缁撳悕涓嶅悓,瀹屾垚鐨勫姛鑳藉氨涓嶅悓锛屽緢澶歭inux缃戠珯閮芥彁渚沚usybox鐨勫師濮嬬爜涓嬭浇銆
android busybox