dtb-$(CONFIG_ARCH_HI3xxx) += hi3620-hi4511.dtb
dtb-$(CONFIG_ARCH_HIX5HD2) += hisi-x5hd2-dkb.dtb
dtb-$(CONFIG_ARCH_HI3516CV300) += hi3516cv300-demb.dtb
ifeq ($(CONFIG_SMP),y)
dtb-$(CONFIG_ARCH_HI3519) += hisi-hi3519-hmp-demb.dtb
dtb-$(CONFIG_ARCH_HI3519V101) += hisi-hi3519v101-hmp-demb.dtb
dtb-$(CONFIG_ARCH_HI3559) += hisi-hi3559-hmp-demb.dtb
else
dtb-$(CONFIG_ARCH_HI3519) += hisi-hi3519-demb.dtb
dtb-$(CONFIG_ARCH_HI3519V101) += hisi-hi3519v101-demb.dtb
dtb-$(CONFIG_ARCH_HI3559) += hisi-hi3559-demb.dtb
endif
方法、
在内核dts 文件中,修改RMII。
文件所在路径:
..\Hi3519V101_SDK_V1.0.1.0\osdrv\opensource\kernel\linux-3.18.y\arch\arm\boot\dts\
需要修改的文件:
hisi-hi3519v101-demb.dts hisi-hi3519v101-hmp-demb.dts
打开:hisi-hi3519v101-demb.dts +180
&higmac {
phy-handle = <ðphy>;
phy-mode = "rgmii"; // ==> 将rgmii 修改成rmii
};
修改后:
&higmac {
phy-handle = <ðphy>;
phy-mode = "rmii";
};
同样打开:hisi-hi3519v101-hmp-demb.dts +229
&higmac {
compatible = "hisilicon,higmac-v3", "hisilicon,higmac";
phy-handle = <ðphy>;
phy-mode = "rgmii"; // ==> 将rgmii 修改成rmii
};
修改后:
&higmac {
compatible = "hisilicon,higmac-v3", "hisilicon,higmac";
phy-handle = <ðphy>;
phy-mode = "rmii";
};
然后编译内核,烧录。
烧写映像文件到SPI Flash
以16M SPI Flash为例。
1)地址空间说明
| 1M | 3M | 12M |
|---------------|---------------|---------------|
| boot | kernel | rootfs |
以下的操作均基于图示的地址空间分配,您也可以根据实际情况进行调整。
2)烧写u-boot
mw.b 82000000 ff 100000
tftp 0x82000000 u-boot-hi3519.bin
sf probe 0
sf erase 0 100000
sf write 82000000 0 100000
reset
请注意,reset之后需要重新设置网络参数。
3)烧写内核
mw.b 82000000 ff 300000
tftp 82000000 uImage_hi3519
sf probe 0
sf erase 100000 300000
sf write 82000000 100000 300000
4)烧写文件系统
mw.b 82000000 ff C00000
tftp 0x82000000 rootfs_hi3519_64k.jffs2
sf probe 0
sf erase 400000 C00000
sf write 82000000 400000 C00000
5)设置启动参数(注意linux-3.18.y kernel默认文件系统只读,需要在bootargs中加入rw选项,文件系统才可读写)
setenv bootargs 'mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 rw mtdparts=hi_sfc:1M(boot),3M(kernel),12M(rootfs)'
setenv bootcmd 'sf probe 0;sf read 0x82000000 0x100000 0x300000;bootm 0x82000000'
sa