sipeed / LonganPi-3H-SDK

LonganPi 3H SDK
GNU General Public License v3.0
28 stars 14 forks source link

Feature/k8s modules #14

Closed elasticdotventures closed 7 months ago

elasticdotventures commented 7 months ago

This is my attempt to solve https://github.com/sipeed/LonganPi-3H-SDK/issues/12

This patch file enables overlayfs, ipv6, br_netfilter, and industrial i/o (modbus) module builds

the basic problem is that this hardware requires a custom kernel, and running make menuconfig borks the arch/arm64/configs/longanpi_3h_defconfig file (even just saving the file with no changes will bork it! due to the patches)

the solution of course is to build yer own patchfile, with ONLY the changes to build the modules you need. to do this:

cd build/linux
git checkout -b break-this
git add  arch/arm64/configs/longanpi_3h_defconfig
git commit -m "working versio"
make menuconfig
# load .. arch/arm64/configs/longanpi_3h_defconfig
# save .. (with no changes)
git checkout -b broken-build-before-config
git add  arch/arm64/configs/longanpi_3h_defconfig
git commit -m "this version is broked"
make menuconfig
# load arch/arm64/configs/longanpi_3h_defconfig
# .. make changes, then save
git add  arch/arm64/configs/longanpi_3h_defconfig
git commit -m "."
git format-patch HEAD -1
# restore your version
git am <filename> .
elasticdotventures commented 7 months ago

This approach doesn't work.