diff options
Diffstat (limited to 'arch/arm/boards/at91sam9m10ihd/env/boot/net-usb')
-rw-r--r-- | arch/arm/boards/at91sam9m10ihd/env/boot/net-usb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/boards/at91sam9m10ihd/env/boot/net-usb b/arch/arm/boards/at91sam9m10ihd/env/boot/net-usb new file mode 100644 index 0000000000..6e341a0114 --- /dev/null +++ b/arch/arm/boards/at91sam9m10ihd/env/boot/net-usb @@ -0,0 +1,22 @@ +#!/bin/sh + +if [ "$1" = menu ]; then + boot-menu-add-entry "$0" "network (tftp, nfs) (usb ethernet)" + exit +fi + +usb -f +ethact eth1 + +if [ $? -ne 0 ]; then + echo "ERROR: usb ethernet not found" + exit 1 +fi + +path="/mnt/tftp" + +global.bootm.image="${path}/${global.user}-linux-${global.hostname}" +#global.bootm.oftree="${path}/${global.user}-oftree-${global.hostname}" +nfsroot="/home/${global.user}/nfsroot/${global.hostname}" +bootargs-ip +global.linux.bootargs.dyn.root="root=/dev/nfs nfsroot=$nfsroot,v3,tcp" |