This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HAOS_VERSION=${HAOS_VERSION:-"16.0"} | |
if ! command -v qemu-system-aarch64 >/dev/null 2>&1 | |
then | |
dnf in -y edk2-ovmf qemu-system-aarch64 seavgabios-bin | |
fi | |
if [[ ! -e haos_generic-aarch64-${HAOS_VERSION}.qcow2 ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ $(id -u) != 0 ] && exit | |
[ ! -d $1 ] && exit | |
daemonize /usr/bin/unshare -fp --mount-proc /lib/systemd/systemd --system-unit=basic.target | |
cat /usr/lib/binfmt.d/qemu-aarch64-static.conf | tee /proc/sys/fs/binfmt_misc/register > /dev/null | |
cp /usr/bin/qemu-aarch64-static $1/usr/bin/ | |
mount -o bind /proc $1/proc | |
mount -o bind /dev $1/dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARNING: Be very very careful when following those steps, you **could** cause permanent and unexpected damages to your console if | |
You don't follow the exact steps of this guide OR perform extra steps not specified in this guide AND followed when not STRICTLY NEEDED | |
WARNING 2: DO NOT FLASH FIRMWARE.BIN | |
If you get the message "Board was not initialized properly. Hang prevented." while booting Linux or Android on Mariko: | |
1. Get this https://github.com/hwfly-nx/hwfly-toolbox/releases/download/1.1.1/hwfly_toolbox.bin | |
2. Put it in `sdcard:/bootloader/payloads` | |
3. Get this https://github.com/hwfly-nx/firmware/releases/download/0.7.1/release_071.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/c-stack.c b/lib/c-stack.c | |
index 5353c08..863f764 100644 | |
--- a/lib/c-stack.c | |
+++ b/lib/c-stack.c | |
@@ -51,13 +51,14 @@ | |
typedef struct sigaltstack stack_t; | |
#endif | |
#ifndef SIGSTKSZ | |
-# define SIGSTKSZ 16384 | |
-#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384 |