* [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included
@ 2015-05-12 13:53 Altunbas Sabri
2015-05-19 23:16 ` Simon Glass
0 siblings, 1 reply; 7+ messages in thread
From: Altunbas Sabri @ 2015-05-12 13:53 UTC (permalink / raw)
To: u-boot
Hi All,
I use u-boot for altera socfpga cyclone 5 and want to include gpio-functionality with
"#define CONFIG_CMD_GPIO"
in file
uboot-socfpga/include/configs/ socfpga_cyclone5.h
and get the following compilation error
......................
.....................
In file included from cmd_gpio.c:12:0:
/media/tux/work/0/uboot/software/spl_bsp/uboot-socfpga/include/asm/gpio.h:1:27: fatal error: asm/arch/gpio.h: No such file or directory
#include <asm/arch/gpio.h>
^
compilation terminated.
make[2]: *** Keine Regel vorhanden, um das Target ?.depend?,
ben?tigt von ?libcommon.o?, zu erstellen. Schluss.
make[2]: Verzeichnis ?uboot-socfpga/common? wird verlassen
make[1]: *** [common/libcommon.o] Fehler 2
Thanks for hints
Best regards
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included
2015-05-12 13:53 [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included Altunbas Sabri
@ 2015-05-19 23:16 ` Simon Glass
2015-05-21 10:51 ` Altunbas Sabri
0 siblings, 1 reply; 7+ messages in thread
From: Simon Glass @ 2015-05-19 23:16 UTC (permalink / raw)
To: u-boot
Hi,
On 12 May 2015 at 07:53, Altunbas Sabri (DC-IA/EAH2)
<sabri.altunbas@boschrexroth.de> wrote:
> Hi All,
>
> I use u-boot for altera socfpga cyclone 5 and want to include gpio-functionality with
>
> "#define CONFIG_CMD_GPIO"
>
> in file
>
> uboot-socfpga/include/configs/ socfpga_cyclone5.h
>
> and get the following compilation error
>
> ......................
> .....................
> In file included from cmd_gpio.c:12:0:
> /media/tux/work/0/uboot/software/spl_bsp/uboot-socfpga/include/asm/gpio.h:1:27: fatal error: asm/arch/gpio.h: No such file or directory
> #include <asm/arch/gpio.h>
> ^
> compilation terminated.
> make[2]: *** Keine Regel vorhanden, um das Target ?.depend?,
> ben?tigt von ?libcommon.o?, zu erstellen. Schluss.
> make[2]: Verzeichnis ?uboot-socfpga/common? wird verlassen
> make[1]: *** [common/libcommon.o] Fehler 2
I think you need to add that file (even if empty) to:
arch/arm/mach-socfpga/include/mach
Regards,
Simon
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included
2015-05-19 23:16 ` Simon Glass
@ 2015-05-21 10:51 ` Altunbas Sabri
2015-05-23 3:14 ` Simon Glass
2015-05-23 7:55 ` Masahiro Yamada
0 siblings, 2 replies; 7+ messages in thread
From: Altunbas Sabri @ 2015-05-21 10:51 UTC (permalink / raw)
To: u-boot
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
>-----Urspr?ngliche Nachricht-----
>Von: sjg at google.com [mailto:sjg at google.com] Im Auftrag von Simon Glass
>Gesendet: Mittwoch, 20. Mai 2015 01:16
>An: Altunbas Sabri (DC-IA/EAH2)
>Cc: u-boot at lists.denx.de
>Betreff: Re: [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio
>included
>
>Hi,
>
>On 12 May 2015 at 07:53, Altunbas Sabri (DC-IA/EAH2)
><sabri.altunbas@boschrexroth.de> wrote:
>> Hi All,
>>
>> I use u-boot for altera socfpga cyclone 5 and want to include gpio-functionality
>with
>>
>> "#define CONFIG_CMD_GPIO"
>>
>> in file
>>
>> uboot-socfpga/include/configs/ socfpga_cyclone5.h
>>
>> and get the following compilation error
>>
>> ......................
>> .....................
>> In file included from cmd_gpio.c:12:0:
>> /media/tux/work/0/uboot/software/spl_bsp/uboot-
>socfpga/include/asm/gpio.h:1:27: fatal error: asm/arch/gpio.h: No such file or
>directory
>> #include <asm/arch/gpio.h>
>> ^
>> compilation terminated.
>> make[2]: *** Keine Regel vorhanden, um das Target ?.depend?,
>> ben?tigt von ?libcommon.o?, zu erstellen. Schluss.
>> make[2]: Verzeichnis ?uboot-socfpga/common? wird verlassen
>> make[1]: *** [common/libcommon.o] Fehler 2
>
>I think you need to add that file (even if empty) to:
>
>arch/arm/mach-socfpga/include/mach
>
>Regards,
>Simon
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included
2015-05-21 10:51 ` Altunbas Sabri
@ 2015-05-23 3:14 ` Simon Glass
2015-05-26 6:43 ` Altunbas Sabri
2015-05-23 7:55 ` Masahiro Yamada
1 sibling, 1 reply; 7+ messages in thread
From: Simon Glass @ 2015-05-23 3:14 UTC (permalink / raw)
To: u-boot
Hi,
On 21 May 2015 at 04:51, Altunbas Sabri (DC-IA/EAH2)
<sabri.altunbas@boschrexroth.de> wrote:
>
> Hi,
>
> Thanks for response
I suggest you cc me on your reply else I may miss it.
>
> 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.
What version of U-Boot are you using?
You could try to figure out why it is complaining about the missing
file and where you should put it for find the problem.
make V=1
will give you verbose output.
Also it's best to put your reply at the bottom of your response.
Regards,
Simon
>
> Best regards
>
>
> >-----Urspr?ngliche Nachricht-----
> >Von: sjg at google.com [mailto:sjg at google.com] Im Auftrag von Simon Glass
> >Gesendet: Mittwoch, 20. Mai 2015 01:16
> >An: Altunbas Sabri (DC-IA/EAH2)
> >Cc: u-boot at lists.denx.de
> >Betreff: Re: [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio
> >included
> >
> >Hi,
> >
> >On 12 May 2015 at 07:53, Altunbas Sabri (DC-IA/EAH2)
> ><sabri.altunbas@boschrexroth.de> wrote:
> >> Hi All,
> >>
> >> I use u-boot for altera socfpga cyclone 5 and want to include gpio-functionality
> >with
> >>
> >> "#define CONFIG_CMD_GPIO"
> >>
> >> in file
> >>
> >> uboot-socfpga/include/configs/ socfpga_cyclone5.h
> >>
> >> and get the following compilation error
> >>
> >> ......................
> >> .....................
> >> In file included from cmd_gpio.c:12:0:
> >> /media/tux/work/0/uboot/software/spl_bsp/uboot-
> >socfpga/include/asm/gpio.h:1:27: fatal error: asm/arch/gpio.h: No such file or
> >directory
> >> #include <asm/arch/gpio.h>
> >> ^
> >> compilation terminated.
> >> make[2]: *** Keine Regel vorhanden, um das Target ?.depend?,
> >> ben?tigt von ?libcommon.o?, zu erstellen. Schluss.
> >> make[2]: Verzeichnis ?uboot-socfpga/common? wird verlassen
> >> make[1]: *** [common/libcommon.o] Fehler 2
> >
> >I think you need to add that file (even if empty) to:
> >
> >arch/arm/mach-socfpga/include/mach
> >
> >Regards,
> >Simon
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included
2015-05-21 10:51 ` Altunbas Sabri
2015-05-23 3:14 ` Simon Glass
@ 2015-05-23 7:55 ` Masahiro Yamada
2015-05-26 7:42 ` Altunbas Sabri
1 sibling, 1 reply; 7+ messages in thread
From: Masahiro Yamada @ 2015-05-23 7:55 UTC (permalink / raw)
To: u-boot
Hi Altunbas,
2015-05-21 19:51 GMT+09:00 Altunbas Sabri (DC-IA/EAH2)
<sabri.altunbas@boschrexroth.de>:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included
2015-05-23 3:14 ` Simon Glass
@ 2015-05-26 6:43 ` Altunbas Sabri
0 siblings, 0 replies; 7+ messages in thread
From: Altunbas Sabri @ 2015-05-26 6:43 UTC (permalink / raw)
To: u-boot
>> >-----Urspr?ngliche Nachricht-----
>> >Von: sjg at google.com [mailto:sjg at google.com] Im Auftrag von Simon Glass
>> >Gesendet: Mittwoch, 20. Mai 2015 01:16
>> >An: Altunbas Sabri (DC-IA/EAH2)
>> >Cc: u-boot at lists.denx.de
>> >Betreff: Re: [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio
>> >included
>> >
>> >Hi,
>> >
>> >On 12 May 2015 at 07:53, Altunbas Sabri (DC-IA/EAH2)
>> ><sabri.altunbas@boschrexroth.de> wrote:
>> >> Hi All,
>> >>
>> >> I use u-boot for altera socfpga cyclone 5 and want to include gpio-
>functionality
>> >with
>> >>
>> >> "#define CONFIG_CMD_GPIO"
>> >>
>> >> in file
>> >>
>> >> uboot-socfpga/include/configs/ socfpga_cyclone5.h
>> >>
>> >> and get the following compilation error
>> >>
>> >> ......................
>> >> .....................
>> >> In file included from cmd_gpio.c:12:0:
>> >> /media/tux/work/0/uboot/software/spl_bsp/uboot-
>> >socfpga/include/asm/gpio.h:1:27: fatal error: asm/arch/gpio.h: No such file or
>> >directory
>> >> #include <asm/arch/gpio.h>
>> >> ^
>> >> compilation terminated.
>> >> make[2]: *** Keine Regel vorhanden, um das Target ?.depend?,
>> >> ben?tigt von ?libcommon.o?, zu erstellen. Schluss.
>> >> make[2]: Verzeichnis ?uboot-socfpga/common? wird verlassen
>> >> make[1]: *** [common/libcommon.o] Fehler 2
>> >
>> >I think you need to add that file (even if empty) to:
>> >
>> >arch/arm/mach-socfpga/include/mach
>> >
>> >Regards,
>> >Simon
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>-----Urspr?ngliche Nachricht-----
>Von: sjg at google.com [mailto:sjg at google.com] Im Auftrag von Simon Glass
>Gesendet: Samstag, 23. Mai 2015 05:14
>An: Altunbas Sabri (DC-IA/EAH2)
>Cc: u-boot at lists.denx.de
>Betreff: Re: [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio
>included
>
>Hi,
>
>On 21 May 2015 at 04:51, Altunbas Sabri (DC-IA/EAH2)
><sabri.altunbas@boschrexroth.de> wrote:
>>
>> Hi,
>>
>> Thanks for response
>
>I suggest you cc me on your reply else I may miss it.
ok
>
>>
>> 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.
>
>What version of U-Boot are you using?
The following lines stand in Makefile
VERSION = 2013
PATCHLEVEL = 01
SUBLEVEL = 01
>
>You could try to figure out why it is complaining about the missing
>file and where you should put it for find the problem.
>
>make V=1
I get the same ifo
$ make V=1 uboot
..............
..............
In file included from cmd_gpio.c:12:0:
/media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga/include/asm/gpio.h:1:27: fatal error: asm/arch/gpio.h: No such file or directory
#include <asm/arch/gpio.h>
^
compilation terminated.
make[2]: *** Keine Regel vorhanden, um das Target ?.depend?,
ben?tigt von ?libcommon.o?, zu erstellen. Schluss.
make[2]: Verzeichnis ?/media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga/common? wird verlassen
make[1]: *** [common/libcommon.o] Fehler 2
make[1]: Verzeichnis ?/media/tux/work/00/uboot/software/spl_bsp/uboot-socfpga? wird verlassen
make: *** [uboot] Fehler 2
>
>will give you verbose output.
>
>Also it's best to put your reply at the bottom of your response.
Sorry, we have other netiquette in our company
>
>Regards,
>Simon
>
>>
>> Best regards
>>
>>
Best regards
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included
2015-05-23 7:55 ` Masahiro Yamada
@ 2015-05-26 7:42 ` Altunbas Sabri
0 siblings, 0 replies; 7+ messages in thread
From: Altunbas Sabri @ 2015-05-26 7:42 UTC (permalink / raw)
To: u-boot
>-----Urspr?ngliche Nachricht-----
>Von: Masahiro Yamada [mailto:yamada.masahiro at socionext.com]
>Gesendet: Samstag, 23. Mai 2015 09:56
>An: Altunbas Sabri (DC-IA/EAH2)
>Cc: u-boot at lists.denx.de
>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)
><sabri.altunbas@boschrexroth.de>:
>> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-05-26 7:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-12 13:53 [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included Altunbas Sabri
2015-05-19 23:16 ` Simon Glass
2015-05-21 10:51 ` Altunbas Sabri
2015-05-23 3:14 ` Simon Glass
2015-05-26 6:43 ` Altunbas Sabri
2015-05-23 7:55 ` Masahiro Yamada
2015-05-26 7:42 ` Altunbas Sabri
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.