Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2012 07:32:14 -0700
From:      Ian Lepore <freebsd@damnhippie.dyndns.org>
To:        Johan Henselmans <johan@netsense.nl>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Proposed patchset to support DreamPlug on freebsd 9 and 10.
Message-ID:  <1352817134.1217.106.camel@revolution.hippie.lan>
In-Reply-To: <33A18E14-78CE-45F0-ABBC-E21952606E62@netsense.nl>
References:  <CANuCnH_ZFiJCThSf5eCAzhZLOeZ769woHOrT9vTY9Dpo72Zgwg@mail.gmail.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
>         ether 00:00:00:00:00:00
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: Ethernet autoselect (1000baseT <full-duplex>)
>         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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1352817134.1217.106.camel>