From owner-freebsd-mips@FreeBSD.ORG Sun Nov 14 12:46:47 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 B318B106564A for ; Sun, 14 Nov 2010 12:46:47 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 611868FC16 for ; Sun, 14 Nov 2010 12:46:47 +0000 (UTC) Received: by yxe1 with SMTP id 1so640019yxe.13 for ; Sun, 14 Nov 2010 04:46:46 -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:message-id:references:to :x-mailer; bh=GLSjubH9QPSyI8/8CI1lZnFHkK8B3iwXPMUrjyjMT1I=; b=xfOMek+mF8W3q4e0DOvls0hKbZKh/OeBWgi4ZPEl2+FYf7XA9abz0cl3K3j+Sk4fB3 rUAusGaSxo+2jYbx/ro4oLcIcXDqTObREOowkLRy+asojXsT/J8HN8wPH1DsoZ9ak/qx FRRnLQ6uSW34RxjiZoZVbsR4pH438vo6tSuyo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=AHkKZLSsJX7BBPxri9hQL3yw3b7KGWuYjEiWC8TVO4J+vhusIazJN/sCUcz9uIBAqG p9I1Xvo1iY78/+jxm49rt1g8ccUmt0EIyRpFb4u9Ix6CO7Gyynq2RaGg8+Mtwlj2FlT+ b5a6sd27y/0iXd7VUbt4HoqhptEnLcTYbIF/Q= Received: by 10.91.147.3 with SMTP id z3mr6128444agn.179.1289738806288; Sun, 14 Nov 2010 04:46:46 -0800 (PST) Received: from [192.168.0.86] ([187.39.15.80]) by mx.google.com with ESMTPS id d8sm2492956ana.2.2010.11.14.04.46.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Nov 2010 04:46:45 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: multipart/mixed; boundary=Apple-Mail-86-46471918 From: Luiz Otavio O Souza In-Reply-To: <201011112359.59958.freebsd-mips@dino.sk> Date: Sun, 14 Nov 2010 10:46:40 -0200 Message-Id: <71AFA800-0873-42FF-9C3B-94F3AA765681@gmail.com> References: <201011101616.59156.freebsd-mips@dino.sk> <2ECB603F-5E21-424E-8EF7-5F7189887AEC@gmail.com> <201011112359.59958.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: Sun, 14 Nov 2010 12:46:47 -0000 --Apple-Mail-86-46471918 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Nov 11, 2010, at 8:59 PM, Milan Obuch wrote: [ snip] >> adrian@ keeps a wiki page with some information about this: >> http://wiki.freebsd.org/AdrianChadd/UbiquityRouterstationPro >>=20 >=20 > I know about this page... actually, I am using patches mentioned = there,=20 > downloaded from http://people.freebsd.org/~kan/usb_rspro.diff so I can = use=20 > USB. >=20 > Also, I use attached kernel config, but this needs some changes. For = RTC a=20 > patch is probably necessary. GPIO definition needs to be changed a = bit. I did=20 > not test any miniPCI card yet. Maybe again some patch is needed... >=20 > I found http://people.freebsd.org/~adrian/rspro/ - do you use any = patch from=20 > there? >=20 > Last thing coming from your dmesg - where did you get driver for = switch=20 > connected to arge1 and what could you do with it? I'm using the Adrian's fix for USB align problem = (http://people.freebsd.org/~adrian/rspro/usb_conf_align.diff) it is = equivalent to kan's patch, but the fix isn't hardcoded (you need to = enable the adrian's patch by add "options USB_HOST_ALIGN=3D32" on kernel = config file). I'm sending a quick hack for RSPRO gpio, it adds the missing pins = definitions and disable some functions used only for mikrotik = routerboards. There is nothing needed for miniPCI devices, it just works :) The switch driver is a work in progress... on rspro (for now) it works = as a generic switch (which does nothing), you can only see and set (or = force) the media settings per port. With a working switch driver you can configure (or filter) vlan tags on = each switch port and build more complex setups. I've it more complete on some models of mikrotik routerboards, but the = current code is a mess... i already get some feedback, so now i need to = rewrite the bad parts and i hope it will be available soon for more = tests on rspro. Best regards, Luiz PS: files also available here: http://loos.no-ip.org:280/rspro --Apple-Mail-86-46471918 Content-Disposition: attachment; filename=RSPRO Content-Type: application/octet-stream; name="RSPRO" Content-Transfer-Encoding: 7bit # # AR71XX -- Kernel configuration file for FreeBSD/mips for Atheros 71xx systems # # $FreeBSD: head/sys/mips/conf/AR71XX 207474 2010-05-01 16:39:46Z imp $ # ident RSPRO cpu CPU_MIPS4KC options ISA_MIPS32 makeoptions TARGET_BIG_ENDIAN makeoptions KERNLOADADDR=0x80050000 options HZ=1000 files "../atheros/files.ar71xx" hints "RSPRO.hints" makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions MODULES_OVERRIDE="" options ALT_BREAK_TO_DEBUGGER options DDB options KDB options KTRACE options SCHED_4BSD #4BSD scheduler options INET #InterNETworking options NFSCLIENT #Network Filesystem Client options NFS_ROOT #NFS usable as /, requires NFSCLIENT options PSEUDOFS #Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions # options NFS_LEGACYRPC # Debugging for use in -current options DEADLKRES options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories #options BOOTP #options BOOTP_NFSROOT #options BOOTP_NFSV3 #options BOOTP_WIRED_TO=arge0 #options BOOTP_COMPAT #options ROOTDEVNAME=\"nfs:192.168.10.1:/mnt/bsd\" #options ROOTDEVNAME=\"ufs:/dev/da1p2\" options ROOTDEVNAME=\"ufs:/dev/gpt/root\" device pci # Wireless NIC cards options IEEE80211_DEBUG options IEEE80211_SUPPORT_MESH options IEEE80211_SUPPORT_TDMA options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's device wlan # 802.11 support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_xauth device ath # Atheros pci/cardbus NIC's options ATH_DEBUG device ath_hal option AH_SUPPORT_AR5416 option AH_RXCFG_SDMAMW_4BYTES # See NOTES for details of this WAR device ath_rate_sample #device switch device mii device arge device usb options USB_HOST_ALIGN=32 options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order # options USB_DEBUG device ohci device ehci device spibus device ar71xx_spi device pcf2123_rtc device mx25l #device geom_redboot device ar71xx_wdog device uart device loop device ether device vlan device md device bpf device random device if_bridge device umass device scbus device da options GEOM_PART_GPT options GEOM_LABEL device gpio device gpioled device gpioiic device iicbus device iicbb device iic # network options DUMMYNET options LIBALIAS options IPDIVERT options IPSTEALTH options IPFIREWALL options IPFIREWALL_NAT options IPFIREWALL_VERBOSE options IPFIREWALL_FORWARD options IPFIREWALL_DEFAULT_TO_ACCEPT --Apple-Mail-86-46471918 Content-Disposition: attachment; filename=RSPRO.hints Content-Type: application/octet-stream; name="RSPRO.hints" Content-Transfer-Encoding: 7bit # $FreeBSD: head/sys/mips/conf/AR71XX.hints 202839 2010-01-22 22:14:12Z gonzo $ hint.apb.0.at="nexus0" hint.apb.0.irq=4 # uart0 hint.uart.0.at="apb0" # see atheros/uart_cpu_ar71xx.c why +3 hint.uart.0.maddr=0x18020003 hint.uart.0.msize=0x18 hint.uart.0.irq=3 # ohci hint.ohci.0.at="apb0" hint.ohci.0.maddr=0x1c000000 hint.ohci.0.msize=0x01000000 hint.ohci.0.irq=6 # ehci hint.ehci.0.at="nexus0" hint.ehci.0.maddr=0x1b000000 hint.ehci.0.msize=0x01000000 hint.ehci.0.irq=1 # pci hint.pcib.0.at="nexus0" hint.pcib.0.irq=0 # arge0 hint.arge.0.at="nexus0" hint.arge.0.maddr=0x19000000 hint.arge.0.msize=0x1000 hint.arge.0.irq=2 # PHY4 = 1 << 4 hint.arge.0.phymask=0x10 # arge1 hint.arge.1.at="nexus0" hint.arge.1.maddr=0x1a000000 hint.arge.1.msize=0x1000 hint.arge.1.irq=3 # PHY1, PHY2, PHY3 hint.arge.1.phymask=0x0e hint.arge.1.media=1000 hint.arge.1.fduplex=1 # RSPRO _really_ need the above two lines ! # SPIBUS hint.spi.0.at="nexus0" hint.spi.0.maddr=0x1f000000 hint.spi.0.msize=0x10 # SPI flash hint.mx25l.0.at="spibus0" hint.mx25l.0.cs=1 # shares the same bus with mx25l. # CE low for flash, CE high for RTC hint.rtc.0.at="spibus0" hint.rtc.0.cs=0 # Watchdog hint.ar71xx_wdog.0.at="nexus0" # GPIO hint.gpio.0.at="apb0" hint.gpio.0.maddr=0x18040000 hint.gpio.0.msize=0x1000 hint.gpio.0.irq=2 # RF led - pin 2 hint.gpioled.0.at="gpiobus0" hint.gpioled.0.name="rfled" hint.gpioled.0.pins=0x0004 # gpio i2c # Pin 1 - SCL # Pin 2 - SDA hint.gpioiic.0.at="gpiobus0" hint.gpioiic.0.pins=0x0003 --Apple-Mail-86-46471918-- From owner-freebsd-mips@FreeBSD.ORG Tue Nov 16 10:10:48 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 3C4C8106571B for ; Tue, 16 Nov 2010 10:10:48 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by mx1.freebsd.org (Postfix) with ESMTP id E23468FC18 for ; Tue, 16 Nov 2010 10:10:47 +0000 (UTC) Received: by qwd7 with SMTP id 7so360200qwd.17 for ; Tue, 16 Nov 2010 02:10:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=MFNhBnA6a9Yt4GiKJaSP8ekafOtDD4pEdZtOQ513z1c=; b=WA4vH8hWdLpNz51c1RZC9psomOOyw+bqpafhyUVdtfDeYLLjbDf6s/+gXURoXj0dFe HRvmWzfuMObLKfk/54DC8jGkM0xKHbvIccEW8QIdmQCchf2lv2G2wvZGBoWR1Rf4HpXa aVechJpXt+l9F+nM5WrrLbRTuKJ9t2WnIlKnc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=J6dhOD+oBrp2Tqw0uAqpKWxfKvXFhQkQ2gNnXHGucCInVnB04qfJNUqL1Bqcg+hhY8 TP2uUpZ+NVh83VT9qCZeHJFMrMeToZaRN+CRViGMz2r2NmWAJY4wUsZ3urASCxa2Adno If/WQd4YbEob8N+pMo4h95+M1HEmyzfyYz5Oc= MIME-Version: 1.0 Received: by 10.229.240.213 with SMTP id lb21mr6206136qcb.185.1289902246899; Tue, 16 Nov 2010 02:10:46 -0800 (PST) Received: by 10.229.182.77 with HTTP; Tue, 16 Nov 2010 02:10:46 -0800 (PST) In-Reply-To: <71AFA800-0873-42FF-9C3B-94F3AA765681@gmail.com> References: <201011101616.59156.freebsd-mips@dino.sk> <2ECB603F-5E21-424E-8EF7-5F7189887AEC@gmail.com> <201011112359.59958.freebsd-mips@dino.sk> <71AFA800-0873-42FF-9C3B-94F3AA765681@gmail.com> Date: Tue, 16 Nov 2010 11:10:46 +0100 Message-ID: From: Monthadar Al Jaberi To: Luiz Otavio O Souza Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 16 Nov 2010 10:10:48 -0000 Hi, Nice to see other people work on the same board! feels like RSPRO fever! :P Thank you for sharing your files with us. I am running freebsd from both flash (mdroot) and NFS. In both cases I get the following error RTC after adding your diffs: ... Invalid time in real time clock. Check and reset the date immediately! ... Before your diffs I used to get: ... warning: no time-of-day clock registered, system time will not be set accur= ately ... Do you have any ideas what the cause could be? I can't seem to change the time with date also. Thank you again. On Sun, Nov 14, 2010 at 1:46 PM, Luiz Otavio O Souza w= rote: > On Nov 11, 2010, at 8:59 PM, Milan Obuch wrote: > > [ snip] > >>> adrian@ keeps a wiki page with some information about this: >>> http://wiki.freebsd.org/AdrianChadd/UbiquityRouterstationPro >>> >> >> I know about this page... actually, I am using patches mentioned there, >> downloaded from http://people.freebsd.org/~kan/usb_rspro.diff so I can u= se >> USB. >> >> Also, I use attached kernel config, but this needs some changes. For RTC= a >> patch is probably necessary. GPIO definition needs to be changed a bit. = I did >> not test any miniPCI card yet. Maybe again some patch is needed... >> >> I found http://people.freebsd.org/~adrian/rspro/ - do you use any patch = from >> there? >> >> Last thing coming from your dmesg - where did you get driver for switch >> connected to arge1 and what could you do with it? > > > > I'm using the Adrian's fix for USB align problem (http://people.freebsd.o= rg/~adrian/rspro/usb_conf_align.diff) it is equivalent to kan's patch, but = the fix isn't hardcoded (you need to enable the adrian's patch by add "opti= ons USB_HOST_ALIGN=3D32" on kernel config file). > > I'm sending a quick hack for RSPRO gpio, it adds the missing pins definit= ions and disable some functions used only for mikrotik routerboards. > > There is nothing needed for miniPCI devices, it just works :) > > The switch driver is a work in progress... =A0on rspro (for now) it works= as a generic switch (which does nothing), you can only see and set (or for= ce) the media settings per port. > > With a working switch driver you can configure (or filter) vlan tags on e= ach switch port and build more complex setups. > > I've it more complete on some models of mikrotik routerboards, but the cu= rrent code is a mess... i already get some feedback, so now i need to rewri= te the bad parts and i hope it will be available soon for more tests on rsp= ro. > > > Best regards, > Luiz > PS: files also available here: http://loos.no-ip.org:280/rspro > > > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > > --=20 //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Tue Nov 16 23:07:48 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 B2488106564A for ; Tue, 16 Nov 2010 23:07:48 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 2ED8A8FC14 for ; Tue, 16 Nov 2010 23:07:47 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 17 Nov 2010 00:15:57 +0100 id 00033C04.4CE310AD.0000C240 From: Milan Obuch To: freebsd-mips@freebsd.org Date: Wed, 17 Nov 2010 00:07:56 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <71AFA800-0873-42FF-9C3B-94F3AA765681@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011170007.57640.freebsd-mips@dino.sk> Cc: 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: Tue, 16 Nov 2010 23:07:48 -0000 On Tuesday 16 November 2010 11:10:46 Monthadar Al Jaberi wrote: > Hi, > > Nice to see other people work on the same board! feels like RSPRO fever! :P > > Thank you for sharing your files with us. I am running freebsd from > both flash (mdroot) and NFS. > In both cases I get the following error RTC after adding your diffs: > ... > Invalid time in real time clock. > Check and reset the date immediately! > ... > > Before your diffs I used to get: > ... > warning: no time-of-day clock registered, system time will not be set > accurately ... > > Do you have any ideas what the cause could be? I can't seem to change > the time with date also. > Thank you again. > I saw this as well, but only first time after running kernel with rtc (or first time after longer period without power). Maybe after setting correct date it disappears? I use ntpdate to correct date/time, just a bit lazy to type long string of numbers... Regards, Milan From owner-freebsd-mips@FreeBSD.ORG Tue Nov 16 23:24:11 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 8F09D106566C for ; Tue, 16 Nov 2010 23:24:11 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 25D108FC17 for ; Tue, 16 Nov 2010 23:24:10 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 17 Nov 2010 00:32:20 +0100 id 00033C07.4CE31484.0000C2E3 From: Milan Obuch To: Luiz Otavio O Souza Date: Wed, 17 Nov 2010 00:24:23 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <201011101616.59156.freebsd-mips@dino.sk> <2ECB603F-5E21-424E-8EF7-5F7189887AEC@gmail.com> In-Reply-To: <2ECB603F-5E21-424E-8EF7-5F7189887AEC@gmail.com> MIME-Version: 1.0 Message-Id: <201011170024.24641.freebsd-mips@dino.sk> Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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: Tue, 16 Nov 2010 23:24:11 -0000 On Thursday 11 November 2010 12:14:30 you wrote: > On Nov 10, 2010, at 1:16 PM, Milan Obuch wrote: > > On Wednesday 10 November 2010 13:21:55 Luiz Otavio O Souza wrote: > >> Hello everyone, > >> > >> This is just a FYI about my first RSPRO deployed and my satisfaction > >> with it :) > > > > Hi, > > > >> I'm running a slightly modified version of current (for the RTC support > >> and basic multi-phy/switch support - still without vlan support). > > > > Could you share your changes/patches? I have this board too and could > > benefit from it too... you did a bit more already than me... > > Hi Milan, > > Sure, all my patches/changes are available, but as i said, it's only small > changes... > I am testing everything available... > >> Here is the dmesg: http://pastebin.com/BGsAun6b > >> > >> The ifconfig: http://pastebin.com/Vf5pqaQs > >> > >> Disks and slices: http://pastebin.com/2jc0fJPh > >> > >> GPIO devices: http://pastebin.com/FvhQW5iL > >> Here is output os rspro-ps program... What's that? Where does it get the data read from? Is there something on board itself connected to i2c bus or is it something externally connected? > >> All installed ports: http://pastebin.com/yHcszFpR > >> > >> 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). > > > > 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. > > > > Regards, > > Milan > > adrian@ keeps a wiki page with some information about this: > http://wiki.freebsd.org/AdrianChadd/UbiquityRouterstationPro > > I'll poke him about a port for this flash tool, it's very simple to use. > Is it possible to read/write flash from FreeBSD itself? When I add geom_redboot into kernel, I see /dev/redboot directory with flash parts, but I have no idea how to read them - dd if=/dev/redboot/ gives just an error and no data are read... Is some special tool necessary for that? I would like to make a backup copy of flash, just in case... Also, there is a pin header marked UART, just opposite to RS232 connector. I would expect it to be a second serial interface, maybe, but I found no mention about it yet... Has anybody an answer? Regards, Milan From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 08:09:39 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 F1A281065674 for ; Wed, 17 Nov 2010 08:09:39 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id A8E878FC16 for ; Wed, 17 Nov 2010 08:09:39 +0000 (UTC) Received: by qwd7 with SMTP id 7so531915qwd.13 for ; Wed, 17 Nov 2010 00:09:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=IEjefzurxIvndX8gaNPg0w9oOyDom/LJI0jMGIi26/k=; b=o4Fy0jRzMnHJQJlXMlDJOIkQ5QJhj2+yOUKpAPGzizPkzpkD5MwfyClV9QfvEp/j9N QvG8I2xIz27XYXpZtMYVDWi0gzzfLpH8UqV1KYUaMgizm+FX4id8rzuWJYHPKbhePT0E 7L+drBTLP4zn05mGacFqNVCoCGwfWAK/kvqqA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CHqRXf+W8Y6yVJpJi0zHvyIqRwHeO2fy7kGu02nimM3x0RyzMNM0AcV+bsIep3R4R6 /eU9h7uWD/aA1AVv4zk6LlQ6yfrl3Chxuj71FCKlzrI1TVcT4UG1qTVvz7ILJkWp5AVU 6Tzzx4FC2iX5bkt+xPNKIu8tVxUkJ+Zn8QkT8= MIME-Version: 1.0 Received: by 10.229.225.199 with SMTP id it7mr7316844qcb.33.1289981378893; Wed, 17 Nov 2010 00:09:38 -0800 (PST) Received: by 10.229.182.77 with HTTP; Wed, 17 Nov 2010 00:09:38 -0800 (PST) In-Reply-To: <201011170024.24641.freebsd-mips@dino.sk> References: <201011101616.59156.freebsd-mips@dino.sk> <2ECB603F-5E21-424E-8EF7-5F7189887AEC@gmail.com> <201011170024.24641.freebsd-mips@dino.sk> Date: Wed, 17 Nov 2010 09:09:38 +0100 Message-ID: From: Monthadar Al Jaberi To: Milan Obuch Content-Type: text/plain; charset=ISO-8859-1 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 08:09:40 -0000 > > Is it possible to read/write flash from FreeBSD itself? When I add > geom_redboot into kernel, I see /dev/redboot directory with flash parts, but I > have no idea how to read them - dd if=/dev/redboot/ gives just an > error and no data are read... Is some special tool necessary for that? I would > like to make a backup copy of flash, just in case... > Had same issue check: http://lists.freebsd.org/pipermail/freebsd-fs/2010-November/010023.html Without Adrian's patch, try dd ... bs=64k with his (have not tried it yet) try dd ... bs=4k. Has to do with blocksize check the thread! ;) -- //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 09:40:52 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 719891065675 for ; Wed, 17 Nov 2010 09:40:52 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 23FFD8FC12 for ; Wed, 17 Nov 2010 09:40:51 +0000 (UTC) Received: by gyg13 with SMTP id 13so1014714gyg.13 for ; Wed, 17 Nov 2010 01:40:51 -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=3AXl0pA0o1gwJkezz6HQCUqx2X/WpDWJVsHo3EJCcUs=; b=CNWCz5jd3xa1P2a8MjKq0BVBJn1N4ta47EcOiQQZ+Y4WO8v3NYagjURRfb+capxaae LWNhXT5nrni7kziPOKrqQCy9Fac6mnfUFDpKz8EZuu5548RuhIZZgq9eANuVLssP11GH mPsodJrJlojL7xMmtL0PvBjPU6b2WlbN5sfyk= 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=x3D/u8OkoxmF1QuivGb6m48TuT9DJVf9+VWSn0ItLgvK+J+3ylabZ/df3pI3lj/4xw 3qgPWFQXQn15sQrHXP/viOL0yZ/FQLnXs9MHD518LVn2F6JUXCqLZckKLc3IThghrgZz /mLezUd5mGsth4MgTGwqwSpObhVY52u8j7q1E= Received: by 10.150.145.17 with SMTP id s17mr10156113ybd.107.1289986851326; Wed, 17 Nov 2010 01:40:51 -0800 (PST) Received: from [192.168.0.86] ([187.39.15.80]) by mx.google.com with ESMTPS id f23sm628701ybh.22.2010.11.17.01.40.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Nov 2010 01:40:50 -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: <201011170007.57640.freebsd-mips@dino.sk> Date: Wed, 17 Nov 2010 07:40:45 -0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <71AFA800-0873-42FF-9C3B-94F3AA765681@gmail.com> <201011170007.57640.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 09:40:52 -0000 On Nov 16, 2010, at 9:07 PM, Milan Obuch wrote: > On Tuesday 16 November 2010 11:10:46 Monthadar Al Jaberi wrote: >> Hi, >>=20 >> Nice to see other people work on the same board! feels like RSPRO = fever! :P >>=20 >> Thank you for sharing your files with us. I am running freebsd from >> both flash (mdroot) and NFS. >> In both cases I get the following error RTC after adding your diffs: >> ... >> Invalid time in real time clock. >> Check and reset the date immediately! >> ... >>=20 >> Before your diffs I used to get: >> ... >> warning: no time-of-day clock registered, system time will not be set >> accurately ... >>=20 >> Do you have any ideas what the cause could be? I can't seem to change >> the time with date also. >> Thank you again. >>=20 >=20 > I saw this as well, but only first time after running kernel with rtc = (or=20 > first time after longer period without power). Maybe after setting = correct=20 > date it disappears? I use ntpdate to correct date/time, just a bit = lazy to=20 > type long string of numbers... >=20 Exactly ! (or you have missed the rspro-rtc.diff patch which need to be = applied after ar71xx_spi_cs_mux.diff) But keep in your mind that the rspro rtc is not that great without a = battery backup :/ (it won't keep the time for too many days). Regards, Luiz 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= From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 10:31:44 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 D1360106566B for ; Wed, 17 Nov 2010 10:31:44 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 80DEE8FC12 for ; Wed, 17 Nov 2010 10:31:44 +0000 (UTC) Received: by qwd7 with SMTP id 7so649343qwd.13 for ; Wed, 17 Nov 2010 02:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ROwgPNaKKNT+A+CQrUONFapJHaYr2NBu8fcD1wq6dXA=; b=YpicXwvhGzobDd3oQMMr51X/vKsclgUfaZMZqlA5RBML4N52AddCyHUcgbLHpn034i 8Rzq2nXN37TCzzdmzZJqYKCVeaK0XNHHnPMxpH2ENh47KOR/2DV+UKLvBmaPcGwY6ALu 8ANI6Q7vqrwwODnlVuGUB6HjmowyaNQrffd6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=vtvIW51d0N4bBS/bFzbyrdEbZVKJXTmB5OzPV1ecmT2HQzRjmnv1XPYMJapi70OjQ0 ai9HfwXvoXyBWfym3xhSDg9nRVjxsuChA9Y7HecE/Cls27tzp3UHDibIFHTW5/lwMzlb pYl3zbDaeF42tlUdnJ3/fSYFBj+BthfrwWhn0= MIME-Version: 1.0 Received: by 10.224.135.227 with SMTP id o35mr7961986qat.75.1289989902635; Wed, 17 Nov 2010 02:31:42 -0800 (PST) Received: by 10.229.182.77 with HTTP; Wed, 17 Nov 2010 02:31:42 -0800 (PST) In-Reply-To: <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> <4A60132B-C3DE-4FB6-A5EF-7E0A814DEDA8@gmail.com> Date: Wed, 17 Nov 2010 11:31:42 +0100 Message-ID: From: Monthadar Al Jaberi To: Luiz Otavio O Souza Content-Type: text/plain; charset=ISO-8859-1 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:31:44 -0000 > 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/) That would be great! I have problems with mkfwimage.c too. Interesting that your firmware version does not start with RSPRO as Adrian specified... -- //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 10:42:03 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 5DE4F1065673 for ; Wed, 17 Nov 2010 10:42:03 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 1AD8B8FC0A for ; Wed, 17 Nov 2010 10:42:02 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 17 Nov 2010 11:50:09 +0100 id 00033C1D.4CE3B361.0000E301 From: Milan Obuch To: Luiz Otavio O Souza Date: Wed, 17 Nov 2010 11:42:19 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <201011170007.57640.freebsd-mips@dino.sk> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011171142.21067.freebsd-mips@dino.sk> 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:42:03 -0000 On Wednesday 17 November 2010 10:40:45 Luiz Otavio O Souza wrote: > On Nov 16, 2010, at 9:07 PM, Milan Obuch wrote: > > On Tuesday 16 November 2010 11:10:46 Monthadar Al Jaberi wrote: > >> Hi, > >> > >> Nice to see other people work on the same board! feels like RSPRO fever! > >> :P > >> > >> Thank you for sharing your files with us. I am running freebsd from > >> both flash (mdroot) and NFS. > >> In both cases I get the following error RTC after adding your diffs: > >> ... > >> Invalid time in real time clock. > >> Check and reset the date immediately! > >> ... > >> > >> Before your diffs I used to get: > >> ... > >> warning: no time-of-day clock registered, system time will not be set > >> accurately ... > >> > >> Do you have any ideas what the cause could be? I can't seem to change > >> the time with date also. > >> Thank you again. > > > > I saw this as well, but only first time after running kernel with rtc (or > > first time after longer period without power). Maybe after setting > > correct date it disappears? I use ntpdate to correct date/time, just a > > bit lazy to type long string of numbers... > > Exactly ! (or you have missed the rspro-rtc.diff patch which need to be > applied after ar71xx_spi_cs_mux.diff) > > But keep in your mind that the rspro rtc is not that great without a > battery backup :/ (it won't keep the time for too many days). > Well, in my case couple of hours is enough and time is invalid again :( But using ntpdate in a network is workaround good enough for me... Milan From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 10:44:53 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 2713D106564A for ; Wed, 17 Nov 2010 10:44:53 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 977888FC18 for ; Wed, 17 Nov 2010 10:44:52 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 17 Nov 2010 11:53:00 +0100 id 00033C1D.4CE3B40C.0000E364 From: Milan Obuch To: Monthadar Al Jaberi Date: Wed, 17 Nov 2010 11:44:57 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <201011170024.24641.freebsd-mips@dino.sk> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011171144.58859.freebsd-mips@dino.sk> 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:44:53 -0000 On Wednesday 17 November 2010 09:09:38 Monthadar Al Jaberi wrote: > > Is it possible to read/write flash from FreeBSD itself? When I add > > geom_redboot into kernel, I see /dev/redboot directory with flash parts, > > but I have no idea how to read them - dd if=/dev/redboot/ > > gives just an error and no data are read... Is some special tool > > necessary for that? I would like to make a backup copy of flash, just in > > case... > > Had same issue check: > http://lists.freebsd.org/pipermail/freebsd-fs/2010-November/010023.html > > Without Adrian's patch, try dd ... bs=64k > with his (have not tried it yet) try dd ... bs=4k. > > Has to do with blocksize check the thread! ;) Sorry for the noise... I read about flash block size somewhere, just did not combine all pieces into a picture :( Thanks for reminder, it works with correct blocksize. Milan From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 10:52:20 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 0104A1065672 for ; Wed, 17 Nov 2010 10:52:20 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC588FC1A for ; Wed, 17 Nov 2010 10:52:19 +0000 (UTC) Received: by wyb35 with SMTP id 35so975736wyb.13 for ; Wed, 17 Nov 2010 02:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=N0vAieRbhVZITEZ82ZfGwkX+grWrHrJWJoGsdpZNEMU=; b=BEP9Z49Fr5XFH7brSi7Qj8fLi1VPmDSIpFAi09N/mPUUqMuP9TvA9yc+D1XEZB08JZ ji1VYIROz2SEWMvjIfhXKa7Mwnf5H/U9kZ5Ou3PIzQ91fqvgthQo8kQUjId2Z0C9xI44 gbLo8Hr0t1PE77nP97/0Zg4iuaaMREPz3F4jk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=EouZjzOlemJb7C2QKORCzzH3N+6Dh9zgLpf/1vuiKrlbe6GpDkf8uKPBDXYbqQkikZ tRb5MUljDygc4sedvvOl/eI/SQnmMc/66RJMQkMDi0sHf9A7G5bZ+cr62JoF4rzwVaXV lb20g7Q/kHouHCJXfkZT+S0v6HvHWBX1ThIIg= MIME-Version: 1.0 Received: by 10.227.151.148 with SMTP id c20mr9001610wbw.15.1289989469026; Wed, 17 Nov 2010 02:24:29 -0800 (PST) Received: by 10.227.135.84 with HTTP; Wed, 17 Nov 2010 02:24:28 -0800 (PST) Date: Wed, 17 Nov 2010 15:54:28 +0530 Message-ID: From: "Jayachandran C." To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: MIPS on 8-STABLE - initial version 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:52:20 -0000 Hi all, I've been doing some initial work on merging the MIPS work from -CURRENT to 8-STABLE. At this point, I have an initial version at my user area under 'user/jchandra/8-stable-mips'. This is a copy of 8-STABLE with about 400 needed changesets for MIPS from -CURRENT merged, and other fixups done. This boots up multi-user on XLR with SMP and networking enabled. I will do further testing over the coming week and merge or do fixes. The merge commands and the merge output is at http://people.freebsd.org/~jchandra/8-stable-merge/ . I think I will have to change the mergepoints of most of the changesets outside sys. Even under sys, I see mergepoints at mips/rmi, mips/cavium etc, I don't know if this is intentional - if anybody knows please let me know. I would really appreciate if some of you could try it on your platforms an tell me if I am missing any changes. If all goes well, we can think of getting it into the stable tree... Thanks, JC. jchandra@freebsd.org From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 10:54:49 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 6BEA2106564A for ; Wed, 17 Nov 2010 10:54:49 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id EEC2A8FC0C for ; Wed, 17 Nov 2010 10:54:48 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 17 Nov 2010 12:02:56 +0100 id 00033C25.4CE3B660.0000E400 From: Milan Obuch To: Luiz Otavio O Souza Date: Wed, 17 Nov 2010 11:54:59 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <201011170024.24641.freebsd-mips@dino.sk> <4A60132B-C3DE-4FB6-A5EF-7E0A814DEDA8@gmail.com> In-Reply-To: <4A60132B-C3DE-4FB6-A5EF-7E0A814DEDA8@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011171155.00551.freebsd-mips@dino.sk> 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:54:49 -0000 On Wednesday 17 November 2010 11:15:09 Luiz Otavio O Souza wrote: > On Nov 16, 2010, at 9:24 PM, Milan Obuch wrote: > > [snip] > > >>>> GPIO devices: http://pastebin.com/FvhQW5iL > > > > Here is output os rspro-ps program... What's that? Where does it get the > > data read from? Is there something on board itself connected to i2c bus > > or is it something externally connected? > > 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). > Ah, so there is nothing on gpio pins selected for i2c connected on board itself and this is your addition... All pins are free to use for anything, you just selected two of them for i2c... > >>> 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. > >>> > >>> Regards, > >>> Milan > >> > >> adrian@ keeps a wiki page with some information about this: > >> http://wiki.freebsd.org/AdrianChadd/UbiquityRouterstationPro > >> > >> I'll poke him about a port for this flash tool, it's very simple to use. > > > > Is it possible to read/write flash from FreeBSD itself? When I add > > geom_redboot into kernel, I see /dev/redboot directory with flash parts, > > but I have no idea how to read them - dd if=/dev/redboot/ > > gives just an error and no data are read... Is some special tool > > necessary for that? I would like to make a backup copy of flash, just in > > case... > > Yes, it is possible to directly access the flash using 64k blocks reads and > writes. > Verified. It works. > 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=64k 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/) > This is built in redboot, right? So it can be used for first time programming too, ok? > > Also, there is a pin header marked UART, just opposite to RS232 > > connector. I would expect it to be a second serial interface, maybe, but > > I found no mention about it yet... Has anybody an answer? > > It is not a second UART, it is the same uart ! (unfortunately) > I was afraid it's that, but asked just to be sure... so when I use RS232 console port, this header is actually useless... > It's better look at some usb->uart cable (like ftdi, prolific, etc.) or > some other gpio solution. > I do not need second serial port for now, but USB serial port works for sure (not fully tested, but basically all supported devices should work on RSPRO as well I think). Regards, Milan From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 12:00:00 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 4A290106566C for ; Wed, 17 Nov 2010 12:00:00 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D3B608FC14 for ; Wed, 17 Nov 2010 11:59:59 +0000 (UTC) Received: by wyb35 with SMTP id 35so1043088wyb.13 for ; Wed, 17 Nov 2010 03:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=IYznjfJ6I5cm7v8qa/mVl/n5YHADrXgkNM8h7E03SnU=; b=K8xRxp3pw4+LHeJBhWuRlsFaolGnaXUCSs1/irxg7gko52ZQ6YOV+s1xtvE5MYo7Q1 Yc9mYRoP/GpVBdCxPatJp0tDHO4OCf73pSXLAQ+N3aZuOghmbYa5iHBwaxqoQXQ7a9yL N7bwR51I8GXuViir5Lk9AGeVZQf1DrK7mky74= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=eyIePd8kbTLVEmbODUX7jh+3en4ZmHZmXkSTOpsDeYe3m3tSqr6HgIUlXePoxNHo2u H6Fr3iqn6PvpnqUFMFPsIT2YbDzhebVWDrMHYUYpuHZcpnl0cNUNHeRFxm/DQR0gM8RR XNidlkJltuAxC7pXqGlMYdBHUr437Q2g3W3do= MIME-Version: 1.0 Received: by 10.227.127.136 with SMTP id g8mr9106017wbs.44.1289995197623; Wed, 17 Nov 2010 03:59:57 -0800 (PST) Received: by 10.227.135.84 with HTTP; Wed, 17 Nov 2010 03:59:55 -0800 (PST) In-Reply-To: References: Date: Wed, 17 Nov 2010 17:29:55 +0530 Message-ID: From: "Jayachandran C." To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: MIPS on 8-STABLE - initial version 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 12:00:00 -0000 On Wed, Nov 17, 2010 at 3:54 PM, Jayachandran C. wrote: > Even under sys, I see mergepoints at mips/rmi, mips/cavium etc, I > don't know if this is intentional - if anybody knows please let me > know. Please ignore this bit, I mis-read the output. JC. From owner-freebsd-mips@FreeBSD.ORG Wed Nov 17 13:21:11 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 56C191065679 for ; Wed, 17 Nov 2010 13:21:11 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id A6E358FC15 for ; Wed, 17 Nov 2010 13:21:10 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id 425A058; Wed, 17 Nov 2010 13:56:09 +0100 (CET) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xmK6iggctJd0; Wed, 17 Nov 2010 13:56:04 +0100 (CET) Received: from snifi.localnet (unknown [212.69.68.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id E2B5028; Wed, 17 Nov 2010 13:56:03 +0100 (CET) From: Maciej Milewski To: freebsd-mips@freebsd.org Date: Wed, 17 Nov 2010 13:56:23 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.35-ARCH; KDE/4.5.3; x86_64; ; ) References: <4A60132B-C3DE-4FB6-A5EF-7E0A814DEDA8@gmail.com> In-Reply-To: X-KMail-Markup: true MIME-Version: 1.0 Message-Id: <201011171356.24140.milu@dat.pl> Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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 13:21:11 -0000 Dnia =B6roda 17 listopad 2010 o 11:31:42 Monthadar Al Jaberi napisa=B3(a): > > 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/) >=20 > That would be great! I have problems with mkfwimage.c too. Interesting > that your firmware version does not start with RSPRO as Adrian > specified... Because it is Routerstation board not Routerstation Pro. Please explain what problems do you have with the mkfwimage. =2D-=20 Pozdrawiam, Maciej Milewski From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 02:53:19 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 B0C50106566B for ; Thu, 18 Nov 2010 02:53:19 +0000 (UTC) (envelope-from pierre@userid.org) Received: from mail.storm.ca (unknown [IPv6:2607:f0b0:0:6:209:87:239:66]) by mx1.freebsd.org (Postfix) with ESMTP id 5FCBA8FC12 for ; Thu, 18 Nov 2010 02:53:19 +0000 (UTC) Received: from mail.userid.org (pandora.userid.org [216.106.102.33]) by mail.storm.ca (8.14.2+Sun/8.14.2) with ESMTP id oAI2dCb6012205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 17 Nov 2010 21:39:17 -0500 (EST) Received: from [IPv6:2607:f0b0:1:3800:75ae:5cad:317b:179f] (unknown [IPv6:2607:f0b0:1:3800:75ae:5cad:317b:179f]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pierre) by mail.userid.org (Postfix) with ESMTP id 8BEA02C7515 for ; Wed, 17 Nov 2010 21:39:05 -0500 (EST) Message-ID: <4CE491ED.3030308@userid.org> Date: Wed, 17 Nov 2010 21:39:41 -0500 From: Pierre Lamy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-userid-MailScanner-Information: Please contact the ISP for more information X-userid-MailScanner-ID: 8BEA02C7515.AFFF9 X-userid-MailScanner: Found to be clean X-userid-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.001, required 6, autolearn=not spam, NO_RELAYS -0.00) X-userid-MailScanner-From: pierre@userid.org X-Spam-Status: No Subject: What platforms are you running? 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: Thu, 18 Nov 2010 02:53:19 -0000 I'm curious, what specific MIPS platforms will the -CURRENT tree run on, and what are you developing on? -Pierre From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 04:01:05 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 BB87E106564A for ; Thu, 18 Nov 2010 04:01:05 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 65DBD8FC0C for ; Thu, 18 Nov 2010 04:01:05 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oAI3vsAl060825 for ; Wed, 17 Nov 2010 20:57:54 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4CE4A440.8090204@bsdimp.com> Date: Wed, 17 Nov 2010 20:57:52 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org References: <4CE491ED.3030308@userid.org> In-Reply-To: <4CE491ED.3030308@userid.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: What platforms are you running? 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: Thu, 18 Nov 2010 04:01:05 -0000 On 11/17/2010 19:39, Pierre Lamy wrote: > I'm curious, what specific MIPS platforms will the -CURRENT tree run > on, and what are you developing on? > > -Pierre > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" I'm using Atheros AR71xx boards. I did a lot of the development on a bunch of different Octeons... Warner From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 04:35:27 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 6AA9C106566C for ; Thu, 18 Nov 2010 04:35:27 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id 3233E8FC17 for ; Thu, 18 Nov 2010 04:35:26 +0000 (UTC) Received: from [24.87.53.93] (helo=[192.168.1.133]) by launchpad.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1PIwDT-00089H-HQ; Wed, 17 Nov 2010 20:35:24 -0800 Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Oleksandr Tymoshenko In-Reply-To: <4CE491ED.3030308@userid.org> Date: Wed, 17 Nov 2010 20:35:24 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4CE491ED.3030308@userid.org> To: Pierre Lamy X-Mailer: Apple Mail (2.1082) Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2010-11-17, at 6:39 PM, Pierre Lamy wrote: > I'm curious, what specific MIPS platforms will the -CURRENT tree run on, and what are you developing on? Most actively supported hardware at the moment are Atheros' AR71XX, AR91XX, Cavium Octeons and RMI's(now part of NetLogic Microsystems) XLR/XLS platforms. [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Cc: freebsd-mips@freebsd.org Subject: Re: What platforms are you running? 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: Thu, 18 Nov 2010 04:35:27 -0000 On 2010-11-17, at 6:39 PM, Pierre Lamy wrote: > I'm curious, what specific MIPS platforms will the -CURRENT tree run = on, and what are you developing on? Most actively supported hardware at the moment are Atheros' AR71XX,=20= AR91XX, Cavium Octeons and RMI's(now part of NetLogic Microsystems)=20 XLR/XLS platforms.=20 --=20 gonzo From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 06:53:47 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 83AC8106566B for ; Thu, 18 Nov 2010 06:53:47 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 3AEA58FC08 for ; Thu, 18 Nov 2010 06:53:46 +0000 (UTC) Received: by qyk7 with SMTP id 7so983966qyk.13 for ; Wed, 17 Nov 2010 22:53:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=naslbGNn+OuBm3FVlMsbob+9/SV1c+gDEI9V7rWZXPk=; b=WXB18pJnuxUFs5AXD5Jc3ih++GGNqnqmW2XSd6VHtThGXKzLvUR1vbQ1hiW0S9he7n GJa7vdGsLMPagKfBrDUF9i2q00dh3vYuYJ6hQydp/SLew8AR2BrtWWRiYKUIA1HfSzDD 9mt6WOuoSG+2iPKv/jDEjNPwAf857iGER9IEI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CJ4vcmIpu3WNX1PiS5/sxy0w1/Y/E4hbiWd+aw/V46UMsYw6f3d8TDxH1RwYVN7oiz lM3aIfj8jyJdkpnx9OzP9lpgIHVvgZpf+spZmnDnUs4mdVkioQ2O+cUu3wlmym6ueEMC Hy/IkXYzc+XG+boc5xeQacgchgXH1uCs30lVY= MIME-Version: 1.0 Received: by 10.229.189.207 with SMTP id df15mr194855qcb.299.1290063225684; Wed, 17 Nov 2010 22:53:45 -0800 (PST) Received: by 10.229.182.77 with HTTP; Wed, 17 Nov 2010 22:53:45 -0800 (PST) In-Reply-To: <201011171356.24140.milu@dat.pl> References: <4A60132B-C3DE-4FB6-A5EF-7E0A814DEDA8@gmail.com> <201011171356.24140.milu@dat.pl> Date: Thu, 18 Nov 2010 07:53:45 +0100 Message-ID: From: Monthadar Al Jaberi To: Maciej Milewski Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable 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: Thu, 18 Nov 2010 06:53:47 -0000 2010/11/17 Maciej Milewski : > Dnia =B6roda 17 listopad 2010 o 11:31:42 Monthadar Al Jaberi napisa=B3(a)= : > >> > 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/) > >> > >> That would be great! I have problems with mkfwimage.c too. Interesting > >> that your firmware version does not start with RSPRO as Adrian > >> specified... > > Because it is Routerstation board not Routerstation Pro. Sorry, I just assumed from the subject line that it was RSPRO. > > Please explain what problems do you have with the mkfwimage. I get invalid image error from redboot. I made changes to mkfwimage according to Adrians instruction, padded the kernel image I generated to be 64k and create the filesystem with makefs -t ffs -B big... How do you do it? -- //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 07:42:17 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 152F11065674 for ; Thu, 18 Nov 2010 07:42:17 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id C2B7F8FC17 for ; Thu, 18 Nov 2010 07:42:16 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id 1095467; Thu, 18 Nov 2010 08:42:15 +0100 (CET) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id m31GfwjPi6yk; Thu, 18 Nov 2010 08:42:09 +0100 (CET) Received: from snifi.laptop (unknown [87.205.144.182]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id 8297A30; Thu, 18 Nov 2010 08:42:09 +0100 (CET) From: Maciej Milewski To: Monthadar Al Jaberi Date: Thu, 18 Nov 2010 08:42:27 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <201011171356.24140.milu@dat.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Message-Id: <201011180842.27427.milu@dat.pl> Cc: freebsd-mips@freebsd.org Subject: Re: 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: Thu, 18 Nov 2010 07:42:17 -0000 Thursday 18 November 2010 07:53:45 Monthadar Al Jaberi napisa=B3(a): > 2010/11/17 Maciej Milewski : > > Dnia =B6roda 17 listopad 2010 o 11:31:42 Monthadar Al Jaberi napisa=B3(= a): > >> > I'll try to post my script and Makefile for the mkfwimage.c (here is= a > >> >=20 > >> > sample with the ouput of routerstation for the flashing procedure: > >> >=20 > >> > http://loos.no-ip.org:280/routerstation/) > >>=20 > >> That would be great! I have problems with mkfwimage.c too. Interesting > >>=20 > >> that your firmware version does not start with RSPRO as Adrian > >>=20 > >> specified... > >=20 > > Because it is Routerstation board not Routerstation Pro. >=20 > Sorry, I just assumed from the subject line that it was RSPRO. >=20 > > Please explain what problems do you have with the mkfwimage. >=20 > I get invalid image error from redboot. >=20 > I made changes to mkfwimage according to Adrians instruction, padded > the kernel image I generated to be 64k and create the filesystem with > makefs -t ffs -B big... >=20 > How do you do it? >=20 > -- > //Monthadar Al Jaberi I don't know what changes because I've got Adrian's mkfwimage and it works = :) If kernel needs padding to 64k maybe rootfs needs the same? I haven't trie= d=20 yet with makefs but image with rootfs=3D65536 of 0's works.=20 Do you have proper name of this fw image? I've read somewhere that it's=20 required. My working name is RSPRO.ar7100pro.FreeBSD.Test and you can change the last= =20 two words for sure. Regards, Maciej Milewski From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 08:08:14 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 F208C1065675 for ; Thu, 18 Nov 2010 08:08:14 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id A85FF8FC19 for ; Thu, 18 Nov 2010 08:08:14 +0000 (UTC) Received: by qwd7 with SMTP id 7so185194qwd.13 for ; Thu, 18 Nov 2010 00:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0aexAF9MvUE/QhELbG6ITbij36LusRxbVrDY9mJDm6M=; b=XL4PQxkjbyfk2F5/+4ZpWquySWV30Okbnno1ZIx+1hovhhmw2dN0Y6Lti/5XKD84M0 sBmsIQt+8xXJcuAGMgajylUmO2dvwN/+R1z1DzJLji6twqu43jaMVADOlvE74mGOFUBM EMY1QI4JRtYH34j2PDfdupreg13pNfa8jrV8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Kc+vtqr78DJG165DRcxxd4UAsdm7e+G7cZLPDFXKsPldO8C/6AsQ+ZVNluTpjqxM+H 3OeQEr+EbB3SkhGcvAWfllhdVxq/90NVZ1DDnp8ZeTqvj8cxvonNLhpTBDsrdUnxsvyz 33kfW58pXtI4yuaolghl/NHbdKEVRzLlTnlgM= MIME-Version: 1.0 Received: by 10.229.91.2 with SMTP id k2mr288893qcm.147.1290067693463; Thu, 18 Nov 2010 00:08:13 -0800 (PST) Received: by 10.229.182.77 with HTTP; Thu, 18 Nov 2010 00:08:13 -0800 (PST) In-Reply-To: <201011180842.27427.milu@dat.pl> References: <201011171356.24140.milu@dat.pl> <201011180842.27427.milu@dat.pl> Date: Thu, 18 Nov 2010 09:08:13 +0100 Message-ID: From: Monthadar Al Jaberi To: Maciej Milewski Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: 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: Thu, 18 Nov 2010 08:08:15 -0000 2010/11/18 Maciej Milewski : > > Thursday 18 November 2010 07:53:45 Monthadar Al Jaberi napisa=B3(a): >> 2010/11/17 Maciej Milewski : >> > Dnia =B6roda 17 listopad 2010 o 11:31:42 Monthadar Al Jaberi napisa=B3= (a): >> >> > I'll try to post my script and Makefile for the mkfwimage.c (here i= s a >> >> > >> >> > sample with the ouput of routerstation for the flashing procedure: >> >> > >> >> > http://loos.no-ip.org:280/routerstation/) >> >> >> >> That would be great! I have problems with mkfwimage.c too. Interestin= g >> >> >> >> that your firmware version does not start with RSPRO as Adrian >> >> >> >> specified... >> > >> > Because it is Routerstation board not Routerstation Pro. >> >> Sorry, I just assumed from the subject line that it was RSPRO. >> >> > Please explain what problems do you have with the mkfwimage. >> >> I get invalid image error from redboot. >> >> I made changes to mkfwimage according to Adrians instruction, padded >> the kernel image I generated to be 64k and create the filesystem with >> makefs -t ffs -B big... >> >> How do you do it? >> >> -- >> //Monthadar Al Jaberi > I don't know what changes because I've got Adrian's mkfwimage and it work= s :) Where can I find Adrian's mkfwimage? Maybe I missed something.... > If kernel needs padding to 64k maybe rootfs needs the same? =A0I haven't = tried > yet with makefs but image with rootfs=3D65536 of 0's works. How do you generate the filesystem then? And actually when I checked the makefile Adrian is refering to, they made the filesystem padded by 128k and that I did to :) > > Do you have proper name of this fw image? I've read somewhere that it's > required. > My working name is RSPRO.ar7100pro.FreeBSD.Test and you can change the la= st > two words for sure. You mean the name of the file that mkfwimage generates? I just called it something like firmware-image... I changed the name, but still got: TFTPD: Incoming connection from 192.168.1.102:25789 Received: 6881688 bytes Invalid image format (error: -2) hmm... > > Regards, > Maciej Milewski > --=20 //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 10:36:34 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 B9C76106564A for ; Thu, 18 Nov 2010 10:36:34 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 73F828FC12 for ; Thu, 18 Nov 2010 10:36:34 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id DF30D61; Thu, 18 Nov 2010 11:36:32 +0100 (CET) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eAJKoTWs7Vvk; Thu, 18 Nov 2010 11:36:29 +0100 (CET) Received: from snifi.laptop (unknown [212.69.68.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id 963A33A; Thu, 18 Nov 2010 11:36:29 +0100 (CET) From: Maciej Milewski To: Monthadar Al Jaberi Date: Thu, 18 Nov 2010 11:36:46 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <201011180842.27427.milu@dat.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201011181136.47152.milu@dat.pl> Cc: freebsd-mips@freebsd.org Subject: Re: Re: 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: Thu, 18 Nov 2010 10:36:34 -0000 > Where can I find Adrian's mkfwimage? Maybe I missed something.... It was a while ago on Adrian's page although it's not there. > > If kernel needs padding to 64k maybe rootfs needs the same? I haven't > > tried yet with makefs but image with rootfs=65536 of 0's works. > > > How do you generate the filesystem then? I don't I use SD Card and/or USB drive on which I have fully working environment. For testing I use NFS boot. > And actually when I checked the makefile Adrian is refering to, they > made the filesystem padded by 128k and that I did to :) So that's OK. > > Do you have proper name of this fw image? I've read somewhere that it's > > required. > > My working name is RSPRO.ar7100pro.FreeBSD.Test and you can change the > > last two words for sure. > > You mean the name of the file that mkfwimage generates? > I just called it something like firmware-image... > > I changed the name, but still got: > TFTPD: Incoming connection from 192.168.1.102:25789 > Received: 6881688 bytes > Invalid image format (error: -2) Actually not the filename but if you run mkfwimage with parameters then you have the version string which in my case is as above. For building image I run: mkfwimage -v RSPRO.ar7100pro.FreeBSD.Test -B RSPRO -o image.bin -k kernel.gz\ -r rootfs Regards, Maciej Milewski From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 11:07:42 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 B3B29106564A for ; Thu, 18 Nov 2010 11:07:42 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5A6F48FC08 for ; Thu, 18 Nov 2010 11:07:41 +0000 (UTC) Received: by vws4 with SMTP id 4so1546696vws.13 for ; Thu, 18 Nov 2010 03:07:41 -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=QWniW5g/AwQtO4zUvepj6eKilkd48Dxdjssj5HmUxAI=; b=ogxcwUKyLaUNe3pzLBQIPGNF3VUnwbY+mPlbHaWdPs3XHPQJB0rSd17pEEYO+Xex9Y Dwyn+8ONK0pnONpJB/a2nsIr41KPJptA4HTNXcTV4ihkqB5GOa69qdHfI0L3n7fDAQjG ats51RtrzPj6ysNK0i+UkrEyUl/72nJXVF9MY= 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=k1bxRG/8qAjWnLiwbfG/lRaZgZdeP7w2i5yl4Qf2zdhT1QD8U/NeO5ehpqGNWP6ZIi ihKHInohoLiQkbPsFj7JxoG4f+NJW0UvoQLwLa7w2qnQRubFmFRy0cO0QNrZW+xpHDNL OpjK5gLlydE4GwCidVfW1B2YyhcceXhR6C4NQ= Received: by 10.220.72.198 with SMTP id n6mr127882vcj.80.1290078459633; Thu, 18 Nov 2010 03:07:39 -0800 (PST) Received: from [192.168.0.86] ([187.39.15.80]) by mx.google.com with ESMTPS id p28sm20471vcr.46.2010.11.18.03.07.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 18 Nov 2010 03:07:38 -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: <201011181136.47152.milu@dat.pl> Date: Thu, 18 Nov 2010 09:07:34 -0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201011180842.27427.milu@dat.pl> <201011181136.47152.milu@dat.pl> To: Maciej Milewski 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: Thu, 18 Nov 2010 11:07:42 -0000 On Nov 18, 2010, at 8:36 AM, Maciej Milewski wrote: >>> Do you have proper name of this fw image? I've read somewhere that = it's >>> required. >>> My working name is RSPRO.ar7100pro.FreeBSD.Test and you can change = the >>> last two words for sure. >>=20 >> You mean the name of the file that mkfwimage generates? >> I just called it something like firmware-image... >>=20 >> I changed the name, but still got: >> TFTPD: Incoming connection from 192.168.1.102:25789 >> Received: 6881688 bytes >> Invalid image format (error: -2) > Actually not the filename but if you run mkfwimage with parameters = then you=20 > have the version string which in my case is as above. >=20 > For building image I run: > mkfwimage -v RSPRO.ar7100pro.FreeBSD.Test -B RSPRO -o image.bin -k = kernel.gz\ > -r rootfs >=20 Yes, that is correct, i've used the following two version strings with = success: RS.ar7100.FreeBSD - for routerstation RSPRO.ar7100pro.FreeBSD - for rspro Just pick the correct one for your board. I've my scripts here (together with mkfwimage files): = /loos.no-ip.org:280/rspro/rs-mkfwimage.tar.gz Hope it helps. Cheers, Luiz From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 11:27:29 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 18A901065697 for ; Thu, 18 Nov 2010 11:27:29 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id A0DC88FC1F for ; Thu, 18 Nov 2010 11:27:28 +0000 (UTC) Received: from gw-lan1.kiev.dlink.ua ([192.168.10.10] helo=terran) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1PJ29f-00062p-G0; Thu, 18 Nov 2010 12:55:51 +0200 Date: Thu, 18 Nov 2010 12:58:12 +0200 From: Alexandr Rybalko To: Pierre Lamy Message-Id: <20101118125812.60e9aafc.ray@dlink.ua> In-Reply-To: <4CE491ED.3030308@userid.org> References: <4CE491ED.3030308@userid.org> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: What platforms are you running? 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: Thu, 18 Nov 2010 11:27:29 -0000 On Wed, 17 Nov 2010 21:39:41 -0500 Pierre Lamy wrote: >> I'm curious, what specific MIPS platforms will the -CURRENT tree run on, >> and what are you developing on? >> I'm using Broadcom BCM5354 and Ralink RT3052F. -- Alexandr Rybalko aka Alex RAY From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 12:43:53 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 369F010656A6 for ; Thu, 18 Nov 2010 12:43:53 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id DDFCC8FC1A for ; Thu, 18 Nov 2010 12:43:52 +0000 (UTC) Received: by qwd6 with SMTP id 6so199971qwd.13 for ; Thu, 18 Nov 2010 04:43:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=+gLHy7wi2jVEEC1lnsBdaDbiW7ax44ar2IwDoP6bOd0=; b=JzScaFn3EgbPskKl2atozTOAGFvUlU9Ty6y/5uVcMSoMoCV9FsSrSQoY+3bfc2RT4m kmSArmGLBpA9kIUuR5i20xi9CfCCPUpye3LrBfo+a9HaYpdHDipG0Iddwtnkk/Arz/F6 dwzxigULF72aYX0ZFmCT95JMSWy6XRjwSBjdw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=UklySzW4WaVL7mjzAkv8AsLY1VlejCRjC4tpHlwL+GY8oa5Y46gDVF7JjuWZ6kBf7U vEQuu4FEaK/S19ybXuzksSEYEBCFGQsrBYgKuFgvxD50a+RIIETxmBMwgFX2sfV1UBMz nPgqVm179dG8P88IP+w1lxf6rRFuVJsH9i32g= MIME-Version: 1.0 Received: by 10.229.189.207 with SMTP id df15mr529474qcb.299.1290084232167; Thu, 18 Nov 2010 04:43:52 -0800 (PST) Received: by 10.229.182.77 with HTTP; Thu, 18 Nov 2010 04:43:51 -0800 (PST) In-Reply-To: References: <201011180842.27427.milu@dat.pl> <201011181136.47152.milu@dat.pl> Date: Thu, 18 Nov 2010 13:43:51 +0100 Message-ID: From: Monthadar Al Jaberi To: Luiz Otavio O Souza Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Thu, 18 Nov 2010 12:43:53 -0000 OMG, thank you Luiz for the file.... Adrian forgot to mention that you need to add kern_memstart field to the fw_layout_data structure!!! Its works...so I guess to boot from flash we need to play with the flash driver and ffs... thats a totally different story though :P br, On Thu, Nov 18, 2010 at 12:07 PM, Luiz Otavio O Souza wrote: > On Nov 18, 2010, at 8:36 AM, Maciej Milewski wrote: > >>>> Do you have proper name of this fw image? I've read somewhere that it'= s >>>> required. >>>> My working name is RSPRO.ar7100pro.FreeBSD.Test and you can change the >>>> last two words for sure. >>> >>> You mean the name of the file that mkfwimage generates? >>> I just called it something like firmware-image... >>> >>> I changed the name, but still got: >>> TFTPD: Incoming connection from 192.168.1.102:25789 >>> Received: =A06881688 bytes >>> Invalid image format (error: -2) >> Actually not the filename but if you run mkfwimage with parameters then = you >> have the version string which in my case is as above. >> >> For building image I run: >> mkfwimage -v RSPRO.ar7100pro.FreeBSD.Test -B RSPRO -o image.bin -k kerne= l.gz\ >> -r rootfs >> > > > Yes, that is correct, i've used the following two version strings with su= ccess: > > RS.ar7100.FreeBSD - for routerstation > > RSPRO.ar7100pro.FreeBSD - for rspro > > Just pick the correct one for your board. > > I've my scripts here (together with mkfwimage files): /loos.no-ip.org:280= /rspro/rs-mkfwimage.tar.gz > > Hope it helps. > > Cheers, > Luiz > > --=20 //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Fri Nov 19 11:01:39 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 3AE871065670 for ; Fri, 19 Nov 2010 11:01:39 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (ns3.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id ABA118FC14 for ; Fri, 19 Nov 2010 11:01:37 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Fri, 19 Nov 2010 12:09:33 +0100 id 00033C1F.4CE65AED.000028C9 From: Milan Obuch To: freebsd-mips@freebsd.org Date: Fri, 19 Nov 2010 12:01:45 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011191201.47230.freebsd-mips@dino.sk> Cc: 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: Fri, 19 Nov 2010 11:01:39 -0000 On Thursday 18 November 2010 13:43:51 Monthadar Al Jaberi wrote: > OMG, thank you Luiz for the file.... Adrian forgot to mention that you > need to add kern_memstart field to the fw_layout_data structure!!! > > Its works...so I guess to boot from flash we need to play with the > flash driver and ffs... thats a totally different story though :P > Well, with mkfwimage it is possible to write FreeBSD into flash on RSPRO and boot from it. I just verified this. Using it the way it's used in mkflash script has one drawback, I think - your setup is static and you are not using whole flash to its best potential as well. Actually, with patches you are able to read flash (verified) and probably write to it, too, so the 'only' remaining part is ffs tuned to use it... Regards, Milan From owner-freebsd-mips@FreeBSD.ORG Fri Nov 19 11:06:15 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 50E78106564A for ; Fri, 19 Nov 2010 11:06:15 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 05F648FC14 for ; Fri, 19 Nov 2010 11:06:14 +0000 (UTC) Received: by qwb8 with SMTP id 8so14429qwb.13 for ; Fri, 19 Nov 2010 03:06:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=7Mm5k/dwZ/HT+X/pKZqBZQQD0zMg6djn16sG+LwfQSU=; b=Q346YGEtIexJAPDzjUZ0HezsQIu42PV+QIEl0svtP9Iu5OhXXuUvjHqRYfdLBAnrm9 ZDYtkrCqIABfk6pXag3m8DrcKCUj3SDdnycxjkF77AdUxdZ0Yh1FjT5lc7zCJBjadL0O dLKQ+JkxdHDDwKEgj3PJYJFvEvhlOivzsm+cg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=iu7pN+v4o8rbPMnKiZWl05Al0B5SldmFCNGebz3+trReYGiKhVyfbxwT1MROlhXX7Q rBSUxPfWnQ2TWHjZYYvha+Wg/FBYW6hc0Tlh2uIMVhKAQrdkuZACvUAxEaMP5q8Hr7Bi 5NlVu5lQs1W0jJ7fBPinbP9ngbqFl8Thyw5gE= MIME-Version: 1.0 Received: by 10.229.82.85 with SMTP id a21mr1717725qcl.71.1290164774071; Fri, 19 Nov 2010 03:06:14 -0800 (PST) Received: by 10.229.182.77 with HTTP; Fri, 19 Nov 2010 03:06:13 -0800 (PST) In-Reply-To: <201011191201.47230.freebsd-mips@dino.sk> References: <201011191201.47230.freebsd-mips@dino.sk> Date: Fri, 19 Nov 2010 12:06:13 +0100 Message-ID: From: Monthadar Al Jaberi To: Milan Obuch Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 19 Nov 2010 11:06:15 -0000 On Fri, Nov 19, 2010 at 12:01 PM, Milan Obuch wrote: > On Thursday 18 November 2010 13:43:51 Monthadar Al Jaberi wrote: >> OMG, thank you Luiz for the file.... Adrian forgot to mention that you >> need to add kern_memstart field to the fw_layout_data structure!!! >> >> Its works...so I guess to boot from flash we need to play with the >> flash driver and ffs... thats a totally different story though :P >> > > Well, with mkfwimage it is possible to write FreeBSD into flash on RSPRO and > boot from it. I just verified this. Using it the way it's used in mkflash > script has one drawback, I think - your setup is static and you are not using > whole flash to its best potential as well. Actually, with patches you are able > to read flash (verified) and probably write to it, too, so the 'only' > remaining part is ffs tuned to use it... mm, as I understood it it should be easy for ffs2 to work, just need to fix some macros so that the code that probes for the superblock work... reading/writting to flash with correct sectorsize is no problem.... > > Regards, > Milan > -- //Monthadar Al Jaberi