summaryrefslogtreecommitdiffstats
path: root/arch/arm/pbl
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fix zbarebox linking with new ld"Sascha Hauer2019-03-181-1/+1
| | | | | | | | | --no-dynamic-linker is already added just a few lines below, do not add the option twice. This option also needs to be embedded in a test if the linker supports this option which we already have in the other place adding this option. This reverts commit 25de30638a2859f9e07c61821cdc71906b7169b8.
* fix zbarebox linking with new ld张忠山2019-03-071-1/+1
| | | | | Signed-off-by: 张忠山 <zzs213@126.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: zbarebox: Fix linking with new ldSascha Hauer2018-04-051-0/+3
| | | | | | | Based on "333ff7b1e Fix linking with new ld, based on u-boot" Fix building for the single PBL case aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: pbl: rename linker script for uncompressed image dataLucas Stach2017-01-092-6/+6
| | | | | | | | This has been missed in commit 5e61dd3fb550 (Add comp_copy function for use with CONFIG_IMAGE_COMPRESSION_NONE). Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add comp_copy function for use with CONFIG_IMAGE_COMPRESSION_NONESascha Hauer2016-09-151-1/+1
| | | | | | | | | | The Makefile compression commands all append the size of the uncompressed image. With CONFIG_IMAGE_COMPRESSION_NONE simply 'shipped' is used which does not append the size. Add and use a special comp_copy function which adds the size. This helps us to get the uncompressed image size in the startup code later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Makefile.lib: Make 'check_file_size' more flexibleAndrey Smirnov2015-05-071-1/+1
| | | | | | | | | | Make 'check_file_size' more flexible by not hardcoding the file whose size is going to be checked to '$@'. This way it is possible to use this subroutine to check the size of files other than the target of the rule. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: do not specify -static and -pie at the same timeLucas Stach2015-03-021-2/+3
| | | | | | | | | | | | PIE is a form of dynamic linking and thus inherently incompatible with -static. It worked ok as the current behavior of ld.bfd is to not respect -static if -pie has been specified. ld.gold and future versions of ld.bfd will fail to link if both of those incompatible switches are specified at the same time. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: PBL: Add missing pieces for xz compressed PBL imageSascha Hauer2014-11-273-0/+9
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: fix_size: check magicSascha Hauer2014-01-311-1/+1
| | | | | | | | Instead of passing the offset to the fix_size tool check the image to fixup for a valid header so that only recognized files are fixed up. This makes the usage of this tool safer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: PBL: fix binary sizeJean-Christophe PLAGNIOL-VILLARD2013-09-181-0/+8
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pbl: add generated file piggy.lz4 to .gitignoreAntony Pavlov2013-08-051-0/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pbl: add lz4 supportJean-Christophe PLAGNIOL-VILLARD2013-07-222-1/+8
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pbl: move linker script to libSascha Hauer2013-06-262-93/+4
| | | | | | | | | Since the pbl linker script can be reused by the upcoming multi image build process move it to a common place. Also remove ENTRY() from the linker script and instead add the -e option to the linker. This makes the entrypoint configurable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Add relocatable binary supportSascha Hauer2013-03-072-0/+19
| | | | | | | | | | | | | | | | | | For making the same binary executable on different SoCs which have different DRAM addresses we have to be independent of the compile time link address. This patch adds relocatable binary support for the ARM architecture. With this two new functions are available. relocate_to_current_adr will fixup the binary to continue executing from the current position. relocate_to_adr will copy the binary to a given address, fixup the binary and continue executing from there. For the PBL and the real image relocatable support can be enabled independently. This is done to (hopefully) better cope with setups where the PBL runs from SRAM or ROM and the real binary does not. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: disable HAVE_CONFIGURABLE_MEMORY_LAYOUTSascha Hauer2013-02-041-4/+4
| | | | | | | | | HAVE_CONFIGURABLE_MEMORY_LAYOUT was first meant as a feature, now it's a feature to remove it. barebox on ARM now completely uses the memory passed in from the lowlevel code and configures the malloc area and stack space during runtime making it obsolete to hardcode these values. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pbl: add none compression supportJean-Christophe PLAGNIOL-VILLARD2013-01-302-1/+8
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pbl: remove zbarebox.map during 'make clean'Antony Pavlov2012-11-191-1/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2012-11-161-1/+1
|\ | | | | | | | | | | | | Conflicts: commands/Makefile Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * make make -s more silentSascha Hauer2012-10-171-1/+1
| | | | | | | | | | | | | | use $(kecho) instead of echo to not output messages with make -s Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM pbl: add generated file zbarebox.map to .gitignoreFabio Porcedda2012-11-141-0/+1
|/ | | | | Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM lowlevel: Use get_runtime_offsetSascha Hauer2012-09-091-2/+0
| | | | | | | | The current approach to get the offset between link and runtime address is fragile. It requires a big fat comment to put no code above it and it requires an extra linker section. Instead use a small assembler function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM pbl: generate zbarebox.map in $(obj)Sascha Hauer2012-08-121-1/+1
| | | | | | | | All other linker generated files are there, too, so it seems logical to put the map file there aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* arm: always enable the garbage collector for pblJean-Christophe PLAGNIOL-VILLARD2012-08-031-0/+2
| | | | | | This allow to save arround 1KiB on at91 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ARM pbl: Add .gitignore for generated filesSascha Hauer2012-08-031-0/+5
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* compressed image: add gzip supportJean-Christophe PLAGNIOL-VILLARD2012-08-032-0/+7
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Add compressed image supportJean-Christophe PLAGNIOL-VILLARD2012-08-031-0/+1
| | | | | | | | | | | | | | | | | | This allows for creating a lzo compressed binary unsing the pbl. Only copy the piggydata if needed. Add CONFIG_PBL_FORCE_PIGGYDATA_COPY option In some case we need to copy the PIGGYDATA as the link address as example we run from SRAM and shutdown the SDRAM/DDR for reconfiguration but most of the time we just need to copy the executable code. based on Sascha Hauer Add compressed image support Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* pbl: discard unwind symbol if enable in bareboxJean-Christophe PLAGNIOL-VILLARD2012-08-033-2/+24
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Add pre-bootloader (pbl) image supportJean-Christophe PLAGNIOL-VILLARD2012-08-032-0/+98
This allows for creating a pre-bootloader binary for - nand boot - mmc boot - compressed image The pbl will be incharge of the lowlevel init if needed. The barebox will skip it. Import string functions from linux 3.4 (arch/arm/boot/compressed/string.c) and implement a dummy panic. For now on introduce dummy zbarebox* targets and c code that will contain later the decompressor. This only implemeted on ARM. This patch is based on Sascha Hauer <s.hauer@pengutronix.de> Add compressed image support patch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>