Official Debian support
#47
(08-02-2021, 08:35 AM)thequailman Wrote: Yes, it's hand rolled but it works fine.  The files are there and it boots, verified using UART.

It's up to you how you want to do it, if you want to manage it manually - by all means do so. But in my experience unless you have good reasons to do it manually (which in my book usually means "automation does the wrong thing or incapable of supporting my use case") you'll save yourself a ton of money on headache medicine if you just let the automation take care of things. In case of /boot/extlinux/extlinux.conf that means installing `u-boot-menu` and let it take care of generating the config for you after you adjust the parameters under /etc/default/u-boot.

(08-02-2021, 08:35 AM)thequailman Wrote: I'll update the timeout.  The dtb part is what may be the problem--u-boot has a dtb file under /usr/lib/u-boot/pinebook-pro-rk3399/rk3399-pinebook-pro.dtb that I've been using.  This is probably my issue, I assumed since it shipped with one that I need to use it.  I don't do much with ARM but I hand roll all my other Debian setups.

If it boots with your current timeout - don't worry about adjusting it, not unless you actually want more than 0.5s to select which kernel to boot. I tried sub-1s timeout with BSP u-boot, never tried it with Manjaro or stock Debian u-boot, but if I can keep it below 1s I would just to speed up the boot. That said, before the menu delay there is 3s delay while u-boot detects boot devices, reducing that would save me much more on boot time if I knew how to. However, 4s is a joke compared to overall time it takes to boot the OS and start the KDE Plasma session, so the motivation is low.

As to device tree part - see what I wrote above about `u-boot-menu` package.

I kinda skipped the whole Raspberry Pi bandwagon and the original 14" PB I bought in 2017 had a hardware fault so it wasn't until I got my PBP in January 2020 that I was able to get any substantial Linux on ARM experience. Following the "start with basics" rule helped me not to get bogged down and burn out before I got any usable results.

(08-02-2021, 08:35 AM)thequailman Wrote: Everything boots OK (verified using UART/SSH to the machine), just the LCD doesn't show anything.

If your LCD doesn't show anything until Linux is loaded then you're not booting using the u-boot from Debian Experimental. You probably installed the package `u-boot-rockchip`, but never ran `sudo u-boot-install rockchip ...` command.

(08-02-2021, 08:35 AM)thequailman Wrote: I'm trying to integrate all of this into my existing amd64 debian flashing setup so I don't have to document the steps I did to get this working, I just kick off the script I have.  To that end, yes I am customizing this stuff.  The problem with leaving the defaults in place is, there aren't any, unless you're using an image.  I'm trying to piece together documentation that is scattered in this forum, in the upstream u-boot, kernel changelogs, and manjaro.  It's quite frankly a mess, especially coming from the buttery smooth amd64 boot process.

By defaults I mean "simplest thing that works", which is exactly what Debian installer does if you leave all the default options. With actual ARM installer the only problem is that Debian installer doesn't leave any space for u-boot during partitioning and doesn't actually install u-boot, so those have to be done manually. Last time I checked Debian defaults to ext4, not btrfs. No LUKS, no LVM (a shame, really), just two partitions using MBR - one for all files and one for swap (though I do recommend skipping swap partition/file and go straight for swap on zram. Just don't use zram-tools package, it's atrocious). From the viewpoint of actually running the system you can mostly ignore the ISA differences, the biggest difference between AMD64 and ARM64 is in how to boot the system, and the simplest thing there is u-boot loading kernel directly using extlinux.conf or bootscript. Once you have that down fully functional you can then play around with UEFI/GRUB/what have you.

And yes, ARM is undeniably still a hot mess, and probably will remain so for a very long time. The reason for your "buttery smooth" amd64 experience is that it got de-facto standardized when IBM published it's BIOS code back in 1981, so when everybody and their uncle started building PC clones some half a decade later everyone was also re-creating the same exact boot process. AMD64 is not just a CPU ISA, it's an evolution of the same old IBM PC from 1981 - a computer that from the start was intended to be capable of running more than one OS. In comparison, ARM is just a CPU ISA licensed for everyone to do their own (primarily embedded) thing with it. It started in 1985, but there was never any kind of standardized firmware/bootloader for it until recently, and even the de-facto standard u-boot is a separate project that started in 1999 for PowerPC rather than ARM.

(08-02-2021, 08:35 AM)thequailman Wrote: EDIT: Yes, the dtb from the /usr/lib kernel directory fixed it.  I seem to get white lines down the screen instead of console/gdm after reboot occasionally though, anyone else experiencing this?

Nope, no white lines. Only some framebuffer junk when Linux takes over the screen after u-boot, but those get cleared up as soon as Linux finishes the device setup.
This message was created with 100% recycled electrons
  Reply


Messages In This Thread
Official Debian support - by moonwalkers - 06-05-2021, 01:45 PM
RE: Official Debian support - by thequailman - 06-06-2021, 12:27 PM
RE: Official Debian support - by moonwalkers - 06-06-2021, 07:00 PM
RE: Official Debian support - by thequailman - 06-07-2021, 06:32 AM
RE: Official Debian support - by moonwalkers - 06-07-2021, 08:16 AM
RE: Official Debian support - by thequailman - 06-07-2021, 08:29 AM
RE: Official Debian support - by sepp - 06-10-2021, 09:37 AM
RE: Official Debian support - by moonwalkers - 06-10-2021, 06:14 PM
RE: Official Debian support - by sepp - 06-11-2021, 12:32 AM
RE: Official Debian support - by hjalfi - 06-07-2021, 03:15 AM
RE: Official Debian support - by moonwalkers - 06-07-2021, 09:13 AM
RE: Official Debian support - by thequailman - 06-07-2021, 11:16 AM
RE: Official Debian support - by moonwalkers - 06-07-2021, 07:01 PM
RE: Official Debian support - by alpopa - 06-12-2021, 06:16 AM
RE: Official Debian support - by moonwalkers - 06-12-2021, 08:29 AM
RE: Official Debian support - by alpopa - 06-12-2021, 11:38 AM
RE: Official Debian support - by thequailman - 06-13-2021, 06:53 PM
RE: Official Debian support - by sepp - 06-12-2021, 12:20 PM
RE: Official Debian support - by sepp - 06-22-2021, 11:27 AM
RE: Official Debian support - by sepp - 06-24-2021, 12:03 AM
RE: Official Debian support - by thequailman - 06-25-2021, 02:14 PM
RE: Official Debian support - by moonwalkers - 06-25-2021, 02:48 PM
RE: Official Debian support - by sepp - 06-26-2021, 02:17 AM
RE: Official Debian support - by moonwalkers - 06-26-2021, 01:22 PM
RE: Official Debian support - by thequailman - 06-27-2021, 07:50 PM
RE: Official Debian support - by alpopa - 06-28-2021, 05:56 AM
RE: Official Debian support - by moonwalkers - 06-28-2021, 08:42 AM
RE: Official Debian support - by sepp - 06-29-2021, 11:31 PM
RE: Official Debian support - by moonwalkers - 06-30-2021, 08:20 AM
RE: Official Debian support - by thequailman - 06-28-2021, 07:17 AM
RE: Official Debian support - by sepp - 06-29-2021, 02:11 AM
RE: Official Debian support - by alpopa - 07-05-2021, 06:42 AM
RE: Official Debian support - by sepp - 07-06-2021, 01:47 AM
RE: Official Debian support - by moonwalkers - 07-01-2021, 09:58 AM
RE: Official Debian support - by sepp - 07-03-2021, 01:02 PM
RE: Official Debian support - by moonwalkers - 07-04-2021, 10:54 AM
RE: Official Debian support - by sepp - 07-09-2021, 06:02 AM
RE: Official Debian support - by moonwalkers - 07-09-2021, 08:56 AM
RE: Official Debian support - by sepp - 07-09-2021, 09:09 AM
RE: Official Debian support - by moonwalkers - 07-09-2021, 12:28 PM
RE: Official Debian support - by sepp - 07-10-2021, 03:20 AM
RE: Official Debian support - by sepp - 07-10-2021, 06:23 AM
RE: Official Debian support - by moonwalkers - 07-10-2021, 07:59 AM
RE: Official Debian support - by sepp - 07-22-2021, 08:19 AM
RE: Official Debian support - by moonwalkers - 08-02-2021, 08:13 AM
RE: Official Debian support - by thequailman - 08-02-2021, 08:35 AM
RE: Official Debian support - by moonwalkers - 08-02-2021, 02:05 PM
RE: Official Debian support - by bcnaz - 08-02-2021, 07:05 PM
RE: Official Debian support - by moonwalkers - 08-02-2021, 09:52 PM
RE: Official Debian support - by bcnaz - 08-03-2021, 02:04 AM
RE: Official Debian support - by brzegorz - 08-20-2021, 02:44 PM
RE: Official Debian support - by bcnaz - 08-20-2021, 07:49 PM
RE: Official Debian support - by sepp - 08-21-2021, 12:25 PM
RE: Official Debian support - by Humid Stylus - 08-28-2021, 12:35 AM
RE: Official Debian support - by alpopa - 08-28-2021, 01:31 PM
RE: Official Debian support - by Humid Stylus - 10-26-2021, 05:31 AM
RE: Official Debian support - by rempfer - 05-16-2024, 11:00 PM
RE: Official Debian support - by Humid Stylus - 07-08-2024, 01:40 PM
RE: Official Debian support - by alpopa - 10-03-2021, 03:47 AM
RE: Official Debian support - by vajak - 10-03-2021, 12:14 PM
RE: Official Debian support - by bcnaz - 10-03-2021, 07:42 PM
RE: Official Debian support - by vajak - 10-04-2021, 05:49 PM
RE: Official Debian support - by alpopa - 10-28-2021, 09:17 AM
RE: Official Debian support - by malyessarah71 - 11-08-2021, 11:44 AM
RE: Official Debian support - by alpopa - 11-19-2021, 09:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian on Pinebook Pro u974615 7 2,535 03-31-2024, 10:11 AM
Last Post: u974615
  install debian on pbp jsch 7 5,079 11-22-2023, 04:22 PM
Last Post: TRS-80
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 9,282 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  Unable to install Debian Bullseye because of missing wifi firmware Pino64 7 5,114 07-15-2023, 02:58 PM
Last Post: u974615
  Armbian is [edit: no longer] dropping support for Pinebook Pro TRS-80 4 4,677 12-23-2022, 12:01 AM
Last Post: TRS-80
Question Debian (Vanilla) no output on display after Kernel update (6.0.8-1) as365n4 1 1,564 12-09-2022, 12:43 PM
Last Post: as365n4
  Unsuccessful using danielt's unofficial Debian installer on the PBP joeDoe 2 2,808 12-09-2022, 05:04 AM
Last Post: ndp
  Armbian VPU decoding support coming soon LivingLinux 0 1,003 11-13-2022, 02:32 PM
Last Post: LivingLinux
  How can I install Debian? ImmyChan 1 2,620 10-19-2022, 03:09 AM
Last Post: alpopa
  when i close my laptop lid the screen doesn't turn on? (debian bullseye based) computerc 3 2,408 09-23-2022, 08:37 PM
Last Post: computerc

Forum Jump:


Users browsing this thread: 1 Guest(s)