Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
din.gulu.er
PostPosted: Feb 10, 2012 - 05:55 PM
Resident


Joined: Mar 03, 2010
Posts: 537
Location: New Delhi, India

Hi,

Initially i was programming AVR on windows for last 2 years, with WINAVR everything comes ready to use.

Now I have started using UBANTU linux. What is the right toolchain for LINUX. How can make everything working Question

Please help me in this starting stage Question
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Feb 10, 2012 - 07:52 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71878
Location: (using avr-gcc in) Finchingfield, Essex, England

www.wrightflyer.co.uk/avr-gcc/

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
kscharf
PostPosted: Feb 10, 2012 - 09:17 PM
Posting Freak


Joined: Aug 04, 2004
Posts: 1830
Location: Davie, FL

OR build it yourself.
http://www.avrfreaks.net/index.php?name ... p;id=17480
unzip and follow the directions in the readme file.

BTW you do mean Ubuntu don't you?
 
 View user's profile Send private message  
Reply with quote Back to top
din.gulu.er
PostPosted: Feb 11, 2012 - 03:05 AM
Resident


Joined: Mar 03, 2010
Posts: 537
Location: New Delhi, India

Quote:
BTW you do mean Ubuntu don't you
Sorry mistake. Its Ubuntu only.

Quote:
http://www.wrightflyer.co.uk/avr-gcc/
http://www.avrfreaks.net/index.php?name ... p;id=17480
What is the diffrence between two packages. Both we have to run some scripts Question

Quote:
OR build it yourself.
Even the one which cliff sugested we also have to be build Question Also there is no concept of .EXE files in linux to have one click instalation.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Feb 11, 2012 - 01:07 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71878
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

Even the one which cliff sugested we also have to be build

No you don't. It's a deb. You just "dpkg -i" to install the prebuilt binaries. I see no point in attempting to build a GCC toolchain for Ubuntu (or any Debian distro) when Bing600 is good enough to build it for you.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
kscharf
PostPosted: Feb 13, 2012 - 01:31 PM
Posting Freak


Joined: Aug 04, 2004
Posts: 1830
Location: Davie, FL

clawson wrote:
Quote:

Even the one which cliff sugested we also have to be build

No you don't. It's a deb. You just "dpkg -i" to install the prebuilt binaries. I see no point in attempting to build a GCC toolchain for Ubuntu (or any Debian distro) when Bing600 is good enough to build it for you.


Linux doesn't have a self extracting package format like Windows does, it uses a distro dependent installer (Yum for Suse, dpkg for debian/ubuntu, etc). In Ubuntu if you double click on the .deb file in the file manager it will probably just install it or offer to do so.


I only built mine since I wanted a native 64 bit image as I'm running the 64 bit kernel on my computer. You might also want to build it yourself if you want to build a version optimized for the processor you are running (but I doubt you would notice the difference in performance).
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Feb 13, 2012 - 02:57 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71878
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

Linux doesn't have a self extracting package format like Windows does, it uses a distro dependent installer (Yum for Suse, dpkg for debian/ubuntu, etc). In Ubuntu if you double click on the .deb file in the file manager it will probably just install it or offer to do so.

But ultimately, as far as the end user is concerned, what's the difference between a .msi on Windows or a .deb on Debian (inc Ubuntu) then?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
kscharf
PostPosted: Feb 13, 2012 - 04:10 PM
Posting Freak


Joined: Aug 04, 2004
Posts: 1830
Location: Davie, FL

clawson wrote:
Quote:

Linux doesn't have a self extracting package format like Windows does, it uses a distro dependent installer (Yum for Suse, dpkg for debian/ubuntu, etc). In Ubuntu if you double click on the .deb file in the file manager it will probably just install it or offer to do so.

But ultimately, as far as the end user is concerned, what's the difference between a .msi on Windows or a .deb on Debian (inc Ubuntu) then?

On a distro like Ubuntu nothing since Canonical has dumbed down the installer for the user to a point and click interface (just like Windows). On a distro like Debian the user must know how to run dpkg in order to install the application. (Which means knowing how to get to the command line!)
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Feb 13, 2012 - 04:23 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71878
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

On a distro like Debian the user must know how to run dpkg in order to install the application. (Which means knowing how to get to the command line!)

I've never run dpkg by any other means but the command line Wink

Cliff ("luddite")

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
kscharf
PostPosted: Feb 13, 2012 - 04:58 PM
Posting Freak


Joined: Aug 04, 2004
Posts: 1830
Location: Davie, FL

clawson wrote:
Quote:

On a distro like Debian the user must know how to run dpkg in order to install the application. (Which means knowing how to get to the command line!)

I've never run dpkg by any other means but the command line Wink

Cliff ("luddite")

The two of us are old hands at Linux. New Linux users starting via Ubuntu with NO knowledge of command line unix wouldn't 'get it'.
 
 View user's profile Send private message  
Reply with quote Back to top
din.gulu.er
PostPosted: Feb 15, 2012 - 06:20 PM
Resident


Joined: Mar 03, 2010
Posts: 537
Location: New Delhi, India

Thanks for support.

also i have brought Intel Atom Motherboard,(cheapest available in market) i want to practice linux kernel & application programming.

Please suggest some good tutorial --- or how to start building tool chain or rootfile system & Zimage to see my first program running of ATOM processor .

Please suggest, something on it Question
 
 View user's profile Send private message  
Reply with quote Back to top
kscharf
PostPosted: Feb 15, 2012 - 06:59 PM
Posting Freak


Joined: Aug 04, 2004
Posts: 1830
Location: Davie, FL

Isn't the Atom x86 code compatible? If this is a standard PC motherboard just start by attaching a HD, DVDrom drive, memory, kb, network, mouse, memory, and power supply and just boot a Linux CD. OR boot using an image on a USB flash stick. If the motherboard supports booting via TFTP off of a network you can set up a TFTP server on another computer (probably not worth the effort at this point).

ANY Linux distro will work, but to start off small Slackware is a good choice. If you don't mind reading the manuals Arch Linux is also a good choice, but it isn't as easy to install. Debian is also good, use the non-graphical install and do NOT select any packages in the final step (command line only none graphical desktop) ... unless you WANT to run a GUI desktop, then pick LXDE or XFC at the start from the 'alternate desktop' menu at boot time.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Feb 15, 2012 - 08:26 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71878
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

Please suggest some good tutorial

Google "roll your own kernel"

EDIT: should get you here http://www.howtoforge.com/roll_a_kernel ... ubuntu_way

Personally I'd implement a command line Ubuntu (get the "alternative" CD)

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
kscharf
PostPosted: Feb 15, 2012 - 08:40 PM
Posting Freak


Joined: Aug 04, 2004
Posts: 1830
Location: Davie, FL

There's also 'Linux from scratch'
 
 View user's profile Send private message  
Reply with quote Back to top
din.gulu.er
PostPosted: Feb 17, 2012 - 04:58 PM
Resident


Joined: Mar 03, 2010
Posts: 537
Location: New Delhi, India

thanks, i will try at my end.

http://scottlinux.com/2011/07/15/how-to-compile-your-own-kernel-in-ubuntu-debian-mint/
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits