• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 2 [3] 4
31  Hardware and U-Boot firmware / Hardware / Re: Firmware CRC load error when loading upa or wlan firmware on: January 17, 2011, 08:08:31 PM
I did *read* all of the posts.

Yours clearly states that you want to go back and forth from AP and client mode and you are using an Ionics Stratus Zigby
rather than a Guruplug. 

I only want client mode on a guruplug.  I'm not a software engineer either. 

I did try the command to reset uap8xxx but it gave a file not found error.  Now I see that this has to happen in the startup scripts before the module is unloaded.  I was working from commandline.

I am trying to be methodical and reproduce the steps others took to fix the problem.  Now my startup scripts are a jumbled mess from all of the wifi client fixes I tried to implement.

Could someone update the wifi client fix wiki page?  The default patchfiles (provided from an older kernel version build) aren't compatible with a clean 2.6.33.7 kernel (I got missing macro definition errors) and none of this reseting stuff is in there.  It may save someone else from wasting a lot of time.
32  Hardware and U-Boot firmware / Hardware / Re: Firmware CRC load error when loading upa or wlan firmware on: January 16, 2011, 07:12:54 PM
I want to only use my plug as a wireless client so I followed the instructions http://www.openplug.org/plugwiki/index.php/Setting_GuruPlug_to_be_a_stable_WiFi_Client to flash the fixed 2.6.33.7 kernel and install the 2.6.33.7 modules and the
wireless files.

I am unable to get the wireless client module to work. 

When I try to do this

 
Quote
   
* Next, you can install the new drivers in the following order:

insmod /root/mcypt.ko
insmod /root/sd8xxx.ko

You should get the following output:

mcypt: module license 'Marvell Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
wlan_sdio mmc0:0001:1: firmware: requesting mrvl/helper_sd.bin
wlan_sdio mmc0:0001:1: firmware: requesting mrvl/sd8688.bin
WLAN FW is active

Instead I get this
Quote
guruplug:~# insmod /root/wifi/mcypt.ko
guruplug:~# insmod /root/wifi/sd8xxx.ko
wlan_sdio mmc0:0001:1: firmware: requesting mrvl/helper_sd.bin
wlan_sdio mmc0:0001:1: firmware: requesting mrvl/sd8688.bin
wlan_sdio: probe of mmc0:0001:1 failed with error -1

Any ideas?  Why is there no tainted kernel warning? 
33  Linux Stuff / Kernel / Re: error in patchfiles for wifi client fix? on: January 14, 2011, 06:09:53 PM
I followed the kernel building instructions here

http://www.openplug.org/plugwiki/index.php/Re-building_the_kernel_and_U-Boot

except I used the 2.6.37 kernel source from here http://sheeva.with-linux.com/sheeva/
and I applied the patchset from here http://www.openplug.org/plugwiki/images/c/c6/Guruplug-patchset-2.6.33.2.tar.bz2

The libertas_uap code is in the patchset

The netdev_for_each_mc_addr macro seems to be part of recent kernel sources
http://tomoyo.sourceforge.jp/cgi-bin/lxr/ident?i=netdev_for_each_mc_addr
but I don't know if the author of the wificlient fix wikipage used another version of
kernel 2.6.33.7.  I haven't checked the Marvell git repository version of 2.6.33.7 yet.


34  Linux Stuff / Kernel / error in patchfiles for wifi client fix? on: January 11, 2011, 10:09:55 PM
I'm following the instructions here to build a custom kernel so that I can use
my guruplug server plus as a wifi client
http://www.openplug.org/plugwiki/index.php/Setting_GuruPlug_to_be_a_stable_WiFi_Client

I followed the instructions to cross compile a 2.6.33.7 kernel with the fixes but I get an error
when trying to build the modules

Quote
 
CC [M]  drivers/net/wireless/libertas_uap/uap_main.o
 CC [M]  drivers/net/wireless/libertas_uap/uap_sdio_mmc.o
 CC [M]  drivers/net/wireless/libertas_uap/uap_proc.o
drivers/net/wireless/libertas_uap/uap_proc.c: In function 'uap_proc_read':
drivers/net/wireless/libertas_uap/uap_proc.c:83:5: error: implicit declaration of function 'netdev_for_each_mc_addr'
drivers/net/wireless/libertas_uap/uap_proc.c:83:41: error: expected ';' before '{' token
drivers/net/wireless/libertas_uap/uap_proc.c:92:41: error: expected ';' before '{' token
make[4]: *** [drivers/net/wireless/libertas_uap/uap_proc.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

When I look at the lines 83 to 92 of the kernel sources file drivers/net/wireless/libertas_uap/uap_proc.c
Code:
    netdev_for_each_mc_addr(ha, netdev) {
        ++i;
    }
    p += sprintf(p, "MCCount=\"%d\"\n", i);

    /*
     * Put out the multicast list
     */
    i = 0;
    netdev_for_each_mc_addr(ha, netdev) {

Is it just missing a ; before the {

I can blindly make the change but perhaps someone with knowledge of C could give me a pointer?
35  Hardware and U-Boot firmware / Hardware / Re: external wireless antenna? on: December 15, 2010, 08:25:10 PM
Thanks for the information.  I found this on the web and it seems there is no easy solution to
improve wireless signal for the plug

http://colinkarpfinger.com/blog/2010/the-dropouts-guide-to-antenna-design/
36  Hardware and U-Boot firmware / Hardware / Re: external wireless antenna? on: December 11, 2010, 05:23:23 PM
Chip spec say external antenna is supported http://www.marvell.com/products/wireless/8688.pdf

This post confirms that the internal antenna is weak http://www.newit.co.uk/forum/index.php?topic=347.0
Quote
The Antenna connector was a query as I guess the wavelength of the 2.4Ghz band is somewhere around 13cm so the internal would be about quarter wavelength at best and I don't suppose it is a folded dipole. With a full wavelength dipole, the ERP from the chipset would probably be sufficient to cover my premises (though whether the heating effect might be a problem in such a confined space). Even if were a runner!

what is the part number from Digikey for the cable?  Is it 590-1014-ND  ADAPTER CABL RPSMA TO U.FL 100MM ?

I have a 15 dBi Hawking directional antenna that made a difference for the Linksys wireless bridge over the default omni whip.
37  Linux Stuff / General Linux questions / Re: Cross compiling question with CodeSourcery on: December 10, 2010, 06:59:24 PM
I found a mjpeg-streamer binary package for arm here:

http://www.friendlyarm.net/forum/topic/279 if you scroll down you will find the version for
libjpeg62  http://mjpg-streamer-mini2440.googlecode.com/files/mjpg-streamer-mini2440-bin-libjpeg62.tar.gz

I followed the instructions here http://code.google.com/p/mjpg-streamer-mini2440/

This worked for me with a great picture using a Logitech Quickcam Ultravision.  I got a kernel freeze when trying
the java and javascript pages.  This camera isn't fully supported bu the UVC driver so it may not be the plug's fault.
38  Linux Stuff / General Linux questions / Cross compiling question with CodeSourcery on: December 10, 2010, 06:20:23 PM
I want to compile binaries for my Guruplug Server kernel Linux guruplug 2.6.32-00007-g56678ec #1 PREEMPT Mon Feb 8 03:49:55 PST 2010 armv5tel GNU/Linux

I downloaded CodeSourcery Sourcery G++ Lite 2010.09-51 for the EABI target

I downloaded the kernel headers for 2.6.32.7 from http://sheeva.with-linux.com/sheeva/

I want to build from source (mjpeg-streamer) but I can't figure out how to direct the cross compiler
to use the 2.6.32 kernel headers

I wrote a bash script to change environment variables in the shell in which I want to compile

Code:
#!/bin/bash
export CC=/Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc
export CFLAGS="-march=armv5te -mtune=xscale"
export CXX=/Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-g++
export LD=/Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-ld
export AR=/Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-ar
export AS=/Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-as
export NM=/Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-nm
export STRIP=/Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-strip

When I source the bash script and then type make I get

Code:
:$ make
/Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc -march=armv5te -mtune=xscale -O2 -Wall -I/Opt/CodeSourcery/Sourcery_G++_Lite/arm-none-eabi/include   -c -o mjpg_streamer.o mjpg_streamer.c
mjpg_streamer.c:27:22: fatal error: videodev.h: No such file or directory
compilation terminated.
make: *** [mjpg_streamer.o] Error 1

I tried modifying the Makefile with no success
Code:
###############################################################
#
# Purpose: Makefile for "M-JPEG Streamer"
# Author.: Tom Stoeveken (TST)
# Version: 0.3
# License: GPL
#
###############################################################

#CC = gcc
CC = /Opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc
CFLAGS += -O2 -Wall -I$ /Opt/CodeSourcery/Sourcery_G++_Lite/arm-none-eabi/include
EXTRA_CFLAGS = -I$ /Opt/Downloads/kernel_2.6.32.7_headers/usr/include
#CFLAGS += -O2 -DDEBUG -DLINUX -D_GNU_SOURCE -Wall
LFLAGS += -lpthread -ldl

APP_BINARY=mjpg_streamer
OBJECTS=mjpg_streamer.o utils.o

all: application plugins
&tc

What am I doing wrong?  I looked at the man pages for the original CFLAGS setting and I don't understand
where the LINUX and _GNU_SOURCE macros are defined.

The README states
Quote
Dependencies for the input plugin "input_uvc.so":
 * libjpeg
 * recent Linux-UVC driver (newer then revision #170)

Dependencies for the output plugin "output_autofocus.so":
 * libmath

Can I build against the lib on my desktop rather than the ones on the plug?
I installed the linux-UVC driver on the plug and I will get libjpeg and libmath
from Debian downloads.

39  General Category / Application ideas and development Q/A / Re: Correct "script" for the GCC cross compiler for Sheeva Plug Computer on: December 08, 2010, 08:19:59 PM
I installed CodeSourcery but am really confused about how to use it and whether it supports the Plug.

I am trying to find out the Linker script to use with the Feroceon.  According to the pdf that was installed
in the docs, the linker scripts support Cortex-M3, ARM Simulator (VFP), ARM Simulator and Cortex-M1.

According to this post http://www.codesourcery.com/sgpp/lite/arm/portal/kbentry31  the linker
scripts should be obvious but I don't see any in the arm-none-eabi/lib directory

When I execute  $arm-none-linux-gnueabi-ld --verbose  I get this
Code:
GNU ld (Sourcery G++ Lite 2010.09-51) 2.20.51.20100809
  Supported emulations:
   armelf
using internal linker script:
==================================================
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
              "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
SECTIONS
{
  /* Read-only sections, merged into text segment: */
  PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x8000)); . = SEGMENT_START("text-segment", 0x8000);
  .interp         : { *(.interp) }
  .note.gnu.build-id : { *(.note.gnu.build-id) }
  .hash           : { *(.hash) }
  .gnu.hash       : { *(.gnu.hash) }
  .dynsym         : { *(.dynsym) }
  .dynstr         : { *(.dynstr) }
  .gnu.version    : { *(.gnu.version) }
  .gnu.version_d  : { *(.gnu.version_d) }
  .gnu.version_r  : { *(.gnu.version_r) }
  .rel.dyn        :
    {
      *(.rel.init)
      *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
      *(.rel.fini)
      *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
      *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*)
      *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
      *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
      *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
      *(.rel.ctors)
      *(.rel.dtors)
      *(.rel.got)
      *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
      PROVIDE_HIDDEN (__rel_iplt_start = .);
      *(.rel.iplt)
      PROVIDE_HIDDEN (__rel_iplt_end = .);
      PROVIDE_HIDDEN (__rela_iplt_start = .);
      PROVIDE_HIDDEN (__rela_iplt_end = .);
    }
  .rela.dyn       :
    {
      *(.rela.init)


I'm not sure what to use after -T
40  Hardware and U-Boot firmware / Hardware / Re: external wireless antenna? on: December 06, 2010, 07:04:08 PM
Ooops.  The author of the post posted the driver sources on his own site.  Got it.
Does this mean this is a beta pre-release?   Should I wait and see if they roll-out
a fully tested and approved version? 
41  Hardware and U-Boot firmware / Hardware / Re: external wireless antenna? on: December 06, 2010, 05:44:12 PM
I think the freezes are due to the wlan client mode.  I have had it freeze while downloading deb packages
although it has been stable for days at a time.  So far I only use it for downloading podcasts with a cron job.

I have the same kernel 2.6.32-00007-g56678ec #1 PREEMPT as the author of the other posting. 

What is the least painful way to cross compile the wireless driver for the plug? 
http://www.plugcomputer.org/plugwiki/index.php/Compiling_Linux_Kernel_for_the_Plug_Computer

My desktop linux box runs a slackware based distro with an older kernel 2.6.22.14 #1 SMP PREEMPT.
After the cross compiler, I download the sheeva/plug kernel source for 2.6.32 and build against it?

I wouldn't mind testing a binary driver compiled (by someone else) for the default kernel on the plug.

Off topic:  Why did Globalscale/Marvell provide a third party site for the Libertas driver?  It is some web design
firm that does very impressive work http://www.inovo.ca/portfolio/index.php  Scroll through some of
the pages they designed for clients.  Hopefully their kernel drivers are as good as their artwork.

42  Hardware and U-Boot firmware / Hardware / Re: external wireless antenna? on: December 05, 2010, 08:13:49 PM
I agree it's u.fl but the cable from my dead wet54g doesn't connect with the guruplug
pcb connector.  Similar appearance but not exactly the same.

I'm not sure my soldering iron is fine enough to connect wires to the pcb pads.

I have been using my plug as a wep client and I get the occasional hangs reported
by others on the forum.  The current location is a bedroom above the AP.

Code:
guruplug:~# iwconfig wlan0
wlan0     IEEE 802.11b/g  ESSID:"home"  Nickname:"plug"
          Mode:Managed  Frequency:2.437 GHz  Access Point: XX-XX-XX-XX-XX-XX 
          Bit Rate:1 Mb/s   Tx-Power=13 dBm   
          Retry short limit:8   RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:XX-XX-XX-XX-XX   Security mode:open
          Power Management:off
          Link Quality=30/100  Signal level=-72 dBm  Noise level=-87 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:66  Invalid misc:160   Missed beacon:0

Compare the plug stats (1Mb/s and 30/100 connection) with my desktop computer
right next to the plug that has an external antenna (that came with the PCI card).

Code:
root:# iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:"home"  Nickname:"desktop"
          Mode:Managed  Frequency:2.437 GHz  Access Point: XX-XX-XX-XX-XX   
          Bit Rate=54 Mb/s   Tx-Power:20 dBm   Sensitivity=-109 dBm 
          RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:XX-XX-XX-XX-XX   Security mode:open
          Power Management:off
          Link Quality:71/100  Signal level:-50 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

My plug has been modified.  I put copper heatsinks on the chips and removed the
power supply.  I have a 40mm 5V fan attached to the plug pulling air through a 35 mm
hole I cut on the opposite side from the ethernet/usb ports.  I am using a spare external
3A 5V Netgear powersupply.  I moved the pcb wires from the original internal plug
power supply to a jack that I attached to the plug.

I don't have a gigabit switch but the copper heatsinks are room temp.  I still get
system freezes due to the fact that it is in client mode.
43  General Category / General Discussion / SOLVED (sort-of) Re: permissions for samba to share usb drive with windows? on: November 30, 2010, 06:31:16 PM
I have looked at many samba tutorials and how-to s and was frustrated by the inconsistencies.

Two mistakes I made were that I forgot to change fstab stetting for the microSD from vfat to ext2
and I was using PyNeighborhood on my desktop linux box.  It turns out that PyNeighboorhood was
giving a mount error because /mnt/lan didn't exist not because of my smb.conf settings.  Embarrassed

Needless to say, now my desktop machine shows this

Code:
darkstar:$ smbclient -L mywifiplug -N
Domain=[MYWIFIPLUG] OS=[Unix] Server=[Samba 3.2.5]

        Sharename       Type      Comment
        ---------       ----      -------
        plug-storage    Disk      The Wifi-Sheevaplug Storage
        IPC$            IPC       IPC Service (Samba Server Version)
Domain=[MYWIFIPLUG] OS=[Unix] Server=[Samba 3.2.5]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        LOCALDOMAIN          MYWIFIPLUG


Code:
darkstar:$ smbclient //192.168.1.100/plug-storage -N
Domain=[MYWIFIPLUG] OS=[Unix] Server=[Samba 3.2.5]
smb: \>

The problem now is that I can't list the share or see contents because of this error
Code:
smb: \> ls
Call returned zero bytes (EOF) listing \*
Error in dskattr: Call returned zero bytes (EOF)

Google turned up a french link describing the same problem and a fix
http://forums.fedora-fr.org/viewtopic.php?pid=165562
but I am not familiar with the /etc/nsswitch.conf file

On the guruplug, mine looks like this
Code:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

Any ideas on [NOTFOUND=return]?  I don't see anything about that here
http://www.faqs.org/docs/securing/chap6sec71.html

Removing [NOTFOUND=return] from the nsswitch.conf fixed the error.
44  General Category / General Discussion / permissions for samba to share usb drive with windows? on: November 23, 2010, 05:24:56 PM
I have a microSD card and it was originally VFAT.  I was able to browse windows network
neighborhood and see files on /media/usb0.  I reformatted the microSD so that a user
account can download podcasts according to a cron job (didn't want root to do this).

Now I am unable to figure out samba settings to allow read access to the drive.  My desktop
linux box can't access LOCALDOMAIN so it is definitely a plug issue.  I don't want to log in
to the share just to read files.

Code:
[global]

        workgroup = localdomain
        server string = Samba Server Version

        netbios name = mywifiplug

        hosts allow = 192.168.1  127.

        log file = /var/log/samba/%m.log
        max log size = 50
        security = share
        passdb backend = tdbsam
        guest account = nobody
#       map to guest = bad user

        encrypt passwords = true
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65
536
        load printers = no
        printing = bsd
        printcap name = /dev/null
        show add printer wizard = no
        disable spoolss = yes

        local master = yes
        os level = 65
        domain master = yes

        deadtime = 1
        keepalive = 0

        log level = 3

        username map = /etc/samba/smbusers

[plug-storage]
        comment = The Wifi-Sheevaplug Storage
        path = /media
        public = yes
        writable = yes
        guest ok = yes
        create mask = 0777
        directory mask = 0777

Permissions on plug are:

guruplug:~# ls -l /media/
total 4
lrwxrwxrwx 1 root root    4 2010-04-06 06:55 usb -> usb0
drwxr-xr-x 4 root root 4096 2010-11-22 20:23 usb0

guruplug:~# ls -l /media/usb0/
total 20
drwx------ 2 root  root 16384 2010-11-22 20:22 lost+found
drwxr-xr-x 2 darkstar root  4096 2010-11-22 20:23 podcast


I have modified the original smb.conf based on web info so now it is a mess.  I'm also trying to share a
usb printer on the plug that is configured with cups.  There are many conflicting smb.conf tutorials on
the web.  Can someone share a working file?  Plug wiki is hacked and is useless right now.
45  General Category / General Discussion / Re: Forward DCHP requests from Wifi on: November 16, 2010, 09:06:53 PM
http://www.openg.info/entry/bridging-wlan0-eth0

http://serverfault.com/questions/35307/how-to-forward-wlan0-to-eth0

It seems wireless bridging won't work.
Pages: 1 2 [3] 4