>-----Ursprüngliche Nachricht----- >Von: Masahiro Yamada [mailto:[email protected]] >Gesendet: Samstag, 23. Mai 2015 09:56 >An: Altunbas Sabri (DC-IA/EAH2) >Cc: [email protected] >Betreff: Re: [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if >gpio >included > >Hi Altunbas, > > >2015-05-21 19:51 GMT+09:00 Altunbas Sabri (DC-IA/EAH2) ><[email protected]>: >> Hi, >> >> Thanks for response >> >> I don't find this path in my u-boot. Perhaps I use u-boot-2013-01-01. >> >> I crated it and gpio.h in it. But it doesn't work. >> >> Best regards >> > >If you are using v2013.01, I think >arch/arm/include/asm/arch-socfpga/ exists. > >Please create gpio.h in this directory. > > > >-- >Best Regards >Masahiro Yamada
Hi Yamada, i think that was the solution I created an empty arch/arm/include/asm/arch-socfpga/gpio.h and I got this error no more common/libcommon.o: In function `do_gpio': /media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga/common/cmd_gpio.c:60: undefined reference to `gpio_request' /media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga/common/cmd_gpio.c:67: undefined reference to `gpio_direction_input' /media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga/common/cmd_gpio.c:68: undefined reference to `gpio_get_value' /media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga/common/cmd_gpio.c:73: undefined reference to `gpio_get_value' /media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga/common/cmd_gpio.c:76: undefined reference to `gpio_direction_output' /media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga/common/cmd_gpio.c:81: undefined reference to `gpio_free' arm-altera-eabi-ld: error: required section '.rel.plt' not found in the linker script arm-altera-eabi-ld: final link failed: Invalid operation make[1]: *** [u-boot] Fehler 1 make[1]: Verzeichnis »/media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga« wird verlassen make: *** [uboot] Fehler 2 Now I must implement my driver for methods gpio_request, gpio_direction_input,.... Regards _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

