RK3399-创建Ubuntu根文件系统

1.安装qemu

在Linux PC主机上安装模拟器:

sudo apt-get install qemu-user-static

2.下载和解压 ubuntu-core

  Firefly-rk3399 ubuntu根文件系统是基于Ubuntu base 16.04来创建的。用户可以到ubuntu cdimg 下载,选择下载ubuntu-base-16.04.1-base-arm64.tar.gz 。下载完之后,创建临时文件夹并解压根文件系统:

mkdir temp
sudo tar -xpf ubuntu-base-16.04.1-base-arm64.tar.gz -C temp

3.修改根文件系统

  准备网络:

sudo cp -b /etc/resolv.conf temp/etc/resolv.conf

  准备qemu

sudo cp /usr/bin/qemu-aarch64-static temp/usr/bin/

  进入根文件系统进行操作:

sudo chroot temp

  更新:

apt update 
apt upgrade

  安装自己需要的功能

apt install vim git ....(根据自己需求添加)

  安装xubuntu

apt install xubuntu-desktop

  

猜你喜欢

转载自www.cnblogs.com/kay2018/p/10990648.html