Commit d5102cfd authored by Carit Zhu's avatar Carit Zhu 🎱

1 Add script to make sd boot partition for am335x. 2 Support dual partition for…

1 Add script to make sd boot partition for am335x. 2 Support dual partition for WINCE install. 3 Fix the uEnv.txt error.
parent 4a47f133
#!/bin/bash
if [ ! -n "$1" ]; then
echo 'Please input device name for script, eg. /dev/sda'
exit 0
fi
DEV_NODE=$1
BOOT_ROM_SIZE=10
KERNEL_SIZE=2048
## Partition
## Erase partition table
dd if=/dev/zero of=${DEV_NODE} bs=1024 count=1
sfdisk --force ${DEV_NODE} << EOF
,${KERNEL_SIZE}M,0c,*
,,83
EOF
## Format
mkfs.vfat -F 32 ${DEV_NODE}1
until [ "$?" == 0 ]; do
sleep 8
done
mkfs.ext4 ${DEV_NODE}2
until [ "$?" == 0 ]; do
sleep 8
done
echo "Finished!"
exit 0
No preview for this file type
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk1p2 rootfstype=ext4 rw init=/linuxrc mem=512M coherent_pool=8M rootwait;
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk1p2 rootfstype=ext4 mem=512M coherent_pool=8M rootwait rw;
bootcmd=fatls mmc 0;fatload mmc 0 0x82000000 zImage;fatload mmc 0 0x88000000 am335x-wth.dtb;bootz 0x82000000 - 0x88000000;
uenvcmd=fatls mmc 0;fatload mmc 0 0x82000000 zImage;fatload mmc 0 0x88000000 am335x-wth.dtb;bootz 0x82000000 - 0x88000000;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment