I just got the board (le potato) a couple days ago. I flashed ubuntu to the SD card and that can boot no problem.
My eventual goal is to run Gentoo on this thing, so I set about trying to get a custom kernel running. Unfortunately, I haven’t had any success with this. I’ve worked backwards to the point where I’m just compiling with default parameters and I’m still not able to boot successfully.
What I’ve done:
Flashed bootloader using the lft, no problems there, it works fine.
Compiled kernel (libre-computer-project/libretech-linux branch v6.0/libretech-master) using the default parameters (make defconfig) and moved the compiled kernel to the EFI partition
Booted using bootefi
The kernel does boot, but I don’t get any output beyond the EFI stub. Recompiling with no DRM gets me console output, and it shows that the root filesystem is mounted successfully. I currently have init=/bin/sh for debugging, and while I get the message that it is calling /bin/sh as init, nothing happens after that. The system just hangs.
There are no errors or kernel panic or anything. Using sysrq keys still generates console output, as does removing / inserting USB devices.
Am I missing something in the boot sequence? My best guess is I’m missing something to do with hardware initialization. Help would be greatly appreciated!
exit/umount/take the gentoo card out of the usb adapter and put in the microsd slot in the board replacing the raspian one and reboot
I am attempting a custom kernel as well now using the same source you are and the config from the raspian boot dir. I just basically added mouse_dev for gpm at this point and we’ll see how that goes and i’ll clean up and strip the kernel the way i’ve always done with an x86 kernel. Hopefully it goes well. I’m curious if any of the modules in use only work as modules or anything you’ve learned…
UPDATE: using the source OP mentioned, started with config from raspian image compiles and installs fine, added a couple things and started stripping stuff out, following standard gentoo for creating dracut, installing modules works fine. Generate grub config as normal and reinstall standalone grub EFI using command above. Boots and works as expected.