#!/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 |