Re: Where to load evbearm7hf-el GENERIC kernel?
Nick Hudson <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.arm |
|---|---|
| Message-ID | <[email protected]> |
On 17/03/2024 20:11, Lloyd Parkes wrote: > Kia ora koutou, > I'm fooling about trying to get NetBSD going on my ALINX AX7021 which is > a Zynq based board. > > My immediate problem is that the AX7021 Petalinux U-Boot is implemented > differently from the Zybo that I'm used to. On the AX7021 U-Boot appears > to be built in to BOOT.BIN making it slightly tricky to swap out and the > AX7021 U-Boot wants to load a FIT image which I don't entirely know how > to make. > > In order to reduce the number of variables I'm working with, can anyone > tell me what address the kernel expects to be loaded at and what the > entry point is for an evbearm7hf-el GENERIC kernel? For kernels built with __HAVE_GENERIC_START and armv6_start.S it doesn't matter where in memory kernels are loaded apart from the alignment requirements. Typically the 64 (0x40) byte u-boot header is dealt with using (example from std.generic) # The physical address is chosen by u-boot and determined by armv6_start.S. # The 64 byte offset is due to u-boot header. makeoptions KERNEL_BASE_PHYS="0x00000040" makeoptions KERNEL_BASE_VIRT="0x80000040" Hopefully your u-boot understands "kernel_noload" (see mk.generic) MKUBOOTIMAGEARGS= -A arm -T kernel_noload -O linux -C none I forget how to deal with a u-boot that doesn't understand "kernel_noload" atm Nick