From owner-freebsd-arm@FreeBSD.ORG Tue Nov 13 14:32:26 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 88B4123A for ; Tue, 13 Nov 2012 14:32:26 +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 81DC18FC08 for ; Tue, 13 Nov 2012 14:32:19 +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 qADEWHMx050703 for ; Tue, 13 Nov 2012 07:32:18 -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 qADEWEtW022489; Tue, 13 Nov 2012 07:32:15 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: Proposed patchset to support DreamPlug on freebsd 9 and 10. From: Ian Lepore To: Johan Henselmans In-Reply-To: <33A18E14-78CE-45F0-ABBC-E21952606E62@netsense.nl> References: <1352732526.1217.29.camel@revolution.hippie.lan> <50A125D6.50508@gmail.com> <1352743496.1217.39.camel@revolution.hippie.lan> <50A1F8EE.4070205@gmail.com> <33A18E14-78CE-45F0-ABBC-E21952606E62@netsense.nl> Content-Type: multipart/mixed; boundary="=-tVOq/JK4WNO0QqREOW5A" Date: Tue, 13 Nov 2012 07:32:14 -0700 Message-ID: <1352817134.1217.106.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Tue, 13 Nov 2012 14:32:26 -0000 --=-tVOq/JK4WNO0QqREOW5A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tue, 2012-11-13 at 10:39 +0100, Johan Henselmans wrote: > I have just compiled and run a freebsd-current with a patchset I found on http://jessewhite.ca/dreamplug-freebsd/ on a dreamplug which starts with serialnumber DS2-1213. > > According to the discussion on the FreedomBox mailinglist there seem to be different varieties depending on the first four digits of the serial number. I bought mine in july 2012, direct from GlobalScale. It came with a 4 GB SDHC card. > > I use the internal card, formatted with a fat and a ufs partition. > > I used the latest Freebsd-current (12-nov-2012) as a base system, apparently with clang as a compiler. I then gitted the freebsd tree from github into /usr/local/src/bsdcode/freebsd, to make it easier to differentiate between the /usr/src/ 'prodcution' tree and the /usr/local/src/bsdcode/freebsd 'arm test' tree. > > All I did was twiddle with the kernel config file to replace the ZERO_COPY_SOCKETS option that is now replaced by SOCKET_SEND_COW and SOCKET_RECV_PFLIP, and remove the IPFIREWALL_FORWARD option, which is now always compile in. > > #removed in freebsd10 > #options IPFIREWALL_FORWARD > > # eliminating data copies on socket reads and writes. > # man 9 zero_copy > #options ZERO_COPY_SOCKETS > #bsd 10 > options SOCKET_SEND_COW > options SOCKET_RECV_PFLIP > > and made sure the root was internally. > > options ROOTDEVNAME=\"ufs:/dev/da0s2\" > > > > I have a few problems: > > First: > I am getting errors from the sdhc driver: > > > errors like > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 0 0 16 6 6f 0 0 40 0 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > > are popping up all the time in the console (I have a JTAG console via screen /dev/ttyU1 115200) > > Second: > > the ethernet addresses do not seem to be recognized by the kernel: > > root@dreamplug-bsd:~ # ifconfig -a > > mge1: flags=8802 metric 0 mtu 1500 > options=8000b > ether 00:00:00:00:00:00 > nd6 options=29 > media: Ethernet autoselect (1000baseT ) > status: active > > > I'd be happy to help to find out which dts files have to be used for which dreamplug, and how we can make sure this thing will be a first class FreeBSD citizen. I never got as far as trying the sd interface, but I did have both ethernet ports working well. It looks like your mge1 isn't working because the dts in that patchset you referenced doesn't set up the pins for it. There seem to be some address differences in the dts for mge1 compared (74000 vs 76000) to what was working for me as well. I'll attach the dts file that worked for me for reference. -- Ian --=-tVOq/JK4WNO0QqREOW5A--