From owner-freebsd-mips@FreeBSD.ORG Sun Sep 11 15:05:55 2011 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 9ED8E106566C for ; Sun, 11 Sep 2011 15:05:55 +0000 (UTC) (envelope-from bpurgar@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 6545B8FC2F for ; Sun, 11 Sep 2011 15:05:55 +0000 (UTC) Received: by gyf2 with SMTP id 2so3227328gyf.13 for ; Sun, 11 Sep 2011 08:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=IP0wTf+chKtCWh9bRMFQNicRRu5tK2ZqbP75plb2GTY=; b=BN8ODJvickRHJmDqrjdNppU3op/B4HJfPhd2qoVbzoNiEJZ1EJvVwHFRoe+jwADUKT y7qDpI0remoIJj+TF92W7l8UPdrnnDVZDPIxYzdnwWdZkM0Wx9E0S+y3RDAfdRl3U0K3 kIIEuPSnltyf+4ca3as3t5uiOTCioLslJp1aQ= MIME-Version: 1.0 Received: by 10.68.4.105 with SMTP id j9mr3448402pbj.72.1315753055459; Sun, 11 Sep 2011 07:57:35 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Sun, 11 Sep 2011 07:57:35 -0700 (PDT) Date: Sun, 11 Sep 2011 16:57:35 +0200 Message-ID: From: Berislav Purgar To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: UBNT routerstation (non pro) % usb boot ?? 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, 11 Sep 2011 15:05:55 -0000 Hello .. I am interested in whether it is possible to boot rootfs from usb stick (rw) ?? Beri From owner-freebsd-mips@FreeBSD.ORG Sun Sep 11 15:59:11 2011 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 638A3106564A for ; Sun, 11 Sep 2011 15:59:11 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id ED8728FC14 for ; Sun, 11 Sep 2011 15:59:10 +0000 (UTC) Received: by fxg9 with SMTP id 9so407269fxg.13 for ; Sun, 11 Sep 2011 08:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4A7adLRKt/uienjTR889bOEYoHybRnp98EJjMY769J8=; b=PEuYj9Jz2s8uNQQFXZbi+OTMZdcnykWFr8wDp9tVHondyXIlrJ4Nk5R8OPAx21yh58 IsjvcaLqR+o1i1cqvaYcVI/gUqikljqPMqgBvcWfu58OOg4FJXGbWavtT2ZFe8tyPok5 7LzZnUdQbQIgus3YZWVHAdxWuEQ/NId4wEcis= MIME-Version: 1.0 Received: by 10.223.62.8 with SMTP id v8mr13846fah.43.1315755228102; Sun, 11 Sep 2011 08:33:48 -0700 (PDT) Received: by 10.152.23.135 with HTTP; Sun, 11 Sep 2011 08:33:47 -0700 (PDT) In-Reply-To: References: Date: Sun, 11 Sep 2011 11:33:47 -0400 Message-ID: From: Outback Dingo To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: UBNT routerstation (non pro) % usb boot ?? 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, 11 Sep 2011 15:59:11 -0000 On Sun, Sep 11, 2011 at 10:57 AM, Berislav Purgar wrote: > Hello .. > > I am interested in whether it is possible to boot rootfs from usb stick (rw) > ?? Yes, it is...... > > Beri > _______________________________________________ > 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" > From owner-freebsd-mips@FreeBSD.ORG Sun Sep 11 15:20:58 2011 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 B6E321065670 for ; Sun, 11 Sep 2011 15:20:58 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 950C18FC0C for ; Sun, 11 Sep 2011 15:20:58 +0000 (UTC) Received: by pzk33 with SMTP id 33so19263895pzk.18 for ; Sun, 11 Sep 2011 08:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=MuBO5BOatu0MBGX3MmccbHBnYKMHFIyx0u/oks8sd68=; b=jmTtiuhXrPMRJyVlv1LkiO4Q/jzlkQuvXNSszrrfc9c5UGrPHu07f1noewAYGcSDaV yhCP11Stgv7l4iqjlzs7Mf8CrFgKceaCgRVVtG5LRg5/z6gCUH4i98NwAu4qW23Hn9K+ e7jq06ohijgAf231+tmJ7cCA4LZAfS8GwSPDI= MIME-Version: 1.0 Received: by 10.68.36.227 with SMTP id t3mr3412080pbj.273.1315752876219; Sun, 11 Sep 2011 07:54:36 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Sun, 11 Sep 2011 07:54:36 -0700 (PDT) Date: Sun, 11 Sep 2011 16:54:36 +0200 Message-ID: From: Berislav Purgar To: freebsd-mips@freebsd.org X-Mailman-Approved-At: Sun, 11 Sep 2011 17:26:43 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: UBNT routerstation (non pro) & USB ?? 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, 11 Sep 2011 15:20:58 -0000 Hello .. I am interested in whether it is possible to boot rootfs from usb stick (rw) ?? Beri From owner-freebsd-mips@FreeBSD.ORG Sun Sep 11 17:34:19 2011 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 2540A106564A for ; Sun, 11 Sep 2011 17:34:19 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id EE3B78FC1B for ; Sun, 11 Sep 2011 17:34:18 +0000 (UTC) Received: by pzk33 with SMTP id 33so19687927pzk.18 for ; Sun, 11 Sep 2011 10:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TygCDCPmNJv9Rzz2zQECcQE2xSYVw8NGa3LSiO9cqm0=; b=aP/bucHUc31sdtJHlJmbTcYU8zC0dCX0pE3fVeqT9HnI2SLV135WlKwnbbwvDxbyu5 fTq7e0zUsu+VyvFYcvunZ5IcSUAITvVfG8TVPTmT3Zqu0jzZZmRm/KO2WbHXEY56l9hd XhWqhXHmAX+NOG8AAhQai2Su6JW1S25oYvGSk= MIME-Version: 1.0 Received: by 10.68.16.202 with SMTP id i10mr217055pbd.5.1315762458498; Sun, 11 Sep 2011 10:34:18 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Sun, 11 Sep 2011 10:34:18 -0700 (PDT) In-Reply-To: References: Date: Sun, 11 Sep 2011 19:34:18 +0200 Message-ID: From: Berislav Purgar To: Outback Dingo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: UBNT routerstation (non pro) % usb boot ?? 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, 11 Sep 2011 17:34:19 -0000 On Sun, Sep 11, 2011 at 6:26 PM, Berislav Purgar wrote: > > > On Sun, Sep 11, 2011 at 5:55 PM, Outback Dingo wrote: > >> On Sun, Sep 11, 2011 at 11:40 AM, Berislav Purgar >> wrote: >> > >> > >> > On Sun, Sep 11, 2011 at 5:33 PM, Outback Dingo >> > wrote: >> >> >> >> On Sun, Sep 11, 2011 at 10:57 AM, Berislav Purgar >> >> wrote: >> >> > Hello .. >> >> > >> >> > I am interested in whether it is possible to boot rootfs from usb >> stick >> >> > (rw) >> >> > ?? >> >> >> >> Yes, it is...... >> >> >> >> > >> >> > Beri >> >> > _______________________________________________ >> >> > 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" >> >> > >> > >> > >> > ok . can you explain me how ?? >> > i have build kernel with point to rootdev ufs:da0sa1 .. now i have to >> > create partition on usb stick .. ?? and after that i simply mount this >> > partition and copy buildworld on ?? >> >> basically yes..... i usually build world kernel on a bsd box and >> install to a mounted DESTDIR where the usb stick is mounted..... >> >> > >> > >> > > i have problem with mountpoint .. how can i create mountpoint / for da0s1a > ??? > > From owner-freebsd-mips@FreeBSD.ORG Sun Sep 11 18:57:07 2011 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 5487D1065676 for ; Sun, 11 Sep 2011 18:57:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f50.google.com (mail-vw0-f50.google.com [209.85.212.50]) by mx1.freebsd.org (Postfix) with ESMTP id 0C70A8FC12 for ; Sun, 11 Sep 2011 18:57:06 +0000 (UTC) Received: by vws14 with SMTP id 14so3636383vws.37 for ; Sun, 11 Sep 2011 11:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=o6/c2dwlE25O83vYpuZpbJ4xMiWlBCEh6GBQuq7szAY=; b=pNkzjJreoRdvWXhAL6LZm2ZZjmBpCFuWHbrR6j+nEyHEHo8ywAqoOVoyLUUHyOSbJM nkijaWKMDc4+f1W8go/mfqzdhYUEUVYCmRE7G9YNYEZlQsfjS2Da92InOpggwB9dVzwF JMbQJpv2yRZrKI4YxoYJaCQoVKdwLxU/Hsilk= MIME-Version: 1.0 Received: by 10.52.72.16 with SMTP id z16mr1287389vdu.395.1315765723017; Sun, 11 Sep 2011 11:28:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.161.138 with HTTP; Sun, 11 Sep 2011 11:28:42 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Sep 2011 02:28:42 +0800 X-Google-Sender-Auth: IwgXA6IClR_H3eCHTATVCIEmXPM Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: UBNT routerstation (non pro) % usb boot ?? 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, 11 Sep 2011 18:57:07 -0000 Hi, Yes. You can't boot the kernel from it (yet) but you can definitely mount a root fs. You have to make sure the right modules are in the kernel so it can see the USB stick. Other than that, it should just work these days. What do you mean by "create amountpoint for / for da0s1a" ? adrian From owner-freebsd-mips@FreeBSD.ORG Mon Sep 12 19:38:50 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C9FE106564A for ; Mon, 12 Sep 2011 19:38:50 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og124.obsmtp.com (exprod7og124.obsmtp.com [64.18.2.26]) by mx1.freebsd.org (Postfix) with ESMTP id 198AD8FC14 for ; Mon, 12 Sep 2011 19:38:49 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob124.postini.com ([64.18.6.12]) with SMTP ID DSNKTm5fyejMNX4ZFZpgXZNa0bhJps3hmn+1@postini.com; Mon, 12 Sep 2011 12:38:50 PDT Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB02-HQ.jnpr.net (172.24.192.36) with Microsoft SMTP Server (TLS) id 8.3.83.0; Mon, 12 Sep 2011 12:35:19 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe01-wf.jnpr.net ([fe80::d0d1:653d:5b91:a123%11]) with mapi; Mon, 12 Sep 2011 15:35:19 -0400 From: Andrew Duane To: "mips@freebsd.org" Date: Mon, 12 Sep 2011 15:35:15 -0400 Thread-Topic: Things to tackle in the MIPS space? Thread-Index: AcxxgxiHpBm61lYhRC+84EDXRqgFMg== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {438B8B97-7F98-4731-A382-F12A18D0C67A} x-cr-hashedpuzzle: BTv2 B1CK DImF DJZU ELD+ Eauf Ea1W FhnJ FlbN Fxk5 GTHT G6BE HET6 HXTY HnX8 I0xb; 1; bQBpAHAAcwBAAGYAcgBlAGUAYgBzAGQALgBvAHIAZwA=; Sosha1_v1; 7; {438B8B97-7F98-4731-A382-F12A18D0C67A}; YQBkAHUAYQBuAGUAQABqAHUAbgBpAHAAZQByAC4AbgBlAHQA; Mon, 12 Sep 2011 19:35:15 GMT; VABoAGkAbgBnAHMAIAB0AG8AIAB0AGEAYwBrAGwAZQAgAGkAbgAgAHQAaABlACAATQBJAFAAUwAgAHMAcABhAGMAZQA/AA== acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Things to tackle in the MIPS space? 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: Mon, 12 Sep 2011 19:38:50 -0000 Now that I've pushed a lot of my Octeon startup work (and some general clea= nups), I'd like to start moving into more beefy work. There are a couple of TODO list items (and one or two not on the list) that= strike my fancy: 1) USB support. The list says "a driver using the simple exec was committed= , but". I suspect the "but" it "but it doesn't work. 2) Ehternet support. Also apparently broken, although I know little about E= NET and PHYs and such. We do have people here who do though. 3) FDT. This is something I expect to be actively working on in the immedia= te future. Other than JC's work on XLP, is there any action here? 4) General SoC/Chip/Platform cleanup. This is something I always like worki= ng on, although given my new-ness to FreeBSD perhaps not a best choice? 5) Another Octeon bootstrap. When I initially discussed my bootstrap/bootin= fo changes, there was some thought about offering up my bootstrap. It's kin= d of specific-purpose, but there are parts that could be adapted into a nic= e embedded Octeon bootstrap platform. ................................... Andrew Duane Juniper Networks o +1 978 589 0551 m +1 603-770-7088 aduane@juniper.net From owner-freebsd-mips@FreeBSD.ORG Mon Sep 12 19:55:52 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AFF41065676 for ; Mon, 12 Sep 2011 19:55:52 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9AC558FC18 for ; Mon, 12 Sep 2011 19:55:51 +0000 (UTC) Received: by mail-ww0-f50.google.com with SMTP id 3so2579828wwe.31 for ; Mon, 12 Sep 2011 12:55:51 -0700 (PDT) Received: by 10.227.20.77 with SMTP id e13mr459239wbb.97.1315857351100; Mon, 12 Sep 2011 12:55:51 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.227.117.8 with HTTP; Mon, 12 Sep 2011 12:55:31 -0700 (PDT) In-Reply-To: References: From: Juli Mallett Date: Mon, 12 Sep 2011 12:55:31 -0700 X-Google-Sender-Auth: oakcVz4E8Iuag-6FE0F_rvqDDJI Message-ID: To: Andrew Duane Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "mips@freebsd.org" Subject: Re: Things to tackle in the MIPS space? 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: Mon, 12 Sep 2011 19:55:52 -0000 On Mon, Sep 12, 2011 at 12:35, Andrew Duane wrote: > Now that I've pushed a lot of my Octeon startup work (and some general cl= eanups), I'd like to start moving into more beefy work. > > There are a couple of TODO list items (and one or two not on the list) th= at strike my fancy: > > 1) USB support. The list says "a driver using the simple exec was committ= ed, but". I suspect the "but" it "but it doesn't work. The USB driver using the Simple Executive is incompletely-tested. If you were willing to put time into it, I know hps@ is willing to see through work to get it going the rest of the way, and I'm sure he would love to work with someone who was investing time testing it and getting it into better shape. Someone else has talked about porting the DWC OTG USB driver which Linux uses to access the on-chip USB, but it didn't sound like their work was progressing very seriously. This may be something you'd like to investigate, or perhaps just do an OTG driver for the on-chip USB from scratch. How hard can it be? :) There is a driver for Octeon 2 boards that use ehci, etc., but it requires reimplementing a small amount of code that was previously derived from Linux, and not committed as a result. I don't know if you are using hardware for which it matters, though. > 2) Ehternet support. Also apparently broken, although I know little about= ENET and PHYs and such. We do =C2=A0have people here who do though. Um, what happened to Ethernet support? It worked and worked quite well the last time I touched it. Performance could be better, but improving performance of the Ethernet driver would probably be a pretty nasty way to learn about how Ethernet drivers work. (Namely because it's easy to make the performance much better for a single case and a lot worse for every other one.) You shouldn't need to know anything much about how the PHYs work, though. > 3) FDT. This is something I expect to be actively working on in the immed= iate future. Other than JC's work on XLP, is there any action here? > 4) General SoC/Chip/Platform cleanup. This is something I always like wor= king on, although given my new-ness to FreeBSD perhaps not a best choice? I think it's a fine starting point, but it's also a place where it's easy to do things in a pretty crappy way because they tend to be done in pretty crappy ways just about everywhere. If you want something related to this that has a lot of value on Octeon, I'd suggest looking at saving and restoring coprocessor registers (similarly to how FPU state is managed on amd64, for instance, allowing for lazy context switching by disabling CP[n] access and also allowing for kernel to save and restore state explicitly so it can use coprocessor functions if desired.) Gonzo and I were working on this for the crypto accelerator, which currently has to be run with interrupts disabled and thus kind of sucks for non-bulk options, and I believe he has largely-complete patches. Finishing his work would be a couple of days work for a real gain. And then just another couple of days to turn that into something which allows the various platforms to configure their own auxiliary coprocessors, which I am sure would be generally useful. As part of this, you could probably complete FP support, though of course Octeon doesn't have FP (right?) > 5) Another Octeon bootstrap. When I initially discussed my bootstrap/boot= info changes, there was some thought about offering up my bootstrap. It's k= ind of specific-purpose, but there are parts that could be adapted into a n= ice embedded Octeon bootstrap platform. It might be worth taking some of that work and turning it into /boot/loader for Octeon, which even on systems with U-Boot would mean better access to modules, tunables and UFS, and I suspect loader would fit in most boards' NAND flash, which would be really nice. I'd add an item for Octeon which is actually several items, and depends what hardware you have available: Write drivers for hosting an Octeon board as a PCI device on a FreeBSD system. Write drivers to support running Octeon as a PCI device, rather than just host. Improve/finish PCI/PCIe host support. This is probably just a matter of disentangling how the Linux PCI bus layer and a single Linux PCI device driver on Octeon function, as I suspect our problem is just that we're not swapping address bits, are improperly byte-swapping, are accessing devices at the wrong address, are handling DMA wrong, are using the wrong cache coherency attribute for device memory, or something else like that that would be trivial and obvious if you really dissected a working system. I've done a bunch of work on that in the past, but had to drop my Octeon time pretty much entirely, tried to pay someone to finish it, etc., and the result is that nothing much has happened this year. Thanks, Juli. From owner-freebsd-mips@FreeBSD.ORG Mon Sep 12 20:53:51 2011 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 719B81065670; Mon, 12 Sep 2011 20:53:51 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og113.obsmtp.com (exprod7og113.obsmtp.com [64.18.2.179]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC5F8FC0C; Mon, 12 Sep 2011 20:53:46 +0000 (UTC) Received: from P-EMHUB03-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob113.postini.com ([64.18.6.12]) with SMTP ID DSNKTm5xWhc3HhIWRVKxC5eDLGX0DxFe5os8@postini.com; Mon, 12 Sep 2011 13:53:50 PDT Received: from p-emfe02-wf.jnpr.net (172.28.145.25) by P-EMHUB03-HQ.jnpr.net (172.24.192.37) with Microsoft SMTP Server (TLS) id 8.3.83.0; Mon, 12 Sep 2011 13:50:30 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe02-wf.jnpr.net ([fe80::c126:c633:d2dc:8090%11]) with mapi; Mon, 12 Sep 2011 16:50:29 -0400 From: Andrew Duane To: Juli Mallett Date: Mon, 12 Sep 2011 16:50:28 -0400 Thread-Topic: Things to tackle in the MIPS space? Thread-Index: AcxxhfvVaZmKDcIUTPCPA1t7BP9gGQABSwIg Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "mips@freebsd.org" Subject: RE: Things to tackle in the MIPS space? 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: Mon, 12 Sep 2011 20:53:51 -0000 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBqdWxpQGNsb2Nrd29ya3NxdWlk LmNvbSBbbWFpbHRvOmp1bGlAY2xvY2t3b3Jrc3F1aWQuY29tXSBPbg0KPiBCZWhhbGYgT2YgSnVs aSBNYWxsZXR0DQo+IFNlbnQ6IE1vbmRheSwgU2VwdGVtYmVyIDEyLCAyMDExIDM6NTYgUE0NCj4g VG86IEFuZHJldyBEdWFuZQ0KPiBDYzogbWlwc0BmcmVlYnNkLm9yZw0KPiBTdWJqZWN0OiBSZTog VGhpbmdzIHRvIHRhY2tsZSBpbiB0aGUgTUlQUyBzcGFjZT8NCj4gDQo+IE9uIE1vbiwgU2VwIDEy LCAyMDExIGF0IDEyOjM1LCBBbmRyZXcgRHVhbmUgPGFkdWFuZUBqdW5pcGVyLm5ldD4gd3JvdGU6 DQo+ID4gTm93IHRoYXQgSSd2ZSBwdXNoZWQgYSBsb3Qgb2YgbXkgT2N0ZW9uIHN0YXJ0dXAgd29y ayAoYW5kIHNvbWUNCj4gPiBnZW5lcmFsIGNsZWFudXBzKSwgSSdkIGxpa2UgdG8gc3RhcnQgbW92 aW5nIGludG8gbW9yZSBiZWVmeSB3b3JrLg0KPiA+DQo+ID4gVGhlcmUgYXJlIGEgY291cGxlIG9m IFRPRE8gbGlzdCBpdGVtc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iB0aW1lDQo+IHByZXR0 eSBtdWNoIGVudGlyZWx5LCB0cmllZCB0byBwYXkgc29tZW9uZSB0byBmaW5pc2ggaXQsIGV0Yy4s IGFuZCB0aGUNCj4gcmVzdWx0IGlzIHRoYXQgbm90aGluZyBtdWNoIGhhcyBoYXBwZW5lZCB0aGlz IHllYXIuDQoNClVoLCBvaCwgSSd2ZSBzdGFydGVkIHJ1bm5pbmcgb3V0IG9mIGV4Y3VzZXMgbm90 IHRvIHRvdWNoIHRoZSBQQ0kgc3R1ZmYuIFdlIGRvbid0IGhhdmUgYW55IFBDSSBidXNzZXMgb24g b3VyIHBsYXRmb3JtcywgZXhjZXB0IHNvbWUgaW50ZXJuYWwgc3R1ZmYuIFdlIHB1dCB0d28gY2hp cHMgb24gdGhlIGJ1czogYSBoYXJkd2FyZSBwYWNrZXQgYWNjZWxlcmF0b3IgRlBHQSwgYW5kIGFu IElEUCBwcm9jZXNzb3IuIE91ciBuZWVkcyBhcmUgcHJldHR5IG1vZGVzdCBmb3IgdGhhdC4gSUlS QyB0aG91Z2gsIHRoZSBGUEdBIGhhcyBzb21lIGRlYnVnIGNvZGUgdGhhdCBjYW4gZnVuY3Rpb24g YXMgYSBzb3J0IG9mIFBDSSBidXMgYW5hbHl6ZXIsIGtlZXBpbmcgdHJhY2sgb2YgdGhlIHRyYW5z YWN0aW9ucyB0aGF0IGNvbWUgYWNyb3NzLg0KDQoNCiAuLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u Li4uLi4uLi4uLg0KQW5kcmV3IER1YW5lDQpKdW5pcGVyIE5ldHdvcmtzDQpvICAgKzEgOTc4IDU4 OSAwNTUxDQptICArMSA2MDMtNzcwLTcwODgNCmFkdWFuZUBqdW5pcGVyLm5ldA0KDQoNCg== From owner-freebsd-mips@FreeBSD.ORG Mon Sep 12 21:02:38 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 839C11065670 for ; Mon, 12 Sep 2011 21:02:38 +0000 (UTC) (envelope-from juli@clockworksquid.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 207D08FC1A for ; Mon, 12 Sep 2011 21:02:37 +0000 (UTC) Received: by wyh15 with SMTP id 15so5063613wyh.13 for ; Mon, 12 Sep 2011 14:02:37 -0700 (PDT) Received: by 10.227.24.73 with SMTP id u9mr228731wbb.82.1315861357095; Mon, 12 Sep 2011 14:02:37 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.227.117.8 with HTTP; Mon, 12 Sep 2011 14:02:17 -0700 (PDT) In-Reply-To: References: From: Juli Mallett Date: Mon, 12 Sep 2011 14:02:17 -0700 X-Google-Sender-Auth: sav40ndFFDIRRWO23L4jWanjEBw Message-ID: To: Andrew Duane Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "mips@freebsd.org" Subject: Re: Things to tackle in the MIPS space? 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: Mon, 12 Sep 2011 21:02:38 -0000 On Mon, Sep 12, 2011 at 13:50, Andrew Duane wrote: >> > 2) Ehternet support. Also apparently broken, although I know little >> > about ENET and PHYs and such. We do=C2=A0have people here who do thoug= h. >> >> Um, what happened to Ethernet support? =C2=A0It worked and worked quite >> well the last time I touched it. =C2=A0Performance could be better, but >> improving performance of the Ethernet driver would probably be a >> pretty nasty way to learn about how Ethernet drivers work. =C2=A0(Namely >> because it's easy to make the performance much better for a single >> case and a lot worse for every other one.) =C2=A0You shouldn't need to k= now >> anything much about how the PHYs work, though. > > Someone told me it was broken so I never turned it on. Something tells me= we'll need Ethernet drivers around here, although we actually have things = other than the kernel that use them. Don=E2=80=99t ask. I'll try turning th= em on an see how far I get on my blade. I hope it wasn't someone at FreeBSD.org spreading that FUD :) It may be that your board requires some extra configuration in the Simple Executive code. This actually isn't too painful, usually, even on really bizarre boards (although I do have one board that's pretty much a lost cause because of the amount of engineering required and the minimal returns in terms of user interest.) > The cleanup I'm always happy to help in, I have kinda of a "thing" about = messy code. Good! Welcome to FreeBSD/MIPS, we brought over a lot of cruft in borrowing code from sources that were derived from an operating system you've probably never heard of :) If you want to clean up mess that's totally gratuitously-bad and not actually *very* hard to get right, I suggest looking at the exception vector code. If you don't want to try to replace all of that, you could replace it with a simpler variant for mips{32,64}r2 ISAs that uses the exception shadow registers, and enable that optionally on Octeon. Should be a huge gain for exception handling performance. >> It might be worth taking some of that work and turning it into >> /boot/loader for Octeon, which even on systems with U-Boot would mean >> better access to modules, tunables and UFS, and I suspect loader would >> fit in most boards' NAND flash, which would be really nice. > > Actually, my bootstrap doesn't use the loader at all (we had a specific r= equirement about that), but I wouldn't mind generalizing it. Much of the co= de in it was derived from the Cavium SDK, so it should be usable in FreeBSD= , right? A hesitant "right". We'd prefer to keep Cavium-derived code to the Simple Executive if at all possible, especially since could sometimes borrow without realizing from Linux, and then we'd be in a little bit of a mess from using their code. Cavium-derived code from U-Boot or Linux, even if Cavium is not GPLing it themselves, should be treated with extreme caution. I suspect you could just use the Simple Executive for loader, too? > Bootstraps tend to be one of my better areas, and it seems to me that it = was mentioned that we are lacking in that area. Cool! > Uh, oh, I've started running out of excuses not to touch the PCI stuff. W= e don't have any PCI busses on our platforms, except some internal stuff. W= e put two chips on the bus: a hardware packet accelerator FPGA, and an IDP = processor. Our needs are pretty modest for that. IIRC though, the FPGA has = some debug code that can function as a sort of PCI bus analyzer, keeping tr= ack of the transactions that come across. Ah, right, I keep forgetting that you don't use PCI at all, either as a host or target :) I have some weird Octeon hardware coming soon where the devices are on a PCI bus, so I'll likely need to bite some of those bullets, or resign myself to using Linux on my local management processor, which seems undesirable. From owner-freebsd-mips@FreeBSD.ORG Mon Sep 12 21:43:45 2011 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95FCC106564A; Mon, 12 Sep 2011 21:43:45 +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 52CE78FC08; Mon, 12 Sep 2011 21:43:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p8CLav8A033043; Mon, 12 Sep 2011 15:36:59 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Mon, 12 Sep 2011 16:36:50 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <130096A5-D938-4140-9B59-0CDDE1C8029A@bsdimp.com> References: To: Juli Mallett X-Mailer: Apple Mail (2.1084) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [127.0.0.1]); Mon, 12 Sep 2011 15:36:59 -0600 (MDT) Cc: "mips@freebsd.org" Subject: Re: Things to tackle in the MIPS space? 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: Mon, 12 Sep 2011 21:43:45 -0000 On Sep 12, 2011, at 2:55 PM, Juli Mallett wrote: >> 2) Ehternet support. Also apparently broken, although I know little = about ENET and PHYs and such. We do have people here who do though. >=20 > Um, what happened to Ethernet support? It worked and worked quite > well the last time I touched it. Performance could be better, but > improving performance of the Ethernet driver would probably be a > pretty nasty way to learn about how Ethernet drivers work. (Namely > because it's easy to make the performance much better for a single > case and a lot worse for every other one.) You shouldn't need to know > anything much about how the PHYs work, though. My experience has been mixed. Some boards work great w/o any tweaking = at all. Others don't work at all. Sadly, I've sent back the board I = have that worked and just have one that doesn't work. Warner From owner-freebsd-mips@FreeBSD.ORG Mon Sep 12 23:17:46 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A87111065702 for ; Mon, 12 Sep 2011 23:17:46 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 448CD8FC0A for ; Mon, 12 Sep 2011 23:17:46 +0000 (UTC) Received: by wwe3 with SMTP id 3so2777678wwe.31 for ; Mon, 12 Sep 2011 16:17:45 -0700 (PDT) Received: by 10.227.59.83 with SMTP id k19mr620637wbh.67.1315869465185; Mon, 12 Sep 2011 16:17:45 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.227.117.8 with HTTP; Mon, 12 Sep 2011 16:17:25 -0700 (PDT) In-Reply-To: <130096A5-D938-4140-9B59-0CDDE1C8029A@bsdimp.com> References: <130096A5-D938-4140-9B59-0CDDE1C8029A@bsdimp.com> From: Juli Mallett Date: Mon, 12 Sep 2011 16:17:25 -0700 X-Google-Sender-Auth: jkW0wq77dBhKECeRtwDvnPmJ2PM Message-ID: To: Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "mips@freebsd.org" Subject: Re: Things to tackle in the MIPS space? 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: Mon, 12 Sep 2011 23:17:46 -0000 On Mon, Sep 12, 2011 at 14:36, Warner Losh wrote: > > On Sep 12, 2011, at 2:55 PM, Juli Mallett wrote: >>> 2) Ehternet support. Also apparently broken, although I know little abo= ut ENET and PHYs and such. We do =C2=A0have people here who do though. >> >> Um, what happened to Ethernet support? =C2=A0It worked and worked quite >> well the last time I touched it. =C2=A0Performance could be better, but >> improving performance of the Ethernet driver would probably be a >> pretty nasty way to learn about how Ethernet drivers work. =C2=A0(Namely >> because it's easy to make the performance much better for a single >> case and a lot worse for every other one.) =C2=A0You shouldn't need to k= now >> anything much about how the PHYs work, though. > > My experience has been mixed. =C2=A0Some boards work great w/o any tweaki= ng at all. =C2=A0Others don't work at all. =C2=A0Sadly, I've sent back the = board I have that worked and just have one that doesn't work. For the sake of not sewing unnecessary confusion on the list, I just want to add that this is almost certainly because of deficiencies in board support code in the Simple Executive, which I'm happy to help fix for boards that have patches against any version of the Cavium SDK/Linux, than because the driver doesn't work, as was intimated earlier. From owner-freebsd-mips@FreeBSD.ORG Tue Sep 13 11:25:41 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A551106564A for ; Tue, 13 Sep 2011 11:25:41 +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 C94738FC1A for ; Tue, 13 Sep 2011 11:25:39 +0000 (UTC) Received: from gw-lan1.kiev.dlink.ua ([192.168.10.10] helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1R3Qfh-0002v3-FX; Tue, 13 Sep 2011 13:56:57 +0300 Date: Tue, 13 Sep 2011 13:57:27 +0300 From: Aleksandr Rybalko To: Juli Mallett Message-Id: <20110913135727.ad184c97.ray@dlink.ua> In-Reply-To: References: 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=UTF-8 Content-Transfer-Encoding: 8bit Cc: "mips@freebsd.org" Subject: Re: Things to tackle in the MIPS space? 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, 13 Sep 2011 11:25:41 -0000 On Mon, 12 Sep 2011 12:55:31 -0700 Juli Mallett wrote: >> On Mon, Sep 12, 2011 at 12:35, Andrew Duane >> wrote: >> > Now that I've pushed a lot of my Octeon startup work (and some >> > general cleanups), I'd like to start moving into more beefy work. >> > >> > There are a couple of TODO list items (and one or two not on the >> > list) that strike my fancy: >> > >> > 1) USB support. The list says "a driver using the simple exec was >> > committed, but". I suspect the "but" it "but it doesn't work. >> >> The USB driver using the Simple Executive is incompletely-tested. If >> you were willing to put time into it, I know hps@ is willing to see >> through work to get it going the rest of the way, and I'm sure he >> would love to work with someone who was investing time testing it and >> getting it into better shape. >> >> Someone else has talked about porting the DWC OTG USB driver which >> Linux uses to access the on-chip USB, but it didn't sound like their >> work was progressing very seriously. This may be something you'd >> like to investigate, or perhaps just do an OTG driver for the >> on-chip USB from scratch. How hard can it be? :) It's me :) my DWC OTG driver works fine for 3G modems with USB2.0 interface, but not for USB1.2(lack of SPLIT transaction support if HUB used and lack of data to proper setup root port into USB1.2) I wrote driver using Cavium code and RT3052F(chopped version) datasheet. But obviously it don't work on Octeon's yet 1. don't support 64 bit DMA 2. don't found what i need to do to activate OTG controller Patch here http://my.ddteam.net/files/2011-01-17_dotg.patch >> >> There is a driver for Octeon 2 boards that use ehci, etc., but it >> requires reimplementing a small amount of code that was previously >> derived from Linux, and not committed as a result. I don't know if >> you are using hardware for which it matters, though. >> >> > 2) Ehternet support. Also apparently broken, although I know >> > little about ENET and PHYs and such. We do  have people here who >> > do though. >> >> Um, what happened to Ethernet support? It worked and worked quite >> well the last time I touched it. Performance could be better, but >> improving performance of the Ethernet driver would probably be a >> pretty nasty way to learn about how Ethernet drivers work. (Namely >> because it's easy to make the performance much better for a single >> case and a lot worse for every other one.) You shouldn't need to >> know anything much about how the PHYs work, though. >> >> > 3) FDT. This is something I expect to be actively working on in >> > the immediate future. Other than JC's work on XLP, is there any >> > action here? >> > 4) General SoC/Chip/Platform cleanup. This is something I always >> > like working on, although given my new-ness to FreeBSD perhaps not >> > a best choice? >> >> I think it's a fine starting point, but it's also a place where it's >> easy to do things in a pretty crappy way because they tend to be done >> in pretty crappy ways just about everywhere. If you want something >> related to this that has a lot of value on Octeon, I'd suggest >> looking at saving and restoring coprocessor registers (similarly to >> how FPU state is managed on amd64, for instance, allowing for lazy >> context switching by disabling CP[n] access and also allowing for >> kernel to save and restore state explicitly so it can use >> coprocessor functions if desired.) Gonzo and I were working on this >> for the crypto accelerator, which currently has to be run with >> interrupts disabled and thus kind of sucks for non-bulk options, and >> I believe he has largely-complete patches. Finishing his work would >> be a couple of days work for a real gain. And then just another >> couple of days to turn that into something which allows the various >> platforms to configure their own auxiliary coprocessors, which I am >> sure would be generally useful. As part of this, you could probably >> complete FP support, though of course Octeon doesn't have FP (right?) >> >> > 5) Another Octeon bootstrap. When I initially discussed my >> > bootstrap/bootinfo changes, there was some thought about offering >> > up my bootstrap. It's kind of specific-purpose, but there are >> > parts that could be adapted into a nice embedded Octeon bootstrap >> > platform. >> >> It might be worth taking some of that work and turning it into >> /boot/loader for Octeon, which even on systems with U-Boot would mean >> better access to modules, tunables and UFS, and I suspect loader >> would fit in most boards' NAND flash, which would be really nice. >> >> I'd add an item for Octeon which is actually several items, and >> depends what hardware you have available: >> >> Write drivers for hosting an Octeon board as a PCI device on a >> FreeBSD system. Write drivers to support running Octeon as a PCI >> device, rather than just host. Improve/finish PCI/PCIe host >> support. This is probably just a matter of disentangling how the >> Linux PCI bus layer and a single Linux PCI device driver on Octeon >> function, as I suspect our problem is just that we're not swapping >> address bits, are improperly byte-swapping, are accessing devices at >> the wrong address, are handling DMA wrong, are using the wrong cache >> coherency attribute for device memory, or something else like that >> that would be trivial and obvious if you really dissected a working >> system. I've done a bunch of work on that in the past, but had to >> drop my Octeon time pretty much entirely, tried to pay someone to >> finish it, etc., and the result is that nothing much has happened >> this year. >> >> Thanks, >> Juli. >> _______________________________________________ >> 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" -- Alexandr Rybalko aka Alex RAY From owner-freebsd-mips@FreeBSD.ORG Fri Sep 16 12:30:08 2011 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 71B4D106566B for ; Fri, 16 Sep 2011 12:30:08 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-gw0-f50.google.com (mail-gw0-f50.google.com [74.125.83.50]) by mx1.freebsd.org (Postfix) with ESMTP id 37E328FC08 for ; Fri, 16 Sep 2011 12:30:08 +0000 (UTC) Received: by gwj16 with SMTP id 16so3826017gwj.37 for ; Fri, 16 Sep 2011 05:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=0EYxU0EcbDdpOyyrt/lNUbpFtuxNdpgIFwueQDeK18I=; b=WmZo5LrccuivV6yRHxYepqI46z3vcmGjhySLRVTpXIhdBoy4TQBfwwV1HHTXI4nuXW dwerLJToDLyQOs6M4j3bu2XEcr4NGqZqtr75wtYOP9YerlwpEo2jB2AtcZI37YskgP80 tDIT4/riEAUo5O5eQa5tTKCUb+Q98ExBxrdjk= MIME-Version: 1.0 Received: by 10.68.24.7 with SMTP id q7mr1119001pbf.402.1316176207282; Fri, 16 Sep 2011 05:30:07 -0700 (PDT) Received: by 10.142.143.15 with HTTP; Fri, 16 Sep 2011 05:30:07 -0700 (PDT) Date: Fri, 16 Sep 2011 14:30:07 +0200 Message-ID: From: Berislav Purgar To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ubnt routerstation and lan ports ?? 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, 16 Sep 2011 12:30:08 -0000 Hello I have a problem with the LAN ports. I tried straight through and crossover cable but not working. When i conenct laptop - RS with straight cable green LED is on but ping does not pass. When i use crossover cable green LED is off and same thing (settings for arge1 and laptop sis0 are OK). WAN port works OK. Is it a problem in the drivers or i do something wrong? Thanks! From owner-freebsd-mips@FreeBSD.ORG Fri Sep 16 12:43:10 2011 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 1DFC01065670 for ; Fri, 16 Sep 2011 12:43:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id D4A868FC17 for ; Fri, 16 Sep 2011 12:43:09 +0000 (UTC) Received: by ywp17 with SMTP id 17so3562960ywp.13 for ; Fri, 16 Sep 2011 05:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=LXO3v+pKU8p1iuywMPaNVwRIrZlY+LufWkF++GFFJ3Q=; b=cdG21SLAqQC7+lpYeMKKq/mYpSQo8J6CeXtLckaLYm+upDxgo5yRaAV7i5s/Db7ST+ +w0XTwX8sAbPPSLZ8ody0bYe6va2GEuUSFi027+XZGN/9cMv1DSMdd99dGQtq9AHez+z pxhTmntS8+HN110injc7YlbHxJA7bxa+uYqtc= MIME-Version: 1.0 Received: by 10.236.177.73 with SMTP id c49mr14309544yhm.89.1316176988947; Fri, 16 Sep 2011 05:43:08 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Fri, 16 Sep 2011 05:43:08 -0700 (PDT) In-Reply-To: References: Date: Fri, 16 Sep 2011 20:43:08 +0800 X-Google-Sender-Auth: F7FmGhFza9-kgI01sITW_77pmrM Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: ubnt routerstation and lan ports ?? 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, 16 Sep 2011 12:43:10 -0000 You have to make sure you read the .hints kernel config file and set the appropriate hints for arge0/arge1. Unfortunately there's no support for the bridge/switch PHYs in FreeBSD at the moment and so the evil workaround is to set the relevant PHY mask bits so the right PHY bits get enabled and the ports work. Adrian From owner-freebsd-mips@FreeBSD.ORG Fri Sep 16 18:00:00 2011 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87A921065670 for ; Fri, 16 Sep 2011 18:00:00 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og126.obsmtp.com (exprod7og126.obsmtp.com [64.18.2.206]) by mx1.freebsd.org (Postfix) with ESMTP id 2371C8FC1B for ; Fri, 16 Sep 2011 17:59:59 +0000 (UTC) Received: from P-EMHUB03-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob126.postini.com ([64.18.6.12]) with SMTP ID DSNKTnOOnlOxORhNi81HNwiZIzGD8DB7gZn6@postini.com; Fri, 16 Sep 2011 11:00:00 PDT Received: from p-emfe02-wf.jnpr.net (172.28.145.25) by P-EMHUB03-HQ.jnpr.net (172.24.192.37) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 16 Sep 2011 10:57:16 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe02-wf.jnpr.net ([fe80::c126:c633:d2dc:8090%11]) with mapi; Fri, 16 Sep 2011 13:57:15 -0400 From: Andrew Duane To: "mips@freebsd.org" Date: Fri, 16 Sep 2011 13:57:13 -0400 Thread-Topic: kernel backtracing from DB on MIPS Thread-Index: Acx0mhAf0K1tDH9aQoSmIhzmxCXR7Q== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: kernel backtracing from DB on MIPS 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, 16 Sep 2011 18:00:00 -0000 Is it just me, or is it rather broken, at least for mips64eb? I'm doing som= e kernel work on Octeon, and I get relatively useless and rather untrustwor= thy information from db when I panic. ................................... Andrew Duane Juniper Networks o +1 978 589 0551 m +1 603-770-7088 aduane@juniper.net From owner-freebsd-mips@FreeBSD.ORG Fri Sep 16 18:04:18 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9A6C1065689 for ; Fri, 16 Sep 2011 18:04:18 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 48D0A8FC2C for ; Fri, 16 Sep 2011 18:04:17 +0000 (UTC) Received: by wwe3 with SMTP id 3so5155666wwe.31 for ; Fri, 16 Sep 2011 11:04:17 -0700 (PDT) Received: by 10.227.41.198 with SMTP id p6mr1909917wbe.67.1316196257044; Fri, 16 Sep 2011 11:04:17 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.227.117.8 with HTTP; Fri, 16 Sep 2011 11:03:57 -0700 (PDT) In-Reply-To: References: From: Juli Mallett Date: Fri, 16 Sep 2011 11:03:57 -0700 X-Google-Sender-Auth: 7p_Jp2dDxMiFavaNvfe9rYDKogs Message-ID: To: Andrew Duane Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "mips@freebsd.org" Subject: Re: kernel backtracing from DB on MIPS 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, 16 Sep 2011 18:04:18 -0000 I had incomplete patches I didn't quite commit and don't remember why. The relevant code is thankfully not very complicated. I think JC may've looked at it. On Fri, Sep 16, 2011 at 10:57, Andrew Duane wrote: > Is it just me, or is it rather broken, at least for mips64eb? I'm doing s= ome kernel work on Octeon, and I get relatively useless and rather untrustw= orthy information from db when I panic. > > =C2=A0................................... > > Andrew Duane > Juniper Networks > o =C2=A0 +1 978 589 0551 > m =C2=A0+1 603-770-7088 > aduane@juniper.net > > > > > > _______________________________________________ > 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" > From owner-freebsd-mips@FreeBSD.ORG Fri Sep 16 21:31:07 2011 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 1C1581065673; Fri, 16 Sep 2011 21:31:07 +0000 (UTC) (envelope-from bpurgar@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 BB52D8FC12; Fri, 16 Sep 2011 21:31:06 +0000 (UTC) Received: by gyf2 with SMTP id 2so4018672gyf.13 for ; Fri, 16 Sep 2011 14:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8RREuEY9HaKCJ/TdQ+f9rXz5GG7dy58cELkjKp0LLWs=; b=dBFzHnmbpveZuITh3CXsNXRNy5stox1XjyaWgNDeBUvl0mJEYss67iFgnn29faBON9 wTjdnXiFzVPO5hLS7pLlNIdmNSMUBJ42UoQ0JfU9n2vXanhV54gBRDwIu+muZbUEUzY0 Mu+oygRYzEM+/wGLFCBZymreahtlIWefhSfqM= MIME-Version: 1.0 Received: by 10.68.10.40 with SMTP id f8mr2325967pbb.67.1316208665561; Fri, 16 Sep 2011 14:31:05 -0700 (PDT) Received: by 10.142.143.15 with HTTP; Fri, 16 Sep 2011 14:31:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 16 Sep 2011 23:31:05 +0200 Message-ID: From: Berislav Purgar To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: ubnt routerstation and lan ports ?? 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, 16 Sep 2011 21:31:07 -0000 On Fri, Sep 16, 2011 at 2:43 PM, Adrian Chadd wrote: > You have to make sure you read the .hints kernel config file and set > the appropriate hints for arge0/arge1. > > Unfortunately there's no support for the bridge/switch PHYs in FreeBSD > at the moment and so the evil workaround is to set the relevant PHY > mask bits so the right PHY bits get enabled and the ports work. > > > > Adrian > Hi i have tried hint.arge.1.phymask=0x70000 / 0x30000 / 70000 and nothing of that can make it to work .. :( tried openwrt to check ports and everything is OK. Beri From owner-freebsd-mips@FreeBSD.ORG Sat Sep 17 07:37:30 2011 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 7E8E01065674 for ; Sat, 17 Sep 2011 07:37:30 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 488138FC12 for ; Sat, 17 Sep 2011 07:37:30 +0000 (UTC) Received: by iadk27 with SMTP id k27so5034194iad.13 for ; Sat, 17 Sep 2011 00:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GOwzDalbsm/p9kaAtfp/6spud9qwuUGzJzPLdq5EClc=; b=CGuS4L6rAW8DEljnVtUvWD2uq5DqfGBGXT141Vy+x6kxEYrV4zUh2y5K4YC41Er+Kf QES4FLqlzYHKN3DY4VyYBeMQ90m/BO50DKfMxYvKsQoE6p0GmIYymU1qtATYWA/+wpay vi1GOhV9aza/QV+Xw2NmaIevg9bfsRQNejkaY= MIME-Version: 1.0 Received: by 10.68.10.40 with SMTP id f8mr576666pbb.67.1316245048746; Sat, 17 Sep 2011 00:37:28 -0700 (PDT) Received: by 10.142.143.15 with HTTP; Sat, 17 Sep 2011 00:37:28 -0700 (PDT) In-Reply-To: <201109170831.58398.milu@dat.pl> References: <201109170831.58398.milu@dat.pl> Date: Sat, 17 Sep 2011 09:37:28 +0200 Message-ID: From: Berislav Purgar To: Maciej Milewski Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: ubnt routerstation and lan ports ?? 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: Sat, 17 Sep 2011 07:37:30 -0000 2011/9/17 Maciej Milewski > Hi, > > On pi=B1tek, 16 wrze=B6nia 2011 23:31:05 Berislav Purgar wrote: > > i have tried hint.arge.1.phymask=3D0x70000 / 0x30000 / 70000 and nothi= ng > of > > that can make it to work .. :( > > tried openwrt to check ports and everything is OK. > > > > Beri > I have this settings in my hints file and arge1 works: > > hint.arge.1.at=3D"nexus0" > hint.arge.1.maddr=3D0x1a000000 > hint.arge.1.msize=3D0x1000 > hint.arge.1.irq=3D3 > # PHY1, PHY2, PHY3 > hint.arge.1.phymask=3D0x0e > # should be 100 for RS > hint.arge.1.media=3D100 > hint.arge.1.fduplex=3D1 > > Kind regards, > Maciek > Hi tried 0x0e (but i think that 0x0e is for RSPRO) and same thing .. The only thing I noticed is that arge1 is always active regardless of the cable was plugged or not. arge0: flags=3D8843 metric 0 mtu 1500 options=3D80000 ether 00:15:6d:c4:20:f6 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (100baseTX ) status: active arge1: flags=3D8802 metric 0 mtu 1500 ether 00:15:6d:c4:20:f7 media: Ethernet 100baseTX status: active Beri From owner-freebsd-mips@FreeBSD.ORG Sat Sep 17 14:00:32 2011 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 29D741065673 for ; Sat, 17 Sep 2011 14:00:32 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id D7A438FC1A for ; Sat, 17 Sep 2011 14:00:31 +0000 (UTC) Received: by yia13 with SMTP id 13so2264361yia.13 for ; Sat, 17 Sep 2011 07:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=1e/T8zhiWSU7d4RsnkTmbrnjR3gmxKjCXTql5gBMHl0=; b=LgZ84rDI5HMoD17/Mih2LJO2hJ34YQYSEjEdRMF5JKbwssKCq9BAF7UD8KMKt5D0s4 iOCX5Xtlt2oBXVzM20Gcx2v9XFGFLXiCzMp+LYwNwpUjj0LPEaRklzfQGGtKnM5IqFGB ObC+7lrbNAXbyWW53CW/5i7uCusW7OiMH79v8= Received: by 10.151.27.12 with SMTP id e12mr545404ybj.241.1316266283717; Sat, 17 Sep 2011 06:31:23 -0700 (PDT) Received: from [192.168.0.53] ([187.120.139.136]) by mx.google.com with ESMTPS id m3sm906016ybg.11.2011.09.17.06.31.21 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Sep 2011 06:31:22 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-2 From: Luiz Otavio O Souza In-Reply-To: Date: Sat, 17 Sep 2011 10:31:19 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <49F9E5C3-D4BF-4273-85BF-30B51A0A75AD@gmail.com> References: <201109170831.58398.milu@dat.pl> To: Berislav Purgar X-Mailer: Apple Mail (2.1084) Cc: freebsd-mips@freebsd.org Subject: Re: ubnt routerstation and lan ports ?? 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: Sat, 17 Sep 2011 14:00:32 -0000 On Sep 17, 2011, at 4:37 AM, Berislav Purgar wrote: > 2011/9/17 Maciej Milewski >=20 >> Hi, >>=20 >> On pi=B1tek, 16 wrze=B6nia 2011 23:31:05 Berislav Purgar wrote: >>> i have tried hint.arge.1.phymask=3D0x70000 / 0x30000 / 70000 and = nothing >> of >>> that can make it to work .. :( >>> tried openwrt to check ports and everything is OK. >>>=20 >>> Beri >> I have this settings in my hints file and arge1 works: >>=20 >> hint.arge.1.at=3D"nexus0" >> hint.arge.1.maddr=3D0x1a000000 >> hint.arge.1.msize=3D0x1000 >> hint.arge.1.irq=3D3 >> # PHY1, PHY2, PHY3 >> hint.arge.1.phymask=3D0x0e >> # should be 100 for RS >> hint.arge.1.media=3D100 >> hint.arge.1.fduplex=3D1 >>=20 >> Kind regards, >> Maciek >>=20 >=20 > Hi >=20 > tried 0x0e (but i think that 0x0e is for RSPRO) and same thing .. > The only thing I noticed is that arge1 is always active regardless of = the > cable was plugged or not. Yes, 0x0e is only valid for rspro. My routerstation worked fine with: # PHY20 =3D 1 << 20 hint.arge.0.phymask=3D0x100000 # PHY16, PHY17 hint.arge.1.phymask=3D0x30000 (plus all the other lines from Maciej example.) Regards, Luiz= From owner-freebsd-mips@FreeBSD.ORG Sat Sep 17 15:20:52 2011 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 B8769106564A for ; Sat, 17 Sep 2011 15:20:52 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7FE2E8FC16 for ; Sat, 17 Sep 2011 15:20:52 +0000 (UTC) Received: by iadk27 with SMTP id k27so5510650iad.13 for ; Sat, 17 Sep 2011 08:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xQXkOuW7rSXrQ6SpG7e0s8eukoeQgxqhTSn9r9OLHKA=; b=SERNobr8jqNgZA+48NRmKOGG4jqevwdxIGAJUGGfNiqYXkvF163ZdmcaIuT9lrCjAC SDpEQ75bL32c5khYK2VDrSws9qYiMPcClia+9oecapdeabpqFfEgWgv3vMh18gUbMyt7 RBzZDcwhVcmKcSPUOxCM2zye0nMJ9RTFYJE9E= MIME-Version: 1.0 Received: by 10.68.34.169 with SMTP id a9mr1031335pbj.134.1316272851732; Sat, 17 Sep 2011 08:20:51 -0700 (PDT) Received: by 10.142.143.15 with HTTP; Sat, 17 Sep 2011 08:20:51 -0700 (PDT) In-Reply-To: <49F9E5C3-D4BF-4273-85BF-30B51A0A75AD@gmail.com> References: <201109170831.58398.milu@dat.pl> <49F9E5C3-D4BF-4273-85BF-30B51A0A75AD@gmail.com> Date: Sat, 17 Sep 2011 17:20:51 +0200 Message-ID: From: Berislav Purgar To: Luiz Otavio O Souza Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: ubnt routerstation and lan ports ?? 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: Sat, 17 Sep 2011 15:20:52 -0000 2011/9/17 Luiz Otavio O Souza > On Sep 17, 2011, at 4:37 AM, Berislav Purgar wrote: > > 2011/9/17 Maciej Milewski > > > >> Hi, > >> > >> On pi=B1tek, 16 wrze=B6nia 2011 23:31:05 Berislav Purgar wrote: > >>> i have tried hint.arge.1.phymask=3D0x70000 / 0x30000 / 70000 and not= hing > >> of > >>> that can make it to work .. :( > >>> tried openwrt to check ports and everything is OK. > >>> > >>> Beri > >> I have this settings in my hints file and arge1 works: > >> > >> hint.arge.1.at=3D"nexus0" > >> hint.arge.1.maddr=3D0x1a000000 > >> hint.arge.1.msize=3D0x1000 > >> hint.arge.1.irq=3D3 > >> # PHY1, PHY2, PHY3 > >> hint.arge.1.phymask=3D0x0e > >> # should be 100 for RS > >> hint.arge.1.media=3D100 > >> hint.arge.1.fduplex=3D1 > >> > >> Kind regards, > >> Maciek > >> > > > > Hi > > > > tried 0x0e (but i think that 0x0e is for RSPRO) and same thing .. > > The only thing I noticed is that arge1 is always active regardless of t= he > > cable was plugged or not. > > > Yes, 0x0e is only valid for rspro. My routerstation worked fine with: > > # PHY20 =3D 1 << 20 > hint.arge.0.phymask=3D0x100000 > > # PHY16, PHY17 > hint.arge.1.phymask=3D0x30000 > > (plus all the other lines from Maciej example.) > > > Regards, > Luiz Hi I tried all combinations and simply does not work. PHY16 =3D 0x10000 LAN1 PHY17 =3D 0x20000 LAN2 PHY18 =3D 0x40000 (LAN3 - not used) PHY19 =3D 0x80000 (LAN4 - not used) PHY20 =3D 0x100000 WAN - is't OK and work I simply have no idea what to do more: ( From owner-freebsd-mips@FreeBSD.ORG Sat Sep 17 16:02:44 2011 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 BB23A106564A for ; Sat, 17 Sep 2011 16:02:44 +0000 (UTC) (envelope-from adrian.chadd@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 75D5C8FC15 for ; Sat, 17 Sep 2011 16:02:44 +0000 (UTC) Received: by gyf2 with SMTP id 2so4315307gyf.13 for ; Sat, 17 Sep 2011 09:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=5BDYIfNuFyz2RHlmuJLt1+pPkWH3FvOS7qdqKTCvMKk=; b=ZA+2/5PJNxjNsRlA1fkEg6BtZO/mL6rMqeQUV/DeAmdB9noF9i0wmDrUqtHYJpmu7k v4i3QnVL/Ja0+UgtcywefsJEHM1837UKCPauhWxqM9X+Q7+iHhURCmh6StKgO/+3+5kM Sot/ytR1qGAhu1xDqlzfcFk/3dzOBnRRcTx10= MIME-Version: 1.0 Received: by 10.236.185.195 with SMTP id u43mr3981180yhm.106.1316275363774; Sat, 17 Sep 2011 09:02:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Sat, 17 Sep 2011 09:02:43 -0700 (PDT) In-Reply-To: References: <201109170831.58398.milu@dat.pl> <49F9E5C3-D4BF-4273-85BF-30B51A0A75AD@gmail.com> Date: Sun, 18 Sep 2011 00:02:43 +0800 X-Google-Sender-Auth: WOUPxYdijMaPwjJ1qCn9-LV7DIY Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: ubnt routerstation and lan ports ?? 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: Sat, 17 Sep 2011 16:02:44 -0000 Which file are you editing? hints don't "override" if they're included the way my kernel config is setup. Ie, UBNT_AR71XX_BASE.hints doesn't have any phymask/speed/duplex hints. The ROUTERSTATION config includes UBNT_AR71XX_BASE and UBNT_AR71XX_BASE.hints; the phymask/speed/duplex settings are in ROUTERSTATION.hints. Don't edit UBNT_AR71XX_BASE.hints. :) Adrian From owner-freebsd-mips@FreeBSD.ORG Sat Sep 17 16:52:05 2011 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 2C96B106564A; Sat, 17 Sep 2011 16:52:05 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id E78A68FC12; Sat, 17 Sep 2011 16:52:04 +0000 (UTC) Received: by pzk33 with SMTP id 33so8802501pzk.4 for ; Sat, 17 Sep 2011 09:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JLEXi93fOzfiO/ZLutCPPklJn+/lz/r9u0y8MWlTStA=; b=ki1IGiTCYGtcnd7TOl9cIvJA7mGs/h7MyzWfqle2jR9F4ONbnbsE41sUzDGJgPzjyt aqF40wt+l1QTRDALX9b5ZyfOcvkcERZcmZe+cI3etbEKazj6XBSj63X++JZBsnj85tju XsX7edNajVpVnz0Qu/DXBpJjN5cQftaugAefY= MIME-Version: 1.0 Received: by 10.68.34.169 with SMTP id a9mr1130258pbj.134.1316278324257; Sat, 17 Sep 2011 09:52:04 -0700 (PDT) Received: by 10.142.143.15 with HTTP; Sat, 17 Sep 2011 09:52:03 -0700 (PDT) In-Reply-To: References: <201109170831.58398.milu@dat.pl> <49F9E5C3-D4BF-4273-85BF-30B51A0A75AD@gmail.com> Date: Sat, 17 Sep 2011 18:52:03 +0200 Message-ID: From: Berislav Purgar To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: ubnt routerstation and lan ports ?? 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: Sat, 17 Sep 2011 16:52:05 -0000 On Sat, Sep 17, 2011 at 6:02 PM, Adrian Chadd wrote: > Which file are you editing? > > hints don't "override" if they're included the way my kernel config is > setup. > > Ie, UBNT_AR71XX_BASE.hints doesn't have any phymask/speed/duplex hints. > The ROUTERSTATION config includes UBNT_AR71XX_BASE and > UBNT_AR71XX_BASE.hints; the phymask/speed/duplex settings are in > ROUTERSTATION.hints. > Don't edit UBNT_AR71XX_BASE.hints. :) > > > Adrian > I edit only ROUTERSTATION.hint and there i make changes for phymask .. example if hint.arge.1.phymask=0x10000 pci0: at device 0.0 (no driver attached) arge0: at mem 0x19000000-0x19000ff0 miibus0: on arge0 ukphy0: PHY 20 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto arge0: Ethernet address: 00:15:6d:c4:20:f6 arge1: at mem 0x1a000000-0x1a000ff0 miibus1: on arge1 ukphy1: PHY 16 on miibus1 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto arge1: Ethernet address: 00:15:6d:c4:20:f7 spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 mx25l0: at cs 0 on spibus0 mx25l0: mx25ll128, sector 65536 bytes, 256 sectors ar71xx_wdog0: on nexus0 bsd-rs@~# ifconfig arge1 arge1: flags=8802 metric 0 mtu 1500 options=80000 ether 00:15:6d:c4:20:f7 media: Ethernet autoselect (none) status: no carrier bsd-rs@~# -------------------------------- hint.arge.1.phymask=0x30000 pcib0 at irq 0 on nexus0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) arge0: at mem 0x19000000-0x19000ff0 miibus0: on arge0 ukphy0: PHY 20 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto arge0: Ethernet address: 00:15:6d:c4:20:f6 arge1: at mem 0x1a000000-0x1a000ff0 arge1: Ethernet address: 00:15:6d:c4:20:f7 spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 bsd-rs@~# ifconfig arge1 arge1: flags=8802 metric 0 mtu 1500 ether 00:15:6d:c4:20:f7 media: Ethernet 100baseTX status: active bsd-rs@~# Beri