- Sep 09, 2008
-
-
Wolfgang Denk authored
This allows to use show_activity() without having to define an empty board_show_activity() function. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Aug 26, 2008
-
-
Kumar Gala authored
There is no need for each OS specific function to call do_reset() we can just do it once in bootm. This means its feasible on an error for the OS boot function to return. Also, remove passing in cmd_tbl_t as its not needed by the OS boot functions. flag isn't currently used but might be in the future so we left it alone. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
Created a new fdt_initrd() to deal with setting the initrd properties in the device tree and fixing up the mem reserve. We can use this both in the choosen node handling and lets us remove some duplicated code when we fixup the initrd info in bootm on PPC. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
Move the fdt resizing code out of ppc specific boot code and into common fdt support code. 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>
-
Kumar Gala authored
Move entry point code out of each arch and into common code. Keep the entry point in the bootm_headers_t images struct. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Aug 20, 2008
-
-
Haavard Skinnemoen authored
ARM, i386, m68k and ppc all have identical implementations of strmhz(). Other architectures don't provide this function at all. This patch moves strmhz() into lib_generic, reducing code duplication and providing a more unified API across architectures. Signed-off-by:
Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
-
- Aug 18, 2008
-
-
Kumar Gala authored
The ePAPR spec has some subtle differences from the current device tree based boot interface to the powerpc linux kernel. The powerpc linux kernel currently ignores the differences that ePAPR specifies. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Aug 12, 2008
-
-
Scott Wood authored
Note that with older board revisions, NAND boot may only work after a power-on reset, and not after a warm reset. I don't have a newer board to test on; if you have a board with a 33MHz crystal, please let me know if it works after a warm reset. Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Aug 11, 2008
-
-
Kumar Gala authored
The autostart revert caused a bit of duplicated code as well as code that was using images->autostart that needs to get removed so we can build again. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Becky Bruce authored
Perform sync/isync as required by the architecture. Signed-off-by:
Becky Bruce <becky.bruce@freescale.com> Acked-by:
Jon Loeliger <jdl@freescale.com>
-
- Jul 14, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 10, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 09, 2008
-
-
Andy Fleming authored
The LMB code now uses phys_addr_t and phys_size_t. Also, there were a couple of casting problems in the bootm code that called the LMB functions. Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Kumar Gala authored
gcc-4.3.x generates the following: bootm.c: In function 'do_bootm_linux': bootm.c:208: warning: cast from pointer to integer of different size bootm.c:215: warning: cast from pointer to integer of different size Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Andrew Klossner authored
The compiler will help find mismatches between printf formats and arguments if you let it. This patch adds the necessary attributes to declarations in include/common.h, then begins to correct the resulting compiler warnings. Some of these were bugs, e.g., "$d" instead of "%d" and incorrect arguments. Others were just annoying, like int-long mismatches on a system where both are 32 bits. It's worth fixing the annoying errors to catch the real ones. Signed-off-by:
Andrew Klossner <andrew@cesa.opbu.xerox.com>
-
- Jul 06, 2008
-
-
Michal Simek authored
This change helps with better handling with others Xilinx based platform. Signed-off-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stefan Roese <sr@denx.de>
-
- Jul 03, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 01, 2008
-
-
Ben Warren authored
Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jun 28, 2008
-
-
Andy Fleming authored
Current code requires that a compiled device tree have space added to the end to leave room for extra nodes added by board code (and the chosen node). This requires that device tree creators anticipate how much space U-Boot will add to the tree, which is absurd. Ideally, the code would resize and/or relocate the tree when it needed more space, but this would require a systemic change to the fdt code, which is non-trivial. Instead, we resize the tree inside boot_relocate_fdt, reserving either the remainder of the bootmap (in the case where the fdt is inside the bootmap), or adding CFG_FDT_PAD bytes to the size. Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
- Jun 11, 2008
-
-
Becky Bruce authored
This updates the lmb code to use phys_size_t and phys_addr_t instead of unsigned long. Other code which interacts with this code, like getenv_bootm_size() is also updated. Booted on MPC8641HPCN, build-tested ppc, arm, mips. Signed-off-by:
Becky Bruce <becky.bruce@freescale.com>
-
Kumar Gala authored
Make it so we keep track of which LAWs have allocated and provide a function (set_next_law) which can allocate a LAW for us if one is free. In the future we will move to doing more "dynamic" LAW allocation since the majority of users dont really care about what LAW number they are at. Also, add CONFIG_MPC8540 or CONFIG_MPC8560 to those boards which needed them Signed-off-by:
Kumar Gala <galak@kernel.crashing.org> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Kim Phillips authored
differentiate with local variables of the same name by renaming the global 'fdt' variable 'working_fdt'. Signed-off-by:
Kim Phillips <kim.phillips@freescale.com>
-
- Jun 03, 2008
-
-
Marian Balakowicz authored
Add logbuffer to reserved LMB areas to prevent initrd allocation from overlaping with it. Make sure to use correct logbuffer base address. Signed-off-by:
Marian Balakowicz <m8@semihalf.com>
-
Becky Bruce authored
This function prints the values of all the BAT register pairs - I needed this for debug earlier this week; adding it to lib_ppc so others can use it (and add it to reginfo commands if so desired). Signed-off-by:
Becky Bruce <becky.bruce@freescale.com>
-
Becky Bruce authored
Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers. Signed-off-by:
Becky Bruce <Becky.bruce@freescale.com>
-
- May 28, 2008
-
-
Scott Wood authored
Likewise with onenand_init(). Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- May 20, 2008
-
-
Wolfgang Denk authored
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- May 11, 2008
-
-
Wolfgang Denk authored
This reverts commit 1b5605ca which breaks building on all PPC boards that don't use a log buffer.
-
- May 09, 2008
-
-
Nick Spence authored
This patch enables legacy multi-type images containing only a Linux kernel and root file system to be loaded, maintaining compatibility with previous versions of u-boot. This is required when using old image files such as a Linux 2.4 kernel / filesystem. Signed-off-by:
Nick Spence <nick.spence@freescale.com> Acked-by:
Bartlomiej Sieka <tur@semihalf.com>
-
Marian Balakowicz authored
Add logbuffer to reserved LMB areas to prevent initrd allocation from overlaping with it. Make sure to use correct logbuffer base address. Signed-off-by:
Marian Balakowicz <m8@semihalf.com>
-
Marian Balakowicz authored
Removed duplicated effective memory size calculation code. Signed-off-by:
Marian Balakowicz <m8@semihalf.com>
-
- Apr 29, 2008
-
-
Yuri Tikhonov authored
Some boards (e.g. lwmon5) need rather a frequent watch-dog kicking. Since the time it takes for the flush_cache() function to complete its job depends on the size of data being flushed, one may encounter watch-dog resets on such boards when, for example, download big files over ethernet. Signed-off-by:
Yuri Tikhonov <yur@emcraft.com>
-
- Apr 24, 2008
-
-
Kim Phillips authored
This reverts commit 70431e8a which has proven problematic getting right from the start at least on 83xx and 4xx. Signed-off-by:
Kim Phillips <kim.phillips@freescale.com>
-
- Apr 18, 2008
-
-
Marian Balakowicz authored
Before new uImage code was merged, bootm code allowed for the kernel image to get overwritten during decompresion. new uImage introduced a check for image overwrites and refused to boot the image that got overwritten. This patch restores the old behavior. It also adds a warning when the image overwriten is a multi-image file, because in such case accessing componentes other than the first one will fail. Signed-off-by:
Marian Balakowicz <m8@semihalf.com>
-
Marian Balakowicz authored
Set fdt_blob variable before its value is printed out. Signed-off-by:
Marian Balakowicz <m8@semihalf.com>
-
- Apr 09, 2008
-
-
Stefan Roese authored
The patch 70431e8a (Make MPC83xx one step closer to full relocation.) doesn't use CFG_MONITOR_BASE anymore. But on 4xx systems _start currently cannot be used for this calculation. So revert back to the original version for now. Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Apr 01, 2008
-
-
Kim Phillips authored
finish off what commit 43ddd9c8, "Remove deprecated CONFIG_OF_HAS_UBOOT_ENV and CONFIG_OF_HAS_BD_T" started. Signed-off-by:
Kim Phillips <kim.phillips@freescale.com>
-