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

Re: Booting the FreeBSD kernel as an zImage file needs a patch upgrade ?.



Hi,

On 05/01/2024 21:20, Mario Marietto wrote:
Sorry I forgot to change the name of the kernel :

# cd /usr/freebsd-src/sys/arm/conf
# cp GENERIC MYKERNEL

# nano MYKERNEL
makeoptions WITH_KERNEL_BIN=1

# make KERNCONF=MYKERNEL TARGET=arm TARGET_ARCH=armv7 buildkernel
# make KERNCONF=MYKERNEL TARGET=arm TARGET_ARCH=armv7 DESTDIR=/build-xen installkernel

same error as before : *kldxref: /build-xen/boot/kernel/kernel: no ELF relocation table found.*

Are all the sections in ELF contiguous in memory? If so, you could try to use manually objcopy. Something like:

objcopy -O binary -S <your-elf> <output-binary>

Then use 'file' to check if the format is recognized as zImage. If so, you could use it in your xl configuration.

Note that this *might* be what KERNEL_BIN is doing underhood. But I haven't checked not nor I am familiar with the area. I am only proposing something that may get you unstuck for now. You can come back to fix the problem afterwards.

Cheers,

--
Julien Grall



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.