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: 396)
.txt   rock64-rk3328_defconfig.txt (Size: 2.15 KB / Downloads: 345)
  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
  How to boot an older, working kernel bits 0 172 11-01-2024, 04:43 PM
Last Post: bits
  problem with debian emmc boot G4zCDzWb 10 2,113 11-01-2024, 04:32 PM
Last Post: bits
  arch rock64 does not boot nemnob 1 1,056 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  Rock64 won't boot dstallmo 0 689 12-27-2023, 10:34 AM
Last Post: dstallmo
  Disabling last mount time check on boot acwest 0 918 03-03-2023, 09:24 PM
Last Post: acwest
  Rock64 Rev3 doesn't boot and leds blinking fast dishins 6 9,025 06-30-2022, 06:28 PM
Last Post: rookie_267
  my rock64 can't boot rookie_267 0 1,345 06-27-2022, 06:52 PM
Last Post: rookie_267
  Setting a MAC on Rock64 U-Boot kiriakos 2 4,179 03-23-2021, 04:51 AM
Last Post: kiriakos
  Boot from USB 3.0 with hub Turbo 0 2,389 12-20-2020, 02:24 PM
Last Post: Turbo
  Unable to boot armbian fchazal 2 4,484 05-19-2020, 06:43 PM
Last Post: Rocklobster

Forum Jump:


Users browsing this thread: 1 Guest(s)