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
  Pinebook Pro Initial Impressions kunger 443 585,160 04-16-2024, 07:29 PM
Last Post: KC9UDX
  looking to buy one pinebook pro (mainland China) duanduan 3 2,243 03-21-2024, 07:44 PM
Last Post: wangyukunshan
  Cellular module for Pinebook Pro Lotech 1 378 03-05-2024, 05:40 AM
Last Post: KC9UDX
  Screen on pinebook stays black but can ssh into machine tuxxpine 0 283 02-23-2024, 04:22 PM
Last Post: tuxxpine
  Sale my ANSI PineBook Pro cuthbertdavies 0 276 02-14-2024, 09:12 PM
Last Post: cuthbertdavies
  Compiling with -j6 on the Pinebook Pro (Overheat) KC9UDX 0 208 02-14-2024, 09:01 AM
Last Post: KC9UDX
  Pinebook Pro in EU for Sale - €90 jan_vdk 2 641 02-07-2024, 02:12 AM
Last Post: 23Ro
  Pinebook Pro for sale tomekdev 2 712 02-01-2024, 11:35 AM
Last Post: tomekdev
  uboot wont boot to SD card after upgrade jbradley419 7 761 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 277 01-16-2024, 09:17 AM
Last Post: jbradley419

Forum Jump:


Users browsing this thread: 1 Guest(s)