Port-arm archive

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

Re: NetBSD arm bootup question



Hi! Joe,


From: Joe Culler <joe.culler%gmail.com@localhost>
Date: Wed, 20 Jan 2010 16:54:38 +0800

> On Wed, Jan 20, 2010 at 2:25 PM, KIYOHARA Takashi wrote:
> >
> > From: KIYOHARA Takashi <kiyohara%kk.iij4u.or.jp@localhost>
> > Date: Wed, 20 Jan 2010 15:23:07 +0900 (JST)
> >
> >> From: Joe Culler <joe.culler%gmail.com@localhost>
> >> Date: Wed, 20 Jan 2010 13:46:54 +0800
> >>
> >> > I'm new to NetBSD/arm. I'm trying to port  NetBSD to s3c6410 with no 
> >> > luck.
> >> > When I boot netbsd.bin from u-boot, I got:
> >> >
> >> > u-boot>> go 0x50200000
> >> > ## Starting application at 0x50200000 ...
> >>
> >>
> >> I do not understand s3c6410 first.
> >> However, do you understand this physical address is correct?
> >> # However, if this is believed, DRAM there.  ;-)
> >
> > Oops...  ;-)
> >
> >  http://www.htc-linux.org/wiki/index.php?title=S3C6410_MemoryMap
> 
> Thank you Kiyohara-san. After I loaded the physical address correctly,
> the result is the same :( Besides, I also got Marvell 88F5182 eval board.
> Since I'm studying NetBSD/arm, I refer to your code and set the
> physical address KERNEL_BASE_PHYS=0x00200000 and
> KERNEL_BASE_VIRT=0xc0200000, the same result as my s3c6410 code.
> Does that mean I must set  KERNEL_BASE_PHYS=0x0008000 and
> KERNEL_BASE_VIRT=0xc0080000 as your code? or my machdep.c
> has something wrong? Thank you.

hmm...

First, the u-boot works not with MMU on ARM.
Moreover can access physical address only.  And Orion's u-boot loads
linux kernel to 0x0008000.  Therefore, I also loaded netbsd kernel into
0x0008000.
Where does your s3c6410 board load vender's OS(Linux?) kernel?
And, you must set the address to KERNEL_BASE_PHYS.  KERNEL_BASE_VIRT
is also more necessary.

Thanks,
--
kiyohara


Home | Main Index | Thread Index | Old Index