summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/armlinux.c
Commit message (Collapse)AuthorAgeFilesLines
* arm: armlinux: get the architecture before shutdown bareboxJean-Christophe PLAGNIOL-VILLARD2012-09-121-2/+1
| | | | | | | As we may try to get it from the env. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* booting: more flexible Linux bootargs generationSascha Hauer2012-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | We currently use the environment variable 'bootargs' to get the Linux bootargs. This patch allows for a more flexible bootargs generation using global variables. With it the Linux bootargs are concatenated from multiple variables. This allows to replace parts of the bootargs string without having to reconstruct it completely. With this bootargs can be constructed like: global linux.bootargs.base="console=ttyS0,115200" global linux.bootargs.ip="ip=dhcp" global linux.mtdparts="physmap-flash.0:512K(nor0.barebox),-(root)" This will then automatically be combined into a kernel bootargs string during boot. If the 'linux.bootargs.' variables are all empty the old standard 'bootargs' way will be used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Allow to compile in thumb-2 modeSascha Hauer2012-03-061-1/+16
| | | | | | | | | This shrinks the resulting binary size by ~25%. Exceptions are still handled in arm mode, so we have to explicitely put .arm directives into the exception code. Thumb-2 mode has been tested on i.MX51 Babbage board. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Fix oftree bootingSascha Hauer2012-02-131-0/+1
| | | | | | | We forgot to initialize params to the oftree to actually boot a kernel with devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: call start_linux directly with initrd start/size and oftreeSascha Hauer2011-12-151-10/+10
| | | | | | | whoever calls this function is not necessarily aware of a struct image_data, so remove the dependency from the function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add armlinux specific magicvar descriptionsSascha Hauer2011-12-051-0/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: remove unnecessary includeSascha Hauer2011-11-291-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: use initrd_address and initrd_sizeSascha Hauer2011-11-291-5/+5
| | | | | | Make these fields in struct image_data the reference for image handlers Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: cleanup linux varsSascha Hauer2011-11-291-27/+65
| | | | | | | | | | | | arch_number is currently exported to the environment but not read back on boot time which is rather confusing. system_rev and system_serial are not exported to the environment but can be set in board specific code. This patch exports all these variables to the environment and reads them back on boot time. All variables get a armlinux_ prefix, so the arch_number environment variable gets renamed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM Linux: Add device tree supportSascha Hauer2011-10-191-3/+12
| | | | | | | | If the user has parsed a tree, we start Linux using the device tree, otherwise we use the traditional ATAG mechanism. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: switch to generic memory banksSascha Hauer2011-09-231-5/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: export arch_number to envJean-Christophe PLAGNIOL-VILLARD2011-09-201-0/+7
| | | | | | | so we can dynamise the boot depending on the machine Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu-remove-gd_t' into nextSascha Hauer2011-08-031-1/+0
|\
| * remove unused global_data.hSascha Hauer2011-08-011-1/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: move armlinux_add_dram to location which is always compiledSascha Hauer2011-08-011-17/+2
|/ | | | | | | | | | | We want to use the memory banks later in the MMU which is independent of Linux, so move this to a location which is always compiled. Also, make the memory bank list global and add an iterator for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: mem tag switch to "struct resource"Jean-Christophe PLAGNIOL-VILLARD2011-07-201-2/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: move bootu code to its own fileSascha Hauer2011-04-041-33/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: move bootz code to its own fileSascha Hauer2011-04-041-95/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: move bootm code to its own fileSascha Hauer2011-04-041-80/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: factor out a start_linux functionSascha Hauer2011-04-041-19/+20
| | | | | | This can be shared between the different boot commands. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: support big/little endian switching in "bootX".Krzysztof Halasa2011-01-071-15/+54
| | | | | | | Currently implemented only in "bootz". Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: pass INIRTD tag to the kernelEric Bénard2010-11-021-14/+16
| | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: sparse fixesSascha Hauer2010-10-211-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* image: remove confusing image_check_* functionsSascha Hauer2010-10-131-1/+1
| | | | | | | | | | | The function names do not make it clear what return value is expected and do not save a single line of code. Put the code inline and unbreak the wrong checks introduced with a3c1e5d888d0ee317ffc7635694684bb71213c9c. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Eric Bénard <eric@eukrea.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Replace direct header access with the API routinesJean-Christophe PLAGNIOL-VILLARD2010-10-081-3/+3
| | | | | | Copied from U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Revert "Replace direct header access with the API routines"Sascha Hauer2010-10-071-3/+3
| | | | | | | | | | This reverts commit 0ceafe14be072696eff3e549d8c7b7de8a3e416d. Conflicts: include/image.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Replace direct header access with the API routinesJean-Christophe PLAGNIOL-VILLARD2010-09-241-3/+3
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: allow to overwrite the system_rev via bootmJean-Christophe PLAGNIOL-VILLARD2010-09-221-4/+14
| | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: add support for the serial ATAGBaruch Siach2010-08-041-0/+19
| | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootz: give a proper error on open() failureBaruch Siach2010-07-221-0/+5
| | | | | | | | Currently when running bootz on a nonexistent file, barebox just got stuck. Fix this. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: reorder tag setupSascha Hauer2010-06-241-29/+22
| | | | | | | | We call the individual setup_*_tag functions from three different boot commands. Waste less space by calling a single setup_tags function instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootu: Allow passing in devices as parameterSascha Hauer2010-06-171-2/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm boot: FormattingMarc Reilly2010-05-171-1/+1
| | | | | | | Changed to be consistent with surrounding code. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: Add revision tag to boot parametersMarc Reilly2010-05-171-0/+23
| | | | | | | | Revision info required for some boards at boot time. Only adds if the system_rev has been set to non-zero. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: replace cleanup_before_linux with the generic shutdown_barebox functionSascha Hauer2010-03-301-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-011-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-151-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* list: remove duplicated list.hSascha Hauer2009-11-031-1/+1
| | | | | | | | We accidently have two list implementations in the tree: include/list.h and include/linux/list.h. This patch moves the latter (newer one) to include/linux/list.h. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: remove maxargsSascha Hauer2009-10-191-2/+0
| | | | | | | No need to check for maximum argument counts. The commands are safe to be called with more arguments, so lets safe some bytes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: Add bootu commandSascha Hauer2009-08-191-1/+35
| | | | | | bootu command to start raw (uncompressed) Linux images Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: make 'bootz' configurableSascha Hauer2009-08-191-0/+4
| | | | | | also, fix compilation with bootm disabled Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux.c: refactorSascha Hauer2009-08-191-157/+83
| | | | | | | | - remove ifdeffery - make locally used functions static - coding style cleanup Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: remove unused atagsSascha Hauer2009-08-191-53/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootz: Speed up bootz commandSascha Hauer2009-08-131-5/+41
| | | | | | | | We used to read the whole file with zImage booting. When the file is really a device which is much bigger than the zImage it's quite slow. Read the image size from the image instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Get rid of DEVICE_TYPE_DRAM usageSascha Hauer2009-07-211-9/+25
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove SHOW_BOOT_PROGRESSSascha Hauer2009-03-191-10/+0
| | | | | | Though useful it is currently unsued and broken. Should be reimplemented Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Add a bootz commandSascha Hauer2009-02-061-0/+49
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [ARM] Remove CONFIG_ARCH_NUMBER from Kconfig system. Putting too manySascha Hauer2008-02-261-9/+29
| | | | | | | | | | | | values into kconfig which are not user configurable at all only encourages people to put even more stuff in there. This is not good because people tend to have board patches lying around and these patches won't apply regularly if they all change the same file (arch/arm/Kconfig) Instead, introduce a function armlinux_set_architecture() which everyone can call during board setup. Similarly introduce armlinux_set_bootparams() for the boot parameter pointer.
* - Add functions to register image handlers for booting uImagesSascha Hauer2008-02-201-13/+35
|
* cleanup do_bootm_linux()Robert Schwebel2007-11-281-106/+121
| | | | | | | | This patch cleans up the do_bootm_linux() function. It removes most of the uggly ifdefery and replaces it by a sane function optimizing structure. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>