Jump to content

Recommended Posts

Posted
Armbianmonitor:

Hi,

 

I have a Opi zero 512 and did a fresh install Debian Buster with Armbian Linux 4.19.59-sunxi

 

I installes the Linux-Kernel but I run into problems with compiling a driver.

 

outdoorpi@orangepizero:~/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd$ sudo make KERNELDIR=/usr/src/linux-source-4.19.57-sunxi64
make -C /usr/src/linux-source-4.19.57-sunxi64 M=/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-source-4.19.57-sunxi64'
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/driver.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:304: /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/driver.o] Error 2
make[2]: *** Deleting file '/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/driver.o'
make[1]: *** [Makefile:1517: _module_/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd] Error 2
make[1]: Leaving directory '/usr/src/linux-source-4.19.57-sunxi64'
make: *** [Makefile:61: default] Error 2
outdoorpi@orangepizero:~/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd$

 

it seems to be a problem with cross compiling but how to solve it?

Posted

I ran into the same issue a while ago. This occurs because the binaries in the scripts folder are x86_64 format. As I recall, this can be fixed by the following, but I can't test it now:

cd /usr/src/linux-source-4.19.57-sunxi64
make clean
make scripts

If it doesn't work I can test in a few hours.

Posted

seems not to work for me...

compiling maybe works but in the end I got...

 

outdoorpi@orangepizero:~/usb-redirector-linux-armeb-gnueabihf$ sudo ./installer.sh install-server

*** Installing USB Redirector for Linux v3.8
***  Destination dir: /usr/local/usb-redirector
***  Checking installation...
***  Detecting system...
***     distribution: debian
***     kernel: 4.19.59-sunxi
***  Compiling kernel module...
***  Kernel module successfully compiled
***  Creating directories...
***  Preparing scripts...
***  Copying files...
***  Setting up init script...
***  Starting daemon...
***  Please allow incoming connections on 32032 port for USB Sever to be able to accept connections from remote clients.
***  INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh
outdoorpi@orangepizero:~/usb-redirector-linux-armeb-gnueabihf$

installation works but when I start the program

 

outdoorpi@orangepizero:/usr/local/usb-redirector/bin$ sudo usbsrv -l
/usr/local/bin/usbsrv: 1: /usr/local/bin/usbsrv: Syntax error: word unexpected (expecting ")")
outdoorpi@orangepizero:/usr/local/usb-redirector/bin$

so same problem as before...

 

Posted
8 minutes ago, sveni_lee said:

so same problem as before...

 

Completely different problem, in fact. Your first post showed a problem with compilation, and now your second post shows a problem running the software you have compiled.

 

10 minutes ago, sveni_lee said:

/usr/local/bin/usbsrv: Syntax error: word unexpected (expecting ")")

 

Check this file and see what's wrong. I don't know what this software is so I can't give any suggestions.

Posted

I'm not sure if copiling runs well...

Spoiler

outdoorpi@orangepizero:~/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd$ sudo make KERNELDIR=/usr/src/linux-source-4.19.57-sunxi64
make -C /usr/src/linux-source-4.19.57-sunxi64 M=/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-source-4.19.57-sunxi64'
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c: In function ‘lIIlIIIIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:66:76: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 ,lIlII);break;}}while((0x1ec1+1500-0x249d));if(lIlII!=(0x12c5+471-0x149c)){if(
                                                                            ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:67:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IIlIIIl)cdev_del(IIlIIIl);if(IIIlllI!=MKDEV((0xe80+959-0x123f),
                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:67:27: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:68:76: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 (0xe59+4859-0x2154)))unregister_chrdev_region(IIIlllI,(0x1b64+832-0x1da5));if(
                                                                            ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:68:76: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:69:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IlIIlII)class_destroy(IlIIlII);IIlIIIl=NULL;IIIlllI=MKDEV((0x713+2471-0x10ba),
                                ^~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c: In function ‘lllIIlIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:74:10: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IIlIIIl);if(IIIlllI!=MKDEV((0x16bf+2937-0x2238),(0x67a+5289-0x1b23)))
          ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:75:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 unregister_chrdev_region(IIIlllI,lIIIllII);if(IlIIlII)class_destroy(IlIIlII);
                                            ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c: In function ‘IIIIlIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:167:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(IlIlIlII<(0xc89+2829-0x1796)||IlIlIlII>=lIIIllII)return-EINVAL;if(IIlllIll<
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:167:67: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(IlIlIlII<(0xc89+2829-0x1796)||IlIlIlII>=lIIIllII)return-EINVAL;if(IIlllIll<
                                                                   ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:167:67: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:168:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 (0xdaa+3267-0x1a6d)||IIlllIll>=lIIIllII)return-EINVAL;if(IlIlIlII>IIlllIll)
                                                       ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:168:55: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:169:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return-EINVAL;mutex_lock(&lllllll);for(i=IlIlIlII;i<=IIlllIll;i++){if(llIIlllI[i
               ^~~~~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c: In function ‘IIIIlllIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:219:53: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IIIIII*IIlII;mutex_lock(&lllllll);IIlII=llIIlllI[m];if(IIlII&&IIlII->ops.
                                                     ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/cdev.c:220:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IlIIIIll)IIlII->ops.IlIIIIll(IIlII->context);mutex_unlock(&lllllll);if(IIlII){
                                              ^~~~~~~~~~~~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_loader.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_loader.c: In function ‘llIllIlll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_loader.c:87:28: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 ;INIT_LIST_HEAD(&IIlIllll);if(copy_from_user(&IllllllI,lIIll,sizeof(IllllllI)))
                            ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_loader.c:88:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return-EFAULT;IIlIllII=lIIll+IllllllI.IIIlIl.IlIIlIl;if(lIIll+sizeof(IllllllI)>
               ^~~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_loader.c:88:54: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 return-EFAULT;IIlIllII=lIIll+IllllllI.IIIlIl.IlIIlIl;if(lIIll+sizeof(IllllllI)>
                                                      ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_loader.c:89:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IIlIllII)return-EINVAL;lIIll+=sizeof(IllllllI);llIIl(
                        ^~~~~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘lIlIlllll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:142:42: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 __user*ioctl){IIIIl lllllI;IIIIl lIIIIII;if(get_user(lllllI,&ioctl->IIIlIl.
                                          ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:143:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IlIIlIl)<(0x116f+3463-0x1ef6))return-EFAULT;if(lllllI!=sizeof(struct IIIllIlll))
                                             ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:143:45: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:144:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return-EINVAL;if(get_user(lIIIIII,&ioctl->lIIIIII)<(0x644+6378-0x1f2e))return-
               ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘lIllIlIIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:147:36: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 ioctl){IIIIl lllllI;IIIIl IllIllIl;if(get_user(lllllI,&ioctl->IIIlIl.IlIIlIl)<
                                    ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:148:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 (0x387+1209-0x840))return-EFAULT;if(lllllI!=sizeof(struct IIIllIllI))return-
                                  ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘IIIllIIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:151:78: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 int IIIllIIII(struct IIIlI*IIIll,struct lllIIIIll __user*ioctl){IIIIl lllllI;if(
                                                                              ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:152:73: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 get_user(lllllI,&ioctl->IIIlIl.IlIIlIl)<(0xad4+193-0xb95))return-EFAULT;if(
                                                                         ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:152:73: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:153:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 lllllI!=sizeof(struct lllIIIIll))return-EINVAL;IlllIlIlI(IIIll,IIIll->IIlllIII);
                                                ^~~~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘lIIIlIIll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:155:43: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 __user*ioctl){IIIIl lllllI;IIIIl llIlIlll;if(get_user(lllllI,&ioctl->IIIlIl.
                                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:156:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IlIIlIl)<(0x93+2901-0xbe8))return-EFAULT;if(lllllI!=sizeof(*ioctl))return-EINVAL
                                          ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:157:27: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 ;llIlIlll=IIIll->IlIIIIlI;if(put_user(llIlIlll,&ioctl->llIlIlll)<
                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:158:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 (0xf10+1459-0x14c3))return-EFAULT;return(0x981+5979-0x20dc);}long lIlIlIIIl(void
                                   ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘IlIIIIllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:376:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(usb_pipein(pipe))IIllIIII|=USB_DIR_IN;usb_reset_endpoint(IlllI->IIIll->lllll,
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:376:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(usb_pipein(pipe))IIllIIII|=USB_DIR_IN;usb_reset_endpoint(IlllI->IIIll->lllll,
                                          ^~~~~~~~~~~~~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘IIIlIlIlI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:438:72: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 )(IlllI+(0x27b+3631-0x10a9));IlIlI->lllII.Status=-(0x1de2+1020-0x21dd);if(IlllI
                                                                        ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:440:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 llIIIIlI(IlllI->IIIll);if(usb_lock_device_for_reset(IlllI->IIIll->lllll,NULL)>=
                        ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘lllIIlIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:822:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(usb_pipein(llIII->pipe))IlIlI->IIllI.IIlIII.llIIlI+=IlIlI->IIllI.lllIl;IlIlI
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:822:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(usb_pipein(llIII->pipe))IlIlI->IIllI.IIlIII.llIIlI+=IlIlI->IIllI.lllIl;IlIlI
                                                                           ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘lllIIlIlI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:863:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(unlikely(list_empty(&IlllI->lIllIl)))return NULL;llllIl=IlllI;
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:863:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(unlikely(list_empty(&IlllI->lIllIl)))return NULL;llllIl=IlllI;
                                                     ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c: In function ‘IIllIlIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:944:56: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 usb_interface*interface=lIIIl->actconfig->interface[i];if(interface==NULL)
                                                        ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_stub.c:945:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 continue;if(interface->cur_altsetting==NULL)continue;Illll(
          ^~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vbus.o
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c: In function ‘IIIIIIllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c:94:47: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 ioctl){IIIIl lllllI;IIIIl devnum;IIIIl busnum;if(get_user(lllllI,&ioctl->IIIlIl.
                                               ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c:95:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IlIIlIl)<(0x844+6933-0x2359))return-EFAULT;if(lllllI!=sizeof(struct llIlllIII))
                                            ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c:95:44: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c:96:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return-EINVAL;IllIIllll(llllI,&busnum,&devnum);if(put_user(busnum,&ioctl->busnum
               ^~~~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c:96:48: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 return-EINVAL;IllIIllll(llllI,&busnum,&devnum);if(put_user(busnum,&ioctl->busnum
                                                ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c:97:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 )<(0x37d+7528-0x20e5))return-EFAULT;if(put_user(devnum,&ioctl->devnum)<
                                     ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c:97:37: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/minor_vstub.c:98:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 (0x201d+472-0x21f5))return-EFAULT;return(0x1ab8+2826-0x25c2);}long IIlIlIlll(
                                   ^~~~~~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c: In function ‘IlIIIlllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:150:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(lIlIlIllI)usb_deregister(&lllIIIl);if(IIIIIIIl){IIlIIllI(IIIIIIIl);IIIIIIIl=
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:150:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(lIlIlIllI)usb_deregister(&lllIIIl);if(IIIIIIIl){IIlIIllI(IIIIIIIl);IIIIIIIl=
                                       ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c: In function ‘IlIIllII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:311:79: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 llllIIIlI[usb_pipeendpoint(pipe)]);}int IlIIllII(struct IIIlI*IIIll,int pipe){if
                                                                               ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:312:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 (!usb_pipeisoc(pipe))return(0xc56+926-0xff4);if(usb_pipein(pipe))return(--IIIll
                                              ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c: In function ‘lIllllIlI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:314:71: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 usb_pipeendpoint(pipe)]);}void lIllllIlI(struct IIIlI*IIIll,int pipe){if(!
                                                                       ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:315:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 usb_pipeisoc(pipe))return;if(usb_pipein(pipe))IIIll->llIlIlIll[usb_pipeendpoint(
                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c: In function ‘lllIIllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:317:64: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 (0xec9+2604-0x18f5);}int lllIIllI(struct IIIlI*IIIll,int pipe){if(!usb_pipeisoc(
                                                                ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:318:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 pipe))return(0x1c0f+1419-0x219a);if(usb_pipein(pipe))return IIIll->IlIllIII[
                                  ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c: In function ‘lIIIlIlI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:320:56: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 void lIIIlIlI(struct IIIlI*IIIll,int pipe,int lIlIlll){if(!usb_pipeisoc(pipe))
                                                        ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:321:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return;if(usb_pipein(pipe))IIIll->IlIllIII[usb_pipeendpoint(pipe)]=lIlIlll;else
        ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c: In function ‘lIIllIll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:383:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(llllIl->endpoint!=IllIlI->cur_altsetting->endpoint[i].desc.bEndpointAddress)
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:384:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 continue;IlllIll=atomic_xchg(&llllIl->state,IIIlIll);
          ^~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:385:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(IlllIll==IIIlIll||IlllIll==llIIlIIIl)continue;llllIl->IlIIIlI=IlIIIlI;
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:385:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(IlllIll==IIIlIll||IlllIll==llIIlIIIl)continue;llllIl->IlIIIlI=IlIIIlI;
                                                  ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c: In function ‘IIlIlIIll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:408:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(llllIl->endpoint!=endpoint)continue;IlllIll=atomic_xchg(&llllIl->state,
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:408:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(llllIl->endpoint!=endpoint)continue;IlllIll=atomic_xchg(&llllIl->state,
                                        ^~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c: In function ‘IIlIIllll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:431:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(llllIl==lIlIIII)continue;if(llllIl->IllIl==IllIl){if(atomic_xchg(&llllIl->
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/stub.c:431:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(llllIl==lIlIIII)continue;if(llllIl->IllIl==IllIl){if(atomic_xchg(&llllIl->
                             ^~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘lIIIlIIlI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:678:43: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 {int i;int lIIlllIII=(0x17af+3209-0x2438);if(!test_bit(HCD_FLAG_HW_ACCESSIBLE,&
                                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:679:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IlIII->flags))break;for(i=(0xb6d+1624-0x11c5);i<IlIlIll;i++){if(lIIII->lIlllI[i]
                     ^~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IlllIIIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:812:68: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IlIllI(lIIII->lllIlIlI):NULL;spin_lock_irqsave(&lIIII->lock,flags);if(lIlIlIII)
                                                                    ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:813:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 spin_lock(&lIlIlIII->lock);lIlII=-ENOENT;for(lIllI=(0xb35+1494-0x110b);lIllI<
                            ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘lIlllllII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:871:36: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 ,lIllI);if(lIIII==NULL)return NULL;if(lIllI<=(0x6c4+7530-0x242e)||lIllI>IlIlIll)
                                    ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:872:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return NULL;lIllI--;
             ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IIllIlIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1024:79: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 static inline size_t IIllIlIII(struct urb*lIlll,void*IlIIl){int i;void*lIIlll;if
                                                                               ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1025:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 (!lIlll->transfer_buffer)return(0x277+6542-0x1c05);lIIlll=IlIIl;for(i=
                                                    ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘lIIIIlIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1158:67: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 static inline int lIIIIlIl(struct urb*lIlll,void*IlIIl,int lIIlI){if(!lIIlI)
                                                                   ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1159:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return(0x154+1790-0x852);if(!lIlll->transfer_buffer)return-EINVAL;memcpy(lIlll->
                          ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IIIIlllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1161:65: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 ,struct urb*lIlll,int lIIlI){if(!lIIlI)return(0x344+1434-0x8de);if(!lIlll->
                                                                 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1162:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 transfer_buffer)return-EINVAL;memcpy(IlIIl,lIlll->transfer_buffer,lIIlI);return
                               ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IllIlllII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1163:75: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 lIIlI;}static inline int IllIlllII(struct urb*lIlll,void*IlIIl,int lIIlI){if(!
                                                                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1164:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 lIIlI)return(0x135a+4540-0x2516);if(!lIlll->setup_packet)return-EINVAL;memcpy(
                                  ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IIlIIlIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1166:71: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IlIIl,struct urb*lIlll,int lIIlI){if(!lIIlI)return(0x483+6261-0x1cf8);if(!lIlll
                                                                       ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1167:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 ->setup_packet)return-EINVAL;memcpy(IlIIl,lIlll->setup_packet,lIIlI);return
                              ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘llIIIIIll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1168:68: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 lIIlI;}static inline size_t llIIIIIll(void*IlIIl,struct urb*lIlll){if(!lIlll->
                                                                    ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1169:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 transfer_buffer)return(0x21c6+31-0x21e5);return lIIlllll(lIlll->iso_frame_desc,
                                          ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IlIllIlII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1192:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(IIIIlllI((char*)IlIIl+IlIlI->lllII.llIIlI,lllIII->lIlll,lllIII->lIlll->
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1193:60: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 transfer_buffer_length)<(0x1ab8+2239-0x2377))return-EINVAL;IlIlI->lllII.llIIlI+=
                                                            ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IlllIlIIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1204:27: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 usb_pipeout(lIlll->pipe)){if(IIIIlllI((char*)IlIIl+lIIIIIl,lIlll,lIlll->
                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1205:60: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 transfer_buffer_length)<(0x1109+2839-0x1c20))return-EINVAL;IlIlI->lllII.llIIlI+=
                                                            ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IlIlIIIIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1234:30: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(usb_pipeout(lIlll->pipe)){if(IIIIlllI((char*)IlIIl+lIIIIIl,lIlll,lIlll->
                              ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1235:60: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 transfer_buffer_length)<(0x170f+3954-0x2681))return-EINVAL;IlIlI->lllII.llIIlI+=
                                                            ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IlllIIIll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1254:44: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 lllIIII=(0x1650+269-0x175d);}if(!IlIIIIIl){if(IIIIlllI((char*)IlIIl+lIIIIIl,
                                            ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1255:72: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 lIlll,lIlll->transfer_buffer_length)<(0x304+7299-0x1f87))return-EINVAL;IlIlI->
                                                                        ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘lIIIIlllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1287:73: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 );break;case PIPE_CONTROL:lIlII=IIlIIlIII(&llIllI,lIlll,sizeof(llIllI));if(lIlII
                                                                         ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1288:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 <(0x104d+1264-0x153d))break;if(lIlII!=sizeof(llIllI)){lIlII=-EINVAL;break;}if(
                             ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘llIIIllll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1337:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(usb_pipein(lIlll->pipe))llIlIllIl(lIlll,IlIlIIlll);return lIlII;}static
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1337:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(usb_pipein(lIlll->pipe))llIlIllIl(lIlll,IlIlIIlll);return lIlII;}static
                                                       ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IlllIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1438:78: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IlIlllI);break;case IlIlllI:if(IIIIIl==IllIlIII)lllllIl(lIIII,lIllI,IIlllIl);if(
                                                                              ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1439:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IIIIIl==llllIlll)lllllIl(lIIII,lIllI,llIlIIl);break;case llIlIIl:if(IIIIIl==
                                               ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1439:66: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IIIIIl==llllIlll)lllllIl(lIIII,lIllI,llIlIIl);break;case llIlIIl:if(IIIIIl==
                                                                  ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1440:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IllIlIII)lllllIl(lIIII,lIllI,IIlllIl);if(IIIIIl==IllIIlII)lllllIl(lIIII,lIllI,
                                       ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1441:78: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IlIlllI);if(IIIIIl==IIlIlIII)lllllIl(lIIII,lIllI,IlIllIl);break;case IlIllIl:if(
                                                                              ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1442:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IIIIIl==IllIlIII)lllllIl(lIIII,lIllI,IIlllIl);if(IIIIIl==IllIIlII)lllllIl(lIIII,
                                               ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1443:65: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 lIllI,IlIlllI);if(IIIIIl==llllIlll)lllllIl(lIIII,lIllI,llIlIIl);if(IIIIIl==
                                                                 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1444:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IlIIllllI)lllllIl(lIIII,lIllI,IIIIlllll);break;case IIIIlllll:if(IIIIIl==
                                          ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1444:63: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IlIIllllI)lllllIl(lIIII,lIllI,IIIIlllll);break;case IIIIlllll:if(IIIIIl==
                                                               ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1445:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IllIlIII)lllllIl(lIIII,lIllI,IIlllIl);if(IIIIIl==IllIIlII)lllllIl(lIIII,lIllI,
                                       ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1446:59: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IlIlllI);if(IIIIIl==llllIlll)lllllIl(lIIII,lIllI,llIlIIl);if(IIIIIl==IIIlIIIIl||
                                                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1447:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IIIIIl==lIIIIIIII)lllllIl(lIIII,lIllI,llllIlIl);break;case llllIlIl:if(IIIIIl==
                                                 ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1447:69: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IIIIIl==lIIIIIIII)lllllIl(lIIII,lIllI,llllIlIl);break;case llllIlIl:if(IIIIIl==
                                                                     ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1448:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IllIlIII)lllllIl(lIIII,lIllI,IIlllIl);if(IIIIIl==IllIIlII)lllllIl(lIIII,lIllI,
                                       ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1449:59: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IlIlllI);if(IIIIIl==llllIlll)lllllIl(lIIII,lIllI,llIlIIl);if(IIIIIl==IIlIlIII)
                                                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1450:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 lllllIl(lIIII,lIllI,IlIllIl);break;}}static inline int IllIIIlI(int speed){
                              ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘lllllIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1456:58: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 lIllI]=lIlllIl;lIIII->IIllllI[lIllI]=(0xb91+4595-0x1d84);if(lIIlIIIl==llIlIIl)
                                                          ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1457:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 lIIII->lIlllI[lIllI]|=USB_PORT_STAT_C_RESET;if(lIIlIIIl==llllIlIl)lIIII->lIlllI[
                                             ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1463:63: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 ->llIIlII[lIllI]=USB_PORT_STAT_POWER|USB_PORT_STAT_CONNECTION;if(lIIlIIIl==
                                                               ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1464:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IIlllIl)lIIII->lIlllI[lIllI]|=USB_PORT_STAT_C_CONNECTION;break;case llIlIIl:
                                                          ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c: In function ‘IIlIIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1518:78: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 IIlllIl);if(IIIIIl==llllIlll)IllIIIl(lIIII,lIllI,llIlIIl);break;case IIlllIl:if(
                                                                              ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1519:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IIIIIl==IIIllllI)IllIIIl(lIIII,lIllI,IllIllII);if(IIIIIl==IllllIII)IllIIIl(lIIII
                                                ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1526:72: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 lIIII,lIllI,IllIllII);if(IIIIIl==IllIlIII)IllIIIl(lIIII,lIllI,IIlllIl);if(IIIIIl
                                                                        ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1527:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 ==llllIlll)IllIIIl(lIIII,lIllI,llIlIIl);if(IIIIIl==lllllIIl&&IIIlIlI==
                                         ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1545:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(IIIIIl==IIIllllI)IllIIIl(lIIII,lIllI,IllIllII);if(IIIIIl==IllIlIII)IllIIIl(
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/vhci.c:1545:51: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(IIIIIl==IIIllllI)IllIIIl(lIIII,lIllI,IllIllII);if(IIIIIl==IllIlIII)IllIIIl(
                                                   ^~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c: In function ‘IllIIIIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:50:59: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 struct usb_host_config*IllIIIIII(struct usb_device*lIIIl){if(lIIIl->actconfig)
                                                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:51:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return lIIIl->actconfig;if(lIIIl->descriptor.bNumConfigurations&&lIIIl->config)
                         ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:51:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:52:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return&lIIIl->config[(0x1bef+325-0x1d34)];return NULL;}
                                           ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c: In function ‘llIIllllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:55:23: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 (0x403+6893-0x1ef0)]){if(config->interface[(0x4e0+4873-0x17e9)]->cur_altsetting)
                       ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:56:63: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return config->interface[(0x2a5+8023-0x21fc)]->cur_altsetting;if(config->
                                                               ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c: In function ‘IlIlIIIlI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:90:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(lIIllIIl)*lIIllIIl=(0x95b+6752-0x23bb);if(llIIIlII)*llIIIlII=
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:90:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(lIIllIIl)*lIIllIIl=(0x95b+6752-0x23bb);if(llIIIlII)*llIIIlII=
                                           ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:93:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(lIIllIIl)*lIIllIIl=IlIll->desc.bInterfaceClass;if(llIIIlII)*llIIIlII=IlIll->
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:93:51: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(lIIllIIl)*lIIllIIl=IlIll->desc.bInterfaceClass;if(llIIIlII)*llIIIlII=IlIll->
                                                   ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:97:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(lIIllIIl)*lIIllIIl=lIIIl->descriptor.bDeviceClass;if(llIIIlII)*llIIIlII=lIIIl
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:97:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(lIIllIIl)*lIIllIIl=lIIIl->descriptor.bDeviceClass;if(llIIIlII)*llIIIlII=lIIIl
                                                      ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c: In function ‘llllllllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:243:77: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 struct lIlIl*llllllllI(struct lIlIl*IlllI,gfp_t llIlI){struct lIlIl*IIIllII;if(
                                                                             ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:245:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 return NULL;IIIllII=IllIlIl(IlllI->lllllI,llIlI);if(IIIllII){memset(IIIllII,
             ^~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c: In function ‘lIIlllll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:346:69: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 unsigned int length=IllIIlll?IIllIIl->actual_length:IIllIIl->length;if(length&&
                                                                     ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/utils.c:348:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 memmove(IlIlIIIl,llIlIIIIl,length);IlIlIIIl+=length;lIlII+=length;IIllIIl++;}
                                    ^~~~~~~~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c: In function ‘IIIlIIllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:34:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(lIlII<(0x170+960-0x530))break;llIII->lIlIIl[i]=IIIIlIl(lIIIIIll->
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:34:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(lIlII<(0x170+960-0x530))break;llIII->lIlIIl[i]=IIIIlIl(lIIIIIll->
                                  ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c: In function ‘lIIllIIlI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:102:76: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 );for(i=(0x165d+3850-0x2567),IIlIIl=(0x4f4+2159-0xd63);i<llIII->lIIlI;i++){if(
                                                                            ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:103:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 llIII->status!=(0x1bfa+2173-0x2477))break;llIII->lIlIIl[i]->dev=llIII->llIIIl;
                                           ^~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c: In function ‘llllllIII’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:123:64: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
 ,lIlII);return lIlII;}int llllllIII(struct lllIIl*llIII){int i;for(i=
                                                                ^~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:124:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
 (0xff1+4197-0x2056);i<llIII->lIIlI;i++)usb_get_urb(llIII->lIlIIl[i]);return
                                                                      ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c: In function ‘IIIIllIll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:157:45: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
 struct lllIIl*llIII,struct urb*lIlll){int i;for(i=(0x2d+3678-0xe8b);i<llIII->
                                             ^~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:158:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
 lIIlI;i++)if(llIII->lIlIIl[i]==lIlll)break;return(i==llIII->lIIlI)?-
                                            ^~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c: In function ‘IIlIIlIll’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:167:78: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 "\x75\x73\x62\x64\x5f\x62\x63\x5f\x61\x6c\x6c\x6f\x63\x3a\x20\x2b\x2b" "\n");if(
                                                                              ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:168:69: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 unlikely(IIIllIIl==(0xa79+4137-0x1aa2)))return-(0x1463+1030-0x1868);if(unlikely(
                                                                     ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:168:69: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:169:56: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 length==(0x116b+416-0x130b)))return-(0x10f+3195-0xd89);lllllllI=llIlIIII-(
                                                        ^~~~~~~~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c: In function ‘llIIIlllI’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:206:68: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if((IIIlIIIl+IIIIlII[i].Length)>llIlIIII||IIIlIllI){size_t IlIIlll;if(IIIlIllI)
                                                                    ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/urb_chain.c:207:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 IIIlIIIl+=IIIIlII[i].Length;IlIIlll=min(IIIlIIIl,length);llIII->transfer_buffer[
                             ^~~~~~~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/sg.o
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/loader.o
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/loader.c: In function ‘IlIlllIl’:
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/loader.c:141:1: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 if(IlIll->dev.driver==NULL)continue;if(to_usb_driver(IlIll->dev.driver)!=&
 ^~
/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/loader.c:141:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 if(IlIll->dev.driver==NULL)continue;if(to_usb_driver(IlIll->dev.driver)!=&
                                     ^~
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/driver.o
  LD [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/tusbd.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/tusbd.mod.o
  LD [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/tusbd.ko
make[1]: Leaving directory '/usr/src/linux-source-4.19.57-sunxi64'
outdoorpi@orangepizero:~/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd$

 

 

Posted

http://ix.io/1RTz
No problems at all - perhaps you downloaded wrong sources?

root@orangepizeroplus:~/usb-redirector-linux-arm64# ./installer.sh install
 
*** Installing USB Redirector for Linux v3.8
***  Destination dir: /usr/local/usb-redirector
***  Checking installation...
***  Detecting system...
***     distribution: debian
***     kernel: 4.19.67-sunxi64
***  Compiling kernel module...
***  Kernel module successfully compiled
***  Creating directories...
***  Preparing scripts...
***  Copying files...
***  Setting up init script...
***  Starting daemon...
***  Please allow incoming connections on 32032 port for USB Sever to be able to accept connections from remote clients.
***  INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh

Operational:

usbsrv -l

================= USB SERVER OPERATION SUCCESSFUL ===============
List of local USB devices:

   1: 802.11ac NIC Realtek Composite USB Device (s/n: 123456)
      Vid: 0bda   Pid: b82c   Port: 3-1
      Status: plugged

===================== ======================= ===================

 

Posted

will try later with arm64 maybe that will solf the problrm

 

 

outdoorpi@orangepizero:~/usb-redirector-linux-arm64$ sudo ./installer.sh install-server
[sudo] password for outdoorpi:

*** Installing USB Redirector for Linux v3.8
***  Destination dir: /usr/local/usb-redirector
***  Checking installation...
***  Detecting system...
***     distribution: debian
***     kernel: 4.19.59-sunxi
***  Cleaning up installation...
***
***  INSTALLATION FAILED!
??? Kernel sources or kernel headers directory not found. Please install the corresponding package first.
outdoorpi@orangepizero:~/usb-redirector-linux-arm64$

 

Posted

did not work for me...

 

outdoorpi@orangepizero:~/usb-redirector-linux-arm64$ sudo ./installer.sh install-server
[sudo] password for outdoorpi:

*** Installing USB Redirector for Linux v3.8
***  Destination dir: /usr/local/usb-redirector
***  Checking installation...
***  Detecting system...
***     distribution: debian
***     kernel: 4.19.59-sunxi
***  Compiling kernel module...
***  Kernel module successfully compiled
***  Creating directories...
***  Preparing scripts...
***  Copying files...
***  Setting up init script...
***  Starting daemon...
***  Please allow incoming connections on 32032 port for USB Sever to be able to accept connections from remote clients.
***  INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh
outdoorpi@orangepizero:~/usb-redirector-linux-arm64$ cd /usr/local/usb-redirector/bin/
outdoorpi@orangepizero:/usr/local/usb-redirector/bin$ usbsrv -l
-bash: /usr/local/bin/usbsrv: cannot execute binary file: Exec format error
outdoorpi@orangepizero:/usr/local/usb-redirector/bin$ sudo usbsrv -l
/usr/local/bin/usbsrv: 3: /usr/local/bin/usbsrv: Syntax error: "(" unexpected
outdoorpi@orangepizero:/usr/local/usb-redirector/bin$

 

Posted

Why are you compiling the arm64 version on Orange Pi Zero? Why did you use 64-bit kernel headers to compile the 32-bit version? I didn't notice at first you were using the wrong kernel headers. Orange Pi Zero is H2+ which is 32 bit.

Posted
On 8/16/2019 at 4:17 AM, sveni_lee said:

KERNELDIR=/usr/src/linux-source-4.19.57-sunxi64

I don't know how you ended up with this version of the kernel source installed on the 32-bit Orange Pi Zero, but you should start over with everything and make sure that you use usb-redirector-linux-armeb-gnueabihf with 32-bit kernel source (i.e., KERNELDIR=/usr/src/linux-source-4.19.57-sunxi). Do not use arm64 usb-redirector and do not use sunxi64 kernel source. Do not randomly try different things. The combination I listed is the only combination that will work. If you don't have those items installed, you need to get the installed. You can't substitute other similar items for those.

Posted

if I install Kernel via

armbian-config

it installs linux-source-4.19.57-sunxi64 Kernel source. So how can I get the right kernel.source?

Posted

Check your kernel version using uname -r

Then install the proper source with apt install linux-source-4.19.62-next-sunxi (where 4.19.62 has to be replaced with your actual kernel version).

 

Why armbian-config is installing 64bit kernel sources on a 32bit I cannot tell...

Posted

thanks for that...

 

outdoorpi@orangepizero:~$ uname -r
4.19.59-sunxi
outdoorpi@orangepizero:~$

 

could not find kernel-source

outdoorpi@orangepizero:~$ sudo apt install linux-source-4.19.59-next-sunxi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-source-4.19.59-next-sunxi
E: Couldn't find any package by glob 'linux-source-4.19.59-next-sunxi'
E: Couldn't find any package by regex 'linux-source-4.19.59-next-sunxi'
outdoorpi@orangepizero:~$

 

Posted

 

1 minute ago, Igor said:

 

sudo apt install linux-source-4.19.63-next

outdoorpi@orangepizero:~$ sudo apt install linux-source-4.19.63-next
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-source-4.19.63-next
E: Couldn't find any package by glob 'linux-source-4.19.63-next'
E: Couldn't find any package by regex 'linux-source-4.19.63-next'
outdoorpi@orangepizero:~$

has the same effect for me...

or should I install by "hand"?

Posted

Someone else had this issue as well. For unknown reason there are no sources for images built around 4.19.59. Their solution was to downgrade to .57 as this kernel had provided sources.

 

In any case the kernel you are actually running has to match the sources you are utilizing to build modules.

 

So you may want to install these to packages:

 

linux-source-4.19.62-next-sunxi

linux-image-next-sunxi

 

The linux-image-next-sunxi package by description currently containing a 4.19.62 image so it matches.

 

I wonder that the board is still on .57. Did you ever do a standard apt update && apt upgrade?

 

Posted
7 minutes ago, Werner said:

So you may want to install these to packages:

 

linux-source-4.19.62-next-sunxi

linux-image-next-sunxi

 

 

okay, would like to install those packages, but how can I update to this kernel?

 

8 minutes ago, Werner said:

I wonder that the board is still on .57. Did you ever do a standard apt update && apt upgrade?

 

 

yes but still on the same kernel...

Posted

When installing linux-image-next-sunxi apt will get rid of the .57 kernel and replace it with the .62 kernel. Reboot the board afterwards and you should see the effect.

Posted

okay after reboot and

 

sudo apt-get install linux-source-4.19.62-next-sunxi

i got the right kernel-source

 

outdoorpi@orangepizero:/usr/src$ ls -la
total 409096
drwxrwxr-x  2 root root      4096 Aug 18 08:51 .
drwxr-xr-x 10 root root      4096 Jul 15 08:50 ..
-rw-rw-r--  1 root root 418864896 Jul 31 20:02 linux-source-4.19.62-sunxi.tar.xz
-rw-rw-r--  1 root root     33776 Jul 31 20:02 linux-sunxi-next_4.19.62_5.92_config.xz
outdoorpi@orangepizero:/usr/src$

so what next? only unpack the linux-source-4.19.62-sunxi.tar.xz or is there more to do?

Posted

Besides unpacking you may need to create a symlink called linux if the compiler does not find the sources by itself. Just give it a shot beforehand and if it does not work assuming the unpacked folder has the name below us this command inside /usr/src/

ln -s linux-source-4.19.62-sunxi linux

 

Posted

I do not understand what I'm doing wrong.

 

outdoorpi@orangepizero:/usr/src$ sudo ./installer.sh install-server
sudo: ./installer.sh: command not found
outdoorpi@orangepizero:/usr/src$ cd ~
outdoorpi@orangepizero:~$ cd usb-redirector-linux-armeb-gnueabihf/
outdoorpi@orangepizero:~/usb-redirector-linux-armeb-gnueabihf$ sudo ./installer.sh install-server

*** Installing USB Redirector for Linux v3.8
***  Destination dir: /usr/local/usb-redirector
***  Checking installation...
***  Detecting system...
***     distribution: debian
***     kernel: 4.19.62-sunxi
***  Compiling kernel module...
***  Cleaning up installation...
***
***  Installation failed!
??? Cannot compile kernel module. Installation terminated. See buildlog.txt file for more information.
outdoorpi@orangepizero:~/usb-redirector-linux-armeb-gnueabihf$

buidlog.txt:

make -C /usr/src/linux-source-4.19.62-sunxi M=/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-source-4.19.62-sunxi'
  CC [M]  /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/driver.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:304: /home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/driver.o] Error 2
make[2]: *** Deleting file '/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd/driver.o'
make[1]: *** [Makefile:1517: _module_/home/outdoorpi/usb-redirector-linux-armeb-gnueabihf/files/modules/src/tusbd] Error 2
make[1]: Leaving directory '/usr/src/linux-source-4.19.62-sunxi'
make: *** [Makefile:61: default] Error 2

 

Posted
/bin/sh: 1: scripts/basic/fixdep: Exec format error

I am actually not that deep in this, though I guess armhf and armeb are incompatible architectures...

Posted

same without "eb"...

 

make -C /usr/src/linux-source-4.19.62-sunxi M=/home/outdoorpi/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-source-4.19.62-sunxi'
  CC [M]  /home/outdoorpi/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/driver.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:304: /home/outdoorpi/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/driver.o] Error 2
make[2]: *** Deleting file '/home/outdoorpi/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/driver.o'
make[1]: *** [Makefile:1517: _module_/home/outdoorpi/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd] Error 2
make[1]: Leaving directory '/usr/src/linux-source-4.19.62-sunxi'
make: *** [Makefile:61: default] Error 2

 

Posted
3 hours ago, sveni_lee said:

/bin/sh: 1: scripts/basic/fixdep: Exec format error

 

You have seen this error before. Do you not remember? Look at post #2.

Posted

Did you rebuild the scripts as shown in post #2? Are you sure it's the same error? Scripts must always be rebuilt when compiling natively because the kernel package is built on x86_64 so the binaries in that directory will be x86_64 format and must be rebuilt for execution on ARM.

Posted

I did it again...

 

outdoorpi@orangepizero:/usr/src/linux-source-4.19.62-sunxi$ sudo make clean
[sudo] password for outdoorpi:
outdoorpi@orangepizero:/usr/src/linux-source-4.19.62-sunxi$ sudo make scripts
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.h
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  YACC    scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/empty.o
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms

seems to be worked...

 

I changed the installer.sh of usb-redirector-linux-arm-gnueabihf

# KERNELDIR=/lib/modules/`uname -r`/build
KERNELDIR=/usr/src/linux-source-4.19.62-sunxi

 

start the installer.sh

outdoorpi@orangepizero:~/usb-redirector-linux-arm-gnueabihf$ sudo ./installer.sh install-server

*** Installing USB Redirector for Linux v3.8
***  Destination dir: /usr/local/usb-redirector
***  Checking installation...
***  Detecting system...
***     distribution: debian
***     kernel: 4.19.62-sunxi
***  Compiling kernel module...
***  Kernel module successfully compiled
***  Creating directories...
***  Preparing scripts...
***  Copying files...
***  Setting up init script...
***  Starting daemon...
***  Please allow incoming connections on 32032 port for USB Sever to be able to accept connections from remote clients.
***  INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh
outdoorpi@orangepizero:~/usb-redirector-linux-arm-gnueabihf$

seems also to be worked.

 

tried to start usb-redirector:

outdoorpi@orangepizero:/usr/local/usb-redirector/bin$ sudo ./usbsrv -l

******************** ERROR ***********************
Cannot connect to USB Redirector daemon.
Please make sure usbsrvd is loaded. If the module
is not loaded, please contact our support team.
Error log can be found at /var/log/usbsrvd.log
**************** **************** ****************
outdoorpi@orangepizero:/usr/local/usb-redirector/bin$

 

/var/log/usbsrvd.log

Aug 19, 2019 07:03:36 Daemon startup
Aug 19, 2019 07:03:40 Daemon can not be started! Error 0 Module 0x0003 Line 24
Aug 19, 2019 07:03:40 Daemon shutdown

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines