cndaqiang / E5-PC-daily

服务器集群管理遇到的问题和总结
1 stars 0 forks source link

openwrt #30

Open cndaqiang opened 3 years ago

cndaqiang commented 3 years ago

写盘

在mint下把lede写到系统盘中去

开机

vi /etc/config/network

修改ip为10.10.1.1, 主机和lede网线直连,主机固定10.10.1.2,依然是共享网络模式,这样lede也能上网更新 image

网页访问10.10.1.1密码koolshare lan的网关设为主机ip10.10.1.2便于后面的网络共享 配置dns这样openwrt/lede就可以上网了

改清华源

https://mirrors.tuna.tsinghua.edu.cn/help/openwrt/

sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf

安装提示

已安装的软件包 kernel 版本不兼容,要求 5.4.52-1-9eab9fa9… 而 5.4.52-1-9100f2f8… 已安装。 image 把鼠标放在已安装的上面会出现内核版本,如

5.4.52-1-9100f2f85d030b2d75515447a431bff7

替换源中的

src/gz openwrt_koolshare_mod_core http://mirrors.tuna.tsinghua.edu.cn/openwrt/snapshots/targets/x86/64/packages

packages替换kmods/5.4.52-1-9100f2f85d030b2d75515447a431bff7 什么情况, https://mirrors.bfsu.edu.cn/openwrt/snapshots/targets/x86/64/kmods/和原版https://downloads.openwrt.org/snapshots/targets/x86/64/kmods/都没有这个内核?

image

换个镜像试试 koolshare:2.35 也是提示5.4.41-1-9100f2f8 koolshare 2.33提示4.19.75-1-9480b4e9…,这个有了https://mirrors.bfsu.edu.cn/openwrt/snapshots/targets/x86/64/kmods/4.19.75-1-9480b4e94b32c66a0573bd9ef6b88783/ 现在支持了,可能是编写固件出的问题 image 有的程序安装可以,有的不可以..... 原版

cndaqiang commented 3 years ago

web更新

支持img,下载的img.gz要先解压

cndaqiang commented 3 years ago

卡在8188e 无线网卡更新

https://forum.archive.openwrt.org/viewtopic.php?id=46606&p=10

taobaoDog, rtl8192cd supports 8188EE. Try "make kernel_menuconfig" . Device drivers> Network support > Wireless

没找到驱动trl8188e, 无法识别无线网络

#查看设备
lspci

应该是要从头编译,后续opkg安装不可以 https://www.youtube.com/watch?v=D4zFX9m7ctQ

恩山万能集成无线OP固件:https://www.right.com.cn/forum/thread-928319-1-1.html 老外实现驱动AR9462参考资料:https://forum.openwrt.org/t/solved-atheros-ar9462-on-x86-as-an-ap-can-not-get-it-to-work-at-all/32122

cndaqiang commented 3 years ago
wget https://github.com/openwrt/openwrt/archive/openwrt-19.07.zip
unzip openwrt-19.07.zip 
cd openwrt-openwrt-19.07/
./scripts/feeds update -a
#第一次install会提示缺少的依赖,正常情况安装后就不缺少了
./scripts/feeds install -a
#再次安装检查是否还缺少
./scripts/feeds install -a

如果还有这些提示,重新下载源码,更新安装,之后下载失败了

Collecting package info: done
Collecting target info: done
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/network/utils/nftables/Makefile' has a dependency on 'jansson', which does not exist
Installing all packages from feed packages.
cndaqiang commented 3 years ago

剩下的编译参考以前写的 https://www.jianshu.com/p/6d9a8612c5d9 配置固件

make menuconfig

编译

make

参考https://567899.xyz/openwrt.html 使用make编译卡死,可以使用

make -j1 V=s

实时输出到屏幕,就可以了

cndaqiang commented 3 years ago

依旧是lspci

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188EE Wireless Network Adapter (rev 01)

驱动没有