Skip to content

Instantly share code, notes, and snippets.

@ciniml
Last active January 26, 2025 13:19
Show Gist options
  • Select an option

  • Save ciniml/de14b22991c16fbe76558fe86eda8565 to your computer and use it in GitHub Desktop.

Select an option

Save ciniml/de14b22991c16fbe76558fe86eda8565 to your computer and use it in GitHub Desktop.
cross compile modules for M5Stack Module LLM
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にコピーする
@ciniml
Copy link
Copy Markdown
Author

ciniml commented Nov 14, 2024

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

@ciniml
Copy link
Copy Markdown
Author

ciniml commented Nov 14, 2024

To enable common USB devices.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment