This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TUSB9261:编译驱动程序 eburd.ko 时出现问题

Guru**** 2589280 points
Other Parts Discussed in Thread: TUSB9260, TUSB9261

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/996578/tusb9261-problem-compiling-driver-eburner-ko

器件型号:TUSB9261
主题中讨论的其他器件:TUSB9260

尊敬的 Sirs:

编译 TUSB Linux 驱动程序时出现以下错误:

root@avtuk:/usr/src/TUSB9260_LinuxDriver make
使-C /lib/modules/4.19.182-rt74-dirty/build M=/usr/src/TUSB9260_LinuxDriver
make[1]:输入目录'/usr/src/linux-headers-4.19.0-16-armmp
抄送[M]/usr/src/TUSB9260_LinuxDriver/eBurner.o
/usr/src/TUSB9260_LinuxDriver/eBurner.c:225:20:错误:初始化 Б─≤long int (*)(struct file *、unsigned int、long unsigned int)Б─≥来自不兼容的指针类型 Б─≤int (*)(struct file *、unsigned int、Output_Buffer *)Б─≥{aka Б─≤int (*)(struct file *、unsigned int、struct *)Б─≥}[-Werror=不兼容的指针类型]
.unlocked_ioctl = eBurner_ioctl、
^~~~~~~~~~~~~μ A
/usr/src/TUSB9260_LinuxDriver/eBurner.c:225:20:注:(Б─≤eBurner_FOPS.unlocked_ioctlБ─≥的初始化接近)
CC1:一些警告被视为错误
make[4]:***[/usr/src/linux-headers-4.19.0-16-common/scripts/Makefile.build:315:/usr/src/TUSB9260_LinuxDriver/eBurner.o ]错误1
make[3]:***[/usr/src/linux-headers-4.19.0-16-common/Makefile:1562:_MODULE_/usr/src/TUSB9260_LinuxDriver ]错误2.
make[2]:***[Makefile:146:sub-make]错误2.
make[1]:***[Makefile:8:All]错误2.
make[1]:离开目录'/usr/src/linux-headers-4.19.0-16-armmp
make:***[Makefile:7:All]错误2.

请帮助我在具有 armhf 架构的 Linux 4.19.182下编译此驱动程序。 谢谢!

安东

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Anton:

    遗憾的是、我们不再支持 TUSB9261 Linux 闪存、因此我无法提供任何详细的支持。 我认为现有代码中有一些过时的库需要更新。 我建议使用 TI.com 上的 Windows 闪存刻录器来生成完整的 EEPROM bin 文件。 然后使用外部 SPI 主器件来刷写 EEPROM。