PINE64
Building my own u-boot - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: Building my own u-boot (/showthread.php?tid=5417)



Building my own u-boot - ExplodingLemur - 12-02-2017

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.


RE: Building my own u-boot - xalius - 12-02-2017

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...


RE: Building my own u-boot - ExplodingLemur - 12-03-2017

So I would use rk3328_miniloader_v2.43.bin from https://github.com/rockchip-linux/rkbin/tree/master/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_Boot_option#Boot_flow


RE: Building my own u-boot - maal - 12-03-2017

You can read about building u-boot (step by step) in this thread: https://forum.pine64.org/showthread.php?tid=5210


RE: Building my own u-boot - ExplodingLemur - 12-04-2017

Perfect, thanks!