David Madden | 24 Feb 2012 16:47
Favicon

GuruPlug Wireless?

Thanks for the replies & info.  (For some reason, it doesn't look like 
I'm getting digests, so I just saw them in the web archives.)

I've had luck building a 3.2.6 kernel with vanilla sources and a bit of 
.config file tweaking.  My current config is at:

http://www.mersenne.com/downloads/GuruPlug-config.gz

for anybody that wants it.  I found the instructions at

http://wiki.beyondlogic.org/index.php/GuruPlug_Building_Kernel

to be helpful.

Still no WiFi, but I'll try John's files & patches tonight.

Regards,
dhm
John O'Donnell | 25 Feb 2012 09:19
Picon

Re: GuruPlug Wireless?

On 02/24/2012 10:47 AM, David Madden wrote:
> Still no WiFi, but I'll try John's files & patches tonight.
>

Lemme know if you run into any issues, I'll fix em right up.  I havent run on a 
3.2 kernel yet. Just 3.1

Good Luck
John

--

-- 
=== Never ask a geek why, just nod your head and slowly back away.===
+================================+==================================+
|  John O'Donnell                |                                  |
|  (Sr. Systems Engineer,        |    http://juanisan.homeip.net    |
|  Net Admin, Programmer, etc.)  |  E-Mail: unixjohn1969 <at> gmail.com  |
+================================+==================================+
No man is useless who has a friend, and if we are loved we are
indispensable.  -- Robert Louis Stevenson
David Madden | 25 Feb 2012 18:59
Favicon

Re: GuruPlug Wireless?

On 2/25/2012 00:19, John O'Donnell wrote:
> Lemme know if you run into any issues, I'll fix em right up.  I havent
> run on a 3.2 kernel yet. Just 3.1

Something wrong with the uap_drv.h part of the patch (on 
OS_INT_RESTORE).  I applied it by hand, and <...much compiling occurs...>

Uh oh:

CC [M]  drivers/net/wireless/libertas_uap/uap_main.o
drivers/net/wireless/libertas_uap/uap_main.c: In function 
'uap_service_main_thread':
drivers/net/wireless/libertas_uap/uap_main.c:701:13: error: 
'uap_private' has no member named 'driverlock'
drivers/net/wireless/libertas_uap/uap_main.c:701:13: error: 
'uap_private' has no member named 'driverlock'
drivers/net/wireless/libertas_uap/uap_main.c: At top level:
drivers/net/wireless/libertas_uap/uap_main.c:1565:5: error: unknown 
field 'ndo_set_multicast_list' specified in initializer
drivers/net/wireless/libertas_uap/uap_main.c:1565:5: warning: 
initialization from incompatible pointer type [enabled by default]
drivers/net/wireless/libertas_uap/uap_main.c:1565:5: warning: (near 
initialization for 'uap_netdev_ops.ndo_vlan_rx_add_vid') [enabled by 
default]
make[4]: *** [drivers/net/wireless/libertas_uap/uap_main.o] Error 1
make[3]: *** [drivers/net/wireless/libertas_uap] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
root <at> vex:/spare/linux-3.2.6-jod#
(Continue reading)

David Madden | 25 Feb 2012 21:26
Favicon

Re: GuruPlug Wireless?

On 2/25/2012 09:59, David Madden wrote:
> will look into this later today.

OK, the first error ("no member named driverlock") was my fault: I 
hand-applied the patch wrong.  Second error ("unknown field 
'ndo_set_multicast_list'") was apparently a change in a netdevice 
structure.  Both fixed and the patched modules build OK with a vanilla 
3.2.6.  However...

Loading the module doesn't wake up any hardware, or do anything else 
that I can see.  I've attached a typescript with system info and 
execution of rc.uap8xxx.  I dunno what's supposed to happen, but I'm 
guessing more than what actually did happen!

Thanks,
dhm
Script started on Sat Feb 25 12:15:07 2012
root <at> vex:~# uname -a
Linux vex 3.2.6-jod #10 Sat Feb 25 09:34:42 PST 2012 armv5tel Feroceon 88FR131 rev 1 (v5l) Marvell GuruPlug
Reference Board GNU/Linux
root <at> vex:~# lsmod
Module                  Size  Used by
sg                     14963  0 
root <at> vex:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 72:17:02:08:00:00  
          inet addr:172.17.2.8  Bcast:172.17.2.255  Mask:255.255.255.0
          inet6 addr: fe80::7017:2ff:fe08:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
(Continue reading)

John O'Donnell | 26 Feb 2012 08:31
Picon

Re: GuruPlug Wireless?

On 02/25/2012 03:26 PM, David Madden wrote:
> On 2/25/2012 09:59, David Madden wrote:
>> will look into this later today.

I am just reading all your notes now.  Good information! Thank you!  Damn 
something must have changed in 3.2.  I am just getting my development guruplug 
upgraded to the latest -current so I can work on this and it is taking some time 
since I am working on a microSD card again. I used to have a 80g attached HD but 
I'm trying to turn one of my sheevas into a dev platform for other things, so I 
am patiently waiting for the guru to catch up to -current.  The last kernel I 
was running was 3.1.2. I had issues upgrading to 3.1.5 (-current at the time) so 
I havent upgraded since.  I'm gonna plow into this 3.2.6 now.

Compiles take a while on this setup so please be patient.

Poppin' on the GCC fins, got my Makefile wetsuit, and put on the kernel source 
mask and snorkel and I'm GOING IN!  I'll be back!

Oh man that was a short trip... I still cant get the newer -current kernels to 
boot on my guruplug.  Did you have to rebuild yours from scratch?  I am going to 
attempt that now.  This is why I stopped upgrading.

reading uinitrd-kirkwood-3.2.6

5937060 bytes read
reading /uImage-kirkwood-3.2.6

2083896 bytes read
## Booting kernel from Legacy Image at 00800000 ...
    Image Name:   Linux-3.2.6-kirkwood
(Continue reading)

David Madden | 26 Feb 2012 08:54
Favicon

Re: GuruPlug Wireless?

On 2/25/2012 23:31, John O'Donnell wrote:
> Oh man that was a short trip... I still cant get the newer -current
> kernels to boot on my guruplug.  Did you have to rebuild yours from
> scratch?  I am going to attempt that now.  This is why I stopped upgrading.

I rebuilt from scratch.  I had the same hang-at-booting problem, but I 
hadn't built a kernel for years, so I didn't know if it was me being 
stupid and out of date, or what.

I followed the instructions at 
http://wiki.beyondlogic.org/index.php/GuruPlug_Building_Kernel and got 
my first bootable kernel.  After that, things have been going pretty 
well: I can change config items, recompile, and be pretty confident the 
image will boot.

I'll attach my .config, which ought to get you in the ballpark, anyway.

I'm close to having my dream Plug (heh) set up.  Apache, MySQL, Postgres 
and all that stuff, and the UBI filesystem is small enough to (probably) 
fit on my Dockstar, too.  If I can get WiFi running in AP mode, it'll be 
perfect.

I bet Globalscale could sell a bunch of these if they had a little more 
memory, more CPU speed, and a spot to plug in a 2.5" SATA drive.  Or 
even just a spot to clip a 2.5" drive on, with a USB/SATA adapter.  I'm 
going to have to duct-tape my SSD to the plug so it doesn't just dangle 
off on the floor.

Regards,
dhm.
(Continue reading)

David Madden | 25 Feb 2012 17:06
Favicon

Re: GuruPlug Wireless?

On 2/25/2012 00:19, John O'Donnell wrote:
> Lemme know if you run into any issues, I'll fix em right up.  I havent
> run on a 3.2 kernel yet. Just 3.1

Hi John.

I was going to reply that your patch doesn't work against 3.2.6, but I 
(stupidly!) was running it in dry-run mode, and some of the end patches 
(your additions?) fail because the additions of libertas_uap haven't 
been done (because of dry-run mode!)  Stupid!

Let me copy my functional 3.2.6 tree, apply your patch, build, and see 
what happens.

Regards,
--

-- 
Mersenne Law LLC  ·  www.mersenne.com  ·  +1-503-679-1671
- Small Business, Startup and Intellectual Property Law -
1500 SW First Ave. · Suite 1170 · Portland, Oregon  97201
Script started on Sat 25 Feb 2012 07:56:31 AM PST
root <at> vex:/spare/linux-3.2.6# pwd
/spare/linux-3.2.6
root <at> vex:/spare/linux-3.2.6# ls
COPYING        Module.symvers  drivers	 lib		  security
CREDITS        README	       firmware  mm		  sound
Documentation  REPORTING-BUGS  fs	 modules.builtin  tools
Kbuild	       System.map      include	 modules.order	  usr
Kconfig        arch	       init	 net		  virt
(Continue reading)

John O'Donnell | 27 Feb 2012 20:51
Picon

Re: GuruPlug Wireless?

On 02/24/2012 10:47 AM, David Madden wrote:
> Thanks for the replies & info. (For some reason, it doesn't look like I'm
> getting digests, so I just saw them in the web archives.)
>
> I've had luck building a 3.2.6 kernel with vanilla sources and a bit of .config
> file tweaking. My current config is at:
>
> http://www.mersenne.com/downloads/GuruPlug-config.gz

I am trying your config to see if I can get a booted kernel.  I tried 
re-compiling what comes with armedslack and it failed to boot again.

So re-compiling again...  Maybe tomorrow I can boot 3.2.6
John

--

-- 
=== Never ask a geek why, just nod your head and slowly back away.===
+================================+==================================+
|  John O'Donnell                |                                  |
|  (Sr. Systems Engineer,        |    http://juanisan.homeip.net    |
|  Net Admin, Programmer, etc.)  |  E-Mail: unixjohn1969 <at> gmail.com  |
+================================+==================================+
No man is useless who has a friend, and if we are loved we are
indispensable.  -- Robert Louis Stevenson

Gmane