VM dedicated to compiling Deviation

More
28 Dec 2012 04:41 #4316 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation

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
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
28 Dec 2012 19:05 #4333 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
I'm fairly sure the VM will stay as it is, so in the next few days I will make it public. Still waiting for test results from you guys.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

  • rbe2012
  • rbe2012's Avatar
  • Offline
  • So much to do, so little time...
More
28 Dec 2012 19:54 #4337 by rbe2012
Replied by rbe2012 on topic VM dedicated to compiling Deviation
I haven't found any time for further testing until now. I am sure that the vm works as intended and makes it really simple for anybody to compile his own deviation.
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
  • rbe2012's Avatar
  • Offline
  • So much to do, so little time...
More
28 Dec 2012 20:41 - 28 Dec 2012 20:53 #4342 by rbe2012
Replied by rbe2012 on topic VM dedicated to compiling Deviation
Two short ideas for the helper script:

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);
...
"$param = lc($param);" might be a good idea at different positions...

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.
Last edit: 28 Dec 2012 20:53 by rbe2012. Reason: opened issues on bitbucket

Please Log in or Create an account to join the conversation.

More
28 Dec 2012 21:55 #4346 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
Great ideas thanks.

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
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
29 Dec 2012 11:19 #4358 by Joshua
Replied by Joshua on topic VM dedicated to compiling Deviation
32bit-vm works fine for me now. :)
Tested the functionality on xp and windows seven.
Great work!

ciao, Bernd

Please Log in or Create an account to join the conversation.

More
31 Dec 2012 06:54 #4404 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
Updated first post with download link to my VM.

Somebody who can please make this sticky if considered of interest please.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
18 Jan 2013 12:16 - 18 Jan 2013 12:25 #5145 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
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'

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire
Last edit: 18 Jan 2013 12:25 by sbstnp.

Please Log in or Create an account to join the conversation.

More
18 Jan 2013 19:33 - 18 Jan 2013 19:33 #5158 by Xermalk
Replied by Xermalk on topic VM dedicated to compiling Deviation

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?
Attachments:
Last edit: 18 Jan 2013 19:33 by Xermalk.

Please Log in or Create an account to join the conversation.

More
18 Jan 2013 20:39 #5162 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
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.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
20 Jan 2013 17:22 #5272 by Xermalk
Replied by Xermalk on topic VM dedicated to compiling Deviation

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.

More
20 Jan 2013 17:52 - 20 Jan 2013 18:10 #5274 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
Will look into it again.

EDIT:

Fixed.

Warning, you will get a ZIP file for Devo 7e, if someone wants automatic unzipping say so please.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire
Last edit: 20 Jan 2013 18:10 by sbstnp.

Please Log in or Create an account to join the conversation.

More
25 Mar 2013 14:37 #8070 by whowe
Replied by whowe on topic VM dedicated to compiling Deviation
I built the latest code. But it can't boot in my Devo 7E.
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.

More
31 Mar 2013 16:32 #8341 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
Updated:

Devo 12 support.
Devo 7e filesystem support.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
04 Apr 2013 17:22 #8522 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
Attached PDF documentation to the first post.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
06 Apr 2013 12:28 #8626 by Wene001
Replied by Wene001 on topic VM dedicated to compiling Deviation
Im tryin to learn how to compile my own deviation builds.
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.

More
06 Apr 2013 13:06 #8629 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
It's fixed, please run:
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
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
06 Apr 2013 13:26 #8632 by Wene001
Replied by Wene001 on topic VM dedicated to compiling Deviation
Thx
Next step is learning to use vi :-)

Please Log in or Create an account to join the conversation.

More
06 Apr 2013 14:27 - 06 Apr 2013 14:28 #8638 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation

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
Spektrum Dx9
FrSky Taranis + TBS Crossfire
Last edit: 06 Apr 2013 14:28 by sbstnp.

Please Log in or Create an account to join the conversation.

More
06 Apr 2013 14:35 - 06 Apr 2013 14:35 #8642 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
Or alternatively use sed:
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
Spektrum Dx9
FrSky Taranis + TBS Crossfire
Last edit: 06 Apr 2013 14:35 by sbstnp.

Please Log in or Create an account to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum