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: Problem compiling driver eburner.ko

Part Number: TUSB9261
Other Parts Discussed in Thread: TUSB9260,

Dear sirs,

I have the following error while compiling TUSB linux driver:

root@avtuk:/usr/src/TUSB9260_LinuxDriver# make
make -C /lib/modules/4.19.182-rt74-dirty/build M=/usr/src/TUSB9260_LinuxDriver
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-16-armmp'
CC [M] /usr/src/TUSB9260_LinuxDriver/eBurner.o
/usr/src/TUSB9260_LinuxDriver/eBurner.c:225:20: error: initialization of Б─≤long int (*)(struct file *, unsigned int, long unsigned int)Б─≥ from incompatible pointer type Б─≤int (*)(struct file *, unsigned int, Output_Buffer *)Б─≥ {aka Б─≤int (*)(struct file *, unsigned int, struct <anonymous> *)Б─≥} [-Werror=incompatible-pointer-types]
.unlocked_ioctl = eBurner_ioctl,
^~~~~~~~~~~~~
/usr/src/TUSB9260_LinuxDriver/eBurner.c:225:20: note: (near initialization for Б─≤eBurner_fops.unlocked_ioctlБ─≥)
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-16-common/scripts/Makefile.build:315: /usr/src/TUSB9260_LinuxDriver/eBurner.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-16-common/Makefile:1562: _module_/usr/src/TUSB9260_LinuxDriver] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-16-armmp'
make: *** [Makefile:7: all] Error 2

Please help me to compile this driver under linux 4.19.182 with armhf architecture. Thank you!

Anton.

  • Hi Anton,

    Unfortunately we no longer support the TUSB9261 Linux flashburner, So I cannot provide any detailed support. I believe there are some deprecated libraries that need to be updated in the existing code. I would recommend using the Windows flashburner on ti.com to generate a complete EEPROM bin file. Then use a external SPI master to flash the EEPROM.