Forum Discussion

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

U-Boot on Nios II Development Kit, Cyclone II Ed.

This is for if you've got the Nios II Development Kit, Cyclone II Edition and you want to use U-Boot on it. I've attached a patch that adds support for that kit's "standard" example design. The patch is for U-Boot 1.1.4.

To use:

cd ???/u-boot-1.1.4
patch -p1 < ???/u-boot-1.1.4-n2dkc2.patch
make EP2C35_config
make all

The configuration puts the console on the JTAG UART.

The patch also includes support for several other Altera boards from a custom U-Boot 1.1.3 version by Psyent.

Note: the patch also changes the tool names used from nios2-elf-* to nios2-linux-uclibc-*, so change it back if you&#39;re on Cygwin.

1 Reply

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

    Just to be clear on small, but important point:

    > The patch also includes support for several other Altera boards from a custom

    > U-Boot 1.1.3 version by Psyent.

    The sources at psyent.com are not custom at all ... they are taken directly from

    the u-boot souce tree and contain all Nios-related patches that have been submitted

    to the u-boot project. Any changes are simply the elimination of warnings or

    build errors for the typical development environment (cygwin). Unfortunately, the

    u-boot project is _very_ busy and patches can now take as long as several months

    to be applied. All of the boards supported by the code at psyent are part of pending

    u-boot patches.

    Hopefully, this long delay between submitting patches and their application to

    the main source tree should improve now that u-boot is using git. I&#39;m currently

    evaluating the feasibility of setting up a git repository for nios development -- to

    make the latest nios patches available immediately and still maintain sync with

    the latest platform independent code.

    > the patch also changes the tool names used from nios2-elf-* to nios2-linux-uclibc-*

    The normal way to do this with u-boot is to simply set CROSS_COMPILE with the

    make command:

    $ make CROSS_COMPILE=nios2-linux-uclibc-

    Regards,

    --Scott