cringeops / bes2600

GNU General Public License v2.0
8 stars 3 forks source link

Error when trying to build on PineTab2 device #7

Closed explit7 closed 7 months ago

explit7 commented 8 months ago

Hi, and thank you for your work. All i want is stable MAC address, which doesn't change after reboot. When i try to build on PineTab2 i get this error:

[explit@PineTab2 bes2600]$ make ARCH=arm64 -C ../linux-pinetab2 M=$PWD modules
make: Entering directory '/home/explit/linux-pinetab2'
  CC [M]  /home/explit/bes2600/bes2600/txrx.o
/home/explit/bes2600/bes2600/txrx.c: In function ‘bes2600_skb_dtor’:
/home/explit/bes2600/bes2600/txrx.c:1501:17: error: implicit declaration of function ‘ieee80211_tx_status’; did you mean ‘ieee80211_tx_status_ni’? [-Werror=implicit-function-declaration]
 1501 |                 ieee80211_tx_status(hw_priv->hw, skb);
      |                 ^~~~~~~~~~~~~~~~~~~
      |                 ieee80211_tx_status_ni
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/explit/bes2600/bes2600/txrx.o] Error 1
make[2]: *** [scripts/Makefile.build:481: /home/explit/bes2600/bes2600] Error 2
make[1]: *** [/home/explit/linux-pinetab2/Makefile:1921: /home/explit/bes2600] Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: Leaving directory '/home/explit/linux-pinetab2

Maybe you can help me to solve it?

Thank you

cringeops commented 7 months ago

I could not reproduce the issue. Most likely, it's related to the fact that I use cross-compilation, and native compilation on the device itself may require some additional tweaking. Still, given the fact that PT2 is insanely slow, I would recommend sticking to cross-compilation in all cases.

UPD: The root cause is that the driver is not yet adapted to kernel 6.8.