Pages: [1]   Go Down
Author Topic: Compiling the Bootloader  (Read 716 times)
0 Members and 1 Guest are viewing this topic.
Chicago, Illinois
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Git 'r' done -- with Arduino.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I have an ATmega329 based board and would like to port the bootloader to it.

After following the bootloader link to Berlios, I couldn't figure out how to download the whole project or even individual files.

They were viewable, so to get started I copy-pasted ATmegaBOOT_168.c and the Makefile to my system.

Running 'make' with Win-Avr already installed resulted in an error complaing about a '%'.

Makeing targets 'clean', 'all', and 'ATmegaBOOT_168.elf' also failed complaing about a '%'.

Maybe the copy-paste converted tabs to spaces?

Questions:

1. How can I download a bootloader zip (or other) archive from Berlios?

2. Are there any tricks to compiling the bootloader?

Thank you!

Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think this happens when there's a : in the name of a target, e.g. if you're specifying absolute paths with drive letters on Windows.  Do you have any paths like that in your Makefile?  Can you post the full text of the error?


Logged

Chicago, Illinois
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Git 'r' done -- with Arduino.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My guess is that the makefile copy-paste has destroyed the tabs which are special to make.  The error line in the makefile refers to ISPFUSES which does have colons.

Can you tell me how to download rather than copy-paste files from Berlios (or somewhere else)?

The original output of make is shown below.  I used the full path just to prove that the WinAVR version of make is being used although just using 'make' has the same result.


$ C:\WinAVR\utils\bin\make ATmegaBOOT_168.c
Makefile:73: *** target pattern contains no `%'.  Stop.

$ C:\WinAVR\utils\bin\make clean
Makefile:73: *** target pattern contains no `%'.  Stop.

$ C:\WinAVR\utils\bin\make all
Makefile:73: *** target pattern contains no `%'.  Stop.

$ C:\WinAVR\utils\bin\make ATmegaBOOT_168.elf
Makefile:73: *** target pattern contains no `%'.  Stop.

$ dir
 Volume in drive C is Windows
 Volume Serial Number is 06B0-3320

 Directory of C:\Documents and Settings\Mark\My Documents\AvrStudio\Arduino\ardu
ino_boot_168

07/19/2007  09:01 PM    <DIR>          .
07/19/2007  09:01 PM    <DIR>          ..
07/19/2007  08:51 PM            32,633 ATmegaBOOT.c
07/19/2007  08:51 PM            32,633 ATmegaBOOT_168.c
07/19/2007  08:49 PM             2,570 Makefile
07/19/2007  08:49 PM             2,570 Makefile.orig
               4 File(s)         70,406 bytes
               2 Dir(s)  22,846,595,072 bytes free

$
Logged

Pages: [1]   Go Up
Jump to: