forked from sipeed/LonganPi-3H-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkrootfs.sh
executable file
·38 lines (33 loc) · 1.55 KB
/
mkrootfs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
if [ -z "$MMDEBSTRAP" ]
then
MMDEBSTRAP=mmdebstrap
fi
mkdir build
set -eux
genrootfs() {
echo "
deb [trusted=yes] https://mirror.aarnet.edu.au/debian/ testing main contrib non-free non-free-firmware
deb [trusted=yes] https://mirror.aarnet.edu.au/debian/ testing-updates main contrib non-free non-free-firmware
deb [trusted=yes] https://mirror.aarnet.edu.au/debian/ testing-backports main contrib non-free non-free-firmware
deb [trusted=yes] https://mirror.aarnet.edu.au/debian-security/ testing-security main contrib non-free non-free-firmware
" | $MMDEBSTRAP --aptopt='Dir::Etc::Trusted "/usr/share/keyrings/debian-archive-keyring.gpg"' --architectures=arm64 -v -d \
--include="ca-certificates locales dosfstools binutils file \
tree sudo bash-completion memtester openssh-server wireless-regdb \
wpasupplicant systemd-timesyncd usbutils parted systemd-sysv \
iperf3 stress-ng avahi-daemon tmux screen i2c-tools net-tools \
ethtool ckermit lrzsz minicom picocom btop neofetch iotop htop \
bmon e2fsprogs nvi tcpdump alsa-utils squashfs-tools evtest \
bluez bluez-hcidump bluez-tools btscanner bluez-alsa-utils \
device-tree-compiler debian-archive-keyring connman-gtk chromium\
linux-cpupower task-xfce-desktop xfce4-terminal xfce4-screenshooter \
pulseaudio-module-bluetooth blueman fonts-noto-core fonts-noto-cjk \
fonts-noto-mono fonts-noto-ui-core tango-icon-theme" > ./build/rootfs.tar
}
genrootfs # if you want skip debian rootfs build, please comment this line
cd overlay
for i in *
do
tar --append --file=../build/rootfs.tar $i
done
cd ..