First, compile the UBOOTSDK document to write more clearly, write a need to pay attention to the place. 1. Before using the SDK and others to the already compiled Uboot, using the FastBoot tool can not be brushed on the board. Finally I use the SDK Uboot source code to compile the successful brush in, do not know the details of what the problem, but has not tried a bit should not be. 2. The document says to use an Excel table to do the configuration and then use mkboot.sh the configuration file and Uboot.bin file together to generate the finally uboot, I have been tangled that Excel can not be configured, the number of the parameters inside can not understand. Who knows, in fact, it doesn't have a big impact. 3. Before using someone else's uboot brush to the board has been prompted SPI does not recognize, with their own compiled can be, perhaps I use the latest SDK,SPI support is more than it.
Second, change PHY address
Before the board in fact there is a uboot, but the network is not through, this is the PHY address set problem. As a matter of fact, I still don't know much about PHY addresses. PHY should be the physical layer (physical) of the network OSI model, and the Hi3531 chip supports a dual NIC, so there are two PHY addresses, PHYADDR0,PHYADDR1, which is now going to set the PHY address right, Detailed principles do not understand, anyway, try it. Netizens have given a lot of help, the following is a netizen from HiSilicon side of the email reply content.
1. Methods under the kernel:
Execute under the Osdvr/kernel/linux-3.0.y folder
"Make Arch=arm Cross_compile=arm-hisiv200-linux-menuconfig"
Under the Menuconfig menu, select the following options:
Device Drivers--->
[*] Network Device Support--->
[*] Ethernet (Mbit)--->
<M> STMicroelectronics/Ethernet Driver--->
(1) Stmmac MAC #0 PHY ID << indicates that the PHY address is 1.
(2) Stmmac MAC #1 PHY ID << indicates that the PHY address is 2.
2. In the U-boot code, change methods such as the following:
In the U-boot code, change the "include\configs\godnet.h" file:
#define Config_net_stmmac
#define CONFIG_TNK
#ifdef CONFIG_NET_STMMAC
#define STMMAC_GMACADDR (0x101c0000)
#define STMMAC_DMAADDR (0x101c1000)
#define STMMAC_IOSIZE (0x10000)
#define STMMAC_FRQDIV (0)
#define STMMAC_PHYADDR0 (1) << indicates that the PHY address is 1.
#define STMMAC_PHYADDR1 (2) << indicates that the PHY address is 2.
#define STMMAC_PHYNAME "0:01"
#define Stmmac_rgmii
#define Config_phy_gige
#endif/* Config_net_stmmac */
I haven't tried it in detail!
This is hisilicon for me.
look at at least the location of the uboot changes, but at the beginning of the change in the bottom 0:01 similar to
hi3531 SDK compile Uboot, change PHY address, change uboot parameters.