Hi, Dave and Chris,

Thanks for the advice on that - it was indeed a simple problem of needing to sign in as "root@ipaddress". I thought I tried it, but... apparently something was wrong. Thanks!

One followup: I have tried a lot to get my verdex/netwifimicroSD onto the wireless LAN with WEP encryption, and I can't seem to format things correctly in the gumstix' /etc/network/interfaces file. Or at least, it has not worked yet. Can anyone advise me on the correct format if I want:
wlan0
WEP encryption
Key: (whateverkey)
Key Index: 1 (according to router settings)
Specific ESSID name: myessid
Specific IP Address: 192.168.0.38 (just so I know ahead of time...)
NetMask??
BroadcastAddress??

Also, there is a statement in the WEP example within "interfaces" that says "key open" - does anyone know what this does, and what its other options are?

Many thanks again,
Peter Adamczyk

On Tue, Jul 8, 2008 at 11:29 AM, <gumstix-users-request@lists.sourceforge.net> wrote:
Send gumstix-users mailing list submissions to
       gumstix-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.sourceforge.net/lists/listinfo/gumstix-users
or, via email, send a message with subject or body 'help' to
       gumstix-users-request@lists.sourceforge.net

You can reach the person managing the list at
       gumstix-users-owner@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gumstix-users digest..."


Today's Topics:

  1. Re: Difference betwwen methods of ADC (Dave Hylands)
  2. SCP and SSH - connection refused (Peter Gabriel Adamczyk)
  3. Re: SCP and SSH - connection refused (Dave Hylands)
  4. Security Tools? (Matt Jonkman)
  5.  Webcam drivers - Mini Howto Part 1 - pwc drivers (briany)
  6. Re: add PWM to 12c bootloader (Shane Kirkbride)
  7. framebuffer mirror mode (Peter Buelow)


----------------------------------------------------------------------

Message: 1
Date: Tue, 8 Jul 2008 06:59:08 -0700
From: "Dave Hylands" <dhylands@gmail.com>
Subject: Re: [Gumstix-users] Difference betwwen methods of ADC
To: "General mailing list for gumstix users."
       <gumstix-users@lists.sourceforge.net>
Message-ID:
       <c32efac40807080659r4537bb8bte634cfbd95ae3f01@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Tracy,

> Sorry for the multiple replies but I think I have figured it out. It is not
> the ADC function that was causing issues. I was storing ADC into a circular
> buffer and then using the function I2cReadBytes to send 30 entries of the
> buffer at a time until it was empty. Obviously this was sending an 8 bit
> byte and not at 16 bit one. If you have any ideas how to get around this it
> would be greatly appreciated.

If you're using CBUF to implement the circular buffer, then just make
the entries in the circular buffer be uint16_t's. And remember that
the size of your buffer is now twice as big, so 15 entries will occupy
30 bytes.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/



------------------------------

Message: 2
Date: Tue, 8 Jul 2008 10:20:15 -0400
From: "Peter Gabriel Adamczyk" <p.g.adamczyk@gmail.com>
Subject: [Gumstix-users] SCP and SSH - connection refused
To: gumstix-users@lists.sourceforge.net
Message-ID:
       <9805e96e0807080720t21b2c6bfh542c129f17d6d953@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

After many many hassles, I have gotten an ethernet connection (or wifi, not
sure which one is actually running) to work using Verdex XM4 and
NetwifimicroSD. My home router sees it attached and reports MAC address and
IP address, and I can ping the address successfully.

However, when I try to ssh into the gumstix to get a terminal, I get a
"connection refused" error.  The same error occurs when I try the "scp"
command, as in the hello world tutorial.

Any ideas why the gumstix might be refusing my connections? And/or how I can
break in?

Thanks,
Peter Adamczyk
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Tue, 8 Jul 2008 07:28:44 -0700
From: "Dave Hylands" <dhylands@gmail.com>
Subject: Re: [Gumstix-users] SCP and SSH - connection refused
To: "General mailing list for gumstix users."
       <gumstix-users@lists.sourceforge.net>
Message-ID:
       <c32efac40807080728x71cabb51s9f7fe25f21408c2a@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

HI Peter,

On Tue, Jul 8, 2008 at 7:20 AM, Peter Gabriel Adamczyk
<p.g.adamczyk@gmail.com> wrote:
> After many many hassles, I have gotten an ethernet connection (or wifi, not
> sure which one is actually running) to work using Verdex XM4 and
> NetwifimicroSD. My home router sees it attached and reports MAC address and
> IP address, and I can ping the address successfully.
>
> However, when I try to ssh into the gumstix to get a terminal, I get a
> "connection refused" error.  The same error occurs when I try the "scp"
> command, as in the hello world tutorial.
>
> Any ideas why the gumstix might be refusing my connections? And/or how I can
> break in?

Are you using:

ssh root@ip-address

Otherwise it will be trying to login with the account on your
initiating PC, which most likely doesn't exist on the gumstix.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/



------------------------------

Message: 4
Date: Tue, 08 Jul 2008 10:52:28 -0400
From: Matt Jonkman <jonkman@jonkmans.com>
Subject: [Gumstix-users] Security Tools?
To: gumstix-users@lists.sourceforge.net
Message-ID: <48737F2C.5010307@jonkmans.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I'm just looking at getting a slew of these gumstix's to use as remote
nessus scanners and honeypots. But I haven't actually played with one yet.

Has anyone had any experience running such a high load/high net
throughput app as nessus on a gumstix?

In general are they good for installing significant amounts of software
(on a CF of course)?

Any tips or general feel for whether you all think it'd handle this
would be greatly appreciated.

Matt


--
--------------------------------------------
Matthew Jonkman
Emerging Threats
Phone 765-429-0398
Fax 312-264-0205
http://www.emergingthreats.net
--------------------------------------------

PGP: http://www.jonkmans.com/mattjonkman.asc





------------------------------

Message: 5
Date: Tue, 8 Jul 2008 08:28:25 -0700 (PDT)
From: briany <byeomans@deloitte.co.uk>
Subject: [Gumstix-users]  Webcam drivers - Mini Howto Part 1 - pwc
       drivers
To: gumstix-users@lists.sourceforge.net
Message-ID: <18341925.post@talk.nabble.com>
Content-Type: text/plain; charset=UTF-8


I've spent a bit of time getting a couple of webcams successfully working on
the gumstix and as something of a newbie found it not that straightforward.
There seems to be quite a lot of interest in this area so I thought I would
pull together a couple of Howtos - one for  cameras using the pwc driver
(Philips, etc) (this one) and one for cameras using the Linux uvc  driver,
which includes the Logitech Sphere / Orbit which has  a motorised pan /
tilt. It may well be possible to get other cameras working using a similar
approach ? I just haven?t tried it.



I am not a software developer and quite new to Linux. The approach set out
here may not be the best but did work for me and therefore I hope should be
understandable to anyone in the same position ? ie not an ?expert.
Undoubtedly there will be better ways of achieving the end result - I just
don't know what they are! Likewise I can't guarantee they will work for you
and for all possible build configurations but I hope there is enough info
here for you to figure out what went wrong if it doesn't work.

I will have a go at explaining why the various steps work and so hopefully
this will enable the same principles to be used for cameras using other
drivers. However I am pretty much a newbie so I may get this wrong?.

Pre-requisites
I will assume you have set up Open Embedded on your build machine and have
built one of the image recipes through to completion so you know all the
bitbake elements actually work and it builds without errors. That's all
that's essential I think - however if you haven't done this already, I
highly recommend setting the gumstix up to boot and run from an SD or CF
card. The advantages are you can keep the whole of the kernel and filesystem
on the card and have no space limitation problems - and it's very quick and
easy to change things just by loading the card into your desktop machine.

Pwc driver webcams

Outline
What you are going to do is rebuild the kernel, having custom edited the
kernel config file, to produce a custom kernel with the appropriate drivers
activated as modules. The sources for the pwc driver, the Video 4 Linux
drivers and other drivers needed are already built into the build system so
when you rebuild the kernel with bitbake, you get a new kernel and ipk
packages for the modules which you can then install.

You want to make any custom changes in the user.collection folder. Why?
Anything in user.collection takes priority over the same recipe elsewhere,
but if you mess anything up (or just want to go back to the original
configuration) you can delete the contents of user.collection and start
over.

So the first step is to copy over the recipes for the kernel build and
associated files into user.collection. Copy the whole "linux" package folder
across from com.gumstix.collection.
Next, find the .config file which was produced when you built your first (or
subsequent) image. It should be in
/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/
(or connex etc if you  have a connex and not a  verdex). The kernel version
actually used by the build will change over time ? this is the one mine
currently uses.
CD into this directory and type ?make ARCH=arm menuconfig?. After a bit of
crunching a menu based kernel configuration tool opens up. You can step
through this and enable whatever you want - generally (but not always) you
have the choice of building the driver into the kernel or building as a
module. You want to build pwc and the associated drivers as modules so you
will need to enter "M" where appropriate.
Here are the entries you want to change to build pwc and the supporting v4l
support. You might want to wander through the menus though and change other
stuff - for example I have modified my boot from SD card to run an ext3
filesystem.
--> Device drivers --> USB Support --> Support for host-side USB
--> Device drivers --> USB Support --> turn off USB Gadget support
--> Multimedia devices --> Video For Linux
--> Multimedia devices --> Video Capture Adapters --> V4L USB Devices -->
usb philips camera
When you are satisfied with the result, save it. This writes a new .config
file back to the same place.
Now you want to copy this file over the default kernel config file
(defconfig) in user.collection, replacing it. This will be in
linux/gumstix-kernel-2.6.21/gumstix-custom-verdex/ (or connex etc). Make
sure you target the file for the same version of the kernel your build uses.
Now type ?bitbake -c rebuild gumstix-kernel?. You should end up, when the
build process finishes, with a new kernel and a series of ipks in
tmp/deploy.
You may, however, get a message saying the kernel file is too big.
You can override the size checker by adding the following line to your
gumstix-custom-verdex.conf file ( in /conf/machine/)

KERNEL_IMAGE_MAXSIZE += "1070000" (or whatever, a bit bigger than the
expected size of the kernel).
Again, I would copy over the conf files into user.collection and edit them
there.
Making the kernel bigger is  fine if like me you are booting from a card
with 2GB of space and therefore don't care about the size of the kernel. If
you really need to get the kernel under 1MB however you might have to go
back to do some pruning of your changes to get the kernel to fit - so back
to "menuconfig" etc.
You then replace your kernel with the newly built one, and install the ipks.
There are 5 in total, for the following *.ko modules: compat_ioctl.ko,
v4l1-compat.ko, v4l2-common.ko, videodev.ko, and pwc.ko.
The package manager should take care of the installation but you can install
the modules manually - the four modules other than pwc.ko go in
/lib/modules/2.6.21/kernel/drivers/media/video, and pwc goes in it?s own
subdirectory in .... ?/kernel/drivers/media/video/pwc. Then do depmod -a so
your system recognises the modules.
The modules are now installed but not active. When you plug in your camera,
however, the hotplugger should recognise the camera and load up the modules.
If you can, try this with a connection over a serial port as then you will
see the kernel messages over the port - otherwise run "dmesg". This should
show your camera being recognised and if you go into /dev, you should see
the new device (/dev/video0 if this is your only video device).
Seeing the output
So far so good, you might say, but how do I get a picture? I?m sure there
are many ways of accessing the driver. I used a package called motion.  It?s
pretty straightforward to build and install motion and turn on the built in
webserver. There is a bitbake recipe for motion which built for me with no
problems. The documentation for motion is good - you do more or less
everything by editing the conf file. One of the options is to set up a mini
webserver. If you then view the webpage created from another machine, you
should see your webcam picture, provided you don't use I E which can't
handle the streaming format ? but Firefox works fine if your viewing machine
is running Windows.
Other camera drivers
My impression is this same process should work for the GSPCA driver ? do the
enabling in the kernel build, but choose the GSPCA driver rather than the
Philips one - however I haven't actually tried it!


Brian

--
View this message in context: http://www.nabble.com/Webcam-drivers---Mini-Howto-Part-1---pwc-drivers-tp18341925p18341925.html
Sent from the Gumstix mailing list archive at Nabble.com.




------------------------------

Message: 6
Date: Tue, 8 Jul 2008 09:28:38 -0600
From: "Shane Kirkbride" <skirkbri@uccs.edu>
Subject: Re: [Gumstix-users] add PWM to 12c bootloader
To: "'General mailing list for gumstix users.'"
       <gumstix-users@lists.sourceforge.net>
Message-ID: <auto-000076088314@uccs.edu>
Content-Type: text/plain;       charset="us-ascii"

Hi Dave,
I'm finally to a point where I can use this e-mail...I modded the 'servo'
code (using the i2c-io code) I want to use PWM 3A,3B,3C and 1A at 5kHz.
Here's what I am doing:
       i2c-io 0x0b wr TCCR1A 0xAA
       i2c-io 0x0b wr TCCR1B 0x1A

       i2c-io 0x0b wr ICR1  400
       i2c-io 0x0b wr TCNT1 0

       i2c-io 0x0b wr OCR1A 200

       i2c-io 0x0b wr TCCR3A 0xAA
       i2c-io 0x0b wr TCCR3B 0x1A

       i2c-io 0x0b wr ICR3  400
       i2c-io 0x0b wr TCNT3 0

       i2c-io 0x0b wr OCR3A 200
       i2c-io 0x0b wr OCR3B 200
       i2c-io 0x0b wr OCR3C 200
#timer1
       i2c-io 0x0b setdir b.5 out
       i2c-io 0x0b setdir b.6 out
       i2c-io 0x0b setdir b.7 out
#timer 3
       i2c-io 0x0b setdir e.3 out
       i2c-io 0x0b setdir e.4 out
       i2c-io 0x0b setdir e.5 out

       i2c-io 0x0b wr OCR3A 200
       i2c-io 0x0b wr OCR3B 200
       i2c-io 0x0b wr OCR3C 200
       i2c-io 0x0b wr OCR1A 200
If I want to run the code at 2kHz (or 500usec)I would make ICR = 500*2=1000
and OCR = 500?
Does this all look right, I don't really have access to a scope at the
moment. Thanks!
~Shane
-----Original Message-----
From: gumstix-users-bounces@lists.sourceforge.net
[mailto:gumstix-users-bounces@lists.sourceforge.net] On Behalf Of Dave
Hylands
Sent: Tuesday, June 17, 2008 2:00 PM
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] add PWM to 12c bootloader

Hi Shane,

> I would like to generate a square wave with 50% duty cycle of any
> frequency between 1kHz and 10kHz. I would like to have it in place of
> or with the heart beat signal with the the current bootloader. Has
> anyone done this already? No use reinventing the wheel.

You should be able to do it using one of thetimer modes in the
ATMega128. You would do something similar to the servo script found in

robostix/gumstix/i2c-io/servo
<http://websvn.gumstix.com/filedetails.php?repname=Buildroot&path=%2Fbranche
s%2Fprojects%2Frobostix%2Fgumstix%2Fi2c-io%2Fservo
>

It depends on how precise the frequency needs to be as well.

Let's say I want 5 kHz. That's a period of 200 usec. So you could use
the same pre-scalar as the servo example, but set ICR to 200 * 2 =
400. And set the OCR register to 50% of that.

Read up in the ATMega128 datasheet for all of the details.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users




------------------------------

Message: 7
Date: Tue, 08 Jul 2008 10:29:35 -0500
From: Peter Buelow <pete@putzin.net>
Subject: [Gumstix-users] framebuffer mirror mode
To: gumstix-users@lists.sourceforge.net
Message-ID: <487387DF.7060207@putzin.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Does anyone know if the framebuffer supports a mirror mode? Or maybe the
display?

--
Pete

Funny=Truth
Truth=Beauty
So take it as a complement when people say you look Funny.





------------------------------

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

------------------------------

_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users


End of gumstix-users Digest, Vol 27, Issue 24
*********************************************