Subject: Re: NetBSD support PXA255?
To: None <port-arm@NetBSD.org>
From: Keichii Moto <email@example.com>
Date: 03/23/2005 00:42:41
Nathan J. Williams wrote:
> Keichii Moto <firstname.lastname@example.org> writes:
> > It seems that u-boot cannot recognize NetBSD.
> > Does anyone has experience about using u-boot to
> > NetBSD on pxa255 board? If so, please tell me how
> > do, thanks in advance.
> As described elsewhere, you probably need to
> generate a kernel with a
> header that uBoot likes, or you can create a "raw"
> image with no
> header at all and manually pass the boot address.
> Use this command to
> generate the raw image:
> objcopy -O binary netbsd netbsd.bin
> and then you should be able to use the "go" command
> to start the
> kernel. You'll need to "go" to the (virtual) address
> that u-boot
> loaded the kernel at, and your startup code will
> need to be careful to
> set up the MMU the way the rest of the kernel wants.
Thanks for the hints. I use mkimage to create uImage:
#mkimage -A arm -O linux -T kernel -C none -a
0xa0008000 -e 0xa0008000 -d /home/kevlo/netbsd.bin
After booting, I got :
## Total Size = 0x0022fb84 = 2292612 Bytes
## Start Addr = 0xA2000000
## Booting image at a2000000 ...
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2292548 Bytes = 2.2 MB
Load Address: a2000000
Entry Point: a2000000
Verifying Checksum ... OK
XIP Kernel Image ... OK
Starting kernel ...
pc : [<a20000a0>] lr : [<a3f10fdc>]
sp : a3edeb2c ip : 00000002 fp : 00000001
r10: 00000000 r9 : a3ee0230 r8 : a3edefdc
r7 : 00000000 r6 : a3f1cac8 r5 : a3edf04a r4 :
r3 : a010040a r2 : 00003004 r1 : 00000040 r0 :
Flags: nzCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
Does anyone use u-boot to boot NetBSD's lubbock or
kernel successfully? Thanks.
> - Nathan
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!