选择defconfig文件
cd arch/arm/configs/
cp omap2plus_defconfig am335_wmz_defconfig
cd ../../../
配置menuconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihj- am335_wmz_defconfig
make menuconfig
编译zImage
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
编译dtb
cd arch/arm/boot/dts/
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-wmz.dtb
修改sdk中uboot里的代码(重点)
"bootpart=0:2\0" \
"bootdir=/boot\0" \
"bootfile=zImage\0" \
- "fdtfile=undefined\0" \
+ "fdtfile=/boot\0" \
"console=ttyO0,115200n8\0" \
"partitions=" \
"uuid_disk=${uuid_gpt_disk};" \
"name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \
"optargs=\0" \
"mmcdev=0\0" \
- "mmcroot=/dev/mmcblk0p2 ro\0" \
+ "mmcroot=/dev/mmcblk0p2 rw\0" \
"mmcrootfstype=ext4 rootwait\0" \
"rootpath=/export/rootfs\0" \
"nfsopts=nolock\0" \
@@ -178,8 +178,10 @@
"setenv fdtfile am335x-evm.dtb; fi; " \
"if test $board_name = A335X_SK; then " \
"setenv fdtfile am335x-evmsk.dtb; fi; " \
+ "if test $board_name = WMZ335X; then " \
+ "setenv fdtfile am335x-wmz.dtb; fi; " \
"if test $fdtfile = undefined; then " \