Forum Discussion

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

U-Boot for Stratix II

Hi,

can anybody tell me how to install U-Boot on a Stratix II (2s60es) board ?

Thanks

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi MFM,

    > how to install U-Boot on a Stratix II

    1. Download the u-boot source archive from: http://www.psyent.com/download (http://www.psyent.com/download)

    2. Decompress and review the files USING.txt and BUILDING.txt in the top directory.

    3. Edit the file include/configs/EP1C20.h to match your hardware.

    4. Edit the file board/altera/common/AMDLV065D.c so the flash_init routine is just:

    unsigned long flash_init (void) { return (CFG_FLASH_SIZE);}

    5. Build u-boot:

    $ make distclean

    $ make PK1C20_config

    $ make

    At this point you should be able to download u-boot and get a command prompt.

    You'll have enough to start playing around with u-boot. When you're ready to actually

    do a full port, read the u-boot README file, then if you need help, make another

    post (or you can PM me) -- I'll be glad to help. If you simply use an existing board

    as an example, you should have no problems.

    Regards,

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Scott,

    I sent you a PM with no reply http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif .

    Well, I&#39;ve done what you suggested, the build was successful.

    But when I try to program u-boot into flash like in the using.txt, the console display an error message

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

    --- Quote Start ---

    Communication port must be specified.

    Use openport <port> to configure the communication port[/b]

    --- Quote End ---

    I tried the openport command and I&#39;ve got a window error : Driver open failed

    I&#39;m wondering if I could use my usb blaster, instead of the serial cable, and the flash programmer to program u-boot into flash memory, cause I tried to do so too but without any success.

    thanks for your help.

    Warm Regards
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi MFM,

    > I sent you a PM with no reply

    Sorry for the delay ...

    ... but please be patient -- I don&#39;t get paid for my participation on the forum -- and I often

    get bogged down doing the _other_ stuff that let&#39;s me & the family eat ;-)

    I&#39;ll always do my best to respond though.

    > I&#39;m wondering if I could use my usb blaster, instead of the serial cable, and the

    > flash programmer to program u-boot

    Yes. You can use the JTAG UART as the u-boot console and the flash programmer to

    program u-boot into flash. Until you have your flash driver working, the flash programmer

    is the best bet. Once you have your flash driver working, the u-boot tftp and flash

    programmer is much faster.

    Regards,

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i download the source,but the erros occured again! could you give me the EP1C20_config.h file that have changed according to the std_2c35.ptf!

    thank you !
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    > i download the source,but the erros occured again!

    What errors occurred?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by smcnutt@Jun 13 2006, 09:43 AM

    > i download the source,but the erros occured again!

    what errors occurred?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16137)

    --- quote end ---

    --- Quote End ---

    What is PM??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by park5647+aug 24 2006, 04:35 pm--><div class='quotetop'>quote (park5647 @ aug 24 2006, 04:35 pm)</div>

    --- quote start ---

    <!--quotebegin-smcnutt@Jun 13 2006, 09:43 AM

    > i download the source,but the erros occured again!

    what errors occurred?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16137)

    --- quote end ---

    --- Quote End ---

    What is PM??

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=17810)</div>

    [/b]

    --- Quote End ---

    Personal Message