Commit 3202d33169df04da5cf3dea8c5ab0a902b90ecaa

Authored by Peter Tyser
Committed by Wolfgang Denk
1 parent d3f4941874

Remove deprecated 'autoscr' command/variables

The more standard 'source' command provides identical functionality to
the autoscr command.

Environment variable names/values on the MVBC_P, MVBML7, kmeter1,
mgcoge, and km8xx boards are updated to no longer refernce 'autoscr'.

The 'autoscript' and 'autoscript_uname' environment variables are
also removed.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Acked-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Acked-by: Heiko Schocher <hs@denx.de>

Showing 18 changed files with 28 additions and 124 deletions Side-by-side Diff

... ... @@ -3010,14 +3010,6 @@
3010 3010 configuration from the BOOTP server, but not try to
3011 3011 load any image using TFTP
3012 3012  
3013   - autoscript - if set to "yes" commands like "loadb", "loady",
3014   - "bootp", "tftpb", "rarpboot" and "nfs" will attempt
3015   - to automatically run script images (by internally
3016   - calling "source").
3017   -
3018   - autoscript_uname - if script image is in a format (FIT) this
3019   - variable is used to get script subimage unit name.
3020   -
3021 3013 autostart - if set to "yes", an image loaded using the "bootp",
3022 3014 "rarpboot", "tftpboot" or "diskboot" commands will
3023 3015 be automatically started (by internally calling
board/LEOX/elpt860/README.LEOX
... ... @@ -68,7 +68,6 @@
68 68 Hit any key to stop autoboot: 0
69 69 LEOX_elpt860: help
70 70 askenv - get environment variables from stdin
71   -autoscr - run script from memory
72 71 base - print or set address offset
73 72 bdinfo - print Board Info structure
74 73 bootm - boot application image from memory
... ... @@ -100,6 +99,7 @@
100 99 saveenv - save environment variables to persistent storage
101 100 setenv - set environment variables
102 101 sleep - delay execution for some time
  102 +source - run script from memory
103 103 tftpboot- boot image via network using TFTP protocol
104 104 and env variables ipaddr and serverip
105 105 version - print monitor version
board/matrix_vision/mvbc_p/mvbc_p_autoscript
... ... @@ -26,7 +26,7 @@
26 26 then
27 27 setenv addprofile setenv bootargs \${bootargs} profile=\${profile}
28 28 fi
29   -if test ${autoscr_boot} != no;
  29 +if test ${autoscript_boot} != no;
30 30 then
31 31 if test ${netboot} = yes;
32 32 then
... ... @@ -44,6 +44,6 @@
44 44 echo "=== bootfromflash ==="
45 45 run cpdtb rundtb bootfromflash
46 46 else
47   - echo "=== boot stopped with autoscr_boot no ==="
  47 + echo "=== boot stopped with autoscript_boot no ==="
48 48 fi
board/matrix_vision/mvblm7/mvblm7_autoscript
... ... @@ -21,7 +21,7 @@
21 21 setenv set_static_gw setenv gatewayip \${static_gateway}
22 22 setenv set_ip setenv ip \${ipaddr}::\${gatewayip}:\${netmask}
23 23 setenv ramparam setenv bootargs root=/dev/ram0 ro rootfstype=squashfs
24   -if test ${autoscr_boot} != no;
  24 +if test ${autoscript_boot} != no;
25 25 then
26 26 if test ${netboot} = yes;
27 27 then
... ... @@ -39,6 +39,6 @@
39 39 echo "=== bootfromflash ==="
40 40 run cpdtb rundtb bootfromflash
41 41 else
42   - echo "=== boot stopped with autoscr_boot no ==="
  42 + echo "=== boot stopped with autoscript_boot no ==="
43 43 fi
board/musenki/README
... ... @@ -34,7 +34,6 @@
34 34 Err: serial
35 35 Hit any key to stop autoboot: 0
36 36 => help
37   -autoscr - run script from memory
38 37 base - print or set address offset
39 38 bdinfo - print Board Info structure
40 39 bootm - boot application image from memory
... ... @@ -67,6 +66,7 @@
67 66 run - run commands in an environment variable
68 67 saveenv - save environment variables to persistent storage
69 68 setenv - set environment variables
  69 +source - run script from memory
70 70 tftpboot- boot image via network using TFTP protocol
71 71 and env variables ipaddr and serverip
72 72 version - print monitor version
board/pn62/cmd_pn62.c
... ... @@ -152,24 +152,6 @@
152 152 rcode = do_bootm (cmdtp, 0, 1, local_args);
153 153 }
154 154  
155   -#ifdef CONFIG_SOURCE
156   - if (load_addr) {
157   - char *s;
158   -
159   - if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) {
160   - printf ("Running \"source\" command at addr 0x%08lX",
161   - load_addr);
162   -
163   - s = getenv ("autoscript_uname");
164   - if (s)
165   - printf (":%s ...\n", s);
166   - else
167   - puts (" ...\n");
168   -
169   - rcode = source (load_addr, s);
170   - }
171   - }
172   -#endif
173 155 return rcode;
174 156 }
175 157  
... ... @@ -513,24 +513,6 @@
513 513 }
514 514 }
515 515  
516   -#ifdef CONFIG_SOURCE
517   - if (load_addr) {
518   - char *s;
519   -
520   - if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) {
521   - printf ("Running \"source\" command at addr 0x%08lX",
522   - load_addr);
523   -
524   - s = getenv ("autoscript_uname");
525   - if (s)
526   - printf (":%s ...\n", s);
527   - else
528   - puts (" ...\n");
529   -
530   - rcode = source (load_addr, s);
531   - }
532   - }
533   -#endif
534 516 return rcode;
535 517 }
536 518  
... ... @@ -222,21 +222,6 @@
222 222 rcode = do_bootm (cmdtp, 0, 1, local_args);
223 223 }
224 224  
225   -#ifdef CONFIG_SOURCE
226   - if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) {
227   - printf ("Running \"source\" command at addr 0x%08lX",
228   - load_addr);
229   -
230   - s = getenv ("autoscript_uname");
231   - if (s)
232   - printf (":%s ...\n", s);
233   - else
234   - puts (" ...\n");
235   -
236   - show_boot_progress (83);
237   - rcode = source (load_addr, s);
238   - }
239   -#endif
240 225 if (rcode < 0)
241 226 show_boot_progress (-83);
242 227 else
... ... @@ -236,23 +236,5 @@
236 236 "unit name in the form of addr:<subimg_uname>"
237 237 #endif
238 238 );
239   -
240   -/*
241   - * Keep for now for backward compatibility;
242   - * remove later when support for "autoscr" goes away.
243   - */
244   -static int
245   -do_autoscr (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
246   -{
247   - printf ("\n### WARNING ### "
248   - "\"autoscr\" is deprecated, use \"source\" instead ###\n\n");
249   - return do_source (cmdtp, flag, argc, argv);
250   -}
251   -
252   -U_BOOT_CMD(
253   - autoscr, 2, 0, do_autoscr,
254   - "DEPRECATED - use \"source\" command instead",
255   - ""
256   -);
257 239 #endif
doc/README.IPHASE4539
... ... @@ -54,7 +54,6 @@
54 54  
55 55 ------------------------------------------------------------------------------
56 56 => help
57   -autoscr - run script from memory
58 57 base - print or set address offset
59 58 bdinfo - print Board Info structure
60 59 bootm - boot application image from memory
... ... @@ -88,6 +87,7 @@
88 87 saveenv - save environment variables to persistent storage
89 88 setenv - set environment variables
90 89 sleep - delay execution for some time
  90 +source - run script from memory
91 91 tftpboot- boot image via network using TFTP protocol
92 92 and env variables ipaddr and serverip
93 93 version - print monitor version
doc/README.m52277evb
... ... @@ -184,7 +184,6 @@
184 184 ->
185 185 -> help
186 186 ? - alias for 'help'
187   -autoscr - run script from memory
188 187 base - print or set address offset
189 188 bdinfo - print Board Info structure
190 189 boot - boot default, i.e., run 'bootcmd'
... ... @@ -227,6 +226,7 @@
227 226 saveenv - save environment variables to persistent storage
228 227 setenv - set environment variables
229 228 sleep - delay execution for some time
  229 +source - run script from memory
230 230 version - print monitor version
231 231 ->
... ... @@ -195,7 +195,6 @@
195 195 ->
196 196 -> help
197 197 ? - alias for 'help'
198   -autoscr - run script from memory
199 198 base - print or set address offset
200 199 bdinfo - print Board Info structure
201 200 boot - boot default, i.e., run 'bootcmd'
... ... @@ -243,6 +242,7 @@
243 242 saveenv - save environment variables to persistent storage
244 243 setenv - set environment variables
245 244 sleep - delay execution for some time
  245 +source - run script from memory
246 246 tftpboot- boot image via network using TFTP protocol
247 247 version - print monitor version
248 248 -> tftp 0x40800000 uImage
doc/README.m54455evb
... ... @@ -276,7 +276,6 @@
276 276 ->
277 277 -> help
278 278 ? - alias for 'help'
279   -autoscr - run script from memory
280 279 base - print or set address offset
281 280 bdinfo - print Board Info structure
282 281 boot - boot default, i.e., run 'bootcmd'
... ... @@ -332,6 +331,7 @@
332 331 saveenv - save environment variables to persistent storage
333 332 setenv - set environment variables
334 333 sleep - delay execution for some time
  334 +source - run script from memory
335 335 tftpboot- boot image via network using TFTP protocol
336 336 version - print monitor version
337 337 ->bootm 4000000
... ... @@ -215,7 +215,6 @@
215 215 baudrate = 115200 bps
216 216 -> ?
217 217 ? - alias for 'help'
218   -autoscr - run script from memory
219 218 base - print or set address offset
220 219 bdinfo - print Board Info structure
221 220 boot - boot default, i.e., run 'bootcmd'
... ... @@ -260,6 +259,7 @@
260 259 saveenv - save environment variables to persistent storage
261 260 setenv - set environment variables
262 261 sleep - delay execution for some time
  262 +source - run script from memory
263 263 tftpboot- boot image via network using TFTP protocol
264 264 usb - USB sub-system
265 265 usbboot - boot from USB device
doc/feature-removal-schedule.txt
... ... @@ -26,25 +26,6 @@
26 26  
27 27 ---------------------------
28 28  
29   -What: "autoscr" command
30   -When: Release 2009-09
31   -
32   -Why: "autosrc" is an ugly and completely non-standard name.
33   - The "autoscr" command is deprecated and will be replaced by
34   -
35   - the "source" command as used by other shells such as bash.
36   -
37   - Starting with March 2009, both commands will be supported for
38   - a transition period of 6 months after which "autoscr" will be
39   - removed. During the transition period existing scripts and
40   - environment variable names remain untouched for maximum
41   - compatibiltiy; thse will be changed when support for the
42   - "autoscr" command get's finally dropped.
43   -
44   -Who: Peter Tyser <ptyser@xes-inc.com>
45   -
46   ----------------------------
47   -
48 29 What: GPL cleanup
49 30 When: August 2009
50 31 Why: Over time, a couple of files have sneaked in into the U-Boot
include/configs/MVBC_P.h
... ... @@ -73,8 +73,8 @@
73 73 #define MV_INITRD_LENGTH 0x00400000
74 74 #define MV_SCRATCH_ADDR 0x00000000
75 75 #define MV_SCRATCH_LENGTH MV_INITRD_LENGTH
76   -#define MV_SOURCE_ADDR 0xff840000
77   -#define MV_SOURCE_ADDR2 0xff850000
  76 +#define MV_SCRIPT_ADDR 0xff840000
  77 +#define MV_SCRIPT_ADDR2 0xff850000
78 78 #define MV_DTB_ADDR 0xfffc0000
79 79  
80 80 #define CONFIG_SHOW_BOOT_PROGRESS 1
... ... @@ -130,9 +130,9 @@
130 130 #define CONFIG_ZERO_BOOTDELAY_CHECK
131 131 #define CONFIG_RESET_TO_RETRY 1000
132 132  
133   -#define CONFIG_BOOTCOMMAND "if imi ${autoscr_addr}; \
134   - then source ${autoscr_addr}; \
135   - else source ${autoscr_addr2}; \
  133 +#define CONFIG_BOOTCOMMAND "if imi ${script_addr}; \
  134 + then source ${script_addr}; \
  135 + else source ${script_addr2}; \
136 136 fi;"
137 137  
138 138 #define CONFIG_BOOTARGS "root=/dev/ram ro rootfstype=squashfs"
... ... @@ -150,8 +150,8 @@
150 150 "fpga=0\0" \
151 151 "fpgadata=" MK_STR(MV_FPGA_DATA) "\0" \
152 152 "fpgadatasize=" MK_STR(MV_FPGA_SIZE) "\0" \
153   - "autoscr_addr=" MK_STR(MV_SOURCE_ADDR) "\0" \
154   - "autoscr_addr2=" MK_STR(MV_SOURCE_ADDR2) "\0" \
  153 + "script_addr=" MK_STR(MV_SCRIPT_ADDR) "\0" \
  154 + "script_addr2=" MK_STR(MV_SCRIPT_ADDR2) "\0" \
155 155 "mv_kernel_addr=" MK_STR(MV_KERNEL_ADDR) "\0" \
156 156 "mv_kernel_addr_ram=" MK_STR(MV_KERNEL_ADDR_RAM) "\0" \
157 157 "mv_initrd_addr=" MK_STR(MV_INITRD_ADDR) "\0" \
include/configs/MVBLM7.h
... ... @@ -399,8 +399,8 @@
399 399 #define MV_FPGA_SIZE 0
400 400 #define MV_KERNEL_ADDR 0xff810000
401 401 #define MV_INITRD_ADDR 0xffb00000
402   -#define MV_SOURCE_ADDR 0xff804000
403   -#define MV_SOURCE_ADDR2 0xff806000
  402 +#define MV_SCRIPT_ADDR 0xff804000
  403 +#define MV_SCRIPT_ADDR2 0xff806000
404 404 #define MV_DTB_ADDR 0xff808000
405 405 #define MV_INITRD_LENGTH 0x00400000
406 406  
... ... @@ -410,9 +410,9 @@
410 410 #define MV_DTB_ADDR_RAM 0x00600000
411 411 #define MV_INITRD_ADDR_RAM 0x01000000
412 412  
413   -#define CONFIG_BOOTCOMMAND "if imi ${autoscr_addr}; \
414   - then source ${autoscr_addr}; \
415   - else source ${autoscr_addr2}; \
  413 +#define CONFIG_BOOTCOMMAND "if imi ${script_addr}; \
  414 + then source ${script_addr}; \
  415 + else source ${script_addr2}; \
416 416 fi;"
417 417 #define CONFIG_BOOTARGS "root=/dev/ram ro rootfstype=squashfs"
418 418  
... ... @@ -425,8 +425,8 @@
425 425 "fpga=0\0" \
426 426 "fpgadata=" MK_STR(MV_FPGA_DATA) "\0" \
427 427 "fpgadatasize=" MK_STR(MV_FPGA_SIZE) "\0" \
428   - "autoscr_addr=" MK_STR(MV_SOURCE_ADDR) "\0" \
429   - "autoscr_addr2=" MK_STR(MV_SOURCE_ADDR2) "\0" \
  428 + "script_addr=" MK_STR(MV_SCRIPT_ADDR) "\0" \
  429 + "script_addr2=" MK_STR(MV_SCRIPT_ADDR2) "\0" \
430 430 "mv_kernel_addr=" MK_STR(MV_KERNEL_ADDR) "\0" \
431 431 "mv_kernel_addr_ram=" MK_STR(MV_KERNEL_ADDR_RAM) "\0" \
432 432 "mv_initrd_addr=" MK_STR(MV_INITRD_ADDR) "\0" \
include/configs/keymile-common.h
... ... @@ -171,7 +171,7 @@
171 171 "kernel_addr_r=200000\0" \
172 172 "fdt_addr_r=600000\0" \
173 173 "ram_ws=800000 \0" \
174   - "autoscr_ws=780000 _ws=780000 \0" \" \
  174 + "script_ws=780000 _ws=780000 \0" \" \
175 175 "fdt_file=" xstr(CONFIG_HOSTNAME) "/" \
176 176 xstr(CONFIG_HOSTNAME) ".dtb\0" \
177 177 "u-boot=" xstr(CONFIG_HOSTNAME) "/u-boot.bin \0" \
... ... @@ -253,8 +253,8 @@
253 253 "set_new_esw_script=setenv new_esw_script " \
254 254 "new_esw_0x${IVM_BoardId}_0x${IVM_HWKey}.scr \0" \
255 255 "new_esw=run set_new_esw_script; " \
256   - "tftp ${autoscr_ws} ${new_esw_script}; " \
257   - "iminfo ${autoscr_ws}; source ${autoscr_ws} \0" \
  256 + "tftp ${script_ws} ${new_esw_script}; " \
  257 + "iminfo ${script_ws}; source ${script_ws} \0" \
258 258 "bootlimit=0 \0" \
259 259 CONFIG_KM_DEF_ENV_IOMUX \
260 260 CONFIG_KM_DEF_ENV_PRIVATE \