|
|

楼主 |
发表于 2006-1-7 01:08:56
|
显示全部楼层
下面是我用官方提供的开发包,进行编译提示出错,请大家指导.如何解决驱动.
文档的说明如下:
Welcome to release 1.7.xxx.y of the RMF Linux driver.
DISCLAIMER
----------
This program has (for some parts) to operate as root and in kernel
land. As a result, it can crash your system and you may loose
critical data on your hard disk. Sigma Designs cannot be held
responsible for that.
LICENSING
---------
- shared object libraries in lib are only available in binary form.
Copyrighted (C) 1999-2003 Sigma Designs
- This project relies on one third-party software package:
1. The mp3 decoding library from mpg123 project at
http://www.mpg123.de/
License: LGPL since May 18th 2001
Version in this archive: mpg123-0.59r.tar.gz
Thanks to: hippm@informatik.uni-tuebingen.de
SUPPORTED PLATFORMS
-------------------
Linux on x86 processor, with kernel 2.4.11 or higher for the RMF module.
Any recent distribution should do.
All ATAPI DVD drives are supported.
If your kernel has the CDROM_SEND_PACKET ioctl (Linux >= 2.2.16)
SCSI DVD drives are supported.
You must have a Sigma Designs board (EM84xx chip).
LOADING THE KERNEL MODE DRIVER (RMF API)
--------------------------------------------------
As root, type
# cd RMF-1.7.xxx.y
# ./loadRMFmodule
then
$ source RMF.env
to get a correct environment.
``loadRMFmodule'' must be run once at each boot.
You have to source the environment before calling one of the following programs (especially if you open a new window).
下面是编译过程
livecd RMF-1.7.154.0 # ./loadRMFmodule
make is /usr/bin/make
gcc is /usr/bin/gcc
ld is /usr/bin/ld
insmod is /sbin/insmod
rmmod is /sbin/rmmod
mknod is /usr/bin/mknod
uname is /usr/bin/uname
wc is /usr/bin/wc
awk is /usr/bin/awk
rm is /usr/bin/rm
chmod is /usr/bin/chmod
killall is /usr/bin/killall
Found needed tools
Cleaning previous devices
Kernel 2.6.13-gentoo-r3 >= 2.4.0
Compiling realmagichwl_kernelland.o
tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future
gcc -D_DEBUG=1 -O -DSWG_SPECIAL=1 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -DEXPORT_SYMTAB -Wno-import -Wunused -Wimplicit -Wmain -Wreturn-type -Wswitch -Wtrigraphs -Wchar-subscripts -Wuninitialized -Wparentheses -Wpointer-arith -Wcast-align -DWITH_8MB_AND_OVER=1 -DWITH_PROGRESSIVE_YUV=1 -DWITH_LOGGING=1 -DWITH_PROC=1 -DWITH_PCI=1 -DWITH_DOLBY=1 -DWITH_CSS=1 -DWITH_MACROVISION=1 -DWITH_SM2288=1 -DWITH_CHECK_OSD_RLC=1 -DWITH_DTVCC=1 -I/usr/src/linux-2.6.13-gentoo-r3/include -I/usr/src/linux-2.4/include -Idont_use_hwl_includes/include -Idont_use_hwl_includes/include/qhwinc -Idont_use_hwl_includes/include/qhwinc/boardh -Idont_use_hwl_includes/include/qhwinc/decoderh -Idont_use_hwl_includes/include/qhwinc/tvench -Idont_use_hwl_includes/include/iface -Idont_use_hwl_includes/include/os -Idont_use_hwl_includes/ucode -Idont_use_hwl_includes -Wformat -c -o kernelcalls.o kernelcalls.c
In file included from kernelheaders.h:23,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/linux/kernel.h:105: warning: conflicting types for built-in function `snprintf'
/usr/src/linux-2.6.13-gentoo-r3/include/linux/kernel.h:107: warning: conflicting types for built-in function `vsnprintf'
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/linux/list.h:7,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/wait.h:23,
from /usr/src/linux-2.6.13-gentoo-r3/include/asm/semaphore.h:41,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/sched.h:20,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/module.h:10,
from kernelheaders.h:24,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/linux/prefetch.h: In function `prefetch_range':
/usr/src/linux-2.6.13-gentoo-r3/include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/asm/smp.h:18,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/sched.h:26,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/module.h:10,
from kernelheaders.h:24,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/asm/smp.h:18,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/sched.h:26,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/module.h:10,
from kernelheaders.h:24,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h: At top level:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/asm/smp.h:20,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/sched.h:26,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/module.h:10,
from kernelheaders.h:24,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/io_apic.h:158: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/io_apic.h:158: error: conflicting types for `mp_irqs'
/usr/src/linux-2.6.13-gentoo-r3/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/sched.h:26,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/module.h:10,
from kernelheaders.h:24,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/smp.h:75:26: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/linux/smp.h:19,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/sched.h:26,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/module.h:10,
from kernelheaders.h:24,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux-2.6.13-gentoo-r3/include/asm/smp.h:79: warning: implicit declaration of function `GET_APIC_ID'
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/linux/dmapool.h:14,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/pci.h:870,
from kernelheaders.h:28,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/io.h: In function `check_signature':
/usr/src/linux-2.6.13-gentoo-r3/include/asm/io.h:253: warning: wrong type argument to increment
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/linux/irq.h:21,
from /usr/src/linux-2.6.13-gentoo-r3/include/asm/hardirq.h:6,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/hardirq.h:7,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/interrupt.h:11,
from kernelheaders.h:29,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/asm/hardirq.h:6,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/hardirq.h:7,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/interrupt.h:11,
from kernelheaders.h:29,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/linux/irq.h: At top level:
/usr/src/linux-2.6.13-gentoo-r3/include/linux/irq.h:76: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/linux/irq.h:78,
from /usr/src/linux-2.6.13-gentoo-r3/include/asm/hardirq.h:6,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/hardirq.h:7,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/interrupt.h:11,
from kernelheaders.h:29,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux-2.6.13-gentoo-r3/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux-2.6.13-gentoo-r3/include/asm/hardirq.h:6,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/hardirq.h:7,
from /usr/src/linux-2.6.13-gentoo-r3/include/linux/interrupt.h:11,
from kernelheaders.h:29,
from kernelcalls.c:17:
/usr/src/linux-2.6.13-gentoo-r3/include/linux/irq.h:83: error: `NR_IRQS' undeclared here (not in a function)
In file included from kernelcalls.c:17:
kernelheaders.h:33:27: linux/wrapper.h: No such file or directory
kernelcalls.c: In function `kc_request_irq_shared':
kernelcalls.c:199: warning: passing arg 2 of `request_irq' from incompatible pointer type
kernelcalls.c: In function `kc_remap_page_range':
kernelcalls.c:272: warning: implicit declaration of function `remap_page_range'
kernelcalls.c: In function `kc_verify_area_read':
kernelcalls.c:278: warning: `verify_area' is deprecated (declared at /usr/src/linux-2.6.13-gentoo-r3/include/asm/uaccess.h:105)
kernelcalls.c: In function `kc_readb':
kernelcalls.c:292: warning: passing arg 1 of `readb' makes pointer from integer without a cast
kernelcalls.c: In function `kc_readw':
kernelcalls.c:293: warning: passing arg 1 of `readw' makes pointer from integer without a cast
kernelcalls.c: In function `kc_readl':
kernelcalls.c:294: warning: passing arg 1 of `readl' makes pointer from integer without a cast
kernelcalls.c: In function `kc_writeb':
kernelcalls.c:295: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
kernelcalls.c: In function `kc_writew':
kernelcalls.c:296: warning: passing arg 2 of `writew' makes pointer from integer without a cast
kernelcalls.c: In function `kc_writel':
kernelcalls.c:297: warning: passing arg 2 of `writel' makes pointer from integer without a cast
make: *** [kernelcalls.o] Error 1
insmod: can't read 'realmagichwl_kernelland.o': No such file or directory
--- log begins
--- log ends
Could not insmod realmagichwl_kernelland.o
livecd RMF-1.7.154.0 # |
|