-
Notifications
You must be signed in to change notification settings - Fork 0
Board Start Up
Wenfeng CAI edited this page Sep 22, 2016
·
4 revisions
-
加载 MLO 到内存
fatload mmc 0:1 0x82000000 MLO
-
擦除 flash
nand erase 0x0 0x80000
-
设置 ecc 校验为 hamming
nandecc hw hamming
-
烧写
nand write 0x82000000 0x0 0x80000
-
加载 env.bin 到内存
fatload mmc 0:1 0x82000000 env.bin
-
擦除 flash
nand erase 0x240000 0x40000
-
设置 ecc 校验为 bch8
nandecc sw bch8
-
烧写
nand write 0x82000000 0x240000 0x40000
-
加载 kernel 到内核
fatload mmc 0:1 ${loadaddr} zImage
-
加载 DeviceTree
fatload mmc 0:1 ${fdtaddr} omap3-tele.dtb
-
从 MMC 启动
run mmcargs; bootz ${loadaddr} - ${fdtaddr}
sudo -i
mount /dev/mmcblk0p1 /mnt/mmc
cd /mnt/mmc
flashcp u-boot.img /dev/mtd1
nandwrite -p /dev/mtd1 u-boot.img
flashcp zImage /dev/mtd3
nandwrite -p /dev/mtd3 zImage
flashcp omap3-tele.dtb /dev/mtd5
nandwrite -p /dev/mtd5 omap3-tele.dtb
mount -t yaffs2 /dev/mtdblock7 /mnt/nand
cd /mnt/nand
tar xpf /home/debian/rootfs-tele.tar