• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2
1  General Category / Success stories / Re: USB Webcam as a surveillance camera on: May 22, 2009, 10:36:41 AM
I used mjpeg-streamer for a Logitech 9000 Pro
2  Linux Stuff / Kernel / Re: 2.6.30-rc4 new release on: April 30, 2009, 04:28:30 PM
Thank you for providing this. I'm sure it will help many people!
3  Linux Stuff / Kernel / Re: Wich kernel end jffs2 image should i use? on: April 26, 2009, 11:56:29 PM
The I/O errors are from the kernel detecting bad (but remapped) blocks on the NAND flash, and can be ignored. I have over 20 of them Sad
4  Hardware and U-Boot firmware / Hardware / Re: Control the Green and Blue LEDs on: April 26, 2009, 11:50:18 PM
I had similar problems...I resized my uImage partition to 4MB so I wouldn't have any more issues.
5  Linux Stuff / Linux distributions / Re: Anybody upgraded to Ubuntu 9.04 Final yet? on: April 26, 2009, 05:30:38 AM
I just did as well and had no problems.

Code:
root@debian:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  libxcb-xlib0
The following NEW packages will be installed:
  aptitude libc6-vfp libcap2 libclass-accessor-perl libcwidget3 libept0 libgdbm3 libio-string-perl
  libparse-debianchangelog-perl libsigc++-2.0-0c2a libtimedate-perl libxapian15 perl perl-modules python2.6
  python2.6-minimal
The following packages will be upgraded:
  libx11-6 libxcb1 ntpdate python python-minimal samba samba-common tasksel ubuntu-minimal
9 upgraded, 16 newly installed, 1 to remove and 0 not upgraded.
Need to get 25.1MB of archives.
After this operation, 61.5MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ports.ubuntu.com jaunty/main libx11-6 2:1.1.99.2-1ubuntu2 [603kB]
Get:2 http://ports.ubuntu.com jaunty/main libxcb1 1.1.93-0ubuntu3 [41.0kB]
Get:3 http://ports.ubuntu.com jaunty/main python2.6-minimal 2.6.2-0ubuntu1 [1331kB]
Get:4 http://ports.ubuntu.com jaunty/main python2.6 2.6.2-0ubuntu1 [2490kB]
Get:5 http://ports.ubuntu.com jaunty/main python 2.6.2-0ubuntu1 [141kB]
Get:6 http://ports.ubuntu.com jaunty/main python-minimal 2.6.2-0ubuntu1 [15.1kB]
Get:7 http://ports.ubuntu.com jaunty/main libc6-vfp 2.9-4ubuntu6 [1364kB]
Get:8 http://ports.ubuntu.com jaunty/main libsigc++-2.0-0c2a 2.0.18-2 [32.1kB]
Get:9 http://ports.ubuntu.com jaunty/main libcwidget3 0.5.12-4ubuntu1 [276kB]
Get:10 http://ports.ubuntu.com jaunty/main libxapian15 1.0.7-4 [740kB]
Get:11 http://ports.ubuntu.com jaunty/main libept0 0.5.26build1 [184kB]
Get:12 http://ports.ubuntu.com jaunty/main aptitude 0.4.11.11-1ubuntu1 [1464kB]
Get:13 http://ports.ubuntu.com jaunty/main libcap2 2.11-2 [11.0kB]
Get:14 http://ports.ubuntu.com jaunty/main perl-modules 5.10.0-19ubuntu1 [3182kB]
Get:15 http://ports.ubuntu.com jaunty/main libgdbm3 1.8.3-4 [22.7kB]
Get:16 http://ports.ubuntu.com jaunty/main perl 5.10.0-19ubuntu1 [4531kB]
Get:17 http://ports.ubuntu.com jaunty/main libclass-accessor-perl 0.31-2 [25.1kB]
Get:18 http://ports.ubuntu.com jaunty/main libio-string-perl 1.08-2 [12.0kB]
Get:19 http://ports.ubuntu.com jaunty/main libtimedate-perl 1.1600-9 [30.1kB]
Get:20 http://ports.ubuntu.com jaunty/main libparse-debianchangelog-perl 1.1.1-2ubuntu1 [57.6kB]
Get:21 http://ports.ubuntu.com jaunty/main ntpdate 1:4.2.4p4+dfsg-7ubuntu5 [64.4kB]
Get:22 http://ports.ubuntu.com jaunty/main tasksel 2.73ubuntu18 [67.1kB]
Get:23 http://ports.ubuntu.com jaunty/main ubuntu-minimal 1.140 [28.0kB]
Get:24 http://ports.ubuntu.com jaunty/main samba 2:3.3.2-1ubuntu3 [4460kB]
Get:25 http://ports.ubuntu.com jaunty/main samba-common 2:3.3.2-1ubuntu3 [3944kB]
Fetched 25.1MB in 21s (1184kB/s)
Preconfiguring packages ...
(Reading database ... 13073 files and directories currently installed.)
Preparing to replace libx11-6 2:1.1.5-2ubuntu2 (using .../libx11-6_2%3a1.1.99.2-1ubuntu2_armel.deb) ...
Unpacking replacement libx11-6 ...
(Reading database ... 13073 files and directories currently installed.)
Removing libxcb-xlib0 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
(Reading database ... 13066 files and directories currently installed.)
Preparing to replace libxcb1 1.1-1.1 (using .../libxcb1_1.1.93-0ubuntu3_armel.deb) ...
Unpacking replacement libxcb1 ...
Selecting previously deselected package python2.6-minimal.
Unpacking python2.6-minimal (from .../python2.6-minimal_2.6.2-0ubuntu1_armel.deb) ...
Setting up python2.6-minimal (2.6.2-0ubuntu1) ...
Linking and byte-compiling packages for runtime python2.6...
INFO: using unknown version '/usr/bin/python2.6' (debian_defaults not up-to-date?)

Selecting previously deselected package python2.6.
(Reading database ... 13223 files and directories currently installed.)
Unpacking python2.6 (from .../python2.6_2.6.2-0ubuntu1_armel.deb) ...
Preparing to replace python 2.5.2-3ubuntu1 (using .../python_2.6.2-0ubuntu1_all.deb) ...
running python pre-rtupdate hooks for python2.6...
Unpacking replacement python ...
Preparing to replace python-minimal 2.5.2-3ubuntu1 (using .../python-minimal_2.6.2-0ubuntu1_all.deb) ...
Unpacking replacement python-minimal ...
Setting up python-minimal (2.6.2-0ubuntu1) ...
Selecting previously deselected package libc6-vfp.
(Reading database ... 13754 files and directories currently installed.)
Unpacking libc6-vfp (from .../libc6-vfp_2.9-4ubuntu6_armel.deb) ...
Selecting previously deselected package libsigc++-2.0-0c2a.
Unpacking libsigc++-2.0-0c2a (from .../libsigc++-2.0-0c2a_2.0.18-2_armel.deb) ...
Selecting previously deselected package libcwidget3.
Unpacking libcwidget3 (from .../libcwidget3_0.5.12-4ubuntu1_armel.deb) ...
Selecting previously deselected package libxapian15.
Unpacking libxapian15 (from .../libxapian15_1.0.7-4_armel.deb) ...
Selecting previously deselected package libept0.
Unpacking libept0 (from .../libept0_0.5.26build1_armel.deb) ...
Selecting previously deselected package aptitude.
Unpacking aptitude (from .../aptitude_0.4.11.11-1ubuntu1_armel.deb) ...
Selecting previously deselected package libcap2.
Unpacking libcap2 (from .../libcap2_2.11-2_armel.deb) ...
Selecting previously deselected package perl-modules.
Unpacking perl-modules (from .../perl-modules_5.10.0-19ubuntu1_all.deb) ...
Selecting previously deselected package libgdbm3.
Unpacking libgdbm3 (from .../libgdbm3_1.8.3-4_armel.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.10.0-19ubuntu1_armel.deb) ...
Selecting previously deselected package libclass-accessor-perl.
Unpacking libclass-accessor-perl (from .../libclass-accessor-perl_0.31-2_all.deb) ...
Selecting previously deselected package libio-string-perl.
Unpacking libio-string-perl (from .../libio-string-perl_1.08-2_all.deb) ...
Selecting previously deselected package libtimedate-perl.
Unpacking libtimedate-perl (from .../libtimedate-perl_1.1600-9_all.deb) ...
Selecting previously deselected package libparse-debianchangelog-perl.
Unpacking libparse-debianchangelog-perl (from .../libparse-debianchangelog-perl_1.1.1-2ubuntu1_all.deb) ...
Preparing to replace ntpdate 1:4.2.4p4+dfsg-7ubuntu3 (using .../ntpdate_1%3a4.2.4p4+dfsg-7ubuntu5_armel.deb) ...
Unpacking replacement ntpdate ...
Preparing to replace tasksel 2.73ubuntu13 (using .../tasksel_2.73ubuntu18_all.deb) ...
Unpacking replacement tasksel ...
Preparing to replace ubuntu-minimal 1.131 (using .../ubuntu-minimal_1.140_armel.deb) ...
Unpacking replacement ubuntu-minimal ...
Preparing to replace samba 2:3.2.5-3ubuntu1 (using .../samba_2%3a3.3.2-1ubuntu3_armel.deb) ...
 * Stopping Samba daemons
   ...done.
Unpacking replacement samba ...
Preparing to replace samba-common 2:3.2.5-3ubuntu1 (using .../samba-common_2%3a3.3.2-1ubuntu3_armel.deb) ...
Unpacking replacement samba-common ...
Setting up libxcb1 (1.1.93-0ubuntu3) ...
Setting up libx11-6 (2:1.1.99.2-1ubuntu2) ...
Setting up python2.6 (2.6.2-0ubuntu1) ...
Setting up python (2.6.2-0ubuntu1) ...
running python rtupdate hooks for python2.6...
running python post-rtupdate hooks for python2.6...
Setting up libc6-vfp (2.9-4ubuntu6) ...
Setting up libsigc++-2.0-0c2a (2.0.18-2) ...
Setting up libcwidget3 (0.5.12-4ubuntu1) ...
Setting up libxapian15 (1.0.7-4) ...
Setting up libept0 (0.5.26build1) ...
Setting up aptitude (0.4.11.11-1ubuntu1) ...
Setting up libcap2 (2.11-2) ...
Setting up libgdbm3 (1.8.3-4) ...
Setting up ntpdate (1:4.2.4p4+dfsg-7ubuntu5) ...
Setting up tasksel (2.73ubuntu18) ...
Setting up ubuntu-minimal (1.140) ...
Setting up samba-common (2:3.3.2-1ubuntu3) ...
Installing new version of config file /etc/dhcp3/dhclient-enter-hooks.d/samba ...
Setting up samba (2:3.3.2-1ubuntu3) ...
Installing new version of config file /etc/init.d/samba ...
 * Starting Samba daemons
   ...done.
Setting up perl-modules (5.10.0-19ubuntu1) ...
Setting up perl (5.10.0-19ubuntu1) ...
Setting up libclass-accessor-perl (0.31-2) ...
Setting up libio-string-perl (1.08-2) ...
Setting up libtimedate-perl (1.1600-9) ...
Setting up libparse-debianchangelog-perl (1.1.1-2ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

root@debian:~#

root@debian:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.04
Release:        9.04
Codename:       jaunty
6  Hardware and U-Boot firmware / Hardware / Re: Control the Green and Blue LEDs on: April 25, 2009, 01:20:03 AM
I gave that a try (echo "heartbeat" > /sys/class/leds/plug\:green\:health/trigger) and it does indeed work, makes my blue LED blink like a heartbeat. I am running 2.6.30-rc1

I also noticed that putting it in heartbeat mode simply toggles /sys/class/leds/plug:green:health/brightness between 0 and 255

root@debian:~# cat /sys/class/leds/plug\:green\:health/brightness
0
root@debian:~# cat /sys/class/leds/plug\:green\:health/brightness
255

So I guess if you wanted to control the LED with a script you could simple alter the brightness, or toggle the trigger between none and on.
7  General Category / Application ideas and development Q/A / Re: Deluge (Torrent Box) on: April 25, 2009, 01:07:24 AM
You may want to give TorrentFlux a try. Has a great GUI and uses transmission on the backend.
8  Linux Stuff / Kernel / Re: anyone compile a custom kernel yet? on: April 15, 2009, 06:57:11 PM
Thanks for the tips, the orion_mtd thing was definitely a problem as was the rootfstype=jffs2.

I am now booted into the new kernel. It took around 4x longer to boot than the older kernel, it just sat there for awhile, I thought it was locked up at first.  I am also seeing these errors at boot:

Code:
* Activating swap...                                                    [ OK ]
FATAL: Could not load /lib/modules/2.6.30-rc1-00002-g1758996/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.30-rc1-00002-g1758996/modules.dep: No such file or directory
 * Starting early crypto disks...                                        [ OK ]
FATAL: Could not load /lib/modules/2.6.30-rc1-00002-g1758996/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.30-rc1-00002-g1758996/modules.dep: No such file or directory
 * Starting remaining crypto disks...                                    [ OK ]
 * Checking file systems...fsck 1.41.4 (27-Jan-2009)                     [ OK ]
 * Mounting local filesystems...                                         [fail]
 * Activating swapfile swap...                                           [ OK ]
 * Configuring network interfaces...                                     [ OK ]
 * Setting up console font and keymap...                                 [ OK ]
 * Starting system log daemon...                                         [ OK ]
 * Starting kernel log daemon...                                         [ OK ]
 * Starting OpenBSD Secure Shell server sshd                             [ OK ]
 * Starting periodic command scheduler crond                             [ OK ]
 fat: version magic '2.6.22.18 mod_unload ARMv5 ' should be '2.6.30-rc1-00002-g1758996 preempt mod_unload ARMv5 '
 insmod: error inserting '/boot/fat.ko': -1 Invalid module format

the fat.ko and vfat.ko that are in /boot are from the old kernel so I understand why they are not working. I checked the dirs of my cross-compile and found no .ko binaries to replace them with though.

*EDIT*

I found I had to go back to my source and do a:
make -j4 ARCH=arm CROSS_COMPILE=/root/tmp/arm-2008q3/bin/arm-none-eabi- modules

And now I have all the modules. I then did a:
make -j4 ARCH=arm CROSS_COMPILE=/root/tmp/arm-2008q3/bin/arm-none-eabi- modules_install

And on this installed all the modules and associated files in my CentOS server in /lib/modules:

# ls -l /lib/modules
total 5344
drwxr-xr-x 6 root root    4096 Mar  5 10:11 2.6.18-92.1.22.el5
drwxr-xr-x 6 root root    4096 Mar  5 07:58 2.6.18-92.el5
drwxr-xr-x 3 root root    4096 Apr 15 19:00 2.6.30-rc1-00002-g1758996

I then made a tar of the 2.6.30* dir and scp'd it to the plug and untared it in /lib/modules, and I think I'm good to go now.

I also commented out the loading of the fat and vfat modules in the /etc/rc.local, since I built them into the new kernel.
9  Linux Stuff / Kernel / Re: anyone compile a custom kernel yet? on: April 15, 2009, 01:10:52 PM
Well I tried booting the new kernel and got the same error as the other fellow, even though I followed the instructions:

Code:
Marvell>>
Marvell>> printenv arcNumber
## Error: "arcNumber" not defined
Marvell>> setenv arcNumber 2097
Marvell>> setenv mainlineLinux yes
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
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-rc1-00002-g1758996
   Created:      2009-04-15  18:44:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2083608 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0000020f).

Available machine support:

ID (hex)        NAME
00000690        Marvell DB-88F6281-BP Development Board
00000691        Marvell RD-88F6192-NAS Development Board
00000692        Marvell RD-88F6281 Reference Board
00000831        Marvell SheevaPlug Reference Board
0000085b        QNAP TS-119/TS-219

Please check your kernel config and/or bootloader.

Any idea what I did wrong?
10  Linux Stuff / Kernel / Re: anyone compile a custom kernel yet? on: April 15, 2009, 12:14:18 PM
Just thought I would point this out in case some don't make the connection, referring to the Booting the Kernel and Troubleshooting section of http://plugcomputer.org/plugwiki/index.php/Compiling_Linux_Kernel_for_the_Plug_Computer#Booting_the_kernel

Code:
Marvell>> setenv arcNumber 2097
Marvell>> setenv mainlineLinux yes
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done

The "2097" is the decimal equivalent of the hex value "831", which is the machine id for the SheevaPlug:

Code:
Error: unrecognized/unsupported machine ID (r1 = 0x0000020f).

Available machine support:

ID (hex) NAME
00000690 Marvell DB-88F6281-BP Development Board
00000691 Marvell RD-88F6192-NAS Development Board
00000682 Marvell RD-88F6281 Reference Board
00000831 Marvell SheevaPlug Reference Board
0000085b QNAP TS-119/TS-219

Please check your kernel config and/or bootloader.
11  Linux Stuff / Kernel / Re: anyone compile a custom kernel yet? on: April 15, 2009, 11:47:02 AM
Update: I used the mkimage binary from the devkit, and was able to successfully compile 2.6.30-rc1 using the cross-compiler on a CentOS 5.3 system.

Code:
Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/head.o
  CC      arch/arm/boot/compressed/misc.o
  AS      arch/arm/boot/compressed/piggy.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-2.6.30-rc1-00002-g1758996
Created:      Wed Apr 15 11:44:36 2009
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2083608 Bytes = 2034.77 kB = 1.99 MB
Load Address: 0x00008000
Entry Point:  0x00008000
  Image arch/arm/boot/uImage is ready

Now to hold my breath and write it to the plug and see if it boots. If it does I should have the cifs, NTFS, and uvcvideo support that I need Smiley
12  Linux Stuff / Kernel / Re: anyone compile a custom kernel yet? on: April 15, 2009, 11:04:30 AM
Fedora 10. Maybe I should try it on a debian system, I thought it wouldn't matter since It's a cross-compiler.

Well for the record I also just tried compiling mkimage on a CentOS 5.3 machine and got the same failure. I guess I should either try compiling it on a ubuntu/debian system, or I think there may be a binary in the dev kit.
13  Hardware and U-Boot firmware / Hardware / Re: My SheevaPlug is very unstable on: April 15, 2009, 10:43:43 AM
I havn't seen any docs that tell what the blue light is an indicator for. Does anyone know exactly?
14  Linux Stuff / Kernel / Re: Cannot boot from NAND after reflash? on: April 15, 2009, 02:04:15 AM
You have the gateway and netmask reversed and are missing a host name.  Something more like this:

ip=192.168.0.3:192.168.0.5:192.168.0.1:255.255.255.0:DB88FXX81:etho:none

That "etho" should be "eth0". I'm certain that you know that but just making sure as some folks just cut and paste Smiley
15  Hardware and U-Boot firmware / Hardware / Re: My SheevaPlug is very unstable on: April 15, 2009, 02:00:27 AM
For what it's worth, mine has been powered up 24/7 since I got it, and no problems except the bad blocks on the NAND flash, which were there when I received it. When it crashes and you reboot, are there any errors in your /var/log/messages from before the reboot?
Pages: [1] 2