Port-arm archive

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

Re: FDT for armv5



On 30/09/2025 19:57, Yuri Honegger wrote:


Am 28.09.2025 um 17:26 schrieb Nick Hudson <nick.hudson%gmx.co.uk@localhost>:

On 27/09/2025 21:13, Yuri Honegger wrote:
[snip]

If someone wants to test it on the i-mx23-olinuxino-mini (There are some more steps required to get the ramdisk going,
I'll skip them to keep it short. This "guide" will panic because I can't find the init process late in the boot process. If someone with the hardware wants them, I'm happy to type them out):
1. Build the u-boot bootloader using
make mx23_olinuxino_defconfig
make boot.sb
2. Format a microSD-card using a MBR with at least two partitions. The first partition must be of type 0x53, the second a FAT partition.
3. burn the u-boot boot.sb to the first partition (dd if=u-boot.sb of=/path/to/first/partition)
(I dont'> 4. Build the NetBSD kernel
./build.sh -u -U -m evbearmv5-el kernel=GENERIC_V5
5. Build the device trees
./build.sh -U -m evbearmv5-el dtb
6. Copy the device tree (src/sys/dtb/arm/obj/imx23-olinuxino.dtb) to the FAT partition
7. Copy the kernel uImage (src/sys/arch/evbarm/compile/obj/GENERIC_V5/netbsd.ub) to the FAT partition
8. Insert the SD card, apply power, and observe the debug UART header at 115200 baud

Fancy creating a pkgsrc package for u-boot?

I’m really not an expert on how pkgsrc works. It seems to be more about building user-space application for the host, while u-boot is closer to a kernel. You will be mostly cross-compiling. Also, you have to use a different configuration for basically every board, so you will never be able to just install it from a package manager. It might be possible, but I don’t quite see how. Building from source worked just fine for me.
My next plan was rather to port the lego mindstorms EV3 to NetBSD.

pkgsrc helps provide the cross compilers, etc.

If your board's uboot is part of upstream uboot then it's mostly very easy, cf.

https://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/sysutils/u-boot-a10-olinuxino-lime/Makefile?rev=1.9

Nick


Home | Main Index | Thread Index | Old Index