Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何使用Docker #2

Open
CmST0us opened this issue Sep 28, 2024 · 4 comments
Open

如何使用Docker #2

CmST0us opened this issue Sep 28, 2024 · 4 comments
Labels

Comments

@CmST0us
Copy link
Owner

CmST0us commented Sep 28, 2024

SDK 编译

启动Docker所需的内核依赖已经包含在配置文件中,直接选择 tspi-rk3566-ubuntu_defconfig 编译sdk即可

./build.sh

Ubuntu系统配置

参考这个链接安装Docker
https://docs.docker.com/engine/install/ubuntu/

完成docker 安装后,此时启动 docker 应该会提示失败

修改iptables

使用下面的脚本修改iptables

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

此时就可以正确的启动docker了

@CmST0us CmST0us added the 教程 label Sep 28, 2024
@CmST0us CmST0us pinned this issue Sep 28, 2024
@CN-CaoJun
Copy link

CN-CaoJun commented Jan 7, 2025

我简单做了一个docker image 可以使用的,已经上传到docker hub,可以直接拉取,

docker run --privileged -itd --name tspienv -p 23:22 -v $(sdk_path):/home/work caojunjun/tspienv:latest /bin/bash

@CN-CaoJun
Copy link

我简单做了一个docker image 可以使用的,已经上传到docker hub,可以直接拉取,

docker run --privileged -itd --name tspienv -p 23:22 -v $(sdk_path):/home/work caojunjun/tspienv:latest /bin/bash

由于在docker中默认root运行,因此需要把device/rockchip/common/scripts/mk-rootfs.sh中的所有sudo去掉,最后可以完成编译。

ps: 怎么最后执行99-all.sh的速度很慢

@qq547176052
Copy link

不给特权 --privileged 能正常运行吗

@CmST0us
Copy link
Owner Author

CmST0us commented Jan 10, 2025

不给特权 --privileged 能正常运行吗

可能有问题, 打包的时候要用 loop设备

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants