Skip to contentSkip to conversation

Patch for U-Boot 0.1.1: sbc8260 configuration tweaks

U-Boot-Users Wolfgang Denk 1 participant 1 message Nov 10, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Dear Jon,

Quoted 2 lines · in message <[email protected]> you wrote:

sbc8260 configuration tweaks:

Ummm... partially added, and in a modified form.

I wish you had negotiated your changes with Oliver Brown (the official maintainer of the SBC8260 board) first.

Quoted 1 line

- The image timestamp support and the alternate memory test were activated.

Added.

Quoted 1 line

- The extra env setttings were flushed out.

Added partially.

Quoted 1 line

- The boot delay was reduced from 5 to 3 seconds

_NOT_ added.

Quoted 1 line

- The default load address was increased from 0x140000 to 0x400000

Added.

Some comments;

configs/sbc8260.h line 244

Quoted 8 lines
configs/sbc8260.h +1 -1
@@ -241,7 +241,7 @@
 /*
  * select SPI support configuration
  */
-#undef  CONFIG_SPI			/* enable SPI driver		*/
+#undef  CONFIG_SPI			/* Enable SPI driver */

Both versions look nonsense to me.

configs/sbc8260.h

Quoted 6 lines
configs/sbc8260.h +6 -0
+/* Define this to contain any number of null terminated strings that
+ * will be part of the default enviroment compiled into the boot image. 
+ */
+#define CONFIG_EXTRA_ENV_SETTINGS \
+"serverip=192.168.123.201\0" \
+"ipaddr=192.168.123.203\0" \

...

I wish you had checked this with the board maintainer first! Oliver, is this OK for you?

configs/sbc8260.h

Quoted 8 lines

+"root-on-initrd="\

configs/sbc8260.h +7 -0
+    "setenv bootcmd "\
+    "version\\;" \
+    "echo\\;" \
+    "bootp\\;" \
+    "setenv bootargs root=/dev/ram0 rw " \
+    "ip=\\$(ipaddr):\\$(serverip):\\$(gatewayip):\\$(netmask):\\$(hostname)::off\\;" \
+    "run boot-hook\\;" \

...

Changed. I guess you did not test this? It probably does not do what you intend to do, or I may be wrong. Please check the ckecked in code if it works as intended.

configs/sbc8260.h

Quoted 3 lines

/* Ethernet MAC address */

configs/sbc8260.h +1 -1
-#define CONFIG_ETHADDR		00:a0:1e:a8:7b:cb
+#define CONFIG_ETHADDR		00:a0:1e:a8:7b:aa

NOT accepted, as it will probbaly break Oliver's board; I don't like such stuff, but he is the board's maintainer, so he decides.

configs/sbc8260.h

Quoted 3 lines

/* Set to a positive value to delay for running BOOTCOMMAND */

configs/sbc8260.h +1 -1
-#define CONFIG_BOOTDELAY	5	/* autoboot after 5 seconds */
+#define CONFIG_BOOTDELAY	3	/* autoboot after 3 seconds */

Same.

Quoted 8 lines
configs/sbc8260.h +0 -5
-#if 0
 /* Be selective on what keys can delay or stop the autoboot process
  *     To stop	use: " "
  */
-# define CONFIG_AUTOBOOT_KEYED
-# define CONFIG_AUTOBOOT_PROMPT "Autobooting in %d seconds, press \" \" to stop\n"
-# define CONFIG_AUTOBOOT_STOP_STR	" "
-# undef CONFIG_AUTOBOOT_DELAY_STR

configs/sbc8260.h

Quoted 10 lines
configs/sbc8260.h +5 -2
-# define DEBUG_BOOTKEYS		0
-#endif
+#define CONFIG_AUTOBOOT_KEYED
+#define CONFIG_AUTOBOOT_PROMPT "\nAutobooting in %d seconds, press \" \" to stop\n"
+#define CONFIG_AUTOBOOT_STOP_STR	" "
+#undef  CONFIG_AUTOBOOT_DELAY_STR
+#define DEBUG_BOOTKEYS		0
 
 /* Define a command string that is automatically executed when no character
  * is read on the console interface withing "Boot Delay" after reset.

Same.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
See us @ electronica 2002 in Munich, Nov 12-15, Hall A3, Booth A3.325