[U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

Wills Wang wills.wang at live.com
Fri May 20 18:43:34 CEST 2016



On 05/20/2016 07:59 PM, Marek Vasut wrote:
> On 05/20/2016 06:18 AM, Wills Wang wrote:
>>
>> On 05/08/2016 11:22 PM, Marek Vasut wrote:
>>> On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote:
>>>
>>> Hi!
>>>
>>>> Am 05.05.2016 um 21:34 schrieb Marek Vasut:
>>>>> Add ethernet driver for the AR933x and AR934x Atheros MIPS machines.
>>>>> The driver could be easily extended to other WiSoCs.
>> How to make this patch work on ar933x board?
>> I apply this patch on the top of mips/next branch and enable this option
>> in menuconfig,
>> but i can't see any boot information for Ethernet.
> The Kconfig conversion is not complete. See the tplink_wdr4300_defconfig
> for the necessary options, it should be at least these:
>
> CONFIG_CMD_NET=y
> CONFIG_CMD_NFS=y
> CONFIG_CMD_DHCP=y
> CONFIG_CMD_PING=y
> CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_DM_ETH=y
> CONFIG_AG7XXX=y
>
I add these options and boot up as the following, but my ar933x board 
don't work,
the link indicator led on router is off when plug in the cable and 
execute "dhcp" command.

U-Boot 2016.05-gfe4be7c-dirty (May 21 2016 - 00:10:47 +0800)

Atheros AR9330 rev 1
Model: AP121 Reference Board
DRAM:  64 MiB
SF: Detected W25Q64CV with page size 256 Bytes, erase size 4 KiB, total 
8 MiB, mapped at 9f000000
*** Warning - bad CRC, using default environment

In:    uart at 18020000
Out:   uart at 18020000
Err:   uart at 18020000
Net:
Warning: eth at 0x19000000 (eth0) using random MAC address - 6a:62:33:b1:0d:2e
eth0: eth at 0x19000000
Hit any key to stop autoboot:  0
ap121 # dhcp
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
ag7xxx: Out of TX DMA descriptors!
BOOTP broadcast 15
ag7xxx: Out of TX DMA descriptors!
BOOTP broadcast 16
ag7xxx: Out of TX DMA descriptors!
BOOTP broadcast 17
ag7xxx: Out of TX DMA descriptors!

Retry time exceeded; starting again
ap121 #

>> By the way, the DT node "compatible" in driver is different from
>> arch/mips/dts/ar933x.dtsi
> OK, tweak that one to "qca,ag933x-mac" in the DTS.
>
> , and
>> the following compiling error occur because of commit
>> 4feefdcfe916113ac6e1837ea22857f25fe1771c:
> Enable CONFIG_CLK=y in your defconfig .
>
>> drivers/usb/host/built-in.o: In function `ehci_usb_probe':
>> drivers/usb/host/ehci-generic.c:(.text.ehci_usb_probe+0x40): undefined
>> reference to `clk_get_by_index'
>> drivers/usb/host/ehci-generic.c:(.text.ehci_usb_probe+0x4c): undefined
>> reference to `clk_get_by_index'
>> drivers/usb/host/ehci-generic.c:(.text.ehci_usb_probe+0x60): undefined
>> reference to `clk_enable'
>> drivers/usb/host/ehci-generic.c:(.text.ehci_usb_probe+0x68): undefined
>> reference to `clk_enable'
>>
>

-- 
Best Regards
Wills



More information about the U-Boot mailing list