@w7psk
Sometimes it is very hard to debug.
In such cases easier option is fresh install:
- Format microSD card
- Download latest Piaware SD card image
- Write Piaware SD card image
- Install ModeSMixer2.
@w7psk
Sometimes it is very hard to debug.
In such cases easier option is fresh install:
Many thanks for the guided instructions for this. I have got it working perfectly for JESSIE but for the STRETCH option, the charts work fine as do the flight tables but no maps are present - any suggestions?
Also a couple of questions:
Thank you
Yea, not that easy, then I have to try and get my account linked back up … get the ID in there correctly etc etc.
Ill think about it.
well that does it. Im done.
Did a total refresh, got the id chanced. Followed the example to the letter
pi@piaware:~/mm2$ sudo nano mm2.sh
pi@piaware:~/mm2$ sudo chmod +x mm2.sh
pi@piaware:~/mm2$ ./mm2.sh & disown
[1] 1237
pi@piaware:~/mm2$ Illegal instruction
Please ignore my psot about STRETCHversion not working…it is now…just needed me to refresh the screen when in the ‘Map’ menu. Any feedback on the other questions would be gratefully received
Thanks
First try with sudo:
sudo ./mm2 & disown
If still gives illegal instruction, try this method:
Start deleting pieces of code from end of line. Save mm2.sh after each Step below, and try sudo ./mm2.sh
.
Stop trying at step where illegal instruction stops appearing. This will mean the last chunk deleted was causing illegal instruction
Step - 1: Delete --location xx.xxxx:yy.yyyy
The line will become
./modesmixer2 --inConnectId 127.0.0.1:30005:ADS-B --inConnectId 127.0.0.1:30106:MLAT --web 8787
Step - 2: Delete --web 8787
also.
The line will become
./modesmixer2 --inConnectId 127.0.0.1:30005:ADS-B --inConnectId 127.0.0.1:30106:MLAT
Step - 3: Delete --inConnectId 127.0.0.1:30106:MLAT
also.
The line will become
./modesmixer2 --inConnectId 127.0.0.1:30005:ADS-B
Step - 4: Delete --inConnectId 127.0.0.1:30005:ADS-B
also.
The line will become
./modesmixer2
Step - 5: Delete the last bit ./modesmixer2
also.
The file will be left with first two lines only
#!bin/sh
cd /home/pi/mm2
Step - 6: delete 2nd line cd /home/pi/mm2
also
The file will be left with only first line
#!bin/sh
At Step-4, in which all arguments are removed and only ./modesmixer2
is left, running file mm2.sh will output a long list of arguments.
Illegal instruction all the way down to a blank mm2.sh file.
running the commands in the mm2.sh file with sudo on a command line works. BUT, when I got to IP:8787 it says
This site can’t be reached
192.168.1.9 refused to connect.
Search Google for 192 168 8787
ERR_CONNECTION_REFUSED
its a PI B+ 8 gig SDHC card running standard flightaware image.
Ok another test, like first, but with brand new file mm2.sh, and in reverse order. Hopefully this will resolve the issue
Step-1: Delete existing file mm2.sh, then create a new blank file mm2.sh, make it executeable and run it.
pi@piaware:~ $ cd mm2
pi@piaware:~/mm2$ sudo rm mm2.sh
pi@piaware:~/mm2$ sudo nano mm2.sh
Save (Ctrl+o), and close nano (Ctrl+x)
Make file executeable
pi@piaware:~/mm2$ sudo chmod +x mm2.sh
Run the brand-new, blank file
pi@piaware:~/mm2$ ./mm2.sh
Step-2: If above does not say illegal action, then open file in nano and add first line:
pi@piaware:~/mm2$ sudo nano mm2.sh
Copy-paste following line:
#!/bin/sh
Save (Ctrl+o) and Close (Ctrl+x)
Run the file
pi@piaware:~/mm2$ ./mm2.sh
Step-3: If above does not say illegal action, then open file in nano and add 2nd line:
pi@piaware:~/mm2$ sudo nano mm2.sh
Copy-paste following line BELOW the first line (i.e. below #!/bin/sh
).
cd /home/pi/mm2
Save (Ctrl+o) and Close (Ctrl+x)
Run the file
pi@piaware:~/mm2$ ./mm2.sh
Step-4: If above does not say illegal action, then open file in nano and add 3rd line:
pi@piaware:~/mm2$ sudo nano mm2.sh
Copy-paste following line BELOW the second line (i.e. below cd /home/pi/mm2
)
./modesmixer2 --inConnectId 127.0.0.1:30005:ADS-B
Save (Ctrl+o) and Close (Ctrl+x)
Run the file
pi@piaware:~/mm2$ ./mm2.sh
./mm2.sh: line 3: 2927 Illegal instruction ./modesmixer2 --inConnectId 127.0.0.1:30005:ADS-B
pi@piaware:~/mm2$
Very strange. Ok remove
–inConnectId 127.0.0.1:30005:ADS-B
This will make 3rd line as
./modesmixer2
After saving file, run it.
Does it still give illegal instruction or outputs a long list of arguments as help/guide?
Yes still illegal instruction. I downloaded and tar the file off the modesmixer2 page for the jessie and it sill fails.
removing the ./modesmixer2 out of mm2.sh and saving it do the command line and the file runs.
the file Im using to tar is modesmixer2_rpi2-3_20170924.tgz
@w7psk
Ok, try this
Edit file mm2.sh, and:
/home/pi/mm2/./modesmixer2 --inConnectId 127.0.0.1:30005:ADS-B
Save file, then run it.
pi@piaware:~/mm2$ ./mm2.sh
./mm2.sh: line 2: 3294 Illegal instruction /home/pi/mm2/./modesmixer2 --inConnectId 127.0.0.1:30005:ADS-B
pi@piaware:~/mm2$
@w7psk
Delete ALL lines in mm2.sh, and copy-paste following line and run file mm2.sh:
~/mm2/./modesmixer2 --inConnectId 127.0.0.1:30005:ADS-B
pi@piaware:~/mm2$ sudo ./mm2.sh
./mm2.sh: 1: ./mm2.sh: /root/mm2/./modesmixer2: not found
pi@piaware:~/mm2$ ls
LICENSE.MIT mm2.sh modesmixer2 modesmixer2.readme modesmixer2_rpi2-3_20170924.tgz
pi@piaware:~/mm2$
my mm2 path is
/home/pi/mm2
That path we tried in earlier post. It did find modesmixer2, but gave illegal operation.
Ok we will try without Id and without ADS-B.
Delete ALL lines from mm2.sh, and copy-paste following line and try to run the file.
/home/pi/mm2/./modesmixer2 --inConnect 127.0.0.1:30005
pi@piaware:~/mm2$ sudo ./mm2.sh
Illegal instruction
pi@piaware:~/mm2$
I wouldnt waste any more time, its obvious it isnt going to work on my machine. I will just
continue to use the piaware dump1090 skyview map it works
@w7psk
I give up.
Nothing seems to work on your Pi, while all solutions I suggested work on my Pi Model2, both on Piaware SD card (Jessie) and Raspbian Stretch.
I get the same “illegal instruction” message if I try to run modesmixer2 on a Pi model 1 ( arm6 ) that I pulled out of my junk drawer. Works fine on Pi model 3 with Stretch. For what it’s worth…
@w7psk
@AhrBee
I have used modesmixer2 on RPi Model2 only, and it works sucessfully both with Piaware SD card (Jessie) and Raspbian Stretch.
I have a RPi Model B+ lying unused in my drawer.
I will now write Piaware SD card image on a spare microSD card, and try it on Pi B+.
I also have an Orange Pi PC and a C.H.I.P. also. I will try modesmixer2 on these two also.