• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2
1  Linux Stuff / Kernel / Re: 2.6.30-rc6 new release on: May 21, 2009, 08:17:35 PM
I've noticed something and wondered if you might have seen it to, anytime I run a mono app under this kernel series is segfaults immediately.   Seems to have something to do with /proc/self/maps going to hit up someone on that team as well just thought I would get it out here too.
2  General Category / General Discussion / Re: FTDI device on the Sheeva on: May 13, 2009, 07:58:20 AM
Last night I got a chance to use the libftdi library on the 2.6.18 kernel and it worked fine.  So apparently with that lib updating the kernel isn't even necessary.
3  General Category / General Discussion / Re: FTDI device on the Sheeva on: May 12, 2009, 10:03:12 AM
Just some quick notes to help others looking at this device.

I got my FTDI 4232H up and running and the pins are finally all toggling and not just the RTS line.

I was able to interact with the serial port using the ftdi_sio module.  I was able to get the vendor/product ids using lsudb.  Once the module was loaded I used moshiach's post reguarding udev.

I created /etc/udev/rules.d/10-ftdi-4232h.rules and added the following.

SYSFS{idProduct}=="6011",SYSFS{idVendor}=="0403",ACTION=="add",RUN+="/sbin/modprobe -q ftdi-sio product=0x6011 vendor=0x0403",SYMLINK+"USB[0-3]" ENV{PRODUCT}=="0403/6011/500",ACTION=="remove",RUN+="/sbin/rmmod ftdi_sio usbserial"

After a reboot I had my symlinks for /dev/ttyUSB0-3.  I wrote a quick c app and was able to toggle the rts line without issue.  While trying to find a way to add support to mono I came across libftdi, this makes the process super simple and if your using one of these modules to extend the gpio of the plug it is worth looking at.


It takes a while to come up with all the dependencies but once complete it worked like a champ.
4  Hardware and U-Boot firmware / U-Boot stuff / CRC Errors on boot. on: April 24, 2009, 09:33:32 AM
Brief history, everything was running fine for about 2 weeks but I needed serial support for an external ftdi board.  I updated to the  2.6.30-rc3 image.  It would not boot properly after setting the env vars and saving.  I made several attempts to get tftp working to boot a remote image I have stored on my linux machine.  I noticed finally that the settings I was adding were not saving properly setenv ipaddr= left me without an variable for ipaddr when I ran printenv.  I decided at this point to run resetenv and go for the usb recovery and see if i could get back to the starting point.  I ran resetenv then reset and uppon the reboot it began running tests which I assumed were just part of the resetenv process.  After it completed i was sitll having trouble booting and the kernel locks up so I reset.  Now it runs these lengthy tests at every boot and I noticed it says NAND: Nand ECC error then begins the tests.

All the tests pass with the following locations marked as bad blocks in the nand: 0fbe0000, 15660000, and 1f300000.  None of these look particularly important to me and after reading up on the 4bit vs 1bit crc methods.  Is it possible the CRC is just wrong or these bad blocks are causing my headache and how can I get my env vars to save.  Everything seems straight forward enough but all the trouble this is giving me feels like something else might be wrong.
5  Linux Stuff / Kernel / Re: 2.6.30-rc2 and 2.6.30-rc3 new releases on: April 23, 2009, 09:03:15 PM
Yup I ran the following on the reboot:
setenv mainlineLinux yes
setenv arcNumber 2097
setenv bootargs rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=

Maybe a bad flash?  I didn't see any errors when I ran it.
6  Linux Stuff / Kernel / Re: 2.6.30-rc2 and 2.6.30-rc3 new releases on: April 23, 2009, 06:44:48 PM
Downloaded the 2.6.30-rc3 image ran the readme now all I see via the serial console is.

Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x4ff800 -- 100% complete.
 4194304 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.30-rc3
   Created:      2009-04-23  11:41:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2174060 Bytes =  2.1 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Not sure what is missing but I was just running a default install, the only change I made was to move /var to an SD card because of mysql database.

7  General Category / Success stories / Re: USB GPIO on: April 21, 2009, 11:16:52 PM
A pleasant surprise upon figuring out what pins were required to enable bus power on the device, I plug it in and am greeted with the following.

Apr 22 01:01:34 debian kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Apr 22 01:01:34 debian kernel: usb 1-1: configuration #1 chosen from 1 choice

I hop on in the /dev dir  and find the following files

crw-rw---- 1 root root 189,  0 Jan 27  2000 usbdev1.1
crw-rw---- 1 root root 254,  0 Jan 27  2000 usbdev1.1_ep00
crw-rw---- 1 root root 254,  1 Jan 27  2000 usbdev1.1_ep81
crw-rw---- 1 root root 189,  1 Apr 22 01:01 usbdev1.2
crw-rw---- 1 root root 254,  2 Apr 22 01:01 usbdev1.2_ep00
crw-rw---- 1 root root 254,  4 Apr 22 01:01 usbdev1.2_ep02
crw-rw---- 1 root root 254,  6 Apr 22 01:01 usbdev1.2_ep04
crw-rw---- 1 root root 254,  8 Apr 22 01:01 usbdev1.2_ep06
crw-rw---- 1 root root 254, 10 Apr 22 01:01 usbdev1.2_ep08
crw-rw---- 1 root root 254,  3 Apr 22 01:01 usbdev1.2_ep81
crw-rw---- 1 root root 254,  5 Apr 22 01:01 usbdev1.2_ep83
crw-rw---- 1 root root 254,  7 Apr 22 01:01 usbdev1.2_ep85
crw-rw---- 1 root root 254,  9 Apr 22 01:01 usbdev1.2_ep87

The ones with creation times showing 01:01 we not there before.  I will have more time to play with it tomorrow but so far it appears as if this device will make gpio on the device pretty easy if you have a wire wrap kit and don't mind connecting a few pins for bus power.  It appears as if drivers are included in the kernel.
8  General Category / Application ideas and development Q/A / Re: Asterisk PBX on: April 21, 2009, 09:05:20 AM
I was browsing through the available packages to install.  Have you tried running apt-get install asterisk?
9  General Category / General Discussion / Re: FTDI device on the Sheeva on: April 20, 2009, 01:39:20 PM
SethM I have the 895-FT4232HQ-MINIMOD on order and will be able to report this coming weekend on getting the device loaded up.  The kernel that comes pre-installed seems to be a modular kernel and my intent is to get the device running with that kernel if possible.
10  General Category / Success stories / Re: USB GPIO on: April 20, 2009, 01:27:09 PM
I just found an awesome device to do this:

With firmware D you have a virtual com port that you can instruct to read individual I/O or write to them.

The best part is that you can go to microchip's website and order some free samples, you can build your own for less than 10 usd!

I looked at this and looks like a viable alternative, I ended up going with the ftdi device thought after vacillating for a while over the idea they were foreign company and how much pain would be involved with the wait I searched the part number in google.  Mouser had 6 in stock 2 bucks a piece cheaper so I placed my order it just made sense as the drivers are available and ready to go.
11  General Category / Success stories / Re: Mono on the plug on: April 18, 2009, 11:39:16 AM
Never mind, mono is available in the ubuntu repository it just wasn't called "mono".

You can find it by installing mono-2.0-runtime and you should get all the dependencies required to run .net apps on your plug.
The only disappointment so far is there doesn't seem to be an assembler in the repo for use with the ahead of time compilation so that adds a bit of overhead to your app.

Kinda of feels weird writing apps for linux, in windows on a mac.
12  General Category / Success stories / Mono on the plug on: April 18, 2009, 12:19:41 AM
Anyone know the status on this, there appears to be some items compiled for the plug, but there are a lot of dependencies missing.  I would love to just crank out some C# because dealing with xml there makes my life easier.
13  General Category / General Discussion / Re: Samba performance? on: April 18, 2009, 12:03:57 AM

I haven't tested any transfer speeds in samba yet.  Playing videos from vlc on another computer seems ok.   

I'm having authentication problems.  Mapping network drives, under the two windows computers I have takes a very long time.  At least 30 to 60 seconds.  I'm just using the out of the box configurations with workgroup changed to my workgroup name.  I'm using the  [homes] share definition.

Anybody else have this problem?

Reverse name resolution is probably the issue here.  As a test add the ip of the machine your connecting form to the /etc/hosts file with a name.
Code: spiffypc
14  General Category / Success stories / Re: USB GPIO on: April 17, 2009, 11:59:02 PM
I've since come across these, who knew?


It is basically the same chip used to allow the serial console on the device.  They have a version that gives access to 4 8 bit ports giving you 32 pins of io with headers that should be easy to wire wrap to for prototyping.  My only concern with these is that they only quote pricing in British pounds and I have no idea what the potential pitfalls are of ordering something overseas like that.
15  General Category / Success stories / USB GPIO on: April 13, 2009, 04:08:07 PM
I'm looking to see if anyone has found any cheap USB accessible GPIO that might work with this device.  I came across a few options most of them very expensive for what you get.


This is the closest I found to what I would like to use, looks like much of the io is tied up with various functions related to the chip operation itself.  If it was pure gpio it would be perfect.
Pages: [1] 2