[U-Boot] Booting on RK3399[Please note, mail behalf by sjg at google.com]

Simon Glass sjg at chromium.org
Thu Jan 10 12:56:31 UTC 2019


Hi Kever,

On Mon, 7 Jan 2019 at 23:38, Kever Yang <kever.yang at rock-chips.com> wrote:
>
> Hi Simon,
>
>
> On 01/08/2019 08:38 AM, Simon Glass wrote:
> > Hi Mark,
> >
> > On Sat, 5 Jan 2019 at 09:05, Mark Kettenis <mark.kettenis at xs4all.nl> wrote:
> >>> From: Simon Glass <sjg at chromium.org>
> >>> Date: Sat, 5 Jan 2019 08:56:07 -0700
> >>>
> >>> Hi Mark,
> >>>
> >>> On Fri, 4 Jan 2019 at 20:35, Simon Glass <sjg at chromium.org> wrote:
> >>>> Hi Mark,
> >>>>
> >>>> On Fri, 4 Jan 2019 at 13:43, Simon Glass <sjg at chromium.org> wrote:
> >>>>> Hi Mark,
> >>>>>
> >>>>> On Fri, 4 Jan 2019 at 13:29, Mark Kettenis <mark.kettenis at xs4all.nl> wrote:
> >>>>>>> From: Simon Glass <sjg at chromium.org>
> >>>>>>> Date: Fri, 4 Jan 2019 13:12:58 -0700
> >>>>>>>
> >>>>>>> Hi Mark,
> >>>>>>>
> >>>>>>> On Fri, 4 Jan 2019 at 12:43, Mark Kettenis <mark.kettenis at xs4all.nl> wrote:
> >>>>>>>> So obviously that diff is needed to boot properly from uSD.  I'll send
> >>>>>>>> out a git patch with a proper commit messages in a bit.
> >>>>>>> Yes I have the diff. What toolchain version are you using?
> >>>>>> I'm using the following OpenBSD packages:
> >>>>>>
> >>>>>> aarch64-none-elf-binutils-2.27p0
> >>>>>> aarch64-none-elf-gcc-linaro-6.3.2017.02p3
> >>>>>>
> >>>>>> which is binutils 2.27 and the Linaro GCC 6.3.2017.02 with minimal
> >>>>>> patches to get them to build on OpenBSD.
> >>>>> OK thank you. I'll try again when I get back. Something funny is going on.
> >>>> I pushed my tree to u-boot-dm/rk-working
> >>>>
> >>>> export ARCH=arm
> >>>> CROSS_COMPILE=/opt/linaro/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
> >>>> O=/tmp/b/firefly-rk3399
> >>>>
> >>>> /tmp/b/firefly-rk3399> ln -s
> >>>> ~/cosarm/arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf
> >>>>
> >>>> make -s firefly-rk3399_defconfig && make -s -j16 && make -s u-boot.itb
> >>>> && /tmp/b/firefly-rk3399/tools/mkimage -n rk3399 -T rksd -d
> >>>> /tmp/b/firefly-rk3399/spl/u-boot-spl.bin idbspl.img && sudo dd
> >>>> if=idbspl.img of=/dev/sdb seek=64 && sudo dd
> >>>> if=/tmp/b/firefly-rk3399/u-boot.itb of=/dev/sdb seek=16384 && sync
> >>>>
> >>>> Output is
> >>>>
> >>>> U-Boot SPL board init
> >>>> abc.d123456 7fe90
> >>>>
> >>>> at which point it hangs.
> >>>>
> >>>> Hopefully I've done something silly in the setup. Any chance you could
> >>>> share your image?
> >>>>
> >>>> Thanks for your help. I am sure I had the board running at one point.
> >>> Thanks for the image - I tried it with the same result. I think my
> >>> board is 4GB - perhaps there is a memory init problem still?
> >> Not inconceivable.  My board indeed only has 2GB.
> > OK thanks. Oddly I got this running on Bob which also has 4GB and did
> > not have this problem.
>
> For 4GB ddr3, maybe you need to use
> arch/arm/dts/rk3399-sdram-ddr3-4G-1600.dtsi,
> and you can turn on DEBUG so that we can confirm if hang in dram init
> driver.

OK thank you, will try. It really should select the correct one automatically.

BTW your email came through as a new one, not a reply to the original.
Is there something wrong with you config?

Regards,
Simon


More information about the U-Boot mailing list