From owner-freebsd-arm@FreeBSD.ORG Tue Jun 1 02:29:37 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCC41106566C for ; Tue, 1 Jun 2010 02:29:37 +0000 (UTC) (envelope-from john@thinlinx.com) Received: from nschwmtas02p.mx.bigpond.com (nschwmtas02p.mx.bigpond.com [61.9.189.140]) by mx1.freebsd.org (Postfix) with ESMTP id 58A1D8FC26 for ; Tue, 1 Jun 2010 02:29:36 +0000 (UTC) Received: from nschwotgx02p.mx.bigpond.com ([203.36.172.54]) by nschwmtas02p.mx.bigpond.com with ESMTP id <20100601022936.GTZJ12310.nschwmtas02p.mx.bigpond.com@nschwotgx02p.mx.bigpond.com>; Tue, 1 Jun 2010 02:29:36 +0000 Received: from [192.168.25.1] (really [203.36.172.54]) by nschwotgx02p.mx.bigpond.com with ESMTP id <20100601022935.GVHX2131.nschwotgx02p.mx.bigpond.com@[192.168.25.1]>; Tue, 1 Jun 2010 02:29:35 +0000 From: John Nicholls To: Yohanes Nugroho , freebsd-arm@freebsd.org In-Reply-To: References: Content-Type: text/plain Date: Tue, 01 Jun 2010 12:29:04 +1000 Message-Id: <1275359344.22582.21.camel@xeon.thinmesh.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A090201.4C04708F.012E,ss=1,fgs=0 Cc: Subject: Re: at91sam9g20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2010 02:29:37 -0000 On Tue, 2010-06-01 at 09:15 +0700, Yohanes Nugroho wrote: Hi Yohanes, Firstly I would like to thank you for the work you have done on this port :) > I have started AT91SAM9G20 FreeBSD-arm port several months ago with > the Hot-e (HL201 donated by John Nicholls). It mostly works now, but > the code organization is still very messy (I added many #ifdefs), I > need advice on this. > > What works: I can boot to single/multi user mode using USB disk, and > networking (it works well, 100 mbps). What doesn't work yet: NAND, > Audio, Video (John said, his team is working on this, so I am not > touching this). We will be looking after the port of the SM502 / SM107 Video driver > I have few questions: > > - What is the best way to merge AT91RM9200 code with AT91SAM9G20, some > code. I know there are several people that started to work on other > Atmel Chips, but the code never gets commited, for example: > > http://bsdimp.blogspot.com/2007/03/followup-atmel-at91-family-work.html > http://marc.info/?l=freebsd-arm&m=123783989612142&w=2 > > it has been talked about: > > http://lists.freebsd.org/pipermail/freebsd-arm/2009-May/001742.html > http://lists.freebsd.org/pipermail/freebsd-arm/2009-May/001743.html > > But Sylvestre Gallon didn't continue his work (and didn't reply my > email), so should I just try to implement what Warner Losh suggested? > I will need someone with RM9200 board to help me test if my > refactoring still works on the RM9200 board (or someone care to donate > one to me?). That's easy Yohanes, we can send you a HL200 which is a RM9200 board this already has a FreeBSD port to it > - From the state of the freebsd NAND http://wiki.freebsd.org/NAND, if > I want to write the NAND driver, I should go with FreeBSD NAND Flash > Framework (http://p4db.freebsd.org/branchView.cgi?BRANCH=nand2) right? > (I hope the code is quite stable now). > > - I've got the SPI code to work, and modify the hardcoded value in > at45d for the dataflash. I can get the JEDEC ID and status. But how > do i test reading from the /dev/flash/spi0 from userspace? > > In case anyone wants to have a look at my (still) messy code or wants > to play around with it: > > - Audio: I don't have a clue where to start writing the device driver > for this. Can anyone points me to some documents/source code to study? > > http://gitorious.org/freebsd-arm Thanks again Yohanes! John