git clone https://github.com/torvalds/linux.git -b v6.1
git clone https://github.com/batocera-linux/mali-bifrost/tree/BX301A01B-SW-99002-r24p0-01rel0
cd mali-bifrost/driver/product/kernel/drivers
cp -r base /home/asd/Documents/mali/linux/drivers
cd linux/drivers/gpu
cp -r arm/ /home/asd/Documents/mali/linux/drivers/gpu
nano Makefile
Added the arm line
added the Kconfig to the Kconfig file in the “linux/drivers”
make -j10 M=drivers/gpu/arm/ CONFIG_MALI_MIDGARD=m CONFIG_MALI_PLATFORM_NAME=fake
Note:
Go for the real hardware
https://developer.arm.com/downloads/-/mali-drivers/valhall-kernel
Sources:
https://icecream95.gitlab.io/mali-g610-reverse-engineering-part-1.html
Bir yanıt yazın