Microchip-Ethernet / EVB-KSZ9477

Repository for using Microchip EVB-KSZ9477 board. Product Supported: KSZ9477, KSZ9567, KSZ9897, KSZ9896, KSZ8567, KSZ8565, KSZ9893, KSZ9563, KSZ8563, LAN9646, Phys(KSZ9031/9131, LAN8770
77 stars 78 forks source link

Feature/compile fix ubuntu20.04 #81

Open ainguraXmarquiegui opened 3 years ago

ainguraXmarquiegui commented 3 years ago

These modifications have enabled me to successfully build an image on my Ubuntu 20.04 amd64 machine

r315 commented 2 years ago

I have tested this pull request and can confirm that works, Microchip should accept this pull request

marcohabeck commented 2 years ago

Linux Mint 20.3 -> link error too old, exactly any problem why you have to use a stone old system.

/usr/bin/ld: /home/marco/lib/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/build/host-mtd-1.5.2/lib/libmtd.a(libmtd.o): in functiondev_node2num': /home/marco/lib/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/build/host-mtd-1.5.2/lib/libmtd.c:446: undefined reference to major' /usr/bin/ld: /home/marco/lib/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/build/host-mtd-1.5.2/lib/libmtd.c:447: undefined reference tominor' /usr/bin/ld: /home/marco/lib/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/build/host-mtd-1.5.2/lib/libmtd.a(libmtd_legacy.o): in function legacy_get_dev_info': /home/marco/lib/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/build/host-mtd-1.5.2/lib/libmtd_legacy.c:254: undefined reference tomajor' /usr/bin/ld: /home/marco/lib/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/build/host-mtd-1.5.2/lib/libmtd_legacy.c:255: undefined reference to minor' collect2: error: ld returned 1 exit status make[2]: *** [common.mk:71: /home/marco/lib/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/build/host-mtd-1.5.2/flash_erase] Fehler 1 make[1]: *** [package/pkg-generic.mk:204: /home/marco/lib/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/build/host-mtd-1.5.2/.stamp_built] Fehler 2 make: *** [Makefile:41: _all] Fehler 2