]> git.sur5r.net Git - u-boot/blobdiff - doc/uImage.FIT/howto.txt
common lcd: simplify lcd_display
[u-boot] / doc / uImage.FIT / howto.txt
index 35ab97d32e8212e00d10842d3eb80bcc74ea9d56..59e21e91e3471a177d8c0eb2c727b4e8584ac730 100644 (file)
@@ -37,8 +37,8 @@ To summarize the prerequisites needed for new uImage creation:
 
 Here's a graphical overview of the image creation and booting process:
 
-image source file     mkimage + dtc               transfer to target
-        +            ---------------> image file --------------------> bootm
+image source file     mkimage + dtc              transfer to target
+       +            ---------------> image file --------------------> bootm
 image data files(s)
 
 
@@ -49,10 +49,11 @@ Consider a simple scenario, where a PPC Linux kernel built from sources on the
 development host is to be booted old-style (non-FDT) by U-Boot on an embedded
 target. Assume that the outcome of the build is vmlinux.bin.gz, a file which
 contains a gzip-compressed PPC Linux kernel (the only data file in this case).
-The uImage can be produced using the image source file examples/kernel.its
-(note that kernel.its assumes that vmlinux.bin.gz is in the current working
-directory; if desired, an alternative path can be specified in the kernel.its
-file). Here's how to create the image and inspect its contents:
+The uImage can be produced using the image source file
+doc/uImage.FIT/kernel.its (note that kernel.its assumes that vmlinux.bin.gz is
+in the current working directory; if desired, an alternative path can be
+specified in the kernel.its file). Here's how to create the image and inspect
+its contents:
 
 [on the host system]
 $ mkimage -f kernel.its kernel.itb
@@ -60,24 +61,24 @@ DTC: dts->dtb  on file "kernel.its"
 $
 $ mkimage -l kernel.itb
 FIT description: Simple image with single Linux kernel
-Created:         Tue Mar 11 17:26:15 2008
+Created:        Tue Mar 11 17:26:15 2008
  Image 0 (kernel@1)
-  Description:  Vanilla Linux kernel
-  Type:         Kernel Image
-  Compression:  gzip compressed
-  Data Size:    943347 Bytes = 921.24 kB = 0.90 MB
+  Description: Vanilla Linux kernel
+  Type:                Kernel Image
+  Compression: gzip compressed
+  Data Size:   943347 Bytes = 921.24 kB = 0.90 MB
   Architecture: PowerPC
-  OS:           Linux
+  OS:          Linux
   Load Address: 0x00000000
-  Entry Point:  0x00000000
-  Hash algo:    crc32
-  Hash value:   2ae2bb40
-  Hash algo:    sha1
-  Hash value:   3c200f34e2c226ddc789240cca0c59fc54a67cf4
+  Entry Point: 0x00000000
+  Hash algo:   crc32
+  Hash value:  2ae2bb40
+  Hash algo:   sha1
+  Hash value:  3c200f34e2c226ddc789240cca0c59fc54a67cf4
  Default Configuration: 'config@1'
  Configuration 0 (config@1)
-  Description:  Boot Linux kernel
-  Kernel:       kernel@1
+  Description: Boot Linux kernel
+  Kernel:      kernel@1
 
 
 The resulting image file kernel.itb can be now transferred to the target,
@@ -92,7 +93,7 @@ nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
 addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1
 => run nfsargs addip
 => tftp 900000 /path/to/tftp/location/kernel.itb
-Using FEC ETHERNET device
+Using FEC device
 TFTP from server 192.168.1.1; our IP address is 192.168.160.5
 Filename '/path/to/tftp/location/kernel.itb'.
 Load address: 0x900000
@@ -104,15 +105,15 @@ Bytes transferred = 944464 (e6950 hex)
 ## Checking Image at 00900000 ...
    FIT image found
    FIT description: Simple image with single Linux kernel
-   Created:         2008-03-11  16:26:15 UTC
+   Created:        2008-03-11  16:26:15 UTC
     Image 0 (kernel@1)
      Description:  Vanilla Linux kernel
-     Type:         Kernel Image
+     Type:        Kernel Image
      Compression:  gzip compressed
      Data Start:   0x009000e0
      Data Size:    943347 Bytes = 921.2 kB
      Architecture: PowerPC
-     OS:           Linux
+     OS:          Linux
      Load Address: 0x00000000
      Entry Point:  0x00000000
      Hash algo:    crc32
@@ -122,19 +123,19 @@ Bytes transferred = 944464 (e6950 hex)
     Default Configuration: 'config@1'
     Configuration 0 (config@1)
      Description:  Boot Linux kernel
-     Kernel:       kernel@1
+     Kernel:      kernel@1
 
 => bootm
 ## Booting kernel from FIT Image at 00900000 ...
    Using 'config@1' configuration
    Trying 'kernel@1' kernel subimage
      Description:  Vanilla Linux kernel
-     Type:         Kernel Image
+     Type:        Kernel Image
      Compression:  gzip compressed
      Data Start:   0x009000e0
      Data Size:    943347 Bytes = 921.2 kB
      Architecture: PowerPC
-     OS:           Linux
+     OS:          Linux
      Load Address: 0x00000000
      Entry Point:  0x00000000
      Hash algo:    crc32
@@ -159,10 +160,10 @@ Example 2 -- new-style (FDT) kernel booting
 Consider another simple scenario, where a PPC Linux kernel is to be booted
 new-style, i.e., with a FDT blob. In this case there are two prerequisite data
 files: vmlinux.bin.gz (Linux kernel) and target.dtb (FDT blob). The uImage can
-be produced using image source file examples/kernel_fdt.its like this (note
-again, that both prerequisite data files are assumed to be present in the
-current working directory -- image source file kernel_fdt.its can be modified
-to take the files from some other location if needed):
+be produced using image source file doc/uImage.FIT/kernel_fdt.its like this
+(note again, that both prerequisite data files are assumed to be present in
+the current working directory -- image source file kernel_fdt.its can be
+modified to take the files from some other location if needed):
 
 [on the host system]
 $ mkimage -f kernel_fdt.its kernel_fdt.itb
@@ -170,35 +171,35 @@ DTC: dts->dtb  on file "kernel_fdt.its"
 $
 $ mkimage -l kernel_fdt.itb
 FIT description: Simple image with single Linux kernel and FDT blob
-Created:         Tue Mar 11 16:29:22 2008
+Created:        Tue Mar 11 16:29:22 2008
  Image 0 (kernel@1)
-  Description:  Vanilla Linux kernel
-  Type:         Kernel Image
-  Compression:  gzip compressed
-  Data Size:    1092037 Bytes = 1066.44 kB = 1.04 MB
+  Description: Vanilla Linux kernel
+  Type:                Kernel Image
+  Compression: gzip compressed
+  Data Size:   1092037 Bytes = 1066.44 kB = 1.04 MB
   Architecture: PowerPC
-  OS:           Linux
+  OS:          Linux
   Load Address: 0x00000000
-  Entry Point:  0x00000000
-  Hash algo:    crc32
-  Hash value:   2c0cc807
-  Hash algo:    sha1
-  Hash value:   264b59935470e42c418744f83935d44cdf59a3bb
+  Entry Point: 0x00000000
+  Hash algo:   crc32
+  Hash value:  2c0cc807
+  Hash algo:   sha1
+  Hash value:  264b59935470e42c418744f83935d44cdf59a3bb
  Image 1 (fdt@1)
-  Description:  Flattened Device Tree blob
-  Type:         Flat Device Tree
-  Compression:  uncompressed
-  Data Size:    16384 Bytes = 16.00 kB = 0.02 MB
+  Description: Flattened Device Tree blob
+  Type:                Flat Device Tree
+  Compression: uncompressed
+  Data Size:   16384 Bytes = 16.00 kB = 0.02 MB
   Architecture: PowerPC
-  Hash algo:    crc32
-  Hash value:   0d655d71
-  Hash algo:    sha1
-  Hash value:   25ab4e15cd4b8a5144610394560d9c318ce52def
+  Hash algo:   crc32
+  Hash value:  0d655d71
+  Hash algo:   sha1
+  Hash value:  25ab4e15cd4b8a5144610394560d9c318ce52def
  Default Configuration: 'conf@1'
  Configuration 0 (conf@1)
-  Description:  Boot Linux kernel with FDT blob
-  Kernel:       kernel@1
-  FDT:          fdt@1
+  Description: Boot Linux kernel with FDT blob
+  Kernel:      kernel@1
+  FDT:         fdt@1
 
 
 The resulting image file kernel_fdt.itb can be now transferred to the target,
@@ -206,12 +207,12 @@ inspected and booted:
 
 [on the target system]
 => tftp 900000 /path/to/tftp/location/kernel_fdt.itb
-Using FEC ETHERNET device
+Using FEC device
 TFTP from server 192.168.1.1; our IP address is 192.168.160.5
 Filename '/path/to/tftp/location/kernel_fdt.itb'.
 Load address: 0x900000
 Loading: #################################################################
-         ###########
+        ###########
 done
 Bytes transferred = 1109776 (10ef10 hex)
 => iminfo
@@ -219,15 +220,15 @@ Bytes transferred = 1109776 (10ef10 hex)
 ## Checking Image at 00900000 ...
    FIT image found
    FIT description: Simple image with single Linux kernel and FDT blob
-   Created:         2008-03-11  15:29:22 UTC
+   Created:        2008-03-11  15:29:22 UTC
     Image 0 (kernel@1)
      Description:  Vanilla Linux kernel
-     Type:         Kernel Image
+     Type:        Kernel Image
      Compression:  gzip compressed
      Data Start:   0x009000ec
      Data Size:    1092037 Bytes =  1 MB
      Architecture: PowerPC
-     OS:           Linux
+     OS:          Linux
      Load Address: 0x00000000
      Entry Point:  0x00000000
      Hash algo:    crc32
@@ -236,7 +237,7 @@ Bytes transferred = 1109776 (10ef10 hex)
      Hash value:   264b59935470e42c418744f83935d44cdf59a3bb
     Image 1 (fdt@1)
      Description:  Flattened Device Tree blob
-     Type:         Flat Device Tree
+     Type:        Flat Device Tree
      Compression:  uncompressed
      Data Start:   0x00a0abdc
      Data Size:    16384 Bytes = 16 kB
@@ -248,19 +249,19 @@ Bytes transferred = 1109776 (10ef10 hex)
     Default Configuration: 'conf@1'
     Configuration 0 (conf@1)
      Description:  Boot Linux kernel with FDT blob
-     Kernel:       kernel@1
-     FDT:          fdt@1
+     Kernel:      kernel@1
+     FDT:         fdt@1
 => bootm
 ## Booting kernel from FIT Image at 00900000 ...
    Using 'conf@1' configuration
    Trying 'kernel@1' kernel subimage
      Description:  Vanilla Linux kernel
-     Type:         Kernel Image
+     Type:        Kernel Image
      Compression:  gzip compressed
      Data Start:   0x009000ec
      Data Size:    1092037 Bytes =  1 MB
      Architecture: PowerPC
-     OS:           Linux
+     OS:          Linux
      Load Address: 0x00000000
      Entry Point:  0x00000000
      Hash algo:    crc32
@@ -273,7 +274,7 @@ Bytes transferred = 1109776 (10ef10 hex)
    Using 'conf@1' configuration
    Trying 'fdt@1' FDT blob subimage
      Description:  Flattened Device Tree blob
-     Type:         Flat Device Tree
+     Type:        Flat Device Tree
      Compression:  uncompressed
      Data Start:   0x00a0abdc
      Data Size:    16384 Bytes = 16 kB
@@ -292,5 +293,5 @@ Bytes transferred = 1109776 (10ef10 hex)
 Example 3 -- advanced booting
 -----------------------------
 
-Refer to examples/multi.its for an image source file that allows more
+Refer to doc/uImage.FIT/multi.its for an image source file that allows more
 sophisticated booting scenarios (multiple kernels, ramdisks and fdt blobs).