> Date: Sun, 28 Jul 2019 17:04:12 +1000
> From: Jonathan Gray <j...@jsg.id.au>
> 
> On Fri, Jun 21, 2019 at 10:24:48PM +0200, Mark Kettenis wrote:
> > I've finally managed to build a properly working (and fully open
> > source) firmware for the ROCKPro64.  The firmware consists of two
> > files, which can be downloaded from:
> > 
> >   https://sibelius.home.xs4all.nl/firmware/rk3399-rockpro64/idbloader.img
> >   https://sibelius.home.xs4all.nl/firmware/rk3399-rockpro64/u-boot.itb
> > 
> > In order to use this firmware you'll have to write it to a uSD card or
> > an eMMC module with the following commands:
> > 
> >   # dd if=idbloader.img of=/dev/sdXc seek=64
> >   # dd if=u-boot.itb of=/dev/sdXc seek=16384
> > 
> > Note that if you flashed a firmware to the onboard SPI flash, you'll
> > have to erase it first or disable the SPI flash with a jumper wire
> > connecting pins 23 and 25.
> > 
> > Also note that the firmware overlaps with the msdos partition in the
> > default OpenBSD/arm64 disk layout.  Therefore you can't have the
> > firmware and the OpenBSD boot/root filesystems on the same device
> > without running through additional hoops.  Ultimately the goal is to
> > make it possible to put this firmware in SPI flash, but I haven't
> > looked into that yet.
> > 
> > This firmware uses a more standard serial speed of 115200, which means
> > you can use almost any USB TTL serial cable.  DVFS is supported so you
> > can use sysctl hw.setperf to control to clock speed of the CPUs.  But
> > be aware that without a fan the board will probably overheat if you
> > run it at the highest supported clock speed.
> > 
> > At some point this should land in the official u-boot-aarch64
> > packages.  But since this build relies on a fairly large patch set
> > that hasn't landed upstream yet, this may take some time.
> 
> I have committed a U-Boot 2019.07 update which builds the
> rockpro64-rk3399 target and patches the default baud to 115200.
> 
> As on firefly it has file named idbspl.img instead of idbloader.img.
> Don't have hardware so not sure if further patches are required.

Unfortunately the LPDDR4 support patches landed after 2019.07 was
released.  The ROCKPro64 won't work without those patches, and it is a
rather large set of patches :(.

I'm somewhat surprised to see that the rk3399 targets still build
without TPL.  But maybe the SPL overflow happens because of the LPDDR4
patches.  When we switch to TPL, I think it makes sense to start using
idbloader.img instead of idspl.img to be consistent with rk3288 and
the Rockchip documentation.

Reply via email to