aboutsummaryrefslogtreecommitdiffstats
path: root/install-hyperbola
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-10-11 12:08:14 -0500
committerJesús <heckyel@hyperbola.info>2019-10-11 12:08:14 -0500
commita5e78d45dd9ba836a25c0055cec3f89834b261f0 (patch)
tree9cf543f0c8141d44cdaf5554b25ac5b956b13624 /install-hyperbola
parent6b655a56593554b341472177371fb8d2c0deda79 (diff)
downloadbook-a5e78d45dd9ba836a25c0055cec3f89834b261f0.tar.lz
book-a5e78d45dd9ba836a25c0055cec3f89834b261f0.tar.xz
book-a5e78d45dd9ba836a25c0055cec3f89834b261f0.zip
[install-hyperbola] support ASUS
Diffstat (limited to 'install-hyperbola')
-rw-r--r--install-hyperbola/asus/grub.cfg34
-rw-r--r--install-hyperbola/asus/install.md96
-rw-r--r--install-hyperbola/asus/uefi.md56
3 files changed, 186 insertions, 0 deletions
diff --git a/install-hyperbola/asus/grub.cfg b/install-hyperbola/asus/grub.cfg
new file mode 100644
index 0000000..7d59e33
--- /dev/null
+++ b/install-hyperbola/asus/grub.cfg
@@ -0,0 +1,34 @@
+insmod part_gpt
+insmod part_msdos
+insmod fat
+insmod efi_gop
+insmod efi_uga
+insmod video_bochs
+insmod video_cirrus
+insmod font
+
+if loadfont "${prefix}/fonts/unicode.pf2" ; then
+ insmod gfxterm
+ set gfxmode="1024x768x32;auto"
+ terminal_input console
+ terminal_output gfxterm
+fi
+
+menuentry "Hyperbola GNU/Linux-libre x86_64" {
+ set gfxpayload=keep
+ search --no-floppy --set=root --label HYPER_v029
+ echo 'Loading linux-libre-lts kernel...'
+ linux /hyperbola/boot/x86_64/vmlinuz archisobasedir=hyperbola hyperisolabel=HYPER_v029 add_efi_memmap
+ echo 'Cargando imagen de memoria inicial...'
+ initrd /hyperbola/boot/x86_64/hyperiso.img
+}
+
+menuentry "UEFI Shell x86_64 v2" {
+ search --no-floppy --set=root --label HYPER_v029
+ chainloader /EFI/shellx64_v2.efi
+}
+
+menuentry "UEFI Shell x86_64 v1" {
+ search --no-floppy --set=root --label HYPER_v029
+ chainloader /EFI/shellx64_v1.efi
+}
diff --git a/install-hyperbola/asus/install.md b/install-hyperbola/asus/install.md
new file mode 100644
index 0000000..0373dc4
--- /dev/null
+++ b/install-hyperbola/asus/install.md
@@ -0,0 +1,96 @@
+### ASUS x205TA
+
+
+
+###### General Installation procedure (standard install on EFI):
+ 1. Use conection `wpa_supplicant`
+ `wpa_supplicant -B -i <name-device> -c <(wpa_passphrase "ssid" "psk")`
+ 2. Start ssh `# rc-service sshd start`
+ 3. Connect to machine via SSH
+ 4. Visit https://www.hyperbola.info/mirrorlist/ on another computer, generate mirrorlist
+ 5. Edit /etc/pacman.d/mirrorlist on the Hyperbola computer and paste the faster servers
+ 6. Update package indexes: `# pacman -Syyy`
+ 7. Create efi partition:
+
+ `# fdisk /dev/mmcblk1`
+
+ * g (to create an empty GPT partition table)
+ * n
+ * 1
+ * enter
+ * +300M
+ * t
+ * 1 (For EFI)
+ * w
+
+ 8. Create root partition:
+
+ `# fdisk /dev/mmcblk1`
+
+ * n
+ * 2
+ * enter
+ * +30G
+ * w
+
+ 9. Create home partition:
+
+ `# fdisk /dev/mmcblk1`
+
+ * n
+ * 3
+ * enter
+ * enter
+ * w
+
+ 10. `# mkfs.fat -F32 /dev/mmcblk1p1`
+ 11. Format devices
+ `# mkfs.ext4 /dev/mmcblk1p2`
+ `# mkfs.ext4 /dev/mmcblk1p3`
+
+ 12. Make Home directory
+ `# mkdir /mnt/home`
+
+ 13. `# mount /dev/mmcblk1p2 /mnt`
+ `# mount /dev/mmcblk1p3 /mnt/home`
+
+ 14. `# pacstrap -i /mnt base base-devel grub-bios networkmanager xf86-input-synaptics kernel-firmware`
+ 15. `# genfstab -U -p /mnt >> /mnt/etc/fstab`
+ 16. `# arch-chroot /mnt`
+ 17. `# pacman -S base-devel grub efibootmgr dosfstools openssh os-prober mtools linux-libre-lts-api-headers linux-libre-lts`
+ 18. `# nano /etc/locale.gen` (uncomment es_ES.UTF-8)
+ 19. `# locale-gen`
+ 20. Enable `root` logon via `ssh`
+ 21. `# rc-update add sshd default`
+ 22. `# passwd` (for setting root password)
+
+ 23. Build EFI (before `arch-chroot /mnt`)
+ `# mkdir /boot/efi`
+ `# mount /dev/mmcblk1p1 /boot/efi`
+ `# mkdir /boot/efi/EFI/BOOT`
+ `# cp -v /boot/efi/EFI/GRUB/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI`
+
+ 24. `nano -w /boot/efi/startup.nsh`
+
+ ```bash
+ bcf boot add 1 fs0:\EFI\GRUB\grubx64.efi "Hyper GRUB bootloader"
+ ```
+
+ 25. `# grub-install --target=x86_64-efi --bootloader-id=GRUB --recheck --efi-directory=/boot/efi`
+
+ 26. `# cp /usr/share/locale/es/LC_MESSAGES/grub.mo /boot/grub/locale/es.mo`
+ 27. `# grub-mkconfig -o /boot/grub/grub.cfg`
+
+ 28. Build botia32.efi (necessary in ASUSx205TA)
+ `# grub-mkstandalone -d /usr/lib/grub/i386-efi/ -O i386-efi --modules="part_gpt part_msdos" --fonts="unicode" --locales="uk" --themes="" -o "/boot/efi/EFI/GRUB/bootia32.efi" "boot/grub/grub.cfg=/boot/grub/grub.cfg" -v`
+ `# cp -v /boot/efi/EFI/GRUB/bootia32.efi /boot/efi/EFI/BOOT/BOOTIA32.EFI`
+
+ 29. Create swap file:
+ * `# fallocate -l 2G /swapfile`
+ * `# chmod 600 /swapfile`
+ * `# mkswap /swapfile`
+ * `# echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab`
+
+ 30. `$ exit`
+ 31. `# umount -a`
+ 32. `# reboot`
diff --git a/install-hyperbola/asus/uefi.md b/install-hyperbola/asus/uefi.md
new file mode 100644
index 0000000..84bb4da
--- /dev/null
+++ b/install-hyperbola/asus/uefi.md
@@ -0,0 +1,56 @@
+### Escribiendo grub
+
+$ nano -w grub.cfg
+
+```
+insmod part_gpt
+insmod part_msdos
+insmod fat
+insmod efi_gop
+insmod efi_uga
+insmod video_bochs
+insmod video_cirrus
+insmod font
+
+if loadfont "${prefix}/fonts/unicode.pf2" ; then
+ insmod gfxterm
+ set gfxmode="1024x768x32;auto"
+ terminal_input console
+ terminal_output gfxterm
+fi
+
+menuentry "Hyperbola GNU/Linux-libre x86_64" {
+ set gfxpayload=keep
+ search --no-floppy --set=root --label HYPER_v029
+ echo 'Loading linux-libre-lts kernel...'
+ linux /hyperbola/boot/x86_64/vmlinuz archisobasedir=hyperbola hyperisolabel=HYPER_v029 add_efi_memmap
+ echo 'Cargando imagen de memoria inicial...'
+ initrd /hyperbola/boot/x86_64/hyperiso.img
+}
+
+menuentry "UEFI Shell x86_64 v2" {
+ search --no-floppy --set=root --label HYPER_v029
+ chainloader /EFI/shellx64_v2.efi
+}
+
+menuentry "UEFI Shell x86_64 v1" {
+ search --no-floppy --set=root --label HYPER_v029
+ chainloader /EFI/shellx64_v1.efi
+}
+```
+
+
+### Construyendo bootia32.efi
+
+```bash
+grub-mkstandalone -d /usr/lib/grub/i386-efi/ \
+ -O i386-efi --modules="part_gpt part_msdos" \
+ --fonts="unicode" --locales="uk" --themes="" \
+ -o "/output/path/bootia32.efi" "boot/grub/grub.cfg=/to/path/grub.cfg" \
+ -v
+```
+
+Recuerde cambiar `/output/path` y `/to/path/` por sus respectivo directorios
+
+### Copiar bootia32.efi
+Copie el archivo (bootia32.efi) al directorio /EFI/BOOT de la memoria usb