Boot custom kernel on PineBook Pro
#8
(07-06-2020, 02:25 PM)z4v4l Wrote: because you overwrite uboot itself. 00 20 00 00 is the "start" of SDRAM on rockchip SoCs, in fact, it's 0, but they "reserve" 2MB for whatever. try something higher. like 02 00 00 00. and use booti. because this should work on 64 bit ARM consistently. what isn't the case for bootm and I am not sure about go. but with go, you aren't able to get DT. how are you gonna discover devices without any configuration? hardcode for every machine? nono. don't forget to insert a header at the beginning of your kernel, loader. whatever, because booti does expect it. it's lame, yes, but it's how linux wants and how uboot obediently follows. you can read about that header format in the linux documentation. boot/arm64 section. and if that is not enough, that header expects your code is position independent! doh. at least its start. OR, BETTER of any of this lamery, USE UBOOT'S UEFI interface! you will be freed of these hassles. but, you'll need to revamp your design and supply a UEFI OS loader. it's a PE executable, easily compiled with MSVC (for x86, x64, arm32, arm64). it's much better, believe me.
All true. At this moment I want to hardcode DT for every machine. Later will see. Adding header will require some additional efforts and build system tweak. I also would like to postpone it a bit. The code is position independent.

I'll try higher address. Thanks for the tip.


Messages In This Thread
Boot custom kernel on PineBook Pro - by lowenware - 07-05-2020, 10:24 AM
RE: Boot custom kernel on PineBook Pro - by wdt - 07-05-2020, 01:09 PM
RE: Boot custom kernel on PineBook Pro - by wdt - 07-05-2020, 01:44 PM
RE: Boot custom kernel on PineBook Pro - by z4v4l - 07-05-2020, 03:02 PM
RE: Boot custom kernel on PineBook Pro - by z4v4l - 07-06-2020, 02:25 PM
RE: Boot custom kernel on PineBook Pro - by lowenware - 07-06-2020, 03:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  3 days in, slow/stuck or no boot. lgmpbp2 33 9,599 05-27-2025, 03:27 PM
Last Post: lgmpbp2
  upgrading u-boot--what version? where to get it? bsammon 14 5,985 04-03-2025, 07:47 AM
Last Post: Tazdevl
  Pinebook pro bricked? michaelmoua 2 575 03-12-2025, 11:09 AM
Last Post: tophneal
  Use SD to install new OS over pinebook debian Rudy558 10 14,540 03-09-2025, 11:17 AM
Last Post: davisthomas
  Problem: Wi-Fi Connectivity Issues on Pinebook Pro markwood00 1 757 02-05-2025, 03:56 AM
Last Post: waylonwesley
  Pinebook Pro in EU for Sale - €90 jan_vdk 3 2,392 01-29-2025, 06:50 AM
Last Post: Macrae245
  Pinebook Next !spekulation! Surehand53 2 1,051 01-23-2025, 11:49 AM
Last Post: Surehand53
  Pinebook Pro wants a PIN for my bluetooth mouse ColoBill 1 551 01-19-2025, 04:38 PM
Last Post: ColoBill
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 4,586 12-27-2024, 11:38 AM
Last Post: akash3995
  broken tow-boot hashkeeper 1 648 12-25-2024, 10:12 PM
Last Post: jessipinkman

Forum Jump:


Users browsing this thread: 1 Guest(s)