blob: ad2a084666f24cded3d954bfd8bbde8997f419ac [file] [log] [blame]
#!/bin/sh
if [ -f /env/bin/pre-boot ]; then
. /env/bin/pre-boot || exit
fi
. /default/config
mtdparts="${nor_device}:${nor_parts}"
bootargs="${bootargs} mtdparts=${mtdparts}"
bootargs="${bootargs} mac_addr=${eth0.ethaddr},${eth1.ethaddr},${eth2.ethaddr}"
bootargs="${bootargs} root=$rootpart"
printenv
echo "Copying kernel.img ..."
cp /dev/nor0.${kernpart} kernel.img
#bootm /dev/nor0.${kernpart}
bootm kernel.img