- Posts: 649
VM dedicated to compiling Deviation
- sbstnp
- Topic Author
- Offline
rbe2012 wrote: Hello sbstnp,
the 32bit-vm works fine. I just tested the functionality and your script does exactly what it should. Great work!
I do some more testing tomorrow. Maybe I have one or two ideas for improvement...
Thanks, suggestions are welcome!
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
I have compiled all versions of deviation multiple times and never had any errors, deleted the local repo and so on - everything went fine.
The ideas I have are:
- select a special commit (give it as parameter) to build older versions
- make repo-update and building seperately callable (means: one command for update, another for building) to have the possibility to make changes in the sources before compiling
- the deviation version (now 2.1.0) somewhere in the names of the resulting files (e.g. devo8-2.1.0-07303bd23902.dfu)
but they base on my personal interests and way of working. I don't know if these features would be useful for others too (and how much effort it would take to realize this - but I think I could help).
Again: great job. I struggled for hours to get my own compiling machine running. The vm makes this so much easier.
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
do some checks for correct parameters:
...
} elsif($cmd eq "build") {
my $target = shift || 'devo10';
$target = lc($target);
if($target ne "devo8" and $target ne "devo6" and $target ne "devo10") {
print(EX,"unknown target '$target'. Only devo6, devo8 or devo10 supported.\n");
exit 2;
}
build($target);
...
No need for sudo in self-update if you realize it with a link (ln -s /home/dev/dhs/deviation /usr/local/bin/deviation). The link can be included in the vm's filesystem and there will be no need to copy anything to /usr/local/bin.
edit: Sorry, forgot to use the bitbucket issue system. Done now.
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Links to the script was not possible since the script itself if bundled with the VM, but the repo isn't.
I'll implement some for tomorrow, stay tuned.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- Joshua
- Offline
Tested the functionality on xp and windows seven.
Great work!
ciao, Bernd
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Somebody who can please make this sticky if considered of interest please.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Implemented 'cleanup' command. This will run 'make clean' in the src directory for specified build target.
If you get errors compiling new build they can be from lingering .obj files, so run for example:
deviation cleanup devo8
Replace devo8 with your target.
Please run 'deviation self-update'
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- Xermalk
- Offline
- Posts: 181
sbstnp wrote: Updated to support Devo 7E build.
Implemented 'cleanup' command. This will run 'make clean' in the src directory for specified build target.
If you get errors compiling new build they can be from lingering .obj files, so run for example:
deviation cleanup devo8
Replace devo8 with your target.
Please run 'deviation self-update'
Tried building 7e but got this error,
Building for 8&10 works fine.
Btw, is there a command for building the simulator/pc gui for the different firmwares?
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
deviation self-update
deviation build devo7e
Simulator is working on linux, I'l working on a cross compile, will post info when I got a working setup.
You can run the Linux version on windows with SSH forwarding and Xming as X11 server. pretty painless but requires installing some packages on the Windows host system.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- Xermalk
- Offline
- Posts: 181
sbstnp wrote: Fixed, please run:
deviation self-update
deviation build devo7e
Simulator is working on linux, I'l working on a cross compile, will post info when I got a working setup.
You can run the Linux version on windows with SSH forwarding and Xming as X11 server. pretty painless but requires installing some packages on the Windows host system.
Still broken, you get a filesystem folder with the devo 10 files and no protocol folder.
www.deviationtx.com/forum/7-development/...-work?start=100#5270
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
EDIT:
Fixed.
Warning, you will get a ZIP file for Devo 7e, if someone wants automatic unzipping say so please.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- whowe
- Offline
- Posts: 1
It just beeps and the white screen flashes.
Does anyone ever see this problem too?
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Devo 12 support.
Devo 7e filesystem support.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- Wene001
- Offline
- Posts: 277
i`ve installed the ova from the first post and get:
/bin/mv: cannot stat "deviation-fs-devo8-4de892806596.zip": No such file or directory!! Moving FS archive failed.
in the end of the compiling process
There is only the dfu File in my C:\Deviation folder
Next is how can i change the repository to compile from rbe`s repository to get widescreen support for my devo12s
Wene
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
deviation self-update
About changing repository, please edit /usr/local/bin/deviation and change
URL => "https://bitbucket.org/PhracturedBlue/deviation",
found on line 20 with the rbe's URL. I have yet to add a formal way of changing repository.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- Wene001
- Offline
- Posts: 277
Next step is learning to use vi
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Wene001 wrote: Thx
Next step is learning to use vi
VI is easy:
vim /usr/local/bin/deviation
then
:%s/https:\/\/bitbucket.org\/PhracturedBlue\/deviation/some other url/ <enter>
:wq<enter>
when entering the other URL, escape every / like this \/
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
sed -i "s|https://bitbucket.org/PhracturedBlue/deviation|other url|" /usr/local/bin/deviation
Replace 'other url' on the command line with rbe's repo.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.