u-boot (forks) status
#6
I've been doing a bit of work with mainline U-Boot recently and am happy to report that with a few patches applied, the latest revision works with the ROCK64 and allows the use of U-Boot's own tertiary program loader (TPL) in place of Rockchip's proprietary miniloader, removing another piece of non-free software from the stack.

I wasn't aware that ayufan's branch offered additional functionality (eFuse support, etc.) but will be doubling back at some point to see about getting these ported to the mainline version. Right now I'm working on identifying what's unique about ayufan's ARM Trusted Firmware branch and getting those changes pulled into separate patches so it can be brought up-to-date as well.

I'll write up a lengthier tutorial when I'm done but to start using the mainline version of U-Boot, assuming you have the prerequisites taken care of (the cross-compilation toolchain installed if needed, the ARM Trusted Firmware BL31 built and the CROSS_COMPILE and BL31 environment variables set appropriately), you'll need to

  1. Obtain a current version of the U-Boot source tree, either by downloading version 2019.10 from the U-Boot ftp site or by checking out the latest version from git with

    git clone git://git.denx.de/u-boot.git

  2. Apply these required patches, to fix issues with the RK3328 SDRAM driver that led to instability on the ROCK64:

    ram: rk3328: Use correct frequency units in function
    ram: rk3328: Fix loading of skew values

  3. Optionally, apply these recommended patches, especially the first if you intend to boot from a microSD card while having an eMMC module installed:

    rockchip: dts: rk3328: rock64: Add same-as-spl order
    clk: rockchip: rk3328: Configure CPU clock

  4. Build U-Boot as usual, with commands like the following:

    rm -f ./idbloader.img; make distclean
    make rock64-rk3328_defconfig all u-boot.itb

  5. Install U-Boot to a microSD card with commands like

    sudo dd if=./idbloader.img of=/dev/mmcblk0 seek=64
    sudo dd if=./u-boot.itb of=/dev/mmcblk0 seek=16384

You'll find a bit more detail in doc/README.rockchip and in U-Boot's main README file in the root folder.

More to follow. (If anyone else is working on bringing the ROCK64's software up-to-date relative to the mainline versions, I'd be happy to hear from you so we can coordinate our efforts.)


Messages In This Thread
u-boot (forks) status - by mcerveny - 07-21-2018, 06:51 PM
RE: u-boot (forks) status - by asavah - 07-28-2018, 12:28 PM
RE: u-boot (forks) status - by mcerveny - 07-28-2018, 02:05 PM
RE: u-boot (forks) status - by asavah - 07-28-2018, 02:58 PM
RE: u-boot (forks) status - by ayufan - 07-30-2018, 03:54 PM
RE: u-boot (forks) status - by simonsouth - 10-14-2019, 09:55 AM
RE: u-boot (forks) status - by globaltree - 08-27-2020, 01:44 PM
RE: u-boot (forks) status - by ayufan - 10-14-2019, 12:50 PM
RE: u-boot (forks) status - by kuleszdl - 03-21-2020, 03:21 PM
RE: u-boot (forks) status - by CameronNemo - 05-11-2020, 01:23 PM
RE: u-boot (forks) status - by XmAz - 06-19-2020, 03:37 PM
RE: u-boot (forks) status - by XmAz - 06-19-2020, 03:40 PM
RE: u-boot (forks) status - by CameronNemo - 08-08-2020, 12:05 PM
RE: u-boot (forks) status - by tophneal - 08-08-2020, 01:50 PM
RE: u-boot (forks) status - by CameronNemo - 08-08-2020, 03:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 won't boot luminosity7 10 3,864 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 255 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  Boot from SPI first mjnck 1 1,452 02-29-2024, 02:12 PM
Last Post: reukiodo
  ROCK64 v3 can it boot from USB? Tsagualsa 4 1,974 11-29-2022, 11:31 AM
Last Post: Macgyver
  Rock64 u-boot for eMMC Build Error mexicanflyer 0 1,007 09-18-2022, 02:29 PM
Last Post: mexicanflyer
  boot hdd usb3 philipe 1 2,590 01-27-2021, 02:12 PM
Last Post: tllim
  Sent support order status , no responses RockPro64Newbie 3 5,890 01-19-2021, 12:09 PM
Last Post: mathygreen
  Libreelec Rock64 - 4GB no boot spiker15 3 4,472 11-02-2020, 12:36 AM
Last Post: wilsonYan
  Rock64 - boot helpmerock 2 3,473 10-08-2020, 01:29 PM
Last Post: helpmerock
  No boot up after power on Whoopsadaisy 4 5,554 09-26-2020, 05:14 PM
Last Post: simonsouth

Forum Jump:


Users browsing this thread: 1 Guest(s)