From owner-freebsd-arm@FreeBSD.ORG Tue Sep 11 21:44:04 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37B6016A417 for ; Tue, 11 Sep 2007 21:44:04 +0000 (UTC) (envelope-from kawks@ya.ru) Received: from webmail9.mail.yandex.net (webmail9.mail.yandex.net [213.180.223.100]) by mx1.freebsd.org (Postfix) with ESMTP id 9A2C713C459 for ; Tue, 11 Sep 2007 21:44:03 +0000 (UTC) (envelope-from kawks@ya.ru) Received: from YAMAIL (webmail9) by mail.yandex.ru id S2752524AbXIKUme for ; Wed, 12 Sep 2007 00:42:34 +0400 X-Yandex-Spam: 1 Received: from [85.30.207.91] ([85.30.207.91]) by mail.yandex.ru with HTTP; Wed, 12 Sep 2007 00:42:34 +0400 From: Mikhael Skvortsov To: freebsd-arm@freebsd.org MIME-Version: 1.0 Message-Id: <92731189543354@webmail9.yandex.ru> Date: Wed, 12 Sep 2007 00:42:34 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Subject: jornada 568 port 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, 11 Sep 2007 21:44:04 -0000 I'm trying to port FreeBSD to HP Jornada 568 PDA (http://en.wikipedia.org/wiki/Jornada_560_series). Boot process freezes almost just after enabling MMU: while sending something to UART cpufunc_control(0x337f, 0x107d); arm_vector_init(ARM_VECTORS_LOW, ARM_VEC_ALL); + printf("MMU, I-cache, D-cache, WB enabled.\n"); minicom receives only first nine chars plus a random one, i. e. "MMU, I-cae". What can make this happening? I'm stuck without any ability to debug code. -- Regards, Mikhael From owner-freebsd-arm@FreeBSD.ORG Tue Sep 11 23:43:20 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E82D16A468 for ; Tue, 11 Sep 2007 23:43:20 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (dong.ci0.org [IPv6:2001:7a8:2066:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id AC6AB13C45E for ; Tue, 11 Sep 2007 23:43:19 +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.8/8.13.8) with ESMTP id l8C0LgC7091529; Wed, 12 Sep 2007 02:21:42 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.1/8.13.8/Submit) id l8C0LgUP091528; Wed, 12 Sep 2007 02:21:42 +0200 (CEST) (envelope-from mlfbsd) Date: Wed, 12 Sep 2007 02:21:41 +0200 From: Olivier Houchard To: Mikhael Skvortsov Message-ID: <20070912002141.GA91476@ci0.org> References: <92731189543354@webmail9.yandex.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <92731189543354@webmail9.yandex.ru> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: jornada 568 port 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, 11 Sep 2007 23:43:20 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 12, 2007 at 12:42:34AM +0400, Mikhael Skvortsov wrote: > I'm trying to port FreeBSD to HP Jornada 568 PDA (http://en.wikipedia.org/wiki/Jornada_560_series). Boot process freezes almost just after enabling MMU: while sending something to UART > > cpufunc_control(0x337f, 0x107d); > arm_vector_init(ARM_VECTORS_LOW, ARM_VEC_ALL); > + printf("MMU, I-cache, D-cache, WB enabled.\n"); > > minicom receives only first nine chars plus a random one, i. e. "MMU, I-cae". > What can make this happening? I'm stuck without any ability to debug code. > > -- > Regards, Mikhael Hi Mikhael, Your problem is likely related to the fact the sa11x0 serial driver is poorly written. The standard 16550 driver should work fine, however. Could you try the (untested, because I can't anymore) attached patch, which just switches the driver, to see if it makes a difference ? Thanks, Olivier --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sa11x0_uart.diff" Index: arm/sa11x0/files.sa11x0 =================================================================== RCS file: /cognet/ncvs/src/sys/arm/sa11x0/files.sa11x0,v retrieving revision 1.2 diff -u -p -r1.2 files.sa11x0 --- arm/sa11x0/files.sa11x0 14 May 2004 13:26:52 -0000 1.2 +++ arm/sa11x0/files.sa11x0 11 Sep 2007 23:37:49 -0000 @@ -7,5 +7,5 @@ arm/sa11x0/sa11x0_io_asm.S optional sai arm/sa11x0/sa11x0_irq.S optional saip arm/sa11x0/sa11x0_irqhandler.c optional saip arm/sa11x0/uart_cpu_sa1110.c optional uart saip -arm/sa11x0/uart_dev_sa1110.c optional uart saip arm/sa11x0/uart_bus_sa1110.c optional uart saip +dev/uart/uart_dev_ns8250.c optional uart Index: arm/sa11x0/uart_bus_sa1110.c =================================================================== RCS file: /cognet/ncvs/src/sys/arm/sa11x0/uart_bus_sa1110.c,v retrieving revision 1.3 diff -u -p -r1.3 uart_bus_sa1110.c --- arm/sa11x0/uart_bus_sa1110.c 5 Jan 2005 21:58:48 -0000 1.3 +++ arm/sa11x0/uart_bus_sa1110.c 11 Sep 2007 23:36:50 -0000 @@ -70,7 +70,7 @@ uart_sa1110_probe(device_t dev) sc = device_get_softc(dev); sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); - sc->sc_class = &uart_sa1110_class; + sc->sc_class = &uart_ns8250_class; bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas)); return(uart_bus_probe(dev, 0, 0, 0, 0)); return (0); Index: arm/sa11x0/uart_cpu_sa1110.c =================================================================== RCS file: /cognet/ncvs/src/sys/arm/sa11x0/uart_cpu_sa1110.c,v retrieving revision 1.7 diff -u -p -r1.7 uart_cpu_sa1110.c --- arm/sa11x0/uart_cpu_sa1110.c 2 Apr 2007 22:00:21 -0000 1.7 +++ arm/sa11x0/uart_cpu_sa1110.c 11 Sep 2007 23:27:08 -0000 @@ -56,7 +56,7 @@ int uart_cpu_getdev(int devtype, struct uart_devinfo *di) { - di->ops = uart_getops(&uart_sa1110_class); + di->ops = uart_getops(&uart_ns8250_class); di->bas.chan = 0; di->bas.bst = &sa11x0_bs_tag; di->bas.bsh = sa1110_uart_vaddr; --envbJBWh7q8WU6mo-- From owner-freebsd-arm@FreeBSD.ORG Wed Sep 12 10:15:45 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36C8A16A421 for ; Wed, 12 Sep 2007 10:15:45 +0000 (UTC) (envelope-from kawks@ya.ru) Received: from webmail34.mail.yandex.net (webmail34.mail.yandex.net [213.180.223.183]) by mx1.freebsd.org (Postfix) with ESMTP id 8D61813C4A6 for ; Wed, 12 Sep 2007 10:15:44 +0000 (UTC) (envelope-from kawks@ya.ru) Received: from YAMAIL (webmail34) by mail.yandex.ru id S6468006AbXILKPl for ; Wed, 12 Sep 2007 14:15:41 +0400 X-Yandex-Spam: 1 Received: from [85.30.207.91] ([85.30.207.91]) by mail.yandex.ru with HTTP; Wed, 12 Sep 2007 14:15:41 +0400 From: Mikhael Skvortsov To: "Olivier Houchard" MIME-Version: 1.0 Message-Id: <313471189592141@webmail34.yandex.ru> Date: Wed, 12 Sep 2007 14:15:41 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: freebsd-arm@freebsd.org Subject: Re: jornada 568 port 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, 12 Sep 2007 10:15:45 -0000 Oliver, quick tryout of the 16550 didn't give any results (nothing is transmitted at all). But this driver is definitely compatible with the sa11x0 usart, so I'll try it in detail later. However, I found some typos in uart_dev_sa1110.c which caused error: Index: uart_dev_sa1110.c =================================================================== RCS file: /home/ncvs/src/sys/arm/sa11x0/uart_dev_sa1110.c,v retrieving revision 1.8 diff -u -r1.8 uart_dev_sa1110.c --- uart_dev_sa1110.c 2 Apr 2007 22:00:21 -0000 1.8 +++ uart_dev_sa1110.c 12 Sep 2007 10:12:39 -0000 @@ -97,7 +97,7 @@ static void sa1110_putc(struct uart_bas *bas, int c) { - while (!uart_getreg(bas, SACOM_SR1) & SR1_TNF); + while (!(uart_getreg(bas, SACOM_SR1) & SR1_TNF)); uart_setreg(bas, SACOM_DR, c); } @@ -186,7 +186,7 @@ uart_setreg(&sc->sc_bas, SACOM_CR3, uart_getreg(&sc->sc_bas, SACOM_CR3) | CR3_TIE); for (i = 0; i < sc->sc_txdatasz; i++) { - while (!uart_getreg(&sc->sc_bas, SACOM_SR1) & SR1_TNF); + while (!(uart_getreg(&sc->sc_bas, SACOM_SR1) & SR1_TNF)); uart_setreg(&sc->sc_bas, SACOM_DR, sc->sc_txbuf[i]); uart_barrier(&sc->sc_bas); -- Regards, Mikhael > > On Wed, Sep 12, 2007 at 12:42:34AM +0400, Mikhael Skvortsov wrote: > > I'm trying to port FreeBSD to HP Jornada 568 PDA (http://en.wikipedia.org/wiki/Jornada_560_series). Boot process freezes almost just after enabling MMU: while sending something to UART > > > > cpufunc_control(0x337f, 0x107d); > > arm_vector_init(ARM_VECTORS_LOW, ARM_VEC_ALL); > > + printf("MMU, I-cache, D-cache, WB enabled.\n"); > > > > minicom receives only first nine chars plus a random one, i. e. "MMU, I-cae". > > What can make this happening? I'm stuck without any ability to debug code. > > > > -- > > Regards, Mikhael > > Hi Mikhael, > > Your problem is likely related to the fact the sa11x0 serial driver is > poorly written. The standard 16550 driver should work fine, however. > Could you try the (untested, because I can't anymore) attached patch, which > just switches the driver, to see if it makes a difference ? > > Thanks, > > Olivier > > Index: arm/sa11x0/files.sa11x0 > =================================================================== > RCS file: /cognet/ncvs/src/sys/arm/sa11x0/files.sa11x0,v > retrieving revision 1.2 > diff -u -p -r1.2 files.sa11x0 > --- arm/sa11x0/files.sa11x0 14 May 2004 13:26:52 -0000 1.2 > +++ arm/sa11x0/files.sa11x0 11 Sep 2007 23:37:49 -0000 > @@ -7,5 +7,5 @@ arm/sa11x0/sa11x0_io_asm.S optional sai > arm/sa11x0/sa11x0_irq.S optional saip > arm/sa11x0/sa11x0_irqhandler.c optional saip > arm/sa11x0/uart_cpu_sa1110.c optional uart saip > -arm/sa11x0/uart_dev_sa1110.c optional uart saip > arm/sa11x0/uart_bus_sa1110.c optional uart saip > +dev/uart/uart_dev_ns8250.c optional uart > Index: arm/sa11x0/uart_bus_sa1110.c > =================================================================== > RCS file: /cognet/ncvs/src/sys/arm/sa11x0/uart_bus_sa1110.c,v > retrieving revision 1.3 > diff -u -p -r1.3 uart_bus_sa1110.c > --- arm/sa11x0/uart_bus_sa1110.c 5 Jan 2005 21:58:48 -0000 1.3 > +++ arm/sa11x0/uart_bus_sa1110.c 11 Sep 2007 23:36:50 -0000 > @@ -70,7 +70,7 @@ uart_sa1110_probe(device_t dev) > > sc = device_get_softc(dev); > > sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); > - sc->sc_class = &uart_sa1110_class; > + sc->sc_class = &uart_ns8250_class; > bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas)); > return(uart_bus_probe(dev, 0, 0, 0, 0)); > return (0); > Index: arm/sa11x0/uart_cpu_sa1110.c > =================================================================== > RCS file: /cognet/ncvs/src/sys/arm/sa11x0/uart_cpu_sa1110.c,v > retrieving revision 1.7 > diff -u -p -r1.7 uart_cpu_sa1110.c > --- arm/sa11x0/uart_cpu_sa1110.c 2 Apr 2007 22:00:21 -0000 1.7 > +++ arm/sa11x0/uart_cpu_sa1110.c 11 Sep 2007 23:27:08 -0000 > @@ -56,7 +56,7 @@ int > uart_cpu_getdev(int devtype, struct uart_devinfo *di) > { > > - di->ops = uart_getops(&uart_sa1110_class); > + di->ops = uart_getops(&uart_ns8250_class); > > di->bas.chan = 0; > di->bas.bst = &sa11x0_bs_tag; > di->bas.bsh = sa1110_uart_vaddr; > > From owner-freebsd-arm@FreeBSD.ORG Wed Sep 12 18:41:22 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49A0F16A419 for ; Wed, 12 Sep 2007 18:41:22 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (dong.ci0.org [IPv6:2001:7a8:2066:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 41A0B13C474 for ; Wed, 12 Sep 2007 18:41:20 +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.8/8.13.8) with ESMTP id l8CJJtAo011394; Wed, 12 Sep 2007 21:19:56 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.1/8.13.8/Submit) id l8CJJti8011393; Wed, 12 Sep 2007 21:19:55 +0200 (CEST) (envelope-from mlfbsd) Date: Wed, 12 Sep 2007 21:19:54 +0200 From: Olivier Houchard To: Mikhael Skvortsov Message-ID: <20070912191954.GA11169@ci0.org> References: <313471189592141@webmail34.yandex.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <313471189592141@webmail34.yandex.ru> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: jornada 568 port 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, 12 Sep 2007 18:41:22 -0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 12, 2007 at 02:15:41PM +0400, Mikhael Skvortsov wrote: > Oliver, > > quick tryout of the 16550 didn't give any results (nothing is transmitted > at all). But this driver is definitely compatible with the sa11x0 usart, > so I'll try it in detail later. > > However, I found some typos in uart_dev_sa1110.c which caused error: Hi Mikhael, Thanks a lot for investigating this. I just committed your fix. Does that mean you go further now ? As for the ns8250 code, I'd guess a few tweaks in uart_cpu_sa1110.c or uart_bus_sa1110.c should be needed. Maybe the attached patch would help ? Regards, Olivier --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sa11x0_uart.diff" Index: arm/sa11x0/files.sa11x0 =================================================================== RCS file: /cognet/ncvs/src/sys/arm/sa11x0/files.sa11x0,v retrieving revision 1.2 diff -u -p -r1.2 files.sa11x0 --- arm/sa11x0/files.sa11x0 14 May 2004 13:26:52 -0000 1.2 +++ arm/sa11x0/files.sa11x0 12 Sep 2007 18:32:19 -0000 @@ -7,5 +7,5 @@ arm/sa11x0/sa11x0_io_asm.S optional sai arm/sa11x0/sa11x0_irq.S optional saip arm/sa11x0/sa11x0_irqhandler.c optional saip arm/sa11x0/uart_cpu_sa1110.c optional uart saip -arm/sa11x0/uart_dev_sa1110.c optional uart saip arm/sa11x0/uart_bus_sa1110.c optional uart saip +dev/uart/uart_dev_ns8250.c optional uart Index: arm/sa11x0/uart_bus_sa1110.c =================================================================== RCS file: /cognet/ncvs/src/sys/arm/sa11x0/uart_bus_sa1110.c,v retrieving revision 1.3 diff -u -p -r1.3 uart_bus_sa1110.c --- arm/sa11x0/uart_bus_sa1110.c 5 Jan 2005 21:58:48 -0000 1.3 +++ arm/sa11x0/uart_bus_sa1110.c 12 Sep 2007 18:39:28 -0000 @@ -70,9 +70,9 @@ uart_sa1110_probe(device_t dev) sc = device_get_softc(dev); sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); - sc->sc_class = &uart_sa1110_class; + sc->sc_class = &uart_ns8250_class; bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas)); - return(uart_bus_probe(dev, 0, 0, 0, 0)); + return(uart_bus_probe(dev, 2, SACOM_FREQ, 0, 0)); return (0); } Index: arm/sa11x0/uart_cpu_sa1110.c =================================================================== RCS file: /cognet/ncvs/src/sys/arm/sa11x0/uart_cpu_sa1110.c,v retrieving revision 1.7 diff -u -p -r1.7 uart_cpu_sa1110.c --- arm/sa11x0/uart_cpu_sa1110.c 2 Apr 2007 22:00:21 -0000 1.7 +++ arm/sa11x0/uart_cpu_sa1110.c 12 Sep 2007 18:40:21 -0000 @@ -38,6 +38,7 @@ __FBSDID("$FreeBSD: src/sys/arm/sa11x0/u #include #include +#include bus_space_tag_t uart_bus_space_io; bus_space_tag_t uart_bus_space_mem; @@ -56,13 +57,13 @@ int uart_cpu_getdev(int devtype, struct uart_devinfo *di) { - di->ops = uart_getops(&uart_sa1110_class); + di->ops = uart_getops(&uart_ns8250_class); di->bas.chan = 0; di->bas.bst = &sa11x0_bs_tag; di->bas.bsh = sa1110_uart_vaddr; - di->bas.regshft = 0; - di->bas.rclk = 0; - di->baudrate = 9600; + di->bas.regshft = 2; + di->bas.rclk = SACOM_FREQ; + di->baudrate = 115200; di->databits = 8; di->stopbits = 1; di->parity = UART_PARITY_NONE; --YZ5djTAD1cGYuMQK-- From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 00:24:21 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 744AF16A417 for ; Thu, 13 Sep 2007 00:24:21 +0000 (UTC) (envelope-from kawks@ya.ru) Received: from smtp1.yandex.ru (smtp1.yandex.ru [213.180.223.87]) by mx1.freebsd.org (Postfix) with ESMTP id 9DD6E13C442 for ; Thu, 13 Sep 2007 00:24:20 +0000 (UTC) (envelope-from kawks@ya.ru) Received: from skvorcov.yasenevo.net ([85.30.207.91]:47883 "EHLO [192.168.1.2]" smtp-auth: "kawks" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S8372505AbXIMAFV (ORCPT ); Thu, 13 Sep 2007 04:05:21 +0400 X-Comment: RFC 2476 MSA function at smtp1.yandex.ru logged sender identity as: kawks Message-ID: <46E87ECA.7080701@ya.ru> Date: Thu, 13 Sep 2007 04:05:30 +0400 From: Mikhael Skvortsov User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Olivier Houchard References: <313471189592141@webmail34.yandex.ru> <20070912191954.GA11169@ci0.org> In-Reply-To: <20070912191954.GA11169@ci0.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: jornada 568 port 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, 13 Sep 2007 00:24:21 -0000 Olivier Houchard wrote: > On Wed, Sep 12, 2007 at 02:15:41PM +0400, Mikhael Skvortsov wrote: >> Oliver, >> >> quick tryout of the 16550 didn't give any results (nothing is transmitted >> at all). But this driver is definitely compatible with the sa11x0 usart, >> so I'll try it in detail later. >> >> However, I found some typos in uart_dev_sa1110.c which caused error: > > > Hi Mikhael, > > Thanks a lot for investigating this. I just committed your fix. > Does that mean you go further now ? > As for the ns8250 code, I'd guess a few tweaks in uart_cpu_sa1110.c or > uart_bus_sa1110.c should be needed. Maybe the attached patch would help ? > > Regards, > > Olivier > Oliver, yep, it's some kind of a progress now. Freeze moved to pmap_bootstrap() at arm/arm/pmap.c:2507. At the moment I try to understand the code around. Thanks for your patches but it seems I was wrong about `definite compatibility' of the sa1110's uart and the 8250. After carefully reading datasheets I found these chips are thoroughly different. Sorry for my inattention. Regards, Mikhael From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 00:50:34 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E74216A41B for ; Thu, 13 Sep 2007 00:50:34 +0000 (UTC) (envelope-from hcrilly@onthenet.com.au) Received: from vito.onthenet.com.au (vito.OntheNet.com.au [203.22.124.72]) by mx1.freebsd.org (Postfix) with ESMTP id 5CF8313C46C for ; Thu, 13 Sep 2007 00:50:34 +0000 (UTC) (envelope-from hcrilly@onthenet.com.au) Received: from [192.168.0.2] (CPE-203-144-11-232.dsl.OntheNet.net [203.144.11.232]) by vito.onthenet.com.au (Postfix) with ESMTP id 68F2BBAF79E for ; Thu, 13 Sep 2007 10:34:19 +1000 (EST) Message-ID: <46E8858F.1020405@onthenet.com.au> Date: Thu, 13 Sep 2007 10:34:23 +1000 From: Patrick & Helen Crilly User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD/arm on NSLU2 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, 13 Sep 2007 00:50:34 -0000 Hi, because of a career/lifestyle change, I'm missing out on my fix of kernel hacking. I was interested in the FreeBSD/arm port. I saw in the archives someone asking about the NSLU2. It looks a good bit of hardware to start out with because it's cheap, well documented and already works with NetBSD and Linux. I was wondering if any progress was made getting FreeBSD to work with it? regards, Patrick. From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 10:54:34 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B639A16A419 for ; Thu, 13 Sep 2007 10:54:34 +0000 (UTC) (envelope-from skalla.raabjorn@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id D3C1413C474 for ; Thu, 13 Sep 2007 10:54:33 +0000 (UTC) (envelope-from skalla.raabjorn@gmx.de) Received: (qmail invoked by alias); 13 Sep 2007 10:27:51 -0000 Received: from f049170038.adsl.alicedsl.de (EHLO sol.hackerzberg.local) [78.49.170.38] by mail.gmx.net (mp055) with SMTP; 13 Sep 2007 12:27:51 +0200 X-Authenticated: #8038066 X-Provags-ID: V01U2FsdGVkX1+Sm5RH8pGSk4lvs5vkZoXn3VV0e28Dfv+SMkIJDI Q+T5wlDySylXUW Date: Thu, 13 Sep 2007 12:27:57 +0200 From: Skalla Raabjorn To: freebsd-arm@freebsd.org Message-ID: <20070913122757.7bbf8433@sol.hackerzberg.local> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Error on installing cross binutils 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, 13 Sep 2007 10:54:34 -0000 Hi all, I'm currently trying to follow this howto: http://people.freebsd.org/~cognet/freebsd_arm.txt on a fresh -current as of yesterday. cc works fine, so does building binutils, however on # make TARGET_ARCH=arm TOOLS_PREFIX=/usr/cross DESTDIR=/usr/cross install I get the following: install -o root -g wheel -m 444 ldscripts/armelf_fbsd.x ldscripts/armelf_fbsd.xbn ldscripts/armelf_fbsd.xn ldscripts/armelf_fbsd.xr ldscripts/armelf_fbsd.xs ldscripts/armelf_fbsd.xu ldscripts/armelf_fbsd.xc ldscripts/armelf_fbsd.xsc ldscripts/armelf_fbsd.xd ldscripts/armelf_fbsd.xdc /usr/cross/usr/libdata/ldscripts install: wrong number or types of arguments usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... *** Error code 64 Stop in /usr/src/gnu/usr.bin/binutils/ld. *** Error code 1 Stop in /usr/src/gnu/usr.bin/binutils. Any idea what to do? Thanks Skalla From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 11:07:40 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8801116A418 for ; Thu, 13 Sep 2007 11:07:40 +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 57EBC13C458 for ; Thu, 13 Sep 2007 11:07:40 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id BB68437CF8; Thu, 13 Sep 2007 14:07:35 +0300 (EEST) 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 98430-05; Thu, 13 Sep 2007 14:07:33 +0300 (EEST) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 7C10237C89; Thu, 13 Sep 2007 14:07:33 +0300 (EEST) Message-ID: <46E919F4.7050008@bulinfo.net> Date: Thu, 13 Sep 2007 14:07:32 +0300 From: Krassimir Slavchev User-Agent: Thunderbird 2.0.0.5 (X11/20070724) MIME-Version: 1.0 To: Skalla Raabjorn References: <20070913122757.7bbf8433@sol.hackerzberg.local> In-Reply-To: <20070913122757.7bbf8433@sol.hackerzberg.local> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: Error on installing cross binutils 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, 13 Sep 2007 11:07:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Skalla Raabjorn wrote: > Hi all, > > I'm currently trying to follow this howto: > http://people.freebsd.org/~cognet/freebsd_arm.txt > This seems to be old. Just set TARGET=arm and TARGET_ARCH=arm in /etc/make/conf and then 'make buildworld' ... > on a fresh -current as of yesterday. > > cc works fine, so does building binutils, however on > # make TARGET_ARCH=arm TOOLS_PREFIX=/usr/cross DESTDIR=/usr/cross > install > > I get the following: > install -o root -g wheel -m 444 ldscripts/armelf_fbsd.x > ldscripts/armelf_fbsd.xbn ldscripts/armelf_fbsd.xn > ldscripts/armelf_fbsd.xr ldscripts/armelf_fbsd.xs > ldscripts/armelf_fbsd.xu ldscripts/armelf_fbsd.xc > ldscripts/armelf_fbsd.xsc ldscripts/armelf_fbsd.xd > ldscripts/armelf_fbsd.xdc /usr/cross/usr/libdata/ldscripts install: > wrong number or types of arguments usage: install [-bCcpSsv] [-B > suffix] [-f flags] [-g group] [-m mode] > [-o owner] file1 file2 > install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] > [-o owner] file1 ... fileN directory > install -d [-v] [-g group] [-m mode] [-o owner] directory ... > *** Error code 64 > > Stop in /usr/src/gnu/usr.bin/binutils/ld. > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/binutils. > > > Any idea what to do? > Thanks > Skalla > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG6Rn0xJBWvpalMpkRAjo6AJ9/oX440ol9GO2mHU/RL0KndBCdJwCffnXG EUdVps42PZnYYgqbQa8OElc= =cTD8 -----END PGP SIGNATURE----- From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 15:06:00 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FE2116A420 for ; Thu, 13 Sep 2007 15:06:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 3C38F13C46B for ; Thu, 13 Sep 2007 15:06:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l8DF48Nh022248; Thu, 13 Sep 2007 09:04:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Sep 2007 09:04:20 -0600 (MDT) Message-Id: <20070913.090420.-1749706828.imp@bsdimp.com> To: skalla.raabjorn@gmx.de From: "M. Warner Losh" In-Reply-To: <20070913122757.7bbf8433@sol.hackerzberg.local> References: <20070913122757.7bbf8433@sol.hackerzberg.local> X-Mailer: Mew version 5.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, 13 Sep 2007 09:04:08 -0600 (MDT) Cc: freebsd-arm@freebsd.org Subject: Re: Error on installing cross binutils 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, 13 Sep 2007 15:06:00 -0000 In message: <20070913122757.7bbf8433@sol.hackerzberg.local> Skalla Raabjorn writes: : Hi all, : : I'm currently trying to follow this howto: : http://people.freebsd.org/~cognet/freebsd_arm.txt : : on a fresh -current as of yesterday. : : cc works fine, so does building binutils, however on : # make TARGET_ARCH=arm TOOLS_PREFIX=/usr/cross DESTDIR=/usr/cross : install : : I get the following: : install -o root -g wheel -m 444 ldscripts/armelf_fbsd.x : ldscripts/armelf_fbsd.xbn ldscripts/armelf_fbsd.xn : ldscripts/armelf_fbsd.xr ldscripts/armelf_fbsd.xs : ldscripts/armelf_fbsd.xu ldscripts/armelf_fbsd.xc : ldscripts/armelf_fbsd.xsc ldscripts/armelf_fbsd.xd : ldscripts/armelf_fbsd.xdc /usr/cross/usr/libdata/ldscripts install: : wrong number or types of arguments usage: install [-bCcpSsv] [-B : suffix] [-f flags] [-g group] [-m mode] : [-o owner] file1 file2 : install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] : [-o owner] file1 ... fileN directory : install -d [-v] [-g group] [-m mode] [-o owner] directory ... : *** Error code 64 : : Stop in /usr/src/gnu/usr.bin/binutils/ld. : *** Error code 1 : : Stop in /usr/src/gnu/usr.bin/binutils. : : : Any idea what to do? I always define both TARGET and TARGET_ARCH. 6.x does TARGET_ARCH, which is insufficient in many cases, while 7.0 does TARGET. I define both to be sure. Warner From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 19:21:06 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD55016A417 for ; Thu, 13 Sep 2007 19:21:06 +0000 (UTC) (envelope-from skalla.raabjorn@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 0FA7F13C480 for ; Thu, 13 Sep 2007 19:21:05 +0000 (UTC) (envelope-from skalla.raabjorn@gmx.de) Received: (qmail invoked by alias); 13 Sep 2007 19:21:04 -0000 Received: from f049170038.adsl.alicedsl.de (EHLO sol.hackerzberg.local) [78.49.170.38] by mail.gmx.net (mp017) with SMTP; 13 Sep 2007 21:21:04 +0200 X-Authenticated: #8038066 X-Provags-ID: V01U2FsdGVkX19GZYBF/8lGdSAWRM1HwM/81WQS2dzOQKPRaeh1+i 3C6ClgLMLaj2ua Date: Thu, 13 Sep 2007 21:21:10 +0200 From: Skalla Raabjorn To: freebsd-arm@freebsd.org Message-ID: <20070913212110.78b8a654@sol.hackerzberg.local> In-Reply-To: <46E919F4.7050008@bulinfo.net> References: <20070913122757.7bbf8433@sol.hackerzberg.local> <46E919F4.7050008@bulinfo.net> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: Error on installing cross binutils 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, 13 Sep 2007 19:21:06 -0000 On Thu, 13 Sep 2007 14:07:32 +0300 Krassimir Slavchev wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Skalla Raabjorn wrote: > > Hi all, > > > > I'm currently trying to follow this howto: > > http://people.freebsd.org/~cognet/freebsd_arm.txt > > > > This seems to be old. Just set TARGET=arm and TARGET_ARCH=arm in > /etc/make/conf and then 'make buildworld' ... Ok, this did work. But how do I build a cross-compiler or better how do I compile foreign code (think u-boot) on i386 for arm? Thanks Skalla From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 19:29:53 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62A0816A41B for ; Thu, 13 Sep 2007 19:29:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A4ED313C45D for ; Thu, 13 Sep 2007 19:29:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l8DJScAB026200; Thu, 13 Sep 2007 13:28:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Sep 2007 13:28:38 -0600 (MDT) Message-Id: <20070913.132838.39164264.imp@bsdimp.com> To: skalla.raabjorn@gmx.de From: Warner Losh In-Reply-To: <20070913212110.78b8a654@sol.hackerzberg.local> References: <20070913122757.7bbf8433@sol.hackerzberg.local> <46E919F4.7050008@bulinfo.net> <20070913212110.78b8a654@sol.hackerzberg.local> 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, 13 Sep 2007 13:28:39 -0600 (MDT) Cc: freebsd-arm@freebsd.org Subject: Re: Error on installing cross binutils 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, 13 Sep 2007 19:29:53 -0000 From: Skalla Raabjorn Subject: Re: Error on installing cross binutils Date: Thu, 13 Sep 2007 21:21:10 +0200 > On Thu, 13 Sep 2007 14:07:32 +0300 > Krassimir Slavchev wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Skalla Raabjorn wrote: > > > Hi all, > > > > > > I'm currently trying to follow this howto: > > > http://people.freebsd.org/~cognet/freebsd_arm.txt > > > > > > > This seems to be old. Just set TARGET=arm and TARGET_ARCH=arm in > > /etc/make/conf and then 'make buildworld' ... > > Ok, this did work. But how do I build a cross-compiler or better how do > I compile foreign code (think u-boot) on i386 for arm? I have some patches that install everything into /usr/arm-freebsd that's needed for most configure scripts to do the right thing. This would be the best solution. However, since I don't have those hacks packaged up, the next best thing is to cd to the src directory and do make buildenv. This gives you a build environment that has the cross compilers in place. Don't know if it would work for something as complex as uboot. Interested in testing some patches if I run some diffs? Warner From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 19:44:12 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8FC316A420 for ; Thu, 13 Sep 2007 19:44:12 +0000 (UTC) (envelope-from skalla.raabjorn@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 329BA13C46E for ; Thu, 13 Sep 2007 19:44:11 +0000 (UTC) (envelope-from skalla.raabjorn@gmx.de) Received: (qmail invoked by alias); 13 Sep 2007 19:44:11 -0000 Received: from f049170038.adsl.alicedsl.de (EHLO sol.hackerzberg.local) [78.49.170.38] by mail.gmx.net (mp051) with SMTP; 13 Sep 2007 21:44:11 +0200 X-Authenticated: #8038066 X-Provags-ID: V01U2FsdGVkX1+EUjwcpjKEnmL2TSlKt/2I85Gh+qozD3kavFGyEG LiZ2hPLiOxjdOv Date: Thu, 13 Sep 2007 21:44:17 +0200 From: Skalla Raabjorn To: Warner Losh Message-ID: <20070913214417.258924f6@sol.hackerzberg.local> In-Reply-To: <20070913.132838.39164264.imp@bsdimp.com> References: <20070913122757.7bbf8433@sol.hackerzberg.local> <46E919F4.7050008@bulinfo.net> <20070913212110.78b8a654@sol.hackerzberg.local> <20070913.132838.39164264.imp@bsdimp.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-arm@freebsd.org Subject: Re: Error on installing cross binutils 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, 13 Sep 2007 19:44:12 -0000 On Thu, 13 Sep 2007 13:28:38 -0600 (MDT) Warner Losh wrote: > From: Skalla Raabjorn > Subject: Re: Error on installing cross binutils > Date: Thu, 13 Sep 2007 21:21:10 +0200 > > > On Thu, 13 Sep 2007 14:07:32 +0300 > > Krassimir Slavchev wrote: > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > Skalla Raabjorn wrote: > > > > Hi all, > > > > > > > > I'm currently trying to follow this howto: > > > > http://people.freebsd.org/~cognet/freebsd_arm.txt > > > > > > > > > > This seems to be old. Just set TARGET=arm and TARGET_ARCH=arm in > > > /etc/make/conf and then 'make buildworld' ... > > > > Ok, this did work. But how do I build a cross-compiler or better how do > > I compile foreign code (think u-boot) on i386 for arm? > > I have some patches that install everything into /usr/arm-freebsd > that's needed for most configure scripts to do the right thing. This > would be the best solution. > > However, since I don't have those hacks packaged up, the next best > thing is to cd to the src directory and do make buildenv. This gives > you a build environment that has the cross compilers in place. Don't > know if it would work for something as complex as uboot. I'll try it, but can take a while (off to EuroBSDCon in a few hours). > > Interested in testing some patches if I run some diffs? Sure :) From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 21:26:10 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B99516A41A for ; Thu, 13 Sep 2007 21:26:10 +0000 (UTC) (envelope-from hcrilly@onthenet.com.au) Received: from vito.onthenet.com.au (vito.OntheNet.com.au [203.22.124.72]) by mx1.freebsd.org (Postfix) with ESMTP id 0980013C45D for ; Thu, 13 Sep 2007 21:26:09 +0000 (UTC) (envelope-from hcrilly@onthenet.com.au) Received: from [192.168.0.2] (CPE-203-144-11-232.dsl.OntheNet.net [203.144.11.232]) by vito.onthenet.com.au (Postfix) with ESMTP id 249BABAF8E8; Fri, 14 Sep 2007 07:26:08 +1000 (EST) Message-ID: <46E9AAF4.2030607@onthenet.com.au> Date: Fri, 14 Sep 2007 07:26:12 +1000 From: Patrick Crilly User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Skalla Raabjorn References: <20070913122757.7bbf8433@sol.hackerzberg.local> In-Reply-To: <20070913122757.7bbf8433@sol.hackerzberg.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: Error on installing cross binutils 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, 13 Sep 2007 21:26:10 -0000 Skalla Raabjorn wrote: > Hi all, > > I'm currently trying to follow this howto: > http://people.freebsd.org/~cognet/freebsd_arm.txt > > on a fresh -current as of yesterday. > > cc works fine, so does building binutils, however on > # make TARGET_ARCH=arm TOOLS_PREFIX=/usr/cross DESTDIR=/usr/cross > install > > I get the following: > install -o root -g wheel -m 444 ldscripts/armelf_fbsd.x > ldscripts/armelf_fbsd.xbn ldscripts/armelf_fbsd.xn > ldscripts/armelf_fbsd.xr ldscripts/armelf_fbsd.xs > ldscripts/armelf_fbsd.xu ldscripts/armelf_fbsd.xc > ldscripts/armelf_fbsd.xsc ldscripts/armelf_fbsd.xd > ldscripts/armelf_fbsd.xdc /usr/cross/usr/libdata/ldscripts install: > wrong number or types of arguments usage: install [-bCcpSsv] [-B > suffix] [-f flags] [-g group] [-m mode] > [-o owner] file1 file2 > install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] > [-o owner] file1 ... fileN directory > install -d [-v] [-g group] [-m mode] [-o owner] directory ... > *** Error code 64 > > Stop in /usr/src/gnu/usr.bin/binutils/ld. > *** Error code 1 > Make sure the directory /usr/cross/usr/libdata/ldscripts exists.