LINUX.ORG.RU

Как скомпилировать железку XR21V1410?

 


0

1

Компиляю по этому мануалу -
https://github.com/fatyogi/epever-upower-tracer/tree/master/xr_usb_serial_com...

но получаю обшибки, и тут я совершенно не копенгаген -

# make
make -C /lib/modules/6.6.28+rpt-rpi-v8/build M=/home/user/GIT/epever-upower-tracer/xr_usb_serial_common-1a-linux-3.6+
make[1]: вход в каталог «/usr/src/linux-headers-6.6.28+rpt-rpi-v8»
  CC [M]  /home/user/GIT/epever-upower-tracer/xr_usb_serial_common-1a-linux-3.6+/xr_usb_serial_common.o
/home/user/GIT/epever-upower-tracer/xr_usb_serial_common-1a-linux-3.6+/xr_usb_serial_common.c:1711:33: error: initialization of ‘ssize_t (*)(struct tty_struct *, const u8 *, size_t)’ {aka ‘long int (*)(struct tty_struct *, const unsigned char *, long unsigned int)’} from incompatible pointer type ‘int (*)(struct tty_struct *, const unsigned char *, int)’ [-Werror=incompatible-pointer-types]
 1711 |         .write =                xr_usb_serial_tty_write,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
/home/user/GIT/epever-upower-tracer/xr_usb_serial_common-1a-linux-3.6+/xr_usb_serial_common.c:1711:33: note: (near initialization for ‘xr_usb_serial_ops.write’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-6.6.28+rpt-common-rpi/scripts/Makefile.build:248: /home/user/GIT/epever-upower-tracer/xr_usb_serial_common-1a-linux-3.6+/xr_usb_serial_common.o] Ошибка 1
make[2]: *** [/usr/src/linux-headers-6.6.28+rpt-common-rpi/Makefile:1938: /home/user/GIT/epever-upower-tracer/xr_usb_serial_common-1a-linux-3.6+] Ошибка 2
make[1]: *** [/usr/src/linux-headers-6.6.28+rpt-common-rpi/Makefile:246: __sub-make] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-6.6.28+rpt-rpi-v8»
make: *** [Makefile:9: all] Ошибка 2
root@raspberrypi:/home/user/GIT/epever-upower-tracer/xr_usb_serial_common-1a-linux-3.6+# 
★★★★★

Последнее исправление: Dimez (всего исправлений: 4)