找回密码
 注册

QQ登录

只需一步,快速开始

楼主: songee

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

  [复制链接]
发表于 2022-2-5 19:21:34 | 显示全部楼层
songee 发表于 2022-2-4 23:48' o! a. a1 }4 D% o8 ~% D& J
这篇帖子只是为了分享DIY的思路,我个人并不推荐使用非可信来源的固件,主贴附件也只是个参考。 ...

- V" T! o' K' j# }; @7 _: G! T, X华为B650好像也挂载了这个东西。但是256的内存有点不够用了。
 楼主| 发表于 2022-4-17 02:51:23 | 显示全部楼层
hj.lee 发表于 2022-2-5 19:21
1 }+ S+ Y/ t  @/ x; I' f华为B650好像也挂载了这个东西。但是256的内存有点不够用了。
, A6 d$ V  |- w, H/ X
B650是企业级,CPU性能足够用,看拆机说的是ARM A9架构,那应该跟bcm53xx是一样的。256M的DDR确实不大宽裕,想运行OpenWrt可能需要把电信定制的那个saf停掉,是否会影响原系统功能就得试一下了。
 楼主| 发表于 2022-4-27 23:10:13 | 显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。
! D; j0 N" [/ S
, h/ w' y0 k) X- l
  1. root@F650A:~ # /usr/bin/busybox
    4 F" h& o: U4 d
  2. BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.
    ' [' S) Z/ h8 Q& C
  3. BusyBox is copyrighted by many authors between 1998-2012.' b8 _7 w$ G& o( w9 F' i
  4. Licensed under GPLv2. See source distribution for detailed
    1 G# j( C1 c, w1 \" O' K
  5. copyright notices.
    + i: H& i- g2 a7 A8 h* J

  6. ( f8 F3 h3 L* V4 A9 I4 L+ O
  7. Usage: busybox [function [arguments]...]. n# T% N; @- f! G  A
  8.    or: busybox --list[-full]
    , j6 k# O* m5 k
  9.    or: busybox --install [-s] [DIR]
    . F) B0 k, O8 l) N
  10.    or: function [arguments]...! t( `7 S! _6 W" l# ]0 U

  11. / y$ A! ]7 _0 F% O. ~
  12.         BusyBox is a multi-call binary that combines many common Unix! m2 c8 E, h' o
  13.         utilities into a single executable.  Most people will create a5 v4 O! [& M# H5 z
  14.         link to busybox for each function they wish to use and BusyBox
    9 [0 ]! e- M' R7 a2 f) @
  15.         will act like whatever it was invoked as.
    3 M# |- J8 T' B0 ?
  16. + p  @. k1 N; o. w
  17. Currently defined functions:
    $ n! T% k  ]8 M. e( {) I( D6 I9 \
  18.         [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,
    9 W; [# U4 T( M3 n
  19.         bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,, s9 `- F6 f+ G# d$ |  [9 j. F
  20.         cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,, l$ ?5 C: n2 m$ f! S5 Z" O0 e
  21.         diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
    . o" C4 \; j: `0 _+ Z3 q! v) l: b  B
  22.         ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,; A% I7 q/ D  ]' u. [
  23.         freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,* t/ ?& Z/ K* c  p
  24.         hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
    % L3 h4 N: m6 z
  25.         install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
    , E4 R6 ?& ?' Y, L% s4 q7 A
  26.         killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
    / R/ Y0 X  c: j' f* j' `4 o. F( Y  c
  27.         login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,, D& r5 n+ e( ]3 U5 h$ g
  28.         md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,; R. u' n6 N, t+ G- [3 H' U6 @" M
  29.         modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,
    7 l/ M" g. T8 t! E! g" ]
  30.         nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,
    ' u/ Q  P- s6 A+ v
  31.         poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,0 t' {% J4 [  R
  32.         renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,. A% m) b* ?( @2 f
  33.         setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,) \  y. U& }1 x, @9 o* v
  34.         sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,
    * D! ?$ i+ Z' J5 U: T+ W. y
  35.         switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,7 W, T  v1 _* t
  36.         touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
    , e( b, a! j: N6 c5 d
  37.         ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,/ P+ y, |6 r. d% Y
  38.         uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,, a  D9 p: O. f9 t
  39.         who, whoami, xargs, xz, xzcat, yes, zcat
    8 x% a; u# z% b( J+ e
  40. 4 w: w$ X% I; }
复制代码
  1. root@F650A:~ # nano -h% {+ w6 V- R! {3 B+ b7 U% Y
  2. Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
    & t3 y0 i  t2 U1 L" Q) Y, j1 k" z

  3.   h8 Z4 F( p. z' |/ t
  4. Option          GNU long option         Meaning" v4 T8 i. b0 T% V/ d, |" `
  5. +LINE,COLUMN                           Start at line LINE, column COLUMN5 g' @: ]8 x* s# p# I+ o/ T" x  r% K
  6. -D             --boldtext              Use bold instead of reverse video text
    8 e: p" K( o! R, B4 v
  7. -K             --rebindkeypad          Fix numeric keypad key confusion problem
    * _4 N4 M$ g1 S. |
  8. -L             --nonewlines            Don't add newlines to the ends of files
    ( P  y5 {$ O' k1 g
  9. -O             --morespace             Use one more line for editing
    ! y! U8 `1 N: h4 y
  10. -R             --restricted            Restricted mode: a; u+ T3 I: @, Z. {7 }6 a
  11. -T <#cols>     --tabsize=<#cols>       Set width of a tab to #cols columns, i8 y# P8 D) ]- k, _$ [* V1 c
  12. -V             --version               Print version information and exit- u: I6 C: ~' d2 {
  13. -c             --const                 Constantly show cursor position
    * o; t! Z+ q' Q" j
  14. -d             --rebinddelete          Fix Backspace/Delete confusion problem
    7 G2 J/ j8 h' c3 y# [: r
  15. -h             --help                  Show this help text' J/ {. F( Y# w- X! S
  16. -l             --nofollow              Don't follow symbolic links, overwrite
    5 }7 u, C9 H4 y
  17. -n             --noread                Do not read the file (only write it)4 ~0 ^! O. x% s1 p
  18. -p             --preserve              Preserve XON (^Q) and XOFF (^S) keys' Z+ |; O. S5 M7 }# a1 l
  19. -t             --tempfile              Auto save on exit, don't prompt' c2 }# f1 ]+ a6 d% z
  20. -v             --view                  View mode (read-only)
    * S* V& K6 c8 s& l0 J& j: c5 P: L- k
  21. -x             --nohelp                Don't show the two help lines
    + v/ o  m/ k& |) e
  22. -z             --suspend               Enable suspension+ P  j0 F0 U. x5 l  F
  23. root@F650A:~ # nano -V
    $ V* I  E/ A4 f# _. W% h& w
  24. GNU nano, version 2.4.2
    1 a  D1 p4 I1 D2 q3 \$ U# u& Y! R
  25. (C) 1999..2015 Free Software Foundation, Inc.* W  s  e" g" R! I  ~) @8 I( F! a, T
  26. Email: nano@nano-editor.org    Web: http://www.nano-editor.org/, f" {& f; k% E; Z
  27. Compiled options: --enable-tiny --disable-utf81 f; J' _6 q  E2 s5 \+ V' K: F1 T$ p
复制代码
  1. root@F650A:~ # dropbear -h& ^( i# K/ Z5 C9 s+ f6 J5 F1 F* w  @. t
  2. Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html% I4 U# y6 i# G% E# }
  3. Usage: dropbear [options]
    " t1 W5 `3 s' a
  4. -b bannerfile   Display the contents of bannerfile before user login
    2 S; J. {& I/ n. s- Y
  5.                 (default: none)
    ) Z8 i# t$ Z2 N$ Z- X- x' ?, v0 [1 c
  6. -r keyfile  Specify hostkeys (repeatable)
    + i" w- x8 ]' R
  7.                 defaults:  g) C6 O; @' w' O1 q5 Z
  8.                 dss /etc/dropbear/dropbear_dss_host_key! @, p# w, K# o+ _. a
  9.                 rsa /etc/dropbear/dropbear_rsa_host_key
    ; H+ G) S9 H6 R- i+ }$ l4 x
  10.                 ecdsa /etc/dropbear/dropbear_ecdsa_host_key- {2 x  |3 N4 _' r8 ^" T
  11. -R              Create hostkeys as required$ Z6 Z  `0 K9 d; J8 H
  12. -F              Don't fork into background9 t9 J. o' K: @( c0 E
  13. -E              Log to stderr rather than syslog
    , f% [- O7 r. ?$ S- [4 _! I
  14. -m              Don't display the motd on login1 E3 b! g7 I! K5 [
  15. -w              Disallow root logins
    * o9 }5 m# H, Y0 g
  16. -s              Disable password logins
    & O, @6 l9 r% ]8 s7 e  r
  17. -g              Disable password logins for root
    1 @1 P4 T5 p' Y6 W0 X
  18. -B              Allow blank password logins7 z1 ~0 T# x" W0 [
  19. -j              Disable local port forwarding
    : c: k/ G7 T% J- t
  20. -k              Disable remote port forwarding# z/ R) w8 c+ u1 t8 i
  21. -a              Allow connections to forwarded ports from any host
    4 i0 W! E+ E' N2 |* Y$ A+ z
  22. -p [address:]port& w  I8 x+ G. ~
  23.                 Listen on specified tcp port (and optionally address),
    . O: R# R4 T# h2 X* h% i7 G/ ~' ?
  24.                 up to 10 can be specified
    - A3 l' h5 C2 B+ |5 ~2 e# s
  25.                 (default port is 22 if none specified)) T" Y/ _/ `7 J& Y4 S  Q1 b
  26. -P PidFile      Create pid file PidFile7 G7 `! J$ v9 p% d* P) j" S
  27.                 (default /var/run/dropbear.pid)) b7 w% j' J5 c* E
  28. -i              Start for inetd
    , |. I/ f3 g  T
  29. -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)8 i' ~7 ]0 V8 S7 E$ f% g
  30. -K <keepalive>  (0 is never, default 0, in seconds)
    ( f# }$ b: o7 U
  31. -I <idle_timeout>  (0 is never, default 0, in seconds)/ i$ ~$ I% o4 l3 R. k/ N7 l2 [* e$ {
  32. -V    Version
    . B# J4 ^9 F* i$ ~
复制代码
* \  a) R. |, W

; [& @( f/ A$ `$ ^

本帖子中包含更多资源

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

×
发表于 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-5-1 12:09 , Processed in 0.025514 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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