Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2014 14:12:59 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Ian Lepore <ian@FreeBSD.org>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@FreeBSD.org>
Subject:   Re: MARVELL BOARD: RD-88F6281A -CURRENT
Message-ID:  <AB62E5CF-C780-45B7-A59F-EE2B0FFC8477@bsdimp.com>
In-Reply-To: <1396815052.81853.346.camel@revolution.hippie.lan>
References:  <53406D94.5020605@fgznet.ch> <1396732234.81853.334.camel@revolution.hippie.lan> <53407B53.4040807@fgznet.ch> <1396737091.81853.339.camel@revolution.hippie.lan> <5341AE1C.4040207@fgznet.ch> <1396815052.81853.346.camel@revolution.hippie.lan>

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

On Apr 6, 2014, at 2:10 PM, Ian Lepore <ian@FreeBSD.org> wrote:

> On Sun, 2014-04-06 at 21:42 +0200, Andreas Tobler wrote:
>> On 06.04.14 00:31, Ian Lepore wrote:
>>> On Sat, 2014-04-05 at 23:53 +0200, Andreas Tobler wrote:
>>>> On 05.04.14 23:10, Ian Lepore wrote:
>>>>> On Sat, 2014-04-05 at 22:54 +0200, Andreas Tobler wrote:
>>>>>> Hi all,
>>>>>>=20
>>>>>> I'm very new to arm hardware, but not to FreeBSD.
>>>>>> I got my hands on a broken (software like) ix2-200 Iomega =
StorCenter. A
>>>>>> few wires and a screen session allowed me to dive into it and I =
tried to
>>>>>> boot -CURRENT on it. Below where I end.
>>>>>>=20
>>>>>> The config I used is the DB-88F6XXX with enabling the INVARIANTS =
etc.
>>>>>> The board itself identifies as the subject says. It has this:
>>>>>> Soc: 88F6281 A0CPU running @ 1000Mhz L2 running @ 333Mhz
>>>>>> SysClock =3D 333Mhz , TClock =3D 200Mhz
>>>>>> DRAM (DDR2) CAS Latency =3D 5 tRP =3D 5 tRAS =3D 18 tRCD=3D6
>>>>>> DRAM CS[0] base 0x00000000   size 256
>>>>>>=20
>>>>>> Has anyone a hint or an idea where to start debugging this?
>>>>>>=20
>>>>>> TIA,
>>>>>> Andreas
>>>>>>=20
>>>>>> [...]
>>>>>=20
>>>>> Easy things first, I guess... in sys/boot/fdt/dts/db88f6281.dts I =
see=20
>>>>>=20
>>>>> 		reg =3D <0x0 0x20000000>;		// 512M at 0x0
>>>>>=20
>>>>> Try cutting that in half and rebuilding the kernel.
>>>>=20
>>>> Yep, simple thing! As said, new to the hardware :)
>>>>=20
>>>> Thanks a lot.
>>>>=20
>>>> Sure, now I 'hang' in an other area.
>>>>=20
>>>> mge0: <Marvell Gigabit Ethernet controller> mem 0x72000-0x73fff irq
>>>> 12,13,14,11,46 on simplebus0
>>>> mge0: Ethernet address: 00:d0:b8:1e:3b:df
>>>> mge0: attaching PHYs failed
>>>> --> hangs
>>>> According to the u-boot env I have two eth's and only the second is
>>>> wired and used.
>>>>=20
>>>> =46rom u-boot:
>>>> Net:   egiga0, egiga1 [PRIME]
>>>>=20
>>>> Now my questions, how do I enable verbose boot? On PowerPC I know I =
have
>>>> to do it in boot/loader.conf, here too?
>>>>=20
>>>> I guess my hardware is different from an eval board, so I expect =
I'd
>>>> need a customized dts, no? If so, how do I get the information out =
of
>>>> the u-boot?
>>>> Again, thx a lot!
>>>> Andreas
>>>=20
>>> You're probably not even using loader(8) but rather launching the =
kernel
>>> directly (only newer arm systems and newer versions of u-boot use
>>> loader).  That means things like tunables and bootverbose have to be
>>> hacked into the kernel, at least for now to make some progress.  The
>>> initarm_early_init() routine in arm/mv/mv_machdep.c is a good place =
to
>>> throw in a bootverbose=3D1.
>>=20
>> Ok. I did it in sys/kern/init_main.c
>>=20
>>> For disabling egiga0 just add status=3D"disabled" to its entry in =
the dts
>>> file.  Have a look at the dreamplug dts files for an example of =
setting
>>> up egiga1, but I'm not sure everything will be exactly the same.  =
You
>>> may need to transplant the phy0 entry from egiga0 into egiga1 for =
that
>>> box.
>>=20
>> Good start, thanks.
>>=20
>>> The 'bdinfo' command in u-boot sometimes shows lots of good info,
>>> sometimes not so much.
>>=20
>> Hm, this command is not available in my env.
>> Anyway, I figured to play with the regs in the enet dts section and I
>> managed to get it up. Unfortunately I don't get any dhcp requests to =
the
>> server, so no ack can be given. I'll play around.
>>=20
>> Sending DHCP Discover packet from interface mge0 (00:d0:b8:1e:3b:df)
>> ....
>> DHCP/BOOTP timeout for server 255.255.255.255
>> ....
>>=20
>> Thanks again!
>> Andreas
>=20
> I just realized that there's likely to be dts source for that box in
> linux, and sure enough:
>=20
> =
https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/kirkwood-i=
omega_ix2_200.dts
>=20
> There should be a lot of good clues in there, although we're not quite
> so compatible that you can necessarily just paste linux dts code into
> our dts files.

(a) We should fix the incompatibility. :) I do understand this may be =
hardish=85
(b) All of Linux=92s files, as of the last major kernel release, are in =
our vendor tree under base/vendor/device-tree.

Warner=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AB62E5CF-C780-45B7-A59F-EE2B0FFC8477>