Code Monkey home page Code Monkey logo

ax18usb's Introduction

背景

在海鲜市场买了一台已经硬改1G内存、USB3.0的和目AX18(兆能M2理论上也适用),一直苦于找不到同时兼具无线速度USB驱动可靠软件源的固件,于是开始收集资料、学习如何编译固件,才有了这个仓库。

目前已实现:

  1. 5G无线贴脸测试,千兆带宽可跑上920Mbps。
  2. USB可正常使用,通过无线存取samba共享的U盘(Class10TF卡+USB3.0读卡器),读取速度约55MB、写入约20MB。【外接的M2移动硬盘无法识别】
  3. 大部分插件可安装和使用。【kmod类、lib类插件容易失败,信息为Cannot satisfy the following dependencies for luci-app-xxx、But that file is already provided by package libxxx,部分可通过--nodeps参数完成安装】

代码来源和主要调整

主要代码来自coolsnowwolf/lean、kiddin9等2位大佬,特此感谢。仓库地址如下:

  1. https://github.com/coolsnowwolf/openwrt-gl-ax1800
  2. https://github.com/kiddin9/OpenWrt_x86-r2s-r4s-r5s-N1/tree/master/devices/ipq60xx_generic

相关调整如下:

  1. 参考360V6,改动target/linux/ipq60xx/files-4.4/arch/arm64/boot/dts /qcom下的qcom-ipq6018-cmiot.dtsi,306~317行加上USB支持。
  2. 无线驱动取用kiddin9库里的board-2.bin.IPQ6018。
  3. 通过.vermagic,对齐固件和kiddin9软件源的内核版本:4.4.60-1-1。
  4. 更新dnsproxy、hostapd版本,解决编译报错问题。

编译环境和命令

  1. 在PC虚拟机使用Ubuntu x64 22.04.2、Github Actions使用Ubuntu 22.04成功编译过。

  2. 安装编译依赖

    sudo apt-get update
    sudo apt-get upgrade -y
    sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
    
  3. 下载源代码,更新和安装feeds、选择配置、下载dl库,开始编译

    git clone https://github.com/w2xg2022/ax18usb
    cd ax18usb
    
    #代码在Win10里整理的,权限都乱了,直接强制提权
    chmod -R 775 *
    
    ./scripts/feeds update -a
    ./scripts/feeds install -a
    
    #第一次编译最好直接用default.config的配置
    cp default.config .config
    make menuconfig
    
    #下载dl库解压缩到dl目录,比较快;保守起见都只用单线程,-j1可用-j$(nproc)替换为多线程
    make download -j1 V=s
    
    make -j1 V=s   

云编译和固件下载

1.固件的默认IP、账号密码、插件清单、更换软件源等信息,请参考这里

2.访问固件下载页面,或直接下载固件

打赏

如果你觉得这个仓库、说明文档和固件等对你有帮助,能够激发和目AX18/兆能M2的潜能,欢迎通过微信打赏,谢谢。

ax18usb's People

Contributors

w2xg2022 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.