Is this working with LX2162a and is it possible to use grub behind u-boot?
apt install btrfs-progs
mkfs.btrfs /dev/nvme0n1p1
mount /dev/nvme0n1p1 /mnt
cd /mnt
# change 20200609 with what's available here http://distfiles.gentoo.org/experimental/arm64/
wget http://distfiles.gentoo.org/experimental/arm64/stage3-arm64-20200609.tar.bz2
mount --rbind /dev dev
mount --make-rslave dev
mount -t proc /proc proc
mount --rbind /sys sys
mount --make-rslave sys
mount --rbind /tmp tmp
cp /etc/resolv.conf etc
chroot . /bin/bash
env-update && . /etc/profile
emerge-webrsync
emerge superadduser openssh vim
# Set the root password
passwd
# enable root login
vim /etc/ssh/sshd_config
# or create your user
superadduser your_user
ln -s /etc/init.d/net.{lo,eth0}
rc-update add sshd default
reboot
I tried to adapt this guide to ArchLinuxARM but it doesn’t boot with the generic image on
libera.chat they said that will be a problem with u-boot. Is there a way to adapt u-boot for ArchLinux?
Those instructions should be correct. What those instructions are doing is only using Gentoo userspace from a different storage medium. The LX2162a is still booting from the eMMC using the vendor bootloader and kernel, and then switching to a Gentoo based userspace.
I am a bit confused here. What is the problem? According to the logs u-boot is trying mmc0 and failing and switching to mmc1 where it finds the extlinux.conf and is loading /boot/Image.gz and the .dtb from mmc 1:1, the kernel is booting and then initializing mmcblk1p1 as the rootfs.
If you want to change the rootfs then you need to change the root= line in the extlinux.conf on the eMMC filesystem to point to your sata/usb/nvme device.