RK3399- create Ubuntu root file system

1. Install qemu

Installed Linux PC emulator on the host:

sudo apt-get install qemu-user-static

2. Download and extract the ubuntu-core

  Firefly-rk3399 ubuntu root file system is based on Ubuntu base 16.04 to create. A user can ubuntu cdimg download, download selected Ubuntu-Base-Base-arm64.tar.gz-16.04.1 . After downloading, create a temporary folder and extract the root file system:

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

3. Modify the root file system

  Network ready:

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

  Ready qemu

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

  Into the root file system operations:

sudo chroot temp

  Update:

apt update 
apt upgrade

  Installation features they need

apt install vim git .... (according to their own needs to add)

  Install xubuntu

apt install xubuntu-desktop

  

Guess you like

Origin www.cnblogs.com/kay2018/p/10990648.html