From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 02:50:33 2009 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 1D0EB106566B for ; Sun, 26 Apr 2009 02:50:33 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id CEE548FC20 for ; Sun, 26 Apr 2009 02:50:32 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1168124yxb.13 for ; Sat, 25 Apr 2009 19:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=h8H0x8OwwXFlKa3nOKQBbtJDBynEJ/3dC9iQ4wXmCz8=; b=fN9ss8qOLotIe69UcOV9sGmWjzekBUeGLaRjKn0/ICrwe+45XI9FZPDIazuS8xde+L 3ux9KYBL8YUtWQr612td71avQOUykkZt5/cYgTfEYo0kGcuAQ2IGFBRDiAibknrH7nsv gIgBEdVuuhzGnaFJs832k43nyqjVpFPLj+kt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Fbw4klb4U3aYXoCI3DUKXAfT1MzXz3VdU9QqcN5/m+Jl3XgwTmv+YrodWuS8hm7qes qZXzla7pIzyTQ/nz+QunjsXOxVCu58Gt2dMNTb0LaQSS1m9vVQbQ8/5a4PyyfxPawEve jgLMb+wrGaYRk4WUQPyyXE8p6AZrWCdSNV+sw= MIME-Version: 1.0 Received: by 10.151.69.5 with SMTP id w5mr7066364ybk.16.1240712799970; Sat, 25 Apr 2009 19:26:39 -0700 (PDT) Date: Sat, 25 Apr 2009 22:26:39 -0400 Message-ID: From: Luazi To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: NSLU2 cannot activate npe 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, 26 Apr 2009 02:50:33 -0000 Hi, I got my sources from CVS today and successfully built a kernel for my slug but the npe is failing to initialize. I have included part of the boot messages below. Any ideas anyone??? Thanks in advance. Luazi ixp0: on motherboard ixp0: 37603 pcib0: on ixp0 pci0: on pcib0 ohci0: irq 28 at device 1.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: irq 27 at device 1.1 on pci0 ohci1: [ITHREAD] usbus1: on ohci1 ehci0: irq 26 at device 1.2 on pci0 ehci0: [ITHREAD] usbus2: EHCI version 1.0 usbus2: on ehci0 ixpclk0: on ixp0 ixpiic0: on ixp0 iicbb0: on ixpiic0 iicbus0: on iicbb0 master-only iic0: on iicbus0 ixpwdog0: on ixp0 uart0: on ixp0 uart0: [FILTER] uart0: console (115200,n,8,1) uart1: on ixp0 uart1: [FILTER] ixpqmgr0: on ixp0 ixpqmgr0: [ITHREAD] ixpqmgr0: [ITHREAD] npe0: on ixp0 npe0: [ITHREAD] npe0: MAC at 0xc800c000 npe0: MII at 0xc800c000 npe0: load fw image IXP425.NPE-B Func 0x2 Rev 2.1 npe0: cannot find PHY 1. npe0: cannot activate npe device_attach: npe0 attach returned 6 npe1: on ixp0 npe1: [ITHREAD] npe1: MAC at 0xc8009000 npe1: MII at 0xc800c000 npe1: load fw image IXP425.NPE-C Func 0x5 Rev 2.1 npe1: cannot find PHY 0. npe1: cannot activate npe device_attach: npe1 attach returned 6 ixpclk0: [FILTER] Timecounter "IXP4XX Timer" frequency 66666600 Hz quality 1000 Timecounters tick every 10.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 bootpc_init: wired to interface 'npe0' panic: bootpc_init: Could not find interface specified by BOOTP_WIRED_TO: npe0 KDB: enter: panic [thread pid 0 tid 100000 ] Stopped at kdb_enter+0x48: ldrb r15, [r15, r15, ror r15]! db> From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 03:12:03 2009 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 8DFB91065676 for ; Sun, 26 Apr 2009 03:12:03 +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 3823B8FC13 for ; Sun, 26 Apr 2009 03:12:03 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n3Q394a0094482; Sat, 25 Apr 2009 21:09:04 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 25 Apr 2009 21:10:04 -0600 (MDT) Message-Id: <20090425.211004.2130799697.imp@bsdimp.com> To: embedpro@gmail.com From: "M. Warner Losh" In-Reply-To: References: 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 Cc: freebsd-arm@freebsd.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 03:12:03 -0000 which kernel did you use? Warner From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 04:47:20 2009 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 432FC1065676 for ; Sun, 26 Apr 2009 04:47:20 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: from mail-gx0-f170.google.com (mail-gx0-f170.google.com [209.85.217.170]) by mx1.freebsd.org (Postfix) with ESMTP id F1F418FC18 for ; Sun, 26 Apr 2009 04:47:19 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: by gxk18 with SMTP id 18so1189135gxk.19 for ; Sat, 25 Apr 2009 21:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=k1+PyynpcN7UNxIHAjcVlKpF7P5p32iTRrVMXCvoqFY=; b=lF/GobqGfkNInPM2yKpqOaUKgceOOcYtp/lYvBvUdP6Zn98DTM9UkMplnfNml1oucz zW6lHRRZZHTLMIj03Wz6V4Opu7xXm9CDj7FWAs0HkKqC8duOQCfPgMhHmwqzaOy5kKA/ EVf+ovzJdxoi/LJ/pz/U8SkMbutPtfXJTvj7w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PIaasAov+j4uIDge8igVJoVcmUOmD9RCDUW86Rcx2yBh3x31vlazDVIwRJrsm1J/WA LC40b4de2CSUWKDIMVE6S7EuUJavliybZP8oVLSOx6P9mvfJhbr5H4dO4j9F6EPO94tJ aZdDzIWj9JodcQs5A9lFbnI9gjNp3K3nggksk= MIME-Version: 1.0 Received: by 10.151.73.3 with SMTP id a3mr5991763ybl.60.1240721239423; Sat, 25 Apr 2009 21:47:19 -0700 (PDT) In-Reply-To: <20090425.211004.2130799697.imp@bsdimp.com> References: <20090425.211004.2130799697.imp@bsdimp.com> Date: Sun, 26 Apr 2009 00:47:19 -0400 Message-ID: From: Luazi To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 04:47:20 -0000 On Sat, Apr 25, 2009 at 11:10 PM, M. Warner Losh wrote: > which kernel did you use? > > Warner > Thanks for the quick reply. This is what I did. make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld mkdir -p /data/freebsd/roots/slug setenv ROOT /data/freebsd/roots/slug make TARGET_ARCH=arm KERNCONF=NSLU DESTDIR=$ROOT installkernel cp /data/freebsd/roots/slug/boot/kernel/kernel /tftpboot/ Then on the redboot prompt. load -b 0x200000 kernel g The rest is in my original post. Luazi From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 08:24:37 2009 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 7DBC01065670 for ; Sun, 26 Apr 2009 08:24:37 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 2F0588FC18 for ; Sun, 26 Apr 2009 08:24:37 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id F359A8FC4F for ; Sun, 26 Apr 2009 12:24:32 +0400 (MSD) Received: from orion.SpringDaemons.com (unknown [77.232.3.143]) by mx0.deglitch.com (Postfix) with ESMTPA id 3C9908FC18; Sun, 26 Apr 2009 12:24:06 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id C397A39832; Sun, 26 Apr 2009 12:24:11 +0400 (MSD) Date: Sun, 26 Apr 2009 12:24:11 +0400 From: Stanislav Sedov To: Luazi Message-Id: <20090426122411.538c861d.stas@FreeBSD.org> In-Reply-To: References: <20090425.211004.2130799697.imp@bsdimp.com> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Sun Apr 26 12:24:32 2009 X-DSPAM-Confidence: 1.0000 X-DSPAM-Improbability: 1 in 98689409 chance of being spam X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 49f41a40967001300837906 Cc: freebsd-arm@freebsd.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 08:24:37 -0000 On Sun, 26 Apr 2009 00:47:19 -0400 Luazi mentioned: > On Sat, Apr 25, 2009 at 11:10 PM, M. Warner Losh wrote: > > which kernel did you use? > > > > Warner > > > Thanks for the quick reply. This is what I did. > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld > mkdir -p /data/freebsd/roots/slug > setenv ROOT /data/freebsd/roots/slug > make TARGET_ARCH=arm KERNCONF=NSLU DESTDIR=$ROOT installkernel > cp /data/freebsd/roots/slug/boot/kernel/kernel /tftpboot/ > > Then on the redboot prompt. > > load -b 0x200000 kernel > g > > The rest is in my original post. > Is that CURRENT or STABLE? -- Stanislav Sedov ST4096-RIPE !DSPAM:49f41a40967001300837906! From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 17:46:36 2009 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 047001065676; Sun, 26 Apr 2009 17:46:36 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id B3EF48FC18; Sun, 26 Apr 2009 17:46:35 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n3QHGqXR082909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Apr 2009 10:16:53 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49F49704.6060103@freebsd.org> Date: Sun, 26 Apr 2009 10:16:52 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Stanislav Sedov References: <20090425.211004.2130799697.imp@bsdimp.com> <20090426122411.538c861d.stas@FreeBSD.org> In-Reply-To: <20090426122411.538c861d.stas@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-arm@freebsd.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 17:46:36 -0000 Stanislav Sedov wrote: > On Sun, 26 Apr 2009 00:47:19 -0400 > Luazi mentioned: > > >> On Sat, Apr 25, 2009 at 11:10 PM, M. Warner Losh wrote: >> >>> which kernel did you use? >>> >>> Warner >>> >>> >> Thanks for the quick reply. This is what I did. >> >> make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld >> mkdir -p /data/freebsd/roots/slug >> setenv ROOT /data/freebsd/roots/slug >> make TARGET_ARCH=arm KERNCONF=NSLU DESTDIR=$ROOT installkernel >> cp /data/freebsd/roots/slug/boot/kernel/kernel /tftpboot/ >> >> Then on the redboot prompt. >> >> load -b 0x200000 kernel >> g >> >> The rest is in my original post. >> >> > > Is that CURRENT or STABLE? > > Must be HEAD as usb shows up on "usbus*". Verify the MAC/MII addresses and PHY assignments in the hints file. I don't know that anyone tested NLSU after changes I did to support the IXP435/Gateworks 2358. Another thing to check is the NPE firmware; I updated it as part of adding 2358 support and there may be some issue (unlikely but ya never know). I recall Warner was the last person to verify NSLU booted so perhaps he can try on his device w/ current HEAD. Sam From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 17:59:35 2009 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 32568106566B for ; Sun, 26 Apr 2009 17:59:35 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id CC5448FC15 for ; Sun, 26 Apr 2009 17:59:34 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: by gxk18 with SMTP id 18so1525337gxk.19 for ; Sun, 26 Apr 2009 10:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=aETmvcRiVp6k9esHt8GZkVL/sTvm+LZNuoktSv/1t48=; b=U3IHNiBEAnEYCUgN4RnBmO07ABFTvgV+85TubI0kz9abk6W6tFTXIdaGQcYSf90zVY 4PpyySwMFrsjPzwlUhfLFlF+7EJKUuDGRdVtAfBvo8sEHvkZuTEbCrSomuAjwNyaUCsR Ogj78MeYqGs5mnP8GYXnbBD8mtXy/TINW9Ljk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Pr1vyq/G4vixuHEFMZ8uUNaLOFEfq06UsHoj4wpi/GoQjF/VSGXh3giwsv76aaOGrY XGrkXzJAIviQvBOHph8QJrj0DjsUG5e+176IBh+qNGAwo2183aR1r8bDe4qlalt8+AMG F7QoNCStixl2k7Awtdwi8RQLvpOgCSUF7XFKg= MIME-Version: 1.0 Received: by 10.151.111.15 with SMTP id o15mr8439895ybm.71.1240768773961; Sun, 26 Apr 2009 10:59:33 -0700 (PDT) In-Reply-To: <20090426122411.538c861d.stas@FreeBSD.org> References: <20090425.211004.2130799697.imp@bsdimp.com> <20090426122411.538c861d.stas@FreeBSD.org> Date: Sun, 26 Apr 2009 13:59:33 -0400 Message-ID: From: Luazi To: Stanislav Sedov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 17:59:35 -0000 On Sun, Apr 26, 2009 at 4:24 AM, Stanislav Sedov wrote: > On Sun, 26 Apr 2009 00:47:19 -0400 > Luazi mentioned: > >> >> Then on the redboot prompt. >> >> load -b 0x200000 kernel >> g >> >> The rest is in my original post. >> > > Is that CURRENT or STABLE? > > -- > Stanislav Sedov It is CURRENT. From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 18:52:44 2009 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 6DF71106564A for ; Sun, 26 Apr 2009 18:52:44 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246]) by mx1.freebsd.org (Postfix) with ESMTP id 4DA558FC23 for ; Sun, 26 Apr 2009 18:52:43 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw6.york.ac.uk (mail-gw6.york.ac.uk [144.32.129.26]) by mail-gw1.york.ac.uk (8.13.6/8.13.6) with ESMTP id n3QILmv2005956; Sun, 26 Apr 2009 19:21:48 +0100 (BST) Received: from ury.york.ac.uk ([144.32.108.81]) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Ly8z6-000785-BM; Sun, 26 Apr 2009 19:21:48 +0100 Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.14.3/8.14.3) with ESMTP id n3QILm6D060077; Sun, 26 Apr 2009 19:21:48 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: from localhost (gavin@localhost) by ury.york.ac.uk (8.14.3/8.14.3/Submit) with ESMTP id n3QILlCK060074; Sun, 26 Apr 2009 19:21:48 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Sun, 26 Apr 2009 19:21:47 +0100 (BST) From: Gavin Atkinson X-X-Sender: gavin@ury.york.ac.uk To: Luazi In-Reply-To: Message-ID: <20090426192012.G34731@ury.york.ac.uk> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org Cc: freebsd-arm@FreeBSD.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 18:52:44 -0000 On Sat, 25 Apr 2009, Luazi wrote: > Hi, > > I got my sources from CVS today and successfully built a kernel for my > slug but the npe is failing to initialize. I have included part of the > boot messages below. Any ideas anyone??? Yes, the hints file is incorrect. Here's a fix (you'll have to apply it by hand though, I don't have time right now to give a real patch) --- src-head/sys/arm/conf/NSLU.hints 3 Aug 2008 07:10:25 -0000 1.1 +++ src-head/sys/arm/conf/NSLU.hints 4 Feb 2009 17:13:31 -0000 @@ -17,22 +17,23 @@ # NPE Hardware Queue Manager hint.ixpqmgr.0.at="ixp0" -# NPE wireless NIC's, requires ixpqmgr +# NPE wired NIC's, requires ixpqmgr hint.npe.0.at="ixp0" -hint.npe.0.mac="A" -hint.npe.0.mii="A" +hint.npe.0.mac="B" +hint.npe.0.mii="B" hint.npe.0.phy=1 # The second MAC isn't used on the NSLU, but it needs to be configured or # we timeout on dhcp packets hint.npe.1.at="ixp0" -hint.npe.1.mac="B" -hint.npe.1.mii="A" -hint.npe.1.phy=0 +#hint.npe.1.mac="B" +#hint.npe.1.mii="A" +#hint.npe.1.phy=0 Gavin From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 19:01:00 2009 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 3E303106564A for ; Sun, 26 Apr 2009 19:00:59 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw0.york.ac.uk (mail-gw0.york.ac.uk [144.32.128.245]) by mx1.freebsd.org (Postfix) with ESMTP id C86938FC08 for ; Sun, 26 Apr 2009 19:00:58 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw7.york.ac.uk (mail-gw7.york.ac.uk [144.32.129.30]) by mail-gw0.york.ac.uk (8.13.6/8.13.6) with ESMTP id n3QITwY8023320; Sun, 26 Apr 2009 19:29:58 +0100 (BST) Received: from ury.york.ac.uk ([144.32.108.81]) by mail-gw7.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Ly970-0003RZ-FG; Sun, 26 Apr 2009 19:29:58 +0100 Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.14.3/8.14.3) with ESMTP id n3QITwsY063846; Sun, 26 Apr 2009 19:29:58 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: from localhost (gavin@localhost) by ury.york.ac.uk (8.14.3/8.14.3/Submit) with ESMTP id n3QITwMP063838; Sun, 26 Apr 2009 19:29:58 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Sun, 26 Apr 2009 19:29:58 +0100 (BST) From: Gavin Atkinson X-X-Sender: gavin@ury.york.ac.uk To: Luazi In-Reply-To: <20090426192012.G34731@ury.york.ac.uk> Message-ID: <20090426192821.R63028@ury.york.ac.uk> References: <20090426192012.G34731@ury.york.ac.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org Cc: freebsd-arm@FreeBSD.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 19:01:00 -0000 On Sun, 26 Apr 2009, Gavin Atkinson wrote: > On Sat, 25 Apr 2009, Luazi wrote: >> I got my sources from CVS today and successfully built a kernel for my >> slug but the npe is failing to initialize. I have included part of the >> boot messages below. Any ideas anyone??? > > Yes, the hints file is incorrect. Here's a fix (you'll have to apply it by > hand though, I don't have time right now to give a real patch) Should have said: I've got drivers for the RTC, LEDs and buzzer if you want them now, or wait and I'll submit them for inclusion in the tree within the next week or two. Gavin From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 19:07:39 2009 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 195551065678 for ; Sun, 26 Apr 2009 19:07:39 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id C61A58FC18 for ; Sun, 26 Apr 2009 19:07:38 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: by gxk18 with SMTP id 18so1562458gxk.19 for ; Sun, 26 Apr 2009 12:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4kaoGDJvJLcqw5EdmUpWtLW9rXMSD/LArZRVZq0AvBg=; b=ppkebzh1LM3x0DqJ6fSAMUg9HwVVRecDiDdTIEGSBr+RSqHwac9B/WbTWow7wXiP1x TViGMLnls/0iMeEz0HGCKzetlwdcRZQY5nQrpVcg7meVOLlSVC2w1VYxedINmFibPHJe 9KcVZNDsxRh0AqswT4GZRrz46Ivmrm7YF3LZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Jh47QVp2QpAxsUEd9wABcB7k2ZBhcbwpGX+x9mvHcXrThUyGBXQPx/AAPmsLhxVzxG ePMs1ubdk36QjFCnUpAcbp6pHms+/4NhlFxv7r6lMZeVDImLjW7NPcA2BFyOIK+MzfW8 BZggNbynYL4+zGwV0FzWdXkzWKwTmpZI6eA/k= MIME-Version: 1.0 Received: by 10.151.75.11 with SMTP id c11mr7271903ybl.197.1240772857988; Sun, 26 Apr 2009 12:07:37 -0700 (PDT) In-Reply-To: <20090426192821.R63028@ury.york.ac.uk> References: <20090426192012.G34731@ury.york.ac.uk> <20090426192821.R63028@ury.york.ac.uk> Date: Sun, 26 Apr 2009 15:07:37 -0400 Message-ID: From: Luazi To: Gavin Atkinson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 19:07:39 -0000 On Sun, Apr 26, 2009 at 2:29 PM, Gavin Atkinson wrote: > On Sun, 26 Apr 2009, Gavin Atkinson wrote: >> >> On Sat, 25 Apr 2009, Luazi wrote: >>> >>> I got my sources from CVS today and successfully built a kernel for my >>> slug but the npe is failing to initialize. I have included part of the >>> boot messages below. Any ideas anyone??? >> >> Yes, the hints file is incorrect. =A0Here's a fix (you'll have to apply = it >> by hand though, I don't have time right now to give a real patch) > > Should have said: I've got drivers for the RTC, LEDs and buzzer if you wa= nt > them now, or wait and I'll submit them for inclusion in the tree within t= he > next week or two. > > Gavin > Thanks. Please send the files if you don't mind. Your work will save me a lot of time. Luazi From owner-freebsd-arm@FreeBSD.ORG Sun Apr 26 19:45:20 2009 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 425AC106568C; Sun, 26 Apr 2009 19:45:20 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id DBC748FC27; Sun, 26 Apr 2009 19:45:19 +0000 (UTC) (envelope-from embedpro@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1332043yxb.13 for ; Sun, 26 Apr 2009 12:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=MFrfanQemuS5T0OwuNw0dc8imGjdkhg4D/JUup/W8yA=; b=mt/n0jYReviT1xy68utpDX+hH+7Gr20GSmLTR56QqnBwQ9oTEEl0sgwDTbuKZo6rq+ 0HggB+srJplg3bmni+J6uULYVBtNtUh/KtcwqZHxMf+XIBqXE3KqixDOftSvOGZ4zQ2a AV8H2Fmbo430j3xgASO7kemcZewtyFbVxbfIo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BIvAq1FwOUfLTeoWF4QG43k1B9zN70SSrQUJGtXqd9sNkB/pKSCiL0PO+sh4xdxX0H ugCrbnciAXpcULpTdeOED6vpGXk9wuAflqp9YsAqzel64XwKBNl+LTwfTq5U8DkOghG2 jeoFFvABqng52yy10Svr+UlFHcBhPJcpHAJeo= MIME-Version: 1.0 Received: by 10.151.73.8 with SMTP id a8mr7307690ybl.108.1240775119313; Sun, 26 Apr 2009 12:45:19 -0700 (PDT) In-Reply-To: <20090426192012.G34731@ury.york.ac.uk> References: <20090426192012.G34731@ury.york.ac.uk> Date: Sun, 26 Apr 2009 15:45:19 -0400 Message-ID: From: Luazi To: Gavin Atkinson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org Subject: Re: NSLU2 cannot activate npe 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, 26 Apr 2009 19:45:20 -0000 On Sun, Apr 26, 2009 at 2:21 PM, Gavin Atkinson wrote: > On Sat, 25 Apr 2009, Luazi wrote: > >> Hi, >> >> I got my sources from CVS today and successfully built a kernel for my >> slug but the npe is failing to initialize. I have included part of the >> boot messages below. Any ideas anyone??? > > Yes, the hints file is incorrect. =A0Here's a fix (you'll have to apply i= t by > hand though, I don't have time right now to give a real patch) > It works now. Thanks. From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 11:31:06 2009 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 324A61065676; Tue, 28 Apr 2009 11:31:06 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246]) by mx1.freebsd.org (Postfix) with ESMTP id BBE4D8FC35; Tue, 28 Apr 2009 11:31:05 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw7.york.ac.uk (mail-gw7.york.ac.uk [144.32.129.30]) by mail-gw1.york.ac.uk (8.13.6/8.13.6) with ESMTP id n3SBV2LV008251; Tue, 28 Apr 2009 12:31:03 +0100 (BST) Received: from buffy-128.york.ac.uk ([144.32.128.160] helo=buffy.york.ac.uk) by mail-gw7.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1LylWg-00027h-Ug; Tue, 28 Apr 2009 12:31:02 +0100 Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.3/8.14.3) with ESMTP id n3SBV24c086794; Tue, 28 Apr 2009 12:31:02 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.3/8.14.3/Submit) id n3SBV2Yw086793; Tue, 28 Apr 2009 12:31:02 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin@FreeBSD.org using -f From: Gavin Atkinson To: Channa In-Reply-To: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 28 Apr 2009 12:31:02 +0100 Message-Id: <1240918262.85945.1.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org Cc: freebsd-arm@FreeBSD.org Subject: Re: strncmp issue 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, 28 Apr 2009 11:31:06 -0000 This probably belongs on the -arm list, which I'm CCing. On Tue, 2009-04-28 at 15:22 +0530, Channa wrote: > Hi, > > I am using the freebsd implementation of strncmp for ARM which is an > assembly implementation. > I have a small doubt, when i tested the strncmp by passing the third argument: > 'n' as -1 the return values is '0' instead it should '-1'. > When the third argument to strncmp is as below: > > ret = strncmp("a","b",-1) > > I think the assembly implementation in > src/lib/libc/arm/string/strncmp.S file needs > to be modified to take care of the above condition. > > In the current implementation > /* if ((len - 1) < 0) return 0 */ > subs r2, r2, #1 > movmi r0, #0 > RETc(mi) > > This should be changed to check as below > > /* if ((len ) < 0) return 0 */ > /* Assembly code here */ > > Could anyone help in solving the above issue.? > > Thanks & Regards, > Channagoud > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 11:46:18 2009 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 A9342106567E; Tue, 28 Apr 2009 11:46:18 +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 986B98FC13; Tue, 28 Apr 2009 11:46:17 +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.14.3/8.14.3) with ESMTP id n3SBtCkI098762; Tue, 28 Apr 2009 13:55:12 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.3/8.14.3/Submit) id n3SBtBVC098761; Tue, 28 Apr 2009 13:55:11 +0200 (CEST) (envelope-from mlfbsd) Date: Tue, 28 Apr 2009 13:55:10 +0200 From: Olivier Houchard To: Gavin Atkinson Message-ID: <20090428115510.GA98699@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1240918262.85945.1.camel@buffy.york.ac.uk> User-Agent: Mutt/1.4.1i Cc: Channa , freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 28 Apr 2009 11:46:21 -0000 > On Tue, 2009-04-28 at 15:22 +0530, Channa wrote: > > Hi, > > > > I am using the freebsd implementation of strncmp for ARM which is an > > assembly implementation. > > I have a small doubt, when i tested the strncmp by passing the third argument: > > 'n' as -1 the return values is '0' instead it should '-1'. > > When the third argument to strncmp is as below: > > > > ret = strncmp("a","b",-1) > > > > I think the assembly implementation in > > src/lib/libc/arm/string/strncmp.S file needs > > to be modified to take care of the above condition. > > > > In the current implementation > > /* if ((len - 1) < 0) return 0 */ > > subs r2, r2, #1 > > movmi r0, #0 > > RETc(mi) > > > > This should be changed to check as below > > > > /* if ((len ) < 0) return 0 */ > > /* Assembly code here */ > > > > Could anyone help in solving the above issue.? > > Hi, This shouldn't be an issue, as the second argument of strncmp is unsigned, -1 is not a valid value. Regards, Olivier From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 12:03:58 2009 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 76A23106591D; Tue, 28 Apr 2009 12:03:58 +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 912A88FC08; Tue, 28 Apr 2009 12:03:57 +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.14.3/8.14.3) with ESMTP id n3SCCuVp099083; Tue, 28 Apr 2009 14:12:56 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.3/8.14.3/Submit) id n3SCCu4O099082; Tue, 28 Apr 2009 14:12:56 +0200 (CEST) (envelope-from mlfbsd) Date: Tue, 28 Apr 2009 14:12:55 +0200 From: Olivier Houchard To: Channa Message-ID: <20090428121255.GA99020@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> <20090428115510.GA98699@ci0.org> <515c64960904280459p3c2ef8bdu3600157eb0c47bcc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <515c64960904280459p3c2ef8bdu3600157eb0c47bcc@mail.gmail.com> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org, Gavin Atkinson Subject: Re: strncmp issue 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, 28 Apr 2009 12:04:01 -0000 On Tue, Apr 28, 2009 at 05:29:28PM +0530, Channa wrote: > 2009/4/28 Olivier Houchard : > >> On Tue, 2009-04-28 at 15:22 +0530, Channa wrote: > >> > Hi, > >> > > >> > I am using the freebsd implementation of strncmp for ARM which is an > >> > assembly implementation. > >> > I have a small doubt, when i tested the strncmp by passing the third argument: > >> > 'n' as -1 the return values is ?'0' instead it should '-1'. > >> > When the third argument ?to strncmp is as below: > >> > > >> > ret = strncmp("a","b",-1) > >> > > >> > I think the assembly implementation in > >> > src/lib/libc/arm/string/strncmp.S file needs > >> > to be modified to take care of the above condition. > >> > > >> > In the current implementation > >> > /* if ((len - 1) < 0) return 0 */ > >> > ? ? ? ? subs ? ?r2, r2, #1 > >> > ? ? ? ? movmi ? r0, #0 > >> > ? ? ? ? RETc(mi) > >> > > >> > This should be changed to check as below > >> > > >> > /* if ((len ) < 0) return 0 */ > >> > /* Assembly code here */ > >> > > >> > Could anyone help in solving the above issue.? > >> > > > > > Hi, > > > > This shouldn't be an issue, as the second argument of strncmp is unsigned, > > -1 is not a valid value. > > > > Regards, > > > > Olivier > > > Hi, > Thanks for the reply. > True the third argument of strncmp is unsigned but the return value in > the below call to strncmp > > ret = strncmp("a","b",-1) > > is '0' but it should be -1 i suppose. > > Please let me know if anything is wrong. > True, sorry. I'll fix this later today, thanks a lot for reporting ! Regards, Olivier From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 12:32:12 2009 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 EFE6D106572E; Tue, 28 Apr 2009 12:32:12 +0000 (UTC) (envelope-from channa.kad@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 921EB8FC13; Tue, 28 Apr 2009 12:32:12 +0000 (UTC) (envelope-from channa.kad@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so322884ywe.13 for ; Tue, 28 Apr 2009 05:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cGCSTSLiPczXy2bRq55kLa8hYIcB7k3hPymV1y1HDU0=; b=a6KOw7yFBpIdjXo/kQsYtcJOpcZK/lWtOou9R6QrTzjIlaJrF+pFCE/DN555+vWe6I VpGjIlewq4pWlA8AVKt9pumh5Tzxkb2CyLvWfNKflSYr5SXFLx6Orr1pIdvb2eTSp8wF QFuqTx6uX6uCaCa+O0t3PznY+Dm0nkvJCn1Qw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KnFd92lA41YArEvZsZTwgCmFefggrSaswkk3pAX7dAPxwJFDCaVROM1DvtCm9wpnPt EXRBfYtPYgx3MK8ozIWcmIR3ap6Q7a8xwhATXlKIkvd18vS6Ty1JNtscdRgmgPzhcKJo x4ZSrKi29/n5nBNNFrDoni0RMCBFy6knz4N/E= MIME-Version: 1.0 Received: by 10.100.3.4 with SMTP id 4mr10155289anc.128.1240919968846; Tue, 28 Apr 2009 04:59:28 -0700 (PDT) In-Reply-To: <20090428115510.GA98699@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> <20090428115510.GA98699@ci0.org> Date: Tue, 28 Apr 2009 17:29:28 +0530 Message-ID: <515c64960904280459p3c2ef8bdu3600157eb0c47bcc@mail.gmail.com> From: Channa To: Olivier Houchard Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org, Gavin Atkinson Subject: Re: strncmp issue 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, 28 Apr 2009 12:32:13 -0000 2009/4/28 Olivier Houchard : >> On Tue, 2009-04-28 at 15:22 +0530, Channa wrote: >> > Hi, >> > >> > I am using the freebsd implementation of strncmp for ARM which is an >> > assembly implementation. >> > I have a small doubt, when i tested the strncmp by passing the third a= rgument: >> > 'n' as -1 the return values is =A0'0' instead it should '-1'. >> > When the third argument =A0to strncmp is as below: >> > >> > ret =3D strncmp("a","b",-1) >> > >> > I think the assembly implementation in >> > src/lib/libc/arm/string/strncmp.S file needs >> > to be modified to take care of the above condition. >> > >> > In the current implementation >> > /* if ((len - 1) < 0) return 0 */ >> > =A0 =A0 =A0 =A0 subs =A0 =A0r2, r2, #1 >> > =A0 =A0 =A0 =A0 movmi =A0 r0, #0 >> > =A0 =A0 =A0 =A0 RETc(mi) >> > >> > This should be changed to check as below >> > >> > /* if ((len ) < 0) return 0 */ >> > /* Assembly code here */ >> > >> > Could anyone help in solving the above issue.? >> > > > Hi, > > This shouldn't be an issue, as the second argument of strncmp is unsigned= , > -1 is not a valid value. > > Regards, > > Olivier > Hi, Thanks for the reply. True the third argument of strncmp is unsigned but the return value in the below call to strncmp ret =3D strncmp("a","b",-1) is '0' but it should be -1 i suppose. Please let me know if anything is wrong. Thanks & Regards, Channagoud From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 14:02:16 2009 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 978271065674; Tue, 28 Apr 2009 14:02:16 +0000 (UTC) (envelope-from channa.kad@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 3A8B88FC15; Tue, 28 Apr 2009 14:02:16 +0000 (UTC) (envelope-from channa.kad@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so352011ywe.13 for ; Tue, 28 Apr 2009 07:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UjrVtFHy+3aOvNfXgN/xMfgDn44mFfEbR+KNZtdTbSg=; b=iQkmxH7EhXB/JA0OL+k6dfIVuYg0C5SVN/G8v2KsbZU0acQTTOOJxC/qv7jnDf7Tmy rfRg9WONjzM83J1ooQopsCBRcMZe2qz25cXN73aZBHuvnlvQpdKT+ejElVCjVIL3YpW3 hNtVzAPDDdxyjUAqLcIkZqvqs98bjACmY3jzc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BO79ysnyUUOWEZOTPUux04c3opnwFvbEvsB+z0wx7f6ya/807t95bXFWUBXRp0pvgI F0wQl2iaEyr0t/XZVT8CyY4ZkqwfoS5zTgSJhNImetmoLTPzk6ibCSPmXDLszUhcvJen 1sUuAXD/XsEUNQ39yMV+iTWyrd38g/Q5Vfsj0= MIME-Version: 1.0 Received: by 10.100.163.15 with SMTP id l15mr5916143ane.22.1240927335326; Tue, 28 Apr 2009 07:02:15 -0700 (PDT) In-Reply-To: <20090428121255.GA99020@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> <20090428115510.GA98699@ci0.org> <515c64960904280459p3c2ef8bdu3600157eb0c47bcc@mail.gmail.com> <20090428121255.GA99020@ci0.org> Date: Tue, 28 Apr 2009 19:32:14 +0530 Message-ID: <515c64960904280702s5e29f916s5e03564adf96f9b0@mail.gmail.com> From: Channa To: Olivier Houchard Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, Gavin Atkinson Subject: Re: strncmp issue 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, 28 Apr 2009 14:02:16 -0000 Hi, Thank you very much for your response. I am looking forward for your fix. Thanks & Regards, Channa 2009/4/28 Olivier Houchard : > On Tue, Apr 28, 2009 at 05:29:28PM +0530, Channa wrote: >> 2009/4/28 Olivier Houchard : >> >> On Tue, 2009-04-28 at 15:22 +0530, Channa wrote: >> >> > Hi, >> >> > >> >> > I am using the freebsd implementation of strncmp for ARM which is an >> >> > assembly implementation. >> >> > I have a small doubt, when i tested the strncmp by passing the third argument: >> >> > 'n' as -1 the return values is ?'0' instead it should '-1'. >> >> > When the third argument ?to strncmp is as below: >> >> > >> >> > ret = strncmp("a","b",-1) >> >> > >> >> > I think the assembly implementation in >> >> > src/lib/libc/arm/string/strncmp.S file needs >> >> > to be modified to take care of the above condition. >> >> > >> >> > In the current implementation >> >> > /* if ((len - 1) < 0) return 0 */ >> >> > ? ? ? ? subs ? ?r2, r2, #1 >> >> > ? ? ? ? movmi ? r0, #0 >> >> > ? ? ? ? RETc(mi) >> >> > >> >> > This should be changed to check as below >> >> > >> >> > /* if ((len ) < 0) return 0 */ >> >> > /* Assembly code here */ >> >> > >> >> > Could anyone help in solving the above issue.? >> >> > >> > >> > Hi, >> > >> > This shouldn't be an issue, as the second argument of strncmp is unsigned, >> > -1 is not a valid value. >> > >> > Regards, >> > >> > Olivier >> > >> Hi, >> Thanks for the reply. >> True the third argument of strncmp is unsigned but the return value in >> the below call to strncmp >> >> ret = strncmp("a","b",-1) >> >> is '0' but it should be -1 i suppose. >> >> Please let me know if anything is wrong. >> > > True, sorry. > I'll fix this later today, thanks a lot for reporting ! > > Regards, > > Olivier > From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 14:37:10 2009 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 84FC41065670; Tue, 28 Apr 2009 14:37:10 +0000 (UTC) (envelope-from richard@inf.ed.ac.uk) Received: from nougat.ucs.ed.ac.uk (nougat.ucs.ed.ac.uk [129.215.13.205]) by mx1.freebsd.org (Postfix) with ESMTP id 1DB4C8FC12; Tue, 28 Apr 2009 14:37:09 +0000 (UTC) (envelope-from richard@inf.ed.ac.uk) Received: from nutty.inf.ed.ac.uk (nutty.inf.ed.ac.uk [129.215.33.33]) by nougat.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id n3SE0cZi010712; Tue, 28 Apr 2009 15:00:38 +0100 (BST) Received: from macpro.inf.ed.ac.uk (macpro.inf.ed.ac.uk [129.215.197.24]) by nutty.inf.ed.ac.uk (8.13.8/8.13.8) with ESMTP id n3SE0bwk025405; Tue, 28 Apr 2009 15:00:37 +0100 Received: by macpro.inf.ed.ac.uk (Postfix, from userid 26013) id 342BB6682CD; Tue, 28 Apr 2009 15:00:37 +0100 (BST) From: Richard Tobin To: Olivier Houchard , Gavin Atkinson In-Reply-To: Olivier Houchard's message of Tue, 28 Apr 2009 13:55:10 +0200 Organization: just say no X-Mailer: Ream 5.1.51-richard-mac Message-Id: <20090428140037.342BB6682CD@macpro.inf.ed.ac.uk> Date: Tue, 28 Apr 2009 15:00:37 +0100 (BST) X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus Content-Type: text/plain MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.60 on 129.215.13.205 Cc: Channa , freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 28 Apr 2009 14:37:10 -0000 > This shouldn't be an issue, as the second argument of strncmp is unsigned, (you mean third) > -1 is not a valid value. In the presence of a prototype, -1 will be converted to the maximum value of the unsigned type. So strncmp(x, y, -1) should be much the same as strcmp(x, y). -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 14:45:00 2009 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 0E753106566C; Tue, 28 Apr 2009 14:45: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 8FAE08FC08; Tue, 28 Apr 2009 14:44:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n3SEg7j2067382; Tue, 28 Apr 2009 08:42:07 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 28 Apr 2009 08:42:07 -0600 (MDT) Message-Id: <20090428.084207.-1597329356.imp@bsdimp.com> To: gavin@freebsd.org From: "M. Warner Losh" In-Reply-To: <1240918262.85945.1.camel@buffy.york.ac.uk> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> 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 Cc: channa.kad@gmail.com, freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 28 Apr 2009 14:45:00 -0000 In message: <1240918262.85945.1.camel@buffy.york.ac.uk> Gavin Atkinson writes: : : This probably belongs on the -arm list, which I'm CCing. : : On Tue, 2009-04-28 at 15:22 +0530, Channa wrote: : > Hi, : > : > I am using the freebsd implementation of strncmp for ARM which is an : > assembly implementation. : > I have a small doubt, when i tested the strncmp by passing the third argument: : > 'n' as -1 the return values is '0' instead it should '-1'. : > When the third argument to strncmp is as below: : > : > ret = strncmp("a","b",-1) This is the same as strncnp("a", "b", UMAXINT) because the len argument is "size_t" which is unsigned. : > I think the assembly implementation in : > src/lib/libc/arm/string/strncmp.S file needs : > to be modified to take care of the above condition. : > : > In the current implementation : > /* if ((len - 1) < 0) return 0 */ : > subs r2, r2, #1 : > movmi r0, #0 : > RETc(mi) : > : > This should be changed to check as below : > : > /* if ((len ) < 0) return 0 */ : > /* Assembly code here */ : > : > Could anyone help in solving the above issue.? This is a bug in your code not in strncmp. Warner : > Thanks & Regards, : > Channagoud : > _______________________________________________ : > freebsd-current@freebsd.org mailing list : > http://lists.freebsd.org/mailman/listinfo/freebsd-current : > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" : _______________________________________________ : 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" : : From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 15:02:30 2009 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 E13A1106567C; Tue, 28 Apr 2009 15:02:30 +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 EF3FA8FC13; Tue, 28 Apr 2009 15:02:29 +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.14.3/8.14.3) with ESMTP id n3SFBNVg001423; Tue, 28 Apr 2009 17:11:23 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.3/8.14.3/Submit) id n3SFBM5L001422; Tue, 28 Apr 2009 17:11:22 +0200 (CEST) (envelope-from mlfbsd) Date: Tue, 28 Apr 2009 17:11:21 +0200 From: Olivier Houchard To: "M. Warner Losh" Message-ID: <20090428151121.GA1389@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> <20090428.084207.-1597329356.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090428.084207.-1597329356.imp@bsdimp.com> User-Agent: Mutt/1.4.1i Cc: channa.kad@gmail.com, gavin@freebsd.org, freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 28 Apr 2009 15:02:31 -0000 On Tue, Apr 28, 2009 at 08:42:07AM -0600, M. Warner Losh wrote: > In message: <1240918262.85945.1.camel@buffy.york.ac.uk> > Gavin Atkinson writes: > : > : This probably belongs on the -arm list, which I'm CCing. > : > : On Tue, 2009-04-28 at 15:22 +0530, Channa wrote: > : > Hi, > : > > : > I am using the freebsd implementation of strncmp for ARM which is an > : > assembly implementation. > : > I have a small doubt, when i tested the strncmp by passing the third argument: > : > 'n' as -1 the return values is '0' instead it should '-1'. > : > When the third argument to strncmp is as below: > : > > : > ret = strncmp("a","b",-1) > > This is the same as strncnp("a", "b", UMAXINT) because the len > argument is "size_t" which is unsigned. > > : > I think the assembly implementation in > : > src/lib/libc/arm/string/strncmp.S file needs > : > to be modified to take care of the above condition. > : > > : > In the current implementation > : > /* if ((len - 1) < 0) return 0 */ > : > subs r2, r2, #1 > : > movmi r0, #0 > : > RETc(mi) > : > > : > This should be changed to check as below > : > > : > /* if ((len ) < 0) return 0 */ > : > /* Assembly code here */ > : > > : > Could anyone help in solving the above issue.? > > This is a bug in your code not in strncmp. > > Warner > > Still, strncmp("a", "b", UMAXINT) should not return 0, so if it does, it's a bug. Olivier From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 18:26:24 2009 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 583F9106566B for ; Tue, 28 Apr 2009 18:26:24 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout020.mac.com (asmtpout020.mac.com [17.148.16.95]) by mx1.freebsd.org (Postfix) with ESMTP id 44C068FC12 for ; Tue, 28 Apr 2009 18:26:24 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp020.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KIT009GRN2WB360@asmtp020.mac.com>; Tue, 28 Apr 2009 10:25:44 -0700 (PDT) Message-id: From: Chuck Swiger To: Channa In-reply-to: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> Date: Tue, 28 Apr 2009 10:25:43 -0700 References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-arm@FreeBSD.org, FreeBSD Current Subject: Re: strncmp issue 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, 28 Apr 2009 18:26:24 -0000 Hi, Channa-- On Apr 28, 2009, at 2:52 AM, Channa wrote: > I am using the freebsd implementation of strncmp for ARM which is an > assembly implementation. > I have a small doubt, when i tested the strncmp by passing the third > argument: > 'n' as -1 the return values is '0' instead it should '-1'. > When the third argument to strncmp is as below: > > ret = strncmp("a","b",-1) Thanks for the thought, but strncmp() is defined to take a size_t as the third argument, which is unsigned (ie, uint32_t or uint64_t). Presumably when you tell it to compare with length of -1, that will be converted to UINT_MAX or ULONG_MAX, and strncmp() will run until it finds a null somewhere in one the strings and then return the comparison result. (Or get a segfault, perhaps, if you run off the end into unallocated address space.) Regards, -- -Chuck From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 19:21:06 2009 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 C2FF910656FE for ; Tue, 28 Apr 2009 19:21:06 +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 03DF08FC28 for ; Tue, 28 Apr 2009 19:21:05 +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.14.3/8.14.3) with ESMTP id n3SJU5NU005519; Tue, 28 Apr 2009 21:30:05 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.3/8.14.3/Submit) id n3SJU5Hi005518; Tue, 28 Apr 2009 21:30:05 +0200 (CEST) (envelope-from mlfbsd) Date: Tue, 28 Apr 2009 21:30:05 +0200 From: Olivier Houchard To: Channa Message-ID: <20090428193004.GA5465@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> <20090428115510.GA98699@ci0.org> <515c64960904280459p3c2ef8bdu3600157eb0c47bcc@mail.gmail.com> <20090428121255.GA99020@ci0.org> <515c64960904280702s5e29f916s5e03564adf96f9b0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <515c64960904280702s5e29f916s5e03564adf96f9b0@mail.gmail.com> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 28 Apr 2009 19:21:07 -0000 On Tue, Apr 28, 2009 at 07:32:14PM +0530, Channa wrote: > Hi, > > Thank you very much for your response. > I am looking forward for your fix. > > Thanks & Regards, > Channa > Hi, I just committed a fix to -CURRENT, as rev 191633. It basically just checks if the length is 0, instead of len - 1 < 0. Thanks again, Olivier From owner-freebsd-arm@FreeBSD.ORG Wed Apr 29 06:16:25 2009 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 1644E106566B for ; Wed, 29 Apr 2009 06:16:25 +0000 (UTC) (envelope-from channa.kad@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id C0D9D8FC0C for ; Wed, 29 Apr 2009 06:16:24 +0000 (UTC) (envelope-from channa.kad@gmail.com) Received: by an-out-0708.google.com with SMTP id c3so614217ana.13 for ; Tue, 28 Apr 2009 23:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1gvTUc4u/ZPrRkzL6L7OxdJBJn+ArAPCClAISrS3PQk=; b=s4TlV2i3P8KS2Wql/8hcJD14zlSR/i430Jfi+EhR9Lf0BkDpKRE3EnZ4mI2gXEWe87 QICLlNCmk+EBbhDN2MIkhkOlXgFbaYv/Dws2C6bfGFGpRXxsGaipL/2szu455NFW0PZ+ yK2XSM/kHoIRNw93cS0uKAx5zNZmoalXEQ7IM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=r2hUE/sHPRKL+qa8VS5XaJHoG7JU9MWrXLUgKK5/iKseWRzJjMYMWS9BdTdpekA9qO krNLWFMYtbR97X1fMhvoliF27Z6XpOvfoldEjHrXzziDBpeoomTWyAm3VfIjKATDMgyL UXc2iMJs54GYd5sNGAAN3ttrJpaxsnTofZD2U= MIME-Version: 1.0 Received: by 10.100.189.8 with SMTP id m8mr11780454anf.90.1240985783954; Tue, 28 Apr 2009 23:16:23 -0700 (PDT) In-Reply-To: <20090428193004.GA5465@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> <20090428115510.GA98699@ci0.org> <515c64960904280459p3c2ef8bdu3600157eb0c47bcc@mail.gmail.com> <20090428121255.GA99020@ci0.org> <515c64960904280702s5e29f916s5e03564adf96f9b0@mail.gmail.com> <20090428193004.GA5465@ci0.org> Date: Wed, 29 Apr 2009 11:46:23 +0530 Message-ID: <515c64960904282316k5f3e80cdu1c04a8dc3ab25883@mail.gmail.com> From: Channa To: Olivier Houchard Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 29 Apr 2009 06:16:25 -0000 2009/4/29 Olivier Houchard : > On Tue, Apr 28, 2009 at 07:32:14PM +0530, Channa wrote: >> Hi, >> >> Thank you very much for your response. >> I am looking forward for your fix. >> >> Thanks & Regards, >> Channa >> > > Hi, > > I just committed a fix to -CURRENT, as rev 191633. > It basically just checks if the length is 0, instead of len - 1 < 0. > > Thanks again, > > Olivier > > > Hi Thank you very much. I used your fix and tested again. When i tested as below : TEST 1 : ret = strncmp("a", "L", -1); <----------------- ret is '0' TEST 2: ret = strncmp("1", "2", UINT_MAX); <------ ret is '-1' But since size_t is unsigned int call to strncmp with third argument as -1 should consider third argument as UINT_MAX in TEST 1, but its not happening so. Could you please help me to know what could be the problem. Thanks & Regards, Channa From owner-freebsd-arm@FreeBSD.ORG Wed Apr 29 14:20:02 2009 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 532531065670 for ; Wed, 29 Apr 2009 14:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2442C8FC30 for ; Wed, 29 Apr 2009 14:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3TEK2nQ019199 for ; Wed, 29 Apr 2009 14:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3TEK1n9019198; Wed, 29 Apr 2009 14:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 29 Apr 2009 14:20:01 GMT Resent-Message-Id: <200904291420.n3TEK1n9019198@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gavin Atkinson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5133B106564A for ; Wed, 29 Apr 2009 14:10:25 +0000 (UTC) (envelope-from ga9@buffy.york.ac.uk) Received: from mail-gw0.york.ac.uk (mail-gw0.york.ac.uk [144.32.128.245]) by mx1.freebsd.org (Postfix) with ESMTP id C25728FC08 for ; Wed, 29 Apr 2009 14:10:24 +0000 (UTC) (envelope-from ga9@buffy.york.ac.uk) Received: from mail-gw6.york.ac.uk (mail-gw6.york.ac.uk [144.32.129.26]) by mail-gw0.york.ac.uk (8.13.6/8.13.6) with ESMTP id n3TDd1Nk009166 for ; Wed, 29 Apr 2009 14:39:01 +0100 (BST) Received: from buffy-128.york.ac.uk ([144.32.128.160] helo=buffy.york.ac.uk) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1LzA04-0004k0-QK for FreeBSD-gnats-submit@freebsd.org; Wed, 29 Apr 2009 14:39:00 +0100 Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.3/8.14.3) with ESMTP id n3TDd0Ia095740 for ; Wed, 29 Apr 2009 14:39:00 +0100 (BST) (envelope-from ga9@buffy.york.ac.uk) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.3/8.14.3/Submit) id n3TDd0jw095739; Wed, 29 Apr 2009 14:39:00 +0100 (BST) (envelope-from ga9) Message-Id: <200904291339.n3TDd0jw095739@buffy.york.ac.uk> Date: Wed, 29 Apr 2009 14:39:00 +0100 (BST) From: Gavin Atkinson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: arm/134092: [patch] NSLU.hints contains wrong hints for on board npe(4) NIC X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gavin Atkinson List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 14:20:02 -0000 >Number: 134092 >Category: arm >Synopsis: [patch] NSLU.hints contains wrong hints for on board npe(4) NIC >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 29 14:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Gavin Atkinson >Release: FreeBSD 7.1-STABLE amd64 >Organization: >Environment: System: FreeBSD buffy.york.ac.uk 7.1-STABLE FreeBSD 7.1-STABLE #5: Fri Feb 13 11:25:58 GMT 2009 root@buffy.york.ac.uk:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The NSLU kernel will fail to find the associated PHYs. The attached patch fixes this for both me, and for the user in http://lists.freebsd.org/pipermail/freebsd-arm/2009-April/001649.html The patch also removes the PHY/MAC hints for npe1 - all that is required is the single "at" hint, and not the full config. While here, fix a comment. >How-To-Repeat: Presumably, just try booting on an NSLU2. >Fix: --- NSLU.hints.diff begins here --- Index: src-head/sys/arm/conf/NSLU.hints =================================================================== RCS file: /home/ncvs/src/sys/arm/conf/NSLU.hints,v retrieving revision 1.1 diff -u -r1.1 NSLU.hints --- src-head/sys/arm/conf/NSLU.hints 3 Aug 2008 07:10:25 -0000 1.1 +++ src-head/sys/arm/conf/NSLU.hints 27 Jan 2009 16:06:24 -0000 @@ -17,17 +17,17 @@ # NPE Hardware Queue Manager hint.ixpqmgr.0.at="ixp0" -# NPE wireless NIC's, requires ixpqmgr +# NPE wired NICx's, requires ixpqmgr hint.npe.0.at="ixp0" -hint.npe.0.mac="A" -hint.npe.0.mii="A" +hint.npe.0.mac="B" +hint.npe.0.mii="B" hint.npe.0.phy=1 # The second MAC isn't used on the NSLU, but it needs to be configured or # we timeout on dhcp packets hint.npe.1.at="ixp0" -hint.npe.1.mac="B" -hint.npe.1.mii="A" -hint.npe.1.phy=0 +#hint.npe.1.mac="B" +#hint.npe.1.mii="A" +#hint.npe.1.phy=0 #not yet # RTC --- NSLU.hints.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Wed Apr 29 22:03:18 2009 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 572FD1065706 for ; Wed, 29 Apr 2009 22:03:18 +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 700C48FC16 for ; Wed, 29 Apr 2009 22:03:17 +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.14.3/8.14.3) with ESMTP id n3TMCbAr028859; Thu, 30 Apr 2009 00:12:37 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.3/8.14.3/Submit) id n3TMCbAU028857; Thu, 30 Apr 2009 00:12:37 +0200 (CEST) (envelope-from mlfbsd) Date: Thu, 30 Apr 2009 00:12:36 +0200 From: Olivier Houchard To: Channa Message-ID: <20090429221236.GA28784@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> <20090428115510.GA98699@ci0.org> <515c64960904280459p3c2ef8bdu3600157eb0c47bcc@mail.gmail.com> <20090428121255.GA99020@ci0.org> <515c64960904280702s5e29f916s5e03564adf96f9b0@mail.gmail.com> <20090428193004.GA5465@ci0.org> <515c64960904282316k5f3e80cdu1c04a8dc3ab25883@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <515c64960904282316k5f3e80cdu1c04a8dc3ab25883@mail.gmail.com> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 29 Apr 2009 22:03:18 -0000 On Wed, Apr 29, 2009 at 11:46:23AM +0530, Channa wrote: > 2009/4/29 Olivier Houchard : > > On Tue, Apr 28, 2009 at 07:32:14PM +0530, Channa wrote: > >> Hi, > >> > >> Thank you very much for your response. > >> I am looking forward for your fix. > >> > >> Thanks & Regards, > >> Channa > >> > > > > Hi, > > > > I just committed a fix to -CURRENT, as rev 191633. > > It basically just checks if the length is 0, instead of len - 1 < 0. > > > > Thanks again, > > > > Olivier > > > > > > > > Hi > Thank you very much. I used your fix and tested again. > When i tested as below : > > TEST 1 : > ret = strncmp("a", "L", -1); <----------------- ret is '0' > I'm a bit confused here, when I test this I get 21, which is the intended result. Are you sure you weren't still using the old strncmp() ? Regards, Olivier From owner-freebsd-arm@FreeBSD.ORG Thu Apr 30 05:21:37 2009 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 25DEB106566C for ; Thu, 30 Apr 2009 05:21:37 +0000 (UTC) (envelope-from channa.kad@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id D00AA8FC18 for ; Thu, 30 Apr 2009 05:21:31 +0000 (UTC) (envelope-from channa.kad@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1015037ywe.13 for ; Wed, 29 Apr 2009 22:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Y+uW9CrfxJuZf43A2yMTlDiS0m02rKT5upCzi/s7W5Q=; b=EnlyTMjJuax758C+Yrgm3xhyCh2GOKeq5/bPb1dhCmPAKBprvUVR+B0zSgGY4dN5lU U5/5PwIjfFvrdB+Hc7uAsROn21V/A68YKEj95FelXpBny840CJKiaNBt4KCv2YKI0c5F QVgns1vBLvdlLVHPmcD7vdtzppzY6INnVBviA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=N13u9b8hrJ8vip9Oh7hiFUB0gvaqXQM4jRGhAOUmSBVR+Bv7/zJhFhgTR3eYLRbrf4 XoFg4cgg/Lt1Fi7x8vyE/WLT5kBBbGVC0ig5hiwH8Sdsrb369+l/cq0aubPXQ7j6QkUT WPN/hX2hpTGJwkz2n4VqkzRj5OTAaOuwa4Ypg= MIME-Version: 1.0 Received: by 10.100.231.16 with SMTP id d16mr2505477anh.18.1241068891024; Wed, 29 Apr 2009 22:21:31 -0700 (PDT) In-Reply-To: <20090429221236.GA28784@ci0.org> References: <515c64960904280252sc9fe2afy24e8db8ab13b13e4@mail.gmail.com> <1240918262.85945.1.camel@buffy.york.ac.uk> <20090428115510.GA98699@ci0.org> <515c64960904280459p3c2ef8bdu3600157eb0c47bcc@mail.gmail.com> <20090428121255.GA99020@ci0.org> <515c64960904280702s5e29f916s5e03564adf96f9b0@mail.gmail.com> <20090428193004.GA5465@ci0.org> <515c64960904282316k5f3e80cdu1c04a8dc3ab25883@mail.gmail.com> <20090429221236.GA28784@ci0.org> Date: Thu, 30 Apr 2009 10:51:30 +0530 Message-ID: <515c64960904292221v1e927ef2vb3ed2940f76d32cf@mail.gmail.com> From: Channa To: Olivier Houchard Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 30 Apr 2009 05:21:37 -0000 2009/4/30 Olivier Houchard : > On Wed, Apr 29, 2009 at 11:46:23AM +0530, Channa wrote: >> 2009/4/29 Olivier Houchard : >> > On Tue, Apr 28, 2009 at 07:32:14PM +0530, Channa wrote: >> >> Hi, >> >> >> >> Thank you very much for your response. >> >> I am looking forward for your fix. >> >> >> >> Thanks & Regards, >> >> Channa >> >> >> > >> > Hi, >> > >> > I just committed a fix to -CURRENT, as rev 191633. >> > It basically just checks if the length is 0, instead of len - 1 < 0. >> > >> > Thanks again, >> > >> > Olivier >> > >> > >> > >> >> Hi >> Thank you very much. I used your fix and tested again. >> When i tested as below : >> >> TEST 1 : >> =A0 ret =3D strncmp("a", "L", -1); =A0<----------------- ret is '0' >> > > I'm a bit confused here, when I test this I get 21, which is the intended > result. Are you sure you weren't still using the old strncmp() ? Hi, Yes i am using the latest version of strncmp.S in the CURRENT branch. Sorry there was a typo i tested strncmp as ret =3D strncmp("a","b",-1) <------ ret value is still '0' I am still getting the return value as zero, it should be -1. Thanks & Regards, Channa From owner-freebsd-arm@FreeBSD.ORG Thu Apr 30 06:11:50 2009 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 896CE1065690 for ; Thu, 30 Apr 2009 06:11:50 +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 4925D8FC08 for ; Thu, 30 Apr 2009 06:11:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n3U68jmV003662; Thu, 30 Apr 2009 00:08:45 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 30 Apr 2009 00:08:46 -0600 (MDT) Message-Id: <20090430.000846.1484329326.imp@bsdimp.com> To: channa.kad@gmail.com From: "M. Warner Losh" In-Reply-To: <515c64960904292221v1e927ef2vb3ed2940f76d32cf@mail.gmail.com> References: <515c64960904282316k5f3e80cdu1c04a8dc3ab25883@mail.gmail.com> <20090429221236.GA28784@ci0.org> <515c64960904292221v1e927ef2vb3ed2940f76d32cf@mail.gmail.com> X-Mailer: Mew version 5.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 Cc: freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 30 Apr 2009 06:11:50 -0000 In message: <515c64960904292221v1e927ef2vb3ed2940f76d32cf@mail.gmail.co= m> Channa writes: : 2009/4/30 Olivier Houchard : : > On Wed, Apr 29, 2009 at 11:46:23AM +0530, Channa wrote: : >> 2009/4/29 Olivier Houchard : : >> > On Tue, Apr 28, 2009 at 07:32:14PM +0530, Channa wrote: : >> >> Hi, : >> >> : >> >> Thank you very much for your response. : >> >> I am looking forward for your fix. : >> >> : >> >> Thanks & Regards, : >> >> Channa : >> >> : >> > : >> > Hi, : >> > : >> > I just committed a fix to -CURRENT, as rev 191633. : >> > It basically just checks if the length is 0, instead of len - 1 = < 0. : >> > : >> > Thanks again, : >> > : >> > Olivier : >> > : >> > : >> > : >> : >> Hi : >> Thank you very much. I used your fix and tested again. : >> When i tested as below : : >> : >> TEST 1 : : >> =A0 ret =3D strncmp("a", "L", -1); =A0<----------------- ret is '0= ' : >> : > : > I'm a bit confused here, when I test this I get 21, which is the in= tended : > result. Are you sure you weren't still using the old strncmp() ? : = : Hi, : Yes i am using the latest version of strncmp.S in the CURRENT branch.= : Sorry there was a typo i tested strncmp as : = : ret =3D strncmp("a","b",-1) <------ ret value is still '0' : = : I am still getting the return value as zero, it should be -1. Yes. We should get the following results: strncmp("a", "b", 0); 0 strncmp("a", "b", *); < 0 where * is any other number :) Warner From owner-freebsd-arm@FreeBSD.ORG Thu Apr 30 17:06:02 2009 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 69839106566C for ; Thu, 30 Apr 2009 17:06:02 +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 DA16A8FC15 for ; Thu, 30 Apr 2009 17:06:01 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.3/8.14.3) with ESMTP id n3UH5w3l057500; Thu, 30 Apr 2009 12:05:58 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1241111158; bh=c8SPUKGIjFDRIICzJcjJB1XIuYSdIX5CzANxmwmh1Es=; h=Date:From:Message-Id:To:Subject:Cc:In-Reply-To; b=C7I72v5nBZxi4iv5rBpMYrtZ1WDRSu6iZ6jOoOIlw2VNXWdrRUXSA5cBO7gpMBmRm NM0oSiQ8vzDH5iCb+3kbqTA4jjXlhJ09n59d9BBsD3UGa+CZeM2ZO0AZQLtZbYh8Ce 6eLs1jl8eIJCTM/eF3qw2B0F3VNkZ7aB23AAXPI8= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n3UH5wg2057498; Thu, 30 Apr 2009 12:05:58 -0500 (CDT) (envelope-from tinguely) Date: Thu, 30 Apr 2009 12:05:58 -0500 (CDT) From: Mark Tinguely Message-Id: <200904301705.n3UH5wg2057498@casselton.net> To: channa.kad@gmail.com, imp@bsdimp.com In-Reply-To: <20090430.000846.1484329326.imp@bsdimp.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.10 (casselton.net [127.0.0.1]); Thu, 30 Apr 2009 12:05:58 -0500 (CDT) Cc: freebsd-arm@freebsd.org Subject: Re: strncmp issue 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, 30 Apr 2009 17:06:02 -0000 > Yes. We should get the following results: > > strncmp("a", "b", 0); 0 > strncmp("a", "b", *); < 0 > > where * is any other number :) > > Warner ENTRY(strncmp) /* if (len == 0) return 0 */ cmp r2, #0 moveq r0, #0 RETeq /* ip == last src address to compare */ add ip, r0, r2 1: ldrb r2, [r0], #1 ldrb r3, [r1], #1 cmp ip, r0 - cmpcs r2, #1 + beq 2f + cmp r2, #1 cmpcs r2, r3 beq 1b +2: sub r0, r2, r3 RET also ip < r0 if r2 = (unsigned int) -1 using 32 bit math. so original loop will terminate and compare the first characters. For example strncmp("ab", "aa", -1) will result is 0. I sent Olivier a couple patches, both wrong. Again, sorry for all the noise. The above code, though, should work in all cases. strncmp("b", "a", 0) result is 0 strncmp("abcdef", "abcdef", n) result is 0 strncmp("abcde", "abcdef", n) 0 if 0 <= n < 6 neg if n < 0 or n > 5 strncmp("abcdef", "abcde", n) 0 if 0 <= n < 6 pos if n < 0 or n > 5 The "beq" will break out of the loop if we give a count <= the string length the first arguement. The next cmp looks for the NULL byte, and the last cmp checks the characters in the strings. --Mark. From owner-freebsd-arm@FreeBSD.ORG Fri May 1 04:11:09 2009 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 F359D106564A for ; Fri, 1 May 2009 04:11:08 +0000 (UTC) (envelope-from don@donhayford.com) Received: from rehobot.2ip.com (rehobot.2ip.com [75.125.216.154]) by mx1.freebsd.org (Postfix) with ESMTP id C045B8FC18 for ; Fri, 1 May 2009 04:11:08 +0000 (UTC) (envelope-from don@donhayford.com) Received: from d47-69-178-97.try.wideopenwest.com ([69.47.97.178]:47136 helo=[192.168.1.104]) by rehobot.2ip.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Lzi9g-0002Fb-JJ for freebsd-arm@freebsd.org; Thu, 30 Apr 2009 19:07:12 -0700 Message-ID: <49FA5952.20800@donhayford.com> Date: Thu, 30 Apr 2009 22:07:14 -0400 From: Donald T Hayford User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rehobot.2ip.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - donhayford.com Subject: Help with Marvel kernel for 88F5512 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, 01 May 2009 04:11:09 -0000 I built FreeBSD kernel and world for the Marvel chipsets using the instructions here: http://wiki.freebsd.org/FreeBSDMarvell When I tried booting a Kurobox Pro (Marvel 88F5512) I see the following: Marvell>> tftp 0x900000 sheeva/5XXXkernel.bin Using egiga0 device TFTP from server 192.168.11.1; our IP address is 192.168.11.150 Filename 'sheeva/5XXXkernel.bin'. Load address: 0x900000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ######################################### done Bytes transferred = 2870196 (2bcbb4 hex) Marvell>> go 0x900000 ## Starting application at 0x00900000 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #0: Sun Apr 26 16:12:12 EDT 2009 hayford@freeqemu:/usr/obj/arm/usr/src/sys/DB-88F5XXX WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. Preloaded elf kernel "elf kernel" at 0xc0d2f988. CPU: ARM926EJ-S rev 0 (ARM9EJ-S core) DC enabled IC enabled WB enabled EABT branch prediction enabled 32KB/32B 1-way Instruction cache 32KB/32B 1-way write-back-locking-C Data cache real memory = 134217728 (128 MB) Physical memory chunk(s): 00000000 - 0x8fffff, 9437184 bytes (2304 pages) 0xe21000 - 0x7d8efff, 116842496 bytes (28526 pages) avail memory = 125272064 (119 MB) SOC: (0x5182:0x02) Marvell 88F5182 rev A2, TClock 166MHz mem: random: null: nfslock: pseudo-device mbus0: on motherboard ic0: at mem 0xf1020200-0xf102023b on mbus0 timer0: at mem 0xf1020300-0xf102032f irq 0 on mbus0 timer0: [FILTER] gpio0: at mem 0xf1010100-0xf101011f irq 6,7,8,9 on mbus0 gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] uart0: <16550 or compatible> at mem 0xf1012000-0xf101201f irq 3 on mbus0 uart0: [FILTER] uart0: fast interrupt uart0: console (115740,n,8,1) uart1: <16550 or compatible> at mem 0xf1012100-0xf101211f irq 4 on mbus0 uart1: [FILTER] uart1: fast interrupt ehci0: at mem 0xf1050000-0xf1050fff irq 16,17 on mbus0 ehci0: [FILTER] ehci0: [MPSAFE] ehci0: [ITHREAD] ehci0: 5.24 GL USB-2 workaround enabled usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0: on ehci0 mge0: at mem 0xf1072000-0xf1073fff irq 18,19,20,21,22 on mbus0 mge0: bpf attached mge0: Ethernet address: 00:16:01:a4:e4:87 miibus0: on mge0 e1000phy0: PHY 8 on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto mge0: [MPSAFE] mge0: [ITHREAD] mge0: [MPSAFE] mge0: [ITHREAD] twsi0: at mem 0xf1011000-0xf101101f on mbus0 iicbus0: on twsi0 iicbus0: at addr 0 iic0: on iicbus0 pcib1: at mem 0xf1030000-0xf1031fff on mbus0 At this point, the device hangs until I reboot it. Any advice is greatly appreciated. Thanks, Don From owner-freebsd-arm@FreeBSD.ORG Fri May 1 04:17:30 2009 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 2D24E106566C for ; Fri, 1 May 2009 04:17:30 +0000 (UTC) (envelope-from don@donhayford.com) Received: from rehobot.2ip.com (rehobot.2ip.com [75.125.216.154]) by mx1.freebsd.org (Postfix) with ESMTP id D11BE8FC12 for ; Fri, 1 May 2009 04:17:29 +0000 (UTC) (envelope-from don@donhayford.com) Received: from d47-69-178-97.try.wideopenwest.com ([69.47.97.178]:34731 helo=[192.168.1.104]) by rehobot.2ip.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LziIT-0003hV-AP for freebsd-arm@freebsd.org; Thu, 30 Apr 2009 19:16:17 -0700 Message-ID: <49FA5B75.9090008@donhayford.com> Date: Thu, 30 Apr 2009 22:16:21 -0400 From: Donald T Hayford User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rehobot.2ip.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - donhayford.com Subject: Help with Marvel kernel for 88F6281 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, 01 May 2009 04:17:30 -0000 I built FreeBSD-8 (current) kernel and world for the Marvel chipsets using the instructions here: http://wiki.freebsd.org/FreeBSDMarvell When I tried booting a Sheevaplug (Marvel 88F6281), the system hangs as soon as I start it: Restarting system. __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: SHEEVA PLUG LE U-Boot 1.1.4 (Mar 19 2009 - 16:06:59) Marvell version: 3.4.16 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE80 Soc: 88F6281 A0 (DDR2) CPU running @ 1200Mhz L2 running @ 400Mhz SysClock = 400Mhz , TClock = 200Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 256MB DRAM CS[1] base 0x10000000 size 256MB DRAM Total size 512MB 16bit width Flash: 0 kB Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:512 MB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME], egiga1 Hit any key to stop autoboot: 0 Marvell>> Marvell>> dhcp BOOTP broadcast 1 DHCP client bound to address 192.168.1.246 Marvell>> tftpboot 0x900000 sheeva/6XXXkernel.bin Using egiga0 device TFTP from server 192.168.1.102; our IP address is 192.168.1.246 Filename 'sheeva/6XXXkernel.bin'. Load address: 0x900000 Loading: *################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ######################################## done Bytes transferred = 2863204 (2bb064 hex) Marvell>> g 0x900000 This command can be used only if enaMonExt is set! Marvell>> go 0x900000 ## Starting application at 0x00900000 ... Then nothing more... Any help or suggestions would be greatly appreciated. Thanks, Don From owner-freebsd-arm@FreeBSD.ORG Fri May 1 09:38:59 2009 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 BCE47106566B for ; Fri, 1 May 2009 09:38:59 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 9E8C88FC1B for ; Fri, 1 May 2009 09:38:59 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n419ciXZ028231; Fri, 1 May 2009 03:38:45 -0600 Received: from apn-77-115-20-112.dynamic.gprs.plus.pl (apn-77-115-20-112.dynamic.gprs.plus.pl [77.115.20.112]) by mail.semihalf.com (Postfix) with ESMTP id 279AB14307; Fri, 1 May 2009 11:38:40 +0200 (CEST) Message-Id: <1324A9FE-D45B-479E-9705-5FCFA2FAC9E0@semihalf.com> From: Rafal Jaworowski To: Donald T Hayford In-Reply-To: <49FA5952.20800@donhayford.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 1 May 2009 11:38:32 +0200 References: <49FA5952.20800@donhayford.com> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F5512 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, 01 May 2009 09:39:00 -0000 On 2009-05-01, at 04:07, Donald T Hayford wrote: > I built FreeBSD kernel and world for the Marvel chipsets using the > instructions here: > http://wiki.freebsd.org/FreeBSDMarvell > > When I tried booting a Kurobox Pro (Marvel 88F5512) I see the > following: > > Marvell>> tftp 0x900000 sheeva/5XXXkernel.bin > Using egiga0 device > TFTP from server 192.168.11.1; our IP address is 192.168.11.150 > Filename 'sheeva/5XXXkernel.bin'. > Load address: 0x900000 > Loading: > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ######################################### > done > Bytes transferred = 2870196 (2bcbb4 hex) > Marvell>> go 0x900000 > ## Starting application at 0x00900000 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2009 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.0-CURRENT #0: Sun Apr 26 16:12:12 EDT 2009 > hayford@freeqemu:/usr/obj/arm/usr/src/sys/DB-88F5XXX > WARNING: WITNESS option enabled, expect reduced performance. > WARNING: DIAGNOSTIC option enabled, expect reduced performance. > Preloaded elf kernel "elf kernel" at 0xc0d2f988. > CPU: ARM926EJ-S rev 0 (ARM9EJ-S core) > DC enabled IC enabled WB enabled EABT branch prediction enabled > 32KB/32B 1-way Instruction cache > 32KB/32B 1-way write-back-locking-C Data cache > real memory = 134217728 (128 MB) > Physical memory chunk(s): > 00000000 - 0x8fffff, 9437184 bytes (2304 pages) > 0xe21000 - 0x7d8efff, 116842496 bytes (28526 pages) > avail memory = 125272064 (119 MB) > SOC: (0x5182:0x02) Marvell 88F5182 rev A2, TClock 166MHz [...] > twsi0: at mem > 0xf1011000-0xf101101f on mbus0 > iicbus0: on twsi0 > iicbus0: at addr 0 > iic0: on iicbus0 > pcib1: at mem > 0xf1030000-0xf1031fff on mbus0 > > At this point, the device hangs until I reboot it. Could you please compile out PCI support to see whether this hang is somehow PCI-related? If it still hangs, please try to remove (comment out) an entry for UART1 in obio_devices[] (sys/arm/mv/orion/orion.c), recompile and try again. I've heard reports that second uart on some 88F51xx systems causes strange problems like this, but couldn't reproduce it. Rafal From owner-freebsd-arm@FreeBSD.ORG Fri May 1 09:50:31 2009 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 8845B106566C for ; Fri, 1 May 2009 09:50:31 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 6A4E98FC0A for ; Fri, 1 May 2009 09:50:31 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n419oGjq030868; Fri, 1 May 2009 03:50:17 -0600 Received: from apn-77-115-20-112.dynamic.gprs.plus.pl (apn-77-115-20-112.dynamic.gprs.plus.pl [77.115.20.112]) by mail.semihalf.com (Postfix) with ESMTP id 283EF14467; Fri, 1 May 2009 11:50:12 +0200 (CEST) Message-Id: From: Rafal Jaworowski To: Donald T Hayford In-Reply-To: <49FA5B75.9090008@donhayford.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 1 May 2009 11:50:06 +0200 References: <49FA5B75.9090008@donhayford.com> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F6281 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, 01 May 2009 09:50:31 -0000 On 2009-05-01, at 04:16, Donald T Hayford wrote: > I built FreeBSD-8 (current) kernel and world for the Marvel chipsets > using the instructions here: > http://wiki.freebsd.org/FreeBSDMarvell > > When I tried booting a Sheevaplug (Marvel 88F6281), the system hangs > as soon as I start it: > > Restarting system. > __ __ _ _ > | \/ | __ _ _ ____ _____| | | > | |\/| |/ _` | '__\ \ / / _ \ | | > | | | | (_| | | \ V / __/ | | > |_| |_|\__,_|_| \_/ \___|_|_| > _ _ ____ _ > | | | | | __ ) ___ ___ | |_ > | | | |___| _ \ / _ \ / _ \| __| > | |_| |___| |_) | (_) | (_) | |_ > \___/ |____/ \___/ \___/ \__| > ** MARVELL BOARD: SHEEVA PLUG LE > > U-Boot 1.1.4 (Mar 19 2009 - 16:06:59) Marvell version: 3.4.16 > > U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE80 > > Soc: 88F6281 A0 (DDR2) > CPU running @ 1200Mhz L2 running @ 400Mhz > SysClock = 400Mhz , TClock = 200Mhz > > DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 > DRAM CS[0] base 0x00000000 size 256MB > DRAM CS[1] base 0x10000000 size 256MB > DRAM Total size 512MB 16bit width > Flash: 0 kB > Addresses 8M - 0M are saved for the U-Boot usage. > Mem malloc Initialization (8M - 7M): Done > NAND:512 MB > > CPU : Marvell Feroceon (Rev 1) > > Streaming disabled > Write allocate disabled > > > USB 0: host mode > PEX 0: interface detected no Link. > Net: egiga0 [PRIME], egiga1 > Hit any key to stop autoboot: 0 > Marvell>> > Marvell>> dhcp > > BOOTP broadcast 1 > DHCP client bound to address 192.168.1.246 > Marvell>> tftpboot 0x900000 sheeva/6XXXkernel.bin > > Using egiga0 device > TFTP from server 192.168.1.102; our IP address is 192.168.1.246 > Filename 'sheeva/6XXXkernel.bin'. > Load address: 0x900000 > Loading: > *################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ######################################## > done > Bytes transferred = 2863204 (2bb064 hex) > Marvell>> g 0x900000 > > This command can be used only if enaMonExt is set! > Marvell>> go 0x900000 > > ## Starting application at 0x00900000 ... > > > Then nothing more... > > Any help or suggestions would be greatly appreciated. Please show the output of the 'map' command at U-Boot prompt. Rafal From owner-freebsd-arm@FreeBSD.ORG Fri May 1 11:31:37 2009 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 9F1FC1065679 for ; Fri, 1 May 2009 11:31:37 +0000 (UTC) (envelope-from don@donhayford.com) Received: from rehobot.2ip.com (rehobot.2ip.com [75.125.216.154]) by mx1.freebsd.org (Postfix) with ESMTP id 6C0778FC14 for ; Fri, 1 May 2009 11:31:37 +0000 (UTC) (envelope-from don@donhayford.com) Received: from d47-69-178-97.try.wideopenwest.com ([69.47.97.178]:35384 helo=[192.168.1.104]) by rehobot.2ip.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Lzqxr-0004fH-8h; Fri, 01 May 2009 04:31:35 -0700 Message-ID: <49FADD97.5040305@donhayford.com> Date: Fri, 01 May 2009 07:31:35 -0400 From: Donald T Hayford User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Rafal Jaworowski References: <49FA5B75.9090008@donhayford.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rehobot.2ip.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - donhayford.com Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F6281 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, 01 May 2009 11:31:38 -0000 Rafal Jaworowski wrote: > > On 2009-05-01, at 04:16, Donald T Hayford wrote: > >> I built FreeBSD-8 (current) kernel and world for the Marvel chipsets >> using the instructions here: >> http://wiki.freebsd.org/FreeBSDMarvell >> >> When I tried booting a Sheevaplug (Marvel 88F6281), the system hangs >> as soon as I start it: > > Please show the output of the 'map' command at U-Boot prompt. > Marvell>> map CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 256MB SDRAM_CS1 ....base 10000000, size 256MB SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base 90000000, size 256MB PEX0_IO ....base f0000000, size 16MB INTER_REGS ....base f1000000, size 1MB NFLASH_CS ....base f9000000, size 8MB SPI_CS ....base f8000000, size 16MB BOOT_ROM_CS ....base ff000000, size 16MB DEV_BOOTCS ....base ff000000, size 16MB CRYPT_ENG ....base fb000000, size 64KB AHB To MBUS Bridge: ------------------- win0 - PEX0_MEM base 90000000, ....size 256MB win1 - NFLASH_CS base f9000000, ....size 8MB win2 - PEX0_IO base f0000000, ....size 16MB win3 - SPI_CS base f8000000, ....size 16MB win4 - BOOT_ROM_CS base ff000000, ....size 16MB win5 - disable win6 - disable win7 - CRYPT_ENG base fb000000, ....size 64KB win8 - INTER_REGS base f1000000, ....size 1MB PEX0: ----- Pex Bars Internal Regs Bar0.... base f1000000, size 1MB DRAM Bar1............. base 00000000, size 512MB Devices Bar2.......... disable Pex Decode Windows win0 - SDRAM_CS0 base 00000000, ....size 256MB win1 - SDRAM_CS1 base 10000000, ....size 256MB win2 - disable win3 - disable win4 - disable win5 - disable default win - target unknown Expansion ROM - NFLASH_CS USB: ---- Device 0: win0 - SDRAM_CS0 base 00000000, size 256MB win1 - SDRAM_CS1 base 10000000, size 256MB win2 - PEX0_MEM base 90000000, size 256MB win3 - disable ETH 0: ---- win0 - SDRAM_CS0 base 00000000, ....size 256MB win1 - SDRAM_CS1 base 10000000, ....size 256MB win2 - NFLASH_CS base f9000000, ....size 8MB win3 - SPI_CS base f8000000, ....size 16MB win4 - BOOT_ROM_CS base ff000000, ....size 16MB win5 - disable ETH 1: ---- win0 - SDRAM_CS0 base 00000000, ....size 256MB win1 - SDRAM_CS1 base 10000000, ....size 256MB win2 - NFLASH_CS base f9000000, ....size 8MB win3 - SPI_CS base f8000000, ....size 16MB win4 - BOOT_ROM_CS base ff000000, ....size 16MB win5 - disable XOR 0: ---- win0 - NFLASH_CS base f9000000, size 8MB win1 - PEX0_MEM base 90000000, size 256MB win2 - SDRAM_CS0 base 0, size 256MB win3 - SDRAM_CS1 base 10000000, size 256MB win4 - SPI_CS base f8000000, size 16MB win5 - CRYPT_ENG base fb000000, size 64KB win6 - disable win7 - disable XOR 1: ---- win0 - NFLASH_CS base f9000000, size 8MB win1 - PEX0_MEM base 90000000, size 256MB win2 - SDRAM_CS0 base 0, size 256MB win3 - SDRAM_CS1 base 10000000, size 256MB win4 - SPI_CS base f8000000, size 16MB win5 - CRYPT_ENG base fb000000, size 64KB win6 - disable win7 - disable AUDIO: ---- win0 - SDRAM_CS0 base 00000000, ....size 256MB win1 - SDRAM_CS1 base 10000000, ....size 256MB Marvell>> Thanks, Don From owner-freebsd-arm@FreeBSD.ORG Fri May 1 11:35:57 2009 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 2E75E106567D for ; Fri, 1 May 2009 11:35:57 +0000 (UTC) (envelope-from don@donhayford.com) Received: from rehobot.2ip.com (rehobot.2ip.com [75.125.216.154]) by mx1.freebsd.org (Postfix) with ESMTP id EF8BC8FC0C for ; Fri, 1 May 2009 11:35:56 +0000 (UTC) (envelope-from don@donhayford.com) Received: from d47-69-178-97.try.wideopenwest.com ([69.47.97.178]:54125 helo=[192.168.1.104]) by rehobot.2ip.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Lzr22-000585-Os; Fri, 01 May 2009 04:35:54 -0700 Message-ID: <49FADE9B.1080806@donhayford.com> Date: Fri, 01 May 2009 07:35:55 -0400 From: Donald T Hayford User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Rafal Jaworowski References: <49FA5B75.9090008@donhayford.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rehobot.2ip.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - donhayford.com Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F6281 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, 01 May 2009 11:35:57 -0000 Rafal Jaworowski wrote: > > On 2009-05-01, at 04:16, Donald T Hayford wrote: > >> I built FreeBSD-8 (current) kernel and world for the Marvel chipsets >> using the instructions here: >> http://wiki.freebsd.org/FreeBSDMarvell >> >> When I tried booting a Sheevaplug (Marvel 88F6281), the system hangs >> as soon as I start it: > > Please show the output of the 'map' command at U-Boot prompt. > I apologize for the bad pasting job - I'll try again. Hopefully this one is easier to read. Marvell>> map CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 256MB SDRAM_CS1 ....base 10000000, size 256MB SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base 90000000, size 256MB PEX0_IO ....base f0000000, size 16MB INTER_REGS ....base f1000000, size 1MB NFLASH_CS ....base f9000000, size 8MB SPI_CS ....base f8000000, size 16MB BOOT_ROM_CS ....base ff000000, size 16MB DEV_BOOTCS ....base ff000000, size 16MB CRYPT_ENG ....base fb000000, size 64KB AHB To MBUS Bridge: ------------------- win0 - PEX0_MEM base 90000000, ....size 256MB win1 - NFLASH_CS base f9000000, ....size 8MB win2 - PEX0_IO base f0000000, ....size 16MB win3 - SPI_CS base f8000000, ....size 16MB win4 - BOOT_ROM_CS base ff000000, ....size 16MB win5 - disable win6 - disable win7 - CRYPT_ENG base fb000000, ....size 64KB win8 - INTER_REGS base f1000000, ....size 1MB PEX0: ----- Pex Bars Internal Regs Bar0.... base f1000000, size 1MB DRAM Bar1............. base 00000000, size 512MB Devices Bar2.......... disable Pex Decode Windows win0 - SDRAM_CS0 base 00000000, ....size 256MB win1 - SDRAM_CS1 base 10000000, ....size 256MB win2 - disable win3 - disable win4 - disable win5 - disable default win - target unknown Expansion ROM - NFLASH_CS USB: ---- Device 0: win0 - SDRAM_CS0 base 00000000, size 256MB win1 - SDRAM_CS1 base 10000000, size 256MB win2 - PEX0_MEM base 90000000, size 256MB win3 - disable ETH 0: ---- win0 - SDRAM_CS0 base 00000000, ....size 256MB win1 - SDRAM_CS1 base 10000000, ....size 256MB win2 - NFLASH_CS base f9000000, ....size 8MB win3 - SPI_CS base f8000000, ....size 16MB win4 - BOOT_ROM_CS base ff000000, ....size 16MB win5 - disable ETH 1: ---- win0 - SDRAM_CS0 base 00000000, ....size 256MB win1 - SDRAM_CS1 base 10000000, ....size 256MB win2 - NFLASH_CS base f9000000, ....size 8MB win3 - SPI_CS base f8000000, ....size 16MB win4 - BOOT_ROM_CS base ff000000, ....size 16MB win5 - disable XOR 0: ---- win0 - NFLASH_CS base f9000000, size 8MB win1 - PEX0_MEM base 90000000, size 256MB win2 - SDRAM_CS0 base 0, size 256MB win3 - SDRAM_CS1 base 10000000, size 256MB win4 - SPI_CS base f8000000, size 16MB win5 - CRYPT_ENG base fb000000, size 64KB win6 - disable win7 - disable XOR 1: ---- win0 - NFLASH_CS base f9000000, size 8MB win1 - PEX0_MEM base 90000000, size 256MB win2 - SDRAM_CS0 base 0, size 256MB win3 - SDRAM_CS1 base 10000000, size 256MB win4 - SPI_CS base f8000000, size 16MB win5 - CRYPT_ENG base fb000000, size 64KB win6 - disable win7 - disable AUDIO: ---- win0 - SDRAM_CS0 base 00000000, ....size 256MB win1 - SDRAM_CS1 base 10000000, ....size 256MB Marvell>> > Rafal > From owner-freebsd-arm@FreeBSD.ORG Fri May 1 12:07:25 2009 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 055021065670 for ; Fri, 1 May 2009 12:07:25 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id BFDDB8FC08 for ; Fri, 1 May 2009 12:07:24 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n41C7Aan020808; Fri, 1 May 2009 06:07:11 -0600 Received: from apn-77-115-20-112.dynamic.gprs.plus.pl (apn-77-115-20-112.dynamic.gprs.plus.pl [77.115.20.112]) by mail.semihalf.com (Postfix) with ESMTP id EC0FF14467; Fri, 1 May 2009 14:07:07 +0200 (CEST) Message-Id: <494D378B-B243-4D97-8554-AC3E74A30B8C@semihalf.com> From: Rafal Jaworowski To: Donald T Hayford In-Reply-To: <49FADE9B.1080806@donhayford.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 1 May 2009 14:07:00 +0200 References: <49FA5B75.9090008@donhayford.com> <49FADE9B.1080806@donhayford.com> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F6281 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, 01 May 2009 12:07:25 -0000 On 2009-05-01, at 13:35, Donald T Hayford wrote: > Rafal Jaworowski wrote: >> >> On 2009-05-01, at 04:16, Donald T Hayford wrote: >> >>> I built FreeBSD-8 (current) kernel and world for the Marvel >>> chipsets using the instructions here: >>> http://wiki.freebsd.org/FreeBSDMarvell >>> >>> When I tried booting a Sheevaplug (Marvel 88F6281), the system >>> hangs as soon as I start it: >> >> Please show the output of the 'map' command at U-Boot prompt. >> > I apologize for the bad pasting job - I'll try again. Hopefully > this one is easier to read. > > Marvell>> map CPU Interface > ------------- [...] I don't see any mismatches WRT internal SOC registers location etc. and need to look a bit closer to the SheevaPlug docs. Just a basic clarification: you are 100% sure the correct DB-88F6XXX kernel image is used, right? Rafal From owner-freebsd-arm@FreeBSD.ORG Fri May 1 13:55:48 2009 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 E2F3C106566B for ; Fri, 1 May 2009 13:55:48 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 747AF8FC25 for ; Fri, 1 May 2009 13:55:48 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by fg-out-1718.google.com with SMTP id e12so60745fga.12 for ; Fri, 01 May 2009 06:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=82A3+XmlZh/jfaiW2gFYNTP8iDcWHH/dGs0HfeMhis8=; b=AcDhcg0hUCrYG6vSDwHk7z+T4Qs4+fv6ndeCFhdzI/hvBR2hKNZIG9ijUAe85DHJCD M6d9RD6Lv6ovNqhqpus+cMzL2Rj1hvCAbgn6afdJ/lYG8v98/fTCRvV1bbNkhrOUzNMg +5eAfBtNaDmVZjOcLYlNWOLh/MLkTGVEoEbVk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=kB44UVfX1A/QjHmi70fJSEdaAYD/e3aLqbt4wPrCkXZKVO0zUnDEyAVsGAlODeVwok vzrJwb/slzdbpCzIFhMazL5uXBfgIbEi0Gy4MKUfpRApIiXtMfB0zDY6C0Sbc8nQaHMz b/tWswb5UOHpPht1SjBfkyR/J1GkvBN98Zsz8= MIME-Version: 1.0 Received: by 10.86.29.8 with SMTP id c8mr2880118fgc.7.1241184382725; Fri, 01 May 2009 06:26:22 -0700 (PDT) Date: Fri, 1 May 2009 15:26:22 +0200 Message-ID: From: Jacques Fourie To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: PXA27X 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, 01 May 2009 13:55:49 -0000 Hi, I've been working on getting FreeBSD to boot on my Yoggie (http://www.yoggie.com/open-firewall-soho) platform. The only major missing piece is that set_cpufuncs() doesn't support the PXA270 : --- a/sys/arm/arm/cpufunc.c +++ b/sys/arm/arm/cpufunc.c @@ -1192,6 +1192,7 @@ set_cpufuncs() #ifdef CPU_XSCALE_PXA2X0 /* ignore core revision to test PXA2xx CPUs */ if ((cputype & ~CPU_ID_XSCALE_COREREV_MASK) == CPU_ID_PXA250 || + (cputype & ~CPU_ID_XSCALE_COREREV_MASK) == CPU_ID_PXA27X || (cputype & ~CPU_ID_XSCALE_COREREV_MASK) == CPU_ID_PXA210) { There are some other differences between the PXA255 and PXA270 such as different gpio pins etc. but I'm unsure as to what the best way is to handle this elegantly in the current pxa code. Currently I'm using a bunch of #ifdefs in files such as pxa_machdep.c. Regards, Jacques From owner-freebsd-arm@FreeBSD.ORG Fri May 1 20:29:02 2009 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 68A781065670 for ; Fri, 1 May 2009 20:29:02 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 1B3058FC0C for ; Fri, 1 May 2009 20:29:02 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 5A3D38FC4E for ; Sat, 2 May 2009 00:28:59 +0400 (MSD) Received: from orion.SpringDaemons.com (unknown [77.232.3.143]) by mx0.deglitch.com (Postfix) with ESMTPA id 1DC858FC2B for ; Sat, 2 May 2009 00:28:58 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 0989339827 for ; Sat, 2 May 2009 00:29:11 +0400 (MSD) Date: Sat, 2 May 2009 00:29:10 +0400 From: Stanislav Sedov To: freebsd-arm@freebsd.org Message-Id: <20090502002910.8890ddac.stas@FreeBSD.org> In-Reply-To: References: Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Sat May 2 00:28:59 2009 X-DSPAM-Confidence: 0.9899 X-DSPAM-Improbability: 1 in 9809 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 49fb5b8b834456212220701 Subject: Re: PXA27X 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, 01 May 2009 20:29:02 -0000 On Fri, 1 May 2009 15:26:22 +0200 Jacques Fourie mentioned: > Hi, > > I've been working on getting FreeBSD to boot on my Yoggie > (http://www.yoggie.com/open-firewall-soho) platform. > The only major missing piece is that set_cpufuncs() doesn't support the PXA270 : > > --- a/sys/arm/arm/cpufunc.c > +++ b/sys/arm/arm/cpufunc.c > @@ -1192,6 +1192,7 @@ set_cpufuncs() > #ifdef CPU_XSCALE_PXA2X0 > /* ignore core revision to test PXA2xx CPUs */ > if ((cputype & ~CPU_ID_XSCALE_COREREV_MASK) == CPU_ID_PXA250 || > + (cputype & ~CPU_ID_XSCALE_COREREV_MASK) == CPU_ID_PXA27X || > (cputype & ~CPU_ID_XSCALE_COREREV_MASK) == CPU_ID_PXA210) { > > There are some other differences between the PXA255 and PXA270 such as > different gpio pins etc. but I'm > unsure as to what the best way is to handle this elegantly in the > current pxa code. Currently I'm using a bunch > of #ifdefs in files such as pxa_machdep.c. > Hi! Can you, please, share you code so we can see how to better intergrate it with the current code? -- Stanislav Sedov ST4096-RIPE From owner-freebsd-arm@FreeBSD.ORG Fri May 1 23:32:43 2009 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 BFA6E106564A for ; Fri, 1 May 2009 23:32:43 +0000 (UTC) (envelope-from don@donhayford.com) Received: from rehobot.2ip.com (rehobot.2ip.com [75.125.216.154]) by mx1.freebsd.org (Postfix) with ESMTP id 8BD938FC0C for ; Fri, 1 May 2009 23:32:43 +0000 (UTC) (envelope-from don@donhayford.com) Received: from d47-69-178-97.try.wideopenwest.com ([69.47.97.178]:54956 helo=[192.168.1.104]) by rehobot.2ip.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1M02Dd-0003qI-HU; Fri, 01 May 2009 16:32:37 -0700 Message-ID: <49FB8696.8020907@donhayford.com> Date: Fri, 01 May 2009 19:32:38 -0400 From: Donald T Hayford User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Rafal Jaworowski References: <49FA5B75.9090008@donhayford.com> <49FADE9B.1080806@donhayford.com> <494D378B-B243-4D97-8554-AC3E74A30B8C@semihalf.com> In-Reply-To: <494D378B-B243-4D97-8554-AC3E74A30B8C@semihalf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rehobot.2ip.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - donhayford.com Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F6281 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, 01 May 2009 23:32:44 -0000 Rafal Jaworowski wrote: > > On 2009-05-01, at 13:35, Donald T Hayford wrote: > >> Rafal Jaworowski wrote: >>> >>> On 2009-05-01, at 04:16, Donald T Hayford wrote: >>> >>>> I built FreeBSD-8 (current) kernel and world for the Marvel >>>> chipsets using the instructions here: >>>> http://wiki.freebsd.org/FreeBSDMarvell >>>> >>>> When I tried booting a Sheevaplug (Marvel 88F6281), the system >>>> hangs as soon as I start it: >>> >>> Please show the output of the 'map' command at U-Boot prompt. >>> >> I apologize for the bad pasting job - I'll try again. Hopefully this >> one is easier to read. >> >> Marvell>> map CPU Interface >> ------------- > > [...] > > I don't see any mismatches WRT internal SOC registers location etc. > and need to look a bit closer to the SheevaPlug docs. > > Just a basic clarification: you are 100% sure the correct DB-88F6XXX > kernel image is used, right? > > Rafal > I'm as sure as I can be. [verify the directory on the FreeBSD machine is the 6XXX directory] $ pwd /usr/obj/arm/usr/src/sys/DB-88F6XXX $ ls -la | grep kernel -rwxr-xr-x 1 root wheel 3656905 Apr 26 16:55 kernel -rwxr-xr-x 1 root wheel 2863204 Apr 26 16:55 kernel.bin -rwxr-xr-x 1 root wheel 1467105 Apr 26 16:55 kernel.gz.tramp -rwxr-xr-x 1 root wheel 1455194 Apr 26 16:55 kernel.gz.tramp.bin -rwxr-xr-x 1 root wheel 3494694 Apr 26 16:55 kernel.tramp -rwxr-xr-x 1 root wheel 3483799 Apr 26 16:55 kernel.tramp.bin [copy kernel.bin to my tftp server as /tftpboot/sheeva/6XXXkernel.bin] $ scp kernel.bin mythtv:/tftpboot/sheeva/6XXXkernel.bin hayford@mythtv's password: kernel.bin 0% 0 0.0KB/s --:-- ETA kernel.bin 100% 2796KB 2.7MB/s 00:01 [log onto tftp server and list the appropriate directory] $ ssh mythtv hayford@mythtv's password: Last login: Wed Apr 29 21:04:11 2009 from fed8-1 hayford@mythtv$ cd /tftpboot/sheeva hayford@mythtv$ ls -la total 8428 drwxrwxr-x 2 hayford hayford 4096 2009-04-30 20:47 . drwxrwxrwx 17 nobody nobody 4096 2009-04-26 12:22 .. -rwxr-xr-x 1 hayford hayford 2870196 2009-04-30 20:47 5XXXkernel.bin -rwxr-xr-x 1 hayford hayford 2863204 2009-05-01 18:17 6XXXkernel.bin -rwxr-xr-x 1 hayford hayford 2863204 2009-04-26 12:27 kernel.bin hayford@mythtv$ exit [now boot up the sheevaplug] Marvell>> tftpboot 0x900000 sheeva/6XXXkernel.bin Using egiga0 device TFTP from server 192.168.1.102; our IP address is 192.168.1.246 Filename 'sheeva/6XXXkernel.bin'. Load address: 0x900000 Loading: *#################################################################\ ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ######################################## done Bytes transferred = 2863204 (2bb064 hex) Marvell>> go 0x900000 ## Starting application at 0x00900000 ... [sheevaplug hangs up] Note that the file size that was loaded by UBoot was 2863204 bytes long, the same as the length of the file in the directory listing above. The 5XXX kernel is slightly longer at 2870196 bytes. Thanks for looking into it. Regards, Don From owner-freebsd-arm@FreeBSD.ORG Sat May 2 02:54:50 2009 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 992631065672 for ; Sat, 2 May 2009 02:54:50 +0000 (UTC) (envelope-from don@donhayford.com) Received: from rehobot.2ip.com (rehobot.2ip.com [75.125.216.154]) by mx1.freebsd.org (Postfix) with ESMTP id 6765E8FC16 for ; Sat, 2 May 2009 02:54:50 +0000 (UTC) (envelope-from don@donhayford.com) Received: from d47-69-178-97.try.wideopenwest.com ([69.47.97.178]:33254 helo=[192.168.1.104]) by rehobot.2ip.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1M05NE-0004tu-6K; Fri, 01 May 2009 19:54:44 -0700 Message-ID: <49FBB5F8.3090104@donhayford.com> Date: Fri, 01 May 2009 22:54:48 -0400 From: Donald T Hayford User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Rafal Jaworowski References: <49FA5952.20800@donhayford.com> <1324A9FE-D45B-479E-9705-5FCFA2FAC9E0@semihalf.com> In-Reply-To: <1324A9FE-D45B-479E-9705-5FCFA2FAC9E0@semihalf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rehobot.2ip.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - donhayford.com Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F5512 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2009 02:54:51 -0000 Rafal Jaworowski wrote: > > On 2009-05-01, at 04:07, Donald T Hayford wrote: >> twsi0: at mem >> 0xf1011000-0xf101101f on mbus0 >> iicbus0: on twsi0 >> iicbus0: at addr 0 >> iic0: on iicbus0 >> pcib1: at mem >> 0xf1030000-0xf1031fff on mbus0 >> >> At this point, the device hangs until I reboot it. > > Could you please compile out PCI support to see whether this hang is > somehow PCI-related? > The Kurobox Pro appears to be booting more-or-less correctly now. Following is the boot up message. Note towards the end a warning about "no time-of-day clock". The kernel is also not recognizing the attached SATA drive (because PCI is disabled?) or USB disk. ## Starting application at 0x00900000 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #1: Sat May 2 02:17:44 EDT 2009 hayford@freeqemu:/usr/obj/arm/usr/src/sys/DB-88F5XXX WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. Preloaded elf kernel "elf kernel" at 0xc0d1c598. CPU: ARM926EJ-S rev 0 (ARM9EJ-S core) DC enabled IC enabled WB enabled EABT branch prediction enabled 32KB/32B 1-way Instruction cache 32KB/32B 1-way write-back-locking-C Data cache real memory = 134217728 (128 MB) Physical memory chunk(s): 00000000 - 0x8fffff, 9437184 bytes (2304 pages) 0xe0d000 - 0x7d8efff, 116924416 bytes (28546 pages) avail memory = 125353984 (119 MB) SOC: (0x5182:0x02) Marvell 88F5182 rev A2, TClock 166MHz mem: nfslock: pseudo-device null: random: mbus0: on motherboard ic0: at mem 0xf1020200-0xf102023b on mbus0 timer0: at mem 0xf1020300-0xf102032f irq 0 on mbus0 timer0: [FILTER] gpio0: at mem 0xf1010100-0xf101011f irq 6,7,8,9 on mbus0 gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] uart0: <16550 or compatible> at mem 0xf1012000-0xf101201f irq 3 on mbus0 uart0: [FILTER] uart0: fast interrupt uart0: console (115740,n,8,1) uart1: <16550 or compatible> at mem 0xf1012100-0xf101211f irq 4 on mbus0 uart1: [FILTER] uart1: fast interrupt ehci0: at mem 0xf1050000-0xf1050fff irq 16,17 on mbus0 ehci0: [FILTER] ehci0: [MPSAFE] ehci0: [ITHREAD] ehci0: 5.24 GL USB-2 workaround enabled usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0: on ehci0 mge0: at mem 0xf1072000-0xf1073fff irq 18,19,20,21,22 on mbus0 mge0: bpf attached mge0: Ethernet address: 00:16:01:a4:e4:87 miibus0: on mge0 e1000phy0: PHY 8 on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto mge0: [MPSAFE] mge0: [ITHREAD] mge0: [MPSAFE] mge0: [ITHREAD] twsi0: at mem 0xf1011000-0xf101101f on mbus0 iicbus0: on twsi0 iicbus0: at addr 0 iic0: on iicbus0 Timecounter "CPU Timer" frequency 166666667 Hz quality 1000 Timecounters tick every 1.000 msec lo0: bpf attached usbus0: 480Mbps High Speed USB v2.0 bootpc_init: wired to interface 'mge0' Sending DHCP Discover packet from interface mge0 (00:16:01:a4:e4:87) ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 1 port with 1 removable, self powered mge0: link state changed to UP Received DHCP Offer packet on mge0 from 192.168.1.102 (accepted) (no root path) Received DHCP Offer packet on mge0 from 192.168.1.1 (ignored) (no root path) Sending DHCP Request packet from interface mge0 (00:16:01:a4:e4:87) Received DHCP Ack packet on mge0 from 192.168.1.102 (accepted) (got root path) mge0 at 192.168.1.178 server 192.168.1.102 subnet mask 255.255.255.0 router 192.168.1.1 root_server 192.168.1.102 rootfs /export/client/froot Adjusted interface mge0 WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. Trying to mount root from nfs: NFS ROOT: 192.168.1.102:/export/client/froot warning: no time-of-day clock registered, system time will not be set accurately warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init Enter full pathname of shell or RETURN for /bin/sh: # df Filesystem 512-blocks Used Avail Capacity Mounted on 192.168.1.102:/export/client/froot 374169032 46198576 308657000 13% / devfs 2 2 0 100% /dev # Thanks, Don From owner-freebsd-arm@FreeBSD.ORG Sat May 2 06:28:01 2009 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 D9DCC106566B for ; Sat, 2 May 2009 06:28:01 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from mail-fx0-f162.google.com (mail-fx0-f162.google.com [209.85.220.162]) by mx1.freebsd.org (Postfix) with ESMTP id 192A48FC1B for ; Sat, 2 May 2009 06:28:00 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by fxm6 with SMTP id 6so2620815fxm.43 for ; Fri, 01 May 2009 23:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZQvRRrO0YfO3UoVuYotWKo1Wek8lFJOX+bngLvfYYhM=; b=HFJJgGLaL3UuxhP3sALUhGATDIVy83lFHYIhItFKUI3+uUsjLaJyhwkjSk1UbZ783j glLhaIB8qRbFb9YBJtuL2Pj1YFiCOBbHHhLTqYwuqyL4MK8DVBl9S3ws8Gy7CWX5SztJ D/ez387lfj4doZWYlOOIOhC29zgUNWQ+T/P64= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pC0QQOpj4QsiQWVUjQmFP7kVT0uBheYwckwxwow0SI1H0tSq8VjfwFCvEFfufQa23o /Ca+TyRRR/C/PiWDRIs7E7P2HNu7Cw8u3/yle09JHYBZzHeG2Kg87hX0vWt6WKeQakw1 3QJQuO9v5MS/s9WwgnWy4/4HpWiio5uaELwPE= MIME-Version: 1.0 Received: by 10.86.82.6 with SMTP id f6mr3521666fgb.69.1241245679962; Fri, 01 May 2009 23:27:59 -0700 (PDT) In-Reply-To: <20090502002910.8890ddac.stas@FreeBSD.org> References: <20090502002910.8890ddac.stas@FreeBSD.org> Date: Sat, 2 May 2009 08:27:59 +0200 Message-ID: From: Jacques Fourie To: Stanislav Sedov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org Subject: Re: PXA27X 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: Sat, 02 May 2009 06:28:02 -0000 On Fri, May 1, 2009 at 10:29 PM, Stanislav Sedov wrote: > On Fri, 1 May 2009 15:26:22 +0200 > Jacques Fourie mentioned: > >> Hi, >> >> I've been working on getting FreeBSD to boot on my Yoggie >> (http://www.yoggie.com/open-firewall-soho) platform. >> The only major missing piece is that set_cpufuncs() doesn't support the = PXA270 : >> >> --- a/sys/arm/arm/cpufunc.c >> +++ b/sys/arm/arm/cpufunc.c >> @@ -1192,6 +1192,7 @@ set_cpufuncs() >> =A0#ifdef CPU_XSCALE_PXA2X0 >> =A0 =A0 =A0 =A0 /* ignore core revision to test PXA2xx CPUs */ >> =A0 =A0 =A0 =A0 if ((cputype & ~CPU_ID_XSCALE_COREREV_MASK) =3D=3D CPU_I= D_PXA250 || >> + =A0 =A0 =A0 =A0 =A0 (cputype & ~CPU_ID_XSCALE_COREREV_MASK) =3D=3D CPU= _ID_PXA27X || >> =A0 =A0 =A0 =A0 =A0 =A0 (cputype & ~CPU_ID_XSCALE_COREREV_MASK) =3D=3D C= PU_ID_PXA210) { >> >> There are some other differences between the PXA255 and PXA270 such as >> different gpio pins etc. but I'm >> unsure as to what the best way is to handle this elegantly in the >> current pxa code. Currently I'm using a bunch >> of #ifdefs in files such as pxa_machdep.c. >> > > Hi! > > Can you, please, share you code so we can see how to better intergrate > it with the current code? I'll be happy to share the code but I really need to clean it up first. I t= hink the PXA support can do with some seperation of functionality into board support files. I'll try to put something together... > > -- > Stanislav Sedov > ST4096-RIPE > > _______________________________________________ > 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" > From owner-freebsd-arm@FreeBSD.ORG Sat May 2 15:19:30 2009 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 8D472106564A for ; Sat, 2 May 2009 15:19:30 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 6E9AF8FC14 for ; Sat, 2 May 2009 15:19:30 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n42FJRFo027147; Sat, 2 May 2009 09:19:28 -0600 Received: from apn-77-113-24-183.dynamic.gprs.plus.pl (apn-77-113-24-183.dynamic.gprs.plus.pl [77.113.24.183]) by mail.semihalf.com (Postfix) with ESMTP id 51A17142A6; Sat, 2 May 2009 17:19:23 +0200 (CEST) Message-Id: <8A5691CD-5E1B-4C5F-BC45-6AC8AEEEAD51@semihalf.com> From: Rafal Jaworowski To: Donald T Hayford In-Reply-To: <49FBB5F8.3090104@donhayford.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sat, 2 May 2009 17:19:16 +0200 References: <49FA5952.20800@donhayford.com> <1324A9FE-D45B-479E-9705-5FCFA2FAC9E0@semihalf.com> <49FBB5F8.3090104@donhayford.com> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F5512 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2009 15:19:30 -0000 On 2009-05-02, at 04:54, Donald T Hayford wrote: > Rafal Jaworowski wrote: >> >> On 2009-05-01, at 04:07, Donald T Hayford wrote: >>> twsi0: at mem >>> 0xf1011000-0xf101101f on mbus0 >>> iicbus0: on twsi0 >>> iicbus0: at addr 0 >>> iic0: on iicbus0 >>> pcib1: at mem >>> 0xf1030000-0xf1031fff on mbus0 >>> >>> At this point, the device hangs until I reboot it. >> >> Could you please compile out PCI support to see whether this hang >> is somehow PCI-related? >> > The Kurobox Pro appears to be booting more-or-less correctly now. > Following is the boot up message. It appears there are some problems around PCI then. Are there any peripheral devices behind the PCI bridge on the KBP device? Very likely the IRQ routing map is different on your board than the default (DB-88F5281 board). The pci_irq_map[] table (sys/arm/mv/orion/ db88f5xxx.c) needs to be verified against KBP interrupts connections and adjusted accordingly (actually a dedicated file should be provided as a final solution for your device: sys/arm/mv/orion/kuroboxpro.c or so, with with all board-specific items equivalent to what we have for DB- systems). > Note towards the end a warning about "no time-of-day clock". The > kernel is also not recognizing the attached SATA drive (because PCI > is disabled?) or USB disk. Time of day wanings are likely due to no driver for the RTC part (the default compiled in is DS133x). What RTC chip is there on the KBP device? There's no driver in the tree for the integrated SATA controller at the moment, but it's currently under work. The problems with USB device not recognized could be related to the new USB stack, which wasn't much tested on MV systems. Please switch to the legacy stack and let us know if the problem persists. Rafal From owner-freebsd-arm@FreeBSD.ORG Sat May 2 15:30:49 2009 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 6FA471065678 for ; Sat, 2 May 2009 15:30:49 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 4EB6B8FC27 for ; Sat, 2 May 2009 15:30:49 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n42FUYL3031021; Sat, 2 May 2009 09:30:35 -0600 Received: from apn-77-113-24-183.dynamic.gprs.plus.pl (apn-77-113-24-183.dynamic.gprs.plus.pl [77.113.24.183]) by mail.semihalf.com (Postfix) with ESMTP id C68C9142A6; Sat, 2 May 2009 17:30:31 +0200 (CEST) Message-Id: <72D23F68-EE62-4297-88F4-6CA0132F0293@semihalf.com> From: Rafal Jaworowski To: Donald T Hayford In-Reply-To: <49FB8696.8020907@donhayford.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sat, 2 May 2009 17:30:25 +0200 References: <49FA5B75.9090008@donhayford.com> <49FADE9B.1080806@donhayford.com> <494D378B-B243-4D97-8554-AC3E74A30B8C@semihalf.com> <49FB8696.8020907@donhayford.com> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-arm@freebsd.org Subject: Re: Help with Marvel kernel for 88F6281 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2009 15:30:50 -0000 On 2009-05-02, at 01:32, Donald T Hayford wrote: > Rafal Jaworowski wrote: >> >> On 2009-05-01, at 13:35, Donald T Hayford wrote: >> >>> Rafal Jaworowski wrote: >>>> >>>> On 2009-05-01, at 04:16, Donald T Hayford wrote: >>>> >>>>> I built FreeBSD-8 (current) kernel and world for the Marvel >>>>> chipsets using the instructions here: >>>>> http://wiki.freebsd.org/FreeBSDMarvell >>>>> >>>>> When I tried booting a Sheevaplug (Marvel 88F6281), the system >>>>> hangs as soon as I start it: >>>> >>>> Please show the output of the 'map' command at U-Boot prompt. >>>> >>> I apologize for the bad pasting job - I'll try again. Hopefully >>> this one is easier to read. >>> >>> Marvell>> map CPU Interface >>> ------------- >> >> [...] >> >> I don't see any mismatches WRT internal SOC registers location etc. >> and need to look a bit closer to the SheevaPlug docs. >> >> Just a basic clarification: you are 100% sure the correct >> DB-88F6XXX kernel image is used, right? >> >> Rafal >> > I'm as sure as I can be. > > [verify the directory on the FreeBSD machine is the 6XXX directory] OK, thanks for verfiication. > Marvell>> go 0x900000 > ## Starting application at 0x00900000 ... > [sheevaplug hangs up] > > Note that the file size that was loaded by UBoot was 2863204 bytes > long, the same as the length of the file in the directory listing > above. The 5XXX kernel is slightly longer at 2870196 bytes. Please do a quick experiment: eliminate (#if 0) contents of the platform_mpp_init() in sys/arm/mv/kirkwood/db88f6xxx.c and recompile/ rerun. The SP device could have MPP/GPIO layed out differently (note you're using DB-88F6281 dev board configuration): we could be overwriting UART lines connection settings and hence lose console output. Rafal