隔壁网

[玩法/技巧] 【v0.11.11】自编译redpill引导图文教程-支持添加自定义驱动

2021-10-4 23:09
24589334
本帖最后由 tossp 于 2021-10-16 00:49 编辑

更新自定义扩展驱动添加

看到天天都有大神辛苦发布redpill引导,我来发个自编译教程吧
还是一样,先是初略版,后面是回复可见的详细版
仔细操作每一步,避免数据毁损
一、需要用到的材料
a)      linux系统或者开启了ssh的群晖6+,记得是6以上才有dockers好像,5也可以啦
b)      docker
二、准备环境
  1. 复制sample_user_config.json为bromolow_user_config.json或者apollolake_user_config.json
  2. 编辑<platform>_user_config.json比如 918+ 就编辑 apollolake_user_config.json 文件
  3. 添加扩展驱动: 比如 redpill_tool_chain.sh add https://raw.githubusercontent.com/tossp/rp-ext/master/mpt3sas/rpext-index.json
  4. 为你想要的平台和版本构建编译镜像: 比如 redpill_tool_chain.sh build apollolake-7.0-41890
  5. 为你想要的平台和版本构建引导: 比如 redpill_tool_chain.sh auto apollolake-7.0-41890
  6. redpill_tool_chain.sh auto运行结束之后,将会在宿主机的./image文件夹中生成 RedPill引导镜像。

  7. <platform>_user_config.json文件中的extensions字段保持为空,会自动打包所有已安装的自定义驱动。 自定义驱动请按需添加,尽量不要加载无关驱动,否则会因为扩展驱动太大导致打包失败。

  8. 依赖: docker
复制代码

三、使用引导
a)     写入刚编译好的镜像
b)     重启完结撒花~

简单版教程结束~~~

  1. Usage: ./redpill_tool_chain.sh <action> <platform version>

  2. Actions: build, auto, run, clean

  3. - build:    Build the toolchain image for the specified platform version.

  4. - auto:     Starts the toolchain container using the previosuly build toolchain image for the specified platform.
  5.             Updates redpill sources and builds the bootloader image automaticaly. Will end the container once done.

  6. - run:      Starts the toolchain container using the previously built toolchain image for the specified platform.
  7.             Interactive Bash terminal.

  8. - clean:    Removes old (=dangling) images and the build cache for a platform version.
  9.             Use ‘all’ as platform version to remove images and build caches for all platform versions.

  10. - add:      To install extension you need to know its index file location and nothing more.
  11.             eg: add 'https://example.com/some-extension/rpext-index.json'

  12. - del:      To remove an already installed extension you need to know its ID.
  13.             eg: del 'example_dev.some_extension'

  14. Available platform versions:
  15. ---------------------
  16. bromolow-6.2.4-25556
  17. bromolow-7.0-41222
  18. bromolow-7.0.1-42218
  19. apollolake-6.2.4-25556
  20. apollolake-7.0-41890
  21. apollolake-7.0.1-42218

  22. Custom Extensions:
  23. ---------------------
  24. pocopico.mpt3sas
  25. thethorgroup.boot-wait
复制代码


不会进入ssh?这篇教程不适合你,建议等待正式版发布

详细版
再次强调仔细操作每一步,避免数据毁损!!!


游客,如果您要查看本帖隐藏内容请回复

PS: 发帖编辑器属实难用
PS1:如果您发现工具链的构建方式有问题或者有改进的想法,请让我知道。对于所有其他问题:请向红丸团队或者社区提出,我知道的并不比其他人多。

1

查看全部评分

分享到 :
35 人收藏
隔壁网希捷酷狼8T硬盘,正品国行,3年换新,只需要1270元,赠送论坛邀请码和VIP!

334 个回复

倒序浏览
缥缈的孤鸿  走火入魔41℃ | 2021-10-5 00:02:02
咦,这个不错,学习了
laniv  低烧37.3℃ | 2021-10-5 15:31:42
谢谢分享经验。
劳烦更新正式版,详细点的,想自己编译。
cheong0hk  宗师 | 2021-10-5 15:40:48
这个不错,学习了
holy745VIP  发热37.1℃ | 2021-10-5 15:42:22
谢谢分享
bvjeff  高烧39℃ | 2021-10-5 15:44:18
这个不错,学习了
tong  禁止发言 | 2021-10-5 15:45:11
var98  感冒37℃ | 2021-10-5 16:22:36
学习学习
s2k7  低烧37.3℃ | 2021-10-5 16:26:16 来自手机
谢谢楼主的分享,学习弄一下
hehe9011  发热37.1℃ | 2021-10-5 16:27:02
感谢分享!!!
xzxiaoshan  低烧37.3℃ | 2021-10-5 16:31:02 来自手机
稳定性如何了
starkiller  低烧37.3℃ | 2021-10-5 16:40:28 来自手机
:daxiao:
ma20at  感冒37℃ | 2021-10-5 16:42:46
还是用别人编译号好的,源码git clone到本地占用空间
wangy6998  烧糊涂40℃ | 2021-10-5 16:55:48
a1243030454  正常36.8℃ | 2021-10-5 17:47:03 来自手机
感谢分享1111
jeniforVIP  中烧38.5℃ | 2021-10-5 17:53:09
我们都要去努力才会得到什么
pcmeihao  发热37.1℃ | 2021-10-5 17:53:47
谢谢分享
degang78  低烧37.3℃ | 2021-10-5 18:23:32
感谢分享
jjttzz  感冒37℃ | 2021-10-5 18:38:49
这个不错,学习了
billgates-li  走火入魔41℃ | 2021-10-5 18:39:43
学习一下,感谢分享!!!
懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

淘宝小店

邀请码

VIP会员

微信客服

公众号

微信群

1111活动,群晖每满300减50,可大刀,暗号芝麻开门。 立即登录 立即注册

小黑屋|手机版|Archiver|隔壁网 ( 粤ICP备14056481号-1 )

Powered by Discuz! X3.4 © 2001-2016 Comsenz Inc.

返回顶部