• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: linux-feroceon_4_2_7_KW.zip ?  (Read 5646 times)
wb6ymh
Newbie
*

Karma: 0
Posts: 18


View Profile
« on: April 19, 2009, 04:06:30 PM »

I'm trying to recreate the kernel the plug shipped with.  According to the documentation I
need linux-feroceon_4_2_7_KW.zip to patch 2.6.22.18.  Has anyone found it?  The 2.6.22.18
I built w/o the patches booted, but the SD card doesn't work.  The SD card does work on the
shipping kernel.

Skip
Logged

rshitrit
Global Moderator
Newbie
*****

Karma: 0
Posts: 14


View Profile
« Reply #1 on: April 20, 2009, 08:37:43 AM »

2.6.22.18 without the LSP cant be used for the SHeevPlug,
u can get the LSP+2.6.22.18 from:
http://openplug.org/index.php/resources/downloads?func=showdown&id=23

or even try the uImage directly from:
http://openplug.org/index.php/resources/downloads?func=select&id=3

Logged

rshitrit
Global Moderator
Newbie
*****

Karma: 0
Posts: 14


View Profile
« Reply #2 on: April 20, 2009, 09:16:36 AM »

Oh, I think I found the prblem, pls try to roll back this patch...

diff -Naur a/arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.c b/arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.c
--- a/arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.c   2009-03-15 16:30:51.000000000 +0200
+++ b/arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.c   2009-03-19 14:22:21.000000000 +0200
@@ -682,7 +682,7 @@
 #define SHEEVA_PLUG_BOARD_PCI_IF_NUM              0x0
 #define SHEEVA_PLUG_BOARD_TWSI_DEF_NUM              0x0
 #define SHEEVA_PLUG_BOARD_MAC_INFO_NUM              0x1
-#define SHEEVA_PLUG_BOARD_GPP_INFO_NUM              0x0
+#define SHEEVA_PLUG_BOARD_GPP_INFO_NUM              0x1
 #define SHEEVA_PLUG_BOARD_MPP_GROUP_TYPE_NUN        0x1
 #define SHEEVA_PLUG_BOARD_MPP_CONFIG_NUM          0x1
 #define SHEEVA_PLUG_BOARD_DEVICE_CONFIG_NUM           0x1
@@ -699,6 +699,11 @@
    /* {{MV_BOARD_DEV_CLASS   devClass, MV_U8   twsiDevAddr, MV_U8 twsiDevAddrType}} */
    {{BOARD_TWSI_OTHER, 0x0, ADDR7_BIT}};
 
+MV_BOARD_GPP_INFO sheevaPlugInfoBoardGppInfo[] =
+   /* {{MV_BOARD_GPP_CLASS   devClass, MV_U8   gppPinNum}} */
+   {{BOARD_GPP_SDIO_DETECT, 47}
+   };
+
 MV_BOARD_MPP_TYPE_INFO sheevaPlugInfoBoardMppTypeInfo[] =
    {{MV_BOARD_OTHER, MV_BOARD_OTHER}
    };
@@ -733,7 +738,7 @@
    SHEEVA_PLUG_BOARD_MAC_INFO_NUM,             /* numBoardMacInfo */
    sheevaPlugInfoBoardMacInfo,
    SHEEVA_PLUG_BOARD_GPP_INFO_NUM,             /* numBoardGppInfo */
-   0,
+   sheevaPlugInfoBoardGppInfo,
    SHEEVA_PLUG_BOARD_DEBUG_LED_NUM,         /* activeLedsNumber */             
    sheevaPlugInfoBoardDebugLedIf,
    0,                              /* ledsPolarity */      
diff -Naur a/arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.h b/arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.h
--- a/arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.h   2009-03-15 16:31:22.000000000 +0200
+++ b/arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.h   2009-03-19 14:30:36.000000000 +0200
@@ -238,7 +238,7 @@
 #define RD_SHEEVA_PLUG_MPP40_47                 0x00000000
 #define RD_SHEEVA_PLUG_MPP48_55                 0x00000000
 #define RD_SHEEVA_PLUG_OE_LOW                   (BIT29)
-#define RD_SHEEVA_PLUG_OE_HIGH                  0x0
+#define RD_SHEEVA_PLUG_OE_HIGH                  (BIT15)
 #define RD_SHEEVA_PLUG_OE_VAL_LOW               0x0
 #define RD_SHEEVA_PLUG_OE_VAL_HIGH              0x20000




if u cant because of copy paste syntax issue then unroll this manually:
arch/arm/mach-feroceon-kw/kw_family/boardEnv/mvBoardEnvSpec.c
    SHEEVA_PLUG_BOARD_GPP_INFO_NUM,             /* numBoardGppInfo */
-   0,
+   sheevaPlugInfoBoardGppInfo,
    SHEEVA_PLUG_BOARD_DEBUG_LED_NUM,         /* activeLedsNumber */             
Logged

wb6ymh
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #3 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
Logged

Rabeeh Khoury
Administrator
Full Member
*****

Karma: 5
Posts: 218


View Profile
« Reply #4 on: April 20, 2009, 11:33:16 AM »

can you send kernel boot log?
(full log).

as you said, probably the problem is that the audio device is not /dev/dsp0
Logged

wb6ymh
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #5 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:~#
Logged

wb6ymh
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #6 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:~#
Logged

wb6ymh
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #7 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
Logged

wb6ymh
Newbie
*

Karma: 0
Posts: 18


View Profile
« Reply #8 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
Logged

Pages: [1]
Print
Jump to: