Toybrick

标题: docker support in fedora [打印本页]

作者: kaishi    时间: 2019-3-26 00:36
标题: docker support in fedora
I install docker, but there is an error after the installation.
Does anyone have a success to install docker and run it?


作者: 程子    时间: 2019-3-26 10:26
为啥要在板子上跑Docker?
作者: kaishi    时间: 2019-3-26 11:24
程子 发表于 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    时间: 2019-3-26 11:33
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    时间: 2019-3-26 14:31
不建议在板子上跑docker,原因有几个:
1. docker不适合嵌入式设备,容器的运行速度较慢
2. docker无法映射所有设备节点到容器,我们没有像nvidia-docker那样把gpu硬件设备都映射到容器的工程,所有都得你手动去映射

所以你在板子上跑docker只能用到cpu而已。。。
作者: jefferyzhang    时间: 2019-3-26 16:00
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    时间: 2019-3-26 16:08
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    时间: 2019-3-26 17:04
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







欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3