handle_crosscompile
sudo rm -rf testing
mkdir -p cache
- sudo eatmydata ${DEBOOTSTRAP} --cache-dir=`pwd`/cache --arch=arm64 --include initramfs-tools,wpasupplicant,tcpdump,vim,tmux,vlan,ntpdate,bridge-utils,parted,curl,wget,grub-efi-arm64,mtr-tiny,dbus,ca-certificates,sudo,openssh-client testing testing http://ftp.fau.de/debian
+ sudo eatmydata ${DEBOOTSTRAP} --cache-dir=`pwd`/cache --arch=arm64 --include initramfs-tools,wpasupplicant,tcpdump,vim,tmux,vlan,ntpdate,parted,curl,wget,grub-efi-arm64,mtr-tiny,dbus,ca-certificates,sudo,openssh-client testing testing http://ftp.fau.de/debian
export KERNEL=`ls -1rt linux-image*.deb | grep -v dbg | tail -1`
cd testing
+ sudo mkdir -p boot/efi
+
sudo bash -c 'echo live > etc/hostname'
sudo bash -c 'echo > etc/motd'
build_efi()
{
(
- rm -f EFI
- mkdir -p EFI/BOOT
+ rm -rf EFI
+ mkdir -p EFI/boot EFI/debian
cp testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi EFI/boot/bootaa64.efi
export INITRD=`ls -1 testing/boot/ | grep initrd`
export VMLINUZ=`ls -1 testing/boot/ | grep vmlinuz`
- export UUID=`disktype build/media | grep UUID | awk '{print $2}'`
- cat > EFI/boot/grub.cfg <<EOF
+ export UUID=`blkid media | awk -F\" '{print $2}'`
+ cat > EFI/debian/grub.cfg <<EOF
search.fs_uuid ${UUID} root
-set prefix=(\$root)'/boot/'
-linux $VMLINUZ root=UUID=${UUID} ro
-inird $INITRD
+linux (\$root)/boot/${VMLINUZ} root=UUID=${UUID} rw
+initrd (\$root)/boot/${INITRD}
boot
EOF
tar czf efi.tgz EFI
{
rm -rf di-stick
mkdir -p di-stick/efi/boot di-stick/efi/debian/
- test -f initrd.gz || wget https://d-i.debian.org/daily-images/arm64/daily/netboot/debian-installer/arm64/initrd.gz
+ rm -f initrd.gz
+ wget https://d-i.debian.org/daily-images/arm64/daily/netboot/debian-installer/arm64/initrd.gz
sudo rm -rf initrd; mkdir initrd; (cd initrd; gzip -cd ../initrd.gz | sudo cpio -imd --quiet)
sudo rm -rf initrd/lib/modules/*
sudo cp -a testing/lib/modules/* initrd/lib/modules/
mkdir -p build
cd build
-sudo apt-get install -y build-essential bash git locales gcc-aarch64-linux-gnu libc6-dev-arm64-cross device-tree-compiler imagemagick ccache eatmydata debootstrap pigz libncurses-dev qemu-user-static binfmt-support rsync git
+sudo apt-get install -y build-essential bash git locales gcc-aarch64-linux-gnu libc6-dev-arm64-cross device-tree-compiler imagemagick ccache eatmydata debootstrap pigz libncurses-dev qemu-user-static binfmt-support rsync git flex bison bc kmod cpio libncurses5-dev libelf-dev:native libssl-dev
build_linux
build_m1n1
build_uboot
build_rootfs
build_live_stick
-build_di_stick
+# build_di_stick
build_dd
build_efi
publish_artefacts