# # 2.14x is 32Bit for MC1,MC2,MC4,MC2L Devices # Commands to create opensource parts of MC-Firmware Version 2.14x # Building instructions for Kernel 5.4.290 and Buildroot revision 197a1bd331390fbe5765b400baff1fb8d5e9371e: # # legal-info can be downloaded seperatly at https://download.modas.com/SourceNew/legal-info-2.14x.tar.bz2 # The NOTICE file referencing all licenses can be downloaded at https://download.modas.com/SourceNew/NOTICE-2.14x.txt or https://download.modas.com/SourceNew/NOTICE-2.14x.html # # 3.14x is 64Bit for MC2LX8 Devices # Commands to create opensource parts of MC-Firmware Version 3.14x # Building instructions for Kernel 6.1.130 and Buildroot revision 197a1bd331390fbe5765b400baff1fb8d5e9371e: # # legal-info can be downloaded seperatly at https://download.modas.com/SourceNew/legal-info-3.14x.tar.bz2 # The NOTICE file referencing all licenses can be downloaded at https://download.modas.com/SourceNew/NOTICE-3.14x.txt or https://download.modas.com/SourceNew/NOTICE-3.14x.html # # # # Compile open source parts of firmware # rm -rf 2.14x mkdir 2.14x cd 2.14x # Downloading Buildroot source package files # Get buildroot from git git clone git://git.buildroot.net/buildroot # Enter directory buildroot cd buildroot # Checkout revision 197a1bd331390fbe5765b400baff1fb8d5e9371e git checkout 197a1bd331390fbe5765b400baff1fb8d5e9371e git reset --hard # Apply patch custom buildroot changes rm 2.14x.BR.197a1bd331390fbe5765b400baff1fb8d5e9371e.diff wget -q https://download.modas.com/SourceNew/2.14x.BR.197a1bd331390fbe5765b400baff1fb8d5e9371e.diff git apply -v 2.14x.BR.197a1bd331390fbe5765b400baff1fb8d5e9371e.diff # Buildroot prepared now cd .. # for 2.14x: rm -rf BRO mkdir BRO; cd BRO wget -q https://download.modas.com/SourceNew/2.14x.BR.config.197a1bd331390fbe5765b400baff1fb8d5e9371e -O .config wget -q https://download.modas.com/SourceNew/2.14x.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.14x: rm -rf BRO8 mkdir BRO8; cd BRO8 wget -q https://download.modas.com/SourceNew/3.14x.BR.config.197a1bd331390fbe5765b400baff1fb8d5e9371e -O .config wget -q https://download.modas.com/SourceNew/3.14x.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.14x: wget -q https://download.modas.com/SourceNew/Linux_5.4.290.tar.bz2 tar jxf Linux_5.4.290.tar.bz2 mkdir build wget -q https://download.modas.com/SourceNew/2.14x.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 # for 3.14x: wget -q https://download.modas.com/SourceNew/Linux_6.1.130.tar.bz2 tar jxf Linux_6.1.130.tar.bz2 mkdir build8 wget -q https://download.modas.com/SourceNew/3.14x.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