# # 2.15.7 is 32Bit for MC1,MC2,MC4,MC6C Devices # Commands to create opensource parts of MC-Firmware Version 2.15.7 # Building instructions for Kernel 6.18.42 and Buildroot revision cb857ba4c87a93e5265a9e4a3f32071abf39e14a: # # legal-info can be downloaded separately at https://download.modas.com/SourceNew/legal-info-2.15.7.tar.bz2 # The NOTICE file referencing all licenses can be downloaded at https://download.modas.com/SourceNew/NOTICE-2.15.7.txt or https://download.modas.com/SourceNew/NOTICE-2.15.7.html # The SBOM file in CycloneDX format can be downloaded at https://download.modas.com/SourceNew/2.15.7.cdx.json # # 3.15.7 is 64Bit for MC2LX8 Devices # Commands to create opensource parts of MC-Firmware Version 3.15.7 # Building instructions for Kernel 6.18.42 and Buildroot revision cb857ba4c87a93e5265a9e4a3f32071abf39e14a: # # legal-info can be downloaded separately at https://download.modas.com/SourceNew/legal-info-3.15.7.tar.bz2 # The NOTICE file referencing all licenses can be downloaded at https://download.modas.com/SourceNew/NOTICE-3.15.7.txt or https://download.modas.com/SourceNew/NOTICE-3.15.7.html # The SBOM file in CycloneDX format can be downloaded at https://download.modas.com/SourceNew/3.15.7.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.7 mkdir 2.15.7 cd 2.15.7 # Downloading Buildroot source package files # Get buildroot from git git clone git://git.buildroot.net/buildroot # Enter directory buildroot cd buildroot # Checkout revision cb857ba4c87a93e5265a9e4a3f32071abf39e14a git checkout cb857ba4c87a93e5265a9e4a3f32071abf39e14a git reset --hard # Apply patch custom buildroot changes rm -f 2.15.7.BR.cb857ba4c87a93e5265a9e4a3f32071abf39e14a.diff wget -q https://download.modas.com/SourceNew/2.15.7.BR.cb857ba4c87a93e5265a9e4a3f32071abf39e14a.diff git apply -v 2.15.7.BR.cb857ba4c87a93e5265a9e4a3f32071abf39e14a.diff # Buildroot prepared now cd .. # for 2.15.7: rm -rf BRO mkdir BRO; cd BRO wget -q https://download.modas.com/SourceNew/2.15.7.BR.config.cb857ba4c87a93e5265a9e4a3f32071abf39e14a -O .config wget -q https://download.modas.com/SourceNew/2.15.7.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.7: rm -rf BRO8 mkdir BRO8; cd BRO8 wget -q https://download.modas.com/SourceNew/3.15.7.BR.config.cb857ba4c87a93e5265a9e4a3f32071abf39e14a -O .config wget -q https://download.modas.com/SourceNew/3.15.7.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.7: wget -q https://download.modas.com/SourceNew/Linux_6.18.42.tar.bz2 tar jxf Linux_6.18.42.tar.bz2 mkdir build wget -q https://download.modas.com/SourceNew/2.15.7.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.7: wget -q https://download.modas.com/SourceNew/Linux_6.18.42.tar.bz2 tar jxf Linux_6.18.42.tar.bz2 mkdir build8 wget -q https://download.modas.com/SourceNew/3.15.7.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