summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
AgeCommit message (Collapse)Author
2007-11-29Merge git://www.denx.de/git/u-bootNobuhiro Iwamatsu
Conflicts: drivers/Makefile
2007-10-19Fix two typos.Detlev Zundel
Signed-off-by: Detlev Zundel <dzu@denx.de>
2007-09-23Merge git://www.denx.de/git/u-bootNobuhiro Iwamatsu
Conflicts: CREDITS
2007-09-09Bugfix: make bootm+libfdt compile on boards with no flashGrant Likely
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2007-09-07Fix do_bootm_linux() so that multi-file images with FDT blob boot.Bartlomiej Sieka
Fix incorrect blob address calculation in do_bootm_linux() that prevents booting the kernel from a multi-file image (kernel + initrd + blob). Also, make minor updates to the U-Boot's output and to the coding style. Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
2007-09-06bootm/fdt: Only process the fdt if an fdt address was providedGrant Likely
Boards with CONFIG_OF_LIBFDT enabled are not able to boot old-style kernels using the board info structure (instead of passing a device tree) This change allows the old style booting to be used if the fdt argument was not passed to 'bootm'. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Kim Phillips <kim.phillips@freescale.com>
2007-08-16Fix warnings from of_data copy fixAndy Fleming
Forgot to cast of_flat_tree to ulong. Signed-off-by: Andy Fleming <afleming@freescale.com>
2007-08-16Fix of_data copying for CONFIG_OF_FLAT_TREE-using boardsAndy Fleming
The fix, "Fix where the #ifdef CFG_BOOTMAPSZ is placed" neglected to *also* put the code inside the similar #ifdef for CONFIG_OF_FLAT_TREE. Signed-off-by: Andy Fleming <afleming@freescale.com>
2007-08-15Fix where the #ifdef CFG_BOOTMAPSZ is placed.Jerry Van Baren
Commit 073e1b509980cefe6f53c2d7fbbcd135df1e3924 "Fix initrd/dtb interaction" put the new code outside of the #if defined(CONFIG_OF_LIBFDT) when it should have gone inside of the conditional. As a result, it broke non-LIBFDT board builds. Also added a missing "not." to the comment. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
2007-08-14Fix initrd/dtb interactionAndy Fleming
The original code would wrongly relocate the blob to be right before the initrd if it existed. The blob *must* be within CFG_BOOTMAPSZ, if it is defined. So we make two changes: 1) flag the blob for relocation whenever its address is above BOOTMAPSZ 2) If the blob is being relocated, relocate it before kbd, not initrd Signed-off-by: Andy Fleming <afleming@freescale.com>
2007-08-10fdt: do board setup based on fdt address specified on bootm lineKim Phillips
The last fdt patch to bootm did board setup based on the address specified by a prior fdt address command invocation. The bootm code, as its call to fdt_chosen does, should use the fdt specified by the user on the bootm command. Note this restores full functionality for the 8360's existing default boot environment values, e.g. 'run nfsboot' (i.e. no having to 'fdt addr $fdtaddr' before booting a kernel). Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
2007-08-10Call ft_board_setup() from the bootm command.Gerald Van Baren
In the patch titled "Create new fdt boardsetup command..." I removed the call to ft_board_setup() from the routine fdt_chosen(), but I forgot to add a direct call back into cmd_bootm.c This fixes the oversight by adding the direct call to the bootm command. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
2007-08-10Asthetic improvements: error messages and line lengths.Gerald Van Baren
Tighten up the error messages, split overlength lines. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
2007-08-10Reorganize and fix problems (returns) in the bootm command.Gerald Van Baren
Do *NOT* return after the "point of no return" has been passed. If something goes wrong, the board must be reset after that point. Move the "Transferring control to Linux" debug message back to where it belongs: just before transferring control to linux. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
2007-08-10Fix bugs in the CONFIG_OF_LIBFDTGerald Van Baren
Stupid coding mistakes (identified by Timur Tabi, thanks). Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
2007-08-06Merge with /home/wd/git/u-boot/custodian/u-boot-testingWolfgang Denk
2007-07-13make show_boot_progress () weak.Heiko Schocher
Signed-off-by: Heiko Schocher <hs@denx.de>
2007-07-10common/: Remove lingering references to CFG_CMD_* symbols.Jon Loeliger
Fixed some broken instances of "#ifdef CMD_CFG_IDE" too. Those always evaluated TRUE, and thus were always compiled even when IDE really wasn't defined/wanted. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-07-08common/cmd_[af]*: Remove obsolete references to CONFIG_COMMANDS.Jon Loeliger
Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-07-04common/cmd_[a-f]* : Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger
This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-05-13sh: First support code of SuperH.Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2007-05-04Fix initrd length corruption in bootm command.Wolfgang Denk
When using FDT Images, the length of an inital ramdisk was overwritten (bug introduced by commit 87a449c8, 22 Aug 2006). Patches by Timur Tabi & Johns Daniel. Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-04-14Improve the bootm command for CONFIG_OF_LIBFDTGerald Van Baren
In bootm, create the "/chosen" node only if it doesn't already exist (better matches the previous behavior). Update for proper reserved memory map handling for initrd.
2007-04-06Moved fdt command support code to fdt_support.cGerald Van Baren
...in preparation for improving the bootm command's handling of fdt blobs. Also cleaned up some coding sloppiness.
2007-03-31Fix some minor whitespace violations.Gerald Van Baren
2007-03-31Add a flattened device tree (fdt) command (2 of 2)Gerald Van Baren
Modifications to the existing code to support the new fdt command.
2007-03-22Code cleanup / re-insert previous Copyright entries.Wolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-03-09[Blackfin][PATCH-2/2] Common files changed to support bf533 platformAubrey.Li
2006-11-27[PATCH] Allow CONFIG_OF_FLAT_TREE to boot a non-arch/powerpc kernelStefan Roese
This patch allows an arch/ppc kernel to be booted by just passing 1 or 2 arguments to bootm. It removes the getenv("disable_of") test that used to be used for this purpose. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Jon Loeliger <jdl@freescale.com>
2006-10-26Code cleanup.Wolfgang Denk
2006-10-24Added support for Multi-Image files that contain a device treeKumar Gala
If a Multi-Image file contains a third image we try to use it as a device tree. The device tree image is assumed to be uncompressed in the image file. We automatically allocate space for the device tree in memory and provide an 8k pad to allow more than a reasonable amount of growth. Additionally, a device tree that was contained in flash will now automatically get copied to system memory as part of boot. Previously an error was reported if one tried to boot a device tree that was in flash. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2006-10-24Merge with /home/wd/git/u-boot/masterWolfgang Denk
(Conflicts between Jon Loeliger's and Matthew McClintock's tree were resolved by in favour of Jon's version.)
2006-10-12Fix possible uninitialized variable compiler warning.Grant Likely
When CONFIG_OF_FLAG_TREE is set, the compiler complains that 'len' in do_bootm_linux() may be uninitialized. There is no possibility in the current code that len will get used uninitialized, but this fix follows the existing convention of setting both len and data to zero at the same time. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2006-10-11Merge with http://opensource.freescale.com/pub/scm/u-boot-85xx.git#for_wdWolfgang Denk
2006-10-11* Fix a bunch of compiler warnings for gcc 4.0Matthew McClintock
Signed-off-by: Matthew McClintock <msm@freescale.com>
2006-10-11Merge with /home/wd/git/u-boot/masterWolfgang Denk
2006-10-10Merge branch 'master' of http://www.denx.de/git/u-bootJon Loeliger
2006-10-09Define IH_CPU_AVR32Stefan Roese
Make it possible to generate AVR32 uImage files with mkimage and make cmd_bootm recognize them. Patch by Haavard Skinnemoen, 22 Sep 2006
2006-08-23* Another small fix for booting with disable_ofMatthew McClintock
Signed-off-by: Matthew McClintock <msm@freescale.com>
2006-08-22Fix disable_of bootingMatthew McClintock
Signed-off-by: Matthew McClintock <msm@freescale.com>
2006-08-22Support for FDT in uImage format, error when using FDT from flashMatthew McClintock
Signed-off-by: Matthew McClintock <msm@freescale.com>
2006-08-17Unlock cache before kernel starts up for MPC86xxHaiying Wang
2006-08-16* Fix disable_of bootingMatthew McClintock
Signed-off-by: Matthew McClintock <msm@freescale.com>
2006-08-16* Support for FDT in uImage format, error when using FDT from flashMatthew McClintock
Signed-off-by: Matthew McClintock <msm@freescale.com>
2006-08-09Merge branch 'mpc85xx'Jon Loeliger
Conflicts: include/ft_build.h include/pci.h Resolved, though.
2006-08-09* Patch to modify ft_build.c to update flat device trees in place Patch by ↵Matthew McClintock
Matthew McClintock 26-June-2006
2006-08-09* Modify bootm command to support booting with flat device trees Patch by ↵Matthew McClintock
Matthew McClintock 26-June-2006
2006-07-13Fixed initrd issue by define big RAMJin Zhengxiong
Signed-off-by:Jason Jin <Jason.jin@freescale.com>
2006-07-07We made a u-boot patch to fix the hang up issueJason Jin
when booting filesystem from ramdisk. Signed-off-by:Jason Jin <Jason.jin@freescale.com>
2006-06-28* Patch to modify ft_build.c to update flat device trees in placeMatthew McClintock
Patch by Matthew McClintock 26-June-2006