I made a few mistakes but now it works:
Ready to use solution: https://codeberg.org/AVG7/diy_hardened_alpine_linux
Create Initramfs and modloop File, this guides will help:
https://wiki.alpinelinux.org/wiki/DIY_Fu...r_ARM_SOCs
https://a-delacruz.github.io/alpine/alpine-linux.html
Delete from the Alpine Linux Download all folders except the folders “apks” “boot” and “alpine.apkovl.tar.gz”. Replace all files in the dtbs and boot-folder with the files from ayufan (https://github.com/ayufan-rock64/linux-kernel/releases) or https://codeberg.org/AVG7/diy_hardened_alpine_linux and your initramfs and modloop file.
Create a textfile and name it extlinux.conf with the following content (replace XXX with the filenames of the files from ayufan and your initramfs and modloop file):
LABEL XXX
KERNEL /boot/vmlinuz-XXX
INITRD /boot/initramfs-XXX
FDT /boot/dtbs/XXX.dtb
APPEND modules=loop,squashfs,sd-mod,usb-storage
Create a folder in the boot-folder with name extlinux and place in this folder the extlinux.conf textfile.
Then for SPI follow this guide: https://github.com/ayufan-rock64/linux-b...ash-spi.md
Then create a partition on a emty sdcard with gparted and mark it bootable. Place the folder “apks” “boot” and “alpine.apkovl.tar.gz” on the sdcard.
Use Serial Console (https://forum.pine64.org/showthread.php?tid=4928) at first boot if hdmi does not work at first boot.
Then run setup-alpine.
Or simply follow this guide: https://codeberg.org/AVG7/diy_hardened_alpine_linux
Good to know:
Howto cross-compile Upstream U-Boot for rock64: https://forum.pine64.org/showthread.php?tid=8174
This page has been archived:
http://archive.is/w3uQN
https://web.archive.org/web/201910222216...881&page=2
Ready to use solution: https://codeberg.org/AVG7/diy_hardened_alpine_linux
Create Initramfs and modloop File, this guides will help:
https://wiki.alpinelinux.org/wiki/DIY_Fu...r_ARM_SOCs
https://a-delacruz.github.io/alpine/alpine-linux.html
Delete from the Alpine Linux Download all folders except the folders “apks” “boot” and “alpine.apkovl.tar.gz”. Replace all files in the dtbs and boot-folder with the files from ayufan (https://github.com/ayufan-rock64/linux-kernel/releases) or https://codeberg.org/AVG7/diy_hardened_alpine_linux and your initramfs and modloop file.
Create a textfile and name it extlinux.conf with the following content (replace XXX with the filenames of the files from ayufan and your initramfs and modloop file):
LABEL XXX
KERNEL /boot/vmlinuz-XXX
INITRD /boot/initramfs-XXX
FDT /boot/dtbs/XXX.dtb
APPEND modules=loop,squashfs,sd-mod,usb-storage
Create a folder in the boot-folder with name extlinux and place in this folder the extlinux.conf textfile.
Then for SPI follow this guide: https://github.com/ayufan-rock64/linux-b...ash-spi.md
Then create a partition on a emty sdcard with gparted and mark it bootable. Place the folder “apks” “boot” and “alpine.apkovl.tar.gz” on the sdcard.
Use Serial Console (https://forum.pine64.org/showthread.php?tid=4928) at first boot if hdmi does not work at first boot.
Then run setup-alpine.
Or simply follow this guide: https://codeberg.org/AVG7/diy_hardened_alpine_linux
Good to know:
Howto cross-compile Upstream U-Boot for rock64: https://forum.pine64.org/showthread.php?tid=8174
This page has been archived:
http://archive.is/w3uQN
https://web.archive.org/web/201910222216...881&page=2