• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2
1  General Category / Success stories / Re: integer/fixed point mp3 encoder on: May 06, 2009, 07:34:40 PM
Quote
All I'm doing is encoding speech output from flite, so the lack of sound quality isn't a huge issue.
That's an understatement!  I've been bugging Cepstral to do an ARM/Linux version, but it's not likely to happen.  The lack of a reasonable sounding TTS engine is one of the few minuses to the plug.  I'm just screwing around with a hobby application, for a real product Cepstral would be happy to do an OEM version.  Sigh...

Skip
2  General Category / Success stories / Re: integer/fixed point mp3 encoder on: May 04, 2009, 05:39:36 AM
I haven't tried it on the Plug yet, but take a look at:
program: comprec
source: http://unimut.fsk.uni-heidelberg.de/demi/comprec/index.html
based on shine from http://www.mp3-tech.org/programmer/sources/shine.zip
license: gplv2 (from original shine's COPYING file)

I've used it with good results on the TS7250 which is an 200Mhz ARM9 platform.

Skip
3  General Category / Success stories / Re: Sound anyone? on: April 25, 2009, 11:57:02 PM
For anyone that's interested I've written up what I did to get sound running on my plug here: http://cqinet.wiki.sourceforge.net/plug_sound.

Skip
4  General Category / General Discussion / Re: SD root filesystem flies! on: April 25, 2009, 11:15:30 PM
Ah!  So when I did the "cp -ax / /Whereever/SdIsMounted" on a running system to
create my mmc image nothing was populated in /dev because it has been overlayed
by the udev filesystem by that time.  I populated my /dev/ directory and that fixed
the problem!  Thanks!  I sure seems obvious now, but it hasn't been for last 4 hours!

So
All you need to do is:

"cp -ax / /Whereever/SdIsMounted"
In U-Boot change boot_args to "root=/dev/mmcblk0p1".
and then
Code:
"cp -a /dev /Whereever/SdIsMounted/dev

That probably picks up way more than is needed, but at least it boots!

Skip
5  General Category / General Discussion / Re: SD root filesystem flies! on: April 25, 2009, 08:15:08 PM
Quote
Regarding your problem, do you have /dev/ttyS0?
Well /dev is a udev filesystem so no I don't have a /dev/ttyS0 in the flash itself, but I do have the mount point.

/etc/fstab looks like this
Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
/proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,nosuid,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
/dev/mmcblk0p1 / ext3 rw 0 0
tmpfs   /var/cache/apt  tmpfs   defaults,noatime

Skip
6  General Category / General Discussion / Re: SD root filesystem flies! on: April 25, 2009, 06:27:45 PM
I'm not having any luck with my 2gig card.  It boots ok, but then ends up with
Code:
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SD card at address 0002
mmcblk0: mmc0:0002 SD2GB 2009088KiB
 mmcblk0: p1
eth0: link down
eth0: started
IP-Config: Gateway not on directly connected network.
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on mmcblk0p1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing init memory: 104K
Warning: unable to open an initial console.
eth0: link up, full duplex, speed 100 Mbps
I can't ssh in either - connection refused.  Ideas?  I've fsck'ed the thing and it's clean.

Maybe it'll be fast in use, it sure took forever to mkfs it and copy the initial contents.

Skip
7  General Category / Success stories / Re: Sound anyone? on: April 23, 2009, 01:56:25 PM
I'm using an external USB audio dongle.  The plug does not have sound.  I believe
the CPU chip has part of the sound device, but not all of it (Codec is external?).

Summary:  The shipping (binary) kernnel doesn't have sounds support.  Sound
support in linux-2.6.30-rc1 and the current (as of yesterday) Marvel git repository
does not work.  But... linux-2.6.22.18 from plug site *does* work.

I've played and "recorded" audio.  I haven't messed with mp3s since that's not
my application, but that should be no problem.  There are ARM optimized mp3
decoders out there and the plug is a lot faster than most ARM based PDAs
that support mp3.

My application is RoIP (Radio over IP), i.e. VoIP for radio nuts.  We use VoIP
to tie our repeater systems together over the Internet.
http://groups.yahoo.com/group/thelinkbox

Skip
8  Linux Stuff / Kernel / Re: linux-feroceon_4_2_7_KW.zip ? on: April 20, 2009, 04:59:21 PM
I got sound working !!
On a whim I tried 2.6.22.18 with what I think is the same configuration and ...
it works fine!  The USB sound device still shows up as card1, but it works.
Both capture and playback.

I'll try 2.6.30 when it's released or I would be happy to try anything anyone
has to suggest.

Thanks for the help!

Skip
9  Linux Stuff / Kernel / Re: linux-feroceon_4_2_7_KW.zip ? on: April 20, 2009, 01:13:13 PM
My .config is too big to post and I didn't find a way to send you a private email with an attachment so I've
uploaded it to here: http://members.cox.net/~skipsfiles/config .

Skip
10  Linux Stuff / Kernel / Re: linux-feroceon_4_2_7_KW.zip ? on: April 20, 2009, 01:01:53 PM
Here's what /proc/asound looks like:
Code:
root@debian:~# find /proc/asound/
/proc/asound/
/proc/asound/default
/proc/asound/card1
/proc/asound/card1/oss_mixer
/proc/asound/card1/id
/proc/asound/card1/usbbus
/proc/asound/card1/usbid
/proc/asound/card1/stream0
/proc/asound/card1/pcm0c
/proc/asound/card1/pcm0c/oss
/proc/asound/card1/pcm0c/sub0
/proc/asound/card1/pcm0c/sub0/status
/proc/asound/card1/pcm0c/sub0/sw_params
/proc/asound/card1/pcm0c/sub0/hw_params
/proc/asound/card1/pcm0c/sub0/info
/proc/asound/card1/pcm0c/info
/proc/asound/card1/pcm0p
/proc/asound/card1/pcm0p/oss
/proc/asound/card1/pcm0p/sub0
/proc/asound/card1/pcm0p/sub0/status
/proc/asound/card1/pcm0p/sub0/sw_params
/proc/asound/card1/pcm0p/sub0/hw_params
/proc/asound/card1/pcm0p/sub0/info
/proc/asound/card1/pcm0p/info
/proc/asound/pcm
/proc/asound/hwdep
/proc/asound/timers
/proc/asound/modules
/proc/asound/cards
/proc/asound/devices
/proc/asound/version
/proc/asound/seq
/proc/asound/seq/timer
/proc/asound/seq/clients
/proc/asound/seq/queues
/proc/asound/seq/drivers
/proc/asound/oss
/proc/asound/oss/sndstat
/proc/asound/oss/devices
root@debian:~# cat /proc/asound/card1/stream0
C-Media USB Headphone Set   at usb-orion-ehci.0-1, full speed : USB Audio

Playback:
  Status: Stop
  Interface 1
    Altset 1
    Format: 0x2 (16 bits)
    Channels: 2
    Endpoint: 1 OUT (ADAPTIVE)
    Rates: 48000, 44100

Capture:
  Status: Stop
  Interface 2
    Altset 1
    Format: 0x2 (16 bits)
    Channels: 1
    Endpoint: 2 IN (ASYNC)
    Rates: 48000, 44100
root@debian:~#
11  Linux Stuff / Kernel / Re: linux-feroceon_4_2_7_KW.zip ? on: April 20, 2009, 12:59:31 PM
Sure here you go.
Code:
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.30-rc1 (root@ubuntu) (gcc version 4.2.1) #4 PREEMPT Sun Apr 19 16:12:39 PDT 2009
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/nfs rw nfsroot=192.168.123.82:/nand_root ip=192.168.123.83:192.168.123.1:::DB88FXX81:eth0:none
NR_IRQS:114
PID hash table entries: 2048 (order: 11, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 514432KB available (3864K code, 927K data, 116K init, 0K highmem)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 520 bytes
NET: Registered protocol family 16
Kirkwood: MV88F6281-A0, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
cfg80211: Calling CRDA for country: US
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
msgmni has been set to 1005
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:50:43:01:c4:05
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 2528 at 0x000013c00000
Bad eraseblock 2529 at 0x000013c20000
Bad eraseblock 2530 at 0x000013c40000
Bad eraseblock 2539 at 0x000013d60000
Bad eraseblock 2540 at 0x000013d80000
Bad eraseblock 2541 at 0x000013da0000
Bad eraseblock 2585 at 0x000014320000
Bad eraseblock 3333 at 0x00001a0a0000
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
Registered led device: plug:green:health
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SD card at address 0002
mmcblk0: mmc0:0002 SD2GB 1.91 GiB
 mmcblk0: p1
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
VFP support v0.3: not present
rtc-mv rtc-mv: setting system clock to 2009-04-20 19:46:22 UTC (1240256782)
usb 1-1: new full speed USB device using orion-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
input: C-Media USB Headphone Set   as /devices/platform/orion-ehci.0/usb1/1-1/1-1:1.3/input/input0
generic-usb 0003:0D8C:000C.0001: input: USB HID v1.00 Device [C-Media USB Headphone Set  ] on usb-orion-ehci.0-1/input3
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.123.83, mask=255.255.255.0, gw=255.255.255.255,
     host=DB88FXX81, domain=, nis-domain=(none),
     bootserver=192.168.123.1, rootserver=192.168.123.82, rootpath=
Looking up port of RPC 100003/2 on 192.168.123.82
eth0: link up, 100 Mb/s, full duplex, flow control disabled
Looking up port of RPC 100005/1 on 192.168.123.82
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 116K
 * Setting preliminary keymap...        [ OK ]
 * Setting the system clock
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
 * Unable to set System Clock to: Mon Apr 20 19:46:25 UTC 2009
 * Starting basic networking...        [ OK ]
 * Starting kernel event manager...        [ OK ]
 * Loading hardware drivers...        uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector 8
Buffer I/O error on device mtdblock0, logical block 1
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector 16
Buffer I/O error on device mtdblock0, logical block 2
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector 24
Buffer I/O error on device mtdblock0, logical block 3
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
usbcore: registered new interface driver snd-usb-audio
[ OK ]
 * Setting the system clock
 * Loading kernel modules...         * Loading manual drivers...        [ OK ]
 * Setting kernel variables (/etc/sysctl.conf)...        [ OK ]
 * Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)...        [ OK ]
 * Setting kernel variables (/etc/sysctl.d/10-network-security.conf)...        [ OK ]
 * Setting kernel variables (/etc/sysctl.d/10-process-security.conf)...        error: "vm.mmap_min_addr" is an unknown key
[fail]
 * Setting kernel variables (/etc/sysctl.d/10-tcp-timestamps-workaround.conf)...        [ OK ]
 * Activating swap...        [ OK ]
 * Starting early crypto disks...        [ OK ]
 * Starting remaining crypto disks...        [ OK ]
 * Checking file systems...        fsck 1.41.3 (12-Oct-2008)
[ OK ]
 * Mounting local filesystems...        [ OK ]
 * Activating swapfile swap...        [ OK ]
 * Configuring network interfaces...        [ OK ]
 * Starting portmap daemon...        [ OK ]
 * Starting NFS common utilities        [ OK ]
 * Setting up console font and keymap...        [ OK ]
 * Starting system log daemon...        [ OK ]
 * Starting kernel log daemon...        
Ubuntu jaunty (development branch) debian ttyS0

debian login: [ OK ]
 * Starting OpenBSD Secure Shell server sshd        [ OK ]
 * Starting NFS common utilities        [ OK ]
 * Starting periodic command scheduler crond        [ OK ]
fat: version magic '2.6.22.18 mod_unload ARMv5 ' should be '2.6.30-rc1 preempt mod_unload ARMv5 '
insmod: error inserting '/boot/fat.ko': -1 Invalid module format

Ubuntu jaunty (development branch) debian ttyS0

debian login: root
Password:
Last login: Mon Apr 20 19:45:45 UTC 2009 on ttyS0
Linux debian 2.6.30-rc1 #4 PREEMPT Sun Apr 19 16:12:39 PDT 2009 armv5tel

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
root@debian:~#
12  Linux Stuff / Kernel / Re: linux-feroceon_4_2_7_KW.zip ? on: April 20, 2009, 11:22:01 AM
Thanks!  That fixed the problem.  Does that mean I've recreated the shipping binary or are there other patches
in linux-feroceon_4_2_7_KW.zip?  The reason I was trying to build the original kernel was to find out what
was different from the mainstream kernel that prevented the SD card from working... that issue has now
been resolved as well.

While I have you... I'm trying to get and USB audio device to work on my custom kernel, so far without success. 
USB pen drives and USB serial devices work fine so I know the basic USB subsystem is working.  When I
plug in the USB audio dongle the appropriate drivers are auto loaded and I can set sampling rates, etc
but I never get any audio in.  Has anyone been successful in getting USB audio to work?

I've configured my kernel without the onchip audio controller, but the USB audio device is still coming up as
card 1 and /dev/dsp1 rather than card 0.  That's probably a good clue as to my problem, but I don't
know where to go from here.

Skip
13  Linux Stuff / Kernel / Re: 2.6.30-rc1 and mmc cards on: April 19, 2009, 06:32:44 PM
I applied  http://svn.nslu2-linux.org/svnroot/optware/trunk/sources/kernel-modules/kirkwood/mvsdio.patch and that fixed it for me.

Skip
14  Linux Stuff / Kernel / Re: SD card support on: April 19, 2009, 05:11:03 PM
Looks like you do.  I haven't actually built and tired the git kernel yet, but patched file that works
doesn't match the git version.  In particular the line
Code:
if (cmd->opcode == SD_SWITCH) mdelay(1); /* Voodoo */
is missing... so if Voodo is needed the git version don't got it!

Skip
15  Linux Stuff / Kernel / Re: SD card support on: April 19, 2009, 04:15:31 PM
That patch did the trick, my SD card is now working on 2.6.30-rc1!
Back to banging my head on USB audio.  USB pen drives and
USB serial devices are working so that basic USB subsystem
is working.

Skip
Pages: [1] 2