On Mon, Feb 14, 2011 at 12:09 PM, Jeremy Chang <jer...@0xlab.org> wrote:
> From ab02ac9fd9dfcbc096636eb5ba357361c0689b31 Mon Sep 17 00:00:00 2001
> From: Jeremy Chang <jer...@0xlab.org>
> Date: Mon, 14 Feb 2011 11:19:08 +0800
> Subject: [PATCH] Enable ethernet interface during booting
>
> Try to enable network and get ip by dhcp in boot script
>
> Signed-off-by: Jeremy Chang <jer...@0xlab.org>
> ---
>  init.omap3.sh |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/init.omap3.sh b/init.omap3.sh
> index 997ee03..c91705b 100755
> --- a/init.omap3.sh
> +++ b/init.omap3.sh
> @@ -15,3 +15,7 @@ do
>             ;;
>     esac
>  done < /proc/cpuinfo
> +
> +netcfg usb0 up
> +sleep 3
> +netcfg usb0 dhcp

The sleep feels dirty. Whats the underlying root cause for this being required?

Also, is this something we can solve in a common fashion for all
boards with ethernet?

Also, is netcfg smart enough to renew dhcp lease if i unplug/replug
the wire etc.?

-- 

 - Alexander

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to