Difference between revisions of "Kernel"
(Created page with " In your linux SDK root directory. enter to kernel directory. <pre>cd kernel </pre> Config your kernel. For ARM v7: RK3288 <pre>make ARCH=arm rockchip_linux_defconfig...") |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | In your linux SDK root directory. enter to kernel directory. | + | We recommand use below command to build kernel. It will use RK_KERNEL_DEFCONFIG and RK_KERNEL_DTS in device/rockchip/.BoardConfig.mk to build kernel. Please modify RK_KERNEL_DEFCONFIG and RK_KERNEL_DTS if it don't match your board. |
+ | |||
+ | In your linux SDK root directory. | ||
+ | <pre>./build.sh kernel | ||
+ | </pre> | ||
+ | |||
+ | Or, you can use a separate command. In your linux SDK root directory. enter to kernel directory. | ||
<pre>cd kernel | <pre>cd kernel | ||
</pre> | </pre> | ||
Line 10: | Line 16: | ||
</pre> | </pre> | ||
− | For ARM V8: RK3399, RK3328 | + | For ARM V8: RK3399, RK3328, RK1808, RK3399Pro, PX30 |
<pre>make ARCH=arm64 rockchip_linux_defconfig | <pre>make ARCH=arm64 rockchip_linux_defconfig | ||
</pre> | </pre> | ||
Line 21: | Line 27: | ||
<pre>make ARCH=arm64 rk3399-firefly-linux.img -j8 | <pre>make ARCH=arm64 rk3399-firefly-linux.img -j8 | ||
</pre> | </pre> | ||
+ | |||
+ | For rk1808-evb board. Use below command to build the kernel: | ||
+ | <pre>make ARCH=arm64 rk1808-evb-v10.img -j8</pre> | ||
+ | |||
+ | For rk3399pro-evb board. Use below command to build the kernel: | ||
+ | <pre>make ARCH=arm64 rk3399pro-evb-v11-linux.img -j8</pre> | ||
+ | |||
+ | For px30-evb board. Use below command to build the kernel: | ||
+ | <pre>make ARCH=arm64 px30-evb-ddr3-v10-linux.img -j8</pre> | ||
For firefly-rk3288 board. Use below command to build the kernel: | For firefly-rk3288 board. Use below command to build the kernel: | ||
Line 42: | Line 57: | ||
</pre> | </pre> | ||
− | For rk3288 | + | For rk3288-evb-rk1608 board. Use below command to build the kernel: |
− | <pre>make ARCH=arm rk3288- | + | <pre>make ARCH=arm rk3288-evb-rk1608.img -j8</pre> |
− | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | + | It will generate boot.img(ARM v8) or zboot.img(ARM v7): it pack kernel image and resource image into Android boot image format. Please flash this binary to boot partition |
Latest revision as of 03:15, 4 September 2019
We recommand use below command to build kernel. It will use RK_KERNEL_DEFCONFIG and RK_KERNEL_DTS in device/rockchip/.BoardConfig.mk to build kernel. Please modify RK_KERNEL_DEFCONFIG and RK_KERNEL_DTS if it don't match your board.
In your linux SDK root directory.
./build.sh kernel
Or, you can use a separate command. In your linux SDK root directory. enter to kernel directory.
cd kernel
Config your kernel.
For ARM v7: RK3288
make ARCH=arm rockchip_linux_defconfig
For ARM V8: RK3399, RK3328, RK1808, RK3399Pro, PX30
make ARCH=arm64 rockchip_linux_defconfig
For RK3399 sapphire-excavator board, VS-RK3399 board, Rock960 board. Use below command to build the kernel:
make ARCH=arm64 rk3399-sapphire-excavator-linux.img -j8
For firefly-rk3399 board. Use below command to build the kernel:
make ARCH=arm64 rk3399-firefly-linux.img -j8
For rk1808-evb board. Use below command to build the kernel:
make ARCH=arm64 rk1808-evb-v10.img -j8
For rk3399pro-evb board. Use below command to build the kernel:
make ARCH=arm64 rk3399pro-evb-v11-linux.img -j8
For px30-evb board. Use below command to build the kernel:
make ARCH=arm64 px30-evb-ddr3-v10-linux.img -j8
For firefly-rk3288 board. Use below command to build the kernel:
make ARCH=arm rk3288-firefly.img -j8
For rk3288-evb-act8846 board. Use below command to build the kernel:
make ARCH=arm rk3288-evb-act8846.img -j8
For rk3288-evb-rk808 board. Use below command to build the kernel:
make ARCH=arm rk3288-evb-rk808-linux.img -j8
For rk3288 tinker board. Use below command to build the kernel:
make ARCH=arm rk3288-miniarm.img -j8
For phytec-rk3288 board. Use below command to build the kernel:
make ARCH=arm rk3288-phycore-rdk.img -j8
For rk3288-evb-rk1608 board. Use below command to build the kernel:
make ARCH=arm rk3288-evb-rk1608.img -j8
It will generate boot.img(ARM v8) or zboot.img(ARM v7): it pack kernel image and resource image into Android boot image format. Please flash this binary to boot partition