Date: Tue, 19 Dec 2023 19:45:51 +0200 From: titus <titus@edc.ro> To: Harry <freebsd@omnilan.de> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: u-boot-nanopi-r5c [Was: Re: 14-BETA5 panic on rk3566] https://personalbsd.org/images Message-ID: <1573661F-100C-46C6-9A75-524B1AACF1FA@edc.ro> In-Reply-To: <fe6020b7-f9c0-4f82-9b02-349a55b5f90f@omnilan.de> References: <43691d67-3d00-e8d5-f917-fbb2963454cc@thegalacticzoo.com> <fe6020b7-f9c0-4f82-9b02-349a55b5f90f@omnilan.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_3658101A-78B0-4427-B7B5-98EC65515BC6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii u-boot can/does provide EFI api to freebsd so you can boot an aarch64 = image if have an rk3566 board (orange pi 3b) and i run 14.x on it i just built https://github.com/Kwiboo/u-boot-rockchip = <https://github.com/Kwiboo/u-boot-rockchip> (mostly because they = provided an opi3b dtb and mainline did not) add CONFIG_EFI_LOADER=3Dy to the opi3b_defconfig, build, dd, boot (bl31 = built from source, tpl from rkbin) depending on your board / dtb / luck what works and what not may vary i have uart / sd / emmc / gmac / sata / pcie / usb / thermal / cpu freq = control / spi flash working on mine=20 but i need to patch some of the drivers and have a frankensteined dtb = between official opi3b and pine quarzt64 i have no video output, only serial you may want to take a look at = https://forums.freebsd.org/threads/running-freebsd-on-radxa-rock-3c-rk3566= -board.89389/ = <https://forums.freebsd.org/threads/running-freebsd-on-radxa-rock-3c-rk356= 6-board.89389/>=20 rk3399 is better supported than rk35xx > On Dec 19, 2023, at 7:22 PM, Harry <freebsd@omnilan.de> wrote: >=20 > On 12/16/23 04:30, Fred G. Finster wrote: >>> ... >> Hary, I can see you are testing and setting up a build environment = for the Nano Pi R5C SBC. Look at Sleep Walkers work over at = https://personalBSD.org and Telegram Group t.me/personalbsd >>=20 >> = https://personalbsd.org/images/FreeBSD-aarch64-14.0-CURRENT-NanoPi-R5C-202= 30522.img.xz=20 >>=20 >=20 > Hello Fred, >=20 >=20 > thanks, I stumbled across this resource before purchasing R5C, which I = considered as my insurance for having an easy onboarding, I thought - = the download is 404 these days and I couldn't find a copy out there. >=20 >=20 >> Give this image a test run on your hardware NanoPi r5c. Then read = register settings and save. See what settings and values (ie binary = blobs NOT LOADED ) exist in your kernel boot image. Then modify your = own sources and build another new image again. >> Chat with SleepWalker and maybe get a working build environment? >> ExtroWerk user, was porting FreeBSD to a GeniaTech RK3566 SBC board. >> https://t.me/PersonalBSD/11146 I see ExtroWerk was asking me to = build an image for him. >> https://extrowerk.com/2023-10-30/Geniatech-XPI-3566-ZERO-SBC.html >> https://github.com/extrowerk >>=20 >>=20 >>=20 >> Yes, Harry, I want to see you successfully build a FreeBSD kernel = from source to run and execute on the NanoPi r5c single board computer. = Ie Get all the "little ducks in a row." >=20 >=20 > Stacking downloaded images in the correct order with correct offset = worked - I can boot cross-compiled FreeBSD-14-aarch64 kernel+world from = such a SD-card. But the TianoCore port I found produces incorrect ACPI = tables - e.g the eMMC controller is only accessible if I disable ACPI = and load a DTB via loader.conf. >=20 > My goal was to understand the arm-SoC boot process, at least to some = degree, and having the ability to compile all the necessary blobs myself = - otherwise I would need to choose a vendor who officially supports = FreeBSD - which is none afaik, meaning I'd need to deploy a different = operating system for my project. Either vendor supported or code = available. Tinkering with dubiously acquired 'images' isn't feasible = for me. >=20 > Is the complete u-boot port obsolete these days? As far as I = understand, there's no UEFI support and since ubldr was canceled. Is = there really no way to boot FreeBSD aarch64 with self-compiled = ingredients? (at least with only including the bl31_dram blob) >=20 > I will have a look in src/release for the aarch64 platform, but I = thought deploying the boot firmware was more straight forward - = especially since there's plenty of doc's claiming that u-boot is all you = need... > It's hard to identify outdated docs - which is the majority, if not = all I found so far... >=20 > Thanks, >=20 > -harry >=20 >=20 >=20 --Apple-Mail=_3658101A-78B0-4427-B7B5-98EC65515BC6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D"">u-boot can/does provide EFI api to freebsd so you can boot an = aarch64 image<div class=3D"">if have an rk3566 board (orange pi 3b) and = i run 14.x on it</div><div class=3D"">i just built <a = href=3D"https://github.com/Kwiboo/u-boot-rockchip" = class=3D"">https://github.com/Kwiboo/u-boot-rockchip</a> (mostly = because they provided an opi3b dtb and mainline did not)</div><div = class=3D"">add CONFIG_EFI_LOADER=3Dy to the opi3b_defconfig, build, dd, = boot (bl31 built from source, tpl from rkbin)</div><div = class=3D"">depending on your board / dtb / luck what works and what not = may vary</div><div class=3D"">i have uart / sd / emmc / gmac / sata / = pcie / usb / thermal / cpu freq control / spi flash working on = mine </div><div class=3D""><div>but i need to patch some of the = drivers and have a frankensteined dtb between official opi3b and pine = quarzt64</div><div>i have no video output, only serial</div><div>you may = want to take a look at <a = href=3D"https://forums.freebsd.org/threads/running-freebsd-on-radxa-rock-3= c-rk3566-board.89389/" = class=3D"">https://forums.freebsd.org/threads/running-freebsd-on-radxa-roc= k-3c-rk3566-board.89389/</a> </div><div><br = class=3D""></div><div>rk3399 is better supported than = rk35xx</div><div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On Dec 19, 2023, at 7:22 PM, Harry <<a = href=3D"mailto:freebsd@omnilan.de" class=3D"">freebsd@omnilan.de</a>> = wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div = class=3D"">On 12/16/23 04:30, Fred G. Finster wrote:<br = class=3D""><blockquote type=3D"cite" class=3D""><blockquote type=3D"cite" = class=3D"">...<br class=3D""></blockquote>Hary, I can see you are = testing and setting up a build environment for the Nano Pi R5C = SBC. Look at Sleep Walkers work over at <a = href=3D"https://personalBSD.org" = class=3D"">https://personalBSD.org</a> and Telegram Group <a = href=3D"http://t.me/personalbsd" class=3D"">t.me/personalbsd</a><br = class=3D""><br class=3D""><a = href=3D"https://personalbsd.org/images/FreeBSD-aarch64-14.0-CURRENT-NanoPi= -R5C-20230522.img.xz" = class=3D"">https://personalbsd.org/images/FreeBSD-aarch64-14.0-CURRENT-Nan= oPi-R5C-20230522.img.xz</a> <br class=3D""><br class=3D""></blockquote><br= class=3D"">Hello Fred,<br class=3D""><br class=3D""><br = class=3D"">thanks, I stumbled across this resource before purchasing = R5C, which I considered as my insurance for having an easy onboarding, I = thought - the download is 404 these days and I couldn't find a copy out = there.<br class=3D""><br class=3D""><br class=3D""><blockquote = type=3D"cite" class=3D"">Give this image a test run on your hardware = NanoPi r5c. Then read register settings and save. See = what settings and values (ie binary blobs NOT LOADED ) exist in your = kernel boot image. Then modify your own sources and build another = new image again.<br class=3D"">Chat with SleepWalker and maybe get a = working build environment?<br class=3D"">ExtroWerk user, was porting = FreeBSD to a GeniaTech RK3566 SBC board.<br class=3D""><a = href=3D"https://t.me/PersonalBSD/11146" = class=3D"">https://t.me/PersonalBSD/11146</a> I see ExtroWerk was = asking me to build an image for him.<br class=3D""><a = href=3D"https://extrowerk.com/2023-10-30/Geniatech-XPI-3566-ZERO-SBC.html"= = class=3D"">https://extrowerk.com/2023-10-30/Geniatech-XPI-3566-ZERO-SBC.ht= ml</a><br class=3D"">https://github.com/extrowerk<br class=3D""><br = class=3D""><br class=3D""><br class=3D"">Yes, Harry, I want to see you = successfully build a FreeBSD kernel from source to run and execute on = the NanoPi r5c single board computer. Ie Get all the "little ducks = in a row."<br class=3D""></blockquote><br class=3D""><br = class=3D"">Stacking downloaded images in the correct order with correct = offset worked - I can boot cross-compiled FreeBSD-14-aarch64 = kernel+world from such a SD-card. But the TianoCore port I found = produces incorrect ACPI tables - e.g the eMMC controller is only = accessible if I disable ACPI and load a DTB via loader.conf.<br = class=3D""><br class=3D"">My goal was to understand the arm-SoC boot = process, at least to some degree, and having the ability to compile all = the necessary blobs myself - otherwise I would need to choose a vendor = who officially supports FreeBSD - which is none afaik, meaning I'd need = to deploy a different operating system for my project. Either vendor = supported or code available. Tinkering with dubiously acquired = 'images' isn't feasible for me.<br class=3D""><br class=3D"">Is the = complete u-boot port obsolete these days? As far as I understand, = there's no UEFI support and since ubldr was canceled. Is there really no = way to boot FreeBSD aarch64 with self-compiled ingredients? (at least = with only including the bl31_dram blob)<br class=3D""><br class=3D"">I = will have a look in src/release for the aarch64 platform, but I thought = deploying the boot firmware was more straight forward - especially since = there's plenty of doc's claiming that u-boot is all you need...<br = class=3D"">It's hard to identify outdated docs - which is the majority, = if not all I found so far...<br class=3D""><br class=3D"">Thanks,<br = class=3D""><br class=3D"">-harry<br class=3D""><br class=3D""><br = class=3D""><br class=3D""></div></div></blockquote></div><br = class=3D""></div></body></html>= --Apple-Mail=_3658101A-78B0-4427-B7B5-98EC65515BC6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1573661F-100C-46C6-9A75-524B1AACF1FA>