From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 10:15:18 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F4F21065670 for ; Wed, 17 Nov 2010 10:15:18 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id C67D58FC15 for ; Wed, 17 Nov 2010 10:15:17 +0000 (UTC) Received: by gwj20 with SMTP id 20so1015314gwj.13 for ; Wed, 17 Nov 2010 02:15:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=nTEmb7Y17KIC1QZ8RK7/u+RdsRe+duhzLwy40RQixUQ=; b=pDKWCK0jUfQfYy17GBCOACVTMSOIbRuhK7nIts1h1WiWGhQIZ5MSXWuuAMHxL8C7NP P7bCaKdLP8kd8Ts8WLszS6qZwpZ0nkk97f6vjSbhYTzhG0o+dWPq8GovxdRMj+dtbd3d vHKrkDHQ1I58qdCW0ZRrrE6lWWmvMZ4/BgF+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=MxzSP02PB46tHR3rMI5wkGzLU7TkIor6DCzqbunifgr0ntnnpMr9n2HJ8dmsAr6QWw ZVSd5381l0yQu0kLIbwh1khYw0wH/+hRscMhRweq4en/Sm3xlblUcobGOUmnjqqQNfev To3CHAmMHKWjhv58lgg0NULovslFblAgZtj3Q= Received: by 10.151.106.2 with SMTP id i2mr8845769ybm.305.1289988913791; Wed, 17 Nov 2010 02:15:13 -0800 (PST) Received: from [192.168.0.86] ([187.39.15.80]) by mx.google.com with ESMTPS id p20sm646203ybe.5.2010.11.17.02.15.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Nov 2010 02:15:13 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Luiz Otavio O Souza In-Reply-To: <201011170024.24641.freebsd-mips@dino.sk> Date: Wed, 17 Nov 2010 08:15:09 -0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4A60132B-C3DE-4FB6-A5EF-7E0A814DEDA8@gmail.com> References: <201011101616.59156.freebsd-mips@dino.sk> <2ECB603F-5E21-424E-8EF7-5F7189887AEC@gmail.com> <201011170024.24641.freebsd-mips@dino.sk> To: Milan Obuch X-Mailer: Apple Mail (2.1081) Cc: freebsd-mips@freebsd.org Subject: Re: First RSPRO deployed ! X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2010 10:15:18 -0000 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/ 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=