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
  boot hdd usb3 philipe 1 659 01-27-2021, 02:12 PM
Last Post: tllim
  Sent support order status , no responses RockPro64Newbie 3 1,999 01-19-2021, 12:09 PM
Last Post: mathygreen
  Libreelec Rock64 - 4GB no boot spiker15 3 1,536 11-02-2020, 12:36 AM
Last Post: wilsonYan
  Rock64 - boot helpmerock 2 1,268 10-08-2020, 01:29 PM
Last Post: helpmerock
  No boot up after power on Whoopsadaisy 4 2,264 09-26-2020, 05:14 PM
Last Post: simonsouth
Sad No boot, garbage console text and blinking red light ... jean_bruder 2 1,505 07-19-2020, 08:37 AM
Last Post: jean_bruder
  Graphical boot manager john3voltas 0 741 03-25-2020, 02:27 PM
Last Post: john3voltas
  doesn't boot, no video cjyar 7 2,892 11-15-2019, 03:45 PM
Last Post: ab1jx
  Unable to boot from SPI stevefan1999 4 2,578 05-01-2019, 04:47 PM
Last Post: rhens1
  No Boot, Red Green and White flash at 1 sec intervals wesleykonrad 2 1,724 01-28-2019, 11:54 PM
Last Post: wesleykonrad

Forum Jump:


Users browsing this thread: 1 Guest(s)