Kostas Antonakoglou

Blogging about personal, technological and musical adventures…

Posts Tagged ‘fedora

MSP430 (ez430) on Fedora

with 4 comments

For learning purposes I currently have on my hands a EZ430-F2013 Development Kit (We all should also use Arduino :) ). This kit comes with a CD containing proprietary software (an IDE) in order to program and debug the MSP430 microcontroller. So, I took the chance to run it on Fedora using Linux tools and a few resources on the internet. In this post I will write down how you can program and debug your ez430 using Fedora 13 and your terminal.

First, I plugged in the ez430 and opened a terminal (yes we will work only this way for now). Write down lsusb and hit enter. Then you should get some lines containing this one:

Bus 005 Device 003: ID 0451:f430 Texas Instruments, Inc. MSP-FET430UIF JTAG Tool

That means that by default your system recognises the device and you can actually communicate with it.

Next, we need our tools! Go to System ->Administration-> Add/Remove Software (or use yum install etc.). The software we need is (actually not sure if everything is needed):

  • latest version of gcc, texinfo, patch, ncurses5-dev, zlib, zlib-dev, libX11-dev, libusb-dev (not only libusb1-dev), libreadline6-dev, msp430-binutils, msp430-gcc, msp430-libc

and also : mspdebug (the program that actually does the work).To install it manually (in case there is an older version on the repository) download the .tar file create a  folder named “Programs” (in case you don’t have one) on your Home Folder.Then, extract the mspdebug folder there!

With your terminal (you can auto-complete the words in the directory using Tab on your keyboard) :

$ cd /home/(your user name on Fedora)/Programs/mspdebug-0.11

(now you are in the mspdebug folder with your terminal, the version 0.11 is the current one I use, yours can differ)

$ make (this will compile the program)

$ su -c “make install” (and give your root password to install it)

(the $ symbol is just to show that you are using different commands in the terminal, don’t copy it)

now you have installed mspdebug! Great!

If you are ready to use the MSP430 you should have a program already written. In case you don’t, get this example (modified by me to get it to compile) that flashes the internal LED of the device:

/* Blink LED example */
#include <msp430x20x3.h>

/** Delay function. **/
delay(unsigned int d) {
int i;
for (i = 0; i<d; i++) {
nop();
}
}

int main(void) {
WDTCTL = WDTPW | WDTHOLD;
P1DIR = 0xFF;
P1OUT = 0×01;   // THE x IS NOT Copy-Pasted CORRECTLY :)

for (;;) {
P1OUT = ~P1OUT;
delay(0x4fff);
}
}

Create a file named blink.c in a folder of your choice, copy this on the file and then cd on the folder. Now to compile it we need 3 lines (I also changed this to work):

$ msp430-gcc -Os -mmcu=msp430x2013 -o led.elf blink.c

$ msp430-objdump -DS led.elf > led.lst

$ msp430-objcopy -O ihex led.elf  led.hex

In order not to do this every single time, you need to run the program, you can create a Makefile based on the one in this site (it’s inside this zip file).

Next, to run mspdebug in order to flash the program into the MSP430, type :

$ mspdebug -d /dev/ttyUSB0 uif

(“/dev/ttyUSB0″ is of course the ez430 if you don’t have any other device and “uif” the parameter to run it with mspdebug, check the manual for more)

To flash the program you need to type : prog led.hex . Notice that it is a command to control mspdebug and not the terminal). If you push Control+D mspdebug will close, the ez430 will reset, start the program and also blinking the LED! :)

My resources were 3 posts in this site : http://bit.ly/deonNa I should also mention that I have installed all the Fedora Electronic Lab packages with: $ su -c “yum groupinstall “electronic-lab”

Written by constanton

Οκτωβρίου 12, 2010 στις 1:27 μμ

Αναρτήθηκε στις fedora, hardware, open source

Tagged with , , , ,

Software Freedome Day Athens (review)

αφήστε ένα σχόλιο »

Yesterday, as you may know was Software Freedome Day. I will start with this link [1]

Yes the only people that were present were members of the greek Fedora team [2](we could be more but some lucky ones are at FUDCon @ Zurich :D ) together with Richard Kweskin of Hellug. We made a simple booth outside of NTUA at Stournari str., with leaflets and stickers and started to inform people about free and open source software. We started at around 11.30 and finished at 2.30. In the mean time Richard gave as a copy of a licence to have presence at the corner of Stadiou str. and Aiolou str., where we also went for the last 30 minutes.

Some photos here [3]

Next event, Athens Digital Week [4]. See you there!

==In Greek/Στα ελληνικά==

Εχθές ήταν  η παγκόσμια ημέρα ελεύθερου λογισμικού. Έτσι, το Fedora δεν μπορούσε να μην συμμετάσχει ενεργά σε αυτό το γεγονός. Και όταν λέμε ενεργά, το λιγότερο που μπορεί να κάνει κανείς είναι να δώσει το παρόν κοντά στον κόσμο για ενημέρωση. Έτσι και έγινε στην οδό Στουρνάρη έξω από το Πολυτεχνείο (αρχίσαμε κατά τις 11.30). Μάλιστα είχε κανονιστεί και ανακοινωθεί στο site του SFD [1](Software Freedom Day). Παρόντες είμασταν μέλη της ελληνικής ομάδας του Fedora [2] και ο Richard Kweskin του Hellug που μας έφερε φυλάδια αλλά και μια άδεια του Δήμου Αθηναίων  για να μιλήσουμε στην γωνία Σταδίου και Αιόλου στο κέντρο όπου και πήγαμε στις 2 το μεσημέρι για τα τελευταία 30 λεπτά (έτσι για δοκιμή και για να μην πάει χαμένη η άδεια).

Μερικές φωτογραφίες εδώ [3]

Το μόνο παράπονο, ότι δεν είμασταν αρκετοί για να ενημερώσουμε τον κόσμο. Ελπίζω την επόμενη φορά του χρόνου να είμαστε πιο ενεργοί όλοι σε εκδηλώσεις όπως το SFD και όχι μόνο στα μεγάλα events όπως το Athens Digital Week[4] που έρχεταιιιιι :D .

[1]  http://wiki.softwarefreedomday.org/2010/Europe/Greece/Athens

[2]  https://fedoraproject.org/wiki/FedoraEvents/SoftwareFreedomDay2010Athens

[3] http://picasaweb.google.com/anton.cost/SoftwareFreedomDay2010Athens#

[4] http://athensdigitalweek.org/

Written by constanton

Σεπτεμβρίου 19, 2010 στις 8:03 μμ

Αναρτήθηκε στις fedora, open source

Tagged with , ,

I really really gnome-do

with 7 comments

Short story : I installed gnome-do on Fedora. Do your self a favour and install it too.

How?

For Fedora users go to Add/Remove Applications and type gnome-do. Select the application and press “Apply” to install it :)

or for keyboard-lovers (the 1st way is more simple) just type (or paste) in your terminal:    su -c ” yum install -y gnome-do” , give your root password and you are good to go.

Actually, I don’t really like -y inside the command ( “-y” means yes to any message that occurs after you tell yum you want to install a package). I like to see what I install  (dependencies etc). But it’s faster this way for gnome-do. Gnome-do is similar to Mozilla’s Ubiquity for Firefox.

By default it is activated automatically at start-up and afterwards you need to press a keyboard shortcut (<Super>+space). Gnome-do is of course customizable. You can also add plug-ins. (For KDE fans, the default krunner -thanks Andrew-)

In Greek:

Με λίγα λόγια : Εγκατέστησα το gnome-do στο Fedora. Βάλτε το!  Πως? (1o link πάνω) [1]

[1] http://do.davebsd.com/wiki/Installing_Do Μεσω του γραφικού περιβάλλοντος πηγαίνουμε System->Administration->Add/Remove Software και γράφουμε στου κουτάκι της εύρεσης “gnome-do” επιλέγουμε το πακέτο και έπειτα πατάμε κατω δεξιά το Apply.

Αλλιώς για τους λάτρεις του terminal su -c ” yum install -y gnome-do”  :)

Είναι προεπιλεγμένο να ξεκινάει με την εκίνηση του Fedora και ενεργοποιήται (σε περίπτωση που το χρησιμοποιήσετε και χαθεί) με το <Super>+Space (το Super είναι συνήθως το εικονιδιάκι των Windows -_- ) .Έχει και plugins (προεκτάσεις).Για τους λάτρεις του ΚDE (μπλιαχ :P ) υπάρχει προεγκατεστημένο το krunner.

Written by constanton

Σεπτεμβρίου 13, 2010 στις 9:59 μμ

Αναρτήθηκε στις fedora, Gnome, open source

Tagged with , ,

Drawing arrows with GIMP

αφήστε ένα σχόλιο »

Today I desperately needed to draw arrows in a picture to point parts of an Arduino stack with an Ethernet and Xbee shield.

So, I took the picture of the stack, increased the contrast and made other adjustments to perfect the pictures, and I was ready to place the arrows. Arrows? How? OK, I googled and found this http://registry.gimp.org/node/20269

You just have to download the .scm file. If you are a Linux user (obviously I use Fedora), go to your Home Folder and press Control+H to unhide the hidden folders. Next, go to the “.gimp-2.6″ (1st: Yes there is a full stop, 2nd: 2.6 is the name of the folder right now according to GIMP’s current version). Inside this folder find the folder “scripts” and place there the .scm file. Now, open GIMP (or re-open if already running), go to Tools and you are good to go :)

(Tip: To draw an arrow you must use the path tool at the toolbox. Just click one time to point the start of the arrow and a second time to point the end. You will just make a straight line that will be used as a path)

In Greek : Στον σύνδεσμο που υπάρχει παραπάνω μπορείτε να κατεβάσετε το .scm αρχείο που θα σας επιτρέψει να σχεδιάζετε βέλη με το GIMP αυτόματα. Για να λειτουργήσει το αυτό το script πηγαίνουμε στο Home Folder, πατάμε Control+H για να αποκαλυφθούν οι κρυφοί φάκελοι και στη συνέχεια πηγαίνουμε στον φάκελο “.gimp-2.6″ (1ον ναι υπάρχει τελεία, 2ον το όνομα προέρχεται από την τωρινή έκδοση”). Μέσα σε αυτόν τον φάκελο υπάρχει ο φάκελος “scripts” όπου και τοποθετούμε το .scm αρχείο. Ανοίγωντας το GIMP τώρα μπορούμε να δούμε στο Tools το Arrow :)

(Συμβουλή: Για να φτιάξετε το arrow πρέπει να σχηματίσεται ένα μονοπάτι με το path tool. Αν απλά κάνετε ένα κλικ για την αρχή και άλλο ένα για το τέλος του βέλους εκεί που επιθυμείτε είστε έτοιμοι να φτιάξετε το βέλος με το Arrow που βρίσκεται στα Tools)

Written by constanton

Σεπτεμβρίου 2, 2010 στις 12:26 μμ

Αναρτήθηκε στις fedora, open source

Tagged with , ,

GFOSS Conference 2010

αφήστε ένα σχόλιο »

Yesterday ended the GFOSS Conference 2010 that took place in Athens at NTUA (National Technical University of Athens). It was an event that started on Friday, but yesterday was special because of the workshop I was organising this week together with Anastasis (anast)! The subject was (in translation) “Fedora Project : Remix and Spin it! The Fedora operating system you own (and not only that)”. Furthermore, we also had booth presence on both days with the usual swag :)

The workshop lasted 1 hour ( the schedule said 2 hours) but I think something more than that would be boring. Some setbacks occurred previously that day and affected the workshop a little bit. First, I tried to create an iso image using a kicksart file I made that unfortunately needed a bit of time to be created due to yesterday’s bad signal of the wifi where the booth of Fedora was (damn near fields), so I didn’t make it in time for the “Takis OS” Live CD I wanted to create. Second, I didn’t expect my laptop to fail me when I tried to plug in the dvi cable. I count it as a setback but, ok I overcame it thanks to the laptop of Anastasis :)

I think it was around 15 people that joined the workshop (thanks to everybody). I tried to pass the knowledge of what is a remix, a spin, their differences (and similarities), guidelines, processes, kickstart files, livecd-tools, cobbler…but not to the extent of getting down with too much coding, configurations and setting many arameters. In a few words I tried to show the way for a simple creation of a Remix from the kickstart file until the creation of a LiveCD and told a few words about the magic things cobbler can do. Anastasis talked about Geo Spin and Security Lab spin. I couldn’t miss the chance to talk about Fedora Electronic Lab too. Also, I am happy that Nikos (comzeradd) and Pantelis (pant) joined us as well!

click for more photos

Written by constanton

Μαΐου 16, 2010 στις 1:17 μμ

Αναρτήθηκε στις fedora, open source

Tagged with , , ,

Openfest 2010 @ ΤΕΙ Πειραιά (the recap)

Με ένα σχόλιο

Μετά από πολύ καιρό λοιπόν, επιστρέφω στον κειμενογράφο του wordpress. Αυτό το post θα το αφιερώσω όμως αποκλειστικά στο event της προηγούμενης εβδομάδας, στο Openfest 2010 που διεξήχθει στο ΤΕΙ Πειραιά και διοργανώθηκε από το τμήμα Ηλεκτρονικών Υπολογιστικών Συστημάτων του ΤΕΙ (αξίζει ένα μεγάλο μπράβο σε όλους τους). Ως γνωστόν είμαι φοιτητής του τμήματος Ηλεκτρονικής αυτού του ιδρύματος και έτσι δεν θα μπορούσα να λείψω. Ένιωσα επίσης και το χρέος να κάνω μια παρουσίαση, φυσικά για το Fedora!

Έτσι και έγινε. Μια εβδομάδα περίπου πριν το event και είχαμε ήδη αρχίσει να ετοιμαζαστε. Εκτυπώσεις, σχεδιασμός για αφίσες, εγγραφές cd, ποτήρια Fedora κτλ. Σε όλη αυτή τη διαδικασία, από την αρχή μέχρι το τέλος του Openfest, βοήθησαν οι συνήθεις ύποπτοι του Fedora (που δεν είναι μόνο όσοι αναφέρονται στο wiki).  Είχα και την χαρά να φιλοξενήσω τον Σαλονικιό μας τον Χρήστο Μπαχαράκη (cmpahar) για κάμποσες μέρες  ( μας λύπεις ρε! :D ).

Εν συντομία, είχαμε το καλύτερο booth του event. Απλά και αντικειμενικότατα παρακαλώ :) . Η παρουσίαση έχω την εντύπωση ότι δεν πήγε άσχημα. Μπορούσα και καλύτερα αλλά θα με δω στο video που θα ανέβει στο openfest.teipir.gr και θα σας πω. Επί τη ευκαιρία, να διορθώσω μια γκάφα μου : το F13 βγαίνει με βάση το πρόγραμμα 11 Μαΐου (και όχι 11 Απριλίου). Έπρεπε να κάνω το fail μου και εγώ δεν άντεξα . Ακολουθεί φωτογραφικό υλικό, ετοιμαστείτε :P

Ελληνική Ομάδα Fedora

El Fedorato (click για να θαυμάσετε περισσότερες)

Να ευχαριστήσω θερμά και από εδώ τον Πιέρρο και την Θάλεια, τον Αναστάση και την Εβελίνα, τον Χρήστο, τον Παντελή (15 χρονών και ορεξάτος ορεξάτος) και όλους όσους συμμετείχαν.

Κάτι άσχετο,να σας ενημερώσω πως πέρα από το identi.ca γράφω και στο twitter . Kάτι σχετικό, θα ακολουθήσει και post εις την αγγλικήν με το video της παρουσίασης γιατί ακόμη δεν έχει βγει. Ευχαριστώ.

Written by constanton

Μαρτίου 20, 2010 στις 1:55 πμ

Αναρτήθηκε στις fedora, open source

Tagged with ,

Use your Nokia cellphone for presentations

with 5 comments

Today I didn’t have many things to do (“You have to do the laundry” sais the little angel on my right shoulder, “Yeah…Whatever” says the little devil on my left) so I checked out what Google has to offer me (as a Fedora user) now that I am at the mercy of the internet. I checked out Picasa, Google Reader, Google Desktop and amora (not a google app). I am sure you are familiar with the 3 first ones. But the last one may not ring you any bell…If you own a Nokia cellphone actually, you should know it (and yes, I allow you to check the link before you finish reading this post :) ). I own a Nokia N82, and amora offers me the means to controll my computer via my mobile’s keyboard (mostly for presentations though).

To install amora I also had to install Python for S60 first (for N82 I found this one and works fine). It’s so cool! I tried it with OOo Impress and works great! :)   I can’t wait to use it!

To install any google application on fedora you have to follow this guide : first configure the rpm key and then configure yum .

By the way I couldn’t launch picasa because I have to intsall the 32-bit openssl package! damn…Not in the mood to fix it :P

Google Reader works fine (also Google Reader notifier) . ActualIy, I was using the RSS plugin for Evolution, which is not bad, but now I don’t have to wait for all the feeds to get updated to read my mail properly.

Google Desktop? I don’t think I will ever use it as Firefox is open as long as my notebook is switched on.

edit : amora is simply hosted inside google-code (I didn’t make that clear enough). It was implemented by Adenilson Cavalcanti a developer from “Instituto Nokia de Tecnologia” (Nokia Institute of Technology – Brazil).(thanks to Ademar)

Written by constanton

Σεπτεμβρίου 26, 2009 στις 6:11 μμ

Αναρτήθηκε στις fedora, Google, open source

Tagged with , ,

I’m flying with Firefox

Με ένα σχόλιο

Well, first of all, my find-something-bad-to-make-you-downgrade period for Fedora 11 is over and the results are as expected…using my computer on daily bases is a procedure that leveled up. But the beauty of it is that you know you are using free software. Software that is shared to you and belongs to you thanks to other people that believe in freedom. And then you say “hey! maybe I should contribute” because that’s your way to say thank you and learn stuff. That’s how I feel to be honest. So, just because I use Firefox every day for many hours, I decided to say thanks this time by contributing as a Test Pilot :) . OK, I admit that I am also curious to see how this whole thing is going to work. I also can’t hide that I want to be a package maintainer for Fedora, but I have lots in my mind right now.

Furthermore, the last 3 days I try to focus on wireless sensor networks which of course means my familiarization with TinyOS and other technologies which are extremely cool. There is the need of great effort from my part though. Anyway, networks ,electronics and applications that can be used for HCI …no need to ask for more :)

I almost forgot CHECK THIS OUT: academicearth.org when I first saw it I tried not to behave like the men at the recent Heineken commercial (cheering like crazy). Thanks Christos!

Written by constanton

Αυγούστου 21, 2009 στις 11:38 μμ

Αναρτήθηκε στις fedora, open source

Tagged with ,

Fedora 11 released and me being busy.

αφήστε ένα σχόλιο »

OK. Now that I have the chance to take a break from studying, I can finally make a post. I’m in the middle of my exams period.

First of all, I’m writing from my clean-installed Fedora 11 x86_64 system :) . You have to see it boot. Everything seems to work just fine. I just forgot to save my bookmarks :P . But! After the installation I didn’t forgot to yum groupinstallElectronic Lab‘ .

I am looking forward to start a project suggested from my professor at the TEI.  It will concern low power microcontrollers for wireless sensor networks. And guess what…it will be open source !!! (I just found out about uClinux and this) After my exams period I will try to find out how this can be combined with Fedora. Furthermore, maybe there is a chance I will do a little research (or something like that, I don’t know for sure yet) on HCI systems in collaboration with the University of Athens on February. I hope this will come true :) . We’ll see.

I’m also getting ready for my studies at Barcelona, at the Facultad de Informática de Barcelona of the Universitat Politécnica de Catalunya  (UPC), I was accepted as an Erasmus student for the next semester. I’m in search of a place to stay. Single rooms with wifi and my own WC are hard to find though. I hope I’ll make it. I will also look forward to meet guys of the local Fedora community there. It’ll be fun.

To be honest I wanted this post to be for my presentation at NTUA which went well, not as many people as I expected. But hey! We never give up, and we always try to become even better. The presentation lasted for 1 hour and I tried to be as much prepared as possible. It’s not easy when you are a pre-graduate student of electronics to talk about VLSI systems etc. I am still waiting for photographic material to post.

Written by constanton

Ιουνίου 27, 2009 στις 11:49 πμ

Αναρτήθηκε στις fedora

Tagged with , ,

Παρουσίαση του Fedora Electronic Lab στο ΕΜΠ

Με ένα σχόλιο

Το Fedora Electronic Lab αποτελεί μία από τις μεγάλες προσπάθειες ένταξης της free & open source ιδεολογίας στον χώρο του hardware.

To FEL είναι ένα Fedora Spin, μια συλλογή foss ΕDA εργαλείων που έχει ως στόχο την βελτιστοποίηση της ροής του σχεδιασμού των hardware projects. Ενώνει τον κόσμο του free & open source software με τον κόσμο του hardware.

Αφορά τους τομείς :

  • της μικροηλεκτρονικής (VLSI)
  • του σχεδιασμού και της εξομοίωσης αναλογικών/ψηφιακών/mixed κυκλωμάτων (spice, pcb και άλλα εργαλεία CAD)
  • τον προγραμματισμό ICs (PICs, FPGAs, προγραμματισμός με VHDL/Verilog)
  • τον σχεδιασμό ενσωματωμένων συστημάτων
  • της διαχείρισης projects.

Η Κοινότητα Ελεύθερου Λογισμικού του ΕΜΠ σε συνεργασία με τον Fedora-el διοργανώνει μια παρουσίαση του Fedora Electronic Lab. Στην παρουσίαση θα γίνει περιγραφή των στόχων και των χαρακτηριστικών του FEL καθώς και παρουσίαση ορισμένων προγραμμάτων του. Η παρουσίαση θα γίνει την Πέμπτη 4 Ιουνίου στις 3 το μεσημέρι στο MOΠ (cc.ece.ntua) Γενικές Έδρες Κτίριο Β Δεύτερος Όροφος από τις σκάλες αριστερά.

http://chitlesh.fedorapeople.org/FEL/

Written by constanton

Ιουνίου 1, 2009 στις 5:58 μμ

Αναρτήθηκε στις Uncategorized

Tagged with , ,

Follow

Get every new post delivered to your Inbox.

Join 40 other followers

%d bloggers like this: