页次: 1
@erbuziren
大佬问题解决了吗?我也遇到了你类似的问题,我的原理图如下:
设备树:
&mdio {
ext_rmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
&emac {
use_ephy25m = <1>;
pinctrl-0 = <&rmii_pg_pins>;
pinctrl-names = "default";
phy-handle = <&ext_rmii_phy>;
phy-mode = "rmii";
phy-supply = <®_3v3>;
phy-rst = <&pio 6 6 GPIO_ACTIVE_HIGH>;
tx-delay = <7>; /*2~4*/
rx-delay = <31>;
status = "okay";
};
&pio {
i2c2_pd_pins: i2c2-pd-pins {
pins = "PE12", "PE13";
function = "i2c2";
};
rmii_pg_pins: rmii-pg-pins {
pins = "PG0", "PG1", "PG2", "PG3", "PG4",
"PG5", "PG11", "PG12", "PG13", "PG14", "PG15";
function = "emac";
};
};
调试情况:
我克隆下来后,编译报错:
配置:
make ARCH=arm CROSS_COMPILE=../gcc-linaro-7.5.0-2019.12-rc1-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- mangopi_dual_defconfig
编译:
make ARCH=arm CROSS_COMPILE=../gcc-linaro-7.5.0-2019.12-rc1-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
报错:
LD spl/u-boot-spl
/bin/sh: 1: ../gcc-linaro-7.5.0-2019.12-rc1-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: not found
scripts/Makefile.spl:526: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 127
Makefile:2075: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
我克隆下来后,编译报错:
配置:
make ARCH=arm CROSS_COMPILE=../gcc-linaro-7.5.0-2019.12-rc1-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- mangopi_dual_defconfig
编译:
make ARCH=arm CROSS_COMPILE=../gcc-linaro-7.5.0-2019.12-rc1-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
报错:
LD spl/u-boot-spl
/bin/sh: 1: ../gcc-linaro-7.5.0-2019.12-rc1-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: not found
scripts/Makefile.spl:526: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 127
Makefile:2075: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
@10*****231
我用芒果系统,编程的SDK里面自带的lvgl能成功运行,系统编译可以按这里来:
https://github.com/mangopi-sbc/Tina-Linux
我自己编译的lvgl应用也能运行于板子上,参考资料可以按以下连接来:
https://blog.csdn.net/pingxiaozhao/article/details/119744470
页次: 1