Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
874 Views

cannot open output file u-boot: Is a directory

in u-boot dir, I put my_nios2.h in include/configs/, put my_nios2_fpga.h in board/altera/nios2-generic/. Then add an entry my_nios2 to the NIOS2_GENERIC list in Makefile. 

make my_nios2_config 

make 

 

then... 

what's wrong ? Thax! 

 

/home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-ld -r -o libgeneric.o crc16.o crc32.o ctype.o display_options.o div64.o errno.o gunzip.o hashtable.o ldiv.o net_utils.o qsort.o string.o strmhz.o time.o vsprintf.o zlib.o make: Leaving directory `/home/nios2-linux/u-boot/lib' make -C lib/lzma/ make: Entering directory `/home/nios2-linux/u-boot/lib/lzma' make: `liblzma.o' is up to date. make: Leaving directory `/home/nios2-linux/u-boot/lib/lzma' make -C lib/lzo/ make: Entering directory `/home/nios2-linux/u-boot/lib/lzo' make: `liblzo.o' is up to date. make: Leaving directory `/home/nios2-linux/u-boot/lib/lzo' make -C net/ make: Entering directory `/home/nios2-linux/u-boot/net' make: Nothing to be done for `all'. make: Leaving directory `/home/nios2-linux/u-boot/net' make -C post/ make: Entering directory `/home/nios2-linux/u-boot/post' make: Nothing to be done for `all'. make: Leaving directory `/home/nios2-linux/u-boot/post' make -C board/altera/nios2-generic/ make: Entering directory `/home/nios2-linux/u-boot/board/altera/nios2-generic' /home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-gcc -g -Os -ffunction-sections -fdata-sections -D__KERNEL__ -I/home/nios2-linux/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/nios2-linux/toolchain-build/build/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/include -pipe -DCONFIG_NIOS2 -D__NIOS2__ -G0 -mno-hw-div -mno-hw-mul -I/home/nios2-linux/u-boot/board/altera/include -Wall -Wstrict-prototypes -o nios2-generic.o nios2-generic.c -c /home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-gcc -g -Os -ffunction-sections -fdata-sections -D__KERNEL__ -I/home/nios2-linux/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/nios2-linux/toolchain-build/build/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/include -pipe -DCONFIG_NIOS2 -D__NIOS2__ -G0 -mno-hw-div -mno-hw-mul -I/home/nios2-linux/u-boot/board/altera/include -Wall -Wstrict-prototypes -o gpio.o gpio.c -c /home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-gcc -D__ASSEMBLY__ -g -Os -ffunction-sections -fdata-sections -D__KERNEL__ -I/home/nios2-linux/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/nios2-linux/toolchain-build/build/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/include -pipe -DCONFIG_NIOS2 -D__NIOS2__ -G0 -mno-hw-div -mno-hw-mul -I/home/nios2-linux/u-boot/board/altera/include -o text_base.o text_base.S -c /home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-ld -r -o libnios2-generic.o nios2-generic.o gpio.o text_base.o make: Leaving directory `/home/nios2-linux/u-boot/board/altera/nios2-generic' make -C /home/nios2-linux/u-boot/board/altera/nios2-generic/ u-boot.lds make: Entering directory `/home/nios2-linux/u-boot/board/altera/nios2-generic' make: Nothing to be done for `u-boot.lds'. make: Leaving directory `/home/nios2-linux/u-boot/board/altera/nios2-generic' /home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-gcc -E -g -Os -ffunction-sections -fdata-sections -D__KERNEL__ -I/home/nios2-linux/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/nios2-linux/toolchain-build/build/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/include -pipe -DCONFIG_NIOS2 -D__NIOS2__ -G0 -mno-hw-div -mno-hw-mul -I/home/nios2-linux/u-boot/board/altera/include -include /home/nios2-linux/u-boot/include/u-boot/u-boot.lds.h -DLD_MAJOR=2 -DLD_MINOR=15 -ansi -D__ASSEMBLY__ -P - </home/nios2-linux/u-boot/board/altera/nios2-generic/u-boot.lds >u-boot.lds UNDEF_SYM=`/home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-objdump -x board/altera/nios2-generic/libnios2-generic.o api/libapi.o arch/nios2/cpu/libnios2.o arch/nios2/lib/libnios2.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o net/libnet.o post/libpost.o | sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /home/nios2-linux/u-boot && /home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-ld --gc-sections -Bstatic -T u-boot.lds $UNDEF_SYM arch/nios2/cpu/start.o --start-group api/libapi.o arch/nios2/cpu/libnios2.o arch/nios2/lib/libnios2.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o net/libnet.o post/libpost.o board/altera/nios2-generic/libnios2-generic.o --end-group -L /home/nios2-linux/toolchain-build/build/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/mno-hw-mul -lgcc -Map u-boot.map -o u-boot /home/nios2-linux/toolchain-build/build/nios2/bin/nios2-linux-uclibc-ld.real: cannot open output file u-boot: Is a directory make: *** Error 1 #
0 Kudos
2 Replies
Altera_Forum
Honored Contributor I
59 Views

It looks like it's trying to write the compiled project in a file called u-boot but there is already a folder with that name in the destination folder. Try to move or rename that folder, or to change the name of the generated file

Altera_Forum
Honored Contributor I
59 Views

Thx&#65281;I got it&#65281;