Can a PBP use GRUB? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112) +--- Thread: Can a PBP use GRUB? (/showthread.php?tid=9261) |
Can a PBP use GRUB? - ab1jx - 02-23-2020 Assuming there's a large drive, probably NVMe, with space enough to install multiple alternative operating systems. It would be nice to boot to a GRUB menu asking which to boot. It might also be able to offer eMMC vs SD options. But I don't know if GRUB is at all compatible with ARM and u-boot. My guess is that if done right each GRUB choice could replace having u-boot for that choice. The GRUB installation might not know how to set that up, it might need doing manually. RE: Can a PBP use GRUB? - tophneal - 02-24-2020 Likely. There's a few boards out there that do use GRUB. It doesn't replace u-boot, but is rather used as a stage 2 in bootloading, after u-boot. Here's a guide from the ODROID forums that might shed some light on getting it set up, though: https://forum.odroid.com/viewtopic.php?t=26894 RE: Can a PBP use GRUB? - ab1jx - 02-25-2020 Thanks, there's also (in Raspbian anyway) grub-uboot/stable 2.02+dfsg1-10 armhf GRand Unified Bootloader, version 2 (ARM U-Boot version) grub-uboot-bin/stable 2.02+dfsg1-10 armhf GRand Unified Bootloader, version 2 (ARM U-Boot modules) grub-uboot-dbg/stable 2.02+dfsg1-10 armhf GRand Unified Bootloader, version 2 (ARM U-Boot debug files) I hadn't looked into it really. My NVMe adapter is still in China, haven't ordered an SSD. I remember Linux and OpenBSD can share a swap partition, I've done that. I thought I couldn't afford a SSD but I found an Intel 1 TB for $125 https://www.bhphotovideo.com/c/search?Ntt=NVMe&N=0&InitialSearch=yes&sts=ma and it looks good in the PBP compatibility list. 1.6 million hours MBTF, hmm calc '1600000 / 24 / 365' = 182 years, I should buy more. Can I make a RAID of them? Probably. RE: Can a PBP use GRUB? - amiraeva - 03-18-2020 So I finally got a 3V serial cable, and after playing around with uboot I managed to boot into grub as an efi executable, and then into Manjaro once I was dropped into the grub shell. The issue with my approach is that it was a manual process in the serial console. Does anyone know how I can go about automating this a little better? And more importantly, how to go about getting grub to initialize the LCD display and keyboard so this endeavor would be useful (i.e. allow one to choose between boot entries)? In the meantime I can automate some of the tedium by using a uboot script. Not familiar enough with grub to have that part automated. RE: Can a PBP use GRUB? - amiraeva - 03-18-2020 Figured out how to automate it in a janky manner - details below for posterity. Still interested in getting grub to output to the LCD with keyboard input. When only letting grub see "console=tty1" in the bootargs, it spits out "error: no suitable video mode found." on the serial console right before displaying the boot menu. boot.txt Code: setenv bootargs initrd=/boot/initramfs-linux.img console=ttyS0 console=tty1 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash grub.cfg Code: set timeout_style="menu" As others online have noted, rebooting has issues but otherwise it seems to work great. Here is my boot log too in case it might help someone: Code: U-Boot TPL 2020.01-6-g365495a329 (Mar 08 2020 - 16:47:50) |