Forum Discussion

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

Problems building Preloader

Im following the steps here: http://www.rocketboards.org/foswiki/documentation/gsrdpreloader

After having made some minor changes to the FPGA design. When I run the makefile, I get the following unhelpfull errors:

make CROSS_COMPILE=arm-none-eabi- -C uboot-socfpga socfpga_cyclone5_config

make[1]: Entering directory `/cv_soc_devkit_ghrd/software/spl_bsp/uboot-socfpga'

: invalid option

make[1]: *** [socfpga_cyclone5_config] Error 1

make[1]: Leaving directory `/cv_soc_devkit_ghrd/software/spl_bsp/uboot-socfpga'

make: *** [config] Error 2

Anyone got any ideas?

2 Replies

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

    Probably nothing but maybe check the makefiles & co for mixed unix/windows line endings, linux make gave some strange errors for me with that, before i figured it out. ( I somehow managed to generate such a file and only saw it because the file size of one of the uboot files was different from a working configuration. Generating the BSP on top of an existing file structure also seems to be a bad idea).

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

    Try to do steps as below:

    1) Re-compile whole Quartus project.

    2) use bsp-editor to create new preloader source code

    3) build preloader.