# # 2.15.4 is 32Bit for MC1,MC2,MC4,MC6C Devices # Commands to create opensource parts of MC-Firmware Version 2.15.4 # Building instructions for Kernel 6.18.18 and Buildroot revision ffbffaea9f3fa08a5bdbad772441ee8e0e506401: # # legal-info can be downloaded separately at https://download.modas.com/SourceNew/legal-info-2.15.4.tar.bz2 # The NOTICE file referencing all licenses can be downloaded at https://download.modas.com/SourceNew/NOTICE-2.15.4.txt or https://download.modas.com/SourceNew/NOTICE-2.15.4.html # The SBOM file in CycloneDX format can be downloaded at https://download.modas.com/SourceNew/2.15.4.cdx.json # # 3.15.4 is 64Bit for MC2LX8 Devices # Commands to create opensource parts of MC-Firmware Version 3.15.4 # Building instructions for Kernel 6.18.18 and Buildroot revision ffbffaea9f3fa08a5bdbad772441ee8e0e506401: # # legal-info can be downloaded separately at https://download.modas.com/SourceNew/legal-info-3.15.4.tar.bz2 # The NOTICE file referencing all licenses can be downloaded at https://download.modas.com/SourceNew/NOTICE-3.15.4.txt or https://download.modas.com/SourceNew/NOTICE-3.15.4.html # The SBOM file in CycloneDX format can be downloaded at https://download.modas.com/SourceNew/3.15.4.cdx.json # # # the legal-info-*.tar.bz2 contain the complete corresponding source code for all GPL-, LGPL- and # other open source components included in the respective firmware version. # This includes all source tarballs of the Buildroot packages, the toolchain # (GCC, binutils, libraries) required to fully rebuild the open source # parts of the firmware. # # # # Compile open source parts of firmware # rm -rf 2.15.4 mkdir 2.15.4 cd 2.15.4 # Downloading Buildroot source package files # Get buildroot from git git clone git://git.buildroot.net/buildroot # Enter directory buildroot cd buildroot # Checkout revision ffbffaea9f3fa08a5bdbad772441ee8e0e506401 git checkout ffbffaea9f3fa08a5bdbad772441ee8e0e506401 git reset --hard # Apply patch custom buildroot changes rm -f 2.15.4.BR.ffbffaea9f3fa08a5bdbad772441ee8e0e506401.diff wget -q https://download.modas.com/SourceNew/2.15.4.BR.ffbffaea9f3fa08a5bdbad772441ee8e0e506401.diff git apply -v 2.15.4.BR.ffbffaea9f3fa08a5bdbad772441ee8e0e506401.diff # Buildroot prepared now cd .. # for 2.15.4: rm -rf BRO mkdir BRO; cd BRO wget -q https://download.modas.com/SourceNew/2.15.4.BR.config.ffbffaea9f3fa08a5bdbad772441ee8e0e506401 -O .config wget -q https://download.modas.com/SourceNew/2.15.4.Kern.config -O ../buildroot/kern.config make O=`pwd` -C ../buildroot/ clean make O=`pwd` -C ../buildroot/ olddefconfig make O=`pwd` -C ../buildroot/ cd .. # for 3.15.4: rm -rf BRO8 mkdir BRO8; cd BRO8 wget -q https://download.modas.com/SourceNew/3.15.4.BR.config.ffbffaea9f3fa08a5bdbad772441ee8e0e506401 -O .config wget -q https://download.modas.com/SourceNew/3.15.4.Kern.config -O ../buildroot/kern.config make O=`pwd` -C ../buildroot/ clean make O=`pwd` -C ../buildroot/ olddefconfig make O=`pwd` -C ../buildroot/ cd .. # Buildroot finished. # Building the linux kernel: mkdir Kernel cd Kernel # for 2.15.4: wget -q https://download.modas.com/SourceNew/Linux_6.18.18.tar.bz2 tar jxf Linux_6.18.18.tar.bz2 mkdir build wget -q https://download.modas.com/SourceNew/2.15.4.Kern.config -O ./build/.config make CROSS_COMPILE=arm-linux-gnueabi- O=./build ARCH=arm -j16 make CROSS_COMPILE=arm-linux-gnueabi- O=./build ARCH=arm -j16 modules cd .. mkdir Kernel8 cd Kernel8 # for 3.15.4: wget -q https://download.modas.com/SourceNew/Linux_6.18.18.tar.bz2 tar jxf Linux_6.18.18.tar.bz2 mkdir build8 wget -q https://download.modas.com/SourceNew/3.15.4.Kern.config -O ./build8/.config make CROSS_COMPILE=aarch64-linux-gnu- O=./build8 ARCH=arm64 -j16 make CROSS_COMPILE=aarch64-linux-gnu- O=./build8 ARCH=arm64 -j16 modules