Date: Thu, 5 Jan 2017 07:57:06 +0100 From: Michal Meloun <melounmichal@gmail.com> To: Thomas Skibo <thomasskibo@yahoo.com>, Adrian Chadd <adrian.chadd@gmail.com> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: Finally bringing FreeBSD to Parallella Message-ID: <ce4771f4-f157-eb11-32d4-89b00d1c4adf@gmail.com> In-Reply-To: <4CA92CCC-79C3-4E86-9B7F-3FAA80D1CF5E@yahoo.com> References: <2CAC521E-AB65-453F-B1CC-DE025DA43596@yahoo.com> <CAJ-Vmo=cCBS4-W_q0RKYT4pnkdoKj_kSrk8eem%2BeDOqZt2W-AQ@mail.gmail.com> <4B0F21E0-D0FD-409D-81A5-C0DBBFF26251@yahoo.com> <CAJ-VmondYWRWtE=a68qO3YMzX50=YD1sXPoJL3RtvS4kVTtiAg@mail.gmail.com> <4CA92CCC-79C3-4E86-9B7F-3FAA80D1CF5E@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05.01.2017 4:16, Thomas Skibo via freebsd-arm wrote: > >> On Jan 4, 2017, at 4:19 PM, Adrian Chadd <adrian.chadd@gmail.com> wrote: >> >> Hi, >> >> Would you be able to find the uboot bits that are needed so we can >> make up a port with the relevant bits? :) >> >> >> -adrian > > I haven’t been able to find it. I did manage to find a Makefile I used to package the second u-boot into the file uImage. > > But, I’ve been thinking and maybe it would be easier (and less hokey) if we built a FreeBSD kernel with a static DTB and crammed that into a uImage file. Do we really need ubldr (which would require a u-boot with CONFIG_API)? > > —Thomas With LINUX_BOOT_ABI option in kernel config file you can boot kernel directly from uImage and pass right DTB to kernel directly from u-boot. The following example is what I using for Jetson TK1 board (and it uses mkubootimage stolen from netbsd). mkubootimage -A arm -C none -O linux -T kernel -a 0x80200000 -e 0x80200100 -n jetson-tk1 <obj path>/tegra/sys/JETSON-TK1/kernel <obj path>/tegra/sys/JETSON-TK1/uImage and from u-boot: bootp 0x80200000 <IP addr>:/tegra/sys/JETSON-TK1/uImage bootp 0x80100000 <IP addr>:/tegra/sys/JETSON-TK1/tegra124-jetson-tk1-fbsd.dtb setenv bootargs FreeBSD:boot_single=1,boot_verbose=0,vfs.root.mountfrom=ufs:/dev/ada0s1afdt addr 0x80100000 fdt boardsetup fdt chosen bootm 0x80200000 - 0x80100000 Michal
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ce4771f4-f157-eb11-32d4-89b00d1c4adf>