Skip to contentSkip to conversation

u-boot compilation

U-Boot-Users André Stierenberg 4 participants 6 messages Nov 5, 2002 – Nov 6, 2002 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

i?ve problems compiling u-boot. I use cross compiler 2.95.3. When i compile u-boot i get an errer that he cant finde a file called "mach-types.h". What could it be? How can i fix this problems? I haven?t found the file in my filesystem.. not in the kernel directory (2.4.18 and 2.5.0) and not in the directory of the cross compiler!

Andr?

#1 lore raw
Quoted 5 lines · Andr? Stierenberg

i?ve problems compiling u-boot. I use cross compiler 2.95.3. When i compile u-boot i get an errer that he cant finde a file called "mach-types.h". What could it be? How can i fix this problems? I haven?t found the file in my filesystem.. not in the kernel directory (2.4.18 and 2.5.0) and not in the directory of the cross compiler!

mach-types.h should be in the include/asm-arm/ directory of your kernel tree. Are you sure you have installed a correct toolchain and kernel source?

Robert

Signature · 8 lines
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4

    Visit us at the SPS/IPC/Drives 2002 in Nuernberg!
   Hall 5, Booth 154 +++ Please contact us for details.
#2 lore raw
Quoted 10 lines · In message <[email protected]> you wrote:
Quoted 6 lines

i?ve problems compiling u-boot. I use cross compiler 2.95.3. When i compile u-boot i get an errer that he cant finde a file called "mach-types.h". What could it be? How can i fix this problems? I haven?t found the file in my filesystem.. not in the kernel directory (2.4.18 and 2.5.0) and not in the directory of the cross compiler!

mach-types.h should be in the include/asm-arm/ directory of your kernel tree. Are you sure you have installed a correct toolchain and kernel source?

No. No file "mach-types.h" is needed anywhere in the U-Boot source code. If the compiler thinks it needs it (and cannot find it), then the cross compiler is misconfigured.

Get a working set of tools.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
See us @ electronica 2002 in Munich, Nov 12-15, Hall A3, Booth A3.325 

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 1 line · Andr? Stierenberg

What erne and toolchain version are you using?

2.95.3. It seems like you are doing something substancially wrong - can you tell us what you did?

Robert

Signature · 8 lines
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4

    Visit us at the SPS/IPC/Drives 2002 in Nuernberg!
   Hall 5, Booth 154 +++ Please contact us for details.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Andre,

Please include the list in your replies.

Quoted 2 lines · Andr? Stierenberg

i have used the toolchain 2.95.3 from www.arm.linux.org.uk. I have installed in in /usr/local/arm like discribed in the README file..

My impression when I looked at this toolchain for the last time was that it is only a stage 1 toolchain - at least this is what the build script generates.

Quoted 3 lines

then i did a make lubbock_config and make all i n the u-boot direkctory. At some point there comes a errer message that the file mach-types.h is missing what is needed by hardware.h in the toolchain.

Could you cut-and-paste the error message plus some context? It's a little bit difficult to find out what happens if you don't give us more information.

Robert

Signature · 8 lines
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4

    Visit us at the SPS/IPC/Drives 2002 in Nuernberg!
   Hall 5, Booth 154 +++ Please contact us for details.
#7 lore raw
Quoted 7 lines · Andr? Stierenberg
Quoted 2 lines

i have used the toolchain 2.95.3 from www.arm.linux.org.uk. I have installed in in /usr/local/arm like discribed in the README file..

My impression when I looked at this toolchain for the last time was that it is only a stage 1 toolchain - at least this is what the build script generates.

Not sure what you've meant, but I'm using the 2.95.3 from www.arm.linux.org.uk to compile armboot, now with my u-boot tries. I used it with Linux up to 2.4.17, now I'm using 3.2 (from the same location). It does NOT work with redboot.

One thing that one has to do with this 2.95.3 right is the installation location. It has to be /usr/local/arm/2.95.3 so that your PATH is /usr/local/arm/2.95.3/bin:$PATH

Signature · 5 lines
MN-Logistik GmbH         http://www.mn-logistik.de
Holger Schurig
Dieselstr. 18
61191 Rosbach v.d.H?he
Tel: 06003/9141-0        Fax: 06003/9141-49