Commit Graph

10 Commits

Author SHA1 Message Date
Stephen Warren
4b0e5d0250 Switch to GPL-v2-only license
... and paste in the standard NVIDIA license header formatting, and
add a copy of the GPLv2 in COPYING.

Change-Id: I7ef29d4652e09776b03aa9873db5926c80f06f60
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-on: http://git-master/r/167474
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Tested-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
2012-11-30 13:05:29 -08:00
Stephen Warren
f13abb05ce Add PreBctPadBlocks config file option
This allows the BCT to be offset within the memory device. This is a port
of commit 883a7d0 "Add suport for MMC boot image preparation" from
git://gitorious.org/cbootimage/cbootimage.git's trimslice branch. The
description there is:

    Add suport for MMC boot image preparation

    In order to allow the MBR to be placed at offset 0,
    BCT is copied to 128K offset.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Change-Id: Icde53082f5a4645fefb70deb408a42f9920aed1f
Reviewed-on: https://gerrit.chromium.org/gerrit/22935
Reviewed-by: Simon Glass <sjg@chromium.org>
2012-05-23 07:56:07 -07:00
Peer Chen
de7ab55eb1 CHROMIUM: cbootimage: Specify the ODM_DATA
Add the ODM_DATA argument, u-boot remove the hardcode ODM_DATA,
need to use the ODM_DATA from BCT.

BUG=None
TEST=Done

Change-Id: I215ed99f42d02b82450130129badef2b36e6d370
Signed-off-by: Peer Chen <pchen@nvidia.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/20306
Reviewed-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Jimmy Zhang <jimmzhang@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2012-04-19 14:42:05 -07:00
Peer Chen
6f2cbc7384 CHROMIUM: cbootimage: Add t30 support
Add the t30 chip support to cbootimage file, use can append
-t20/-t30 chipname option to support the different chip
explicitly, the default is t20 if without this chipname option.

BUG=None
TEST=Test done locally with .cfg file

Change-Id: I0e77f0e0ce2a324bee3287787dcab1c15f3512e4
Reviewed-on: https://gerrit.chromium.org/gerrit/17911
Commit-Ready: Peer Chen <pchen@nvidia.com>
Tested-by: Peer Chen <pchen@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2012-04-10 10:55:18 -07:00
Peer Chen
56f4048a7b CHROMIUM: cbootimage: Add Bctcopy parameter
Add the Bctcopy parameter for the bct number in final boot image
file to save the NAND space.
In .cfg file, add "Bctcopy = n(n >= 1)" to specify the bct count.

BUG=chromium-os:17464
TEST=cfg-file

Change-Id: I873a000f9165017db9dec25fb7b18cf082e535ba
Reviewed-on: http://gerrit.chromium.org/gerrit/5207
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
2011-09-16 11:58:56 -07:00
Anton Staaf
e517a4f5ce Expose and augment parser enum and field name tables to bct_dump.
This adds the nvbctlib id value to the field_item struct and makes
the parser tables available outside of parse.c.  This lets bct_dump
use these to pretty print a BCT in a format that the parser can
later read back in.

BUG=chromium-os:11981
TEST=Sign and boot a U-Boot image on Seaboard using:

sudo emerge -av cbootimage
USE="recovery flasher" emerge-tegra2_seaboard -av chromeos-u-boot-next
cros_write_firmware --board tegra2_seaboard --firmware /build/tegra2_seaboard/u-boot/u-boot-recovery.bin --sign

Change-Id: Ibcc8ce5c2c62cbfea8ca2850ddd8122b84c0f78f

Review URL: http://codereview.chromium.org/6677007
2011-03-14 12:28:06 -07:00
Peer Chen
3a834ed783 Add the SDRAM parameters support for cbootimage.
Change-Id: I15a6cacbf8b19b16b4bcccd6ea0e2740cacadee3

BUG=None.
TEST=Test with config file.

Review URL: http://codereview.chromium.org/6625006
Patch from Peer Chen <pchen@nvidia.com>.
2011-03-04 09:30:05 -08:00
Peer Chen
053d578f2b Add the nand device support for cbootimage tool.
Change-Id: Ic24dd4c971c16d00742d90830be168b41483be7a

BUG=None.
TEST=Test with the config file.

Review URL: http://codereview.chromium.org/6611009
Patch from Peer Chen <pchen@nvidia.com>.
2011-03-03 10:12:58 -08:00
Peer Chen
7557d9b11c Add the device type/parameters support for cbootimage tool.
Add the bct generated function for cbootimage tool.

Change-Id: I2ad282d7dbce1d06d54fa3ee2ef5f550598089b0

BUG=None.
TEST=Test using the cfg file.

Review URL: http://codereview.chromium.org/6579034
Patch from Peer Chen <pchen@nvidia.com>.
2011-02-24 09:29:23 -08:00
Allen Martin
a5e1002501 Remove extra path element.
Remove extra path element that came as part of the git I cloned
this from.
2011-01-25 12:56:10 -08:00