am335 移植linux, sdk08

选择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 " \

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值