From owner-freebsd-arm@FreeBSD.ORG Fri Nov 30 17:31:23 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 104E72A9 for ; Fri, 30 Nov 2012 17:31:23 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id CC87B8FC19 for ; Fri, 30 Nov 2012 17:31:21 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id qAUHVEB0049963 for ; Fri, 30 Nov 2012 10:31:14 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id qAUHVBD2042609; Fri, 30 Nov 2012 10:31:11 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: FreeBSD on Raspberry Pi 512MB (with U-Boot + ubldr) From: Ian Lepore To: Mats Mellstrand In-Reply-To: <67266790-55B9-4CAB-992B-A68C73912995@exmandato.se> References: <3988C1622A974F19A9D3888F0334FF10@ad.peach.ne.jp> <67266790-55B9-4CAB-992B-A68C73912995@exmandato.se> Content-Type: text/plain; charset="us-ascii" Date: Fri, 30 Nov 2012 10:31:11 -0700 Message-ID: <1354296671.69940.429.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 30 Nov 2012 17:31:23 -0000 On Fri, 2012-11-30 at 18:22 +0100, Mats Mellstrand wrote: > Hi > > > > On 30 nov 2012, at 17:53, Daisuke Aoyama wrote: > > > Hi, > > > >>> uhub0: on usbus0 > >>> mmcsd0: 14GB at mmc0 25.0MHz/4bit/65535-block > >>> mmcsd0: Error indicated: 2 Bad CRC > >>> mmcsd0: Error indicated: 2 Bad CRC > >> > >> This issue must be fixed by r243688 and r243689 > > > > It seems fixed. But found another problem. SWAP never used even if I set GPU=384MB. > > Also, around freemem=260MB(GPU=16MB), get the program crashed. > > > > > > I've recreated the image based on build-pi-image.sh + SVN 243703 + my custom settings. > > All settings are the same as previous mail. (FreeBSD source tree is not modified) > > Please try this instead. > > Success! > > I tried ifconfig_ue0="DHCP" in /etc/rc.local, this however don't work: > > This gives : > > /etc/rc.d/dhclient: WARNING: failed to start dhclient > > in the boot message > > But I can start dhclient manually after boot. > I've seen variations of this appear on the lists several times in the past few months, always relating to usb ethernet. Since enumerating the usb bus is asynch it's often still in progress when the rc world starts running. It seems like the right thing would be for rc.d/dhclient to do nothing and then devd should launch dhclient when the ue interface appears. I'm not sure why the devd part isn't working now, unless something about the ue interface is different enough that it isn't trigging the existing devd rules for ethernet interfaces coming and going. At work we've had problems with local rc scripts failing because the uftdi devices they need haven't been enumerated yet. It seems like the rc system needs some way to wait for usb enumeration to complete. -- Ian