History log of /hardware/intel/bootstub/bootstub.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
88c2e83d0651d76a288ca54280f6d2b0a8e7b9cf 27-Feb-2015 Sylvain Chouleur <sylvain.chouleur@intel.com> Factorize bootstub makefile

Bug: 19708986

This patch aims to remove the huge code duplications in Android.mk and
also add a new kind of bootstub target: ramdump, which is used to boot a
post-crash OS with different memory constraints.

Change-Id: I962b48290994b75a44eb2e47487e1c1a8293f4df
Signed-off-by: Sylvain Chouleur <sylvain.chouleur@intel.com>
/hardware/intel/bootstub/bootstub.c
36612706911843b4b900f8760003a8cc728d39d3 14-Aug-2014 Jeremy Compostella <jeremy.compostella@intel.com> fix cpuid asm instruction call

This patch cfixes some compilation warning and clean the Android.mk a
little bit.

Bug: 16928801

Change-Id: Icc277c0871cce83e183a109cfe24daf6e5ad8fab
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
/hardware/intel/bootstub/bootstub.c
b5c97f511126008dce3334cd47b6988b81b9f4ae 09-Jul-2014 Florent Auger <florent.auger@intel.com> bootstub support for aosp and legacy

The code searches for the AOSP header at a specified location.
If found, it performs all the required memcpy by using the
addresses and size provided in the AOSP header instead of those
hardcoded into bootstub.h.
Otherwise, it processes as usual for an OSII image.
Change the bootstub output to $(PRODUCT_OUT)/2ndbootloader

Change-Id: I25da96f99b2a01f457d3f8b8393080f9ec562c94
Signed-off-by: Florent Auger <florent.auger@intel.com>
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Signed-off-by: Jocelyn Falempe <jocelyn.falempe@intel.com>
Reviewed-on: https://android.intel.com/215921
Reviewed-by: Betous, GuillaumeX <guillaumex.betous@intel.com>
/hardware/intel/bootstub/bootstub.c
9b26e971e13580caa2fc86bda13d9b1df06df741 02-Jan-2014 Evgeny Kalugin <evgeny.kalugin@intel.com> Test patch for anniadele fabric error

BZ: 136642

Change-Id: Ic87ef04c0c66bdc4df26e24f3086eed9ff77818e
Signed-off-by: Evgeny Kalugin <evgeny.kalugin@intel.com>
/hardware/intel/bootstub/bootstub.c
8e8bf00a43ca772040ce02b2a8096d523171a8a4 24-Oct-2013 Evgeny Kalugin <evgeny.kalugin@intel.com> [PORT FROM XEN_SANDBOX]Bootstub modification for Xen, ported from R42TW branch

BZ: 136642

Deeply modified port from Xen branch

Change-Id: Icde718b22f8519ab33cc0dfb78a057bacfc9dda0
Orig-Change-Id: I0b56738d9532c268582b6a7a3d3fb1974cf28324
Signed-off-by: Evgeny Kalugin <evgeny.kalugin@intel.com>
/hardware/intel/bootstub/bootstub.c
90847a8a794a6eedef1f61daab5a9e3afde33c5a 08-Sep-2011 Mark F. Brown <mark.f.brown@intel.com> SSP: Added SPI UART via SSP5

BZ: 114933

Merrifield uses SPI via SSP rather than a dedicated SPI peripheral
Moved volatile definitions to types.h

Based off code by Courtney A. Drant

Change-Id: I3a8fbe364f2fcf860ac47f431b93868fb7b598d9
Signed-off-by: Mark F. Brown <mark.f.brown@intel.com>
Signed-off-by: Courtney A. Drant <courtney.a.drant@intel.com>
Reviewed-on: http://android.intel.com:8080/112531
Reviewed-by: Fourdan, Olivier <olivier.fourdan@intel.com>
Tested-by: Fourdan, Olivier <olivier.fourdan@intel.com>
Reviewed-by: Fert, Laurent <laurent.fert@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/bootstub/bootstub.c
aecaba3b298855b0ce93f94897a0e2b5269639a7 02-Apr-2013 Eric Ernst <eric.ernst@intel.com> bootstub: optimizations and cleanup of bootstub

BZ: 98228

Optimizations of bootstub code:
-clean up naming (replacing mrst references to mid where applicable)
-Code size reduction
-increase code efficiency
-change uart functionality to more accurately support on other platforms.
Instead of assuming SPI 0 for non recognized SOCs, will now skip spi/uart
initializations and simply return from print routines
-increase version to 1.3

Change-Id: Id355fa64d53422cb8fa28e4fd5155e0e1b9d0b55
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
Reviewed-on: http://android.intel.com:8080/99552
Reviewed-by: Gao, Bin <bin.gao@intel.com>
Reviewed-by: Chouleur, Sylvain <sylvain.chouleur@intel.com>
Reviewed-by: Noziska, Patrick J <patrick.j.noziska@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/bootstub/bootstub.c
923fa8dbef1ea905fca31f008bdcfac9a6c33001 30-Mar-2013 Bin Gao <bin.gao@intel.com> bootstub: get system memory map by int 15h on Baytrail platform

BZ: 96847

There is no SFI MMAP table any more for Baytrail platform.
Now we can get system memory map information by int 15h which returns
an e820 table with memory map entries.
We have to switch to real mode to call int 15h then switch back to
protected mode.
This patch implements the real mode int 15 call in assembly language
but exported a C style function:
int get_e820_by_bios(void *e820_buf);
See details in e820_bios.S.

Change-Id: I33dbeaaa58da217e74e015f0d911896500043d17
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/99216
Reviewed-by: Balestriere, VianneyX <vianneyx.balestriere@intel.com>
Tested-by: Balestriere, VianneyX <vianneyx.balestriere@intel.com>
/hardware/intel/bootstub/bootstub.c
8a13ab75e9709abcf6fb1ec105111f922abdae75 30-Mar-2013 Bin Gao <bin.gao@intel.com> bootstub: add VLV2 SoC detection

BZ: 96845

Add ValleyView2 SoC (i.e. Baytrail platorm) detection for bootstub.
This is needed for further VLV2 related feature enabling, e.g. BIOS style
e820 read, etc.

Change-Id: Id590de166acb01a81cc11290bf1efdd27ba82a32
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/99215
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Renganathan, Prabu <prabu.renganathan@intel.com>
Reviewed-by: Anagani, Chandra Sekhar <chandra.sekhar.anagani@intel.com>
Reviewed-by: Ernst, Eric <eric.ernst@intel.com>
Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/bootstub/bootstub.c
1a86f0aeb6fc921c58dfdf97bc7fa23c58ff65f3 24-Oct-2011 Jeremy Compostella <jeremyx.compostella@intel.com> Bootstub: Increase the command line size in bootstub

BZ: 12336

Bootstub is currently allocated only 256 bytes for kernel boot command-line
options. The Android kernel boot command line options is getting larger and
with the current size of 256 bytes in size, it's not enough.

This patch added to increase the allocation of the kernel boot command-line
options to 1024 bytes in bootstub. Also, bump up the bootstub version to v1.2

Change-Id: Id8804359899ee1facb621de2cb8fd3c6ef4e14ad
Signed-off-by: Jeremy Compostella <jeremyx.compostella@intel.com>
Signed-off-by: Leonard Mai <leonard.mai@intel.com>
Reviewed-on: http://android.intel.com:8080/22416
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Romieu, Benoit <benoit.romieu@intel.com>
Tested-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/bootstub/bootstub.c
4c56e4505d7b0f66515667edd56ba49c84b63172 06-Oct-2011 Leonard Mai <leonard.mai@intel.com> bootstub: add cloverview support

Add cloverview support. Also bump up the version to 1.1.

Signed-off-by: Leonard D Mai <leonard.mai@intel.com>
/hardware/intel/bootstub/bootstub.c
9fc3341bd5a5dcfeb4980b75eed2a743c604b638 07-Oct-2010 Jacob Pan <jacob.jun.pan@linux.intel.com> SFI: fix table alignment

SFI spec does not require any dword alignment of its tables
other than SYST base table. IA FW may produce byte aligned mmap
table that the current code cannot handle.
Also added __packed attribute for sfi structures.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
/hardware/intel/bootstub/bootstub.c
683ef40c35d6ad235414236a68735ac86a4b20cc 09-Jun-2010 Alek Du <alek.du@intel.com> Pump up version to 0.9

A good sign for Medfield support...

Signed-off-by: Alek Du <alek.du@intel.com>
/hardware/intel/bootstub/bootstub.c
f21b9a32c994ce8ad175b902b41d0209f72c8af1 27-May-2010 Alek Du <alek.du@intel.com> Fixing license header ...

Signed-off-by: Alek Du <alek.du@intel.com>
/hardware/intel/bootstub/bootstub.c
1e0485e6ff40f4871c31d54f8b885fbd5b4361dd 12-Mar-2010 Alek Du <alek.du@intel.com> Penwell: Detect Penwell through cpuid and thus set correct SPIC for uart output

Any other good idea?

Signed-off-by: Alek Du <alek.du@intel.com>
/hardware/intel/bootstub/bootstub.c
9843d275bb1595883bf6010853ef0d86c8839c78 23-Oct-2009 Alek Du <alek.du@intel.com> initrd: do not copy initrd image to DDR location if no initrd exists

Signed-off-by: Alek Du <alek.du@intel.com>
/hardware/intel/bootstub/bootstub.c
5dec7c4fa651e7b20e3c79e1187da5e35aeba08f 12-Aug-2009 Jacob Pan <jacob.jun.pan@intel.com> spi: changed clock divider to match 100MHz SPI CLK

Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
/hardware/intel/bootstub/bootstub.c
a8cef7fc4c8686fd903b444b0d1ac0a071d05f5d 04-Jun-2009 Alek Du <alek.du@intel.com> add SPI controller selection flag, clean code to 0.7 version

Signed-off-by: Alek Du <alek.du@intel.com>
/hardware/intel/bootstub/bootstub.c
7cc52cde55aa85061da67d64212e036ac74d9e73 01-Jun-2009 Feng Tang <feng.tang@intel.com> SFI: use sfi mmap table to build a e820 table for boot_parameters

Signed-off-by: Feng Tang <feng.tang@intel.com>
/hardware/intel/bootstub/bootstub.c
a24ea5cfb4209b37f8d42f9ed5584ae9cce85bfc 26-May-2009 Alek Du <alek.du@intel.com> Optimized initrd relocating performance and spi uart output performance

Signed-off-by: Alek Du <alek.du@intel.com>
/hardware/intel/bootstub/bootstub.c
c694cee72a2679d4987adab2e5501c41e7e5e8b4 12-Mar-2009 Alek Du <alek.du@intel.com> Bump up version to 0.5
/hardware/intel/bootstub/bootstub.c
92fefcccbf9d5759be2e11088f2da57a0e112423 12-Mar-2009 Alek Du <alek.du@intel.com> Fixed a confusing version printk
/hardware/intel/bootstub/bootstub.c
47cb70c404229ba28d674a183874102bcbd8199a 10-Mar-2009 Jacob Pan <jacob.jun.pan@intel.com> Increment version number to alert added HW sub-arch ID for MRST
/hardware/intel/bootstub/bootstub.c
a528633fda88a435c59f35f2eee1665dedaf8cf4 10-Mar-2009 Jacob Pan <jacob.jun.pan@intel.com> Add hardware subarchitecture ID for Moorestown in setup header
/hardware/intel/bootstub/bootstub.c
c8496d189ca8e443b6a56e66e4069a0dbe694941 10-Jul-2008 Alek Du <alek.du@intel.com> Added spi uart output suppression flag, fixing some minor bugs
/hardware/intel/bootstub/bootstub.c
386b0b44ea92a98605323274c63b1bc29cfea86b 10-Jun-2008 Alek Du <alek.du@intel.com> Could not call spi before gdt setting up
/hardware/intel/bootstub/bootstub.c
7eac544cd39f0d9070b977eff43d18360ed2b553 05-Jun-2008 Alek Du <alek.du@intel.com> Better structure changing for spi-uart
/hardware/intel/bootstub/bootstub.c
ca77570f5ffd4aac472bd21986e1634bed63edd2 05-Jun-2008 Feng Tang <feng.tang@intel.com> * Add early printk function to bootstub, the func is
void bs_spi_printk(const char* str)
/hardware/intel/bootstub/bootstub.c
acca6fb275465ea2b50394f23e738e1ab5f53b4c 02-Jun-2008 Alek Du <alek.du@intel.com> Set original video mode / cols /lines to 0 -- to supress kernel decompressing output
/hardware/intel/bootstub/bootstub.c
07cd7e2cae53fef433bbf0d4d6e29c65b9bdc5b8 22-May-2008 Alek Du <alek.du@intel.com> Minor fix
/hardware/intel/bootstub/bootstub.c
b379eef67dee68c84b67518aefacb87df3ca914c 21-May-2008 Alek Du <alek.du@intel.com> * Fixing license headers
/hardware/intel/bootstub/bootstub.c
6135ebb4d1a12902b2a74d6ed7f517bad8a694af 20-May-2008 Alek Du <alek.du@intel.com> * fixing stuff according to Rob: 1. no memsize 2. main ==> bootstub
/hardware/intel/bootstub/bootstub.c
853e56be92357d033e3559a271cc6f96095120d0 16-May-2008 Alek Du <alek.du@intel.com> * fix initrd file offset bug
/hardware/intel/bootstub/bootstub.c
3a1ff121ccb1915f72594315421b90e47b02d8dd 16-May-2008 Alek Du <alek.du@intel.com> * fix memory calculate bug
/hardware/intel/bootstub/bootstub.c
b3d26169cee38232efad615f21e4d5575c68d964 15-May-2008 Alek Du <alek.du@intel.com> * fix boot_params
/hardware/intel/bootstub/bootstub.c
bb88522177746c4d357ec88686e602752cb7f00e 14-May-2008 Alek Du <alek.du@intel.com> * add initrd support
/hardware/intel/bootstub/bootstub.c
0fdcecac19af4ea10163a2646cb4dc0897f89cde 14-May-2008 Alek Du <alek.du@intel.com> * more more fix
/hardware/intel/bootstub/bootstub.c
d6f7f14386617f7b8f5e2ded77bb7edaaac2a393 14-May-2008 Alek Du <alek.du@intel.com> * fix more
/hardware/intel/bootstub/bootstub.c
1f2cc2d8ba24cedda84257b368b77ed2fa3d24a1 14-May-2008 Alek Du <alek.du@intel.com> * more reliable check signature
/hardware/intel/bootstub/bootstub.c
0d21777d054a811285de64334873b7879ff987d7 14-May-2008 Alek Du <alek.du@intel.com> *let it boot to "Decompressing kernel ... boot kernel...." :-)
/hardware/intel/bootstub/bootstub.c
fff91f519f4a88db5f8fa22b262644c58a9240bb 14-May-2008 Alek Du <alek.du@intel.com> * fix some bugs
/hardware/intel/bootstub/bootstub.c
fe0e8edbee4406cfd0c348bb98ee452ecc7ac4d3 13-May-2008 Alek Du <alek.du@intel.com> * Fill more setup_header items
/hardware/intel/bootstub/bootstub.c
2c4ebecb2259bd402293baa6751c0dde292a55fd 13-May-2008 Alek Du <alek.du@intel.com> * fill right cmd_line
/hardware/intel/bootstub/bootstub.c
b7f7baf2e23345011ae4079e62c470418c2424e6 13-May-2008 Alek Du <alek.du@intel.com> * bootstub version 0.01
/hardware/intel/bootstub/bootstub.c