All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@free-electrons.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Ethernet via USB on Sinlinx SinA33
Date: Fri, 25 Mar 2016 18:14:50 +0100	[thread overview]
Message-ID: <56F5720A.5000805@free-electrons.com> (raw)

Hi,

I am trying to get Ethernet to work through the USB port of the Sinlinx
SinA33 on U-Boot to use TFTP to get the kernel and dtb files.

However, I am getting 'data abort' when using dhcp or tftp after adding:
#define CONFIG_USB_HOST_ETHER
#define CONFIG_USB_ETHER_ASIX

to include/configs/sunxi-common.h and checking CONFIG_USB_EHCI_HCD as
told in the documentation [1]

I tested this configuration with the C.H.I.P. and it is working well.

Steps to reproduce:

1) Add the following lines to include/configs/sunxi-common.h:

#define CONFIG_USB_HOST_ETHER
#define CONFIG_USB_ETHER_ASIX

2) make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- Sinlinx_SinA33_defconfig
3) make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
4) Check CONFIG_USB_EHCI_HC and save configuration
5) make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j$(nproc)
6) Prepare SDCard:
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
7) Boot the board and run dhcp or tftp
8) Get 'data abort' and board gets reset (ethact is also not defined)

The log file is attached.

Thank you,

Quentin

[1] https://github.com/lentinj/u-boot/blob/master/doc/README.usb#L132
-------------- next part --------------
U-Boot SPL 2016.01-dirty (Mar 25 2016 - 17:54:10)
DRAM: 1024 MiB
Trying to boot from MMC


U-Boot 2016.01-dirty (Mar 25 2016 - 17:54:10 +0100) Allwinner Technology

CPU:   Allwinner A33 (SUN8I)
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 
Warning: asix_eth MAC addresses don't match:
Address in SROM is         00:80:8e:8a:95:1b
Address in environment is  02:44:08:0d:8d:1a
2 USB Device(s) found
Hit any key to stop autoboot:  0 
=> print ipaddr
## Error: "ipaddr" not defined
=> dhcp
BOOTP broadcast 1
DHCP client bound to address 192.168.1.43 (217 ms)
*** Warning: no boot file name; using 'C0A8012B.img'
Using asix_eth device
TFTP from server 0.0.0.0; our IP address is 192.168.1.43; sending through gateway 192.168.1.1
Filename 'C0A8012B.img'.
Load address: 0x42000000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
data abort
pc : [<7ef7be3c>]          lr : [<7efb107c>]
reloc pc : [<4a015e3c>]    lr : [<4a04b07c>]
sp : 7af41150  ip : 0d084402     fp : 7af4aa70
r10: 00000000  r9 : 7af45ee8     r8 : 0000000a
r7 : 00000000  r6 : 7af57040     r5 : 7af56ff8  r4 : 7efb1084
r3 : 7af56f88  r2 : 00000000     r1 : 000000b8  r0 : ffc2003d
Flags: NzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

             reply	other threads:[~2016-03-25 17:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-25 17:14 Quentin Schulz [this message]
2016-03-28 12:56 ` [U-Boot] Ethernet via USB on Sinlinx SinA33 Hans de Goede
2016-03-29  6:38   ` Quentin Schulz
2016-03-29  9:59     ` Hans de Goede
2016-04-06 15:24     ` Hans de Goede
2016-04-11 10:25       ` Quentin Schulz
2016-04-11 11:07         ` Hans de Goede
2016-04-11 11:32           ` Quentin Schulz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56F5720A.5000805@free-electrons.com \
    --to=quentin.schulz@free-electrons.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.