From owner-freebsd-arm@FreeBSD.ORG Sun Feb 18 02:22:21 2007 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 59A1316A400 for ; Sun, 18 Feb 2007 02:22:21 +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 00E7C13C48D for ; Sun, 18 Feb 2007 02:22:20 +0000 (UTC) (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 l1I2LKfx040794; Sat, 17 Feb 2007 19:21:20 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 17 Feb 2007 19:22:05 -0700 (MST) Message-Id: <20070217.192205.547446193.imp@bsdimp.com> To: xride@x12.dk From: "M. Warner Losh" In-Reply-To: <20070217201021.GB66059@x12.dk> References: <20070215192810.GC78895@x12.dk> <20070215.134941.104122801.imp@bsdimp.com> <20070217201021.GB66059@x12.dk> 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, 17 Feb 2007 19:21:20 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 boot? 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: Sun, 18 Feb 2007 02:22:21 -0000 In message: <20070217201021.GB66059@x12.dk> Soeren Straarup writes: : On Thu, Feb 15, 2007 at 01:49:41PM -0700, Warner Losh wrote: : > From: Soeren Straarup : > Subject: Re: At91rm9200 boot? : > Date: Thu, 15 Feb 2007 20:28:10 +0100 : > : > > On Thu, Feb 15, 2007 at 09:46:42AM -0700, M. Warner Losh wrote: : > > > In message: <45D45269.4050509@bulinfo.net> : > > > Krassimir Slavchev writes: : > > > : M. Warner Losh wrote: : > > > : > In message: <45D3119F.4020302@bulinfo.net> : > > > : > Krassimir Slavchev writes: : > > > : > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. : > > > : > : There is bootloader installed in iic which boots linux kernel from : > > > : > : dataflash. : > > > : > : What I need to know for this bootloader to be able to boot FreeBSD kernel? : > > > : > : > > > : > How to install the FreeBSD kernel in place of the linux kernel : > > > : > currently in dataflash. : > > > : > : > > > : > Depending on the dataflash, you may also be able to do any or all of : > > > : > the following: : > > > : > (1) install the freebsd boot loader that boots from SD cards (boot2) : > > > : > (2) install the freebsd boot loader that boots from dataflash (bootspi) : > > > : > : > > > : These boot loaders can't be fitted in the 8kbytes eeprom (24C64). : > > > : > > > Well, they could be made to fit into 8KB, but they don't right now. A : > > > lot of effort has been made to make them small. bootspi likely is the : > > > easiest candidate, since it is closest. I tried really hard to make : > > > boot2 fit into 8k, but ran out of time. I did manage to slim down the : > > > boot loaders from about 48k when I started to 9-10k after all was said : > > > and done. The at91rm9200 parts have 16k of SRAM, of which 12k are : > > > useful. : > > > : > > > The newer AT91SAM926x parts have only 4kb of SRAM, so I'm unsure what : > > > I'll be doing there. : > > : > > Is there support at all for AT91SAM9260? Or should i stick to : > > AT91RM9200 ? : > : > only in my trees. Atmel gave me a board a couple of weeks ago to add : > support for it, but I've not yet had time to integrate it into the p4 : > tree or to -current. Short term at91rm9200 is what is there and : > supported. : > : > The work will be at my own pace, since I'm not funded to do it at the : > moment... If that changes, the pace will pick up. : > : > Warner : > : > : > > > : > (3) Use the FreeBSD dataflash support to manage this situation. : > > > : > : > > > : Where to find more information about this support? : > > > : > > > At the moment there's only source. src/sys/dev/flash/at45d.c has the : > > > main support for dataflash. SPI infrastructure is in src/sys/dev/spi : > > > and src/sys/arm/at91/at91_spi.c. /dev/flash/spi0, etc, appears when : > > > these devices are active. The block size that the dataflash supports : > > > is, alas, hard coded into at45d.c file at the moment, but I think that : > > > most parts have at least some support in there. : > > > : > > > Warner : > > : > > /Soeren : > > : : Hmm.. i can't really get started, looked through how linux is beeing booted : via u-boot, but that doesn't seem to be the same for this board: : http://www.mechatronicbrick.dk/index.php?option=com_content&task=view&id=13&Itemid=35 OK. I have a u-boot based board that I should try to get FreeBSD booting on. Maybe a good project for the lurkers would be to document how each of the different boot systems work and write some guidance on how to pick the one that's right for you... : If i wanna test boot it at first without placing anything in flash how can i : then make it boot, supply a patched version of bootspi or should it be boot0spi? If you put the board into recovery mode, you can download bootspi to the SRAM using xmodem. It will then execute there. Once executing, it can pull down a kernel via tftp (you'll likely have to hack the locations in the sources). There's no bootp/dhcp client built into these sources. : And then tftp the kernel down? and then nfs mount everything? The kernel can be configured to get its data via bootp, etc. These parameters include where to boot from. Warner From owner-freebsd-arm@FreeBSD.ORG Sun Feb 18 18:01:47 2007 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 DF8A116A401 for ; Sun, 18 Feb 2007 18:01:47 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe06.tele2.dk [212.247.154.163]) by mx1.freebsd.org (Postfix) with ESMTP id BC38E13C461 for ; Sun, 18 Feb 2007 18:01:46 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 416100387; Sun, 18 Feb 2007 19:01:43 +0100 Received: by x12.dk (Postfix, from userid 666) id B9A1350845; Sun, 18 Feb 2007 19:01:42 +0100 (CET) Date: Sun, 18 Feb 2007 19:01:42 +0100 From: Soeren Straarup To: "M. Warner Losh" Message-ID: <20070218180142.GC66059@x12.dk> References: <20070215192810.GC78895@x12.dk> <20070215.134941.104122801.imp@bsdimp.com> <20070217201021.GB66059@x12.dk> <20070217.192205.547446193.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070217.192205.547446193.imp@bsdimp.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 boot? 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: Sun, 18 Feb 2007 18:01:48 -0000 On Sat, Feb 17, 2007 at 07:22:05PM -0700, M. Warner Losh wrote: > In message: <20070217201021.GB66059@x12.dk> > Soeren Straarup writes: > : On Thu, Feb 15, 2007 at 01:49:41PM -0700, Warner Losh wrote: > : > From: Soeren Straarup > : > Subject: Re: At91rm9200 boot? > : > Date: Thu, 15 Feb 2007 20:28:10 +0100 > : > > : > > On Thu, Feb 15, 2007 at 09:46:42AM -0700, M. Warner Losh wrote: > : > > > In message: <45D45269.4050509@bulinfo.net> > : > > > Krassimir Slavchev writes: > : > > > : M. Warner Losh wrote: > : > > > : > In message: <45D3119F.4020302@bulinfo.net> > : > > > : > Krassimir Slavchev writes: > : > > > : > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. > : > > > : > : There is bootloader installed in iic which boots linux kernel from > : > > > : > : dataflash. > : > > > : > : What I need to know for this bootloader to be able to boot FreeBSD kernel? > : > > > : > > : > > > : > How to install the FreeBSD kernel in place of the linux kernel > : > > > : > currently in dataflash. > : > > > : > > : > > > : > Depending on the dataflash, you may also be able to do any or all of > : > > > : > the following: > : > > > : > (1) install the freebsd boot loader that boots from SD cards (boot2) > : > > > : > (2) install the freebsd boot loader that boots from dataflash (bootspi) > : > > > : > > : > > > : These boot loaders can't be fitted in the 8kbytes eeprom (24C64). > : > > > > : > > > Well, they could be made to fit into 8KB, but they don't right now. A > : > > > lot of effort has been made to make them small. bootspi likely is the > : > > > easiest candidate, since it is closest. I tried really hard to make > : > > > boot2 fit into 8k, but ran out of time. I did manage to slim down the > : > > > boot loaders from about 48k when I started to 9-10k after all was said > : > > > and done. The at91rm9200 parts have 16k of SRAM, of which 12k are > : > > > useful. > : > > > > : > > > The newer AT91SAM926x parts have only 4kb of SRAM, so I'm unsure what > : > > > I'll be doing there. > : > > > : > > Is there support at all for AT91SAM9260? Or should i stick to > : > > AT91RM9200 ? > : > > : > only in my trees. Atmel gave me a board a couple of weeks ago to add > : > support for it, but I've not yet had time to integrate it into the p4 > : > tree or to -current. Short term at91rm9200 is what is there and > : > supported. > : > > : > The work will be at my own pace, since I'm not funded to do it at the > : > moment... If that changes, the pace will pick up. > : > > : > Warner > : > > : > > : > > > : > (3) Use the FreeBSD dataflash support to manage this situation. > : > > > : > > : > > > : Where to find more information about this support? > : > > > > : > > > At the moment there's only source. src/sys/dev/flash/at45d.c has the > : > > > main support for dataflash. SPI infrastructure is in src/sys/dev/spi > : > > > and src/sys/arm/at91/at91_spi.c. /dev/flash/spi0, etc, appears when > : > > > these devices are active. The block size that the dataflash supports > : > > > is, alas, hard coded into at45d.c file at the moment, but I think that > : > > > most parts have at least some support in there. > : > > > > : > > > Warner > : > > > : > > /Soeren > : > > > : > : Hmm.. i can't really get started, looked through how linux is beeing booted > : via u-boot, but that doesn't seem to be the same for this board: > : http://www.mechatronicbrick.dk/index.php?option=com_content&task=view&id=13&Itemid=35 > > OK. I have a u-boot based board that I should try to get FreeBSD > booting on. Maybe a good project for the lurkers would be to document > how each of the different boot systems work and write some guidance on > how to pick the one that's right for you... > > : If i wanna test boot it at first without placing anything in flash how can i > : then make it boot, supply a patched version of bootspi or should it be boot0spi? > > If you put the board into recovery mode, you can download bootspi to > the SRAM using xmodem. It will then execute there. Once executing, > it can pull down a kernel via tftp (you'll likely have to hack the > locations in the sources). There's no bootp/dhcp client built into > these sources. > This might be a newbie question, but how do i compile bootspi: bugs# make ARCH=arm TARGET_ARCH=arm Warning: Object directory not changed from original /usr/src/sys/boot/arm/at91/bootspi cc -Os -mcpu=arm9 -ffreestanding -I/usr/src/sys/boot/arm/at91/bootspi/../libat91 -I/usr/src/sys/boot/arm/at91/bootspi/../../../.. -I/usr/src/sys/boot/arm/at91/bootspi/../../../../arm -D_KERNEL -Wall -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations -DBOOT_KB920X -DBOOT_COMMANDS -c /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S:0: error: bad value (arm9) for -mtune= switch *** Error code 1 Stop in /usr/src/sys/boot/arm/at91/bootspi. > : And then tftp the kernel down? and then nfs mount everything? > > The kernel can be configured to get its data via bootp, etc. These > parameters include where to boot from. > > Warner /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Sun Feb 18 18:43:15 2007 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 6C86B16A400 for ; Sun, 18 Feb 2007 18:43:15 +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 2A08A13C481 for ; Sun, 18 Feb 2007 18:43:15 +0000 (UTC) (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 l1IIetDV051956; Sun, 18 Feb 2007 11:40:55 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 18 Feb 2007 11:41:41 -0700 (MST) Message-Id: <20070218.114141.-1175572653.imp@bsdimp.com> To: xride@x12.dk From: "M. Warner Losh" In-Reply-To: <20070218180142.GC66059@x12.dk> References: <20070217201021.GB66059@x12.dk> <20070217.192205.547446193.imp@bsdimp.com> <20070218180142.GC66059@x12.dk> 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]); Sun, 18 Feb 2007 11:40:55 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 boot? 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: Sun, 18 Feb 2007 18:43:15 -0000 In message: <20070218180142.GC66059@x12.dk> Soeren Straarup writes: : This might be a newbie question, but how do i compile bootspi: : bugs# make ARCH=arm TARGET_ARCH=arm : Warning: Object directory not changed from original /usr/src/sys/boot/arm/at91/bootspi : cc -Os -mcpu=arm9 -ffreestanding -I/usr/src/sys/boot/arm/at91/bootspi/../libat91 -I/usr/src/sys/boot/arm/at91/bootspi/../../../.. -I/usr/src/sys/boot/arm/at91/bootspi/../../../../arm -D_KERNEL -Wall -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations -DBOOT_KB920X -DBOOT_COMMANDS -c /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S : `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. : /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S:0: error: bad value (arm9) for -mtune= switch : *** Error code 1 : : Stop in /usr/src/sys/boot/arm/at91/bootspi. Ah yes. Only the 'top level' makefile understands having a different target than the host. So you'll need to do: cd /usr/src make TARGET=arm TARGET_ARCH=arm buildenv cd sys/boot/arm/at91 make to build changes to the bootspi program. The above sequence sets up a build environment similar to what is done during 'make buildworld'. Warner From owner-freebsd-arm@FreeBSD.ORG Sun Feb 18 19:17:42 2007 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 F277F16A400 for ; Sun, 18 Feb 2007 19:17:42 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe02.tele2.dk [212.247.154.35]) by mx1.freebsd.org (Postfix) with ESMTP id E2CBD13C48D for ; Sun, 18 Feb 2007 19:17:41 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 418104805; Sun, 18 Feb 2007 20:17:35 +0100 Received: by x12.dk (Postfix, from userid 666) id 88C7150845; Sun, 18 Feb 2007 20:17:34 +0100 (CET) Date: Sun, 18 Feb 2007 20:17:34 +0100 From: Soeren Straarup To: "M. Warner Losh" Message-ID: <20070218191734.GF66059@x12.dk> References: <20070217201021.GB66059@x12.dk> <20070217.192205.547446193.imp@bsdimp.com> <20070218180142.GC66059@x12.dk> <20070218.114141.-1175572653.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070218.114141.-1175572653.imp@bsdimp.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arm@freebsd.org Subject: The beginning of a howto (Was Re: At91rm9200 boot?) 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: Sun, 18 Feb 2007 19:17:43 -0000 On Sun, Feb 18, 2007 at 11:41:41AM -0700, M. Warner Losh wrote: > In message: <20070218180142.GC66059@x12.dk> > Soeren Straarup writes: > : This might be a newbie question, but how do i compile bootspi: > : bugs# make ARCH=arm TARGET_ARCH=arm > : Warning: Object directory not changed from original /usr/src/sys/boot/arm/at91/bootspi > : cc -Os -mcpu=arm9 -ffreestanding -I/usr/src/sys/boot/arm/at91/bootspi/../libat91 -I/usr/src/sys/boot/arm/at91/bootspi/../../../.. -I/usr/src/sys/boot/arm/at91/bootspi/../../../../arm -D_KERNEL -Wall -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations -DBOOT_KB920X -DBOOT_COMMANDS -c /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S > : `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. > : /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S:0: error: bad value (arm9) for -mtune= switch > : *** Error code 1 > : > : Stop in /usr/src/sys/boot/arm/at91/bootspi. > > Ah yes. Only the 'top level' makefile understands having a different > target than the host. So you'll need to do: > > cd /usr/src > make TARGET=arm TARGET_ARCH=arm buildenv > cd sys/boot/arm/at91 > make > > to build changes to the bootspi program. The above sequence sets up a > build environment similar to what is done during 'make buildworld'. > > Warner Thanks that got me some further.. cc -Os -mcpu=arm9 -ffreestanding -I/usr/src/sys/boot/arm/at91/libat91/../libat91 -I/usr/src/sys/boot/arm/at91/libat91/../../../.. -I/usr/src/sys/boot/arm/at91/libat91/../../../../arm -D_KERNEL -Wall -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations -DBOOT_KB920X -c emac_init.c make: don't know how to make fpga.c. Stop *** Error code 2 Going to rebuild world to see if that changes anything /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 04:18:38 2007 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 2EF1916A407 for ; Mon, 19 Feb 2007 04:18:38 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe09.tele2.dk [212.247.155.3]) by mx1.freebsd.org (Postfix) with ESMTP id C540513C471 for ; Mon, 19 Feb 2007 04:18:37 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 246931700 for freebsd-arm@freebsd.org; Mon, 19 Feb 2007 05:18:35 +0100 Received: by x12.dk (Postfix, from userid 666) id 0127750844; Mon, 19 Feb 2007 05:18:34 +0100 (CET) Date: Mon, 19 Feb 2007 05:18:34 +0100 From: Soeren Straarup To: freebsd-arm@freebsd.org Message-ID: <20070219041834.GG66059@x12.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: Bits of info 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: Mon, 19 Feb 2007 04:18:38 -0000 Hi Since i'm trying to get an arm board supported i decided to start writting an ongoing list of things i'm going through (not a blog). It can be found here: http://people.freebsd.org/~xride/arm/ /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 06:37:16 2007 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 1734716A401 for ; Mon, 19 Feb 2007 06:37:16 +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 B8C5913C4A5 for ; Mon, 19 Feb 2007 06:37:15 +0000 (UTC) (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 l1J6adAT056565; Sun, 18 Feb 2007 23:36:40 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 18 Feb 2007 23:37:27 -0700 (MST) Message-Id: <20070218.233727.-1597332867.imp@bsdimp.com> To: xride@x12.dk From: "M. Warner Losh" In-Reply-To: <20070218191734.GF66059@x12.dk> References: <20070218180142.GC66059@x12.dk> <20070218.114141.-1175572653.imp@bsdimp.com> <20070218191734.GF66059@x12.dk> 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]); Sun, 18 Feb 2007 23:36:41 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: The beginning of a howto 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: Mon, 19 Feb 2007 06:37:16 -0000 fpga.c is for the board I'm working on at work. Change the board type to kb9202. Hmmm, what kind of memory does your board have and how much of it? Warner From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 06:57:45 2007 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 6A4AD16A503 for ; Mon, 19 Feb 2007 06:57:45 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe12.tele2.dk [212.247.155.99]) by mx1.freebsd.org (Postfix) with ESMTP id 0D54913C4B9 for ; Mon, 19 Feb 2007 06:57:44 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe12.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 245332523; Mon, 19 Feb 2007 07:57:42 +0100 Received: by x12.dk (Postfix, from userid 666) id B285C50844; Mon, 19 Feb 2007 07:57:41 +0100 (CET) Date: Mon, 19 Feb 2007 07:57:41 +0100 From: Soeren Straarup To: "M. Warner Losh" Message-ID: <20070219065741.GH66059@x12.dk> References: <20070218180142.GC66059@x12.dk> <20070218.114141.-1175572653.imp@bsdimp.com> <20070218191734.GF66059@x12.dk> <20070218.233727.-1597332867.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070218.233727.-1597332867.imp@bsdimp.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arm@freebsd.org Subject: Re: The beginning of a howto 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: Mon, 19 Feb 2007 06:57:45 -0000 On Sun, Feb 18, 2007 at 11:37:27PM -0700, M. Warner Losh wrote: > fpga.c is for the board I'm working on at work. Change the board type > to kb9202. Hmmm, what kind of memory does your board have and how > much of it? > > Warner It has 32mb ram and two times 16mb flash It has a Davicom DM9161EP PHY /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 07:37:56 2007 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 D10AA16A409 for ; Mon, 19 Feb 2007 07:37:56 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 8DA7713C461 for ; Mon, 19 Feb 2007 07:37:56 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id AF5FA16585 for ; Mon, 19 Feb 2007 09:37:54 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 88626-01 for ; Mon, 19 Feb 2007 09:37:52 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id F23B616587 for ; Mon, 19 Feb 2007 09:37:51 +0200 (EET) Message-ID: <45D953CF.3060407@bulinfo.net> Date: Mon, 19 Feb 2007 09:37:51 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 CC: freebsd-arm@freebsd.org References: <20070218180142.GC66059@x12.dk> <20070218.114141.-1175572653.imp@bsdimp.com> <20070218191734.GF66059@x12.dk> <20070218.233727.-1597332867.imp@bsdimp.com> <20070219065741.GH66059@x12.dk> In-Reply-To: <20070219065741.GH66059@x12.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Subject: Re: The beginning of a howto 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: Mon, 19 Feb 2007 07:37:56 -0000 Soeren Straarup wrote: > On Sun, Feb 18, 2007 at 11:37:27PM -0700, M. Warner Losh wrote: > >> fpga.c is for the board I'm working on at work. Change the board type >> to kb9202. Hmmm, what kind of memory does your board have and how >> much of it? >> >> Warner >> > > You may create empty fpga.c file > It has 32mb ram and two times 16mb flash > It has a Davicom DM9161EP PHY > > /Soeren > > From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 08:01:33 2007 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 5FCE216A409 for ; Mon, 19 Feb 2007 08:01:33 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id AD02A13C494 for ; Mon, 19 Feb 2007 08:01:32 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 4111116616; Mon, 19 Feb 2007 10:01:31 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 90119-06; Mon, 19 Feb 2007 10:01:29 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 497D71660C; Mon, 19 Feb 2007 10:01:29 +0200 (EET) Message-ID: <45D95958.7060402@bulinfo.net> Date: Mon, 19 Feb 2007 10:01:28 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: "M. Warner Losh" , freebsd-arm@freebsd.org References: <45D45269.4050509@bulinfo.net> <20070215.094642.1645217654.imp@bsdimp.com> <45D5DFD3.40805@bulinfo.net> <20070216.105436.1723233610.imp@bsdimp.com> In-Reply-To: <20070216.105436.1723233610.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: Subject: Re: At91rm9200 boot? 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: Mon, 19 Feb 2007 08:01:33 -0000 M. Warner Losh wrote: > In message: <45D5DFD3.40805@bulinfo.net> > Krassimir Slavchev writes: > : M. Warner Losh wrote: > : > In message: <45D45269.4050509@bulinfo.net> > : > Krassimir Slavchev writes: > : > : M. Warner Losh wrote: > : > : > In message: <45D3119F.4020302@bulinfo.net> > : > : > Krassimir Slavchev writes: > : > : > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. > : > : > : There is bootloader installed in iic which boots linux kernel from > : > : > : dataflash. > : > : > : What I need to know for this bootloader to be able to boot FreeBSD kernel? > : > : > > : > : > How to install the FreeBSD kernel in place of the linux kernel > : > : > currently in dataflash. > : > : > > : > : > Depending on the dataflash, you may also be able to do any or all of > : > : > the following: > : > : > (1) install the freebsd boot loader that boots from SD cards (boot2) > : > : > (2) install the freebsd boot loader that boots from dataflash (bootspi) > : > : > > : > : These boot loaders can't be fitted in the 8kbytes eeprom (24C64). > : > > : > Well, they could be made to fit into 8KB, but they don't right now. A > : > lot of effort has been made to make them small. bootspi likely is the > : > easiest candidate, since it is closest. I tried really hard to make > : > boot2 fit into 8k, but ran out of time. I did manage to slim down the > : > boot loaders from about 48k when I started to 9-10k after all was said > : > and done. The at91rm9200 parts have 16k of SRAM, of which 12k are > : > useful. > : > > : > The newer AT91SAM926x parts have only 4kb of SRAM, so I'm unsure what > : > I'll be doing there. > : > > : > : > (3) Use the FreeBSD dataflash support to manage this situation. > : > : > > : > : Where to find more information about this support? > : > > : > At the moment there's only source. src/sys/dev/flash/at45d.c has the > : > main support for dataflash. SPI infrastructure is in src/sys/dev/spi > : > and src/sys/arm/at91/at91_spi.c. /dev/flash/spi0, etc, appears when > : > these devices are active. The block size that the dataflash supports > : > is, alas, hard coded into at45d.c file at the moment, but I think that > : > most parts have at least some support in there. > : > > : > Warner > : > > : > > : Okay, I have disabled TFTP code in bootspi and now it is 6712 bytes and > : runs fine. > : I use minicom to upload bootloader but something is wrong with it > : because when it receives 'C' from terminal it can't upload correctly > : (Retry 0: NAK on sector ...). Always I need to start xmodem and power > : off/on the board to be able to upload image but in this case I can't > : upload kernel with 'K' command. > : Is there another xmodem program or I need to change something in the > : minicom settings? > > I forgot to mention that the usualy way that I upload this code is to > use tip and lsx (from the lrzsz port). I hit ~C to get a command > prompt, type 'lsx boot0spi bootspi' which will load the bootspi code > into the spi part. boot0spi is a bootstrap loader. I then reboot and > upload the kernel. I've only done that a few times on my company's > board because it was very slow... > > I'm afraid that I've never used minicom, but here is my /etc/remote > entry that I use for tip: > > ucom0:dv=/dev/cuaU0:br#115200:pa=none: > > or > > arm:dv=/dev/cuad0:br#115200:pa=none: > > depending on if I'm using the usb dongle with level conversion or a > normal serial port. > > This works! Thanks. My board seems to be different because I cant update eeprom with boot0iic nor dataflash with boot0spi. I found that eeprom address is 0x57 not 0x50 ... When try to update dataflash I receive Bad Readback ... This is not a big problem because coming with board bootstrap loader works and I can write bootspi in the dataflash. I try many times to compile working kernel but no luck. I have TARGET=arm and TARGET_ARCH=arm in /etc/make.conf This is the steps I use on CURRENT: 1. cd /usr/src 2. make buildenv 3. make kernel-toolchain 4. cd /usr/src/sys/arm/conf 5. config ARMKERNEL 6. cd ../compile/ARMKERNEL 7. make cleandepend depend all 8. make trampoline And kernel.gz.tramp should be the file suitable for loading on the board. Step 3 may be necessary only once. Is this the correct way to build kernel or I miss something? Also I need some points how to set KERNPHYSADDR, KERNVIRTADDR and PHYSADDR. PS: This is the my board: http://www.harerod.de/centipad/index.html Best Regards From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 08:52:21 2007 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 BEA6716A402 for ; Mon, 19 Feb 2007 08:52:21 +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 6B50113C4C9 for ; Mon, 19 Feb 2007 08:52:21 +0000 (UTC) (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 l1J8q6WJ057374; Mon, 19 Feb 2007 01:52:06 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 19 Feb 2007 01:52:53 -0700 (MST) Message-Id: <20070219.015253.1112027279.imp@bsdimp.com> To: krassi@bulinfo.net From: "M. Warner Losh" In-Reply-To: <45D95958.7060402@bulinfo.net> References: <45D5DFD3.40805@bulinfo.net> <20070216.105436.1723233610.imp@bsdimp.com> <45D95958.7060402@bulinfo.net> 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]); Mon, 19 Feb 2007 01:52:06 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 boot? 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: Mon, 19 Feb 2007 08:52:21 -0000 In message: <45D95958.7060402@bulinfo.net> Krassimir Slavchev writes: : M. Warner Losh wrote: : > In message: <45D5DFD3.40805@bulinfo.net> : > Krassimir Slavchev writes: : > : M. Warner Losh wrote: : > : > In message: <45D45269.4050509@bulinfo.net> : > : > Krassimir Slavchev writes: : > : > : M. Warner Losh wrote: : > : > : > In message: <45D3119F.4020302@bulinfo.net> : > : > : > Krassimir Slavchev writes: : > : > : > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. : > : > : > : There is bootloader installed in iic which boots linux kernel from : > : > : > : dataflash. : > : > : > : What I need to know for this bootloader to be able to boot FreeBSD kernel? : > : > : > : > : > : > How to install the FreeBSD kernel in place of the linux kernel : > : > : > currently in dataflash. : > : > : > : > : > : > Depending on the dataflash, you may also be able to do any or all of : > : > : > the following: : > : > : > (1) install the freebsd boot loader that boots from SD cards (boot2) : > : > : > (2) install the freebsd boot loader that boots from dataflash (bootspi) : > : > : > : > : > : These boot loaders can't be fitted in the 8kbytes eeprom (24C64). : > : > : > : > Well, they could be made to fit into 8KB, but they don't right now. A : > : > lot of effort has been made to make them small. bootspi likely is the : > : > easiest candidate, since it is closest. I tried really hard to make : > : > boot2 fit into 8k, but ran out of time. I did manage to slim down the : > : > boot loaders from about 48k when I started to 9-10k after all was said : > : > and done. The at91rm9200 parts have 16k of SRAM, of which 12k are : > : > useful. : > : > : > : > The newer AT91SAM926x parts have only 4kb of SRAM, so I'm unsure what : > : > I'll be doing there. : > : > : > : > : > (3) Use the FreeBSD dataflash support to manage this situation. : > : > : > : > : > : Where to find more information about this support? : > : > : > : > At the moment there's only source. src/sys/dev/flash/at45d.c has the : > : > main support for dataflash. SPI infrastructure is in src/sys/dev/spi : > : > and src/sys/arm/at91/at91_spi.c. /dev/flash/spi0, etc, appears when : > : > these devices are active. The block size that the dataflash supports : > : > is, alas, hard coded into at45d.c file at the moment, but I think that : > : > most parts have at least some support in there. : > : > : > : > Warner : > : > : > : > : > : Okay, I have disabled TFTP code in bootspi and now it is 6712 bytes and : > : runs fine. : > : I use minicom to upload bootloader but something is wrong with it : > : because when it receives 'C' from terminal it can't upload correctly : > : (Retry 0: NAK on sector ...). Always I need to start xmodem and power : > : off/on the board to be able to upload image but in this case I can't : > : upload kernel with 'K' command. : > : Is there another xmodem program or I need to change something in the : > : minicom settings? : > : > I forgot to mention that the usualy way that I upload this code is to : > use tip and lsx (from the lrzsz port). I hit ~C to get a command : > prompt, type 'lsx boot0spi bootspi' which will load the bootspi code : > into the spi part. boot0spi is a bootstrap loader. I then reboot and : > upload the kernel. I've only done that a few times on my company's : > board because it was very slow... : > : > I'm afraid that I've never used minicom, but here is my /etc/remote : > entry that I use for tip: : > : > ucom0:dv=/dev/cuaU0:br#115200:pa=none: : > : > or : > : > arm:dv=/dev/cuad0:br#115200:pa=none: : > : > depending on if I'm using the usb dongle with level conversion or a : > normal serial port. : > : > : This works! Thanks. : My board seems to be different because I cant update eeprom with : boot0iic nor dataflash with boot0spi. : I found that eeprom address is 0x57 not 0x50 ... When try to update : dataflash I receive Bad Readback ... hmmm. iic does vary a lot, but at 0x57 it won't be in the boot sequence... : This is not a big problem because coming with board bootstrap loader : works and I can write bootspi : in the dataflash. Good. There may be one tweak needed for bootspi to get the memory recognized correctly. I think that given the explosion of boards that have been posted here lately, I'm going to have to make all this stuff a lot more configurable. : I try many times to compile working kernel but no luck. : I have TARGET=arm and TARGET_ARCH=arm in /etc/make.conf : This is the steps I use on CURRENT: : : 1. cd /usr/src : 2. make buildenv : 3. make kernel-toolchain : 4. cd /usr/src/sys/arm/conf : 5. config ARMKERNEL : 6. cd ../compile/ARMKERNEL : 7. make cleandepend depend all : 8. make trampoline : : And kernel.gz.tramp should be the file suitable for loading on the board. : Step 3 may be necessary only once. : : Is this the correct way to build kernel or I miss something? : : Also I need some points how to set KERNPHYSADDR, KERNVIRTADDR and PHYSADDR. These should be right in the std.at91 file. KERNPHYSADDR is where the kernel is loaded in physical memory, by default 0x20000000. KERNVIRTADDR is this in virtual address space (0xc0000000). PHYSADDR I believe is where physical memory starts. : PS: This is the my board: http://www.harerod.de/centipad/index.html cool! Warner From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 11:32:15 2007 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 9065516A400 for ; Mon, 19 Feb 2007 11:32:15 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.freebsd.org (Postfix) with ESMTP id C662C13C48D for ; Mon, 19 Feb 2007 11:32:14 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.7/8.13.4) with ESMTP id l1JBp9ZH053986; Mon, 19 Feb 2007 12:51:10 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.8/8.13.8/Submit) id l1JBp93n053985; Mon, 19 Feb 2007 12:51:09 +0100 (CET) (envelope-from mlfbsd) Date: Mon, 19 Feb 2007 12:51:09 +0100 From: Olivier Houchard To: Soeren Straarup Message-ID: <20070219115109.GA53939@ci0.org> References: <20070219041834.GG66059@x12.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070219041834.GG66059@x12.dk> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: Bits of info 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: Mon, 19 Feb 2007 11:32:15 -0000 On Mon, Feb 19, 2007 at 05:18:34AM +0100, Soeren Straarup wrote: > Hi > > Since i'm trying to get an arm board supported i decided to start writting > an ongoing list of things i'm going through (not a blog). > It can be found here: > http://people.freebsd.org/~xride/arm/ > > /Soeren > Hi Soeren, That's very cool ! There's a blatant lack of documentation of the arm port, and this is mostly my fault. I put a bit of infos here : http://people.FreeBSD.org/~cognet/freebsd_arm.txt but it's partly outdated, and not the official way of building a kernel. Cheers, Olivier From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 15:05:13 2007 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 8E1CA16A420 for ; Mon, 19 Feb 2007 15:05:13 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id F415513C491 for ; Mon, 19 Feb 2007 15:05:10 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 8EDA71F171; Mon, 19 Feb 2007 17:05:09 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29065-05; Mon, 19 Feb 2007 17:05:06 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id CB5B31F16B; Mon, 19 Feb 2007 17:05:06 +0200 (EET) Message-ID: <45D9BCA2.9080704@bulinfo.net> Date: Mon, 19 Feb 2007 17:05:06 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: freebsd-current@freebsd.org, freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: Subject: ARM crosscompiling? 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: Mon, 19 Feb 2007 15:05:13 -0000 cd /usr/src make TARGET=arm TARGET_ARCH=arm buildenv cd /usr/src/sys/boot/arm/at91/libat91 make cc -Os -mcpu=arm9 -ffreestanding -I/usr/src/sys/boot/arm/at91/libat91/../libat91 -I/usr/src/sys/boot/arm/at91/libat91/../../../.. -I/usr/src/sys/boot/arm/at91/libat91/../../../../arm -D_KERNEL -Wall -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations -DBOOT_KB920X -c printf.c printf.c:20:20: stdarg.h: No such file or directory .... I have tried this on 2 different machines but it is the same. From owner-freebsd-arm@FreeBSD.ORG Mon Feb 19 15:08:33 2007 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 6D9B216A400; Mon, 19 Feb 2007 15:08:33 +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 EF0D413C428; Mon, 19 Feb 2007 15:08:32 +0000 (UTC) (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 l1JF8TwU029783; Mon, 19 Feb 2007 16:08:30 +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 l1JF8JVv067661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 Feb 2007 16:08:20 +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 l1JF8Jwp037004; Mon, 19 Feb 2007 16:08:19 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l1JF8IOC037003; Mon, 19 Feb 2007 16:08:18 +0100 (CET) (envelope-from ticso) Date: Mon, 19 Feb 2007 16:08:18 +0100 From: Bernd Walter To: Krassimir Slavchev Message-ID: <20070219150818.GI24769@cicely12.cicely.de> References: <45D9BCA2.9080704@bulinfo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45D9BCA2.9080704@bulinfo.net> 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: freebsd-arm@freebsd.org, freebsd-current@freebsd.org Subject: Re: ARM crosscompiling? 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: Mon, 19 Feb 2007 15:08:33 -0000 On Mon, Feb 19, 2007 at 05:05:06PM +0200, Krassimir Slavchev wrote: > > cd /usr/src > make TARGET=arm TARGET_ARCH=arm buildenv > cd /usr/src/sys/boot/arm/at91/libat91 > make > cc -Os -mcpu=arm9 -ffreestanding > -I/usr/src/sys/boot/arm/at91/libat91/../libat91 > -I/usr/src/sys/boot/arm/at91/libat91/../../../.. > -I/usr/src/sys/boot/arm/at91/libat91/../../../../arm -D_KERNEL -Wall > -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow > -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations > -DBOOT_KB920X -c printf.c > printf.c:20:20: stdarg.h: No such file or directory > .... > > I have tried this on 2 different machines but it is the same. I'd just localy added at91 into sys/boot/arm/Makefile and did a buildworld. -- 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 Mon Feb 19 15:21:16 2007 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 1402E16A421; Mon, 19 Feb 2007 15:21:16 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id BFFB613C4BA; Mon, 19 Feb 2007 15:21:15 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id EC83B1F1F5; Mon, 19 Feb 2007 17:21:13 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30486-05-3; Mon, 19 Feb 2007 17:21:11 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 2ADD21F1F3; Mon, 19 Feb 2007 17:21:11 +0200 (EET) Message-ID: <45D9C066.5080009@bulinfo.net> Date: Mon, 19 Feb 2007 17:21:10 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: ticso@cicely.de References: <45D9BCA2.9080704@bulinfo.net> <20070219150818.GI24769@cicely12.cicely.de> In-Reply-To: <20070219150818.GI24769@cicely12.cicely.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org, freebsd-current@freebsd.org Subject: Re: ARM crosscompiling? 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: Mon, 19 Feb 2007 15:21:16 -0000 Bernd Walter wrote: > On Mon, Feb 19, 2007 at 05:05:06PM +0200, Krassimir Slavchev wrote: > >> cd /usr/src >> make TARGET=arm TARGET_ARCH=arm buildenv >> cd /usr/src/sys/boot/arm/at91/libat91 >> make >> cc -Os -mcpu=arm9 -ffreestanding >> -I/usr/src/sys/boot/arm/at91/libat91/../libat91 >> -I/usr/src/sys/boot/arm/at91/libat91/../../../.. >> -I/usr/src/sys/boot/arm/at91/libat91/../../../../arm -D_KERNEL -Wall >> -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow >> -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations >> -DBOOT_KB920X -c printf.c >> printf.c:20:20: stdarg.h: No such file or directory >> .... >> >> I have tried this on 2 different machines but it is the same. >> > > I'd just localy added at91 into sys/boot/arm/Makefile and did a > buildworld. > > No, it is the same. How old is your source tree? This seems to be a problem with 'make buildenv'. Also 'make trampoline' gives similar errors. From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 07:52:09 2007 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 5530517404A for ; Tue, 20 Feb 2007 07:52:09 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe09.tele2.dk [212.247.155.3]) by mx1.freebsd.org (Postfix) with ESMTP id E3C3213C461 for ; Tue, 20 Feb 2007 07:52:08 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 248051768 for freebsd-arm@freebsd.org; Tue, 20 Feb 2007 08:52:06 +0100 Received: by x12.dk (Postfix, from userid 666) id 2BD1050844; Tue, 20 Feb 2007 08:52:05 +0100 (CET) Date: Tue, 20 Feb 2007 08:52:05 +0100 From: Soeren Straarup To: freebsd-arm@freebsd.org Message-ID: <20070220075204.GI66059@x12.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: What goes wrong? 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, 20 Feb 2007 07:52:09 -0000 Hi What goes wrong when i send via serial xmodem the bootspi to the arm board and all i get back is some unreadable chars? I'm doing this from windows via teraterm at 115200 /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 11:57:50 2007 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 AC3E816AD28 for ; Tue, 20 Feb 2007 11:47:45 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 68CAF13C4B2 for ; Tue, 20 Feb 2007 11:47:45 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 5443335810; Tue, 20 Feb 2007 13:47:41 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02659-03-7; Tue, 20 Feb 2007 13:47:38 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 330893581A; Tue, 20 Feb 2007 13:47:26 +0200 (EET) Message-ID: <45DADFCD.7000209@bulinfo.net> Date: Tue, 20 Feb 2007 13:47:25 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: Soeren Straarup References: <20070220075204.GI66059@x12.dk> In-Reply-To: <20070220075204.GI66059@x12.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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, 20 Feb 2007 11:57:50 -0000 Try to change the BOOT_FLAVOR in the /usr/src/sys/boot/arm/at91/Makefile Soeren Straarup wrote: > Hi > > What goes wrong when i send via serial xmodem the bootspi to the arm board > and all i get back is some unreadable chars? > I'm doing this from windows via teraterm at 115200 > > /Soeren > > From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 11:57:54 2007 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 6DD3116B6FD for ; Tue, 20 Feb 2007 11:48:52 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 2934013C481 for ; Tue, 20 Feb 2007 11:48:52 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 2323C3584A; Tue, 20 Feb 2007 13:48:51 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02975-02; Tue, 20 Feb 2007 13:48:49 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id A2FD23583E; Tue, 20 Feb 2007 13:48:46 +0200 (EET) Message-ID: <45DAE01E.80704@bulinfo.net> Date: Tue, 20 Feb 2007 13:48:46 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: Soeren Straarup References: <20070220075204.GI66059@x12.dk> In-Reply-To: <20070220075204.GI66059@x12.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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, 20 Feb 2007 11:57:54 -0000 oops. In the Makefile.inc Soeren Straarup wrote: > Hi > > What goes wrong when i send via serial xmodem the bootspi to the arm board > and all i get back is some unreadable chars? > I'm doing this from windows via teraterm at 115200 > > /Soeren > > From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 13:03:56 2007 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 14C6B16A6C9 for ; Tue, 20 Feb 2007 12:36:19 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe12.tele2.dk [212.247.155.99]) by mx1.freebsd.org (Postfix) with ESMTP id A1C7313C4AC for ; Tue, 20 Feb 2007 12:36:18 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe12.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 246612532; Tue, 20 Feb 2007 13:36:16 +0100 Received: by x12.dk (Postfix, from userid 666) id 11E1650845; Tue, 20 Feb 2007 13:36:16 +0100 (CET) Date: Tue, 20 Feb 2007 13:36:16 +0100 From: Soeren Straarup To: Krassimir Slavchev Message-ID: <20070220123615.GJ66059@x12.dk> References: <20070220075204.GI66059@x12.dk> <45DAE01E.80704@bulinfo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DAE01E.80704@bulinfo.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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, 20 Feb 2007 13:03:56 -0000 On Tue, Feb 20, 2007 at 01:48:46PM +0200, Krassimir Slavchev wrote: > oops. In the Makefile.inc > Hmm.. None of hte 3 worked .. back to eth drawing board and investigate some more. > Soeren Straarup wrote: > >Hi > > > >What goes wrong when i send via serial xmodem the bootspi to the arm board > >and all i get back is some unreadable chars? > >I'm doing this from windows via teraterm at 115200 > > > >/Soeren > > > > /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 15:10:27 2007 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 1470616C080 for ; Tue, 20 Feb 2007 14:28:35 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe01.tele2.dk [212.247.154.3]) by mx1.freebsd.org (Postfix) with ESMTP id A670413C481 for ; Tue, 20 Feb 2007 14:28:34 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 397988269; Tue, 20 Feb 2007 15:28:32 +0100 Received: by x12.dk (Postfix, from userid 666) id 22F3550844; Tue, 20 Feb 2007 15:28:32 +0100 (CET) Date: Tue, 20 Feb 2007 15:28:32 +0100 From: Soeren Straarup To: Krassimir Slavchev Message-ID: <20070220142832.GK66059@x12.dk> References: <20070220075204.GI66059@x12.dk> <45DAE01E.80704@bulinfo.net> <20070220123615.GJ66059@x12.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070220123615.GJ66059@x12.dk> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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, 20 Feb 2007 15:10:27 -0000 On Tue, Feb 20, 2007 at 01:36:16PM +0100, Soeren Straarup wrote: > On Tue, Feb 20, 2007 at 01:48:46PM +0200, Krassimir Slavchev wrote: > > oops. In the Makefile.inc > > > Hmm.. None of hte 3 worked .. back to eth drawing board and investigate some > more. Well after some happy hacking i almost got the bootloader to work.. But is seems that it doesn't find the emac or phy. I get: TFTP TIMEOUT Some more happy hacking is needed for it to load the kernel. > > > Soeren Straarup wrote: > > >Hi > > > > > >What goes wrong when i send via serial xmodem the bootspi to the arm board > > >and all i get back is some unreadable chars? > > >I'm doing this from windows via teraterm at 115200 > > > > > >/Soeren > > > > > > > > /Soeren > /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 15:16:54 2007 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 78C0816D4E1 for ; Tue, 20 Feb 2007 14:47:52 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 3711713C494 for ; Tue, 20 Feb 2007 14:47:52 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id EE3FD35CE4; Tue, 20 Feb 2007 16:47:46 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18802-01; Tue, 20 Feb 2007 16:47:44 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id B047A35CDA; Tue, 20 Feb 2007 16:47:43 +0200 (EET) Message-ID: <45DB0A0F.1070008@bulinfo.net> Date: Tue, 20 Feb 2007 16:47:43 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: Soeren Straarup References: <20070220075204.GI66059@x12.dk> <45DAE01E.80704@bulinfo.net> <20070220123615.GJ66059@x12.dk> <20070220142832.GK66059@x12.dk> In-Reply-To: <20070220142832.GK66059@x12.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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, 20 Feb 2007 15:16:54 -0000 Soeren Straarup wrote: > On Tue, Feb 20, 2007 at 01:36:16PM +0100, Soeren Straarup wrote: > >> On Tue, Feb 20, 2007 at 01:48:46PM +0200, Krassimir Slavchev wrote: >> >>> oops. In the Makefile.inc >>> >>> >> Hmm.. None of hte 3 worked .. back to eth drawing board and investigate some >> more. >> > > Well after some happy hacking i almost got the bootloader to work.. > But is seems that it doesn't find the emac or phy. > I get: TFTP TIMEOUT > Some more happy hacking is needed for it to load the kernel. > if (getc(1) == -1) { > start_wdog(30); > ExecuteEnvironmentFunctions(); > } > > Comment this in main.c if (getc(1) == -1) { start_wdog(30); ExecuteEnvironmentFunctions(); } and will get loader prompt. >>> Soeren Straarup wrote: >>> >>>> Hi >>>> >>>> What goes wrong when i send via serial xmodem the bootspi to the arm board >>>> and all i get back is some unreadable chars? >>>> I'm doing this from windows via teraterm at 115200 >>>> >>>> /Soeren >>>> >>>> >>>> >> /Soeren >> >> > > /Soeren > > From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 15:18:37 2007 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 714DA16B6D9 for ; Tue, 20 Feb 2007 15:00:04 +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 E947F13C442 for ; Tue, 20 Feb 2007 15:00:03 +0000 (UTC) (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 l1KF01Y2049738; Tue, 20 Feb 2007 16:00:02 +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 l1KExsuV076017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Feb 2007 15:59:54 +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 l1KExrAA040609; Tue, 20 Feb 2007 15:59:53 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l1KExrbx040608; Tue, 20 Feb 2007 15:59:53 +0100 (CET) (envelope-from ticso) Date: Tue, 20 Feb 2007 15:59:53 +0100 From: Bernd Walter To: Soeren Straarup Message-ID: <20070220145952.GZ24769@cicely12.cicely.de> References: <20070220075204.GI66059@x12.dk> <45DAE01E.80704@bulinfo.net> <20070220123615.GJ66059@x12.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070220123615.GJ66059@x12.dk> 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: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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: Tue, 20 Feb 2007 15:18:37 -0000 On Tue, Feb 20, 2007 at 01:36:16PM +0100, Soeren Straarup wrote: > On Tue, Feb 20, 2007 at 01:48:46PM +0200, Krassimir Slavchev wrote: > > oops. In the Makefile.inc > > > Hmm.. None of hte 3 worked .. back to eth drawing board and investigate some > more. bootspi initialises SDRAM and PLL and uses it. It would explain bps or character errors, if your board has different SDRAM or xtal setup than the selected bootflavour, There are some other board specific points to configure correctly as well. > > >What goes wrong when i send via serial xmodem the bootspi to the arm board > > >and all i get back is some unreadable chars? > > >I'm doing this from windows via teraterm at 115200 -- 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 Tue Feb 20 15:21:50 2007 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 CD7F316BB0D for ; Tue, 20 Feb 2007 15:11:45 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id A7C5013C4B4 for ; Tue, 20 Feb 2007 15:11:44 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id AA79635D9E; Tue, 20 Feb 2007 17:11:39 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20920-02; Tue, 20 Feb 2007 17:11:37 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id F044835D9C; Tue, 20 Feb 2007 17:11:36 +0200 (EET) Message-ID: <45DB0FA8.9070508@bulinfo.net> Date: Tue, 20 Feb 2007 17:11:36 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: ticso@cicely.de References: <20070220075204.GI66059@x12.dk> <45DAE01E.80704@bulinfo.net> <20070220123615.GJ66059@x12.dk> <20070220145952.GZ24769@cicely12.cicely.de> In-Reply-To: <20070220145952.GZ24769@cicely12.cicely.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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, 20 Feb 2007 15:21:50 -0000 Bernd Walter wrote: > On Tue, Feb 20, 2007 at 01:36:16PM +0100, Soeren Straarup wrote: > >> On Tue, Feb 20, 2007 at 01:48:46PM +0200, Krassimir Slavchev wrote: >> >>> oops. In the Makefile.inc >>> >>> >> Hmm.. None of hte 3 worked .. back to eth drawing board and investigate some >> more. >> > > bootspi initialises SDRAM and PLL and uses it. > It would explain bps or character errors, if your board has different > SDRAM or xtal setup than the selected bootflavour, > There are some other board specific points to configure correctly as > well. > > Would you like to give us more information about these board specific points? I have problems booting: Default: /boot/kernel/kernel.gz.tramp boot: cmd is '' - The prompt moves some time and stopped. Any ideas? Thanks in advance >>>> hat goes wrong when i send via serial xmodem the bootspi to the arm board >>>> and all i get back is some unreadable chars? >>>> I'm doing this from windows via teraterm at 115200 >>>> > > From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 16:22:11 2007 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 672E516B4FC for ; Tue, 20 Feb 2007 16:22:11 +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 EC94813C4A6 for ; Tue, 20 Feb 2007 16:22:10 +0000 (UTC) (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 l1KGM7ZZ050934; Tue, 20 Feb 2007 17:22:07 +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 l1KGLsin076816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Feb 2007 17:21:55 +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 l1KGLsqL040794; Tue, 20 Feb 2007 17:21:54 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l1KGLsoM040793; Tue, 20 Feb 2007 17:21:54 +0100 (CET) (envelope-from ticso) Date: Tue, 20 Feb 2007 17:21:54 +0100 From: Bernd Walter To: Krassimir Slavchev Message-ID: <20070220162153.GA24769@cicely12.cicely.de> References: <20070220075204.GI66059@x12.dk> <45DAE01E.80704@bulinfo.net> <20070220123615.GJ66059@x12.dk> <20070220142832.GK66059@x12.dk> <45DB0A0F.1070008@bulinfo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DB0A0F.1070008@bulinfo.net> 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: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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: Tue, 20 Feb 2007 16:22:11 -0000 On Tue, Feb 20, 2007 at 04:47:43PM +0200, Krassimir Slavchev wrote: > Soeren Straarup wrote: > >On Tue, Feb 20, 2007 at 01:36:16PM +0100, Soeren Straarup wrote: > > > >>On Tue, Feb 20, 2007 at 01:48:46PM +0200, Krassimir Slavchev wrote: > >> > >>>oops. In the Makefile.inc > >>> > >>> > >>Hmm.. None of hte 3 worked .. back to eth drawing board and investigate > >>some > >>more. > >> > > > >Well after some happy hacking i almost got the bootloader to work.. > >But is seems that it doesn't find the emac or phy. > >I get: TFTP TIMEOUT > >Some more happy hacking is needed for it to load the kernel. > > if (getc(1) == -1) { > > start_wdog(30); > > ExecuteEnvironmentFunctions(); > > } > > > > > Comment this in main.c > > if (getc(1) == -1) { > start_wdog(30); > ExecuteEnvironmentFunctions(); > } > > and will get loader prompt. Or just enter a key in time. -- 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 Tue Feb 20 17:08:24 2007 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 9D52016B413 for ; Tue, 20 Feb 2007 17:08:24 +0000 (UTC) (envelope-from dbrewer@pixelfish.com) Received: from mail01.vmatrixmail.com (mail01.vmatrixmail.com [216.219.244.230]) by mx1.freebsd.org (Postfix) with ESMTP id 5C62413C491 for ; Tue, 20 Feb 2007 17:08:24 +0000 (UTC) (envelope-from dbrewer@pixelfish.com) Received: (vmatrix@mail01.vmatrixmail.com) by vmatrixmail.com id S6071225AbXBTQor for ; Tue, 20 Feb 2007 08:44:47 -0800 To: freebsd-arm@freebsd.org MIME-Version: 1.0 X-Mailer: Rich Media Mail V4. Vmatrix, (C) 2003 From: "David Brewer" Sender: "David Brewer" Message-Id: Date: Tue, 20 Feb 2007 08:44:47 -0800 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Your Recent Trade Show Results X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dbrewer@pixelfish.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2007 17:08:24 -0000 Greetings!

Are you happy with your results from Social Linux Expo 2007? Did you have what it takes to make the difference between creating excitement and blending in with the competition, between lots of hot leads and a few hard sells ... between success and failure?

Did you have video?

Why video? Video vividly demonstrates the features and benefits of your products. Video captures the praises of your most enthusiastic customers. Video instills interest, reaction and trust. Video sells.

In just 45 days, PixelFish creates marketing videos that become an integral part of your marketing and sales efforts when it streams from your Web site, launches from multimedia email newsletters, plays from CD video brochures and loops from a DVD at your tradeshow booth.

We are PixelFish. We deliver “The Evolution of Video”. And we guarantee results. Click on the videos to the right to see samples of our work.

Contact us today for a free evaluation of your video marketing needs.

David Brewer
PixelFish, Inc.
800.503.3020 x102
dbrewer@pixelfish.com
http://www.pixelfish.com
RedMan Video
Pentax Video
JEM Video
------------------------------------------------ Unsubscribe to safely remove yourself from this email list, please send email to info@pixelfish.com. Powered by Pixelfish http://www.pixelfish.com From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 19:25:35 2007 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 A023716C4B8 for ; Tue, 20 Feb 2007 19:25:35 +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 617F613C4B3 for ; Tue, 20 Feb 2007 19:25:35 +0000 (UTC) (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 l1KJOuHS083051; Tue, 20 Feb 2007 12:24:56 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 20 Feb 2007 12:25:41 -0700 (MST) Message-Id: <20070220.122541.1649770164.imp@bsdimp.com> To: xride@x12.dk From: "M. Warner Losh" In-Reply-To: <20070220142832.GK66059@x12.dk> References: <45DAE01E.80704@bulinfo.net> <20070220123615.GJ66059@x12.dk> <20070220142832.GK66059@x12.dk> 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]); Tue, 20 Feb 2007 12:24:57 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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, 20 Feb 2007 19:25:35 -0000 In message: <20070220142832.GK66059@x12.dk> Soeren Straarup writes: : On Tue, Feb 20, 2007 at 01:36:16PM +0100, Soeren Straarup wrote: : > On Tue, Feb 20, 2007 at 01:48:46PM +0200, Krassimir Slavchev wrote: : > > oops. In the Makefile.inc : > > : > Hmm.. None of hte 3 worked .. back to eth drawing board and investigate some : > more. : : Well after some happy hacking i almost got the bootloader to work.. : But is seems that it doesn't find the emac or phy. : I get: TFTP TIMEOUT : Some more happy hacking is needed for it to load the kernel. There's some code deep in the bowels of emac.c that knows the PHY that's present, and querries it to find the speed it negotiated. This info is in model specific registers, so you need to hack things to match the PHY on your board. Warner From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 19:27:03 2007 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 BBFEF16C006 for ; Tue, 20 Feb 2007 19:27:03 +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 5952F13C481 for ; Tue, 20 Feb 2007 19:27:03 +0000 (UTC) (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 l1KJN9gS083014; Tue, 20 Feb 2007 12:23:09 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 20 Feb 2007 12:23:51 -0700 (MST) Message-Id: <20070220.122351.-432837306.imp@bsdimp.com> To: krassi@bulinfo.net From: "M. Warner Losh" In-Reply-To: <45DADFCD.7000209@bulinfo.net> References: <20070220075204.GI66059@x12.dk> <45DADFCD.7000209@bulinfo.net> 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]); Tue, 20 Feb 2007 12:23:10 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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, 20 Feb 2007 19:27:03 -0000 In message: <45DADFCD.7000209@bulinfo.net> Krassimir Slavchev writes: : Try to change the BOOT_FLAVOR in the /usr/src/sys/boot/arm/at91/Makefile : : Soeren Straarup wrote: : > Hi : > : > What goes wrong when i send via serial xmodem the bootspi to the arm board : > and all i get back is some unreadable chars? : > I'm doing this from windows via teraterm at 115200 The root cause of 'unreadable' characters usually is that your board uses a different base oscillator than the board you've compiled the defaults for. The second cause can be bad memory parameters, but that's less common (it usually manifests itself in the kernel failing to print the right amount of memory). Since the PLLs that run the serial port are derived from the base christal frequency, bad things happen downstream. We should likely document these failings and how to work around them. Better yet would be to 'bloat' the boot loader a little and have it use the atmel facilities for discovering the base frequency. Bloating it to cope with different SDRAM would be a much harder task... Warner From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 20:06:14 2007 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 B544616B6F0 for ; Tue, 20 Feb 2007 20:06:14 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe11.tele2.dk [212.247.155.67]) by mx1.freebsd.org (Postfix) with ESMTP id 1895B13C491 for ; Tue, 20 Feb 2007 20:06:13 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 248615313; Tue, 20 Feb 2007 21:06:11 +0100 Received: by x12.dk (Postfix, from userid 666) id B297950844; Tue, 20 Feb 2007 21:06:10 +0100 (CET) Date: Tue, 20 Feb 2007 21:06:10 +0100 From: Soeren Straarup To: "M. Warner Losh" Message-ID: <20070220200610.GM66059@x12.dk> References: <45DAE01E.80704@bulinfo.net> <20070220123615.GJ66059@x12.dk> <20070220142832.GK66059@x12.dk> <20070220.122541.1649770164.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070220.122541.1649770164.imp@bsdimp.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arm@freebsd.org Subject: PHY (idents) (Was: Re: What goes wrong?) 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, 20 Feb 2007 20:06:14 -0000 On Tue, Feb 20, 2007 at 12:25:41PM -0700, M. Warner Losh wrote: > In message: <20070220142832.GK66059@x12.dk> > Soeren Straarup writes: > : On Tue, Feb 20, 2007 at 01:36:16PM +0100, Soeren Straarup wrote: > : > On Tue, Feb 20, 2007 at 01:48:46PM +0200, Krassimir Slavchev wrote: > : > > oops. In the Makefile.inc > : > > > : > Hmm.. None of hte 3 worked .. back to eth drawing board and investigate some > : > more. > : > : Well after some happy hacking i almost got the bootloader to work.. > : But is seems that it doesn't find the emac or phy. > : I get: TFTP TIMEOUT > : Some more happy hacking is needed for it to load the kernel. > > There's some code deep in the bowels of emac.c that knows the PHY > that's present, and querries it to find the speed it negotiated. This > info is in model specific registers, so you need to hack things to > match the PHY on your board. That is the next task (8 it is a Davicom DM9161 PHY .. just dug up a datasheet for it.. going to study it a bit Wonder if there should be some identification code in the loader? Another thing is there support for writting the loader+kernel(/userland) to parallel flash? Even with the 16mb "hole" in the addressing? /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Tue Feb 20 23:43:34 2007 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 5920616A54E for ; Tue, 20 Feb 2007 23:43:34 +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 DE24B13C441 for ; Tue, 20 Feb 2007 23:43:33 +0000 (UTC) (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 l1KNhQbf055983; Wed, 21 Feb 2007 00:43:27 +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 l1KNhFWX079670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Feb 2007 00:43:17 +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 l1KNhEe7041834; Wed, 21 Feb 2007 00:43:14 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l1KNhEvA041833; Wed, 21 Feb 2007 00:43:14 +0100 (CET) (envelope-from ticso) Date: Wed, 21 Feb 2007 00:43:14 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20070220234313.GD24769@cicely12.cicely.de> References: <20070220075204.GI66059@x12.dk> <45DADFCD.7000209@bulinfo.net> <20070220.122351.-432837306.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070220.122351.-432837306.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: freebsd-arm@freebsd.org Subject: Re: What goes wrong? 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: Tue, 20 Feb 2007 23:43:34 -0000 On Tue, Feb 20, 2007 at 12:23:51PM -0700, M. Warner Losh wrote: > In message: <45DADFCD.7000209@bulinfo.net> > Krassimir Slavchev writes: > : Try to change the BOOT_FLAVOR in the /usr/src/sys/boot/arm/at91/Makefile > : > : Soeren Straarup wrote: > : > Hi > : > > : > What goes wrong when i send via serial xmodem the bootspi to the arm board > : > and all i get back is some unreadable chars? > : > I'm doing this from windows via teraterm at 115200 > > The root cause of 'unreadable' characters usually is that your board > uses a different base oscillator than the board you've compiled the > defaults for. The second cause can be bad memory parameters, but > that's less common (it usually manifests itself in the kernel failing > to print the right amount of memory). Since the PLLs that run the > serial port are derived from the base christal frequency, bad things > happen downstream. > > We should likely document these failings and how to work around them. > Better yet would be to 'bloat' the boot loader a little and have it > use the atmel facilities for discovering the base frequency. Bloating > it to cope with different SDRAM would be a much harder task... You have to do the PLL calculation as well - asuming you want the typical 180MHz, but there are good reasons one don't want too. Bloating the loader in special cases e.g. boards which may be populated with just two differend kind of SDRAM configuration, should be Ok. Board specific needs vary too much to get a sensible autoprobing for everything required, e.g. noone knows the required GPIO setup. If bloating the loader, I'd prefer diagnostic and informative output, such as printing the base frequency, the SDRAM, e.g. I already localy put a small (no perfect) SDRAM test in boot0spi to enshure basic functionality befor starting. Since I have an IIC header, I already plan to switch from boot0spi/ boot2 xmodem chain to plug an iic-rom, which tests hardware and loads boot2 via TFTP. I personally hope that mr@ can help us getting a complete ficl loader up one day. -- 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 Wed Feb 21 16:03:18 2007 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 E52CE16A6BA for ; Wed, 21 Feb 2007 16:03:18 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id A0A6E13C491 for ; Wed, 21 Feb 2007 16:03:18 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id A6303C1880; Wed, 21 Feb 2007 18:03:11 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19251-01; Wed, 21 Feb 2007 18:03:09 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 997361F14C; Wed, 21 Feb 2007 18:03:09 +0200 (EET) Message-ID: <45DC6D3D.7040901@bulinfo.net> Date: Wed, 21 Feb 2007 18:03:09 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: "M. Warner Losh" , freebsd-arm@freebsd.org References: <45DAE01E.80704@bulinfo.net> <20070220123615.GJ66059@x12.dk> <20070220142832.GK66059@x12.dk> <20070220.122541.1649770164.imp@bsdimp.com> In-Reply-To: <20070220.122541.1649770164.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: Subject: Boot from dataflash 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, 21 Feb 2007 16:03:19 -0000 The offset OFFSET defined in boot0spi at which bootspi code will be written in the dataflash should be 0 if we want to boot from dataflash. From owner-freebsd-arm@FreeBSD.ORG Wed Feb 21 21:55:02 2007 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 EAEAA16A401 for ; Wed, 21 Feb 2007 21:55:02 +0000 (UTC) (envelope-from jmak@dnainternet.net) Received: from isolokki.dnainternet.net (isolokki.dnainternet.net [212.149.75.39]) by mx1.freebsd.org (Postfix) with ESMTP id 9C6E713C442 for ; Wed, 21 Feb 2007 21:55:02 +0000 (UTC) (envelope-from jmak@dnainternet.net) Received: from dnainternet.net (sp-fe-2-2.dnainternet.net [212.149.75.15]) by isolokki.dnainternet.net (Postfix) with ESMTP id E0FAED667 for ; Wed, 21 Feb 2007 23:24:01 +0200 (EET) Received: from [82.197.0.237] (account ukki.savo@dnainternet.net HELO [192.168.0.169]) by alli.dnainternet.net (CommuniGate Pro SMTP 5.0.9) with ESMTPA id 62849258 for freebsd-arm@freebsd.org; Wed, 21 Feb 2007 23:24:01 +0200 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <4F4265D9-22D0-4672-B2CA-36291933C0C6@dnainternet.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-arm@freebsd.org From: =?ISO-8859-1?Q?Janne_M=E4kinen?= Date: Wed, 21 Feb 2007 23:23:59 +0200 X-Mailer: Apple Mail (2.752.3) Subject: Zaurus SL-5500 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, 21 Feb 2007 21:55:03 -0000 Any developer interested on Zaurus SL-5500? Comes with few small memory cards and a cf bluetooth card. From owner-freebsd-arm@FreeBSD.ORG Wed Feb 21 22:34:27 2007 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 213AA16A408 for ; Wed, 21 Feb 2007 22:34:27 +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 B981C13C4B3 for ; Wed, 21 Feb 2007 22:34:26 +0000 (UTC) (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 l1LMXIt7000770; Wed, 21 Feb 2007 15:33:18 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 21 Feb 2007 15:33:18 -0700 (MST) Message-Id: <20070221.153318.-1962676452.imp@bsdimp.com> To: jmak@dnainternet.net From: "M. Warner Losh" In-Reply-To: <4F4265D9-22D0-4672-B2CA-36291933C0C6@dnainternet.net> References: <4F4265D9-22D0-4672-B2CA-36291933C0C6@dnainternet.net> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 21 Feb 2007 15:33:18 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: Zaurus SL-5500 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, 21 Feb 2007 22:34:27 -0000 In message: <4F4265D9-22D0-4672-B2CA-36291933C0C6@dnainternet.net> Janne M=E4kinen writes: : Any developer interested on Zaurus SL-5500? Comes with few small = : memory cards and a cf bluetooth card. I'm interested. Warner From owner-freebsd-arm@FreeBSD.ORG Thu Feb 22 10:19:56 2007 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 3707216A401 for ; Thu, 22 Feb 2007 10:19:56 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id E676D13C4B4 for ; Thu, 22 Feb 2007 10:19:55 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 6A089C2ED8 for ; Thu, 22 Feb 2007 12:19:54 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 82939-07-6 for ; Thu, 22 Feb 2007 12:19:51 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id F1037C2ED4 for ; Thu, 22 Feb 2007 12:19:48 +0200 (EET) Message-ID: <45DD6E45.5000505@bulinfo.net> Date: Thu, 22 Feb 2007 12:19:49 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Subject: SD card support? 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: Thu, 22 Feb 2007 10:19:56 -0000 Hello, I've read that SD is not supported by qdmmc and now qdmmc does not exist in the source tree. Are the SD cards supported by mmcsd driver? Also what this line in dmesg means: 'Cannot get 100 Hz clock; using 100Hz' May be something is not initialized? Best Regards From owner-freebsd-arm@FreeBSD.ORG Thu Feb 22 15:25:25 2007 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 A962316A402 for ; Thu, 22 Feb 2007 15:25: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 694CF13C4A3 for ; Thu, 22 Feb 2007 15:25:25 +0000 (UTC) (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 l1MFMQqO012837; Thu, 22 Feb 2007 08:22:26 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 22 Feb 2007 08:22:27 -0700 (MST) Message-Id: <20070222.082227.-2001110508.imp@bsdimp.com> To: krassi@bulinfo.net From: "M. Warner Losh" In-Reply-To: <45DD6E45.5000505@bulinfo.net> References: <45DD6E45.5000505@bulinfo.net> 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, 22 Feb 2007 08:22:26 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: SD card support? 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: Thu, 22 Feb 2007 15:25:25 -0000 In message: <45DD6E45.5000505@bulinfo.net> Krassimir Slavchev writes: : Hello, : : I've read that SD is not supported by qdmmc and now qdmmc does not exist : in the source tree. : Are the SD cards supported by mmcsd driver? Yes. The qdmmc driver is no more. The at91_mci driver is the host adapter driver, mmc is the bus, and mmcsd is support for mmc/sd cards (although only sd will work at the moment due to lack of hardware). : Also what this line in dmesg means: : 'Cannot get 100 Hz clock; using 100Hz' : May be something is not initialized? No, that just means you can't divide 32768 by 100 evenly. Warner From owner-freebsd-arm@FreeBSD.ORG Thu Feb 22 16:36:29 2007 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 83A6516A47B for ; Thu, 22 Feb 2007 16:36:29 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 3D19913C491 for ; Thu, 22 Feb 2007 16:36:29 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id CDBBD175C0C; Thu, 22 Feb 2007 18:36:26 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20168-02-3; Thu, 22 Feb 2007 18:36:24 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id C14DA175C09; Thu, 22 Feb 2007 18:36:22 +0200 (EET) Message-ID: <45DDC686.50405@bulinfo.net> Date: Thu, 22 Feb 2007 18:36:22 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: "M. Warner Losh" , freebsd-arm@freebsd.org References: <45DD6E45.5000505@bulinfo.net> <20070222.082227.-2001110508.imp@bsdimp.com> In-Reply-To: <20070222.082227.-2001110508.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: Subject: Re: SD card support? 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: Thu, 22 Feb 2007 16:36:29 -0000 M. Warner Losh wrote: > In message: <45DD6E45.5000505@bulinfo.net> > Krassimir Slavchev writes: > : Hello, > : > : I've read that SD is not supported by qdmmc and now qdmmc does not exist > : in the source tree. > : Are the SD cards supported by mmcsd driver? > > Yes. The qdmmc driver is no more. The at91_mci driver is the host > adapter driver, mmc is the bus, and mmcsd is support for mmc/sd cards > (although only sd will work at the moment due to lack of hardware). > > Good! I am going to investigate why my SD card is not detected. dmesg says only: 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 > : Also what this line in dmesg means: > : 'Cannot get 100 Hz clock; using 100Hz' > : May be something is not initialized? > > No, that just means you can't divide 32768 by 100 evenly. > > Warner > > And another problem: ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 ate0: Cannot find my PHY. device_attach: ate0 attach returned 6 Looks like nothing on miibus. Very strange because the bootspi is able to boot from tftp server. The PHY is RTL8201CP and I use rlphy driver which is for RTL8201L. Any hints where to look? Thanks in advance From owner-freebsd-arm@FreeBSD.ORG Thu Feb 22 17:50:12 2007 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 6FB5F16A400 for ; Thu, 22 Feb 2007 17:50:12 +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 DE4EF13C48D for ; Thu, 22 Feb 2007 17:50:11 +0000 (UTC) (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 l1MHnwvb098863; Thu, 22 Feb 2007 18:49:58 +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 l1MHno3i094839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Feb 2007 18:49: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 l1MHnn5r048410; Thu, 22 Feb 2007 18:49: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 l1MHnliM048409; Thu, 22 Feb 2007 18:49:47 +0100 (CET) (envelope-from ticso) Date: Thu, 22 Feb 2007 18:49:47 +0100 From: Bernd Walter To: Krassimir Slavchev Message-ID: <20070222174946.GE24769@cicely12.cicely.de> References: <45DD6E45.5000505@bulinfo.net> <20070222.082227.-2001110508.imp@bsdimp.com> <45DDC686.50405@bulinfo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DDC686.50405@bulinfo.net> 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: freebsd-arm@freebsd.org Subject: Re: SD card support? 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: Thu, 22 Feb 2007 17:50:12 -0000 On Thu, Feb 22, 2007 at 06:36:22PM +0200, Krassimir Slavchev wrote: > M. Warner Losh wrote: > >In message: <45DD6E45.5000505@bulinfo.net> > > Krassimir Slavchev writes: > >: Hello, > >: > >: I've read that SD is not supported by qdmmc and now qdmmc does not exist > >: in the source tree. > >: Are the SD cards supported by mmcsd driver? > > > >Yes. The qdmmc driver is no more. The at91_mci driver is the host > >adapter driver, mmc is the bus, and mmcsd is support for mmc/sd cards > >(although only sd will work at the moment due to lack of hardware). > > > > > Good! > > I am going to investigate why my SD card is not detected. > > dmesg says only: > > 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 I noticed a problem when netbooting, that cards are only detected on reboot. Booting via boot2 doesn't hsow this problem. Another point, which I noticed yesterday is that the kernel did not find a verbatim media, although boot2 sucessfully loaded the kernel. > >: Also what this line in dmesg means: > >: 'Cannot get 100 Hz clock; using 100Hz' > >: May be something is not initialized? > > > >No, that just means you can't divide 32768 by 100 evenly. > > > >Warner > > > > > And another problem: > > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 > ate0: Cannot find my PHY. > device_attach: ate0 attach returned 6 > > Looks like nothing on miibus. Very strange because the bootspi is able > to boot from tftp server. > The PHY is RTL8201CP and I use rlphy driver which is for RTL8201L. > > Any hints where to look? Enhance the rlphy driver - should be enough to add the device ID. The additional automdix feature should be tranparent. -- 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 Thu Feb 22 20:10:35 2007 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 1DA6A16A400 for ; Thu, 22 Feb 2007 20:10:35 +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 D021913C48E for ; Thu, 22 Feb 2007 20:10:34 +0000 (UTC) (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 l1MK8h28014962; Thu, 22 Feb 2007 13:08:43 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 22 Feb 2007 13:08:42 -0700 (MST) Message-Id: <20070222.130842.74734926.imp@bsdimp.com> To: krassi@bulinfo.net From: Warner Losh In-Reply-To: <45DDC686.50405@bulinfo.net> References: <45DD6E45.5000505@bulinfo.net> <20070222.082227.-2001110508.imp@bsdimp.com> <45DDC686.50405@bulinfo.net> 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]); Thu, 22 Feb 2007 13:08:43 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: SD card support? 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: Thu, 22 Feb 2007 20:10:35 -0000 > M. Warner Losh wrote: > > In message: <45DD6E45.5000505@bulinfo.net> > > Krassimir Slavchev writes: > > : Hello, > > : > > : I've read that SD is not supported by qdmmc and now qdmmc does not exist > > : in the source tree. > > : Are the SD cards supported by mmcsd driver? > > > > Yes. The qdmmc driver is no more. The at91_mci driver is the host > > adapter driver, mmc is the bus, and mmcsd is support for mmc/sd cards > > (although only sd will work at the moment due to lack of hardware). > > > > > Good! > > I am going to investigate why my SD card is not detected. > > dmesg says only: > > 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 Maybe the boot loader isn't turning on the right peripheral lines... They are multiplexed on the AT91RM9200 and default to GPIO. > > : Also what this line in dmesg means: > > : 'Cannot get 100 Hz clock; using 100Hz' > > : May be something is not initialized? > > > > No, that just means you can't divide 32768 by 100 evenly. > > > > Warner > > > > > And another problem: > > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 > ate0: Cannot find my PHY. > device_attach: ate0 attach returned 6 Maybe the boot loader isn't turning on the right peripheral lines and/or not setting up the right type of MII bus to the PHY? Warner > Looks like nothing on miibus. Very strange because the bootspi is able > to boot from tftp server. > The PHY is RTL8201CP and I use rlphy driver which is for RTL8201L. > > Any hints where to look? > > Thanks in advance > > From owner-freebsd-arm@FreeBSD.ORG Thu Feb 22 20:23:41 2007 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 0A1EC16A400 for ; Thu, 22 Feb 2007 20:23:41 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id A652513C428 for ; Thu, 22 Feb 2007 20:23:40 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.13.8/8.13.8) with ESMTP id l1MJl312031040; Thu, 22 Feb 2007 13:47:03 -0600 (CST) (envelope-from tinguely@casselton.net) Received: (from tinguely@localhost) by casselton.net (8.13.8/8.13.8/Submit) id l1MJl3tu031039; Thu, 22 Feb 2007 13:47:03 -0600 (CST) (envelope-from tinguely) Date: Thu, 22 Feb 2007 13:47:03 -0600 (CST) From: Mark Tinguely Message-Id: <200702221947.l1MJl3tu031039@casselton.net> To: freebsd-arm@freebsd.org, jmak@dnainternet.net In-Reply-To: <4F4265D9-22D0-4672-B2CA-36291933C0C6@dnainternet.net> Cc: Subject: Re: Zaurus SL-5500 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: Thu, 22 Feb 2007 20:23:41 -0000 > Any developer interested on Zaurus SL-5500? Comes with few small > memory cards and a cf bluetooth card. Is that still the SA-1110 or the PXA-2xx? Didn't Intel sell that line of processors? --Mark Tinguely. From owner-freebsd-arm@FreeBSD.ORG Thu Feb 22 21:51:46 2007 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 C352916A400 for ; Thu, 22 Feb 2007 21:51:46 +0000 (UTC) (envelope-from jmak@dnainternet.net) Received: from isolokki.dnainternet.net (isolokki.dnainternet.net [212.149.75.39]) by mx1.freebsd.org (Postfix) with ESMTP id 860C713C428 for ; Thu, 22 Feb 2007 21:51:46 +0000 (UTC) (envelope-from jmak@dnainternet.net) Received: from dnainternet.net (sp-fe-1-2.dnainternet.net [212.149.75.11]) by isolokki.dnainternet.net (Postfix) with ESMTP id B2A25F07C; Thu, 22 Feb 2007 23:49:07 +0200 (EET) Received: from [82.197.29.1] (account ukki.savo@dnainternet.net HELO [192.168.0.169]) by tavi.dnainternet.net (CommuniGate Pro SMTP 5.0.9) with ESMTPA id 61806329; Thu, 22 Feb 2007 23:49:07 +0200 In-Reply-To: <200702221947.l1MJl3tu031039@casselton.net> References: <200702221947.l1MJl3tu031039@casselton.net> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1DFB49D9-E861-4C5C-9091-25CA12CFCF7D@dnainternet.net> Content-Transfer-Encoding: 7bit From: =?ISO-8859-1?Q?Janne_M=E4kinen?= Date: Thu, 22 Feb 2007 23:49:00 +0200 To: Mark Tinguely X-Mailer: Apple Mail (2.752.3) Cc: freebsd-arm@freebsd.org Subject: Re: Zaurus SL-5500 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: Thu, 22 Feb 2007 21:51:46 -0000 On Feb 22, 2007, at 9:47 PM, Mark Tinguely wrote: >> Any developer interested on Zaurus SL-5500? Comes with few small >> memory cards and a cf bluetooth card. > > Is that still the SA-1110 or the PXA-2xx? Didn't Intel sell that > line of > processors? > > --Mark Tinguely. Seems to be SA-1110 according this page: http://www.linuxdevices.com/articles/AT2134869242.html From owner-freebsd-arm@FreeBSD.ORG Fri Feb 23 11:19:28 2007 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 63E9016A400 for ; Fri, 23 Feb 2007 11:19:28 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1F9B113C441 for ; Fri, 23 Feb 2007 11:19:28 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 4380F17763F; Fri, 23 Feb 2007 13:19:24 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 92827-02; Fri, 23 Feb 2007 13:19:22 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 9309917763D; Fri, 23 Feb 2007 13:19:22 +0200 (EET) Message-ID: <45DECDB9.1060906@bulinfo.net> Date: Fri, 23 Feb 2007 13:19:21 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: ticso@cicely.de References: <45DD6E45.5000505@bulinfo.net> <20070222.082227.-2001110508.imp@bsdimp.com> <45DDC686.50405@bulinfo.net> <20070222174946.GE24769@cicely12.cicely.de> In-Reply-To: <20070222174946.GE24769@cicely12.cicely.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: SD card support? 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, 23 Feb 2007 11:19:28 -0000 Bernd Walter wrote: > On Thu, Feb 22, 2007 at 06:36:22PM +0200, Krassimir Slavchev wrote: > >> M. Warner Losh wrote: >> >>> In message: <45DD6E45.5000505@bulinfo.net> >>> Krassimir Slavchev writes: >>> : Hello, >>> : >>> : I've read that SD is not supported by qdmmc and now qdmmc does not exist >>> : in the source tree. >>> : Are the SD cards supported by mmcsd driver? >>> >>> Yes. The qdmmc driver is no more. The at91_mci driver is the host >>> adapter driver, mmc is the bus, and mmcsd is support for mmc/sd cards >>> (although only sd will work at the moment due to lack of hardware). >>> >>> >>> >> Good! >> >> I am going to investigate why my SD card is not detected. >> >> dmesg says only: >> >> 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 >> > > I noticed a problem when netbooting, that cards are only detected on > reboot. > Booting via boot2 doesn't hsow this problem. > Another point, which I noticed yesterday is that the kernel did not > find a verbatim media, although boot2 sucessfully loaded the kernel. > > Yes, because bootspi does not call sdcard_init() function! After adding: Timecounters tick every 10.000 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 at91_mci0: Setting controller bus width to 1 at91_mci0: Setting controller bus width to 1 SD CARD: 998768640 bytes at91_mci0: Setting controller bus width to 1 mmcsd0: on mmc0 mmc0: setting transfer rate to 30.000MHz at91_mci0: Setting controller bus width to 1 Trying to mount root from ufs:/dev/mmcsd0s1a >>> : Also what this line in dmesg means: >>> : 'Cannot get 100 Hz clock; using 100Hz' >>> : May be something is not initialized? >>> >>> No, that just means you can't divide 32768 by 100 evenly. >>> >>> Warner >>> >>> >>> >> And another problem: >> >> ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 >> ate0: Cannot find my PHY. >> device_attach: ate0 attach returned 6 >> >> Looks like nothing on miibus. Very strange because the bootspi is able >> to boot from tftp server. >> The PHY is RTL8201CP and I use rlphy driver which is for RTL8201L. >> >> Any hints where to look? >> > > Enhance the rlphy driver - should be enough to add the device ID. > The additional automdix feature should be tranparent. > > From owner-freebsd-arm@FreeBSD.ORG Fri Feb 23 12:07:11 2007 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 E991416A400 for ; Fri, 23 Feb 2007 12:07:10 +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 7A58413C467 for ; Fri, 23 Feb 2007 12:07:10 +0000 (UTC) (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 l1NC76Zv012862; Fri, 23 Feb 2007 13:07:06 +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 l1NC6vAR001292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 Feb 2007 13:06:57 +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 l1NC6u9a051265; Fri, 23 Feb 2007 13:06:56 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l1NC6u3K051264; Fri, 23 Feb 2007 13:06:56 +0100 (CET) (envelope-from ticso) Date: Fri, 23 Feb 2007 13:06:56 +0100 From: Bernd Walter To: Krassimir Slavchev Message-ID: <20070223120656.GG50026@cicely12.cicely.de> References: <45DD6E45.5000505@bulinfo.net> <20070222.082227.-2001110508.imp@bsdimp.com> <45DDC686.50405@bulinfo.net> <20070222174946.GE24769@cicely12.cicely.de> <45DECDB9.1060906@bulinfo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DECDB9.1060906@bulinfo.net> 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: freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: SD card support? 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, 23 Feb 2007 12:07:11 -0000 On Fri, Feb 23, 2007 at 01:19:21PM +0200, Krassimir Slavchev wrote: > Bernd Walter wrote: > >On Thu, Feb 22, 2007 at 06:36:22PM +0200, Krassimir Slavchev wrote: > > > >>M. Warner Losh wrote: > >> > >>>In message: <45DD6E45.5000505@bulinfo.net> > >>> Krassimir Slavchev writes: > >>>: Hello, > >>>: > >>>: I've read that SD is not supported by qdmmc and now qdmmc does not > >>>exist : in the source tree. > >>>: Are the SD cards supported by mmcsd driver? > >>> > >>>Yes. The qdmmc driver is no more. The at91_mci driver is the host > >>>adapter driver, mmc is the bus, and mmcsd is support for mmc/sd cards > >>>(although only sd will work at the moment due to lack of hardware). > >>> > >>> > >>> > >>Good! > >> > >>I am going to investigate why my SD card is not detected. > >> > >>dmesg says only: > >> > >>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 > >> > > > >I noticed a problem when netbooting, that cards are only detected on > >reboot. > >Booting via boot2 doesn't hsow this problem. > >Another point, which I noticed yesterday is that the kernel did not > >find a verbatim media, although boot2 sucessfully loaded the kernel. > > > > > Yes, because bootspi does not call sdcard_init() function! Ah - yes, different point, since I have AT91F_MCI_CfgPIO(); AT91F_MCI_CfgPMC(); For BWCT boards. That fits with Warners assumtion of miss-/nonconfigured GPIO. In the same manner he is probably right about the PHY, since a non matching rlphy should result in ukphy to match. Not shure about bootspi, but depending on the configuration it might ignore a MDIO Problem with the PHY. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de