imagebuilder编译
github 仓库地址https://github.com/gl-inet/imagebuilder
使用imagebuilder可以一键打包出与glinet官方一模一样的固件,也可以在固件中加入自己想要的软件包和文件
下面是我在ubuntu 20.04中编译的过程
1. 安装必要的依赖软件包
sudo apt update && sudo apt upgrade -y
sudo apt install device-tree-compiler gawk gcc git g++ make ncurses-dev python unzip -y
2. 克隆imgebuilder环境
git clone git@github.com:gl-inet/imagebuilder.git3. 进入imagebuilder目录,并克隆glinet私有软件包到当前目录下(请不要修改克隆下来的文件夹名字)
cd imagebuilder
git clone git@github.com:gl-inet/glinet.git4. 如果要切换到指定版本,例如切换到3.201版本,请执行下面的命令
cd glinet
git checkout 3.211
cd ..5. 编译自己需要的固件,我这里编译x750
./gl_image -p x750 -i6. 编译完成后,在bin目录下根据当前日期和型号找到自己需要的二进制文件
7. 如果需要在glinet的基础上添加自己需要的软件包,可以使用-e参数指定,例如:
./gl_image -p x750 -i -e "wifidog nano"8. 如果需要在glinet的基础上添加自己的文件,可以使用-f参数指定,例如:
./gl_image -p x750 -i -e "wifidog nano" -f ~/work/soft/tmo_files/
这个貌似不行 感谢大佬的分享! China 发表于 2022-2-9 14:14
感谢大佬的分享!
遇到问题直接回帖,我会及时帮助大家解决问题 克隆环境这一步就卡住了啊:dizzy:
Cloning into 'imagebuilder'...
The authenticity of host 'github.com (192.30.255.113)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/)? SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM
Warning: Permanently added 'github.com,192.30.255.113' (ECDSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. 就是爱瞎折腾 发表于 2022-2-11 21:47
克隆环境这一步就卡住了啊
Cloning into 'imagebuilder'...
你是在执行 git clone git@github.com:gl-inet/imagebuilder.git这一行命令的时候就卡住了吗?
看log像是你的git美有配置好呢,你之前是否使用git工具?如果没有,我可以写一个git的配置教程;P 萝卜大侠 发表于 2022-2-12 15:44
你是在执行 git clone :gl-inet/imagebuilder.git这一行命令的时候就卡住了吗?
看log像是你的git美有配 ...
我之前git clone其它仓库没有问题呢,都是直接就下载,但是你这个库就有上面的提示。
不过我确实没有配置git,就是默认的。请大侠赐教。 就是爱瞎折腾 发表于 2022-2-12 16:35
我之前git clone其它仓库没有问题呢,都是直接就下载,但是你这个库就有上面的提示。
不过我确实没有配 ...
如果你之前用过,那git应该没问题啦,注意错误log
Are you sure you want to continue connecting (yes/no/)?
这个log是询问你是否继续连接到github?如果你没输入,默认就是NO
你在这里没有输入yes, 代码可以手动输入一下,避免自动回车 不知道下面的是不是大侠说的git配置,我是用命令git config --list --show-origin看到的输出。
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config remote.origin.url=https://github.com/gl-inet/imagebuilder
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master 就是爱瞎折腾 发表于 2022-2-12 16:47
不知道下面的是不是大侠说的git配置,我是用命令git config --list --show-origin看到的输出。
file:.git/c ...
刚刚回复你了,看到因为错误,可以尝试翻译或者百度一下 我刚又试了一下,报错如下:
Cloning into 'imagebuilder'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. 就是爱瞎折腾 发表于 2022-2-12 17:00
我刚又试了一下,报错如下:
Cloning into 'imagebuilder'...
你可以换个思路啊,不要用ssh了,用http形式拉代码呀
安装步骤可以正常编译,不会加其他软件,有详细的教程吗,比如加酸乳plus ffjyx 发表于 2022-2-16 15:16
安装步骤可以正常编译,不会加其他软件,有详细的教程吗,比如加酸乳plus
你手上是有IPK吗?还是源码? 萝卜大侠 发表于 2022-2-16 15:34
你手上是有IPK吗?还是源码?
https://github.com/fw876/helloworld.git
IPK也用LEDE的编译了,直接装上总是有各种小问题 ffjyx 发表于 2022-2-16 17:00
https://github.com/fw876/helloworld.git
IPK也用LEDE的编译了,直接装上总是有各种小问题 ...
软件包的编译我专门写个帖子吧,要点时间,写好了在这里贴链接 ffjyx 发表于 2022-2-16 17:00
https://github.com/fw876/helloworld.git
IPK也用LEDE的编译了,直接装上总是有各种小问题 ...
我这写了个帖子,你看下吧
https://forum.gl-inet.cn/forum.php?mod=viewthread&tid=35&page=1&extra=#pid181
我这个就是以你的helloworld为例子的,不过没编译敏感内容 大神,你这个方法编译的就是你们的定制过的web界面了么 bb218 发表于 2022-4-13 14:21
大神,你这个方法编译的就是你们的定制过的web界面了么
是的呢 大神:自定义的包,menuconfig里面能找到,编译也通过了, 后面清理了配置 make distclean,再次 menuconfig找不到配置项了,有什么办法可以出来么