我在富士通 u1010 上运行 Ubuntu/Lubuntu 13.04。安装顺利,但在尝试按照说明安装驱动程序时遇到了麻烦https://katastrophos.net/andre/blog/2012/05/29/installing-ubuntu-12-04-precise-pangolin-on-fujitsu-u820-u2010-u2020/
我是 Linux 新手,所以我不知道如何解释屏幕输出,但我看到一大堆“错误”,我猜肯定出了什么问题,请帮忙。谢谢。
详情如下:
make all-recursive
make[1]: Entering directory `/home/xx/fjbtndrv-2.3.2'
Making all in src
make[2]: Entering directory `/home/xx/fjbtndrv-2.3.2/src'
Making all in linux
make[3]: Entering directory `/home/xx/fjbtndrv-2.3.2/src/linux'
make -C /lib/modules/3.8.0-30-generic/build M=/home/xx/fjbtndrv-2.3.2/src/linux modules
make[4]: Entering directory `/usr/src/linux-headers-3.8.0-30-generic'
CC [M] /home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.o
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:200:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘input_fujitsu_setup’
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:289:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fujitsu_dmi_matched’
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:299:15: error: ‘fujitsu_dmi_matched’ undeclared here (not in a function)
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:364:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fujitsu_walk_resources’
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:387:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘acpi_fujitsu_add’
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:425:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘acpi_fujitsu_remove’
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:444:13: error: ‘acpi_fujitsu_add’ undeclared here (not in a function)
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:444:3: error: initializer element is not constant
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:444:3: error: (near initialization for ‘acpi_fujitsu_driver.ops.add’)
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:445:13: error: ‘acpi_fujitsu_remove’ undeclared here (not in a function)
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:445:3: error: initializer element is not constant
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:445:3: error: (near initialization for ‘acpi_fujitsu_driver.ops.remove’)
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:446:3: error: unknown field ‘resume’ specified in initializer
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:243:13: error: ‘input_fujitsu_remove’ defined but not used [-Werror=unused-function]
/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.c:249:20: error: ‘fujitsu_interrupt’ defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors
make[5]: *** [/home/xx/fjbtndrv-2.3.2/src/linux/fujitsu-tablet.o] Error 1
make[4]: *** [_module_/home/xx/fjbtndrv-2.3.2/src/linux] Error 2
make[4]: Leaving directory `/usr/src/linux-headers-3.8.0-30-generic'
make[3]: *** [fujitsu-tablet.ko] Error 2
make[3]: Leaving directory `/home/xx/fjbtndrv-2.3.2/src/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/xx/fjbtndrv-2.3.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xx/fjbtndrv-2.3.2'
make: *** [all] Error 2
答案1
你可能不再需要它了。至少在 3.10 中,fujitsu-tablet.ko
它是预安装的。检查$ lsmod | grep fujitsu
如果输出有fujitsu-tablet
,那么它已经安装。
如果你仍然想构建它,请从以下位置下载修复副本此链接。
在构建目录中进行替换,构建就应该顺利进行。
旧版本失败的原因是__devinit
和__devexit
在较新的内核版本中已被弃用。字段remove
(在struct acpi_driver --> ops
)也已被弃用。