Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 2019 16:46:19 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Denis Polygalov <dpolyg@gmail.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Booting FreeBSD on Rock64
Message-ID:  <20190728164619.7f40eccb59717d18996164b1@bidouilliste.com>
In-Reply-To: <300bcdce-1471-e9a6-e332-84d3f822a65c@gmail.com>
References:  <169de7cf-32f2-7b7b-c12e-a86a4b6a9e87@gmail.com> <20190715200127.4b649877d8baefeb5282df64@bidouilliste.com> <878b15d5-92a5-5137-121c-5a5038323857@gmail.com> <20190718145840.c4487d2174930374300a0d7d@bidouilliste.com> <300bcdce-1471-e9a6-e332-84d3f822a65c@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 28 Jul 2019 23:33:16 +0900
Denis Polygalov <dpolyg@gmail.com> wrote:

> Can somebody please explain what is exact
> command to switch FreeBSD's serial console
> speed to the 1.5Mbps as required by ROCK64 board?
> 
> I have u-boot interrupted from auto-loading
> and trying to boot FreeBSD via network manually
> by typing this:
> 
> => dhcp
> tftpboot ${kernel_addr_r} boot/loader.efi
> tftpboot ${fdt_addr_r} boot/dtb/rockchip/rk3328-rock64.dtb
> bootefi ${kernel_addr_r} ${fdt_addr_r}
> 
> After that I can see the FreeBSD loader's menu,
> but then kernel hangs during loading.

 You didn't do what I said in my last email : fdt addr ${fdt_addr_r}
before bootefi.
 Note that if your DHCP server expose the next-server option you can
just do :

 => setenv boot_targets dhcp
 => boot

> Is the fact that I can see FreeBSD loader's menu is enough
> to ensure that kernel will also inherit and continue use
> the correct baud-rate?

 The kernel will use the baud rate specified in the DTB.

> How can I be sure that FreeBSD kernel when loaded
> will continue to use 1.5Mbps speed or this is not supported
> and I have to switch u-boot to something standard (115200)
> somehow? If so - how?
> 
> thanks in advance,
> Denis.

 BTW there is a new u-boot-rock64 port that you might want to use, you
can boot from sdcard now.

> On 18/07/2019 9:58 pm, Emmanuel Vadot wrote:
> > On Thu, 18 Jul 2019 21:51:43 +0900
> > Denis Polygalov <dpolyg@gmail.com> wrote:
> > 
> >>> On 16/07/2019 3:01 am, Emmanuel Vadot wrote:
> >>>    How did you setup the boot ?
> >>
> >> download u-boot-flash-spi-rock64.img.xz from here:
> >> https://github.com/ayufan-rock64/linux-u-boot/releases
> >> and flash it. Remove the microSD card.
> >> Setup tftp server and nfs servers.
> >> Reset the board, interrupt u-boot and switch to manual mode.
> >> Then type in terminal:
> >> dhcp
> >> tftpboot ${kernel_addr_r} boot/loader.efi
> >> tftpboot ${fdt_addr_r} boot/dtb/rockchip/rk3399-rockpro64.dtb
> > 
> >   You need to 'fdt addr ${fdt_addr_r}' here iirc
> > 
> >> bootefi ${kernel_addr_r} ${fdt_addr_r}
> >>
> >>
> >>>    Do you have tftpd running so u-boot can download the loader and the
> >>> dtb ?
> >>
> >> yes, I do and I can see in the tftp server logs that both
> >> boot/loader.efi
> >> and boot/dtb/rockchip/rk3399-rockpro64.dtb
> >> are downloaded successfully.
> >>
> >>>    If you don't have the dtb in $TFTPDIR/dtb/rockchip/ that might be the
> >>> problem, I recall the dtb included in u-boot being incomplete.
> >>
> >> I'm using  dtb that is included into the
> >> FreeBSD-13.0-CURRENT-arm64-aarch64-20190711-r349909-memstick.img
> >>
> >>
> >>>    I've just booted mine after updating to r350003+c99cb2e79ed6
> >>> without a problem.
> >>>
> >>
> >> Well, I don't see image of this release on the FreeBSD.org server.
> >> I guess you mean you compile it from source by yourself?
> >>
> >>> On 16/07/2019 4:49 am, Peter Jeremy wrote:
> >>>> I'm running a Rock64 with
> >>>> U-Boot SPL 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:35:43)
> >>>> and booting FreeBSD diskless.
> >>
> >> I tried this old 1035 u-boot. No luck, same problem.
> >>
> >> Regards,
> >> Denis.
> > 
> > 
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"


-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190728164619.7f40eccb59717d18996164b1>