• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2
1  General Category / General Discussion / Re: New QT based installer: Enhanced Sheevaplug Installer Application (ESIA) on: July 04, 2010, 02:39:50 PM
1) use it with any FTDI device (configurable VID/PID)

Is there anyway to get this working with any other serial device? I have a DockStar and I'm using a Siemens IP40 serial adapter which uses a Prolific chip. I can connect through screen and I've configured esia to use 0x067b / 0x2303, but I still get a "No USB Device attached" error.

2  Linux Stuff / General Linux questions / Re: Bug w/nfs-kernel-server old debian init script. on: March 03, 2010, 07:14:17 PM
You need to edit nfs-kernel-server in /etc/init.d to allow for the fact that the symbol it looks for in /proc/kallsyms finds the new value.  Around line 66.  Needs to look like this:

I deleted the file completely and it reinstalled a new one that worked, so it's fixed at least in unstable.
3  General Category / General Discussion / Re: Getting serial console working on: March 03, 2010, 01:15:28 PM
One problem that I've run into is that when you unplug and plug in the serial console, sometimes linux will assign it to another tty. Say it's /dev/ttyUSB0, if you a powercycle reboot it'll come up on /dev/ttyUSB1. Which means your console (I use screen) won't do anything...

One neat trick is that with the udev, it creates symbolic links in /dev/serial/, so no matter where it comes back, you'll get it right away. Especially important in that ever so time crucial first few seconds trying to catch uBoot.

Here's my command:
screen /dev/serial/by-id/usb-FTDI_SheevaPlug_JTAGKey_FT2232D_B_FTSFE6XP-if01-port0 115200
4  Linux Stuff / General Linux questions / Bug w/nfs-kernel-server old debian init script. on: March 03, 2010, 11:11:16 AM
I finally decided I wanted an nfs server. But for the life of me I could not get it to work. Even went through all the trouble of getting cbxbiker61's custom kernel and still NOTHING.

There's something wrong with my init.d script (at least there is with mine). I have no idea why apt-get wasn't installing the latest  version, but it kept the old one.

It relates to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550153

If you get the error than nfs server isn't in the kernel, what you need to do is check your init script. There's a place where it greps /proc/kallsyms,  and the grep was wrong, causing it to fail.

A simple solution is to delete the init.d script, and do an apt-get install --reinstall nfs-kernel-server and you should be all good.

Or if you're 100% sure that it's compiled (check the .config) then just comment out the lines where it throws the error.
5  Linux Stuff / Kernel / Re: sheeva with-linux kernels into normal Debian install? on: March 03, 2010, 08:16:39 AM
initrd is not needed, actually your bootcmd_sheeva_sd doesn't use it (and if it succeeds, bootcmd_debian_sd is never run).
So are you booting the sheeva-uImage now?

Yep. That's the 'failback' if I want to go to the standard debian distro so I don't have to break out the cable. All I have to do is move sheeva-uImage and reboot.

I just copy and pasted those instructions from somewhere I found them.
6  Linux Stuff / Kernel / Re: new release on: March 02, 2010, 11:41:41 PM
Features dmcrypt, IPV6, CIFS, NFS4, EXT3, EXT4, JFS, XFS, FUSE(for ntfs-3g), UBIFS, usb-serial, uvcvideo, iptables, appletalk, bluetooth, v4l and ppp.

I still get this when trying to run the server:

/etc/init.d/nfs-kernel-server start
Not starting NFS kernel daemon: no support in current kernel. ... (warning).

Bug in my init script, see http://plugcomputer.org/plugforum/index.php?topic=1412.0
7  Linux Stuff / Kernel / Re: sheeva with-linux kernels into normal Debian install? on: March 02, 2010, 10:59:17 PM
I found the solution, but it wasn't quite the one I was looking for...

It requires change of the boot args.

setenv load_sd 'mmcinit;ext2load mmc 0 0x800000 /uImage'
setenv bootcmd_sd 'setenv bootargs $(bootargs_sd);run load_sd;bootm 0x800000'

I've also just thought this through and I'm going to rename that to /sheeva-uImage so that when I do an apt update Debian doesn't replace uImage.

Also going to change the failover so that if I remove /uImage-sheeva it will boot my standard distro.

setenv bootargs_sd 'console=ttyS0,115200 root=/dev/mmcblk0p2 rw'
setenv load_debian_sd 'mmcinit; ext2load mmc 0 0x0800000 /uInitrd; ext2load mmc 0 0x400000 /uImage'
setenv load_sheeva_sd 'mmcinit; ext2load mmc 0 0x800000 /sheeva-uImage'
setenv bootcmd_debian_sd 'setenv bootargs $(bootargs_sd);run load_debian_sd;bootm 0x400000 0x0800000'
setenv bootcmd_sheeva_sd 'setenv bootargs $(bootargs_sd);run load_sheeva_sd;bootm 0x800000'

setenv bootargs_nand 'console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs'
setenv bootcmd_nand 'setenv bootargs $(bootargs_nand);nand read.e 0x2000000 0x100000 0x1000000;bootm 0x2000000'

setenv bootcmd 'run bootcmd_sheeva_sd;run bootcmd_debian_sd;run bootcmd_nand'

Now nearly no matter what happens I should boot.



Still hoping to hear of a solution that doesn't require me running around the house figuring out WTF I put my USB-b cable and dragging the plug out of its secret hiding place to hook it up to my MacBook.

8  Linux Stuff / Kernel / sheeva with-linux kernels into normal Debian install? on: March 02, 2010, 10:32:03 PM
For the life of me I can't figure out how to get sheeva.with-linux kernel releases to work with the normal Debian install.

sheeva.with-linux is only a uImage where as the Debian kirkwood installs have uImage & uInitrd.

I've tried to extract the uImage kernel and use the standard Debian tools to rebuild everything. Below is the post I was making when I thought I was brilliant and it'd work Smiley.

Right now it just hangs loading uImage.
Marvell>> ext2load mmc 0 0x0800000 /uInitrd

2576284 bytes read
Marvell>> ext2load mmc 0 0x400000 /uImage

Requiring a hard reboot.
So you can extract the normal vmlinuz from the uImage by stripping off a bit.
# dd if=uImage of=testKernel bs=64 skip=1

# ls -l testKernel vmlinuz-2.6.32-2-kirkwood
-rw-r--r-- 1 root root 1429756 Mar  2 20:12 testKernel
-rw-r--r-- 1 root root 1429756 Feb 12 16:01 vmlinuz-2.6.32-2-kirkwood

# diff testKernel vmlinuz-2.6.32-2-kirkwood

So following that logic:
dd if=sheeva- of=vmlinuz- bs=64 skip=1
Then I can get it to build a initrd image:

root@plug:/boot# update-initramfs -k -c
update-initramfs: Generating /boot/initrd.img-

You need to create a link for the vmlinuz,
# ln -s /boot/vmlinuz- /boot/vmlinuz-

# update-initramfs -k -u
update-initramfs: Generating /boot/initrd.img-
Generating kernel u-boot image... done.
Creating backup of /boot/uImage.
Creating new /boot/uImage.
Generating initrd u-boot image... done.
Creating backup of /boot/uInitrd.
Creating new /boot/uInitrd.

9  Linux Stuff / Linux distributions / Invalid Module Format with Debian Sid on: March 01, 2010, 09:15:37 AM
For some reason all of my modules are failing to load. I first noticed it with the ipv6 which I used for freenet, now I can't get NFS to load.

> sudo invoke-rc.d nfs-kernel-server start
FATAL: Error inserting nfsd (/lib/modules/2.6.32-trunk-kirkwood/kernel/fs/nfsd/nfsd.ko): Invalid module format
Not starting NFS kernel daemon: no support in current kernel. ... (warning).

> file /lib/modules/2.6.32-trunk-kirkwood/kernel/fs/nfsd/nfsd.ko
/lib/modules/2.6.32-trunk-kirkwood/kernel/fs/nfsd/nfsd.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped

> uname -a
Linux plug 2.6.32-trunk-kirkwood #1 Sun Dec 27 04:22:07 UTC 2009 armv5tel GNU/Linux

Apt-get is updated/upgraded to the latest.
10  General Category / General Discussion / Re: Competition to the plug? on: January 07, 2010, 09:08:15 AM
But isn't this just marketing people TELLING people that what they are doing is new and exciting?  Look at Nintendos stupid marketing tricks of drip feeding supplies, so consumers kill each other to buy one (they must be good, right, because nowhere has them...).   The reality is however, that the Playstation2 was doing EXACTLY what the Wii is doing today, TEN years ago, with the EyeToy camera and motion tracking.

Well, yes guess Marketing has to tell the general public what they do. I never knew the PS2 did any of that. I don't remember seeing any ads for any games that did it. I'm really interested in how a single 2D camera was able to pick up stuff like the twist of your wrist during bowling, tennis and such. To say that it did exactly what the Wii does is a bit of a hyperbole.

Same really for the iPod/iPhone, yes, they might have a good UI, but everything else about them sucks badly, their PRIMARY purpose, music in the case of the ipod and making calls in the case of the iPhone, they are both horrid at (the sound quality of the iPods in particular, which cheap Chinese players regularly outclass them in).

What sucks so bad about the iPod? This chart shows that response is relatively flat: http://www.stereophile.com/budgetcomponents/934/index5.html# Most people are listening to 128k to 192k MP3s. I'm not all audio philes. Every music playing device I've used has sounded the same and

As for the UI, again, Apple have such a foothold, people don't bother to explore alternatives.  Creative, Sony Walkman and iRiver all have great speedy UI, and do exactly what they neeed to, no more, and arguably because of that do it better than Apple.

I've used some of those UIs. They suck. They're non-intuitive and the controls suck as well.

I just get annoyed when marketing wins out over tech.  In my ideal world, the products with the best technology will always succeed, and marketing would not be needed at all.

You severely underestimate what marketing does. God forbid a world with stuff designed by Engineers.
11  General Category / General Discussion / Re: Competition to the plug? on: January 07, 2010, 12:48:02 AM
However Apple will spend lots of money on marketing, and consumers will then buy whatever crap Apple want to sell them regardless of how good or bad it is, in comparision to competing products.

I have long since worked out that best technology or best value does not mean best sales any more, if you have pretty adverts and comes with a "uban chic" created by the manufacturer, then you can sell sub-par stuff to the mass market consumers that are too stupid (or lazy) to bother to explore alternatives.   Many examples of this (iPhone, iPod, Wii, Xbox360 all inferior to their counterparts, but sell well due to advertising/marketing/virual marketing/astroturfing)

The iPod and then the iPhone made it because of the user interface. You can still go out there and buy cheap (<$75) media players from China. The UI sucks. You have to be a near Linux Guru to encode any media to play on them. The UI... really sucks. iPhone/iPod integrates directly with iTunes store. People can easily (and legally) get their media. I have no problem finding the latest Torrent/NZB, loading it up in rTorrent or SABnzbd+, scping it to my Mac. Dragging and dropping it onto my cheap media player. There is no way in hades I'm going to have my mother do that. Her iPod shuffle + iTunes is easy enough for her to figure out.

The Wii brought gaming to EVERYONE. My aunts and uncles who have never touched a gaming console in their lives got up and bowled with us at Thanksgiving. They played tennis and even some of the more advanced 'group' games.

Specs on paper don't always tell the whole story. If this comes out at $199 and the UI absolutely sucks, there is no product support and hard to figure out then you bet your a$$ a product that costs 5x as much is going to do better. Apple spends big money on the entire user experience, right down to product packaging. Some of their packaging for the last product I bought was ingenious. Compared to the 'I'm probably going to lose a finger opening this' stuff that I get at Walmart.

In the Same way I bought the Sheeva Dev Kit, but if my mom or sister wanted to do the stuff it does, I'd most certainly recommend a company that may be 'more expensive' that spends money on being 'urban chic' even though it may be missing the Oh So Important Extra Feature: SD card Slot. (I mean, on paper SD == Better Right?)

12  General Category / Success stories / Re: Multipurpose Server at Home on: January 07, 2010, 12:38:23 AM
- NFS shares (web folder, share folder, distfiles from gentoo, torrent files, films, ...). (6 PC)
- Samba for sharing films to a small wifi media center (nice!).
- rsyncd for syncing portage tree.
- rTorrent
- web server
- postgresql server
- subversion server
- ssh server
- dynamic dns update.
- dnsmasq (for dhcp, router lacks some functions, especially for give static private IP and discard /etc/hosts in other computers)
- screen (not a service but quite usefull for maintaining a open shell on the plug)

Still thinking:
- squid
- ntp server
- JRE (strange issue with Gentoo)

Everything you have, except mysql instead of postgres. Squid for ssh tunneling stuff from work. ccx stream for xbmc and a few other things.
13  Linux Stuff / Linux distributions / Re: Debian installer for SheevaPlug available now on: November 02, 2009, 01:09:39 PM
darkscout: when you say the installer hangs, does it actually hang (i.e. as if the device has locked up) or is there just a delay (e.g. because it's writing data to the USB stick and that takes some time)?

As far as I can tell it's completely locked up. It doesn't respond to anything over serial. I've even let it go for an hour or more.

I gave up and did the alternative install and I'm happy now.
14  General Category / General Discussion / Qemu+DistCC=Much better compiling. on: October 31, 2009, 05:09:58 PM
I'm not an expert at Qemu, and I've followed a few tutorials but can't seem to get network interfaces up....

I have a quad core desktop that has all of the 'idle' functions replaced by the plug (so I can power it down and save electricity). It theoretically should be possible to throw together a nice Qemu ARM machine and install distcc on everything to speed up compile times.
15  General Category / Application ideas and development Q/A / MP3 Audio Player - Airtunes Lite on: October 31, 2009, 09:58:27 AM
Cleaning the house I came across my old Griffin iMic, which has to be one of the earliest USB soundcards. I bought it 2001-ish to import records on my Mac.

Plugged in, installed ALSA,

plug:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: system [iMic USB audio system], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

plug:~# aplay -L
    iMic USB audio system, USB Audio
    Default Audio Device
    iMic USB audio system, USB Audio
    Front speakers
    iMic USB audio system, USB Audio
    4.0 Surround output to Front and Rear speakers
    iMic USB audio system, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
    iMic USB audio system, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
    iMic USB audio system, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    iMic USB audio system, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iMic USB audio system, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
    Discard all samples (playback) or generate zero samples (capture)

Alsamixer shows 4 controls:
Bass, Bass Boost, Treble, PCM.

Cranked up PCM. If you unmute Bass Boost, it does what you expect. As do Bass and Treble.

plug:~# mplayer Trance\ June\ 2007.mp3
MPlayer SVN-r29789 (C) 2000-2009 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Trance June 2007.mp3.
Audio only file format detected.
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video

No config other than unmuting alsa.

With PulseAudio it should be trivial to set up streaming to it.

However all my music is on drives connected to the Plug, so no reason to for me.

Pages: [1] 2