共享VS-RK3399主板ARM版本的ubuntu系统镜像
0赞RK3399的wiki中给出的编译内核和制作文件系统的方法完全正确,只是写的不太详细,应该把RK3288和RK3399的wiki结合起来看就没有问题了。这里我只是总结一下,把需要注意到的地方再重复一遍而已,需要注意的地方高亮显示。
制作文件系统:
1.下载http://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/。随意下载啦。
2.安装虚拟机apt-get install qemu-user-static
3.解压文件:
mkdir temp
tar -xpf ubuntu-base-16.04.1-base-arm64.tar.gz -C temp
4.运行虚拟机,把下载的ubuntu在虚拟机中跑起来,至少第二步是要做的,否则运行不了:
cp -b /etc/resolv.conf temp/etc/resolv.conf
cp /usr/bin/qemu-aarch64-static temp/usr/bin/
在temp的上级目录中执行chroot temp,此时就是运行在虚拟机中了。
5.配置虚拟机中的ubuntu:
apt update
apt upgrade
#可以安装桌面,如apt install xubuntu-desktop,这样生成的文件小,制作和烧写的过程快。
useradd -s '/bin/bash' -m -G adm,sudo videostrong
passwd videostrong
passwd root
exit
6.最后一步,生成rootfs文件:
dd if=/dev/zero of=linuxroot.img bs=1M count=2048
sudo mkfs.ext4 linuxroot.img
mkdir rootfs
sudo mount linuxroot.img rootfs/
sudo cp -rfp temp/* rootfs/
sudo umount rootfs/
e2fsck -p -f linuxroot.img
resize2fs -M linuxroot.img
VS-RK3399支持ubuntu1604-64位的ubuntu桌面系统!