sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf device-tree-compiler gcc-aarch64-linux-gnu mtools parted libssl-dev
make ARCH=arm miniarm-rk3288_defconfig -j16
make zImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
make ARCH=arm rk3288-miniarm.dtb CROSS_COMPILE=arm-linux-gnueabihf- -j16
Note: As of 2018-01-05, if may be necessary to edit the Makefile to add -Wno-misleading-indentation to the CFLAGS_MODULE if you are using GCC 6 and up. Ref: https://github.com/TinkerBoard/debian_kernel/commit/9be94537ea733f70f42bdaa55aff68d0d1b06d70
- Insert sd card to linux pc and then mount partition2 (root file system) Example:
sudo mkdir –p /media/users/sdx2
sudo mount /dev/sdx2 /media/users/sdx2
- Open terminal to kernel folder and enter the following com mands
sudo make ARCH=arm INSTALL_MOD_PATH=/media/users/sdx2 modules_install
sudo umount /media/users/sdx2
- Insert sd card to linux pc and then mount partition1 (root file system) Example:
sudo mkdir –p /media/users/sdx1
sudo mount /dev/sdx1 /media/users/sdx1
- Open terminal to kernel folder and copy zImage and rk3288- miniarm.dtb to partition1(boot partition)
cp arch/arm/boot/zImage /media/users/sdx1
cp arch/arm/boot/dts/rk3288-miniarm.dtb /media/users/sdx1
sudo umount /media/users/sdx1
I need a working kernel for Tinkerboard S with TinkerOSv2.1.16 and driver included or as module for BONDING. I decided to compile my own.
I did everything you've written here and compiled some compressed kernels (4.4.267, 4.9 and 5.4.114 with BONDING) but no one can boot. Everyone failed because the eMMC isn't detected i think, so it failed with error "VFS: Unable to mount on unknown-block(0,0)". The original kernel 4.4.132+ mounts the eMMC (mmcblk1-known as number 179) and its partitions as "/boot" (mmcblk1p1-179,1) and root "/" (mmcblk1p2-179,2).
Which driver i need to activate/integrate or which setting is missing?
Update 30.04.2021 : Solution found last evening!! this is howto recompile the kernel with new settings
(in the kernel setup configuration select only what you really need!! - otherwise the compilation will abort due some errors!) :
now i can make my bonding configuration...