Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2010 08:15:09 -0200
From:      Luiz Otavio O Souza <lists.br@gmail.com>
To:        Milan Obuch <freebsd-mips@dino.sk>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: First RSPRO deployed !
Message-ID:  <4A60132B-C3DE-4FB6-A5EF-7E0A814DEDA8@gmail.com>
In-Reply-To: <201011170024.24641.freebsd-mips@dino.sk>
References:  <D74327E9-0A8A-4B46-B4DD-16D0FAF8E3BB@gmail.com> <201011101616.59156.freebsd-mips@dino.sk> <2ECB603F-5E21-424E-8EF7-5F7189887AEC@gmail.com> <201011170024.24641.freebsd-mips@dino.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 16, 2010, at 9:24 PM, Milan Obuch wrote:

[snip]

>=20
>>>> Here is the dmesg: http://pastebin.com/BGsAun6b
>>>>=20
>>>> The ifconfig: http://pastebin.com/Vf5pqaQs
>>>>=20
>>>> Disks and slices: http://pastebin.com/2jc0fJPh
>>>>=20
>>>> GPIO devices: http://pastebin.com/FvhQW5iL
>>>>=20
>=20
> Here is output os rspro-ps program... What's that? Where does it get =
the data=20
> read from? Is there something on board itself connected to i2c bus or =
is it=20
> something externally connected?
>=20

It's my rspro power supply... I've nothing better to do at that time.. =
;)

At that time i've no 48v PS and at same time i was looking for something =
to replace my server/router (which was suffering a lot with the very =
frequent power outages).

So i've designed a power supply that work directly from 12v batteries =
and gives me some information about its state thru i2c.

http://loos.no-ip.org:280/routerstation/images/13.html (basically - a =
little bit old, already added a charger for battery).

http://loos.no-ip.org:280/routerstation/images/12.html (here the output =
is connected to my rspro and the i2c is connected on my routerstation - =
development time).



>>>> All installed ports: http://pastebin.com/yHcszFpR
>>>>=20
>>>> It's running fully static, booting a gziped kernel from onboard =
flash
>>>> and with a full system on a 8GB SD card (i've another two 4GB
>>>> memsticks, one is used for ports and the other for sources and =
obj).
>>>=20
>>> Again, it would be great if you could share your experience - I =
would
>>> like to run from flash too, but did not came there yet, I am still =
only
>>> at netboot stage with USB flasdisk based file system.
>>>=20
>>> Regards,
>>> Milan
>>=20
>> adrian@ keeps a wiki page with some information about this:
>> http://wiki.freebsd.org/AdrianChadd/UbiquityRouterstationPro
>>=20
>> I'll poke him about a port for this flash tool, it's very simple to =
use.
>>=20
>=20
> Is it possible to read/write flash from FreeBSD itself? When I add=20
> geom_redboot into kernel, I see /dev/redboot directory with flash =
parts, but I=20
> have no idea how to read them - dd if=3D/dev/redboot/<something> gives =
just an=20
> error and no data are read... Is some special tool necessary for that? =
I would=20
> like to make a backup copy of flash, just in case...
>=20

Yes, it is possible to directly access the flash using 64k blocks reads =
and writes.

Be aware that currently we've a bug with geom_readboot and geom_label, =
they won't work together (it was given to me a patch that should fix =
this, but i did not managed to test it yet).

Try it with bs=3D64k and it should work (as Monthadar said, adrian@ have =
some patches floating around that reduce the block size to 4k iirc).

I'll try to post my script and Makefile for the mkfwimage.c (here is a =
sample with the ouput of routerstation for the flashing procedure: =
http://loos.no-ip.org:280/routerstation/)


> Also, there is a pin header marked UART, just opposite to RS232 =
connector. I=20
> would expect it to be a second serial interface, maybe, but I found no =
mention=20
> about it yet... Has anybody an answer?

It is not a second UART, it is the same uart ! (unfortunately)

It's better look at some usb->uart cable (like ftdi, prolific, etc.) or =
some other gpio solution.

Regards,
Luiz=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A60132B-C3DE-4FB6-A5EF-7E0A814DEDA8>