Subject: Re: NetBSD support PXA255?
To: None <port-arm@NetBSD.org>
From: Keichii Moto <keichiitoyota@yahoo.com>
List: port-arm
Date: 03/23/2005 00:42:41
Nathan J. Williams wrote:
> Keichii Moto <keichiitoyota@yahoo.com> writes:
> 
> > It seems that u-boot cannot recognize NetBSD.
> > Does anyone has experience about using u-boot to
> boot
> > NetBSD on pxa255 board? If so, please tell me how
> to
> > 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
uImage

After booting, I got :
## Total Size      = 0x0022fb84 = 2292612 Bytes
## Start Addr      = 0xA2000000
U-BOOT> bootm
## Booting image at a2000000 ...
   Image Name:
   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 ...

data abort
pc : [<a20000a0>]    lr : [<a3f10fdc>]
sp : a3edeb2c  ip : 00000002  fp : 00000001
r10: 00000000  r9 : a3ee0230  r8 : a3edefdc
r7 : 00000000  r6 : a3f1cac8  r5 : a3edf04a  r4 :
a20000f0
r3 : a010040a  r2 : 00003004  r1 : 00000040  r0 :
df3dc000
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

Does anyone use u-boot to boot NetBSD's lubbock or
kernel successfully? Thanks.
 
>         - Nathan

-kt 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/