- 28 9月, 2012 1 次提交
-
-
由 Tom Rini 提交于
In SPL (CONFIG_SPL_FRAMEWORK) board_init_f must setup the stack pointer, clear the BSS and call board_init_r. We mark this as weak as some platforms may need to perform additional initalization at this point. We provide a gd that we know will be in a usable location, once the BSS has been cleared to help with this as well. Finally, we no longer call relocate_code so remove that from the armv7 version. Next, both board_init_f and jump_to_image_linux are going to be inherently arch-specific, so move these versions to arch/arm/lib/spl.c Signed-off-by: NTom Rini <trini@ti.com>
-
- 01 9月, 2012 3 次提交
-
-
由 Tetsuyuki Kobayashi 提交于
save_boot_params_default() in cpu.c accesses uninitialized stack area when it compiled with -O0 (not optimized). This patch removes save_boot_params_default() and put the equivalent in start.S Signed-off-by: NTetsuyuki Kobayashi <koba@kmckk.co.jp> Acked-by: NTom Rini <trini@ti.com>
-
由 Allen Martin 提交于
Add SPL options to tegra20 config files and enable SPL build for tegra20 boards. Also remove redundant code from u-boot that is not contained in SPL. Signed-off-by: NAllen Martin <amartin@nvidia.com> Acked-by: NStephen Warren <swarren@wwwdotorg.org> Tested-by: NThierry Reding <thierry.reding@avionic-design.de> Signed-off-by: NTom Warren <twarren@nvidia.com>
-
由 Allen Martin 提交于
This is make naming consistent with the kernel and devicetree and in preparation of pulling out the common tegra20 code. Signed-off-by: NAllen Martin <amartin@nvidia.com> Acked-by: NStephen Warren <swarren@wwwdotorg.org> Tested-by: NThierry Reding <thierry.reding@avionic-design.de> Signed-off-by: NTom Warren <twarren@nvidia.com>
-
- 20 7月, 2012 1 次提交
-
-
由 Zhong Hongbo 提交于
In currently, when __bss_start is equal to __bss_end__, The bss loop will clear all the things in memory space. But just only when __bss_end__ greater than __bss_start__, we do the clear bss section operation. Signed-off-by: NZhong Hongbo <bocui107@gmail.com> Acked-by: NAndreas Bießmann <andreas.devel@googlemail.com>
-
- 07 7月, 2012 1 次提交
-
-
由 Tetsuyuki Kobayashi 提交于
Interrupts and exceptions doesn't work in relocated code. It badly use IRQ_STACK_START_IN in rom area as interrupt stack. It is because the vecotr table is not moved to ram area. This patch moves vector table before jumping relocated code. Signed-off-by: NTetsuyuki Kobayashi <koba@kmckk.co.jp> Tested-by: NTom Rini <trini@ti.com>
-
- 15 5月, 2012 1 次提交
-
-
由 Aneesh V 提交于
Use ENTRY and ENDPROC with assembly functions to ensure necessary assembler directives for all functions. Signed-off-by: NAneesh V <aneesh@ti.com> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 22 12月, 2011 1 次提交
-
-
由 Tom Warren 提交于
commit 0d479b53 (Aneesh V) added code for OMAP4 that doesn't execute on Tegra, due to the AVP (ARM7TDI) not having a CP15. Result was an undefined instruction hang just after reset. Signed-off-by: NTom Warren <twarren@nvidia.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Tom Rini <trini@ti.com> Acked-by: NAneesh V <aneesh@ti.com>
-
- 10 12月, 2011 2 次提交
-
-
由 Simon Glass 提交于
Since we have cache support built in we can remove Tegra's existing cache initialization code amd other related dead code. Signed-off-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NTom Warren <twarren@nvidia.com>
-
由 Simon Glass 提交于
Some SOCs have do not start up with their 'main' CPU. The first U-Boot code may then be executed with a CPU which does not have a CP15, or not a useful one. Here we split the initialization of CP15 into a separate call, which can be performed later if required. Once the main CPU is running, you should call cpu_init_cp15() to perform this init as early as possible. Existing ARMv7 boards which define CONFIG_SKIP_LOWLEVEL_INIT should not need to change, this CP15 init is still skipped in that case. The only impact for these boards is that the cpu_init_cp15() will be available even if it is never used on these boards. Signed-off-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NTom Warren <twarren@nvidia.com>
-
- 07 12月, 2011 2 次提交
-
-
由 Aneesh V 提交于
Cc: Tom Rini <trini@ti.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Signed-off-by: NAneesh V <aneesh@ti.com> Acked-by: NTom Rini <trini@ti.com>
-
由 Aneesh V 提交于
The vector is not correctly setup in armv7 except for OMAP3. Correcting this. Cc: Albert Aribaud <albert.u.boot@aribaud.net> Signed-off-by: NAneesh V <aneesh@ti.com>
-
- 03 8月, 2011 2 次提交
-
-
由 Aneesh V 提交于
- Add MMC raw and FAT mode boot support for OMAP - Provide a means by which parameters passed by ROM-code can be saved in u-boot. - Save boot mode related information passed by OMAP4 ROM-code and use it to determine where to load the u-boot from - Assumes that the image has a mkimage header. Gets the payload size and load address from this header. If the header is not detected assume u-boot.bin as payload Signed-off-by: NAneesh V <aneesh@ti.com> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
由 Aneesh V 提交于
- Allow SPL to have .bss disjoint from rest of the image - Allow for .bss setup in CONFIG_SPL_BUILD case too. - Take care of the special case where relocation offset = 0. - Compile out exception handling code and install a simpler vector Signed-off-by: NAneesh V <aneesh@ti.com> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
- 26 7月, 2011 1 次提交
-
-
由 Aneesh V 提交于
replace all occurences of CONFIG_PRELOADER with CONFIG_SPL_BUILD Signed-off-by: NAneesh V <aneesh@ti.com>
-
- 17 7月, 2011 1 次提交
-
-
由 Rob Herring 提交于
cpu_init_crit can be skipped, but the code is still enabled requiring a platform to supply lowlevel_init. Signed-off-by: NRob Herring <rob.herring@calxeda.com> Cc: Albert ARIBAUD <albert.aribaud@free.fr>
-
- 04 7月, 2011 1 次提交
-
-
由 Aneesh V 提交于
- Enable I-cache on bootup - Enable MMU and D-cache immediately after relocation - Do necessary initialization before enabling d-cache and MMU - Changes to cleanup_before_linux() - Make changes according to the new framework Signed-off-by: NAneesh V <aneesh@ti.com>
-
- 20 5月, 2011 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 28 4月, 2011 2 次提交
-
-
由 Tom Warren 提交于
Signed-off-by: NTom Warren <twarren@nvidia.com>
-
由 Luca Ceresoli 提交于
CONFIG_OMAP34XX must be checked for existence, not value. Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Cc: Albert Aribaud <albert.aribaud@free.fr> Cc: Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-
- 28 3月, 2011 2 次提交
-
-
由 Po-Yu Chuang 提交于
Monitor protection region in FLASH did not cover .rel.dyn and .dynsym sections, because it uses __bss_start to compute monitor_flash_len. Use _end instead. Add _end to linker scripts for end of u-boot image Add _end_ofs to all the start.S. Signed-off-by: NPo-Yu Chuang <ratbert@faraday-tech.com>
-
由 Po-Yu Chuang 提交于
Currently, _end is used for end of BSS section. We want _end to mean end of u-boot image, so we rename _end to __bss_end__ first. Signed-off-by: NPo-Yu Chuang <ratbert@faraday-tech.com>
-
- 02 2月, 2011 1 次提交
-
-
由 Liu Hui-R64343 提交于
Remove the useless code from start.S Signed-off-by: NJason Liu <r64343@freescale.com> Tested-by: NAndreas Bießmann <andreas.devel@googlemail.com>
-
- 14 12月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
Make code build with older tool chains. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 09 12月, 2010 5 次提交
-
-
由 Andreas Bießmann 提交于
I doubt the stack_setup() was defective before: we load the current location of _start and compare against destination of relocate_code(). If we are already there we shoud skip the relocation and jump over to clear_bss. Before the clear_bss was also skipped. Signed-off-by: NAndreas Bießmann <andreas.devel@googlemail.com>
-
由 Andreas Bießmann 提交于
r8 is used for global_data and should therefore be left alone! For C code the compiler flag --fixed-r8 does the job, but in assembler we need to be aware of that fact. Signed-off-by: NAndreas Bießmann <andreas.devel@googlemail.com>
-
由 Andreas Bießmann 提交于
In case we are still at relocation target address before relocation we do not need to load the registers needed for relocation. We should instead skip the whole relocation part and jump over to clear_bss immediately. Signed-off-by: NAndreas Bießmann <andreas.devel@googlemail.com>
-
由 Andreas Bießmann 提交于
This patch uses r1 as scratch register for copy_loop(). Therefore we do not longer need r7 for the storage of relocate_code()'s 'addr_moni' (the destination address of relocation). Therefore r7 can be used later on for other purposes. Signed-off-by: NAndreas Bießmann <andreas.devel@googlemail.com>
-
由 Heiko Schocher 提交于
suggested from Daniel Hobi<daniel.hobi@schmid-telecom.ch> Tested on following boards: arm1136: qong armv7: omap3_beagle arm926ejs: magnesium, tx25 Signed-off-by: NHeiko Schocher <hs@denx.de> cc: Daniel Hobi <daniel.hobi@schmid-telecom.ch> cc: Albert ARIBAUD <albert.aribaud@free.fr>
-
- 18 11月, 2010 1 次提交
-
-
由 Albert Aribaud 提交于
older ld emitted all ELF relocations in input sections named .rel.dyn, whereas newer ld uses names of the form .rel*. The linker script only collected .rel.dyn input sections. Rewrite to collect all .rel* input sections. Signed-off-by: NAlbert Aribaud <albert.aribaud@free.fr>
-
- 30 10月, 2010 2 次提交
-
-
由 Wolfgang Denk 提交于
For ARM systems, before ELF relocation was introduced, CONFIG_SKIP_RELOCATE_UBOOT coul be used to prevent *COPYING* the U-Boot image from whereever it was loaded to it's link address (CONFIG_SYS_TEXT_BASE). The name was badly chosen, as no relocation was performed at all, it was just a memcpy(). With ELF relocation, this does not work like that any more, and related boards need to be fixed anyway. So don't keep this relict any longer. Signed-off-by: NWolfgang Denk <wd@denx.de> Tested-by: NHeiko Schocher <hs@denx.de> Tested-by: NReinhard Meyer <u-boot@emk-elektronik.de>
-
由 Wolfgang Denk 提交于
When this define was introduced, the idea was to provide a soft migration path for ARM boards to get adapted to the new relocation support. However, other recent changes led to a different implementation (ELF relocation), where this no longer works. By now CONFIG_SYS_ARM_WITHOUT_RELOC does not only not help any more, but it actually hurts because it obfuscates the actual code by sprinkling it with lots of dead and non-working debris. So let's make a clean cut and drop CONFIG_SYS_ARM_WITHOUT_RELOC. Signed-off-by: NWolfgang Denk <wd@denx.de> Tested-by: NHeiko Schocher <hs@denx.de> Tested-by: NReinhard Meyer <u-boot@emk-elektronik.de>
-
- 27 10月, 2010 3 次提交
-
-
由 Darius Augulis 提交于
Fix address setup bug for ARM. This bug stops u-boot booting if CONFIG_SKIP_RELOCATE_UBOOT is defined. Signed-off-by: NDarius Augulis <augulis.darius@gmail.com>
-
由 Wolfgang Denk 提交于
CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not being able to use "sizeof(struct global_data)" in assembler files. Recent experience has shown that manual synchronization is not reliable enough. This patch renames CONFIG_SYS_GBL_DATA_SIZE into GENERATED_GBL_DATA_SIZE which gets automatically generated by the asm-offsets tool. In the result, all definitions of this value can be deleted from the board config files. We have to make sure that all files that reference such data include the new <asm-offsets.h> file. No other changes have been done yet, but it is obvious that similar changes / simplifications can be done for other, related macro definitions as well. Signed-off-by: NWolfgang Denk <wd@denx.de> Acked-by: NKumar Gala <galak@kernel.crashing.org>
-
由 Gray Remlin 提交于
Signed-off-by: NGray Remlin <g_remlin@rocketmail.com> Acked-by: NHeiko Schocher <hs@denx.de>
-
- 19 10月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
The change is currently needed to be able to remove the board configuration scripting from the top level Makefile and replace it by a simple, table driven script. Moving this configuration setting into the "CONFIG_*" name space is also desirable because it is needed if we ever should move forward to a Kconfig driven configuration system. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 13 10月, 2010 1 次提交
-
-
由 Heiko Schocher 提交于
Signed-off-by: NHeiko Schocher <hs@denx.de>
-
- 11 10月, 2010 1 次提交
-
-
由 Albert Aribaud 提交于
Generalized misuse of ble within relocation and bss initialization loops caused one iteration too many. Instead of ble ('branch if lower or equal'), use blo ('branch if lower'). While we're at it, fix all 'addreee' typos. Signed-off-by: NAlbert Aribaud <albert.aribaud@free.fr>
-
- 20 9月, 2010 1 次提交
-
-
由 Heiko Schocher 提交于
Change the implementation for ARM V7 to relocate the code to an arbitrary address in RAM. Adapt the Beagle board (Cortex A8) to test the changes. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: NHeiko Schocher <hs@denx.de>
-
- 06 7月, 2010 1 次提交
-
-
由 Steve Sakoman 提交于
The purpose of this patch is to prepare for adding the OMAP4 architecture, which is Cortex A9 Cortex A8 and A9 both belong to the armv7 architecture, hence the name change. The two architectures are similar enough that substantial code can be shared. Signed-off-by: NAneesh V <aneesh@ti.com> Signed-off-by: NSteve Sakoman <steve@sakoman.com> Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
-