Toybrick

docker support in fedora

kaishi

中级会员

积分
306
发表于 2019-3-26 00:36:28    查看: 6505|回复: 7 | [复制链接]    打印 | 显示全部楼层
I install docker, but there is an error after the installation.
Does anyone have a success to install docker and run it?

回复

使用道具 举报

程子

中级会员

积分
386
发表于 2019-3-26 10:26:48 | 显示全部楼层
为啥要在板子上跑Docker?
回复

使用道具 举报

kaishi

中级会员

积分
306
 楼主| 发表于 2019-3-26 11:24:56 | 显示全部楼层
程子 发表于 2019-3-26 10:26
为啥要在板子上跑Docker?

Easy to deploy SW and avoid installing a lot of SWs on the system.
Also there are  some open source packages which are available on the docker format and it needs a docker to run it
回复

使用道具 举报

kaishi

中级会员

积分
306
 楼主| 发表于 2019-3-26 11:33:17 | 显示全部楼层
The possible reason of docker doesn't work properly because kernel has missing some mouldes.
Is there a document to describe how to compile kernel and update to fedora system?
回复

使用道具 举报

jefferyzhang

版主

积分
12919
发表于 2019-3-26 14:31:33 | 显示全部楼层
不建议在板子上跑docker,原因有几个:
1. docker不适合嵌入式设备,容器的运行速度较慢
2. docker无法映射所有设备节点到容器,我们没有像nvidia-docker那样把gpu硬件设备都映射到容器的工程,所有都得你手动去映射

所以你在板子上跑docker只能用到cpu而已。。。
回复

使用道具 举报

jefferyzhang

版主

积分
12919
发表于 2019-3-26 16:00:36 | 显示全部楼层
kaishi 发表于 2019-3-26 11:33
The possible reason of docker doesn't work properly because kernel has missing some mouldes.
Is ther ...

If docker need sth. modules, you can 'make menuconfig' and re-make kernel by yourself.
I don't suggest running docker in Toybrick, because docker is not good enough for embedded devices,
1. It is slowly running for Arm.
2. We don't have hardware compatible layer for docker (sth. like nvidia-docker), so if you running docker in Toybrick,   it will only cpu work.
回复

使用道具 举报

kaishi

中级会员

积分
306
 楼主| 发表于 2019-3-26 16:08:38 | 显示全部楼层
2 questions:
1) Where is the kernel source file which I can download?
2) After I compile new kernel, how can I update it to my system?

Thanks,
回复

使用道具 举报

addy

超级版主

积分
609
发表于 2019-3-26 17:04:43 | 显示全部楼层
1. How to get kernel images: boot_linux.img
First: you should download source code from: repo init --repo-url  http://github.com/aosp-mirror/tools_repo.git -u http://github.com/rockchip-toybrick/manifest.git -b master -m rk3399pro.xml, which include u-boot, kernel and android8.1 source code.

Second, enter kernel directory, and run: ./make.sh linux

And then, you can get boot_linux.img, which packed with kernel image and dt table resource

Also, you can get Image from arch/arm64/boot, and rk3399pro-prod-linux.dtb from arch/arm64/boot/dts/rockchip/

2. How to update new kernel, there are two ways:

1) mount boot_linux partition to /mnt, and copy Image & dtb to /mnt/extlinux/
    ps: run cat /proc/cmdline to find which is boot_linux partition

2) Downlaod flash tool from https://rockchips-my.sharepoint. ... 0JWEl1cszw?e=tuVaPd, select boot_linux and download boot_linux.img to board


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表