Port-RISCV archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Incorporating modules source code into build.sh



Hi,

As far as I know build.sh just builds the NetBSD kernel and OS Image. U-boot and opensbi is akin to BIOS/UEFI on PC, so I don't think NetBSD scripts should be concerned with it at all.
As for building it, I would expect StarFive to have their fork of U-Boot and opensbi (and maybe even upstream it) and keep it in proper order so that all you need to do would be to "make pine-something-defconfig" and then use any means to place the generated binaries on the boot flash of your system. That was the case with my Milk-V Mars which runs on a StarFive SoC, and I had to build a newer version of U-boot+opensbi in order to boot Debian via EFI. Booting NetBSD on it is planned.

Cheers
Christ "polprog" Lasocki



pt., 26 gru 2025 o 22:39 Anoduck, The Anonymous Duck <anoduck%protonmail.com@localhost> napisał(a):
Purchased a PineTab-V tablet, and interested in running NetBSD as the primary OS for that system. I am unsure about exactly how to integrate the necessary firmware to achieve a bootable system. 

The pinetab-v uses a U-Boot-SPL to begin the boot process, then loads a device tree blob (or itb) to provide necessary sbi firmware information before loading U-Boot proper, and lastly boot the OS(syslinux for linux). 

Currently StarFive provides a PineTab-V SDK, which uses the buildroot framework to build the necessary components for boot, and system images. The idea was to extract the source code required for drivers from buildroot, or directly from the repositories containing it, and integrate it into the build.sh framework somehow. 

I normally run OpenBSD, and it has been well over a decade since I got intimate with NetBSD. So, the entire build.sh framework is new for me, but it seems pretty cool.

Sincerely, 
The Duck, Anoduck

# ===========================
Anoduck, The Anonymous Duck

https://anoduck.github.io
https://github.com/anoduck
https://anoduck.com
https://codeberg.org/anoduck


Sent with Proton Mail secure email.


--
Ala ma bota


Home | Main Index | Thread Index | Old Index