找回密码
 注册

QQ登录

只需一步,快速开始

楼主: songee

F650/450、8145、K662等ARM平台,LXC容器内运行OpenWRT子系统

  [复制链接]
发表于 2022-2-5 19:21:34 | 显示全部楼层
songee 发表于 2022-2-4 23:48
; S: c; T' {2 y( {0 ~6 U/ a这篇帖子只是为了分享DIY的思路,我个人并不推荐使用非可信来源的固件,主贴附件也只是个参考。 ...
( k) o0 ^4 i- n+ `: q/ d2 o
华为B650好像也挂载了这个东西。但是256的内存有点不够用了。
 楼主| 发表于 2022-4-17 02:51:23 | 显示全部楼层
hj.lee 发表于 2022-2-5 19:216 H! K$ O; O& w4 p0 {. g
华为B650好像也挂载了这个东西。但是256的内存有点不够用了。
# N& m9 e# e1 s: K6 L8 P
B650是企业级,CPU性能足够用,看拆机说的是ARM A9架构,那应该跟bcm53xx是一样的。256M的DDR确实不大宽裕,想运行OpenWrt可能需要把电信定制的那个saf停掉,是否会影响原系统功能就得试一下了。
 楼主| 发表于 2022-4-27 23:10:13 | 显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。
$ J" I' F: `/ c7 {3 d. I$ ~' w4 Y# f0 g6 y
  1. root@F650A:~ # /usr/bin/busybox0 e0 ?6 |* {5 h8 c$ {, J  q
  2. BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.4 [* M# T  |& I/ B( K; M
  3. BusyBox is copyrighted by many authors between 1998-2012.
    * E! m! b6 i) {/ U4 i
  4. Licensed under GPLv2. See source distribution for detailed% T* G; h( X- M4 e
  5. copyright notices." v- d& }* l1 s9 k" _

  6. 5 U) m9 u$ U4 M: O3 n
  7. Usage: busybox [function [arguments]...]
    " `! W5 z1 p& d5 ]1 k& p  P9 G
  8.    or: busybox --list[-full]/ e: H. _/ q3 J8 M' i8 }
  9.    or: busybox --install [-s] [DIR]9 j8 T. N% b) @' E7 r
  10.    or: function [arguments]...
    6 r, y, b0 N: X6 N% z6 D
  11. 7 H& o7 k' P& ?: k# G5 g" D
  12.         BusyBox is a multi-call binary that combines many common Unix) r& D, |) A* ?# O" P6 Y
  13.         utilities into a single executable.  Most people will create a9 i% M! g. F. ~7 R) R
  14.         link to busybox for each function they wish to use and BusyBox# u% l* [$ O( {; ~" \
  15.         will act like whatever it was invoked as.
    # l) u7 C! B8 r/ Z( s6 q

  16. 2 ^$ r! s, q% o$ B% A$ V& ^0 @
  17. Currently defined functions:
    & w8 p& u/ e' H+ U& b
  18.         [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,4 m( n! L7 a1 ]: f. X- A0 l
  19.         bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,
    : w" K) I$ P& \' n1 ~
  20.         cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
    2 `  r8 j+ f4 x5 a$ ?
  21.         diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,& i6 g3 s: _7 P
  22.         ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,
    ! {( x- w: J7 u
  23.         freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,6 `+ O1 G6 J, V/ I2 B2 ~' Y6 t
  24.         hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
    ; V1 [: O/ h' W
  25.         install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
    2 b# \5 S0 }' p* _! }
  26.         killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,/ k9 Y% y* M* p% h3 J: V
  27.         login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,( x. w: [( c+ Q5 h0 T2 D
  28.         md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,, k0 _# F1 }, v% p% ^8 L7 ]) K$ P
  29.         modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,
    ; Y% a0 Q8 J! R3 G( a2 M/ S  l
  30.         nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,, z+ i& v- n- d  I
  31.         poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,
    2 H, h- `) ^# Z/ w$ @
  32.         renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,3 K7 ]' l' b4 I; F
  33.         setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
    % G# D: v$ l1 [/ B8 s2 z
  34.         sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,0 e; t4 p- R  }6 q* Q5 t
  35.         switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,% G" e1 z4 G; O6 y% l& u" l8 `
  36.         touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
    1 E( x# [$ s$ I, Y. s( H5 y8 L
  37.         ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,
    " W5 S  k; k  F* X
  38.         uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,2 [+ T* B: X+ ^3 m6 B; P8 D6 R2 y! w* C
  39.         who, whoami, xargs, xz, xzcat, yes, zcat7 E% s$ r6 U* |2 }

  40. 7 Z! p' D3 i6 W: A$ X: K$ v
复制代码
  1. root@F650A:~ # nano -h
    ( b/ h+ h' C2 ~  T4 ~; M- G
  2. Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...' r8 ]0 I3 u4 G7 J

  3. 5 V# e+ n0 b8 w; W4 y6 Z) k, L
  4. Option          GNU long option         Meaning
    " R; N7 z( G* [, S2 p* f- L# T0 g
  5. +LINE,COLUMN                           Start at line LINE, column COLUMN4 o! Q0 `* ?% `( I
  6. -D             --boldtext              Use bold instead of reverse video text  K  {' x. R2 K, j7 F) l
  7. -K             --rebindkeypad          Fix numeric keypad key confusion problem
    " h) M6 F; y$ @( g3 r& S' N" _
  8. -L             --nonewlines            Don't add newlines to the ends of files9 o# s5 X/ S, D+ U, H
  9. -O             --morespace             Use one more line for editing% H8 n/ h: ~+ Q
  10. -R             --restricted            Restricted mode
    5 B2 |' @2 W/ g
  11. -T <#cols>     --tabsize=<#cols>       Set width of a tab to #cols columns
    2 q, v$ Z* k, p( ~
  12. -V             --version               Print version information and exit; Z. b! O5 [- H& P
  13. -c             --const                 Constantly show cursor position3 B$ S# \; D9 [) [/ G3 l% b
  14. -d             --rebinddelete          Fix Backspace/Delete confusion problem+ q! Y) z& ^7 ~" R
  15. -h             --help                  Show this help text
    ) Z' @$ p: ~- L3 q
  16. -l             --nofollow              Don't follow symbolic links, overwrite$ t* A' A0 o/ q3 o+ M/ z
  17. -n             --noread                Do not read the file (only write it)
    $ m+ D. Y/ G6 l) P
  18. -p             --preserve              Preserve XON (^Q) and XOFF (^S) keys8 w5 ?7 n4 \; X( D" @/ |* B9 ]- I
  19. -t             --tempfile              Auto save on exit, don't prompt
    , ]# E7 L4 |* e# J4 [( l" d0 Z( P
  20. -v             --view                  View mode (read-only)$ u9 j1 U- t0 Z% b7 r5 ^* P5 A2 @
  21. -x             --nohelp                Don't show the two help lines9 |0 D0 Z0 A. Q+ E8 Q$ [
  22. -z             --suspend               Enable suspension$ `" P' W. z5 X+ G0 w0 @1 `
  23. root@F650A:~ # nano -V
    3 v. y5 m7 ]& S
  24. GNU nano, version 2.4.2- q* y+ Q& [4 n0 a; x, z1 I& I2 M) s3 ~
  25. (C) 1999..2015 Free Software Foundation, Inc.5 y6 N; a  s$ C% b
  26. Email: nano@nano-editor.org    Web: http://www.nano-editor.org/0 P% }0 E5 v' d4 x
  27. Compiled options: --enable-tiny --disable-utf8# f& f3 [* M, L- a
复制代码
  1. root@F650A:~ # dropbear -h5 M. i  ?# R8 _2 P" O
  2. Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html5 X1 [1 I+ _2 L) Z1 ]
  3. Usage: dropbear [options]
    7 G" z- \! @0 ~( `
  4. -b bannerfile   Display the contents of bannerfile before user login2 k! t* @' P& b) y
  5.                 (default: none)
    $ g; u( ^. r8 J6 v' ]  I
  6. -r keyfile  Specify hostkeys (repeatable)9 q7 W8 S' f- A# D  c# r
  7.                 defaults:
    - G8 p3 C0 t  w0 q. r* h
  8.                 dss /etc/dropbear/dropbear_dss_host_key
    2 }: c5 r; u4 _
  9.                 rsa /etc/dropbear/dropbear_rsa_host_key/ h& M; U5 n* O1 D: g
  10.                 ecdsa /etc/dropbear/dropbear_ecdsa_host_key  X# |/ G: m& A; |0 I- U! H
  11. -R              Create hostkeys as required
    & J! b/ Z( R, l: @
  12. -F              Don't fork into background7 n" T6 y" d, o7 K- U. z
  13. -E              Log to stderr rather than syslog
    ! d* f. N0 @, e: f4 w
  14. -m              Don't display the motd on login
    . y+ Z; |% V; ]4 @
  15. -w              Disallow root logins- D. G$ [- }) H* @, |
  16. -s              Disable password logins0 X5 _$ t& y/ r6 P( k. R% ]
  17. -g              Disable password logins for root3 }7 j5 V8 r4 E
  18. -B              Allow blank password logins2 [5 @& [1 G1 r) X
  19. -j              Disable local port forwarding' \( o3 I$ x& |: K+ m" z# N
  20. -k              Disable remote port forwarding9 b% R% h. k  I" A
  21. -a              Allow connections to forwarded ports from any host1 t0 m  P5 B( V3 }0 A4 A
  22. -p [address:]port
    5 t* p* ^/ }) }( l, ?* P5 y4 H
  23.                 Listen on specified tcp port (and optionally address),9 @+ Y$ l( [7 e: v& d; `
  24.                 up to 10 can be specified3 N/ f( P/ Z# O7 a# i
  25.                 (default port is 22 if none specified)
    3 L2 U. L5 J4 m4 I+ K, B
  26. -P PidFile      Create pid file PidFile
    " }* L3 @9 v4 T: q( W
  27.                 (default /var/run/dropbear.pid)! f6 j- P/ z9 `$ y$ }4 k
  28. -i              Start for inetd1 S3 X, j- Y2 ?( A) w
  29. -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)" X/ ^: l/ @  B7 {# t) ?6 U
  30. -K <keepalive>  (0 is never, default 0, in seconds)
    4 x, p* K/ ~5 P8 ?9 P
  31. -I <idle_timeout>  (0 is never, default 0, in seconds)
    ( ^! y8 k7 V# ^2 V2 c
  32. -V    Version' Q" t% R; z1 @+ W
复制代码
5 q. x6 W% Q/ b4 c6 j( G+ }

0 T1 c! c0 Z# E9 \

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2022-10-3 14:47:39 | 显示全部楼层
HN8145XR也支持吗?这么玩卡不卡啊
发表于 2022-10-21 23:07:47 | 显示全部楼层
帅呆了啊!等最近有空了就来学习操作一波!之前一直卡在要不要加一个wifi路由器的问题上了,现在意思就是直接把原来那个80端口的天翼3.0web的saf系统换成官方的openwrt对吧?
发表于 2022-11-27 16:56:58 | 显示全部楼层
从这里学习到了好多知识!到最后终于运行起来了!
发表于 2022-11-27 17:09:41 | 显示全部楼层
我照这个刷了,发现用不了猫的网络,是需要哪里配置吗?
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-6-15 21:36 , Processed in 0.027791 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表