Port-arm archive

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

Re: Porting netbsd to Khadas vim3



On Thu, 4 Nov 2021, Han Pengfei wrote:

I made the boot tf card as below:
1. dd the arm64.img to sd card
2. dd the u-boot of amlogic to sd card as requested.
3. build the kernel of netbsd and referring dtb files for khadas vim3
4. some hacks on the fat volume of the sd card:
      * replace the netbsd.img with the netbsd.img generated with step 3

The kernel build generates two images:
 - "netbsd" which is an ELF kernel image, and can be loaded by efiboot.
 - "netbsd.img" which follows the Linux boot ABI.

efiboot only knows how to load ELF kernels and the output below shows that you are loading an ELF kernel named "netbsd" from the ffs partition.

>> NetBSD/evbarm efiboot (arm64), Revision 1.13 (Wed Sep 15 16:32:30 UTC 2021)
Press return to boot now, any other key for boot prompt
booting netbsd - starting in 0 seconds.    
5474592+2510328+2679540+1528596 [436506+711120+497799]=0xf95b88

Is it possible that you are booting the wrong kernel? You can interrupt the boot here and try something like "boot fs0:netbsd" to load an ELF kernel from the FAT partition.

Take care,
Jared


Home | Main Index | Thread Index | Old Index