Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

How to porting u-boot to my own board?

Hello, everyone

I want to use u-boot on my board. I have two questions.

1. Before I use u-boot on my board, I just try to compile u-boot first. So, I follow the readme file.

I use

make PK1C20_config

make all

But there have errors.

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

In file included from /usr/include/sys/unistd.h:9,

from /usr/include/unistd.h:6,

from img2srec.c:61:

/usr/include/sys/types.h:106: conflicting types for `int8_t&#39;

/usr/include/stdint.h:38: previous declaration of `int8_t&#39;

/usr/include/sys/types.h:108: warning: redefinition of `int16_t&#39;

/usr/include/stdint.h:39: warning: `int16_t&#39; previously declared here

/usr/include/sys/types.h:110: warning: redefinition of `int32_t&#39;

/usr/include/stdint.h:40: warning: `int32_t&#39; previously declared here

/usr/include/sys/types.h:112: warning: redefinition of `int64_t&#39;

/usr/include/stdint.h:45: warning: `int64_t&#39; previously declared here

make[1]: *** Error 1

make[1]: Leaving directory `/cygdrive/d/My_Project/MtxCyclone_uBoot/BootLoader/u-boot-1.1.3/tools

make: *** [tools] Error 2[/b]

--- Quote End ---

I search the forum and find the answer given by smcnutt.

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

This looks like the sources directly from sourceforge.net ... this tree assumes you

have an appropriately configured native gcc and shell environment -- which

doesn&#39;t come with the nios2 toolchain 8-P The easiest thing to do is get the source

tree from http://www.pysent.com/download (http://www.pysent.com/download) -- this tree has certain "nips & tucks"

made to build cleanly with the default nios2 toolchain (under cygwin) -- and it&#39;s

more up-to-date than the sourceforge tree (WRT Nios-II, the sourceforge tree

has been lagging by several months).[/b]

--- Quote End ---

But I can not access the web link. Can give me the right link or the files?

2. If I want use u-boot on my MtxCyclone Board, how can I do?

Just what should I do according to the PK1C20.h?

Can give me more information or detailed steps than readme file?

Thank you very much,

LiangYi

36 Replies