[U-Boot] Ethernet via USB on Sinlinx SinA33
Quentin Schulz
quentin.schulz at free-electrons.com
Fri Mar 25 18:14:50 CET 2016
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 ...
More information about the U-Boot
mailing list