Subject: Re: netbsd port for GP32
To: Hiroyuki Bessho <bsh@grotto.jp>
From: Karl Janmar <karl@utopiafoundation.org>
List: port-arm
Date: 03/20/2005 14:39:42
Hi,

I just want to report my progress:
--------------------------------
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

NetBSD 2.0.1 (TINY_GP32) #196: Sun Mar 20 14:25:00 CET 2005
 
karl@void.grd.sgsnet.se:/media_archive/cross_netbsd/src/sys/arch/gp32/c2
total memory = 8192 KB
avail memory = 4856 KB
mainbus0 (root)
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)
cpu0: DC enabled IC enabled WB enabled EABT
cpu0: 16KB/32B 64-way Instruction cache
cpu0: 16KB/32B 64-way write-back-locking-A Data cache
ssio0 at mainbus0: fclk 67 MHz hclk 33 MHz pclk 16 MHz
sscom0 at ssio0 unit 0: UART0 addr=15000sscom0: console (major=104)
clock: hz=100 stathz = 64 PCLK=16950000 prescaler=2 tc=8276
rn_init: radix functions require max_keylen be set
boot device: <unknown>
root device:
----------------------------------

I have disabled caching from in first boot stage, because I haven't got 
it boot
reliably with Caches enabled. I just need to pay more intention when 
doing the remapping of the
kernel memory at the first boot stage.

It takes about 1.5 seconds for it to complete the boot without cache, I 
think it went much faster (< 1.5 sec) when I had
cache enabled. For now these 1.5 seconds are not very important as the 
uploading of the kernel consume most of the
time, about 20 seconds using USB.

I have made 2400X specific functions and filled constants for the 
s3c2400X chip, so if you are also playing with this
chip maybe we should try to minimize duplicate work and synchronize our 
sources.

Btw, do you know if there is any work done on SMC readers for the 
s3c2xx0 chip in NetBSD? I haven't seen any around
but I wanted to ask before start digging in that.


Regards,

Karl Janmar


Hiroyuki Bessho wrote:
> At Mon, 14 Mar 2005 22:35:49 +0100,
> Karl Janmar wrote:
> 
>>Hi there,
>>
>>I'am about to port netbsd to the GP32, it's a pet project for myself to 
>>familiarize me with the ARM9 architeture.
>>The GP32 (http://www.gbax.com/gp32review.html) is based on the samsung 
>>s3c2400X, and there exist implementations for the s3c2410 and s3c2800 in 
>>netbsd already, so it gives me a lot of  shared code from them, nice!
>>
>>I have some administrative questions, where whould one put this port? 
>>Straight into the arch/ directory?
>>  or what's the general idea about 
>>arch/arm,arch/hpcarm,arch/evbarm,arch/acorn32 and arch/shark? Should 
>>each tiny new non-evb ARM architeture create a new entry in the arch/ 
>>directory?
>>
> 
> 
>   All codes that are related to S3C2400 and independent with platforms
> (GP32 in this case) should go into arch/arm/s3c2xx0.  GP32 specific
> part should go to arch/gp32, IMHO.  But it may be easier to put them
> under arch/evbarm for the beginning.
> 
> 
>   I have SMDK2400 eval board at my office, but I haven't thought it's
> worth to port.  Knowing that there's such a cool beast, I think I
> should get it back from the shelf...
> 
> Happy hacking, Karl.
> 
> --
> bsh.