[U-Boot] [PATCH] VGA text console support

2013-04-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Most coreboot users use just VGA text console, not graphics. Support it. Remaining problem is that software and hardware cursor blinking superimpose. I disabled software blinking locally but it's not part of this patch since it's not done properly. diff --git a/drivers/video/cfb_console.c b/driver

[U-Boot] Improper assumption of serial port

2013-04-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
U-boot on coreboot assumes that serial port is always available and improperly interprets missing ones as stream of 0xff. What would be the proper way to handle this? Is it acceptable to probe at it's address whether we have a valid ns8250/ns16550 device (we can read back the divisor and compare wi

[U-Boot] [PATCH] Fix wrong >4G filtering

2013-04-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Filtering of >4G chunks is wrong and one of such chunks can be improperly declared as usable ram top after being cut down to 4G, so uboot tries to relocate to ROM. diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c index 786009c..3b8dd5e 100644 --- a/arch/x86/cpu/coreboot/

[U-Boot] [PATCH] i386 compiler args are wrong

2013-04-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
-pie for ld can't be used w/o -fPIE to compiler. -m32 and -melf_i386 are needed to be able to use gcc-multilib/binutils-multilib. -fPIE prevents from using some registers in constraints. diff --git a/Makefile b/Makefile index db7561c..6c3a8d5 100644 --- a/Makefile +++ b/Makefile @@ -365,7 +365,7 @

[U-Boot] U-Boot under coreboot

2013-04-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Hello, I've tried u-boot on top of coreboot on Lenovo Thinkpad X201 laptop and it failed lamentably. I send now series of patches to fix few problems but it still isn't completely functional. I can now get it to go to the console most times (sometimes it crashes before), it often crashes if I attem