Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

QMI installer is not working with Bullseye 64-bit #10

Open
trncn opened this issue May 12, 2023 · 1 comment
Open

QMI installer is not working with Bullseye 64-bit #10

trncn opened this issue May 12, 2023 · 1 comment

Comments

@trncn
Copy link

trncn commented May 12, 2023

I got the error while downloading the script to Raspberry Pi 4 - 4GB Bullseye 64-bit
2023-05-12 14:07:23 (7.25 MB/s) - ‘qmi_wwan.zip’ saved [27398/27398]

Archive:  qmi_wwan.zip
  inflating: /opt/qmi_files/qmi_wwan_q/Makefile
  inflating: /opt/qmi_files/qmi_wwan_q/ReleaseNote.txt
   creating: /opt/qmi_files/qmi_wwan_q/log/
  inflating: /opt/qmi_files/qmi_wwan_q/log/how_to_use_bridge.txt
  inflating: /opt/qmi_files/qmi_wwan_q/log/how_to_use_bridge_and_QMAP.txt
  inflating: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c
  inflating: /opt/qmi_files/qmi_wwan_q/rmnet_nss.c
/opt/qmi_files/qmi_wwan_q /opt/qmi_files /home/bonintel
make CROSS_COMPILE= -C /lib/modules/6.1.21-v8+/build M=/opt/qmi_files/qmi_wwan_q modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
  CC [M]  /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.o
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘bridge_arp_reply’:
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:308:13: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration]
  308 |             netif_rx_ni(reply);
      |             ^~~~~~~~~~~
      |             netif_rx
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘rmnet_vnd_update_rx_stats’:
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:708:22: error: invalid operands to binary + (have ‘u64_stats_t’ and ‘unsigned int’)
  708 |  stats64->rx_packets += rx_packets;
      |                      ^~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:709:20: error: invalid operands to binary + (have ‘u64_stats_t’ and ‘unsigned int’)
  709 |  stats64->rx_bytes += rx_bytes;
      |                    ^~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘rmnet_vnd_update_tx_stats’:
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:724:22: error: invalid operands to binary + (have ‘u64_stats_t’ and ‘unsigned int’)
  724 |  stats64->tx_packets += tx_packets;
      |                      ^~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:725:20: error: invalid operands to binary + (have ‘u64_stats_t’ and ‘unsigned int’)
  725 |  stats64->tx_bytes += tx_bytes;
      |                    ^~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘_rmnet_vnd_get_stats64’:
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:756:17: error: incompatible types when assigning to type ‘u64’ {aka ‘long long unsigned int’} from type ‘u64_stats_t’
  756 |    rx_packets = stats64->rx_packets;
      |                 ^~~~~~~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:757:15: error: incompatible types when assigning to type ‘u64’ {aka ‘long long unsigned int’} from type ‘u64_stats_t’
  757 |    rx_bytes = stats64->rx_bytes;
      |               ^~~~~~~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:758:17: error: incompatible types when assigning to type ‘u64’ {aka ‘long long unsigned int’} from type ‘u64_stats_t’
  758 |    tx_packets = stats64->tx_packets;
      |                 ^~~~~~~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:759:15: error: incompatible types when assigning to type ‘u64’ {aka ‘long long unsigned int’} from type ‘u64_stats_t’
  759 |    tx_bytes = stats64->tx_bytes;
      |               ^~~~~~~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘qmap_register_device’:
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:1176:21: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 1176 |     memcpy (qmap_net->dev_addr, real_dev->dev_addr, ETH_ALEN);
      |             ~~~~~~~~^~~~~~~~~~
In file included from ./include/linux/string.h:20,
                 from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./include/linux/smp.h:13,
                 from ./arch/arm64/include/asm/arch_timer.h:18,
                 from ./arch/arm64/include/asm/timex.h:8,
                 from ./include/linux/timex.h:67,
                 from ./include/linux/time32.h:13,
                 from ./include/linux/time.h:60,
                 from ./arch/arm64/include/asm/stat.h:12,
                 from ./include/linux/stat.h:6,
                 from ./include/linux/module.h:13,
                 from /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:13:
./arch/arm64/include/asm/string.h:35:21: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
   35 | extern void *memcpy(void *, const void *, __kernel_size_t);
      |                     ^~~~~~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘qmi_wwan_bind’:
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:1893:25: error: assignment of read-only location ‘*dev->net->dev_addr’
 1893 |   dev->net->dev_addr[0] |= 0x02; /* set local assignment bit */
      |                         ^~
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:1894:25: error: assignment of read-only location ‘*dev->net->dev_addr’
 1894 |   dev->net->dev_addr[0] &= 0xbf; /* clear "IP" bit */
      |                         ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.o] Error 1
make[1]: *** [Makefile:2012: /opt/qmi_files/qmi_wwan_q] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
make: *** [Makefile:28: default] Error 2
@AlexRex
Copy link

AlexRex commented Nov 10, 2023

Hi @trncn did you find a solution for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants