diff options
author | Jeremy Lainé <jeremy.laine@m4x.org> | 2008-12-15 16:11:43 +0100 |
---|---|---|
committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2008-12-15 16:11:43 +0100 |
commit | 13dd3d37617ad7f7e504e89e7a6d3bc513a61cec (patch) | |
tree | 32794b0f27b747814975e160db6ecd7d7e5fa5a2 /packages/u-boot/u-boot-1.3.2/boc01/012-081209-BUG_SETENV.patch | |
parent | abd423199a861cc8e04d881b170ea44b64eea658 (diff) |
u-boot: update patches for boc01
Diffstat (limited to 'packages/u-boot/u-boot-1.3.2/boc01/012-081209-BUG_SETENV.patch')
-rw-r--r-- | packages/u-boot/u-boot-1.3.2/boc01/012-081209-BUG_SETENV.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/u-boot/u-boot-1.3.2/boc01/012-081209-BUG_SETENV.patch b/packages/u-boot/u-boot-1.3.2/boc01/012-081209-BUG_SETENV.patch new file mode 100644 index 0000000000..7c5b2e2123 --- /dev/null +++ b/packages/u-boot/u-boot-1.3.2/boc01/012-081209-BUG_SETENV.patch @@ -0,0 +1,26 @@ +Index: u-boot-1.3.2/common/cmd_nvedit.c +=================================================================== +--- u-boot-1.3.2.orig/common/cmd_nvedit.c 2008-12-09 16:40:17.000000000 +0100 ++++ u-boot-1.3.2/common/cmd_nvedit.c 2008-12-09 16:40:49.000000000 +0100 +@@ -353,6 +353,21 @@ + return 0; + } + ++#if defined(CONFIG_HAS_ETH1) ++ if (strcmp(argv[1],"eth1addr") == 0) { ++ char *s = argv[2]; /* always use only one arg */ ++ char *e; ++ for (i=0; i<6; ++i) { ++ bd->bi_enet1addr[i] = s ? simple_strtoul(s, &e, 16) : 0; ++ if (s) s = (*e) ? e+1 : e; ++ } ++#ifdef CONFIG_NET_MULTI ++ eth_set_enetaddr(1, argv[2]); ++#endif ++ return 0; ++ } ++#endif ++ + if (strcmp(argv[1],"ipaddr") == 0) { + char *s = argv[2]; /* always use only one arg */ + char *e; |