From owner-freebsd-arm@FreeBSD.ORG Tue Jun 1 02:15:30 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 5D2591065672 for ; Tue, 1 Jun 2010 02:15:30 +0000 (UTC) (envelope-from yohanes@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 10BD58FC18 for ; Tue, 1 Jun 2010 02:15:29 +0000 (UTC) Received: by gyh20 with SMTP id 20so4094500gyh.13 for ; Mon, 31 May 2010 19:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=zpoTBXL0Wt103mIfZRSWx7pPQSQI7tHk/oIMctTdcEE=; b=tG8PrLR3GBoP44cvS+uHUXLg/w14XiokyiB9Ppm0eoP/CTQLBRt0iJuif4Rb1V2zzH AkIxR2wdbc3cNiUiXusn/dL6siAu4wbxcBWtWT21I10WHPpiPDJ5Qa2eZ61Ot5Sy+9kH 2JQRGIosiYhqSAKgJ4Bvk7JhsDZH7ZCcNoudo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=GTJrdU917kRSf9ljeMH5FnKve6d39ySjYVXNDC5RGaRIGa/LLORdiREx+Et0x/Bjso CV6sJMdlpXF0oIQx3d9M3F6nmcDSxR0jCCMWws0alZuEcycFzXArtPrELyHaIpFg6pQ5 EY9tsVRovO1SMQnjfEL6Gf9xp+ulSDKp3A1OI= Received: by 10.231.149.203 with SMTP id u11mr325256ibv.6.1275358528044; Mon, 31 May 2010 19:15:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.199.8 with HTTP; Mon, 31 May 2010 19:15:06 -0700 (PDT) From: Yohanes Nugroho Date: Tue, 1 Jun 2010 09:15:06 +0700 Message-ID: To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: 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:15:30 -0000 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). 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?). - 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 -- Regards Yohanes http://yohan.es/