9
0
Fork 0
barebox/arch/arm/lib
Sascha Hauer ee4cab9e58 booting: more flexible Linux bootargs generation
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>
2012-05-14 09:16:31 +02:00
..
.gitignore rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
Makefile ARM: import memcpy_from/toio and memset_io from linux 2012-01-02 12:08:24 +01:00
arm.c fix malloc space sizes 2011-12-03 10:09:29 +01:00
armlinux.c booting: more flexible Linux bootargs generation 2012-05-14 09:16:31 +02:00
ashldi3.S arm: libgcc update to linux v2.6.37 2011-01-17 08:28:08 +01:00
ashrdi3.S arm: libgcc update to linux v2.6.37 2011-01-17 08:28:08 +01:00
barebox.lds.S ARM linker script: Fix barebox_image_size 2012-03-23 08:58:18 +01:00
bootm.c booting: more flexible Linux bootargs generation 2012-05-14 09:16:31 +02:00
bootu.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
bootz.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
copy_template.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
div0.c ARM: panic on div 0 2012-01-26 13:59:20 +01:00
findbit.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
io-readsb.S ioreadsb: put the whole ioreadsb function into the .text.readsb section 2010-02-16 21:49:33 +01:00
io-readsl.S Add IO string functions to also handle 32 bit IO locations 2009-07-01 10:45:21 +02:00
io-readsw-armv4.S Remove all ARM __raw_* functions. They are mixed all over 2009-07-01 14:35:35 +02:00
io-writesb.S Remove all ARM __raw_* functions. They are mixed all over 2009-07-01 14:35:35 +02:00
io-writesl.S Add IO string functions to also handle 32 bit IO locations 2009-07-01 10:45:21 +02:00
io-writesw-armv4.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
io.c ARM: import memcpy_from/toio and memset_io from linux 2012-01-02 12:08:24 +01:00
lib1funcs.S arm: libgcc update to linux v2.6.37 2011-01-17 08:28:08 +01:00
lshrdi3.S arm: libgcc update to linux v2.6.37 2011-01-17 08:28:08 +01:00
memcpy.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
memset.S arm: implement optimized string functions 2009-08-18 15:45:00 +02:00
module.c module support for arm 2007-10-03 21:09:00 +02:00
unwind.c ARM: Add stack unwinding support 2011-03-10 14:50:07 +01:00