User Tools

Site Tools


libre_computer_board_aml-s905x-cc_le_potato

This is an old revision of the document!


Gentoo Installation on AML-S905X-CC (Le Potato)

Requirements

  • 2x microSD cards
  • USB microSD card adapter
  • Le Potato board
  • usb to tty cable so you can see whats going on over UART

Steps

  1. flash raspian image from Libre Computer to both microSD cards Download
  2. insert one of the microSD cards you flashed into the Le Potato and boot (follow initial setup as required)
  3. insert the second microSD into usb adapter and insert adapter into usb slot on Le Potato, this is where you will make changes and install Gentoo
  4. delete root partion (second partition)
  5. create a swap partition if desired
  6. create a new root partition
  7. mkfs.btrfs on the new root partition
  8. mount new partition at /mnt/gentoo (mkdir if needed)
  9. mount the existing EFI partition on /mnt/gentoo/boot/efi (mkdir first)
  10. cp -rp the firmware, kernel modules, kernel headers and the rest of /boot from the raspian microSD you are booted on to the one on the adapter to the same path
  11. use lsmod and put list of modules into /etc/modules-load.d/raspian-modules.conf
  12. at this point you can mostly follow the normal gentoo amd64 handbook for setup (use end0 for ethernet device)
  13. make sure you adjust /etc/inittab if you want to use the uart interface
    # Architecture specific features
    f0:12345:respawn:/sbin/agetty 115200 ttyAML0 vt100
  14. when you get to bootloader installation/configuration emerge grub with efi-64 (add following to /etc/portage/make.conf)
    GRUB_PLATFORMS="efi-64"
  15. grub-mkconfig -o /boot/grub/grub.cfg
  16. grub-mkstandalone -O arm64-efi -o /boot/efi/EFI/BOOT/BOOTAA64.EFI “boot/grub/grub.cfg=/boot/grub/grub.cfg”

Custom Kernel

  • Branch: v6.0/libretech-master
  • Start with Config from /boot (from Raspbian image)
  • make menuconfig/make/make install/make modules_install
  • emerge dracut
  • dracut –kver=“6.0.19-419654-g73f2949c2dd9”
  • grub-mkconfig -o /boot/grub/grub.cfg
  • grub-mkstandalone -O arm64-efi -o /boot/efi/EFI/BOOT/BOOTAA64.EFI “boot/grub/grub.cfg=/boot/grub/grub.cfg”
libre_computer_board_aml-s905x-cc_le_potato.1681910525.txt.gz · Last modified: 2024/09/22 22:08 (external edit)