Commit Graph

13 Commits

Author SHA1 Message Date
Penny Chiu
0bbfaf91d1 Add Tegra114 support for emmc boot device
Add the Tegra114 chip support to cbootimage. User can use "-t114" as
option to parse .cfg and generate BCT/image for Tegra114.

Change-Id: I02bd3f633afccd2c9c0b01d43ed4660fa4b82ae0
Signed-off-by: Penny Chiu <pchiu@nvidia.com>
Reviewed-on: http://git-master/r/169619
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
2013-01-11 08:37:01 -08:00
Penny Chiu
5f4e2a3a2e Rewrite the interface for T20/T30 bct data access
Create a structure called cbootimage_soc_config that defines a chip, and
data tables and functions for that chip.

The main function just sets appropriate instance based on
boot_data_version, then uses the same interface to access different chip
bct data.

Change-Id: I58fbc07012dce8947467c0bea62e2a50126d54fe
Signed-off-by: Penny Chiu <pchiu@nvidia.com>
Reviewed-on: http://git-master/r/173670
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
2013-01-11 08:36:49 -08:00
Stephen Warren
ce21ef893f Fix warnings
warning: variable ‘...’ set but not used
warning: comparison between pointer and integer

Change-Id: Ia0b6b4ffca61bfc94a118591578e1b0af55a703f
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-on: http://git-master/r/167565
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
2012-11-30 15:10:57 -08:00
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
Stephen Warren
56bbad5511 Use correct limit in find_new_bct_blk()
The limit is max_bct_search_blks not hash_size.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Change-Id: Idbde21ef75f03c2d6d4adbbe62bd623e4ad6b70e
Reviewed-on: https://gerrit.chromium.org/gerrit/22934
Reviewed-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2012-05-22 13:43:29 -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
240529da17 Initialize the bad block table when create the bct file from scratch,
bct file can't work if miss the bad block table field.

Change-Id: Icf4e64d761e6160f022d4934c4670f435a299933

BUG=
TEST= Test with config file on Seaboard.

Review URL: http://codereview.chromium.org/6676023
2011-03-11 13:56:27 -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
Anton Staaf
7cdc68c1c4 Check return code of fwrite in raw image writing code.
Change-Id: I8c52a205ae1dc559c9f8b41d4d2c50e821b3b05c

BUG=None
TEST=None

Review URL: http://codereview.chromium.org/6368153
2011-02-10 10:34:15 -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