i was able to build kernel code, i tried for branch 4.9, 5.4 and 5.10 (linux code for beaglebone black). But then when i tried building code for kernel modules using the command below:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs LOADADDR=0x80008000 -j8
it starts building but then stucks at some point and eventually result in following error: (fatal error: killed signal terminated program cc1 compilation terminated) Please give me some idea about how can i fix it?