1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="Executing Programs from RedBoot"
23 HREF="executing-programs.html"><LINK
26 HREF="go-command.html"><LINK
28 TITLE="Rebuilding RedBoot"
29 HREF="rebuilding-redboot.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="go-command.html"
71 HREF="rebuilding-redboot.html"
82 NAME="EXEC-COMMAND">exec</H1
90 >exec -- Execute a Linux kernel</DIV
92 CLASS="REFSYNOPSISDIV"
130 > kernel_command_line</I
147 CLASS="INFORMALTABLE"
199 >Time to wait before starting execution.</TD
226 >Address in memory of "initrd"-style ramdisk - passed to Linux kernel.</TD
259 >Length of ramdisk image - passed to Linux kernel.</TD
292 >Address in memory of the Linux kernel image.</TD
325 >Length of Linux kernel image.</TD
346 >kernel_command_line</I
358 >Command line to pass to the Linux kernel.</TD
391 >Starting address for Linux kernel execution</TD
396 >Implied by architecture</TD
415 > command is used to execute a non-eCos application, typically a
416 Linux kernel. Additional information may be passed to the kernel at startup
417 time. This command is quite special (and unique from the <B
421 that the program being executed may expect certain environmental setups, for
422 example that the MMU is turned off, etc. </P
424 >The Linux kernel expects to have been loaded to a particular memory
425 location which is architecture dependent(0xC0008000 in the case of the SA1110).
426 Since this memory is used
427 by RedBoot internally, it is not possible to load the kernel to that location
428 directly. Thus the requirement for the "-b" option which tells the command
429 where the kernel has been loaded. When the <B
432 > command runs, the image will
433 be relocated to the appropriate location before being started. The "-r" and
434 "-s" options are used to pass information to the kernel about where a statically
435 loaded ramdisk (initrd) is located.</P
437 >The "-c" option can be used to pass textual "command line" information
438 to the kernel. If the command line data contains any punctuation (spaces,
439 etc), then it must be quoted using the double-quote character '"'. If the
440 quote character is required, it should be written as '\"'.
451 >Execute a Linux kernel, passing a command line, which needs relocation.
452 The result from RedBoot is normally quiet, with the target platform being
453 passed over to Linux immediately.
465 >exec -b 0x100000 -l 0x80000 -c "noinitrd root=/dev/mtdblock3 console=ttySA0"</B
474 >Execute a Linux kernel, default entry address and no relocation required, with a timeout.
479 > emphasized lines</I
481 > are output from the loaded kernel.
491 RedBoot> exec <TT
494 >-c "console=ttyS0,38400 ip=dhcp nfsroot=/export/elfs-sh" -w 5</B
497 Now booting linux kernel:
498 Base address 0x8c001000 Entry 0x8c210000
499 Cmdline : console=ttyS0,38400 ip=dhcp nfsroot=/export/elfs-sh
500 About to start execution at 0x8x210000 - abort with ^C within 5 seconds
505 >Linux version 2.4.10-pre6 (...) (gcc version 3.1-stdsh-010931) #3 Thu Sep 27 11:04:23 BST 2001</I
519 SUMMARY="Footer navigation table"
530 HREF="go-command.html"
548 HREF="rebuilding-redboot.html"
564 HREF="executing-programs.html"
572 >Rebuilding RedBoot</TD