tc@pypilot:~/pypilot_update$ . pypilot.build
: not foundt.build: line 9:
: not foundt.build: line 13:
: not foundt.build: line 18:
: not foundt.build: line 26:
: not foundt.build: line 30:
: not foundt.build: line 32:
: not foundt.build: line 34:
: not foundt.build: line 36:
: not foundt.build: line 38:
: not foundt.build: line 40:
: not foundt.build: line 44:
: not foundt.build: line 46:
: not foundt.build: line 49:
: not foundt.build: line 51:
: not foundt.build: line 53:
: not foundt.build: line 54:
: not foundt.build: line 56:
-sh: cd: line 57: can't cd to .
: not foundt.build: line 58:
: not foundt.build: line 61:
: not foundt.build: line 63:
: not foundt.build: line 65: python3.6
tar: can't open 'dist/*tar.gz': No such file or directory
: not foundt.build: line 67:
-sh: cd: line 69: can't cd to ..
: not foundt.build: line 71:
: not foundt.build: line 72:
: not foundt.build: line 75:
: not foundt.build: line 77:
: not foundt.build: line 79:
: not foundt.build: line 81:
chmod: /tmp/pypilot: No such file or directory
chmod: /: Operation not permitted
chmod: /tmp/pypilot: No such file or directory
chmod: /usr: Operation not permitted
chmod: /tmp/pypilot: No such file or directory
chmod: /usr/local: Operation not permitted
chmod: /tmp/pypilot: No such file or directory
chmod: /usr/local/lib: Operation not permitted
chmod: /tmp/pypilot: No such file or directory
mode of '/usr/local/lib/python3.6' changed to 0755 (rwxr-xr-x)
chmod: /tmp/pypilot: No such file or directory
mode of '/usr/local/lib/python3.6' changed to 0755 (rwxr-xr-x)
chmod: /site-packages: No such file or directory
: not foundt.build: line 82:
: not foundt.build: line 83:
'trip: unrecognized option '--strip-unneeded
Usage: strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target=<bfdname> Assume input file is in format <bfdname>
-O --output-target=<bfdname> Create an output file in format <bfdname>
-F --target=<bfdname> Set both input and output format to <bfdname>
-p --preserve-dates Copy modified/access timestamps to the output
-D --enable-deterministic-archives
Produce deterministic output when stripping archives
-U --disable-deterministic-archives
Disable -D behavior (default)
-R --remove-section=<name> Also remove section <name> from the output
--remove-relocations <name> Remove relocations from section <name>
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
--strip-dwo Remove all DWO sections
--strip-unneeded Remove all symbols not needed by relocations
--only-keep-debug Strip everything but the debug information
-M --merge-notes Remove redundant entries in note sections (default)
--no-merge-notes Do not attempt to remove redundant notes
-N --strip-symbol=<name> Do not copy symbol <name>
-K --keep-symbol=<name> Do not strip symbol <name>
--keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program's version number
-h --help Display this output
--info List object formats & architectures supported
-o <file> Place stripped output into <file>
strip: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
: not foundt.build: line 85:
: not foundt.build: line 86:
: not foundt.build: line 90:
-sh: cd: line 91: can't cd to /tmp/pypilot
-sh: cd: line 92: can't cd to ..
Parallel mksquashfs: Using 1 processor
, block size 131072.tem on pypilot
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.31 Kbytes (0.00 Mbytes)
64.27% of uncompressed filesystem size (0.49 Kbytes)
Inode table size 83 bytes (0.08 Kbytes)
42.78% of uncompressed inode table size (194 bytes)
Directory table size 92 bytes (0.09 Kbytes)
66.19% of uncompressed directory table size (139 bytes)
Number of duplicate files found 0
Number of inodes 6
Number of files 0
Number of fragments 0
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 6
Number of ids (unique uids + gids) 2
Number of uids 1
tc (1001)
Number of gids 1
staff (50)
-sh: cd: line 94: can't cd to /tmp/pypilot
find: usr: No such file or directory
.tcz': No such file or directory
: not foundt.build: line 97:
: not foundt.build: line 99:
.tcz': No such file or directory
: not foundt.build: line 101:
.tcz /mnt/mmcblk0p2/tce/optional/pypilot
: No such file or directoryonal/pypilot
: not foundt.build: line 105:
.tcz pypilot
-rw-r--r-- 1 tc staff 4096 Nov 4 11:07 pypilot?.tcz?
: not foundt.build: line 108:
': Path does not exist/mmcblk0p2/tce/optional
': Path does not exist/mmcblk0p2/tce/optional
': Path does not exist/mmcblk0p2/tce/optional
: not foundt.build: line 110:
: not foundt.build: line 112:
: not foundt.build: line 114:
-sh: cd: line 115: can't cd to /home/tc/pypilot_update
tc@pypilot:~/pypilot_update$
Sean. I'm still a bit new to all this git stuff and building the pypilot... Any suggestions?
(2022-08-28, 04:00 PM)seandepagnier Wrote: I pushed the changes to git now.
(2022-08-27, 06:32 PM)kniven Wrote: Sean. I'm still a bit new to all this git stuff and building the pypilot... Any suggestions?
I am not sure, but you are in the pypilot_update directory... What happens from the pypilot directory?
On tinycore often you need to pull the git changes to another machine, then pull from it locally since tinycore does not have ssl working.
I tried various thing. First, I tried to clone from git, directly to the Tinypilot... Failed, github timeout
Code:
tc@pypilot:~/pypilot-update$ ls
tc@pypilot:~/pypilot-update$ git clone git://github.com/pypilot/pypilot
Cloning into 'pypilot'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Connection timed out
Then, I cloned the git repositories to my PC, and copied it to tinypilot using scp
On my tinypilot, I now have the expected directory "pypilot_update2"
Code:
tc@pypilot:~$ ls
README pypilot pypilot-update/ pypilot_update/ pypilot_update2/
tc@pypilot:~$ cd pypilot_update2/
tc@pypilot:~/pypilot_update2$ ls
README arduino/ hat/ pypilot.build setup.cfg ui/
README.md dependencies.py pypilot/ scripts/ setup.py web/
tc@pypilot:~/pypilot_update2$
I now try to run pypilot, using the python3 autopilot.py, and get this error.
Code:
leifi@LAPTOP-L8M64A00 MINGW64 ~
$ ssh tc@192.168.1.102
tc@192.168.1.102's password:
tinypilot is a Sailboat Autopilot Distribution for raspberry pi
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net
tc@pypilot:~$ ls
README pypilot pypilot_update2/
tc@pypilot:~$ cd pypilot_update2/
tc@pypilot:~/pypilot_update2$ ls
README arduino/ hat/ pypilot.build setup.cfg ui/
README.md dependencies.py pypilot/ scripts/ setup.py web/
tc@pypilot:~/pypilot_update2$ cd pypilot/
tc@pypilot:~/pypilot_update2/pypilot$ python3 autopilot.py
autopilot start 160.964211
world magnetic model not available
autopilot start 168.28026
imu process 3670
made imu process realtime
Using settings file RTIMULib.ini
Settings file not found. Using defaults and creating settings file
Detected ICM20948 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: ICM-20948
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
warning, failed to make calibration process idle, trying renice
ICM-20948 init complete
Traceback (most recent call last):
File "autopilot.py", line 477, in <module>
main()
File "autopilot.py", line 471, in main
ap = Autopilot()
File "autopilot.py", line 107, in __init__
self.sensors = Sensors(self.client, self.boatimu)
File "/home/tc/pypilot_update2/pypilot/sensors.py", line 282, in __init__
from signalk import signalk
File "/home/tc/pypilot_update2/pypilot/signalk.py", line 367
data[pypilot_key] = value[signalk_key] / signalk_conversion
^
IndentationError: expected an indented block
closing autopilot
tc@pypilot:~/pypilot_update2/pypilot$ sudo sv stop pypilot
ok: down: pypilot: 0s
tc@pypilot:~/pypilot_update2/pypilot$
I also try to build using the . pypilot.build command, but this also fails
Code:
tc@pypilot:~/pypilot_update2$ . pypilot.build
: not foundt.build: line 9:
: not foundt.build: line 13:
: not foundt.build: line 18:
: not foundt.build: line 26:
: not foundt.build: line 30:
: not foundt.build: line 32:
: not foundt.build: line 34:
..cut some text due to too long message
.tcz': No such file or directory
: not foundt.build: line 97:
: not foundt.build: line 99:
.tcz': No such file or directory
: not foundt.build: line 101:
.tcz /mnt/mmcblk0p2/tce/optional/pypilot
: No such file or directoryonal/pypilot
: not foundt.build: line 105:
.tcz pypilot
-rw-r--r-- 1 tc staff 4096 Nov 4 11:06 pypilot?.tcz?
: not foundt.build: line 108:
': Path does not exist/mmcblk0p2/tce/optional
': Path does not exist/mmcblk0p2/tce/optional
': Path does not exist/mmcblk0p2/tce/optional
: not foundt.build: line 110:
: not foundt.build: line 112:
: not foundt.build: line 114:
-sh: cd: line 115: can't cd to /home/tc/pypilot_update2
tc@pypilot:~/pypilot_update2$
2022-08-29, 12:32 AM (This post was last modified: 2022-08-29, 12:37 AM by ironman.)
I reported a few issues with 0.35. In the meantime, you might have a look at this. It's not entirely a positive flow yet, but it might give you some hints as how to move on. Your build issues I cannot replicate; I suggest downloading a clean image and take it from there, somewhere along these lines.
#lets upgrade pypilot. Openplotter on raspberry 3b+ is connected to internet through ethernet cable; by default it forwards IP traffic. Only thing to do is add gateway to tinypilot client:
# Mind the wildcard * here: this had to be added.
pi@openplotter:~/x $ scp -r pypilot/* tc@10.10.10.3:~/pypilot-update/
Password: pypilot
# Back to the tinypilot:
tc@pypilot:~/pypilot-update$ . pypilot.build
[Much output, ending in this:]
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on pypilot.tcz, block size 131072.
[============================================================================================================================================================================================================================/] 201/201 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 821.66 Kbytes (0.80 Mbytes)
30.52% of uncompressed filesystem size (2692.28 Kbytes)
Inode table size 2189 bytes (2.14 Kbytes)
29.12% of uncompressed inode table size (7518 bytes)
Directory table size 2353 bytes (2.30 Kbytes)
39.47% of uncompressed directory table size (5961 bytes)
Number of duplicate files found 11
Number of inodes 234
Number of files 204
Number of fragments 15
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 30
Number of ids (unique uids + gids) 2
Number of uids 1
tc (1001)
Number of gids 1
staff (50)
old: /mnt/mmcblk0p2/tce/optional/pypilot.tcz
-rw-rw-r-- 1 tc staff 704512 Nov 4 2021 /mnt/mmcblk0p2/tce/optional/pypilot.tcz
new: pypilot.tcz
-rw-r--r-- 1 tc staff 843776 Nov 4 11:38 pypilot.tcz
tc@pypilot:~/pypilot-update$ sudo reboot
Using username "tc".
tc@10.10.10.3's password:
tinypilot is a Sailboat Autopilot Distribution for raspberry pi
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net
tc@pypilot:~$ pypilot
autopilot start 233.073544
falling back to python nonblocking socket, will consume more cpu cannot import name 'linebuffer'
pypilot failed to import required modules. Did you forget to run sudo python3 setup.py install?
# Hmm. The next lines took a few hours to figure out. I copy some files from 0.32 to 0.35:
cd
cp pypilot/pypilot/linebuffer/linebuffer.py pypilot-update/pypilot/linebuffer/
cp pypilot/pypilot/linebuffer/linebuffer_wrap.cpp pypilot-update/pypilot/linebuffer/
cp pypilot/pypilot/arduino_servo/arduino_servo.py pypilot-update/pypilot/arduino_servo/
cp pypilot/pypilot/arduino_servo/arduino_servo_wrap.cpp pypilot-update/pypilot/arduino_servo/
cd pypilot-update
. pypilot.build
sudo reboot
: not foundt.build: line 9:
: not foundt.build: line 13:
: not foundt.build: line 18:
: not foundt.build: line 26:
: not foundt.build: line 30:
: not foundt.build: line 32:
: not foundt.build: line 34:
..cut some text due to too long message
You are using stelian's image based on tinycore 13?
I dont know why but somehow ". pypilot.build" is not working on that image, it is very strange, but many things are still broken on that image I have not had the chance to work on.
Can you do instead:
chmod +x pypilot.build
./pypilot.build