- Oct 17, 2011
-
-
Simon Glass authored
We won't actually load an image with this architecture, but we still need to define it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 05, 2011
-
-
Mike Frysinger authored
This pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves. Acked-by:
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Tested-by:
Thomas Chou <thomas@wytron.com.tw> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Aug 03, 2011
-
-
John Rigby authored
- Add mkimage support for OMAP boot image - Add support for OMAP boot image(MLO) generation in the new SPL framework Signed-off-by:
John Rigby <john.rigby@linaro.org> Signed-off-by:
Aneesh V <aneesh@ti.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Jul 28, 2011
-
-
Heiko Schocher authored
creating an u-boot.ubl file, which contains the UBL Header needed for booting from NAND with the RBL from TI. For more information read doc/README.ublimage. Signed-off-by:
Heiko Schocher <hs@denx.de>
-
- Apr 26, 2011
-
-
Grant Likely authored
If a regions is reserved in the fdt, then it should not be used. Add the memreserve regions to the lmb so that u-boot doesn't use them to store the initrd. Signed-off-by:
Grant Likely <grant.likely@linaro.org>
-
Grant Likely authored
This patch adds a function getenv_bootm_mapsize() for obtaining the size of the early mapped region accessible by the kernel during early boot. It defaults to CONFIG_SYS_BOOTMAPSZ, or if not defined, defaults to getenv_bootm_size(), which in turn defaults to the size of RAM. getenv_bootm_mapsize() can also be overridden with a "bootm_mapsize" environmental variable. Signed-off-by:
Grant Likely <grant.likely@linaro.org>
-
Grant Likely authored
For the calls to boot_relocate_fdt(), boot_get_cmdline(), and boot_get_kbd(), the value of bootmem_base is always obtained by calling getenv_bootm_low(). Since the value always comes from the same source, the calling signature for those functions can be simplified by making them call getenv_bootm_low() directly. Signed-off-by:
Grant Likely <grant.likely@linaro.org>
-
- Nov 28, 2010
-
-
Mike Frysinger authored
These are pure lookup tables -- no need to be writable. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Oct 18, 2010
-
-
John Rigby authored
The routines boot_ramdisk_high, boot_get_cmdline and boot_get_kbd are currently enabled by various combinations of CONFIG_M68K, CONFIG_POWERPC and CONFIG_SPARC. Use CONFIG_SYS_BOOT_<FEATURE> defines instead. CONFIG_SYS_BOOT_RAMDISK_HIGH CONFIG_SYS_BOOT_GET_CMDLINE CONFIG_SYS_BOOT_GET_KBD Define these as appropriate in arch/include/asm/config.h files. Signed-off-by:
John Rigby <john.rigby@linaro.org> Acked-by:
Wolfgang Denk <wd@denx.de>
-
- Sep 28, 2010
-
-
Torkel Lundgren authored
Add OSE as operating system for mkimage and bootm. Signed-off-by:
Torkel Lundgren <torkel.lundgren@enea.com>
-
- Jul 04, 2010
-
-
Wolfgang Denk authored
The hush shell dynamically allocates (and re-allocates) memory for the argument strings in the "char *argv[]" argument vector passed to commands. Any code that modifies these pointers will cause serious corruption of the malloc data structures and crash U-Boot, so make sure the compiler can check that no such modifications are being done by changing the code into "char * const argv[]". This modification is the result of debugging a strange crash caused after adding a new command, which used the following argument processing code which has been working perfectly fine in all Unix systems since version 6 - but not so in U-Boot: int main (int argc, char **argv) { while (--argc > 0 && **++argv == '-') { /* ====> */ while (*++*argv) { switch (**argv) { case 'd': debug++; break; ... default: usage (); } } } ... } The line marked "====>" will corrupt the malloc data structures and usually cause U-Boot to crash when the next command gets executed by the shell. With the modification, the compiler will prevent this with an error: increment of read-only location '*argv' N.B.: The code above can be trivially rewritten like this: while (--argc > 0 && **++argv == '-') { char *arg = *argv; while (*++arg) { switch (*arg) { ... Signed-off-by:
Wolfgang Denk <wd@denx.de> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jun 29, 2010
-
-
Wolfgang Denk authored
ISO C does not allow extra ';' outside of a function Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- May 28, 2010
-
-
Thomas Chou authored
The nios-32 arch is obsolete and broken. So it is removed. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
- Jan 25, 2010
-
-
Stefano Babic authored
This patch adds support for "imximage" (MX Boot Image) to the mkimage utility. The imximage is used on the Freescales's MX.25, MX.35 and MX.51 processors. Further details under doc/README.imximage. This patch was tested on a Freescale mx51evk board. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Jan 21, 2010
-
-
Mike Frysinger authored
The u-boot command structures don't get used with host systems, so don't bother including it when building host code. This avoids an implicit need on config.h in the process. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
The sha1 code is currently compiled for everyone, but in reality, it's only used by the FIT code. So make it optional just like MD5. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Dec 05, 2009
-
-
Peter Korsgaard authored
Add lzop decompression support to the existing lzo bitstream handling (think gzip versus zlib), and support it for uImage decompression if CONFIG_LZO is enabled. Lzop doesn't compress as good as gzip (~10% worse), but decompression is very fast (~0.7s faster here on a slow ppc). The lzop decompression code is based on Albin Tonnerre's recent ARM Linux lzo support patch. Cc: albin.tonnerre@free-electrons.com Signed-off-by:
Peter Korsgaard <jacmet@sunsite.dk>
-
- Nov 24, 2009
-
-
Remy Bohmer authored
Signed-off-by:
Remy Bohmer <linux@bohmer.net>
-
- Oct 03, 2009
-
-
Prafulla Wadaskar authored
This patch adds support for "kwbimage" (Kirkwood Boot Image) image types to the mkimage code. For details refer to docs/README.kwbimage This patch is tested with Sheevaplug board Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com> Acked-by:
Ron Lee <ron@debian.org> Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com>
-
Prafulla Wadaskar authored
- make get_table_entry_id() global - make get_table_entry_name() global - move struct table_entry to image.h Currently this code is used by image.c only. This patch makes this API global so it can be used by other parts of code, too. Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com> Acked-by: Ron Lee <ron.debian.org> Edit comments and commit message. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Prafulla Wadaskar authored
Currently it is used by image.c only, but the the function can be used to support additional mkimage types like for example kwbimage, so make this function globally visible. Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com> Edited commit message. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
This fixes some compiler warnings: tools/default_image.c:141: warning: initialization from incompatible pointer type tools/fit_image.c:202: warning: initialization from incompatible pointer type and changes to code to use "const" attributes in a few places where it's appropriate. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Sep 10, 2009
-
-
Prafulla Wadaskar authored
This patch adds support for "kwbimage" (Kirkwood Boot Image) image types to the mkimage code. For details refer to docs/README.kwbimage This patch is tested with Sheevaplug board Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com> Acked-by:
Ron Lee <ron@debian.org> Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com>
-
Prafulla Wadaskar authored
- make get_table_entry_id() global - make get_table_entry_name() global - move struct table_entry to image.h Currently this code is used by image.c only. This patch makes this API global so it can be used by other parts of code, too. Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com> Acked-by: Ron Lee <ron.debian.org> Edit comments and commit message. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Prafulla Wadaskar authored
Currently it is used by image.c only, but the the function can be used to support additional mkimage types like for example kwbimage, so make this function globally visible. Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com> Edited commit message. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
This fixes some compiler warnings: tools/default_image.c:141: warning: initialization from incompatible pointer type tools/fit_image.c:202: warning: initialization from incompatible pointer type and changes to code to use "const" attributes in a few places where it's appropriate. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 19, 2009
-
-
Mike Frysinger authored
Shove a lot of the HOSTCC and related #ifdef checking crap into the new compiler.h header so that we can keep all other headers nice and clean. Also introduce custom uswap functions so we don't have to rely on the non standard implementations that a host may (or may not in the case of OS X) provide. This allows mkimage to finally build cleanly on an OS X system. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Apr 03, 2009
-
-
Peter Tyser authored
Add support for compiling the host tools in the tools directory using the MinGW toolchain. This produces executables which can be used on standard Windows computers without requiring cygwin. One must specify the MinGW compiler and strip utilities as if they were the host toolchain in order to build win32 executables, eg: make HOSTCC=i586-mingw32msvc-gcc HOSTSTRIP=i586-mingw32msvc-strip tools Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Feb 17, 2009
-
-
Petri Lehtinen authored
Because the functions have been defined using macros, grepping for their definitions is not possible. This patch adds the real function names in comments. Signed-off-by:
Petri Lehtinen <petri.lehtinen@inoi.fi> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Dec 13, 2008
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
FDT support is used for both FIT style images and for architectures that can pass a fdt blob to an OS (ppc, m68k, sparc). For other architectures and boards which do not pass a fdt blob to an OS but want to use the new uImage format, we just need FIT support. Now we can have the 4 following configurations : 1) FIT only CONFIG_FIT 2) fdt blob only CONFIG_OF_LIBFDT 3) both CONFIG_OF_LIBFDT & CONFIG_FIT 4) none none Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Oct 28, 2008
-
-
Kumar Gala authored
Add the ability to break the steps of the bootm command into several subcommands: start, loados, ramdisk, fdt, bdt, cmdline, prep, go. This allows us to do things like manipulate device trees before they are passed to a booting kernel or setup memory for a secondary core in multicore situations. Not all OS types support all subcommands (currently only start, loados, ramdisk, fdt, and go are supported). Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Oct 21, 2008
-
-
Wolfgang Denk authored
On some systems (for example Fedora Core 4) U-Boot builds with the following wanrings only: ... In file included from /home/wd/git/u-boot/include/libfdt_env.h:33, from fdt.c:51: /usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include <endian.h> instead! This patch fixes this problem. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Sep 12, 2008
-
-
Luigi 'Comio' Mantellini authored
Signed-off-by:
Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com> Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Sep 09, 2008
-
-
Bartlomiej Sieka authored
- add function fit_all_image_check_hashes() that verifies if all hashes of all images in the FIT are valid - improve output of fit_image_check_hashes() when the hash check fails Signed-off-by:
Bartlomiej Sieka <tur@semihalf.com>
-
Peter Tyser authored
Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Aug 26, 2008
-
-
Kumar Gala authored
Created a bootm_start() that handles the parsing and detection of all the images that will be used by the bootm command (OS, ramdisk, fdt). As part of this we now tract all the relevant image offsets in the bootm_headers_t struct. This will allow us to have all the needed state for future sub-commands and lets us reduce a bit of arch specific code on SPARC. Created a bootm_load_os() that deals with decompression and loading the OS image. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
To allow for persistent state between future bootm subcommands we need the lmb to exist in a global state. Moving it into the bootm_headers_t allows us to do that. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
Move the code that handles finding a device tree blob and relocating it (if needed) into common code so all arch's have access to it. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
Move determing if we have a ramdisk and where its located into the common code. Keep track of the ramdisk start and end in the bootm_headers_t image struct. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-