Last active
January 26, 2025 13:19
-
-
Save ciniml/de14b22991c16fbe76558fe86eda8565 to your computer and use it in GitHub Desktop.
cross compile modules for M5Stack Module LLM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt install make gcc libssl-dev libncurses-dev git dpkg-dev flex bison dwarves libelf-dev | |
| sudo apt install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu | |
| mkdir ModuleLLM | |
| cd ModuleLLM | |
| curl -OL https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/linux/llm/linux-4.19.125-head.tar.gz | |
| curl -OL https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.125.tar.gz | |
| tar xf linux-4.19.125-head.tar.gz | |
| tar xf linux-4.19.125.tar.gz | |
| cd linux-4.19.125 | |
| cp ../linux-4.19.125-head/.config . | |
| make menuconfig # お好きな設定をどうぞ | |
| make modules -j`nproc` ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- | |
| # できたモジュールを適当にModuleLLMにコピーする |
Author
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Added some basic dependencies required to build the kernel. Thanks でべ-san https://twitter.com/devemin/status/1856838114842649001