GithubHelp home page GithubHelp logo

xinlingduyu / build-openwrt Goto Github PK

View Code? Open in Web Editor NEW
162.0 162.0 1.2K 1.73 MB

利用Actions在线云编译openwrt固件,适合官方源码,lede,lienol和immortalwrt源码,支持X86,电视盒子等众多设备!

License: GNU General Public License v2.0

Shell 96.03% Dockerfile 0.09% Perl 3.88%

build-openwrt's Introduction

云编译OpenWrt

在线云编译,是github推出的一项服务,它提供了高性能的虚拟服务器环境,基于它可以进行构建、测试、打包、部署项目。利用它可以省去本地搭建或者购买服务器的时间成本,你只需要使用本仓库的代码,按照下方的使用方法,修改一些参数,即可开始编译openwrt,等待几个小时后,你就可以下载固件了。

说明:源码来自各位大佬分享,为了方便编译,做了一些修改,可以支持不同分支的opewrt源码,同时集成了打包img镜像的功能。

操作教程由“实用技能”提供 @shiyongjineng

观看视频教程↓↓点击下方↓↓进行观看!

从零开始:自己编译OpenWrt系统!一个视频就够了!

openwrt在线编译教程

电视盒子专用:利用Flippy内核工具打包,将OpenWrt固件转成img镜像文件,

使用方法

1,注册账号

  • 点击github.com 网站右上角的【Sign up】按钮,根据要求填写完成即可!

2,设置权限

  • 右上角点击自己的头像,下拉菜单中选择【Settings/设置】 > 【Developer settings/开发者设置】 > 【Personal access tokens/个人访问令牌 > 【Tokens(classic)/令牌(经典)】 > 【 Generate new token/生成新令牌 】 ( Name: GITHUB_TOKEN, Select: public_repo ),其他选项根据自己需要可以多选,提交保存,复制系统生成的加密 KEY 的值,先保存到自己电脑的记事本,下一步会用到这个值。

  • 打开仓库 https://github.com/xinlingduyu/build-openwrt ,点击右上的 Fork 按钮,复制一份仓库代码到自己的账户下,稍等几秒钟,提示 Fork 完成后,到自己的账户下访问自己仓库里的 build-openwrt 。在右上角的 Settings > Secrets > Actions > New repostiory secret ( Name: GH_TOKEN, Value: 填写刚才GITHUB_TOKEN的值 ),保存。并在左侧导航栏的 Actions > General > Workflow permissions 下选择 Read and write permissions 并保存。图示如下:

3,设置config

  • 进入config文件夹,需要用哪个分支的源码,就打开哪个文件夹。

设置config文件,可以从本地设置好后,复制进去替换掉即可。

4,添加插件或主题

  • 进入config文件夹,需要用哪个分支的源码,就打开哪个文件夹。打开diy-part2.sh文件,电视盒子必须安装amlogic插件,格式如下:

    #####Add a feed source

    echo 'src-git amlogic https://github.com/ophub/luci-app-amlogic' >>feeds.conf.default

5,开始编译,

  • 点击菜单栏的【Actions】,左边菜单栏选择编译流程(说明:通用编译适合常用设备,如果你是电视盒子,那么请选择电视盒子编译)

7,下载固件

由于时间仓促,修改可能不到位,后续慢慢补充!

build-openwrt's People

Contributors

xinlingduyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

build-openwrt's Issues

编译出错

大佬,能帮我看看是什么原因出错吗?

2023-08-25T08:07:37.7731250Z Configuring wol.
2023-08-25T08:07:37.7732099Z make[2]: *** [package/Makefile:70: package/install] Error 255
2023-08-25T08:07:37.7732409Z Configuring luci-app-wol.
2023-08-25T08:07:37.7732813Z Configuring luci-app-syncdial.
2023-08-25T08:07:37.7733176Z Configuring luci-app-samba4.
2023-08-25T08:07:37.7733545Z Configuring kmod-usb-net-rtl8150.
2023-08-25T08:07:37.7733893Z Configuring kmod-tulip.
2023-08-25T08:07:37.7734232Z Configuring luci-i18n-wol-zh-cn.
2023-08-25T08:07:37.7734580Z Configuring luci-app-upnp.
2023-08-25T08:07:37.7734936Z Configuring luci-i18n-mwan3-zh-cn.
2023-08-25T08:07:37.7735291Z Configuring default-settings.
2023-08-25T08:07:37.7735647Z Configuring luci-i18n-samba4-zh-cn.
2023-08-25T08:07:37.7736014Z Configuring luci-i18n-ttyd-zh-cn.
2023-08-25T08:07:37.7736310Z Configuring htop.
2023-08-25T08:07:37.7736627Z Configuring kmod-iavf.
2023-08-25T08:07:37.7736955Z Configuring kmod-igbvf.
2023-08-25T08:07:37.7737277Z Configuring bnx2x-firmware.
2023-08-25T08:07:37.7737603Z Configuring kmod-bnx2x.
2023-08-25T08:07:37.7737933Z Configuring kmod-forcedeth.
2023-08-25T08:07:37.7738282Z Configuring luci-i18n-base-zh-cn.
2023-08-25T08:07:37.7738614Z Configuring kmod-amd-xgbe.
2023-08-25T08:07:37.7738988Z Configuring bc.
2023-08-25T08:07:37.7739304Z Configuring kmod-drm-i915.
2023-08-25T08:07:37.7739644Z Configuring kmod-amazon-ena.
2023-08-25T08:07:37.7739985Z Configuring kmod-e1000e.
2023-08-25T08:07:37.7740306Z Configuring autocore-x86.
2023-08-25T08:07:37.7740651Z Configuring luci-i18n-upnp-zh-cn.
2023-08-25T08:07:37.7741011Z Configuring kmod-button-hotplug.
2023-08-25T08:07:37.7741308Z Configuring iperf3.
2023-08-25T08:07:37.7741609Z Configuring kmod-igb.
2023-08-25T08:07:37.7741928Z Configuring kmod-igc.
2023-08-25T08:07:37.7742243Z Configuring kmod-bnx2.
2023-08-25T08:07:37.7742523Z Configuring urngd.
2023-08-25T08:07:37.7742862Z Configuring luci-i18n-firewall-zh-cn.
2023-08-25T08:07:37.7743227Z Configuring ppp-mod-pppoe.
2023-08-25T08:07:37.7743594Z Configuring luci-i18n-nlbwmon-zh-cn.
2023-08-25T08:07:37.7744031Z make[2]: Leaving directory '/workdir/openwrt'
2023-08-25T08:07:37.7752520Z make[1]: *** [package/Makefile:111: /workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
2023-08-25T08:07:37.7761471Z make[1]: Leaving directory '/workdir/openwrt'
2023-08-25T08:07:37.7780089Z make: *** [/workdir/openwrt/include/toplevel.mk:231: world] Error 2
2023-08-25T08:07:37.7995400Z ##[error]Process completed with exit code 2.

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.