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.  firefely-dev 分支,添加 aufs4 系统支持,打上附件补丁 0001-fs-systems-add-aufs4.patch.tar.g
     $ git am 0001-fs-systems-add-aufs4.patch

2. arch/arm/configs/firefly_linux_defconfig 开启部分配置
+CONFIG_AUFS_FS=y
+CONFIG_OVERLAY_FS=y
+CONFIG_POSIX_MQUEUE=y
+CONFIG_POSIX_MQUEUE_SYSCTL=y
+CONFIG_PAGE_COUNTER=y
+CONFIG_MEMCG=y
+CONFIG_NETFILTER_XT_MATCH_IPVS=y

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

3. 编译后,更新内核

二,板子终端,测试

$ curl -sSL https://get.docker.com/ | sh
$ docker pull hello-world
$ docker run hello-world

check-config.sh.tar.gz (3.69 KB)
0001-fs-systems-add-aufs4.patch.tar.gz (208 KB)

楼主,RK3399是否可以同样的方法建立Docker环境

子夜 发表于 2018-10-31 16:35
楼主,RK3399是否可以同样的方法建立Docker环境

可以的

权限不够

问下,这个方式是说要自己重新烧录固件吗?

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”。

怎么解决

请问用RK3399打补丁遇上patch does not apply和already exists in working directory怎么解决?

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

楼主,这个分支不见了

本帖最后由 什里昂 于 2019-3-16 16:59 编辑

firefly-dev分支不在了,怎么进行打补丁?

谁能分享下这个附件aufs的附件补丁 啊

求大佬指点一下附件补丁怎么用?万分感谢

楼主能将firefly-dev仓库推送到github上吗?然后我们自己下载,官网上的firefly-dev分支已经没了。万分感激。希望能尽快得到楼主的帮忙,我的邮箱是1554114880@qq.com

github上的stable-4.4-rk3288-linux分支可以吗?

https://blog.csdn.net/WXXGoodJob/article/details/91420779

https://blog.csdn.net/WXXGoodJob/article/details/91420779

px30能否使用这种方式

楼主,px30上是否可以同样的方法建立Docker环境

get

{:4_89:}