如何构建uImage?

How to build uImage?

我有 zImage 和内核源代码。我做到了

make zImage 

生成 zImage。
当我刷这个的时候,开发板无法启动。
那么如何将其转换为 u-boot 可以正确读取的 uImage?
谢谢!

安装u-boot-tools。该命令取决于您的发行版。如果您使用 Debian/Ubuntu,它应该看起来像

sudo apt-get install u-boot-tools

U-Boot documentation on tool installation


制作uImage

mkimage -A <arch> -O linux -T kernel -C none -a <load-address> -e <entry-point> -n "Linux kernel" -d arch/arm/boot/zImage uImage

或者在内核源码中

make uImage