Temat: Kompilacja OpenWrt CC/LEDE na PC Engines APU2
Stało się, zamówiłem APU.2C4 i do tego kartę na AR9280.
Ogarniam temat kompilacji OpenWrt CC na to urządzenie.
Znalazłem w sieci wsparcie do obsługi LED i GPIO - T U T A J oraz takie info ale tyczyło się LEDE:
Optimising LEDE for the APU2
GCC optimisation
GCC has its own target for the Jaguar SoCs. You can optimise by using the -march=btver2 -mtune=btver2 GCC options, with a recent GCC version. In the buildroot, enable Advanced configuration options (for developers), then tick Target Options and add the compiler flags to Target Optimizations. Do keep in mind though this will greatly limit your testing capabilites - I haven't found a way to emulate a CPU supporting the same feature set yet, if you do, let me know, that would greatly simplify testing. For now I build a separate generic x86_64 build so I can test it in a VM, before deploying it.
AES-NI
One of the cooler things with the APU2 is it supports AES-NI, which is handy for applications relying on encryption (e.g. a VPN). There is no kmod-aes-ni package yet, so for now you'll have to do a bit of hacking. You cannot solve this through the LEDE image generator, the only way to get this is through the buildroot.
Add the following to target/linux/x86/64/config-default:
CONFIG_CRYPTO_AES_X86_64=y
The CRYPTO_AES_X86_64 symbol should enable CRYPTO_AES_NI_INTEL as well.
Enable kmod-crypto-aead through make menuconfig
After that, you can run a regular build. To make sure everything goes according to plan, you can check during compilation:
build_dir/target-x86_64_musl-1.1.15/linux-x86_64/linux-4.4.18$ grep AES_ .config
CONFIG_CRYPTO_AES_X86_64=y
CONFIG_CRYPTO_AES_NI_INTEL=yDodać to "GCC optimisation" - nie bardzo rozumiem to objaśnienie po angielsku?
Co do AES NI znalazłem taką opcję po wydaniu make "kernel_menuconfig" ale nie jestem pewien kiedy wprowadzić zmiany w kernelu?
@Ceazary pisze:
Czasami (w bardzo rzadkich przypadkach) może przydać się zmiana opcji kompilacji kernela. Można to zrobić poleceniem (po uprzedniej kompilacji systemu!)Czyli "make menuconfig" -> "make" -> " make kernel_menuconfig" -> "make" ?
Nawiązując do T E G O tematu, pytanie do @pepe2k - co zaznaczyć aby uzyskać skalowanie na APU2 przy tym procesorze GX-412TC ?