Re: [U-Boot] Unable to compile

2016-04-22 Thread Kevin Welsh
> -Original Message-
> From: Tom Rini [mailto:tr...@konsulko.com]
> Sent: Friday, April 22, 2016 9:50 AM
> To: Kevin Welsh <kwe...@welshtechnologies.com>
> Cc: u-boot@lists.denx.de
> Subject: Re: [U-Boot] Unable to compile
> 
> On Fri, Apr 22, 2016 at 03:33:13AM +, Kevin Welsh wrote:
> > After moving to v2006.03, I can no longer compile with my existing
> defconfig:
> >
> >
> > cmd/built-in.o: In function `do_fastboot':
> > /home/kdubious/u-boot/cmd/fastboot.c:34: undefined reference to
> `g_dnl_clear_detach'
> > /home/kdubious/u-boot/cmd/fastboot.c:35: undefined reference to
> `g_dnl_register'
> > /home/kdubious/u-boot/cmd/fastboot.c:39: undefined reference to
> `g_dnl_board_usb_cable_connected'
> > /home/kdubious/u-boot/cmd/fastboot.c:47: undefined reference to
> `g_dnl_detach'
> > /home/kdubious/u-boot/cmd/fastboot.c:57: undefined reference to
> `g_dnl_unregister'
> > /home/kdubious/u-boot/cmd/fastboot.c:58: undefined reference to
> `g_dnl_clear_detach'
> > cmd/built-in.o: In function `do_usb_mass_storage':
> > /home/kdubious/u-boot/cmd/usb_mass_storage.c:159: undefined
> reference to `fsg_init'
> > /home/kdubious/u-boot/cmd/usb_mass_storage.c:166: undefined
> reference to `g_dnl_register'
> > /home/kdubious/u-boot/cmd/usb_mass_storage.c:176: undefined
> reference to `g_dnl_board_usb_cable_connected'
> > /home/kdubious/u-boot/cmd/usb_mass_storage.c:183: undefined
> reference to `g_dnl_board_usb_cable_connected'
> > /home/kdubious/u-boot/cmd/usb_mass_storage.c:206: undefined
> reference to `fsg_main_thread'
> > /home/kdubious/u-boot/cmd/usb_mass_storage.c:222: undefined
> reference to `g_dnl_unregister'
> > cmd/built-in.o: In function `do_dfu':
> > /home/kdubious/u-boot/cmd/dfu.c:56: undefined reference to
> `g_dnl_clear_detach'
> > /home/kdubious/u-boot/cmd/dfu.c:57: undefined reference to
> `g_dnl_register'
> > /home/kdubious/u-boot/cmd/dfu.c:59: undefined reference to
> `g_dnl_detach'
> > /home/kdubious/u-boot/cmd/dfu.c:106: undefined reference to
> `g_dnl_unregister'
> > /home/kdubious/u-boot/cmd/dfu.c:114: undefined reference to
> `g_dnl_clear_detach'
> > /home/kdubious/u-boot/cmd/dfu.c:27: undefined reference to
> `dfu_defer_flush'
> > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > assertion fail ../../bfd/elf32-arm.c:7696
> > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > assertion fail ../../bfd/elf32-arm.c:7696
> > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > assertion fail ../../bfd/elf32-arm.c:7696
> > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > assertion fail ../../bfd/elf32-arm.c:7696
> > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > assertion fail ../../bfd/elf32-arm.c:7696
> > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > assertion fail ../../bfd/elf32-arm.c:7696
> > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > assertion fail ../../bfd/elf32-arm.c:7696
> > arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not
> > found in the linker script
> > arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation
> >
> >
> > Am doing something wrong?
> 
> It's likely some option to enable the gadget controller you use has moved to
> Kconfig, re-run menuconfig/config/etc and enable it.
> 
> --
> Tom

Hi Tom,

That seems to have fixed it where I can build, but now u-boot fails:

Net:   eth0: ethernet@01c5
starting USB...
USB0:   undefined instruction
pc : [<6008>]  lr : [<7ef843b8>]
reloc pc : []lr : [<4a0363b8>]
sp : 7af25918  ip :  fp : c1c20bf2
r10: 7af2fa70  r9 : 7af2dee0 r8 : 01c14000
r7 :   r6 :  r5 :   r4 : 7af2fa80
r3 : 6000  r2 : 015a70dc r1 : 01c20c00  r0 : 7af2fa80
Flags: Nzcv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

Kevin

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Unable to compile

2016-04-22 Thread Kevin Welsh
After moving to v2006.03, I can no longer compile with my existing defconfig:


cmd/built-in.o: In function `do_fastboot':
/home/kdubious/u-boot/cmd/fastboot.c:34: undefined reference to 
`g_dnl_clear_detach'
/home/kdubious/u-boot/cmd/fastboot.c:35: undefined reference to `g_dnl_register'
/home/kdubious/u-boot/cmd/fastboot.c:39: undefined reference to 
`g_dnl_board_usb_cable_connected'
/home/kdubious/u-boot/cmd/fastboot.c:47: undefined reference to `g_dnl_detach'
/home/kdubious/u-boot/cmd/fastboot.c:57: undefined reference to 
`g_dnl_unregister'
/home/kdubious/u-boot/cmd/fastboot.c:58: undefined reference to 
`g_dnl_clear_detach'
cmd/built-in.o: In function `do_usb_mass_storage':
/home/kdubious/u-boot/cmd/usb_mass_storage.c:159: undefined reference to 
`fsg_init'
/home/kdubious/u-boot/cmd/usb_mass_storage.c:166: undefined reference to 
`g_dnl_register'
/home/kdubious/u-boot/cmd/usb_mass_storage.c:176: undefined reference to 
`g_dnl_board_usb_cable_connected'
/home/kdubious/u-boot/cmd/usb_mass_storage.c:183: undefined reference to 
`g_dnl_board_usb_cable_connected'
/home/kdubious/u-boot/cmd/usb_mass_storage.c:206: undefined reference to 
`fsg_main_thread'
/home/kdubious/u-boot/cmd/usb_mass_storage.c:222: undefined reference to 
`g_dnl_unregister'
cmd/built-in.o: In function `do_dfu':
/home/kdubious/u-boot/cmd/dfu.c:56: undefined reference to `g_dnl_clear_detach'
/home/kdubious/u-boot/cmd/dfu.c:57: undefined reference to `g_dnl_register'
/home/kdubious/u-boot/cmd/dfu.c:59: undefined reference to `g_dnl_detach'
/home/kdubious/u-boot/cmd/dfu.c:106: undefined reference to `g_dnl_unregister'
/home/kdubious/u-boot/cmd/dfu.c:114: undefined reference to `g_dnl_clear_detach'
/home/kdubious/u-boot/cmd/dfu.c:27: undefined reference to `dfu_defer_flush'
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail 
../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail 
../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail 
../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail 
../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail 
../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail 
../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail 
../../bfd/elf32-arm.c:7696
arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not found in the 
linker script
arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation


Am doing something wrong?
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] ITEAD Board (A20) fails to communicate on boot unless UART is connected

2016-04-08 Thread Kevin Welsh
I'm trying to resolve a strange networking issue with the ITEAD Core EVB + 
AW2041 module.

If I connect all 3 UART wires (GND, RCV & TX) between the board and a USB UART 
device: I get an IP 100% of the time.
If I connect only TX & RCV: I get an IP 100%.
If I connect TX & GND, I get an IP 100%.

But, if I only connect RCV and GND... I do not get an IP.

Using WireShark on the DHCP server, I see no traffic is generated by the device.

If I connect the UART after booting, it will not work, even if I send DHCPCD 
commands, or reboot.

The only thing that seems to work is if I apply power while the UART is 
connected.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot