• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 2 [3] 4
31  Hardware and U-Boot firmware / Hardware / Re: eSATA drive success anyone? on: August 22, 2011, 08:03:27 PM
I tried using a USB 1TB external drive and the performance is poor.  It is mounted
async on a guruplug.

/dev/sdc1 on /media/usb1 type ext2 (rw,noexec,nodev,noatime)

usb 1-1.2: new high speed USB device using orion-ehci and address 4
scsi2 : usb-storage 1-1.2:1.0
scsi 2:0:0:0: Direct-Access     WD       My Passport 0740 1003 PQ: 0 ANSI: 6
sd 2:0:0:0: Attached scsi generic sg2 type 0
scsi 2:0:0:1: Enclosure         WD       SES Device       1003 PQ: 0 ANSI: 6
sd 2:0:0:0: [sdc] Spinning up disk...
scsi 2:0:0:1: Attached scsi generic sg3 type 13
.ready
sd 2:0:0:0: [sdc] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 47 00 10 08


#time dd if=/dev/zero of=/media/usb1/test bs=1M count=40
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 6.42462 s, 6.5 MB/s

real    0m6.432s
user    0m0.000s
sys     0m0.320s


Any ideas why it is only 6.5 MB/sec?  Why is this much lower than 25 MB/sec?
32  General Category / General Discussion / useful security tips on: August 14, 2011, 06:50:31 PM
I came across this and found some useful tips

http://www.cyberciti.biz/tips/linux-security.html

I am running a webserver on the plug, but I can only connect to it from
outside via ssh.


Some questions I have are why limit network connections to 1024 kb/sec
for lightppd?  That seems very low?
 
http://www.cyberciti.biz/tips/lighttpd-set-throughput-connections-per-ip.html


I implemented these since suggestions ssh is the only connection to the outside world.

http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
33  Hardware and U-Boot firmware / Hardware / eSATA drive success anyone? on: August 14, 2011, 06:27:23 PM
Hi,

I have a guruplug server plus and tried to use a 1TB USB drive that is NTFS formatted.
Disk read write was abysmal from a Vista laptop 100 kb/sec: likely a combination of wireless
connection, SAMBA and ntfs-3g driver.

There is a lot of data on this NTFS drive so I can't reformat.  I looked at buying an eSATA drive
since this is supposed to give better I/O than USB2.0.  I would format a new drive as ext3 and
keep it on the Plug.

Can anyone recommend an eSATA drive model?  Reviews are mixed for all of the devices I looked at.

Another option I came across is Cloud Appliances.  These have an embedded system allowing
connection from LAN or WAN.

http://www.newegg.com/Product/Product.aspx?Item=N82E16822186281&cm_sp=Cat_Hard_Drives-_-Spotlight-_-22-186-281

If I plug this into my router I via ethernet cable, I could simplify the setup of NAS compared to configuring Guruplug.
However, I don't know how customizable the settings are.  There seemed to be some restriction on connections.

http://www.newegg.com/Product/Product.aspx?Item=N82E16822186281&cm_sp=Cat_Hard_Drives-_-Spotlight-_-22-186-281

Advice anyone?
34  Hardware and U-Boot firmware / Hardware / Re: Solar Sheevaplug on: August 14, 2011, 06:03:27 PM
Hi,

Perhaps this thread will be useful.

http://www.plugcomputer.org/plugforum/index.php?topic=5753.0
35  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.
36  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? 
37  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.


38  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?
39  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/
40  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.
41  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.
42  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.

43  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
44  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? 
45  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.

Pages: 1 2 [3] 4