From owner-freebsd-arm@FreeBSD.ORG Tue Nov 13 14:58: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 8803FF9E for ; Tue, 13 Nov 2012 14:58:26 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id F2DEE8FC16 for ; Tue, 13 Nov 2012 14:58:25 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id gg13so2365699lbb.13 for ; Tue, 13 Nov 2012 06:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=9hdQNUQCkHcig8A5x8jvGHv8dSQrC9NjKcb3ySVgRbw=; b=edvrDXj1v3DJ5cUv2mXIWsZmfwjw/a4RcQfegGD18AoSkZhq0CpzmA0686CpbsflDH Ur0YqDHwsfEE1FDCxjP3XxkJkWxvV02gO6mTzwsugr+AvHed3dJrlQhbcUlt0RRrf8tx 2Is+x1LETGcIyJm4Fyj5YgIfqN7ZWLjrFye6509Jrn5gMAcstqbtfDuxLQg0iMgn6a/v 0NTI7Qe4/F3vcCCUJXB+PkP/Vn7mIlwDAF3rtQFTk5zYihn+JBTT3nWClxxN7vpLKKqi A8ATPPdkBQMci88FjzEqAYNHeOVdCpTR2n66FEDMjs29/MdDHPCub/+9Pt3yLnl2Eqgi VhGg== Received: by 10.112.9.74 with SMTP id x10mr8511198lba.2.1352818704921; Tue, 13 Nov 2012 06:58:24 -0800 (PST) Received: from [192.168.0.121] (vpn.static.83-173-212-209.cybernet.ch. [83.173.212.209]) by mx.google.com with ESMTPS id x5sm3897377lbf.9.2012.11.13.06.58.21 (version=SSLv3 cipher=OTHER); Tue, 13 Nov 2012 06:58:22 -0800 (PST) Message-ID: <50A2600D.8030002@gmail.com> Date: Tue, 13 Nov 2012 15:58:21 +0100 From: Mattia Rossi User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: Proposed patchset to support DreamPlug on freebsd 9 and 10. 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> <1352817134.1217.106.camel@revolution.hippie.lan> In-Reply-To: <1352817134.1217.106.camel@revolution.hippie.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:58:26 -0000 Am 13.11.2012 15:32, schrieb Ian Lepore: > 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. Hmm, I did have an SD card in there and it worked fine.. damn, can't wait to get back to that thing. But that was on freebsd9 compiled with gcc. Mat