Hey, Still trying to make my SB 64 PCI works on a MCF5407 card. I found an alsa driver which is compatible with kernel 2.0.X but i don't now exactly what i'm supposed to do. I'm trying to change the Makefile in order to use the cross compiling tools, is it the right way?
thx, Francois here is the default Makefile : > # > # Configuration Makefile for ALSA driver > # Copyright (c) 1994-98 by Jaroslav Kysela <[EMAIL PROTECTED]> > # > > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > > [EMAIL PROTECTED]@ -DALSA_BUILD > [EMAIL PROTECTED]@ -M -D__DEPEND__ -DALSA_BUILD > INCLUDE=-I$(CONFIG_SND_KERNELDIR)/include -I$(TOPDIR) > COPTS=$(c_opts) -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe > LINKER=ld -r > SNDVERSIONS=$(TOPDIR)/include/sndversions.h > DEXPORT=$(TOPDIR)/include/modules > > and here is the one i modified : [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > c_opts=-m5200 -Wl,-elf2flt > #-DCONFIG_COLDFIRE -Os > processor=m68k > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > > CC=/usr/local/bin/m68k-elf-gcc > CPP=/usr/local/bin/m68k-elf-g++ -M -D__DEPEND__ > INCLUDE=-I$(SNDCFG_KERNELDIR)/include -I$(TOPDIR)/include > -I/home/francois/2/uClinux-dist/uClibc/libc/stdio/ > COPTS=$(c_opts) #-Wall -Wstrict-prototypes -fomit-frame-pointer -pipe > LINKER=/usr/local/bin/m68k-elf-ld -g -r > SNDVERSIONS=$(TOPDIR)/include/sndversions.h > PEXPORT=$(TOPDIR)/utils/export-symbols > DEXPORT=$(TOPDIR)/include/modules and i run the configure this way : ./configure --host=i686 --with-kernel=/home/francois/2/uClinux-dist/linux- 2.0.x --with-cards=audiopci --target=m68k-nommu and i got : > loading cache ./config.cache > checking for gcc... (cached) gcc > checking whether the C compiler (gcc ) works... yes > checking whether the C compiler (gcc ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for ranlib... (cached) ranlib > checking for a BSD compatible install... (cached) /usr/bin/install -c > checking how to run the C preprocessor... (cached) gcc -E > checking for ANSI C header files... (cached) yes > checking for linux/fs.h... (cached) yes > checking for working const... (cached) yes > checking for inline... (cached) inline > checking whether time.h and sys/time.h may both be included... (cached) > yes > checking whether gcc needs -traditional... (cached) no > checking for default major number for the alsa driver... 116 > checking for directory with kernel source... > /home/francois/2/uClinux-dist/linux-2.0.x > checking for kernel version... 2.0.39 > checking for kernel module symbol versions... no > checking for PCI support in kernel... yes > checking for directory to store kernel modules... /lib/modules/2.0.39/misc > checking for debug level... none > checking for processor type... i686 > checking for SMP... no > checking for ISA PnP driver... no > checking for driver version... 0.3.0-pre4 > checking for sequencer support... no > checking for OSS/Lite emulation... yes > checking for which soundcards to compile driver for... audiopci > creating ./config.status > creating Makefile.conf > creating snddevices > creating utils/alsa-driver.spec > creating cards.config > creating include/config.h > include/config.h is unchanged > creating include/config1.h > include/config1.h is unchanged > [EMAIL PROTECTED]:~/2/usr/src/alsa$ vim Makefile.conf > [EMAIL PROTECTED]:~/2/usr/src/alsa$ make > make -C ./utils export-symbols > make[1]: entrant dans le répertoire « /home/francois/2/usr/src/alsa/utils > » > /usr/local/bin/m68k-elf-gcc -m5200 -Wl,-elf2flt > -I/home/francois/2/uClinux-dist/linux-2.0.x/include -I../include > -I/home/francois/2/uClinux-dist/uClibc/libc/stdio/ -o export-symbols > export-symbols.c > export-symbols.elf2flt: In function `_start': > export-symbols.elf2flt(.text+0x8): undefined reference to `__uClibc_main' > export-symbols.elf2flt: In function `header': > export-symbols.elf2flt(.text+0x44): undefined reference to `fprintf' > export-symbols.elf2flt: In function `begin': > export-symbols.elf2flt(.text+0x60): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x76): undefined reference to `fprintf' > export-symbols.elf2flt: In function `footer': > export-symbols.elf2flt(.text+0x92): undefined reference to `fprintf' > export-symbols.elf2flt: In function `symbol': > export-symbols.elf2flt(.text+0xb0): undefined reference to `fprintf' > export-symbols.elf2flt: In function `process': > export-symbols.elf2flt(.text+0xd4): undefined reference to `strstr' > export-symbols.elf2flt(.text+0xea): undefined reference to `stderr' > export-symbols.elf2flt(.text+0xf0): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x114): undefined reference to `strcpy' > export-symbols.elf2flt(.text+0x162): undefined reference to `strcpy' > export-symbols.elf2flt(.text+0x17a): undefined reference to `strcat' > export-symbols.elf2flt(.text+0x18c): undefined reference to `fopen' > export-symbols.elf2flt(.text+0x19e): undefined reference to > `__errno_location' > export-symbols.elf2flt(.text+0x1a8): undefined reference to `strerror' > export-symbols.elf2flt(.text+0x1b8): undefined reference to `stderr' > export-symbols.elf2flt(.text+0x1be): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x1de): undefined reference to `fopen' > export-symbols.elf2flt(.text+0x1f0): undefined reference to > `__errno_location' > export-symbols.elf2flt(.text+0x1fa): undefined reference to `strerror' > export-symbols.elf2flt(.text+0x20a): undefined reference to `stderr' > export-symbols.elf2flt(.text+0x210): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x21e): undefined reference to `fclose' > export-symbols.elf2flt(.text+0x240): undefined reference to `printf' > export-symbols.elf2flt(.text+0x24a): undefined reference to `stdout' > export-symbols.elf2flt(.text+0x250): undefined reference to `fflush' > export-symbols.elf2flt(.text+0x270): undefined reference to `feof' > export-symbols.elf2flt(.text+0x292): undefined reference to `fgets' > export-symbols.elf2flt(.text+0x2b4): undefined reference to `strlen' > export-symbols.elf2flt(.text+0x2da): undefined reference to `strlen' > export-symbols.elf2flt(.text+0x2fc): undefined reference to `strlen' > export-symbols.elf2flt(.text+0x322): undefined reference to `strlen' > export-symbols.elf2flt(.text+0x34a): undefined reference to `strlen' > export-symbols.elf2flt(.text+0x476): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x512): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x556): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x56c): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x584): undefined reference to `stderr' > export-symbols.elf2flt(.text+0x58a): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x598): undefined reference to `fclose' > export-symbols.elf2flt(.text+0x5a4): undefined reference to `fclose' > export-symbols.elf2flt(.text+0x5c4): undefined reference to `printf' > export-symbols.elf2flt(.text+0x5d0): undefined reference to `fclose' > export-symbols.elf2flt(.text+0x5dc): undefined reference to `fclose' > export-symbols.elf2flt: In function `main': > export-symbols.elf2flt(.text+0x60e): undefined reference to `stderr' > export-symbols.elf2flt(.text+0x614): undefined reference to `fprintf' > export-symbols.elf2flt(.text+0x640): undefined reference to `strcmp' > collect2: ld returned 1 exit status > make[1]: *** [export-symbols] Erreur 1 > make[1]: quittant le répertoire « /home/francois/2/usr/src/alsa/utils » > make: *** [utils/export-symbols] Erreur 2 > > 2008/2/20, Greg Ungerer <[EMAIL PROTECTED]>: > > Hi Francois, > > > Francois Schauber wrote: > > I try to build a mp3player with a M5407 + PCI sound card + uClinux and > > i'd like to know how to add a new driver to uClinux. Is there an HOWTO > > for compiling new drivers ? > > > Drivers for uClinux are the same as for standard Linux. > Look for any reference on adding drivers to Linux. > > Regards > Greg > > > > ------------------------------------------------------------------------ > Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED] > Secure Computing Corporation PHONE: +61 7 3435 2888 > 825 Stanley St, FAX: +61 7 3891 3630 > Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev >
_______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
