I've tried Martino's method using the Cirrus alsa-1.0.4 driver as well
as the current alsa-1.0.14rc4 driver ... and am having absolutely no luck.
I'm using the same ./configure command in both cases:
./configure --with-cards=usb-audio --with-sequencer=no
--with-kernel=/home/topper/ts-arm-kernel/linux24/
--with-cross=/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/bin/arm-unknown-linux-gnu-
I've already used this crosstools to recompile the kernel, and that
works fine. Also, simple test code compiles fine. I'm including the
output from my compile for both the 1.0.4 and 1.0.14rc4 drivers.
I can't seem to compile directly on the board either, as the Debian
distro (Sarge) doesn't ship with the "patch" app?
----- snip -----
Here's the output from my attempt, as per Martino's instructions with
the alsa-1.0.4 libraries downloaded from Cirrus:
make[1]: Entering directory `/home/topper/ts-alsa/alsa-driver-1.0.4/acore'
/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/bin/arm-unknown-linux-gnu-gcc
-D__KERNEL__ -DMODULE=1
-I/home/topper/ts-alsa/alsa-driver-1.0.4/include
-I/home/topper/ts-arm-kernel/linux24//include -O2 -DLINUX -Wall
-Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc
-iwithprefix include -DEXPORT_SYMTAB -c memalloc.c
In file included from memalloc.inc:14,
from memalloc.c:1:
/home/topper/ts-alsa/alsa-driver-1.0.4/include/adriver.h:134: error:
redefinition of `PDE'
/home/topper/ts-arm-kernel/linux24/include/linux/proc_fs.h:213: error:
`PDE' previously defined here
In file included from memalloc.inc:14,
from memalloc.c:1:
/home/topper/ts-alsa/alsa-driver-1.0.4/include/adriver.h:391: error:
redefinition of `struct tq_struct'
In file included from memalloc.inc:14,
from memalloc.c:1:
/home/topper/ts-alsa/alsa-driver-1.0.4/include/adriver.h:395:1:
warning: "INIT_WORK" redefined
In file included from
/home/topper/ts-arm-kernel/linux24/include/linux/jffs2_fs_sb.h:8,
from
/home/topper/ts-arm-kernel/linux24/include/linux/fs.h:735,
from
/home/topper/ts-arm-kernel/linux24/include/linux/capability.h:17,
from
/home/topper/ts-arm-kernel/linux24/include/linux/binfmts.h:5,
from
/home/topper/ts-arm-kernel/linux24/include/linux/sched.h:9,
from
/home/topper/ts-arm-kernel/linux24/include/linux/mm.h:4,
from
/home/topper/ts-arm-kernel/linux24/include/asm/pci.h:6,
from
/home/topper/ts-arm-kernel/linux24/include/linux/pci.h:685,
from memalloc.inc:12,
from memalloc.c:1:
/home/topper/ts-arm-kernel/linux24/include/linux/workqueue.h:18:1:
warning: this is the location of the previous definition
In file included from memalloc.inc:14,
from memalloc.c:1:
/home/topper/ts-alsa/alsa-driver-1.0.4/include/adriver.h:407:1:
warning: "schedule_work" redefined
In file included from
/home/topper/ts-arm-kernel/linux24/include/linux/jffs2_fs_sb.h:8,
from
/home/topper/ts-arm-kernel/linux24/include/linux/fs.h:735,
from
/home/topper/ts-arm-kernel/linux24/include/linux/capability.h:17,
from
/home/topper/ts-arm-kernel/linux24/include/linux/binfmts.h:5,
from
/home/topper/ts-arm-kernel/linux24/include/linux/sched.h:9,
from
/home/topper/ts-arm-kernel/linux24/include/linux/mm.h:4,
from
/home/topper/ts-arm-kernel/linux24/include/asm/pci.h:6,
from
/home/topper/ts-arm-kernel/linux24/include/linux/pci.h:685,
from memalloc.inc:12,
from memalloc.c:1:
/home/topper/ts-arm-kernel/linux24/include/linux/workqueue.h:16:1:
warning: this is the location of the previous definition
memalloc.c:48: warning: `enable' defined but not used
make[1]: *** [memalloc.o] Error 1
make[1]: Leaving directory `/home/topper/ts-alsa/alsa-driver-1.0.4/acore'
make: *** [compile] Error 1
----- snip -----
And here's my attempt with the 1.0.14rc4 driver.
make dep
make[1]: Entering directory `/home/topper/ts-alsa/alsa-driver-1.0.14rc4'
make[2]: Entering directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore'
make -C ioctl32 fastdep
make[3]: Entering directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore/ioctl32'
make[3]: Leaving directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore/ioctl32'
make -C oss fastdep
make[3]: Entering directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore/oss'
copying file alsa-kernel/core/oss/mixer_oss.c
patching file mixer_oss.c
Hunk #1 succeeded at 379 with fuzz 1 (offset 2 lines).
copying file alsa-kernel/core/oss/pcm_oss.c
patching file pcm_oss.c
Hunk #1 succeeded at 2557 (offset 31 lines).
Hunk #3 succeeded at 2731 (offset 31 lines).
Hunk #4 succeeded at 2883 with fuzz 2 (offset -2 lines).
Hunk #5 succeeded at 3043 (offset 29 lines).
/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/bin/arm-unknown-linux-gnu-gcc
-M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1
-I/home/topper/ts-alsa/alsa-driver-1.0.14rc4/include
-I/home/topper/ts-arm-kernel/linux24//include -O2 -DLINUX
-DALSA_BUILD -nostdinc -iwithprefix include
-I/home/topper/ts-alsa/alsa-driver-1.0.14rc4/alsa-kernel/core/oss
-fno-omit-frame-pointer mixer_oss.c pcm_oss.c pcm_plugin.c io.c copy.c
linear.c mulaw.c route.c rate.c > .depend
make[3]: Leaving directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore/oss'
make -C seq fastdep
make[3]: Entering directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore/seq'
make -C instr fastdep
make[4]: Entering directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore/seq/instr'
make[4]: Leaving directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore/seq/instr'
make[3]: Leaving directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore/seq'
copying file alsa-kernel/core/sound.c
patching file sound.c
copying file alsa-kernel/core/init.c
patching file init.c
Hunk #2 succeeded at 229 (offset 6 lines).
Hunk #3 succeeded at 249 with fuzz 2.
copying file alsa-kernel/core/info.c
patching file info.c
Hunk #8 succeeded at 535 with fuzz 2.
copying file alsa-kernel/core/control.c
patching file control.c
Hunk #2 succeeded at 1389 (offset 172 lines).
copying file alsa-kernel/core/misc.c
patching file misc.c
Hunk #2 succeeded at 30 (offset -1 lines).
copying file alsa-kernel/core/hwdep.c
patching file hwdep.c
Hunk #1 succeeded at 307 (offset 4 lines).
copying file alsa-kernel/core/timer.c
patching file timer.c
Hunk #1 succeeded at 986 with fuzz 1 (offset -9 lines).
Hunk #2 succeeded at 1904 (offset 113 lines).
Hunk #3 succeeded at 1827 with fuzz 2 (offset -18 lines).
copying file alsa-kernel/core/pcm.c
patching file pcm.c
copying file alsa-kernel/core/pcm_native.c
patching file pcm_native.c
Hunk #3 succeeded at 1602 (offset -6 lines).
Hunk #5 succeeded at 2856 (offset -6 lines).
Hunk #7 succeeded at 2913 (offset -6 lines).
Hunk #9 succeeded at 2959 (offset -6 lines).
Hunk #11 succeeded at 3064 (offset -6 lines).
Hunk #13 succeeded at 3116 (offset -6 lines).
Hunk #15 succeeded at 3182 (offset -6 lines).
Hunk #17 succeeded at 3232 (offset -6 lines).
Hunk #19 succeeded at 3270 (offset -6 lines).
Hunk #21 succeeded at 3314 (offset -6 lines).
Hunk #23 succeeded at 3409 (offset -6 lines).
Hunk #25 succeeded at 3600 (offset -6 lines).
copying file alsa-kernel/core/memalloc.c
patching file memalloc.c
Hunk #2 succeeded at 83 (offset -1 lines).
Hunk #4 succeeded at 174 (offset -1 lines).
Hunk #6 succeeded at 228 (offset -1 lines).
Hunk #8 succeeded at 286 (offset -1 lines).
Hunk #10 succeeded at 329 (offset -1 lines).
Hunk #11 succeeded at 605 (offset -4 lines).
Hunk #12 succeeded at 697 (offset -1 lines).
Hunk #13 succeeded at 709 (offset -4 lines).
Hunk #14 succeeded at 746 (offset -1 lines).
copying file alsa-kernel/core/rawmidi.c
patching file rawmidi.c
Hunk #1 succeeded at 1290 (offset 23 lines).
Hunk #2 succeeded at 1351 with fuzz 2 (offset 1 line).
/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/bin/arm-unknown-linux-gnu-gcc
-M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1
-I/home/topper/ts-alsa/alsa-driver-1.0.14rc4/include
-I/home/topper/ts-arm-kernel/linux24//include -O2 -DLINUX
-DALSA_BUILD -nostdinc -iwithprefix include sound.c init.c memory.c
info.c control.c misc.c device.c sound_oss.c info_oss.c wrappers.c
misc_driver.c hwdep.c timer.c pcm.c pcm_native.c pcm_lib.c pcm_timer.c
pcm_misc.c pcm_memory.c memalloc.c sgbuf.c memory_wrapper.c rawmidi.c
> .depend
memalloc.c:122:2: #error "Need a bus for dma_alloc_coherent()"
make[2]: *** [fastdep] Error 1
make[2]: Leaving directory
`/home/topper/ts-alsa/alsa-driver-1.0.14rc4/acore'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/home/topper/ts-alsa/alsa-driver-1.0.14rc4'
make: *** [include/sndversions.h] Error 2
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|