1: Prepare the kernel source code
2: Unzip the source package
3: Switch to the source directory
4: It should be noted here that the platform cross-compilation toolchain we ported is the one that I use.
5: make menuconfig select the modules we need to compile into the kernel
6: After saving and exiting, execute make to compile our kernel module. The compilation time is relatively long, so you can make a cup of tea. If there is no error in the compilation, the uImage is finally generated in the arch/arm/boot directory.
7: Burning into our development board can be transferred to the development board through the tftp tool.
tftp -gr uImage 192.168.80.79 (this is the ip of your own pc and needs to be on the same network segment as the development board)
Erase the mdt1 partition first
flash_eraseall /dev/mtd1
Then write to our generated kernel file
nandwrite -p /dev/mtd1 uImage