解决光猫的 openwrt的问题

完美解决Ubuntu磁盘/硬盘挂载出错

问题描述:
Error mounting /dev/sda1 at /media/***/E: Command-line `mount -t “ntfs” -o

解决办法:
步骤1、在终端输入下面命令,先查看磁盘挂在情况:

sudo fdisk -l

步骤2、终端执行sudo ntfsfix /dev/sdb+编号修复挂载错误的相应的分区,命令根据磁盘号修改

例如:是磁盘编号1无法使用报以上问题,则输入命令进行修复:

sudo ntfsfix /dev/sdb1

 

 

 

 

http://archive.openwrt.org/chaos_calmer/15.05.1/omap/generic/packages/packages/
https://downloads.openwrt.org/releases/17.01.7/packages/arm_cortex-a9/

arm_cortex-a9/ - Sat Jan 25 17:56:45 2020
arm_cortex-a9_neon/ - Sat Jan 25 14:24:28 2020
arm_cortex-a9_vfpv3/

17.01.7 21. Juni 2019 r4030 Kernel 4.4.182, Sicherheitsaktualisierungen
https://de.wikipedia.org/wiki/OpenWrt

OpenWrt路由器架构判断

提示: ARMv7 都是32位CPU, armv8以上才是64位CPU.
$ which busybox
/bin/busybox

$ file /bin/busybox
/bin/busybox: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1

 

OpenWrt路由器架构判断

callen@callen-PC:~$ file busybox
busybox: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, no section header

opkg: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-arm.so.1, no section header

Latest Chaos Calmer Release - OpenWrt 15.05.1
https://openwrt.org/releases/15.05/start

https://blog.csdn.net/huyaoyu/article/details/42810383
src/gz barrier_breaker_telephony http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/telephony
CSDN 解决架构的问题

opkg update 和opkg install 老是报错
Package zoneinfo-middleeast version 2011n-1 has no valid architecture, ignoring.
Package zoneinfo-northamerica version 2011n-1 has no valid architecture, ignoring.
执行opkg update 和opkg install都会出现一大堆 no valid architecture.

https://www.right.com.cn/forum/thread-128532-1-1.html

root@SAF:~# uname -a
Linux SAF 3.10.53-HULK2 #1 SMP Fri Oct 20 01:08:58 CST 2017 armv7l GNU/Linux

 

 

 

 

 

 

 

/ # uname -a
Linux SAF 4.4.197 #1 SMP Mon Jul 13 10:01:41 UTC 2020 armv7l GNU/Linux
内核比openwrt的cc新太多了。
/etc # cat openwrt_release
DISTRIB_DESCRIPTION='FW2.1_CT_HUAWEI_RTOS44_R3545'/etc # cat openwrt_version
2.1 (Thu Apr 9 20:47:16 CST 2020)
/etc # cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 1594.16
Features : half thumb fastmult edsp thumbee tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1
CPU physical : 0

processor : 1
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 1594.16
Features : half thumb fastmult edsp thumbee tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1
CPU physical : 1

Hardware : Hisilicon A9
Revision : 0000
Serial : 0000000000000000
请教楼主,如何找合适的软件安装源?谢谢

 

不知道这个设备里面还的是否还是OpenWRT的系统,在 8145v 里面,/etc/banner 这个文件会显示是 OpenWRT CC 版本

ls /lib/ld* 看看输出结果,大概能猜到用的编译器版本。

opkg install luci-base
opkg install luci-mod-admin-full
opkg install luci-theme-bootstrap

根据前面老哥的回复,实测在开启内置 OpenWRT 后,依次输入以下命令并重启路由器即可开启 GUI 界

楼主,已经搞定了。
非常感谢提供思路。
arm_cortex-a9 的安装包和源就可以了
目前我选的是内核版本接近的17.01.7

gao***

https://www.right.com.cn/forum/thread-352805-9-1.html

 

iptables -A INPUT_ACL -p tcp -mtcp --dport 21 -j ACCEPT

 

BusyBox v1.23.2 (2019-12-19 15:22:49 CST) built-in shell (ash)

_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
CHAOS CALMER (1.1, R4030)
-----------------------------------------------------
* 1 1/2 oz Gin Shake with a glassful
* 1/4 oz Triple Sec of broken ice and pour
* 3/4 oz Lime Juice unstrained into a goblet.
* 1 1/2 oz Orange Juice
* 1 tsp. Grenadine Syrup

 

F650/450、8145、K662等ARM平台,LXC容器内运行OpenWRT子系统
https://www.chinadsl.net/thread-166731-1-1.html

 

root@SAF:~# cat /etc/openwrt_release
DISTRIB_DESCRIPTION='FW1.1_CT_HUAWEI_SD5116V1_R4030'

root@SAF:/etc# ls /lib/ld*
/lib/ld-uClibc.so.0

root@SAF:~# uname -a
Linux SAF 3.10.53-HULK2 #1 SMP Fri Oct 20 01:08:58 CST 2017 armv7l GNU/Linux

 

src/gz openwrt_core https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/17.01.7/targets/bcm53xx/generic/packages
src/gz openwrt_base https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/17.01.7/packages/arm_cortex-a9/base
src/gz openwrt_luci https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/17.01.7/packages/arm_cortex-a9/luci
src/gz openwrt_packages https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/17.01.7/packages/arm_cortex-a9/packages
src/gz openwrt_routing https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/17.01.7/packages/arm_cortex-a9/routing
src/gz openwrt_telephony https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/17.01.7/packages/arm_cortex-a9/telephony

 

dd if=/mnt/usb/USB_disc1/backup-part/partition_backup/19.bin of=/dev/mtdblock19

 

cat /opt/upt/apps/apps/etc/config/dropbear
config dropbear
option PasswordAuth 'on'
option RootPasswordAuth 'on'
option Port '22'

不过你要改端口的话,相对来说要麻烦一些,因为华为光猫默认是把其它端口都给关闭了,所以这里面就需要你自己开防火墙的端口,具体的操作就是用 iptables 命令把你开的端口设置为允许。
iptables -A INPUT_ACL -p tcp -mtcp --dport 27 -j ACCEPT

cd /tmp
wget http://archive.openwrt.org/chaos_calmer/15.05.1/omap/generic/packages/base/dropbear_2015.67-1_omap.ipk
tar xzf dropbear_2015.67-1_omap.ipk
cd /opt/upt/apps/apps/
tar xzf /tmp/data.tar.gz
mkdir etc/rc.d && cd etc/rc.d
ln -s ../init.d/dropbear S50dropbear
rootpw=$(grep root /etc/shadow|cut -d: -f2)

rootpw="root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::"
sed -i "s/root:/root:$rootpw/" ../shadow

rootpw=$(grep root ../shadow|cut -d: -f2)

 

root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::

 

scp root@192.168.1.8:/home/callen/.ssh/authorized_keys ./

 

 

http://192.168.1.1/cgi-bin/luci/;stok=719132f71999eefd92fe332bcff7442b/admin/status/processes

 

scp callen@192.168.1.8:/home/callen/Downloads/luci-theme-netgearrainbow_git-20.019.59367-8840d7c-1_all/l
uci-theme-netgearrainbow_git-20.019.59367-8840d7c-1_all.ipk ./

scp callen@192.168.1.8:/home/callen/Downloads/luci-theme-netgearrainbow_git-20.019.59367-8840d7c-1_all/luci-theme-netgear_git-17.016.25656-a85807d-1_all.ipk ./

scp callen@192.168.1.8:/home/callen/PycharmProjects1-py390/pythonProject/theme/netgearrainbow/header.htm ./