coreboot/payloads/libpayload
huang lin ca358e2acc usb: dwc2: using a new FIFO allocation method
Total FIFO length is split into many 512 byte blocks,
because the max packet size in coreboot is 512 byte,
then allot these blocks to GRXFSIZ and GNPTXFSZ evenly.
This method avoids the hardcoding and make the FIFO size
value work for dwc2 controller that has different FIFO ram size.

BUG=chrome-os-partner:32634
BRANCH=None
TEST=Boot kernel from USB

Change-Id: Ib50a08c193f7f65392810ca3528a97554f2c3999
Signed-off-by: huang lin <hl@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/233119
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/242156
Tested-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Julius Werner <jwerner@chromium.org>
2015-01-21 01:17:25 +00:00
..
arch libpayload: arm64: don't modify cbtable entries 2014-11-18 21:11:52 +00:00
bin libpayload: Add support for arm64 in libpayload 2014-06-07 01:28:57 +00:00
configs Brain: Initial import. 2015-01-21 01:16:33 +00:00
crypto
curses
drivers usb: dwc2: using a new FIFO allocation method 2015-01-21 01:17:25 +00:00
gdb libpayload: Let GDB stub read/write memory with aligned MMIO words 2014-07-22 01:24:00 +00:00
include CBFS: Automate ROM image layout and remove hardcoded offsets 2014-12-03 06:09:54 +00:00
libc libpayload: UTF-16LE to ASCII conversion 2014-11-25 03:47:18 +00:00
libcbfs libpayload: cbfs: Fix ram_media map() error return value 2015-01-21 01:17:03 +00:00
liblzma
libpci
sample
tests
util libpayload: Add support for arm64 in libpayload 2014-06-07 01:28:57 +00:00
Config.in Revert "ryu: libpayload: Add CONFIG_LP_TEGRA_VIDEO_CONSOLE_INIT" 2014-12-04 20:44:56 +00:00
Doxyfile
LICENSE_GPL libpayload: Introduce new Kconfig to explicitly allow GPL code 2014-06-13 20:37:29 +00:00
LICENSES libpayload: Introduce new Kconfig to explicitly allow GPL code 2014-06-13 20:37:29 +00:00
Makefile libpayload: Add support for arm64 in libpayload 2014-06-07 01:28:57 +00:00
Makefile.inc Change GDB_DEBUG to SOURCE_DEBUG 2014-10-08 05:07:21 +00:00
README

-------------------------------------------------------------------------------
libpayload README
-------------------------------------------------------------------------------

libpayload is a minimal library to support standalone payloads
that can be booted with firmware like coreboot. It handles the setup
code, and provides common C library symbols such as malloc() and printf().

Note: This is _not_ a standard library for use with an operating system,
rather it's only useful for coreboot payload development!
See http://coreboot.org for details on coreboot.


Installation
------------

 $ git clone http://review.coreboot.org/p/coreboot.git

 $ cd coreboot/payloads/libpayload

 $ make menuconfig

 $ make

 $ sudo make install (optional, will install into /opt per default)

As libpayload is for 32bit x86 systems only, you might have to install the
32bit libgcc version, otherwise your payloads will fail to compile.
On Debian systems you'd do 'apt-get install gcc-multilib' for example.


Usage
-----

Here's an example of a very simple payload (hello.c) and how to build it:

 #include <libpayload.h>

 int main(void)
 {
     printf("Hello, world!\n");
     return 0;
 }

Building the payload using the 'lpgcc' compiler wrapper:

 $ lpgcc -o hello.elf hello.c

Please see the sample/ directory for details.


Website and Mailing List
------------------------

The main website is http://www.coreboot.org/Libpayload.

For additional information, patches, and discussions, please join the
coreboot mailing list at http://coreboot.org/Mailinglist, where most
libpayload developers are subscribed.


Copyright and License
---------------------

See LICENSES.