From owner-freebsd-arm@FreeBSD.ORG Mon Dec 4 08:07:01 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 854B516A407 for ; Mon, 4 Dec 2006 08:07:01 +0000 (UTC) (envelope-from lessardgreyson@eatonvance.com) Received: from gamutmedia.com (2Cust16.dub2.alter.net [62.125.89.16]) by mx1.FreeBSD.org (Postfix) with SMTP id B818043CB0 for ; Mon, 4 Dec 2006 08:06:05 +0000 (GMT) (envelope-from lessardgreyson@eatonvance.com) Message-ID: <01c71772$d0641900$2101a8c0@kofd> Date: Mon, 4 Dec 2006 08:07:09 +0100 X-MSMail-Priority: Normal X-Priority: 3 From: "Doyle Koepp" To: MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_000_000C_01C71779.96EEC2E0" Content-Location: http://seek2.zootseek.com/d4/body2.html X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: paravan runu X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Doyle Koepp List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 08:07:01 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C71779.96EEC2E0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable dear, welcome. I would stand to greet you, but only with difficulty. turned back and spread his arms wide. We were slammed back into our seats and were on our way. High and You have to close your gob. Look at these orders. Do as instructed. The elevator they hustled me to had not been marked on the map issued Nothing important, I sand, stifling a yawn at the unimportance of beginning when the explosion occurred. End of report. never can. the male sex. I would appreciate samples from your associates. was in the open long enough for a brief transmission. It looks alien enough to be alien, I said. Looking at it was ------=_NextPart_000_000C_01C71779.96EEC2E0-- From owner-freebsd-arm@FreeBSD.ORG Tue Dec 5 10:58:32 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F5CB16A47B for ; Tue, 5 Dec 2006 10:58:32 +0000 (UTC) (envelope-from p2334@www5.ready2host.de) Received: from www5.ready2host.de (www5.ready2host.de [85.10.198.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4EC943CA7 for ; Tue, 5 Dec 2006 10:57:52 +0000 (GMT) (envelope-from p2334@www5.ready2host.de) Received: by www5.ready2host.de (Postfix, from userid 755) id AC438163C; Tue, 5 Dec 2006 11:56:37 +0100 (CET) To: freebsd-arm@freebsd.org From: HSBC Bank PLC. Message-Id: <1307461126.837@hsbc.co.uk> Content-Transfer-Encoding: 8bit Date: Tue, 5 Dec 2006 11:56:37 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Security Check: Confirm your Log-In details 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, 05 Dec 2006 10:58:32 -0000 HSBC Bank plc * HSBC Bank plc * * * * We noticed that you have transfered some money from your account and would like to take extra security measures to ensure that the transaction is not fraudulent. We have also increased in length our security number so as to put an end to all fraudulent activities. You are adviced to follow the link below to confirm your transfer before we complete the transaction. [1]https://securityalert.hsbc.co.uk/1/2/ Security Advisor HSBC Bank PLC. _________________________________________________________________ Please do not reply to this e-mail. Mail sent to this address cannot be answered. For assistance, log in to your HSBC Online Bank account and choose the "Help" link on any page. HSBC Email ID # 1009 References 1. http://www.affective-insanity.de/db/index.html From owner-freebsd-arm@FreeBSD.ORG Wed Dec 6 20:11:46 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E28716A407 for ; Wed, 6 Dec 2006 20:11:46 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 664D843CBF for ; Wed, 6 Dec 2006 20:10:50 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id kB6JYqEo075777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 6 Dec 2006 11:34:53 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <45771B5C.303@errno.com> Date: Wed, 06 Dec 2006 11:34:52 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5.0.7 (X11/20060920) MIME-Version: 1.0 To: freebsd-arm@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Gateworks 2348 and ath 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: Wed, 06 Dec 2006 20:11:46 -0000 I just posted a new ath hal for testing. I've been using it (or similar verisons) on my Avila boards. The hal works fine on linux but there appears to be a problem with interrupts on freebsd so beware. The symptom is that when operating in ap mode under heavy load interrupts will stop. I've also noticed that ath_intr is being called w/o the pending status but set in the ath h/w so there's something not right in the core interrupt support. This is just fyi (and of course folks are welcome to dig for a fix). > I've placed a new hal out for testing. I'd like to commit it after more > folks work with it so feedback would be helpful. > > http://people.freebsd.org/~sam/ath_hal-20061205.tgz > > There are numerous small bugs fixed in this version but the main change > is a split of the descriptor state so that s/w state can be placed in > cached memory when h/w state is in uncached memory. This results in > noticeable performance gains on certain architectures. > > To use this hal you must patch the driver and rate control modules with > this: > > http://people.freebsd.org/~sam/ath-20061205.patch > > Not sure if the patch will apply cleanly to RELENG_6. > > Sam From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 01:50:54 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1934516A417; Fri, 8 Dec 2006 01:50:54 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D38A43CA3; Fri, 8 Dec 2006 01:49:50 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kB81oh7T035036; Fri, 8 Dec 2006 02:50:43 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kB81oXTo078920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 02:50:33 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kB81oW6e055584; Fri, 8 Dec 2006 02:50:32 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB81oW1R055583; Fri, 8 Dec 2006 02:50:32 +0100 (CET) (envelope-from ticso) Date: Fri, 8 Dec 2006 02:50:32 +0100 From: Bernd Walter To: freebsd-arm@freebsd.org Message-ID: <20061208015032.GF54209@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: Bernd Walter , imp@freebsd.org Subject: questions about current RM9200 state X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 01:50:54 -0000 This is with P4 Source and an SD card inserted: >e 0x20000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-CURRENT #0: Thu Dec 7 23:49:05 CET 2006 ticso@cicely7.cicely.de:/usr/obj/arm/arm-p4/src/sys/BWCT CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 62459904 (59 MB) CONFIG: invalid hint 'hint.ohci.at=apb' CONFIG: invalid hint 'hint.ohci.maddr=0x00300000' atmelarm0: on motherboard at91_st0: mem 0xdffffd00:0x100 irq 1 on atmelarm0 at91_st0: watchdog registered, timeout intervall max. 64 sec at91_pio0: mem 0xdffff400:0x200 irq 1 on atmelarm0 at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0 at91_pio1: mem 0xdffff600:0x200 irq 1 on atmelarm0 at91_pio1: ABSR: 0xff300 OSR: 0 PSR:0x3fc00cff ODSR: 0 at91_pio2: mem 0xdffff800:0x200 irq 1 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0 at91_pio3: mem 0xdffffa00:0x200 irq 1 on atmelarm0 at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 at91_pmc0: mem 0xdffffc00:0x100 irq 1 on atmelarm0 at91_pmc0: Primary: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz MCK: 37 MHz at91_rtc0: mem 0xdffffe00:0x100 irq 1 on atmelarm0 at91_mci0: mem 0xdffb4000:0x4000 irq 10 on atmelarm0 mmc0: on at91_mci0 at91_twi0: mem 0xdffb8000:0x4000 irq 12 on atmelarm0 iicbus0: on at91_twi0 iicbus0: at addr 0 iic0: on iicbus0 ds16720: at addr 0xd0 on iicbus0 ate0: mem 0xdffbc000:0x4000 irq 24 on atmelarm0 miibus0: on ate0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ate0: Ethernet address: 00:0e:42:02:00:21 uart0: mem 0xdffff200:0x200 irq 1 on atmelarm0 uart0: console (115200,n,8,1) uart1: mem 0xdffc0000:0x4000 irq 6 on atmelarm0 uart2: mem 0xdffc4000:0x4000 irq 7 on atmelarm0 uart3: mem 0xdffc8000:0x4000 irq 8 on atmelarm0 uart4: mem 0xdffcc000:0x4000 irq 9 on atmelarm0 at91_ssc0: mem 0xdffd0000:0x4000 irq 14 on atmelarm0 at91_ssc1: mem 0xdffd4000:0x4000 irq 15 on atmelarm0 at91_ssc2: mem 0xdffd8000:0x4000 irq 16 on atmelarm0 at91_spi0: mem 0xdffe0000:0x4000 irq 13 on atmelarm0 spibus0: on at91_spi0 Cannot get 100 Hz clock; using 128Hz Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 Timecounters tick every 7.812 msec at91_mci0: Setting controller bus width to 1 at91_mci0: Setting controller bus width to 1 at91_mci0: Setting controller bus width to 1 at91_mci0: Setting controller bus width to 1 mmc0: setting transfer rate to 30.000MHz at91_mci0: Setting controller bus width to 1 Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:21) [...] No SD card found it seems. An MMC card with my old kernel and qdmmc driver stil probes: at91_qdmmc0: mem 0xdffb4000-0xdffb7fff irq 10 on atmelarm0 at91_qdmmc0: [MPSAFE] at91_qdmmc_attach: operating conditions: 0xff8000 Found MMC 0 - CID = 0x2c0000414620484d5010a5701244915 MMC 0: Vendor-ID = 0x2c MMC 0: OEM-ID = 0x0 MMC 0: Productname = AF HMP MMC 0: Revision = 0x10 MMC 0: Serial = 0xa5700124 MMC 0: Manufacturing Date = 2006/4 Set MMC 0 address to 0xcafe MMC 0: CSD = 0x905e002a1f5983deedb707ff96400017 MMC 0: Blocksize = 512 Bytes MMC 0: c_size = 3963 MMC 0: c_size_mult = 256 MMC 0: Size = 519569408 Bytes The slot should be correctly 4 bit wired, but according to the boot messages it is used 1bit anyway. Can't speak about boot code probing, since I still have old netboot loader installed. About TWI - hinted devices are listed, but I havn't tested if they really work yet. But I can't probe the bus from userland: [56]arm9# ./iic_probe /dev/iic0 - and nothing listed. Well - this might be a hardware issue, since I did not use iic on that board yet. The Source did at least worked on x86 boards bevor. #include #include #include #include #include #include #include int main(int argc, char *argv[]); void usage(void); int main(int argc, char *argv[]) { int i, error; struct iiccmd cmd; if (argc != 2) usage(); int bus = open(argv[1], O_RDWR | O_EXCL); if (bus < 0) { printf("opening I2C bus device %s failed\n", argv[1]); exit(1); } for (i = 1 ; i <= 127; i++) { cmd.slave = (i << 1); cmd.count = 0; cmd.last = 0; cmd.buf = NULL; error = ioctl(bus, I2CSTART, &cmd); if (!error) { printf("device %i exists\n", i); ioctl(bus, I2CSTOP, NULL); } } close(bus); return (0); } void usage(void) { printf("usage: iic_probe dev\n"); exit(1); } May I want to get rid of at91_rtc0, since we have DS1672 driver support? How can I find out which clock is active? Shouldn't it keep the time with at91_rtc0 over a simple reboot as well? At least the time did not survive a reboot. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 03:51:02 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C6F116A416 for ; Fri, 8 Dec 2006 03:51:02 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A15243CA6 for ; Fri, 8 Dec 2006 03:50:06 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kB83nE40028522; Thu, 7 Dec 2006 20:49:14 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 07 Dec 2006 20:50:08 -0700 (MST) Message-Id: <20061207.205008.-432839162.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: "M. Warner Losh" In-Reply-To: <20061208015032.GF54209@cicely12.cicely.de> References: <20061208015032.GF54209@cicely12.cicely.de> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 07 Dec 2006 20:49:14 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: questions about current RM9200 state 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: Fri, 08 Dec 2006 03:51:02 -0000 In message: <20061208015032.GF54209@cicely12.cicely.de> Bernd Walter writes: : This is with P4 Source and an SD card inserted: : >e 0x20000000 which bootloader? The bootloader is responsible for setting up some things, and maybe the version you are using doesn't set them all up. It is a longshot since I think that the board init code does setup the sd/mmc bus by default. : at91_mci0: Setting controller bus width to 1 : at91_mci0: Setting controller bus width to 1 : at91_mci0: Setting controller bus width to 1 : at91_mci0: Setting controller bus width to 1 : mmc0: setting transfer rate to 30.000MHz : at91_mci0: Setting controller bus width to 1 : Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:21) : [...] : : No SD card found it seems. Is it an SD card and not an MMC card? We'll need to add some debug to see why this is the case. It should find it. It may not detect the new SDHC cards, but since those are expensive, that's a long shot. : About TWI - hinted devices are listed, but I havn't tested if they : really work yet. They should. I'm reading/writing the iic eeproms now. : But I can't probe the bus from userland: : [56]arm9# ./iic_probe /dev/iic0 : - and nothing listed. twi doesn't support START/STOP ioctls that you use. Hmmm, that's in p4 that I've removed them because I never got that working. I also think the version in -head isn't the latest, working one. I think you do the same thing with a 0 byte transfer. Except we don't detect NOACK quite right yet, I'm afraid. I'd expect an error each time you tried. : error = ioctl(bus, I2CSTART, &cmd); : if (!error) { : printf("device %i exists\n", i); : ioctl(bus, I2CSTOP, NULL); : } : May I want to get rid of at91_rtc0, since we have DS1672 driver support? at91_rtc0 is about useless, since it resets every single time the core resets. : How can I find out which clock is active? I'm unsure. : Shouldn't it keep the time with at91_rtc0 over a simple reboot as well? No. The hardware resets to 1998 every time the core resets. : At least the time did not survive a reboot. Yea. I thought it would too, but careful study says 'no'. Warner From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 08:15:13 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFE3E16A416 for ; Fri, 8 Dec 2006 08:15:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24E9A43CB9 for ; Fri, 8 Dec 2006 08:14:14 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kB88EaQh030740; Fri, 8 Dec 2006 01:14:36 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 08 Dec 2006 01:15:31 -0700 (MST) Message-Id: <20061208.011531.420518593.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: "M. Warner Losh" In-Reply-To: <20061207.205008.-432839162.imp@bsdimp.com> References: <20061208015032.GF54209@cicely12.cicely.de> <20061207.205008.-432839162.imp@bsdimp.com> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 08 Dec 2006 01:14:37 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: questions about current RM9200 state 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: Fri, 08 Dec 2006 08:15:13 -0000 Also, did you have 'device mmcsd' in your kernel config file? Warner From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 10:42:44 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9BDD216A403 for ; Fri, 8 Dec 2006 10:42:44 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC1D243CA6 for ; Fri, 8 Dec 2006 10:41:46 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kB8Agd5G042548; Fri, 8 Dec 2006 11:42:39 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kB8AgUlM083779 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 11:42:30 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kB8AgTMU057195; Fri, 8 Dec 2006 11:42:29 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB8AgSqP057193; Fri, 8 Dec 2006 11:42:28 +0100 (CET) (envelope-from ticso) Date: Fri, 8 Dec 2006 11:42:28 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20061208104227.GH54209@cicely12.cicely.de> References: <20061208015032.GF54209@cicely12.cicely.de> <20061207.205008.-432839162.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061207.205008.-432839162.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: questions about current RM9200 state X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 10:42:44 -0000 On Thu, Dec 07, 2006 at 08:50:08PM -0700, M. Warner Losh wrote: > In message: <20061208015032.GF54209@cicely12.cicely.de> > Bernd Walter writes: > : This is with P4 Source and an SD card inserted: > : >e 0x20000000 > > which bootloader? The bootloader is responsible for setting up some > things, and maybe the version you are using doesn't set them all up. > It is a longshot since I think that the board init code does setup the > sd/mmc bus by default. Ok - it's clearly a pre mci bootloader. It will take some time until I have merged my changes into the current layout. I hoped to do the kernel work first. > : at91_mci0: Setting controller bus width to 1 > : at91_mci0: Setting controller bus width to 1 > : at91_mci0: Setting controller bus width to 1 > : at91_mci0: Setting controller bus width to 1 > : mmc0: setting transfer rate to 30.000MHz > : at91_mci0: Setting controller bus width to 1 > : Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:21) > : [...] > : > : No SD card found it seems. > > Is it an SD card and not an MMC card? We'll need to add some debug to > see why this is the case. It should find it. It may not detect the > new SDHC cards, but since those are expensive, that's a long shot. Yes - it is an SD card during this boot. And yes mmcsd is in the kernel. But as stated above it is an old loader. SDMC? > : About TWI - hinted devices are listed, but I havn't tested if they > : really work yet. > > They should. I'm reading/writing the iic eeproms now. Thought so :) Well - I've found out with AT91SAM7X256 work that the DS1672 is picky without battery power and it has none without configuring charging. > : But I can't probe the bus from userland: > : [56]arm9# ./iic_probe /dev/iic0 > : - and nothing listed. > > twi doesn't support START/STOP ioctls that you use. Hmmm, that's in > p4 that I've removed them because I never got that working. I also > think the version in -head isn't the latest, working one. I think you > do the same thing with a 0 byte transfer. Except we don't detect > NOACK quite right yet, I'm afraid. I'd expect an error each time you > tried. Ah - Ok, will switch to 0 Byte transfers and retest. Did you update iicsmb as well? > : error = ioctl(bus, I2CSTART, &cmd); > : if (!error) { > : printf("device %i exists\n", i); > : ioctl(bus, I2CSTOP, NULL); > : } > : May I want to get rid of at91_rtc0, since we have DS1672 driver support? > > at91_rtc0 is about useless, since it resets every single time the core > resets. Sigh - silly thing... And you still need to solder that 32kHz xtal for booting :( > : How can I find out which clock is active? > > I'm unsure. So to be shure I don't want at91_rtc in the kernel? > : Shouldn't it keep the time with at91_rtc0 over a simple reboot as well? > > No. The hardware resets to 1998 every time the core resets. > > : At least the time did not survive a reboot. > > Yea. I thought it would too, but careful study says 'no'. > > Warner -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 11:49:29 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 650B916A403 for ; Fri, 8 Dec 2006 11:49:29 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4653B43CA6 for ; Fri, 8 Dec 2006 11:48:31 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kB8BnOKp043551; Fri, 8 Dec 2006 12:49:24 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kB8Bn96A084543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 12:49:09 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kB8Bn87H057425; Fri, 8 Dec 2006 12:49:08 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB8Bn8at057424; Fri, 8 Dec 2006 12:49:08 +0100 (CET) (envelope-from ticso) Date: Fri, 8 Dec 2006 12:49:08 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20061208114906.GJ54209@cicely12.cicely.de> References: <20061208015032.GF54209@cicely12.cicely.de> <20061207.205008.-432839162.imp@bsdimp.com> <20061208104227.GH54209@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061208104227.GH54209@cicely12.cicely.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: questions about current RM9200 state X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 11:49:29 -0000 On Fri, Dec 08, 2006 at 11:42:28AM +0100, Bernd Walter wrote: > On Thu, Dec 07, 2006 at 08:50:08PM -0700, M. Warner Losh wrote: > > In message: <20061208015032.GF54209@cicely12.cicely.de> > > Bernd Walter writes: > > : But I can't probe the bus from userland: > > : [56]arm9# ./iic_probe /dev/iic0 > > : - and nothing listed. > > > > twi doesn't support START/STOP ioctls that you use. Hmmm, that's in > > p4 that I've removed them because I never got that working. I also > > think the version in -head isn't the latest, working one. I think you > > do the same thing with a 0 byte transfer. Except we don't detect > > NOACK quite right yet, I'm afraid. I'd expect an error each time you > > tried. > > Ah - Ok, will switch to 0 Byte transfers and retest. iic.c: case I2CWRITE: if (s->count <= 0) { error = EINVAL; break; } Well - it wouldn't work without NOACK detection anyway. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 13:13:30 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BAC1F16A40F for ; Fri, 8 Dec 2006 13:13:30 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E2B143CA3 for ; Fri, 8 Dec 2006 13:12:32 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kB8DDPMV044793; Fri, 8 Dec 2006 14:13:26 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kB8DDGcF085351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 14:13:16 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kB8DDGpD057713; Fri, 8 Dec 2006 14:13:16 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB8DDFnY057712; Fri, 8 Dec 2006 14:13:15 +0100 (CET) (envelope-from ticso) Date: Fri, 8 Dec 2006 14:13:15 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20061208131314.GQ54209@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: bootspi parameters X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 13:13:30 -0000 It seems that you've put the boot commands into an external eeprom instead of the previously hardcoded values. Am I right with this assumption? Since I don't have an additional eeprom on board I'll still need hardcoded values - or put them into SPI-flash. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 13:32:05 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7EDF016A403 for ; Fri, 8 Dec 2006 13:32:05 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECB7043CAC for ; Fri, 8 Dec 2006 13:31:06 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kB8DW1k7045072; Fri, 8 Dec 2006 14:32:01 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kB8DVns4085495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 14:31:50 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kB8DVnsM057757; Fri, 8 Dec 2006 14:31:49 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB8DVn39057756; Fri, 8 Dec 2006 14:31:49 +0100 (CET) (envelope-from ticso) Date: Fri, 8 Dec 2006 14:31:49 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20061208133148.GR54209@cicely12.cicely.de> References: <20061208131314.GQ54209@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061208131314.GQ54209@cicely12.cicely.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: bootspi parameters X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 13:32:05 -0000 On Fri, Dec 08, 2006 at 02:13:15PM +0100, Bernd Walter wrote: > It seems that you've put the boot commands into an external eeprom > instead of the previously hardcoded values. > Am I right with this assumption? > Since I don't have an additional eeprom on board I'll still need > hardcoded values - or put them into SPI-flash. Ups - it's still as it was bevor - just the file was moved. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 15:58:25 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D02E16A403 for ; Fri, 8 Dec 2006 15:58:25 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74C7B43CA3 for ; Fri, 8 Dec 2006 15:57:26 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kB8Fs1ra039970; Fri, 8 Dec 2006 08:54:01 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 08 Dec 2006 08:54:56 -0700 (MST) Message-Id: <20061208.085456.-1548240230.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: "M. Warner Losh" In-Reply-To: <20061208131314.GQ54209@cicely12.cicely.de> References: <20061208131314.GQ54209@cicely12.cicely.de> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 08 Dec 2006 08:54:02 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: bootspi parameters 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: Fri, 08 Dec 2006 15:58:25 -0000 In message: <20061208131314.GQ54209@cicely12.cicely.de> Bernd Walter writes: : It seems that you've put the boot commands into an external eeprom : instead of the previously hardcoded values. : Am I right with this assumption? : Since I don't have an additional eeprom on board I'll still need : hardcoded values - or put them into SPI-flash. What device are you booting from? Warner From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 16:14:39 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A951816A403 for ; Fri, 8 Dec 2006 16:14:39 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6952343CAB for ; Fri, 8 Dec 2006 16:13:40 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kB8GEYMH047582; Fri, 8 Dec 2006 17:14:34 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kB8GEQtG087160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 17:14:26 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kB8GEQVO058192; Fri, 8 Dec 2006 17:14:26 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB8GEPeh058191; Fri, 8 Dec 2006 17:14:26 +0100 (CET) (envelope-from ticso) Date: Fri, 8 Dec 2006 17:14:25 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20061208161425.GU54209@cicely12.cicely.de> References: <20061208131314.GQ54209@cicely12.cicely.de> <20061208.085456.-1548240230.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061208.085456.-1548240230.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: bootspi parameters X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 16:14:39 -0000 On Fri, Dec 08, 2006 at 08:54:56AM -0700, M. Warner Losh wrote: > In message: <20061208131314.GQ54209@cicely12.cicely.de> > Bernd Walter writes: > : It seems that you've put the boot commands into an external eeprom > : instead of the previously hardcoded values. > : Am I right with this assumption? > : Since I don't have an additional eeprom on board I'll still need > : hardcoded values - or put them into SPI-flash. > > What device are you booting from? currently network via bootspi. This works after updating as usual. Still no SD card however. Now I'm trying boot2 and SD card: MAC 0:e:42:2:0:21 Default: /boot/kernel/kernel.gz.tramp boot: No /boot/kernel/kernel.gz.tramp Default: /boot/kernel/kernel.gz.tramp boot: MAC 0:e:42:2:0:21 Default: /boot/kernel/kernel.gz.tramp boot: Without a media inserted I get lots of dots. The SD card is still virgin msdosfs, so not surprising that there is no kernel. Btw.: How can I build a kernel.gz.tramp? Interestingly I need to type every character twice at boot prompt. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 22:42:08 2006 Return-Path: X-Original-To: freebsd-arm@FreeBSD.ORG Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6FFC16A416 for ; Fri, 8 Dec 2006 22:42:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61AB943CB2 for ; Fri, 8 Dec 2006 22:41:04 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kB8Md6YX043922; Fri, 8 Dec 2006 15:39:07 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 08 Dec 2006 15:39:06 -0700 (MST) Message-Id: <20061208.153906.74706758.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: Warner Losh In-Reply-To: <20061208161425.GU54209@cicely12.cicely.de> References: <20061208131314.GQ54209@cicely12.cicely.de> <20061208.085456.-1548240230.imp@bsdimp.com> <20061208161425.GU54209@cicely12.cicely.de> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 08 Dec 2006 15:39:07 -0700 (MST) Cc: freebsd-arm@FreeBSD.ORG Subject: Re: bootspi parameters 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: Fri, 08 Dec 2006 22:42:08 -0000 > The SD card is still virgin msdosfs, so not surprising that there is no > kernel. Yes. However, I'd have thought it would have printed some error message to that effect. > Btw.: How can I build a kernel.gz.tramp? make kernel.tramp > Interestingly I need to type every character twice at boot prompt. That's a plain, old-fashioned bug. I'll have to work on fixing it now that I can write the iic part from FreeBSD... Warner From owner-freebsd-arm@FreeBSD.ORG Sat Dec 9 05:33:08 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6994016A403 for ; Sat, 9 Dec 2006 05:33:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id A819643CA3 for ; Sat, 9 Dec 2006 05:32:05 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kB95V6Mw047504; Fri, 8 Dec 2006 22:31:06 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 08 Dec 2006 22:32:00 -0700 (MST) Message-Id: <20061208.223200.-1303464500.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: "M. Warner Losh" In-Reply-To: <20061208114906.GJ54209@cicely12.cicely.de> References: <20061207.205008.-432839162.imp@bsdimp.com> <20061208104227.GH54209@cicely12.cicely.de> <20061208114906.GJ54209@cicely12.cicely.de> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 08 Dec 2006 22:31:07 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: questions about current RM9200 state 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: Sat, 09 Dec 2006 05:33:08 -0000 In message: <20061208114906.GJ54209@cicely12.cicely.de> Bernd Walter writes: : On Fri, Dec 08, 2006 at 11:42:28AM +0100, Bernd Walter wrote: : > On Thu, Dec 07, 2006 at 08:50:08PM -0700, M. Warner Losh wrote: : > > In message: <20061208015032.GF54209@cicely12.cicely.de> : > > Bernd Walter writes: : > > : But I can't probe the bus from userland: : > > : [56]arm9# ./iic_probe /dev/iic0 : > > : - and nothing listed. : > > : > > twi doesn't support START/STOP ioctls that you use. Hmmm, that's in : > > p4 that I've removed them because I never got that working. I also : > > think the version in -head isn't the latest, working one. I think you : > > do the same thing with a 0 byte transfer. Except we don't detect : > > NOACK quite right yet, I'm afraid. I'd expect an error each time you : > > tried. : > : > Ah - Ok, will switch to 0 Byte transfers and retest. : : iic.c: : case I2CWRITE: : if (s->count <= 0) { : error = EINVAL; : break; : } : : Well - it wouldn't work without NOACK detection anyway. I think a zero-byte transfer would do it. I've not updated iicsmb to use the new transfer paradigm. That's my bad. Warner From owner-freebsd-arm@FreeBSD.ORG Sat Dec 9 11:41:54 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7165516A47E for ; Sat, 9 Dec 2006 11:41:54 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32C0643CAB for ; Sat, 9 Dec 2006 11:40:41 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kB9Bfc8p066922; Sat, 9 Dec 2006 12:41:39 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kB9BfQFj097689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Dec 2006 12:41:27 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kB9BfQNH061710; Sat, 9 Dec 2006 12:41:26 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB9BfPGN061709; Sat, 9 Dec 2006 12:41:25 +0100 (CET) (envelope-from ticso) Date: Sat, 9 Dec 2006 12:41:25 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20061209114124.GB54209@cicely12.cicely.de> References: <20061207.205008.-432839162.imp@bsdimp.com> <20061208104227.GH54209@cicely12.cicely.de> <20061208114906.GJ54209@cicely12.cicely.de> <20061208.223200.-1303464500.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061208.223200.-1303464500.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: questions about current RM9200 state X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2006 11:41:54 -0000 On Fri, Dec 08, 2006 at 10:32:00PM -0700, M. Warner Losh wrote: > In message: <20061208114906.GJ54209@cicely12.cicely.de> > Bernd Walter writes: > : On Fri, Dec 08, 2006 at 11:42:28AM +0100, Bernd Walter wrote: > : > On Thu, Dec 07, 2006 at 08:50:08PM -0700, M. Warner Losh wrote: > : > > In message: <20061208015032.GF54209@cicely12.cicely.de> > : > > Bernd Walter writes: > : > > : But I can't probe the bus from userland: > : > > : [56]arm9# ./iic_probe /dev/iic0 > : > > : - and nothing listed. > : > > > : > > twi doesn't support START/STOP ioctls that you use. Hmmm, that's in > : > > p4 that I've removed them because I never got that working. I also > : > > think the version in -head isn't the latest, working one. I think you > : > > do the same thing with a 0 byte transfer. Except we don't detect > : > > NOACK quite right yet, I'm afraid. I'd expect an error each time you > : > > tried. > : > > : > Ah - Ok, will switch to 0 Byte transfers and retest. > : > : iic.c: > : case I2CWRITE: > : if (s->count <= 0) { > : error = EINVAL; > : break; > : } > : > : Well - it wouldn't work without NOACK detection anyway. > > I think a zero-byte transfer would do it. Unfortunately the TWI controller can't do zero transfers at all :( I thought the RM9200 has different one, but it is the same ^$%@ as in the AT91SAM7 series, which I already had some hard time with. The TWI controller in the AVR series is much better IMHO. I'll send you a diff later today to fix some small bugs that I've found in the driver - those points aren't documented very well in the handbook. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Sat Dec 9 17:54:25 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6757D16A403 for ; Sat, 9 Dec 2006 17:54:25 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABD9F43C9E for ; Sat, 9 Dec 2006 17:53:18 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kB9HpvPN059306; Sat, 9 Dec 2006 10:51:57 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 09 Dec 2006 10:52:53 -0700 (MST) Message-Id: <20061209.105253.117917213.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: "M. Warner Losh" In-Reply-To: <20061209114124.GB54209@cicely12.cicely.de> References: <20061208114906.GJ54209@cicely12.cicely.de> <20061208.223200.-1303464500.imp@bsdimp.com> <20061209114124.GB54209@cicely12.cicely.de> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 09 Dec 2006 10:51:57 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: questions about current RM9200 state 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: Sat, 09 Dec 2006 17:54:25 -0000 In message: <20061209114124.GB54209@cicely12.cicely.de> Bernd Walter writes: : On Fri, Dec 08, 2006 at 10:32:00PM -0700, M. Warner Losh wrote: : > In message: <20061208114906.GJ54209@cicely12.cicely.de> : > Bernd Walter writes: : > : On Fri, Dec 08, 2006 at 11:42:28AM +0100, Bernd Walter wrote: : > : > On Thu, Dec 07, 2006 at 08:50:08PM -0700, M. Warner Losh wrote: : > : > > In message: <20061208015032.GF54209@cicely12.cicely.de> : > : > > Bernd Walter writes: : > : > > : But I can't probe the bus from userland: : > : > > : [56]arm9# ./iic_probe /dev/iic0 : > : > > : - and nothing listed. : > : > > : > : > > twi doesn't support START/STOP ioctls that you use. Hmmm, that's in : > : > > p4 that I've removed them because I never got that working. I also : > : > > think the version in -head isn't the latest, working one. I think you : > : > > do the same thing with a 0 byte transfer. Except we don't detect : > : > > NOACK quite right yet, I'm afraid. I'd expect an error each time you : > : > > tried. : > : > : > : > Ah - Ok, will switch to 0 Byte transfers and retest. : > : : > : iic.c: : > : case I2CWRITE: : > : if (s->count <= 0) { : > : error = EINVAL; : > : break; : > : } : > : : > : Well - it wouldn't work without NOACK detection anyway. : > : > I think a zero-byte transfer would do it. : : Unfortunately the TWI controller can't do zero transfers at all :( : I thought the RM9200 has different one, but it is the same ^$%@ as in : the AT91SAM7 series, which I already had some hard time with. : The TWI controller in the AVR series is much better IMHO. : I'll send you a diff later today to fix some small bugs that I've found : in the driver - those points aren't documented very well in the : handbook. OK. We can put back in the old interface. The TWI bugs are very underdocumented. Warner From owner-freebsd-arm@FreeBSD.ORG Sat Dec 9 17:58:04 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5417F16A4FB for ; Sat, 9 Dec 2006 17:58:04 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD3BF43CA0 for ; Sat, 9 Dec 2006 17:56:55 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kB9HtcFw059342; Sat, 9 Dec 2006 10:55:38 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 09 Dec 2006 10:56:34 -0700 (MST) Message-Id: <20061209.105634.1690385738.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: "M. Warner Losh" In-Reply-To: <20061209114124.GB54209@cicely12.cicely.de> References: <20061208114906.GJ54209@cicely12.cicely.de> <20061208.223200.-1303464500.imp@bsdimp.com> <20061209114124.GB54209@cicely12.cicely.de> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 09 Dec 2006 10:55:38 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: questions about current RM9200 state 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: Sat, 09 Dec 2006 17:58:04 -0000 In message: <20061209114124.GB54209@cicely12.cicely.de> Bernd Walter writes: : On Fri, Dec 08, 2006 at 10:32:00PM -0700, M. Warner Losh wrote: : > In message: <20061208114906.GJ54209@cicely12.cicely.de> : > Bernd Walter writes: : > : On Fri, Dec 08, 2006 at 11:42:28AM +0100, Bernd Walter wrote: : > : > On Thu, Dec 07, 2006 at 08:50:08PM -0700, M. Warner Losh wrote: : > : > > In message: <20061208015032.GF54209@cicely12.cicely.de> : > : > > Bernd Walter writes: : > : > > : But I can't probe the bus from userland: : > : > > : [56]arm9# ./iic_probe /dev/iic0 : > : > > : - and nothing listed. : > : > > : > : > > twi doesn't support START/STOP ioctls that you use. Hmmm, that's in : > : > > p4 that I've removed them because I never got that working. I also : > : > > think the version in -head isn't the latest, working one. I think you : > : > > do the same thing with a 0 byte transfer. Except we don't detect : > : > > NOACK quite right yet, I'm afraid. I'd expect an error each time you : > : > > tried. : > : > : > : > Ah - Ok, will switch to 0 Byte transfers and retest. : > : : > : iic.c: : > : case I2CWRITE: : > : if (s->count <= 0) { : > : error = EINVAL; : > : break; : > : } : > : : > : Well - it wouldn't work without NOACK detection anyway. : > : > I think a zero-byte transfer would do it. : : Unfortunately the TWI controller can't do zero transfers at all :( : I thought the RM9200 has different one, but it is the same ^$%@ as in : the AT91SAM7 series, which I already had some hard time with. : The TWI controller in the AVR series is much better IMHO. : I'll send you a diff later today to fix some small bugs that I've found : in the driver - those points aren't documented very well in the : handbook. BTW, I have a AVR32 eval board... Warner