- Jul 01, 2011
-
-
Alex Waterman authored
This patch adds support for 16 bit NAND devices attached to the NDFC on ppc4xx processors. Two config entries were added: CONFIG_SYS_NDFC_16 - Setting this tells the NDFC that a 16 bit device is attached. CONFIG_SYS_NDFC_EBC0_CFG - This is for the External Bus Controller configuration register. Also, a new ndfc_read_byte() function was added which does not first convert the data to little endian. The NAND SPL was also modified to do 16bit bad block testing when a 16 bit chip is being used. Signed-off-by:
Alex Waterman <awaterman@dawning.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- May 26, 2011
-
-
seedshope authored
Since we rename _end to __bss_end__, But we need add _end symbol for the end of u-boot image. Signed-off-by:
Zhong Hongbo <bocui107@gmail.com> Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
- May 16, 2011
-
-
Stefan Roese authored
Remove the last CONFIG_SYS_NAND_READ_DELAY occurance from nand_boot.c. I missed this one in patch a9c847cb [nand_spl: nand_boot.c: Remove CONFIG_SYS_NAND_READ_DELAY]. This fixes a compile breakage on kilauea_nand for example. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- May 13, 2011
-
-
Stefan Roese authored
There are multiple reasons why this define should be removed: First it saves some space and therefore fixes a problem we have on the canyonlands_nand and glacier_nand targets right now. Second, the define was hackish and would most likely not work on all board using nand_boot.c. Boards not providing a real dev_ready() function should implement a board specific function instead. I checked and it seems, that all boards using nand_boot.c right now already implement a board specific dev_ready() function. So this patch should not break any boards and will result in smaller NAND_SPL images. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Sughosh Ganu <urwithsughosh@gmail.com> Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Tested-by:
Sughosh Ganu <urwithsughosh@gmail.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Stefan Roese authored
Patch 65a9db7b [nand_spl: Fix large page nand_command()] broke nand booting on canyonlands. "options" has to be initialized to 0. If not, boards might have the NAND_BUSWIDTH_16 bit set, resulting in wrong offset calculation. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Cc: Alex Waterman <awaterman@dawning.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
Alex Waterman authored
The canyonland boards nand_spl size is just under the maximum 4KByte size. This patch decreases the size of the nand_spl to make a previous commit - commit 65a9db7b - fit in the nand_spl. Signed-off-by:
Alex Waterman <awaterman@dawning.com> Acked-by:
Stefan Roese <sr@denx.de> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Apr 27, 2011
-
-
Sughosh Ganu authored
Fix the nand_spl build for the hawkboard Signed-off-by:
Sughosh Ganu <urwithsughosh@gmail.com>
-
Fabio Estevam authored
Commit f326cbba (arm: fix incorrect monitor protection region in FLASH) missed to update nand_spl/board/karo/tx25/u-boot.lds. Add the _end section. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
Stefano Babic authored
Commit f326cbba breaks mx31pdk, as the _end section in u-boot.lds is missing for the nand_spl production. Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com> Tested-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
Stefano Babic authored
As exception among the i.MX processors, the i.MX31 has headers without general names (mx31-regs.h, mx31.h instead of imx-regs.h and clock.h). This requires several nasty #ifdef in the drivers to include the correct header. The patch cleans up the driver and renames the header files as for the other i.MX processors. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Apr 15, 2011
-
-
Dipen Dudhat authored
Modify eLBC based platform's NAND loader Makefile to preprocess nand loader linker script and then use it. Signed-off-by:
Dipen Dudhat <Dipen.Dudhat@freescale.com> CC: Scott Wood <scottwood@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Alex Waterman authored
This patch changes the large page nand_command() routine to use a word offset instead of a byte offset. The 'offs' argument gets divided by 2 so that the offset passed to nand_command() is still by byte offset. Originally, the offset was not shifted and when too high an offset was requested the nand chip would attempt to read non-existent data. Signed-off-by:
Alex Waterman <awaterman@dawning.com>
-
Matthew McClintock authored
Change variables to const to reduce code size, these values are hardcoded via defines anyways so we might as well assume they are constants Signed-off-by:
Matthew McClintock <msm@freescale.com> cc: Scott Wood <scottwood@freescale.com>
-
- Mar 31, 2011
-
-
Wolfgang Denk authored
Commit 6dc1eceb "Introduce a new linker flag LDFLAGS_FINAL" modified a number of Makefiles in a way that broke out-of-tree builds. The problem was that $(nandobj) was used before it got defined. Fix this. Signed-off-by:
Wolfgang Denk <wd@denx.de> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Mar 27, 2011
-
-
seedshope authored
In the nand_spl feature of SMDK6400. Add some relocation symbols to nand_spl/board/samsung/smdk6400/u-boot.lds to fix the compile error. Signed-off-by:
Zhong Hongbo <bocui107@gmail.com> Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
Po-Yu Chuang authored
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:
Po-Yu Chuang <ratbert@faraday-tech.com>
-
- Mar 22, 2011
-
-
Haiying Wang authored
commit 8aba9dce Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS breaks the usage of --gc-section to build nand_spl. We still need linker option --gc-section for every uboot image, not only the main one. LDFLAGS_FINAL passes the --gc-sections to each uboot image. To get the proper linker flags, we use LDFLAGS and LDFLAGS_FINAL to replace PLATFORM_LDFLAGS in the Makefile of each nand_spl board. Signed-off-by:
Scott Wood <scottwood@freescale.com> Signed-off-by:
Haiying Wang <Haiying.Wang@freescale.com>
-
- Feb 21, 2011
-
-
Fabio Estevam authored
Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
- Jan 14, 2011
-
-
Kumar Gala authored
Mimic support that exists on MPC8536DS on the MPC8572DS to allow booting from NAND. Signed-off-by:
Jin Qing <b24347@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Dec 17, 2010
-
-
Joakim Tjernlund authored
By rearranging the linker script we get support for relocation of -fpic for free. Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC Signed-off-by:
Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Acked-by:
Scott Wood <scottwood@freescale.com> Acked-by:
Kim Phillips <kim.phillips@freescale.com>
-
- Dec 16, 2010
-
-
Scott Wood authored
Recent GCC (4.4+) performs out-of-line epilogues in some cases, when optimizing for size. It causes a link error for _restgpr_30_x (and similar) if libgcc is not linked. It actually increases size with very small binaries, due to the fixed size of the out-of-line code, and not having any functions that actually need to restore more than 2 or 3 registers. But I don't see a way to turn it off, other than asking GCC to optimize for speed -- which may also increase size for some boards. Signed-off-by:
Scott Wood <scottwood@freescale.com> Acked-by:
Kim Phillips <kim.phillips@freescale.com> Acked-by:
Wolfgang Denk <wd@denx.de>
-
Scott Wood authored
Recent GCC (4.4+) performs out-of-line epilogues in some cases, when optimizing for size. It causes a link error for _restgpr_30_x (and similar) if libgcc is not linked. It actually increases size with very small binaries, due to the fixed size of the out-of-line code, and not having any functions that actually need to restore more than 2 or 3 registers. But I don't see a way to turn it off, other than asking GCC to optimize for speed -- which may also increase size for some boards. Signed-off-by:
Scott Wood <scottwood@freescale.com> Acked-by:
Kim Phillips <kim.phillips@freescale.com> Acked-by:
Wolfgang Denk <wd@denx.de>
-
- Dec 09, 2010
-
-
Stefano Babic authored
As more Davinci 8xx board can be added, move common code to be shared between boards. * rebased ontop of Sugosh's patches * moving the HAWKBOARD_KICK{0,1}_UNLOCK defines to arch/arm/include/asm/arch-davinci/davinci_misc.h from to arch/arm/include/asm/arch-davinci/da8xx_common.h * don't define dram functions in PRELOADER * move sync_env_enetaddr into existing EMAC ifdef * use misc.c in hawkboard nand_spl Signed-off-by:
Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by:
Stefano Babic <sbabic@denx.de> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Sughosh Ganu authored
The patch adds basic board support for TI's OMAP-L138 based Hawkboard. This board is pretty similar to the da850 EVM. Support for nand and network access is added in this version. The following bootup procedure is used. At reset, the Rom Boot Loader(RBL), initialises the ddr and the nand controllers and copies the second stage bootloader(nand_spl) to RAM. The secondary bootloader then copies u-boot from a predefined location in the nand flash to the RAM, and passes control to the u-boot image. Three config options are supported * hawkboard_config - Used to create the u-boot.bin. Tftp the u-boot.bin image to the RAM from u-boot, and flash to the nand flash at address 0xe0000. * hawkboard_nand_config - Used to generate the secondary bootloader(nand_spl) image. This creates an elf file u-boot-spl under nand_spl/. Create an AIS signed image using this file, and flash it to the nand flash at address 0x20000. The ais file should fit in one block. * hawkboard_uart_config - This is same as the first image, but with the TEXT_BASE as expected by the RBL(0xc1080000). Create the AIS Signed-off-by:
Sughosh Ganu <urwithsughosh@gmail.com> Signed-off-by:
Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Sughosh Ganu authored
Remove the board_init_f function from nand_spl/nand_boot.c. This function is to be defined by all boards using the nand_spl functionality in their individual board directory. Currently this function was being used by the smdk6400 board. Added the board specific function definition. Signed-off-by:
Sughosh Ganu <urwithsughosh@gmail.com> Acked-by:
Scott Wood <scottwood@freescale.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Nov 30, 2010
-
-
Stefano Babic authored
As more Davinci 8xx board can be added, move common code to be shared between boards. * rebased ontop of Sugosh's patches * moving the HAWKBOARD_KICK{0,1}_UNLOCK defines to arch/arm/include/asm/arch-davinci/davinci_misc.h from to arch/arm/include/asm/arch-davinci/da8xx_common.h * don't define dram functions in PRELOADER * move sync_env_enetaddr into existing EMAC ifdef * use misc.c in hawkboard nand_spl Signed-off-by:
Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by:
Stefano Babic <sbabic@denx.de> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Sughosh Ganu authored
The patch adds basic board support for TI's OMAP-L138 based Hawkboard. This board is pretty similar to the da850 EVM. Support for nand and network access is added in this version. The following bootup procedure is used. At reset, the Rom Boot Loader(RBL), initialises the ddr and the nand controllers and copies the second stage bootloader(nand_spl) to RAM. The secondary bootloader then copies u-boot from a predefined location in the nand flash to the RAM, and passes control to the u-boot image. Three config options are supported * hawkboard_config - Used to create the u-boot.bin. Tftp the u-boot.bin image to the RAM from u-boot, and flash to the nand flash at address 0xe0000. * hawkboard_nand_config - Used to generate the secondary bootloader(nand_spl) image. This creates an elf file u-boot-spl under nand_spl/. Create an AIS signed image using this file, and flash it to the nand flash at address 0x20000. The ais file should fit in one block. * hawkboard_uart_config - This is same as the first image, but with the TEXT_BASE as expected by the RBL(0xc1080000). Create the AIS Signed-off-by:
Sughosh Ganu <urwithsughosh@gmail.com> Signed-off-by:
Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Nov 29, 2010
-
-
Sughosh Ganu authored
Remove the board_init_f function from nand_spl/nand_boot.c. This function is to be defined by all boards using the nand_spl functionality in their individual board directory. Currently this function was being used by the smdk6400 board. Added the board specific function definition. Signed-off-by:
Sughosh Ganu <urwithsughosh@gmail.com> Acked-by:
Scott Wood <scottwood@freescale.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Nov 27, 2010
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Kim Phillips <kim.phillips@freescale.com> Cc: Haiying Wang <r54964@freescale.com>
-
Wolfgang Denk authored
This commit adapts 4xx boards for partial linking with --gc-sections. Signed-off-by:
Stefan Roese <sr@denx.de> Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Cc: Tirumala Marri <tmarri@apm.com> Cc: David Updegraff <dave@cray.com> Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com> Cc: Dirk Eibach <eibach@gdsys.de> Cc: Larry Johnson <lrj@acm.org> Cc: Peter De Schrijver <p2@mind.be> Cc: Niklaus Giger <niklaus.giger@netstal.com> Cc: Daniel Poirot <dan.poirot@windriver.com> Acked-by:
Stefan Roese <sr@denx.de>
-
Scott Wood authored
Apply the same fix for 83xx as was done for 85xx in commit 96196a1f. Without this, NAND SPLs are built with the text base intended for the main image, resulting in a broken, very large u-boot-nand.bin. The block of defines for NAND boot is moved closer to where CONFIG_SYS_TEXT_BASE is defined. We can't directly use CONFIG_SYS_NAND_U_BOOT_DST in the definition of CONFIG_SYS_TEXT_BASE because autoconf.mk will include the literal text "CONFIG_SYS_NAND_U_BOOT_DST", but at least keep them close and point out that they're supposed to be the same. Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Nov 17, 2010
-
-
Albert Aribaud authored
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:
Albert Aribaud <albert.aribaud@free.fr>
-
- Nov 12, 2010
-
-
Haiying Wang authored
Introduce a SPL specific CONFIG_SYS_TEXT_BASE_SPL define to be used by the linker. This has similiar semantics to CONFIG_SYS_TEXT_BASE however since SPL is a unqiue image we introduce a new variable to control its text base address. Signed-off-by:
Haiying Wang <Haiying.Wang@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Oct 29, 2010
-
-
Wolfgang Denk authored
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:
Wolfgang Denk <wd@denx.de> Tested-by:
Heiko Schocher <hs@denx.de> Tested-by:
Reinhard Meyer <u-boot@emk-elektronik.de>
-
- Oct 18, 2010
-
-
Wolfgang Denk authored
Commit 14d0a02a "Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE" missed a few places, especially for boards that were added inbetween. Fix the remaining issues. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
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:
Wolfgang Denk <wd@denx.de>
-
- Oct 13, 2010
-
-
Heiko Schocher authored
Signed-off-by:
Heiko Schocher <hs@denx.de>
-
- Sep 23, 2010
-
-
Stefan Roese authored
This patch starts a bit PPC4xx header cleanup. First patch mostly touches PPC440 files. A later patch will touch the PPC405 files as well. This cleanup is done by creating header files for all SoC versions and moving the SoC specific defines into these special headers. This way the common header ppc405.h and ppc440.h can be cleaned up finally. Signed-off-by:
Stefan Roese <sr@denx.de>
-
Stefan Roese authored
This patch moves some ppc4xx related headers from the common include directory (include/) to the powerpc specific one (arch/powerpc/include/asm/). This way to common include directory is not so cluttered with files. Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Sep 19, 2010
-
-
Heiko Schocher authored
Change the implementation for arm926 to relocate the code to an arbitrary address in RAM. Adapt the TX25 (i.MX25), magnesium board to test the changes. On the tx25 board TEXT_BASE is set to the final relocation address to prevent one more copying of u-boot code when relocating. More info see: doc/README.arm-relocation da850 board: Tested-by:
Ben Gardiner <bengardiner@nanometrics.ca> Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by:
Heiko Schocher <hs@denx.de> Cc: Ben Gardiner <bengardiner@nanometrics.ca>
-