logo
Welcome, Guest. Please Login or Register.
25. April 2024, 15:08:17


Home Help Search Login RegisterWIKIUHSDR Download

Amateurfunk Sulingen
Diskussions- und Newsboard des DARC-Ortsverbandes I40  |  allgemeine Kategorie  |  UHSDR Firmware (Moderators: DF8OE, DL1PQ)  |  Topic: Linux als Entwicklungsplattform für UHSDR <- zurück vorwärts ->
Pages: 1 ... 3 4 [5] 6 7 ... 9 Go Down Print
   Author  Topic: Linux als Entwicklungsplattform für UHSDR  (Read 20733 times)
DL8EBD
positron
Urgestein
*****

Offline

Posts: 1926





View Profile
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #60 on: 17. July 2019, 03:23:52 »

@Adolf
wie kommt das mit der CD zustande?
Hast Du wie besprochen eine VM laufen?
Die Arch ISO liegt einfach auf Deinem PC in einem beliebigen Verzeichnis welches Du in der VM angeben musst.
Das englische Tutorial aus meinem Link zeigt wie es geht.

....keine CD erforderlich!
Logged

bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da.
vy73
Thomas
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #61 on: 17. July 2019, 06:07:08 »

Mit GitPod "erspart" man sich nicht Linux - Gitpod ist Linux! Man spart sich nur "lernen" und "verstehen" - Hauptsache das Ergebnis stimmt. Wenn man nur mal ab und zu ein Binary bauen will ist das sicher die richtige Lösung - aber man ist abhängig.

Microsofts (und GitHub gehört ja jetzt Microsoft) Geschäftsmodell ist, alle computertechnischen Dinge so sehr zu automatisieren dass man ohne irgendwas davon zu verstehen Mainstreamaufgaben mit dem PC erledigen kann. Auch Apple beherrscht das sehr gut.

Ich bin mir nur noch nicht sicher ob wir ein Henne/Ei-Problem haben und falls ja was die Henne und was das Ei ist:

- erst sanken Grundwissen und Intelligenz ständig ab und daraufhin passte Microsoft seine Software an
oder
- dadurch dass man bei Nutzung stark automatisierter Software nicht mehr nachdenken musste verkümmerten Grundwissen und Intelligenz

Mit viel Humor auch im Film "Idiocracy" nachzuvollziehen...

Der nächste Schritt wird dann von Google vollzogen: wenn selbst das Bewegen der Maus und das Aussuchen des "richtigen" Menüpunktes zu schwierig wird muss eine Lösung her bei der man es mit "wischen auf einem Touchscreen" erledigen kann 

Aktuell ist es auf jeden Fall so das jeder selbst entscheiden kann welchen Weg er gehen will. Dass alles was wir tun Folgen für uns hat (und auch das was wir nicht tun hat Folgen für uns) ist ja logisch!

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
DL8EBD
positron
Urgestein
*****

Offline

Posts: 1926





View Profile
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #62 on: 17. July 2019, 06:26:57 »

Quote:
Mit GitPod "erspart" man sich nicht Linux - Gitpod ist Linux!

ich wollte damit sagen: das Installieren von Linux auf den PC kann man sich sparen wenn man nur mal schauen möchte wie das Bauen unter Linux abläuft.

Trotz Automatismus:
Lernen muss man hier trotzdem - zumindest den Umgang mit Linux sollte man in Grundzügen verstehen.
Und man muss natürlich verstehen wie das UHSDR aufgebaut ist und wie man in C programmiert.
Kenntnisse über das Github sind auch vorteilhaft.

Davon ab Andreas, wir sind ja hier in einer Art Selbstbaugruppe.
Die aller wenigsten haben mit einem fix und fertigen mcHF/SParrow/Eagle angefangen.
Also kann man schon ein gewisses Maß an Lernfähigkeit und verstehen wollen unterstellen.
Bei dem einen mehr, bei dem anderen weniger....

Für viele sind das ja auch einige Baustellen die parallel abgearbeitet werden müssen. Mich eingeschlossen.
Man ist dann froh wenn ein gewisser Teil durch eine "Automatik" weniger Arbeit bereitet.
So hat man den Kopf frei für andere spannende Dinge.

Als ich hier damals dem Forum (zum ersten mal) beitrat, hatte ich null Ahnung von Linux, UHSDR, ARM CPUs usw....
Vieles musste erst gelernt werden....und das fast ausschließlich Abends nach Feierabend wenn die Aufnahmefähigkeit nahe null ist.
Man hat da nicht immer Lust zu....
« Last Edit: 18. July 2019, 06:37:30 by DL8EBD » Logged

bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da.
vy73
Thomas
SP9BSL
positron
alter Hase
****

Offline

Posts: 443





View Profile WWW
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #63 on: 17. July 2019, 07:53:56 »

Quote from: DL8EBD on 17. July 2019, 06:26:57
Vieles musste erst gelernt werden....und das fast ausschließlich Abends nach Feierabend wenn die Aufnahmefähigkeit nahe null ist.

And then your curiosity/ambition must win with your tiredness/home duties/family etc...  Everyone of us work this way - it's hobby. Anyway good luck with your way of learn, any hands on UHSDR board are welcome
Logged

73 Slawek
DB4PLE
positron
Urgestein
*****

Offline

Posts: 1278





View Profile
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #64 on: 17. July 2019, 08:55:36 »

Hi,

In a nutshell my credo:

Programming itself, especially in a collaborative project, is difficult enough, I don't want to be bothered with spending days to setup the development environment for a project. Glad if someone else does most of this work for me.

Of course at least one person needs to be "in charge" for this so that others can benefit from their work.

73
Danilo


Logged
DL8EBD
positron
Urgestein
*****

Offline

Posts: 1926





View Profile
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #65 on: 17. July 2019, 09:03:24 »

da stimme ich Dir zu Danilo.

wenn ich darüber nachdenke wie lange ich alleine für dieses Kommando hätte suchen müssen:

"make BUILDFOR="H7" TRX_ID="i40h7" TRX_NAME="OVI40H7" CONFIGFLAGS="-DUI_BRD_OVI40 -DRF_BRD_MCHF -DRF_BRD_OVI40" all"

dann hätte ich wahrscheinlich irgendwann aufgegeben.
Bei mir ist das so dass ich die Geduld verliere wenn etwas zu lange dauert. Dann widme ich mich lieber anderen Dingen bis ich dann nach Monaten wieder am alten Problem weiter mache.
Logged

bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da.
vy73
Thomas
SP9BSL
positron
alter Hase
****

Offline

Posts: 443





View Profile WWW
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #66 on: 17. July 2019, 09:25:19 »

hmm.. controversial question: if I use Windows machine and setup of whole IDE on fresh machine took me about 30min, what is the advantage to me to bother with linux? (I would admit that we use Travis to check if it builds under linux anyway)
Logged

73 Slawek
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #67 on: 17. July 2019, 11:28:22 »

In short: Everyone can feel free to choose "his own way".

My history with Windows is a very bad one and I never would come back to it. But that is only MY opinion.

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
SP9BSL
positron
alter Hase
****

Offline

Posts: 443





View Profile WWW
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #68 on: 17. July 2019, 18:12:27 »

Hi Andreas,
the intention of my question was not to degrade the Linux itself nor promote Windows, I meant rather:  is there any advantage for me to switch to Linux (it doesn't matter VM or pure system install) for UHSDR development? I have enough machines to go this way, but I'm just curious if IDE/build/debug works better (faster) under Linux?
« Last Edit: 17. July 2019, 18:13:24 by SP9BSL » Logged

73 Slawek
DB4PLE
positron
Urgestein
*****

Offline

Posts: 1278





View Profile
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #69 on: 17. July 2019, 18:40:08 »

Hi,

although I did not test this on Linux I would dare to say, that Eclipse is Eclipse is Eclipse. So an Eclipse build won't go much faster on Linux. CDT tends to waste some time when compiling. Don't know why.
EDIT START:
I just tested the external builder in Eclipse 2018-12 with the most recent GNU MCU Eclipse plugins installed, and the build runs as fast as the makefile build on the same machine. Especially the start of compilation was instantaneous, which was previously a big issue with the external builder. The internal builder is a lot slower since it cannot run multiple compiles in parallel (the external build has no problem with this).

Eclipse External Builder: 1m:50s (DSPLib build not included, parallel build)
Eclipse Internal Builder:  3m:07s (DSPLib build not included, single processor)

Single .c file changed build: 27s (internal and external same time).

This is a i5 4300U processor
Conclusion: No relevant difference anymore to a command line build in a typical scenario.
:EDIT END

It is a little easier to get the makefile build going on a typical Linux Distribution. And make does used to  build a lot faster than Eclipse. But debugging, code navigation and refactoring is so much more comfortable with Eclipse compared to the command line tools (no matter if on Linux or Windows)...

I think, we have a pretty simple setup on Windows. I just recently set a new PC up to compile UHSDR and it was not a big deal.


73
Danilo

« Last Edit: 17. July 2019, 19:19:18 by DB4PLE » Logged
SP9BSL
positron
alter Hase
****

Offline

Posts: 443





View Profile WWW
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #70 on: 17. July 2019, 20:07:28 »

Hi Danilo,
thank you for this explanation.
We discussed some time ago the ability to enable the parallel build under eclipse, unfortunately nothing changed since then. I use Atolic in work and there parallel build always works, under SW4STM32 sometimes have issues thus I had to disable it (anyway I use it only for old projects because Atolic is now free). I do not know what Atolic team changed in Eclipse but their customized version works perfect out of the box.
Logged

73 Slawek
DB4PLE
positron
Urgestein
*****

Offline

Posts: 1278





View Profile
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #71 on: 17. July 2019, 20:21:18 »

Hi Slawek,

as I said, in the newest GNU MCU Eclipse (which is basically Eclipse 2018-12) the Eclipse "CDT external builder" works perfectly and we can make it the default. Why the Eclipse internal builder is too stupid to detect that it should first wait until all files are compiled and only then starts the linker is beyond me. In any case, it seems that finally the external builder was fixed and is now really fast. Probably the Atollic team fixed  that long ago but did not publish the changes (which they don't have to under the Eclipse Public License).

For those having no idea what we are talking about:
Eclipse has different ways to build C programs: It can internal calculate the necessary compile steps and calls the compiler directly. This is called the "Internal Builder". The "External Builder" is call external, because Eclipse generates first the necessary Makefiles from the project information and hands over the actual compile to the external "make", which then runs the previously generated makefiles.

For those wondering: Eclipse can also use hand-written Makefiles but then a lot of the convenience of Eclipse goes away. This is another build mode again in which neither the "Internal Builder"or "External Builder" is used...

73
Danilo


Logged
DL8EBD
positron
Urgestein
*****

Offline

Posts: 1926





View Profile
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #72 on: 18. July 2019, 03:33:08 »

Danilo, der Sinn dahinter, es in Linux mit "make all" zu machen war doch primär das Problem, dass uns Eclipse auf Windows ein zu großes File für die kleine F4 CPU (mcHF) produziert....

Das war die eigentliche Intension dieses Threads es mal mit Linux zu probieren.
Bei den großen CPUs ist das auf lange Sicht kein Thema....
« Last Edit: 18. July 2019, 06:41:01 by DL8EBD » Logged

bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da.
vy73
Thomas
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #73 on: 31. July 2019, 05:20:50 »

Außerdem habe ich ein kleines Bash-Script geschrieben das mir mit einer kleinen Oberfläche im Terminal

  • wahlweise mehrere Bootloader / Firmwareversionen automatisch nacheinander baut
  • die Versionen hochzählt
  • Änderungen automatisch auf mein GitHub überträgt
  • die .bin und .dfu - Dateien automatisch auf meinen USB-Stick überträgt
  • die neuen Dateien / Ordner automatisch auf meinen Server überträgt sowie die Downloadseite bezüglich der Versionen updatet

Bedeutet: ein Befehl und vom Quelltext bis zu allen Binaries und nötigen Aktionen bezüglich Veröffentlichung läuft alles automatisch - auf der Kommandozeile gesteuert...

Wenn ihr Interesse an dem Script habt bereinige ich es um die Dinge die nicht öffentlich sind (GitHub hochladen, hochladen auf meinen amateurfunk-sulingen.de Server) und veröffentliche es hier.

Damit kann man
1) seine eigenen Builds automatisieren
2) ein wenig Bash lernen

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
DL8EBD
positron
Urgestein
*****

Offline

Posts: 1926





View Profile
Re:Linux als Entwicklungsplattform für UHSDR
« Reply #74 on: 31. July 2019, 05:28:05 »

klingt interessant Andreas!

Leider ist momentan mein Linux Projekt etwas ins Stocken geraten weil ich meine Freizeit für ein anderes Problem verwenden muss - aber danach mache ich auf jeden Fall weiter und hätte auch Interesse an dem/Deinen Script 
Logged

bitte keine technische Fragen oder Diskussionen via PN, dafür ist das Forum da.
vy73
Thomas
Pages: 1 ... 3 4 [5] 6 7 ... 9 Go Up Print 
Diskussions- und Newsboard des DARC-Ortsverbandes I40  |  allgemeine Kategorie  |  UHSDR Firmware (Moderators: DF8OE, DL1PQ)  |  Topic: Linux als Entwicklungsplattform für UHSDR <- zurück vorwärts ->
Jump to: 


Login with username, password and session length

 Es wird die Verwendung von Browsern die auf der "Blink"-Engine basieren und mindestens
1024x768 Pixel Bildschirmauflösung für die beste Darstellung empfohlen
 
Amateurfunk Die Beiträge sind, sofern nicht anders vermerkt, unter der folgenden Lizenz veröffentlicht:
GNU Free Documentation License 1.3 GNU Free Documentation License 1.3
verbindet!
Powered by MySQL Powered by PHP Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
- modified by Andreas Richter (DF8OE)
Impressum & Disclaimer
Valid XHTML 1.0! Valid CSS!