Firefly开源社区

标题: RK3288 Docker 环境构建 [打印本页]

作者: luvings    时间: 2018-9-3 15:03
标题: RK3288 Docker 环境构建
本帖最后由 luvings 于 2018-9-18 18:00 编辑

基础:
1、 firefly-rk3288
2.   kernel-4.4,  firefly 分支   ---->  git clone -b firefly-dev https://github.com/FireflyTeam/kernel.git

步骤:
一. Ubuntu 16.04 运行 Docker ,内核需要开启一些配置
  1. 1.  firefely-dev 分支,添加 aufs4 系统支持,打上附件补丁 0001-fs-systems-add-aufs4.patch.tar.g
  2.      $ git am 0001-fs-systems-add-aufs4.patch

  3. 2. arch/arm/configs/firefly_linux_defconfig 开启部分配置
  4. +CONFIG_AUFS_FS=y
  5. +CONFIG_OVERLAY_FS=y
  6. +CONFIG_POSIX_MQUEUE=y
  7. +CONFIG_POSIX_MQUEUE_SYSCTL=y
  8. +CONFIG_PAGE_COUNTER=y
  9. +CONFIG_MEMCG=y
  10. +CONFIG_NETFILTER_XT_MATCH_IPVS=y

  11. 附件 check-config.sh.tar.g ---- > 检测内核配置开启情况,开启以上几个即可,不必全部开启,根据需求开启。

  12. 3. 编译后,更新内核
复制代码

二,板子终端,测试
  1. $ curl -sSL https://get.docker.com/ | sh
  2. $ docker pull hello-world
  3. $ docker run hello-world
复制代码





check-config.sh.tar.gz

3.69 KB, 下载次数: 50, 下载积分: 灯泡 -1 , 经验 -1

0001-fs-systems-add-aufs4.patch.tar.gz

208.42 KB, 下载次数: 65, 下载积分: 灯泡 -1 , 经验 -1


作者: 子夜    时间: 2018-10-31 16:35
楼主,RK3399是否可以同样的方法建立Docker环境
作者: luvings    时间: 2018-11-8 10:19
子夜 发表于 2018-10-31 16:35
楼主,RK3399是否可以同样的方法建立Docker环境

可以的
作者: wzh    时间: 2018-12-10 15:49
权限不够
作者: wx_hii_F0HNZ    时间: 2018-12-14 13:26
问下,这个方式是说要自己重新烧录固件吗?
作者: cnrobot    时间: 2018-12-20 17:51
git am 0001-fs-systems-add-aufs4.patch
正应用:fs: systems: add aufs4
/kernel/.git/rebase-apply/patch:707: trailing whitespace.
#
/kernel/.git/rebase-apply/patch:712: trailing whitespace.
#
/kernel/.git/rebase-apply/patch:717: trailing whitespace.
#
/kernel/.git/rebase-apply/patch:884: trailing whitespace.
#
/kernel/.git/rebase-apply/patch:889: trailing whitespace.
#
error: arch/arm/configs/firefly_linux_defconfig:和索引不匹配
补丁失败于 0001 fs: systems: add aufs4
失败的补丁文件副本位于:
   /kernel/.git/rebase-apply/patch
当您解决了此问题后,执行 "git am --continue"。
如果您想跳过此补丁,则执行 "git am --skip"。
要恢复原分支并停止打补丁,执行 "git am --abort"。

怎么解决
作者: zcjdttt    时间: 2018-12-20 20:49
请问用RK3399打补丁遇上patch does not apply和already exists in working directory怎么解决?
作者: zcjdttt    时间: 2018-12-20 20:51
zcjdttt 发表于 2018-12-20 20:49
请问用RK3399打补丁遇上patch does not apply和already exists in working directory怎么解决?

error: include/linux/fs.h: patch does not apply
error: patch failed: include/linux/mm.h:1201
error: include/linux/mm.h: patch does not apply
error: patch failed: include/linux/mm_types.h:273
error: include/linux/mm_types.h: patch does not apply
error: patch failed: include/linux/splice.h:83
error: include/linux/splice.h: patch does not apply
error: patch failed: include/uapi/linux/Kbuild:59
error: include/uapi/linux/Kbuild: patch does not apply
error: include/uapi/linux/aufs_type.h: already exists in working directory
error: patch failed: kernel/fork.c:477
error: kernel/fork.c: patch does not apply
error: patch failed: mm/Makefile:40
error: mm/Makefile: patch does not apply
error: patch failed: mm/filemap.c:2143
error: mm/filemap.c: patch does not apply
error: patch failed: mm/memory.c:2076
error: mm/memory.c: patch does not apply
error: patch failed: mm/mmap.c:287
error: mm/mmap.c: patch does not apply
error: patch failed: mm/nommu.c:671
error: mm/nommu.c: patch does not apply
error: mm/prfile.c: already exists in working directory

作者: wc45612301    时间: 2019-1-3 11:50
楼主,这个分支不见了
作者: 什里昂    时间: 2019-3-16 15:55
本帖最后由 什里昂 于 2019-3-16 16:59 编辑

firefly-dev分支不在了,怎么进行打补丁?
作者: 什里昂    时间: 2019-3-16 16:36
谁能分享下这个附件aufs的附件补丁 啊

作者: 什里昂    时间: 2019-3-16 16:42
求大佬指点一下附件补丁怎么用?万分感谢
作者: 什里昂    时间: 2019-3-16 17:30
楼主能将firefly-dev仓库推送到github上吗?然后我们自己下载,官网上的firefly-dev分支已经没了。万分感激。希望能尽快得到楼主的帮忙,我的邮箱是1554114880@qq.com
作者: korgo    时间: 2019-6-11 16:20
github上的stable-4.4-rk3288-linux分支可以吗?
作者: daijun5109    时间: 2019-8-20 14:45
https://blog.csdn.net/WXXGoodJob/article/details/91420779
作者: daijun5109    时间: 2019-8-20 16:14
https://blog.csdn.net/WXXGoodJob/article/details/91420779
作者: zhangbbbb    时间: 2020-4-26 19:04
px30能否使用这种方式
作者: 及时雨    时间: 2021-4-3 18:23
楼主,px30上是否可以同样的方法建立Docker环境

作者: linjinqing    时间: 2021-9-15 14:01
get
作者: peixiuhui    时间: 2022-4-18 10:32

作者: 九环    时间: 2022-5-3 12:48
更新内核后起不来。   卡在  dvdd_1v2  diableing   下一句日志日期都输出不全。
作者: cs911yn    时间: 2022-8-1 21:48

git am 0001-fs-systems-add-aufs4.patch
正应用:fs: systems: add aufs4
/kernel/.git/rebase-apply/patch:707: trailing whitespace.
#
/kernel/.git/rebase-apply/patch:712: trailing whitespace.
#
/kernel/.git/rebase-apply/patch:717: trailing whitespace.
#
/kernel/.git/rebase-apply/patch:884: trailing whitespace.
#
/kernel/.git/rebase-apply/patch:889: trailing whitespace.
#
error: arch/arm/configs/firefly_linux_defconfig:和索引不匹配
补丁失败于 0001 fs: systems: add aufs4
失败的补丁文件副本位于:
   /kernel/.git/rebase-apply/patch
当您解决了此问题后,执行 "git am --continue"。
如果您想跳过此补丁,则执行 "git am --skip"。
要恢复原分支并停止打补丁,执行 "git am --abort"。
作者: cs911yn    时间: 2022-8-1 23:03
问下,这个方式是说要自己重新烧录固件吗?
作者: dirty    时间: 2022-9-29 16:38
挺好的资料
作者: JustTry    时间: 2022-12-7 08:49
谢谢
作者: wx__onTK3t    时间: 2023-4-20 17:09
有人有成功安裝docker嗎?
是否有更詳盡的步驟
作者: wx__onTK3t    时间: 2023-4-27 10:38
麻煩大家了,謝謝
作者: 陈虎    时间: 2024-2-13 17:03
谢谢
作者: duzailian    时间: 2024-4-4 13:59
谢谢分享




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1