扫描二维码关注官方公众号
返回列表 发布新帖

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

 火...
27155 335
发表于 2021-10-4 23:09:50 | 显示全部楼层 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 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:如果您发现工具链的构建方式有问题或者有改进的想法,请让我知道。对于所有其他问题:请向红丸团队或者社区提出,我知道的并不比其他人多。

评论335

缥缈的孤鸿Lv.8 发表于 2021-10-5 00:02:02 | 显示全部楼层
咦,这个不错,学习了
回复 点赞

使用道具 举报

lanivLv.4 发表于 2021-10-5 15:31:42 | 显示全部楼层
谢谢分享经验。
劳烦更新正式版,详细点的,想自己编译。
回复 点赞

使用道具 举报

cheong0hkLv.10 发表于 2021-10-5 15:40:48 | 显示全部楼层
这个不错,学习了
回复 点赞

使用道具 举报

holy745VIPLv.3 发表于 2021-10-5 15:42:22 | 显示全部楼层
谢谢分享
回复 点赞

使用道具 举报

bvjeffLv.6 发表于 2021-10-5 15:44:18 | 显示全部楼层
这个不错,学习了
回复 点赞

使用道具 举报

tong 发表于 2021-10-5 15:45:11 | 显示全部楼层
回复 点赞

使用道具 举报

var98Lv.2 发表于 2021-10-5 16:22:36 | 显示全部楼层
学习学习
回复 点赞

使用道具 举报

s2k7Lv.4 发表于 2021-10-5 16:26:16 来自手机 | 显示全部楼层
谢谢楼主的分享,学习弄一下
回复 点赞

使用道具 举报

hehe9011Lv.3 发表于 2021-10-5 16:27:02 | 显示全部楼层
感谢分享!!!
回复 点赞

使用道具 举报

xzxiaoshanLv.4 发表于 2021-10-5 16:31:02 来自手机 | 显示全部楼层
稳定性如何了
回复 点赞

使用道具 举报

starkillerLv.4 发表于 2021-10-5 16:40:28 来自手机 | 显示全部楼层
:daxiao:
回复 点赞

使用道具 举报

ma20atLv.2 发表于 2021-10-5 16:42:46 | 显示全部楼层
还是用别人编译号好的,源码git clone到本地占用空间
回复 点赞

使用道具 举报

wangy6998Lv.7 发表于 2021-10-5 16:55:48 | 显示全部楼层
回复 点赞

使用道具 举报

a1243030454Lv.1 发表于 2021-10-5 17:47:03 来自手机 | 显示全部楼层
感谢分享1111
回复 点赞

使用道具 举报

jeniforVIPLv.5 发表于 2021-10-5 17:53:09 | 显示全部楼层
我们都要去努力才会得到什么
回复 点赞

使用道具 举报

pcmeihaoLv.3 发表于 2021-10-5 17:53:47 | 显示全部楼层
谢谢分享
回复 点赞

使用道具 举报

degang78Lv.4 发表于 2021-10-5 18:23:32 | 显示全部楼层
感谢分享
回复 点赞

使用道具 举报

jjttzzLv.2 发表于 2021-10-5 18:38:49 | 显示全部楼层
这个不错,学习了
回复 点赞

使用道具 举报

billgates-liLv.8 发表于 2021-10-5 18:39:43 | 显示全部楼层
学习一下,感谢分享!!!
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表