u-boot-brain/board/solidrun/mx6cuboxi
Fabio Estevam 712be3eef6 mx6cuboxi: Fix Ethernet PHY detection problem
mx6cuboxi sometimes fails to recognize the Ethernet PHY:

Net:   Phy 0 not found

The explanation for this behavior comes from from Rabeeh Khoury:

"The LED_ACT pin on the carrier-one boards had a pull down that
forces the phy address to 0x0; where on CuBox-i and the production
HummingBoard that pin is connected directly to LED that depending
on the pull down strength of the LED it might be sampled as '0' or '1' thus
the phy address might appear as either address 0x0 or 0x4."

"This is AR8035 implementation; in reset stage the LED pin is configured as
input, and pull up/down does matter. In this case it configures the PHY
address.

After reset is deasserted the same LED pin becomes output and then
according to the previous pull/up it should be active high/low"

One way to properly fix this behavior is to place external pull-up/down
resistors in the LED line, but from a software standpoint we can fix it
by telling phy_find_by_mask() to scan the PHY at addresses
0x0 and 0x4.

Reported-by: Vagrant Cascadian <vagrant@aikidev.net>
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Tested-By: Vagrant Cascadian <vagrant@aikidev.net>
2015-05-15 19:20:47 +02:00
..
Kconfig mx6: Add initial SPL support for HummingBoard-i2eX 2015-04-22 14:39:06 +02:00
MAINTAINERS mx6cuboxi: Fix the defconfig name 2015-04-27 13:13:57 +02:00
Makefile mx6: Add initial SPL support for HummingBoard-i2eX 2015-04-22 14:39:06 +02:00
mx6cuboxi.c mx6cuboxi: Fix Ethernet PHY detection problem 2015-05-15 19:20:47 +02:00
README mx6: Add initial SPL support for HummingBoard-i2eX 2015-04-22 14:39:06 +02:00

How to use U-boot on Solid-run mx6 hummingboard
-----------------------------------------------

- Build U-boot for hummingboard:

$ make mrproper
$ make mx6cuboxi_defconfig
$ make

This will generate the SPL image called SPL and the u-boot.img.

- Flash the SPL image into the SD card:

sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync

- Flash the u-boot.img image into the SD card:

sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync

- Insert the SD card in the hummingboard, power it up and U-boot messages
should come up.