Toybrick

docker support in fedora

kaishi

中级会员

积分
306
楼主
发表于 2019-3-26 00:36:28    查看: 9216|回复: 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

版主

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

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

使用道具 举报

jefferyzhang

版主

积分
13580
6#
发表于 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
7#
 楼主| 发表于 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
8#
发表于 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


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