Building my own u-boot
#1
I'm trying to build my own u-boot to experiment with booting off the network (via u-boot on SPI flash).  I've modified the rock64-rk3328_defconfig to enable a few more options (using ayufan's branch: https://github.com/ayufan-rock64/linux-u-boot).  However, I think I'm missing a config option or a make target somewhere.  I'm not ending up with an spl directory after the build completes.  http://opensource.rock-chips.com/wiki_Boot_option references spl/u-boot-spl.bin, but I don't have a u-boot-spl.bin file anywhere.

Build command: make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- rock64-rk3328_defconfig all
I've attached the output from make as well as my modified defconfig.


Attached Files
.txt   uboot_buildlog.txt (Size: 18.42 KB / Downloads: 326)
.txt   rock64-rk3328_defconfig.txt (Size: 2.15 KB / Downloads: 286)
  Reply
#2
While we have a very early version of the RK3328 SPL from RK (check the u-boot branches in ayufan's repo) the current u-boot doesnt use SPL to boot, but the binary blob rkbin loader. Booting with the beta SPL doesnt result in a stable system at the moment...
Come have a chat in the Pine IRC channel >>
  Reply
#3
So I would use rk3328_miniloader_v2.43.bin from https://github.com/rockchip-linux/rkbin/...aster/rk33 as the SPL at 0x40 (stage 2), and my own built u-boot.bin at 0x4000 (stage 3)?
Do I need trust.img at 0x6000 as well, and if so, where do I get that? (Will that work with my own u-boot.bin? I'm not familiar how the ARM Trusted Firmware stuff works, can I boot without a signed bootloader?)

Boot stages as described at http://opensource.rock-chips.com/wiki_Bo...#Boot_flow
  Reply
#4
You can read about building u-boot (step by step) in this thread: https://forum.pine64.org/showthread.php?tid=5210
  Reply
#5
Perfect, thanks!
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 won't boot dstallmo 0 324 12-27-2023, 10:34 AM
Last Post: dstallmo
  arch rock64 does not boot nemnob 0 583 07-09-2023, 03:28 AM
Last Post: nemnob
  Disabling last mount time check on boot acwest 0 614 03-03-2023, 09:24 PM
Last Post: acwest
  Rock64 Rev3 doesn't boot and leds blinking fast dishins 6 7,735 06-30-2022, 06:28 PM
Last Post: rookie_267
  my rock64 can't boot rookie_267 0 1,040 06-27-2022, 06:52 PM
Last Post: rookie_267
  Setting a MAC on Rock64 U-Boot kiriakos 2 3,553 03-23-2021, 04:51 AM
Last Post: kiriakos
  Boot from USB 3.0 with hub Turbo 0 2,094 12-20-2020, 02:24 PM
Last Post: Turbo
  Unable to boot armbian fchazal 2 3,842 05-19-2020, 06:43 PM
Last Post: Rocklobster
  Rock64s will not boot any OS camosoul 2 3,416 05-19-2020, 06:38 PM
Last Post: Rocklobster
  Help me understand the boot up process olivercfc 0 1,924 11-10-2019, 08:30 AM
Last Post: olivercfc

Forum Jump:


Users browsing this thread: 1 Guest(s)