chromiumos/platform/u-boot-config.git
3 years agoTegra2: Correct the panel power on sequence for Kaen. 0.14.811.B 0.15.877.B 780.B firmware-881-u-boot-v1 firmware-u-boot-v1 master
Dilan Lee [Tue, 28 Jun 2011 11:17:27 +0000 (19:17 +0800)]
Tegra2: Correct the panel power on sequence for Kaen.

Note: Other corresponding change is:
      http://gerrit.chromium.org/gerrit/3309

BUG=chrome-os-partner:1957
TEST=test on Kaen, Foxconn confirmed the timing already
can meet panel spec about power on sequence.

Change-Id: I5a977934252c7fdf71ff7d25633e86daadda399e
Signed-off-by: Dilan Lee <dilee@nvidia.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/3308
Reviewed-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
3 years agoCHROMIUM: arm: tegra: Change the pixel clock to 70.6MHz for Seaboard
Dilan Lee [Tue, 14 Jun 2011 08:34:35 +0000 (16:34 +0800)]
CHROMIUM: arm: tegra: Change the pixel clock to 70.6MHz for Seaboard

According to Olof's suggestion to change the pixel clock to 70.6Mhz for Seaboard.
Add an empty line at the end of tegra2/parts/lcd.h to avoid compiler warnings.
BUG:none
TEST=test on Seaboard, pixel clock shows 70.6Mhz on scope

Change-Id: Ie61d10bfbc3a764b3b4a417dfd8474ccbb20490f
Signed-off-by: Dilan Lee <dilee@nvidia.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/2601
Reviewed-by: Simon Glass <sjg@chromium.org>
3 years agoAdd a flag to control showing log to LCD during recovery mode.
Tom Wai-Hong Tam [Fri, 10 Jun 2011 04:31:21 +0000 (12:31 +0800)]
Add a flag to control showing log to LCD during recovery mode.

In recovery mode, the default behavior is to show the bitmap to LCD. If we
show log messages to LCD too, the bitmap is being shifted and looks ugly.
But for easy to debug, we add this flag CONFIG_CHROMEOS_RECOVERY_LCD_LOG to
force showing the log to LCD.

BUG=chromos-os-partner:4422
TEST=build u-boot, put it to Kaen, boot to recovery mode and see the log.

Change-Id: I06524233274a624db0c4b64fcaf2eb1e9c0c73e5
Reviewed-on: http://gerrit.chromium.org/gerrit/2437
Reviewed-by: Rong Chang <rongchang@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
3 years agoFix u-boot compilation warnings.
Vadim Bendebury [Fri, 10 Jun 2011 19:47:11 +0000 (12:47 -0700)]
Fix u-boot compilation warnings.

U-boot compiler frowns at C++ style comments and escaped lines in
the end of the file, causing u-boot compilation warnings, which
go unnoticed and bury more serious problems in the compiler
output.

This change modifies the config files to make tegra2 u-boot
compile cleanly.

BUG=chromium-os:16410
TEST=manual:

This test requires the corresponding change in the
chromeos-u-boot tree. Run the following commands:

 emerge-tegra2_kaen --unmerge chromeos-u-boot-config
 emerge-tegra2_kaen u-boot-config
 emerge-tegra2_kaen chromeos-u-boot

Observe clean compilation.

Change-Id: I9144093238e7f86b2c4e35ea6d49a10d59c4ad69
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/2463
Reviewed-by: Tom Warren <twarren@nvidia.com>
3 years agoCHROMIUM: arm: tegra: Change the pixel clock to 70.6MHz for Kaen and Aebl
Dilan Lee [Wed, 8 Jun 2011 03:25:49 +0000 (11:25 +0800)]
CHROMIUM: arm: tegra: Change the pixel clock to 70.6MHz for Kaen and Aebl

BUG=chrome-os-partner:3397
BUG=chrome-os-partner:3471
TEST=test on Aebl and Kaen, pixel clock shows 70.6Mhz on scope

Change-Id: Ice992fe15923fd43f559accd7b9c536852625a08
Signed-off-by: Dilan Lee <dilee@nvidia.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/2275
Reviewed-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
3 years agoFix developer mode shared memory preparation.
Vadim Bendebury [Wed, 8 Jun 2011 23:48:41 +0000 (16:48 -0700)]
Fix developer mode shared memory preparation.

This is the config change which enables the u-boot modification under
http://gerrit.chromium.org/gerrit/#change,2279.

BUG=chromium-os:15550
TEST=manual

See test description of the u-boot change referenced above.

Change-Id: I1d9574bb3a3bdfdc4b3fb34f40b1eed6a1f14389
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/2350
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
3 years agoremove unused stuff in recovery config
Che-Liang Chiou [Thu, 2 Jun 2011 09:27:24 +0000 (17:27 +0800)]
remove unused stuff in recovery config

BUG=chromium-os:15531
TEST=emerge-tegra2_{kaen,seaboard} u-boot-config u-boot

Change-Id: I607c87ca9bf72e4f5e7de78176e9854f514fcda8
Reviewed-on: http://gerrit.chromium.org/gerrit/1959
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
3 years agoSanitize copyright messages in u-boot config.
Doug Anderson [Mon, 6 Jun 2011 16:52:35 +0000 (09:52 -0700)]
Sanitize copyright messages in u-boot config.

This makes the pre-upload hook happy.

BUG=chromium-os:15220
TEST=none

Change-Id: Ibb35d9b15d3bb20091f45235d19fe701607bda85
Reviewed-on: http://gerrit.chromium.org/gerrit/2164
Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
3 years agoenable ctrl-* key combinations
Che-Liang Chiou [Thu, 2 Jun 2011 10:43:26 +0000 (18:43 +0800)]
enable ctrl-* key combinations

BUG=chromium-os:15243
TEST=test press ctrl-* on kaen and seaboard

Change-Id: I74dab50122349396a1867cd396a2bee0e0f5d242
Reviewed-on: http://gerrit.chromium.org/gerrit/1961
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
3 years agoRevert "Revert "add control-* keymap config""
Che-Liang Chiou [Mon, 30 May 2011 04:15:21 +0000 (12:15 +0800)]
Revert "Revert "add control-* keymap config""

This reverts commit 4efd96595b571326444915a28147ffa988bb4051.

The commit 4efd96 reverted a commit that adds an inter-dependency
which broke buildbot. This commit reverts the commit 4efd96 without
introducing the inter-dependency.

Change-Id: Ib4ce3c46d71375228bf5ff5f261103a1277f3344
Reviewed-on: http://gerrit.chromium.org/gerrit/1810
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
3 years agoResize the RO/RW FWID to 256 bytes.
Tom Wai-Hong Tam [Wed, 1 Jun 2011 09:39:18 +0000 (17:39 +0800)]
Resize the RO/RW FWID to 256 bytes.

Make it the same as the definition in kernel_shared_data and crossystem.

BUG=chromium-os:15633
TEST=emerge-tegra2_kaen u-boot-config chromeos-u-boot-next chromeos-bios

Change-Id: Ieb297a3467aa5c39ba004629bbef917e3562fca1
Reviewed-on: http://gerrit.chromium.org/gerrit/1883
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
3 years agoRevert "add control-* keymap config" 0.13.587.B
Micah Catlin [Fri, 27 May 2011 02:51:31 +0000 (19:51 -0700)]
Revert "add control-* keymap config"

This reverts commit b0d34c090fff9d31219bd3e57d38769aa2c333c2.

Change-Id: If7f3577cef957630029b9b7dbbd3e2497020bdf0
Reviewed-on: http://gerrit.chromium.org/gerrit/1690
Reviewed-by: Joseph Shyh-In Hwang <josephsih@chromium.org>
Reviewed-by: Micah Catlin <micahc@chromium.org>
Tested-by: Micah Catlin <micahc@chromium.org>
3 years agoCherry-pick: Enable vboot recovery firwmare to all devices and turn off LCD console. 0.13.558.B
Tom Wai-Hong Tam [Thu, 5 May 2011 10:59:53 +0000 (18:59 +0800)]
Cherry-pick: Enable vboot recovery firwmare to all devices and turn off LCD console.

Enable the previous CL (http://gerrit.chromium.org/gerrit/331) to all devices.

BUG=chromium-os:1305
TEST=Use recovery firmware to boot a signed image. No console message on LCD.

Change-Id: Iea6426a48be90c85d3f9b95515516a9d949e3433
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/1413
Reviewed-by: Rong Chang <rongchang@chromium.org>
Tested-by: Nick Sanders <nsanders@chromium.org>
3 years agoadd control-* keymap config
Che-Liang Chiou [Mon, 23 May 2011 13:13:40 +0000 (21:13 +0800)]
add control-* keymap config

BUG=chromium-os:15243
TEST=build seaboard and kaen cleanly

Change-Id: I41fe87ac10798bebad60573b552d7ce5a5116dd2
Reviewed-on: http://gerrit.chromium.org/gerrit/1355
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
3 years agoUpdate legacy u-boot to swap a/b boot based on the script in partition 12.
Doug Anderson [Mon, 23 May 2011 23:53:44 +0000 (16:53 -0700)]
Update legacy u-boot to swap a/b boot based on the script in partition 12.

This is roughly based on the old way that the "recovery" flavour did
things.  However, in this case we're not actually using the kernel
partition (partition 2), but still loading the kernel from the root
filesystem (/boot/vmlinux.uimg).  We just support swapping which
root filesystem we'll use.

BUG=chromium-os:15720
TEST=Ran image_to_live.sh and saw a/b switch.

Change-Id: I3319eda9a2b8197e3b4336c71cba776cca6de4e9
Reviewed-on: http://gerrit.chromium.org/gerrit/1492
Tested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
3 years agoadd fmap sections that auto-updater needs
Che-Liang Chiou [Tue, 24 May 2011 04:34:12 +0000 (12:34 +0800)]
add fmap sections that auto-updater needs

BUG=chromium-os:15633
TEST=build cleanly

Change-Id: I209af1240222e5be411e8644cc65b3d2da7be4fa
Reviewed-on: http://gerrit.chromium.org/gerrit/1426
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
3 years agoAdd stub header files for X86 mario.
Gabe Black [Sat, 21 May 2011 09:01:10 +0000 (02:01 -0700)]
Add stub header files for X86 mario.

BUG=chrome-os-partner:3895
TEST=Build u-boot for x86-mario and see the build get past errors about not
finding these header files.

Change-Id: I66a486c37785640462a699e00973fbde0bc8877b
Reviewed-on: http://gerrit.chromium.org/gerrit/1333
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
3 years agoTegra2: Correct the power-on sequence of AUO panel for Aebl
Dilan Lee [Thu, 12 May 2011 05:22:08 +0000 (13:22 +0800)]
Tegra2: Correct the power-on sequence of AUO panel for Aebl

The LCD power-on sequence has to match AUO panel timing specification to avoid display noise on Aebl

BUG=chrome-os-partner:2699

TEST=test on Aebl, No garbage during power-on

Change-Id: I4f59d1768da3ebbb40661ac0d369582e8101ebc1
Signed-off-by: Dilan Lee <dilee@nvidia.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/749
Reviewed-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
3 years agoCreate legacy config
Che-Liang Chiou [Thu, 19 May 2011 11:06:59 +0000 (19:06 +0800)]
Create legacy config

This commit:
* creates legacy config, which is now a copy of developer config and
  needs to be further polished
* switches developer firmware in developer config to default (which was
  not default)

BUG=chromium-os:15527
TEST=manual

1. build cleanly
(chroot) $ emerge-${BOARD} u-boot-config u-boot chromeos-bios

2. test official firmware
(chroot) $ cros_write_firmware --board ${BOARD}
Then you should be able to load:
* normal firmware when dev switch is off
* developer firmware when dev switch is on
* recovery firmware when recovery button is pressed

3. test legacy firmware
(chroot) $ cros_write_firmware --board ${BOARD} --firmware /build/tegra2_seaboard/u-boot/legacy_bootstub.bin
Then you should be able to boot from network, SD card, USB key, and eMMC.

Change-Id: I6320b89ea7d688478121dc5b42b27e7bbbcda7fc
Reviewed-on: http://gerrit.chromium.org/gerrit/1171
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
3 years agoAdd the "askenv" command into the develper u-boot.
Doug Anderson [Wed, 18 May 2011 01:53:55 +0000 (18:53 -0700)]
Add the "askenv" command into the develper u-boot.

This will be useful for doing some basic scripting in u-boot for
factory bringup.

BUG=chrome-os-partner:3921
TEST=Built u-boot and used askenv command.

Change-Id: Ifab2d39b291c1d20736b404ed44d622843ea7d93
Reviewed-on: http://gerrit.chromium.org/gerrit/1091
Tested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
3 years agoCHROMIUM: arm: tegra: arthur: Map memory like for Kaen / Aebl.
Doug Anderson [Tue, 17 May 2011 22:04:14 +0000 (15:04 -0700)]
CHROMIUM: arm: tegra: arthur: Map memory like for Kaen / Aebl.

This allows crossystem to work properly w/ the default environment.

BUG=chrome-os-partner:3901
TEST=Booted and ran crossystem.

Change-Id: I065ef36bed8f08e28d55df4cfa7cfb3f767d8942
Reviewed-on: http://gerrit.chromium.org/gerrit/1065
Tested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
3 years agoCHROMIUM: arm: tegra: Refactor keyboard to be shared between boards.
Doug Anderson [Thu, 12 May 2011 23:37:40 +0000 (16:37 -0700)]
CHROMIUM: arm: tegra: Refactor keyboard to be shared between boards.

This also fixes aebl and arthur to use the proper Chrome OS keyboard
config (instead of the Seaboard config).

BUG=chrome-os-partner:3585
TEST=Tried Arthur keyboard in u-boot and saw that it works as well as kaen.

Change-Id: I57379e2811c189341e54610c30f0805a5e85afe7
Reviewed-on: http://gerrit.chromium.org/gerrit/838
Tested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
3 years agoCHROMIUM: arm: Call 'cros load_k 1 2' before booting the kernel.
Doug Anderson [Fri, 13 May 2011 17:03:01 +0000 (10:03 -0700)]
CHROMIUM: arm: Call 'cros load_k 1 2' before booting the kernel.

With the recent additions of the chromeos platform support to the ARM
line the uboot is supposed to provide the shared memory structure to
be parsed by the kernel.

To achieve that, the u-boot needs to include the command
  'cros load_k 1 2'
...right before 'bootm' in the startup script.

BUG=none
TEST=Reflashed u-boot (cros_write_firmware), booted, and saw:

  SF: Detected W25Q32B with page size 256, total 4 MiB
  boot_flags:       0x00000001
  shared_data_blob: 0x00000002
  SF: Detected W25Q32B with page size 256, total 4 MiB

  success: good kernel found on device
  kernel_buffer:      0x00100000
  partition_number:   2
  bootloader_address: 0x0
  bootloader_size:    0x0
  partition_guid:     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  bytes_per_lba:      -1
  ending_lba:         0xffffffffffffffff

...when booting from USB, I see the same messages with the addition
of this line before the boot_flags.  This seems OK:
  EMMC 0 Probed Successfully

Change-Id: Ic165a5cc51992255d961dad285e8889d45560364
Reviewed-on: http://gerrit.chromium.org/gerrit/859
Tested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
3 years agoRevert "Enable recovery firmware to boot signed kernel. Turn off LCD console."
Benson Leung [Thu, 12 May 2011 19:51:01 +0000 (12:51 -0700)]
Revert "Enable recovery firmware to boot signed kernel. Turn off LCD console."

This reverts commit 3ac26f37fb34afc4f6465c07ed85b4b03ba4131f.

BUG=none
TEST=none

Change-Id: I76550bba14bb6a22254664ce54238d06cb983a49
Reviewed-on: http://gerrit.chromium.org/gerrit/761
Reviewed-by: Benson Leung <bleung@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
3 years agoCHROMIUM: arm: tegra: Make developer firmware boot w/ readonly root.
Doug Anderson [Thu, 12 May 2011 18:16:59 +0000 (11:16 -0700)]
CHROMIUM: arm: tegra: Make developer firmware boot w/ readonly root.

This allows us to boot images that were compiled with
rootfs_verification turned on.  It means that if rootfs_verification
was off you'll now need to do a 'sudo mount -o remount,rw' to write
to the root fs, but that matches what we need to do on x86 anyway.

BUG=none
TEST=Booted MMC cards w/ rootfs verification and w/out.
...on MMC cards w/out, validated that I could remount rw after boot.

Change-Id: I998dbe76e003ef044e8fc312618bd2b353a6b123
Reviewed-on: http://gerrit.chromium.org/gerrit/781
Tested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
3 years agoRevert "Enable vboot recovery firwmare to all devices and turn off LCD console."
Tom Wai-Hong Tam [Thu, 12 May 2011 15:03:04 +0000 (23:03 +0800)]
Revert "Enable vboot recovery firwmare to all devices and turn off LCD console."

This reverts commit cd89cc05bbafbaa10d4d39428505a8d11bd6d2b0.

Change-Id: Ibcfb78e3550ae8b2489fd214605c01e476a8aff5
Reviewed-on: http://gerrit.chromium.org/gerrit/760
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
3 years agoCHROMIUM: arm: tegra: arthur: Set USB0 to proper port.
Doug Anderson [Wed, 11 May 2011 20:16:53 +0000 (13:16 -0700)]
CHROMIUM: arm: tegra: arthur: Set USB0 to proper port.

BUG=none
TEST=Ran 'usb start 0' in u-boot and validated proper port.

Change-Id: I42c209cc48e106192ef1dc8d9f3f6c85cd192047
Reviewed-on: http://gerrit.chromium.org/gerrit/699
Tested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Dave Parker <dparker@chromium.org>
Reviewed-by: Rong Chang <rongchang@chromium.org>
3 years agoEnable developer firmware
Che-Liang Chiou [Tue, 10 May 2011 03:56:30 +0000 (11:56 +0800)]
Enable developer firmware

This commit only enables developer firmware, but does not make it
the default boot command, which is left to future commits.

BUG=chromium-os:12191
TEST=CROSS_COMPILE=armv7a-cros-linux-gnueabi- ./MAKEALL chromeos

Change-Id: I52f342be04cb1539038689e900142682d8cd908d
Reviewed-on: http://gerrit.chromium.org/gerrit/582
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
3 years agoCHROMIUM: arm: aebl: Set USB0 to proper port.
Dave Parker [Wed, 11 May 2011 23:43:45 +0000 (16:43 -0700)]
CHROMIUM: arm: aebl: Set USB0 to proper port.

BUG=None
TEST=Build and boot from USB with recovery firmware on signed image.

Change-Id: Ie0da8bddf48d5a1d433b2a70b5aa38d5b72ef224
Reviewed-on: http://gerrit.chromium.org/gerrit/732
Reviewed-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Rong Chang <rongchang@chromium.org>
Tested-by: Dave Parker <dparker@chromium.org>
3 years agoCHROMIUM: arm: tegra: Update developer u-boot environment.
Doug Anderson [Mon, 9 May 2011 21:23:24 +0000 (14:23 -0700)]
CHROMIUM: arm: tegra: Update developer u-boot environment.

This updates the developer u-boot environment so that the boot
flow accounts for multiple USB ports and multiple MMC slots.
This makes it more closely mirror the old "recovery" u-boot.

Boot ordering is now:
1. Network boot on usb 0 (tftp kernel plus initrd).
2. Network boot on usb 0 (tftp kernel plus nfs).
3. USB boot on usb 0.
4. Network boot on usb 1 (tftp kernel plus initrd).
5. Network boot on usb 1 (tftp kernel plus nfs).
6. USB boot on usb 1.
7. Boot off MMC1
8. Boot off MMC0 (internal eMMC).

Note that the default IP address for TFTP/NFS is now 0.0.0.0.
This lets us skip network boot in the case that the user
didn't want it.

The developer u-boot appears to boot with both unsigned
and signed kernels (AKA the crosbug12352_arm_kernel_signing
flag can be either way).

BUG=none
TEST=On kaen:
1. Flashed developer u-boot:
   cros_write_firmware --board=${BOARD} \
     --firmware /build/${BOARD}/u-boot/developer_image.bin
2. Tried booting from eMMC.
3. Tried booting w/ no TFTP IP and eth/storage in USB port 0:
   booted usb port 0 storage: OK
4. Tried booting w/ no TFTP IP and eth/storage in USB port 1:
   booted usb port 1 storage: OK
5. Tried booting w/ eth in either port and MMC card inserted.
   Booted MMC
6. Set TFTP IP and validated that it would try to boot off
   Ethernet in either port 0 or port 1.

Change-Id: Ideab096379b777a2de9c8edfe60ef46c380037b4
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/549
Reviewed-by: Simon Glass <sjg@chromium.org>
3 years agoflasher should not enable CONFIG_CHROMEOS
Che-Liang Chiou [Wed, 11 May 2011 07:47:24 +0000 (15:47 +0800)]
flasher should not enable CONFIG_CHROMEOS

BUG=none
TEST=CROSS_COMPILE=armv7a-cros-linux-gnueabi- ./MAKEALL chromeos

Change-Id: Iec62773390248f25330217851164b1fdd056400a
Reviewed-on: http://gerrit.chromium.org/gerrit/665
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
3 years agoEnable vboot recovery firwmare to all devices and turn off LCD console.
Tom Wai-Hong Tam [Mon, 9 May 2011 10:24:44 +0000 (18:24 +0800)]
Enable vboot recovery firwmare to all devices and turn off LCD console.

Enable the previous CL (http://gerrit.chromium.org/gerrit/331) to all devices.

BUG=chromium-os:1305
TEST=Use recovery firmware to boot a signed image. No console message on LCD.

Change-Id: I950de78e784db4870e13f15e319d731774143b17
Reviewed-on: http://gerrit.chromium.org/gerrit/527
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
3 years agoMerge "Enable recovery firmware to boot signed kernel. Turn off LCD console."
Tom Wai-Hong Tam [Thu, 5 May 2011 12:16:43 +0000 (05:16 -0700)]
Merge "Enable recovery firmware to boot signed kernel. Turn off LCD console."

3 years agoEnable recovery firmware to boot signed kernel. Turn off LCD console. 31/331/1
Tom Wai-Hong Tam [Thu, 5 May 2011 10:59:53 +0000 (18:59 +0800)]
Enable recovery firmware to boot signed kernel. Turn off LCD console.

We make verified-boot recovery path as default. Turn off LCD console in
order to show BMP images.

BUG=chromium-os:1305
TEST=Use recovery firmware to boot a signed image. No console message on LCD.

Change-Id: I931eda7a0be1cdac6fb0e7d68820c5aed14efd4a

3 years agoResize the bootstub and recovery firmware size. 60/260/1
Tom Wai-Hong Tam [Wed, 4 May 2011 10:10:45 +0000 (18:10 +0800)]
Resize the bootstub and recovery firmware size.

Since we may put developer firmware in the area of bootstub and the current
size is not enough. This changes makes it the same size as recovery firmware.

Change-Id: Ic0591b889d6308add967aff59220781cba5b1dc9

3 years agoCHROMIUM: arm: tegra: arthur: Initial LCD config.
Doug Anderson [Fri, 29 Apr 2011 17:44:25 +0000 (10:44 -0700)]
CHROMIUM: arm: tegra: arthur: Initial LCD config.

These settings came from choonc@ and indicate our best guess at
LCD settings for arthur.  Note that the h_ref_to_sync and v_ref_to_sync
values were left at their values from other boards, since Choon says
that shouldn't affect the display.

BUG=chrome-os-partner:3472
TEST=Code compiles.

Review URL: http://codereview.chromium.org/6895052

Change-Id: Ibee6f0a1eab6038e98d8a01b0ba5c59648f1a2e5

3 years agoHack for factory bring-up to reserve space for shared data
Che-Liang Chiou [Fri, 29 Apr 2011 07:18:27 +0000 (15:18 +0800)]
Hack for factory bring-up to reserve space for shared data

R=rongchang@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6883257

Change-Id: Id642b4d67e4bcf519953b9feb060bb5d20d4410f

3 years agoInitial u-boot-config files for arthur based on aebl files.
Doug Anderson [Fri, 22 Apr 2011 23:03:49 +0000 (16:03 -0700)]
Initial u-boot-config files for arthur based on aebl files.

At the moment, these are just copies w/ renames and may not
have sensible values, but at least this gives us a place to
work.

Note: the CONFIG_CHROMEOS_HWID is correct.  It came from running ./gen_hwid.py 'ARM ARTHUR TEST' in (chroot) ~/trunk/src/platform/factory_test_tools.

BUG=none
TEST=Along with other initial arthur patches, built u-boot

Review URL: http://codereview.chromium.org/6899039

Change-Id: I641bdbde72ae631cd5289e61ffe3d7f4036392bb

3 years agoRevert "Enable FAT for access VbNvContext"
Che-Liang Chiou [Fri, 22 Apr 2011 07:52:12 +0000 (15:52 +0800)]
Revert "Enable FAT for access VbNvContext"

This reverts commit 7617394ba0ffe4d78a6b7d21f9f2cff3f15e5aec.

This commit is reverted because it is not needed.

R=rongchang@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6883114

Change-Id: I32fadc065150a5c753c9ffece1d9f90889124fb1

3 years agoNetwork boot supports loading rootfs via tftp.
Tom Wai-Hong Tam [Fri, 22 Apr 2011 07:19:22 +0000 (15:19 +0800)]
Network boot supports loading rootfs via tftp.

U-boot now loads the rootfs together with kernel via tftp, put it in RAM, and pass the
address to kernel via ATAG.

BUG=chromium-os:14098
TEST=setup kernel and rootfs images in /tftpboot
CrOS> run tftp_boot
Waiting for Ethernet connection... done.
BOOTP broadcast 1
DHCP client bound to address 192.168.4.21
Waiting for Ethernet connection... done.
Using asx0 device
TFTP from server 192.168.4.1; our IP address is 192.168.4.21
Filename '/tftpboot/uImage-user-arm-1'.
Load address: 0x100000
Loading: #################################################################
         #################################
done
Bytes transferred = 3338036 (32ef34 hex)
Waiting for Ethernet connection... done.
Using asx0 device
TFTP from server 192.168.4.1; our IP address is 192.168.4.21
Filename '/tftpboot/initrd-user-arm-1'.
Load address: 0x12008000
Loading: #################################################################
         #################################################################
done
Bytes transferred = 81992508 (4e31b3c hex)

   Image Name:   kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3337972 Bytes = 3.2 MiB
   Load Address: 10008000
   Entry Point:  10008000
   Verifying Checksum ... OK

   Image Name:   My linux ramdisk
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    81992444 Bytes = 78.2 MiB
   Load Address: 12008000
   Entry Point:  12008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
...
[  105.618849] tegra-camera tegra-camera.0: TEGRA Camera host attached to camera 0

Developer Console

To return to the browser, press:

  [ Ctrl ] and [ Alt ] and [ <- ]  (F1)

...

Change-Id: Id2b42f5a49abc5a7fff50b0f310429648195b725

R=rongchang@chromium.org,sjg@chromium.org

Review URL: http://codereview.chromium.org/6835019

3 years agoEnable CONFIG_TFTP_TSIZE to reduce # count on big network downloads 0.12.433.B 0.12.433.B109 0.12.433.B62
Simon Glass [Thu, 21 Apr 2011 22:33:39 +0000 (15:33 -0700)]
Enable CONFIG_TFTP_TSIZE to reduce # count on big network downloads

This is a useful option and works well with tftp-hpa. We should use it.

BUG=chromium-os:14082
TEST=network boot U-Boot and observe only a single line of #

Change-Id: Idb04eb38208213a348e4355c6f4302ed1bf1da5f

Review URL: http://codereview.chromium.org/6852018

3 years agoEnable FAT for access VbNvContext
Che-Liang Chiou [Wed, 20 Apr 2011 07:07:02 +0000 (15:07 +0800)]
Enable FAT for access VbNvContext

R=rongchang@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6873070

Change-Id: Ie05dc56d66ce17c270fbf8e68bbc8a8fc7218771

3 years agoHACK: Pass data from firmware to kernel
Che-Liang Chiou [Wed, 20 Apr 2011 07:03:28 +0000 (15:03 +0800)]
HACK: Pass data from firmware to kernel

Changes here is an urgent workaround for factory bring up, and should be
reverted or significantly rewritten after the protocol specification between
Chrome OS firmware and kernel is finalized.

R=rongchang@chromium.org,vpalatin@chromium.org
BUG=chromium-os:13609
TEST=none

Review URL: http://codereview.chromium.org/6812044

Change-Id: I658e22cc6929433a9c53d2fd988e0646e68a410c

3 years agoEnlarge heap size for holding recovery firmware
Che-Liang Chiou [Tue, 19 Apr 2011 02:48:58 +0000 (10:48 +0800)]
Enlarge heap size for holding recovery firmware

The recovery firmware is holded on heap, and we sometimes cannot
allocate enough continuous space for it. Enlarging heap space helps.

R=rongchang@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6873044

Change-Id: Iff55e14fd36e4b7cd64db55aa3efb5f9e4955ab1

3 years agoremove tpm from unsupported board cfg
Rong Chang [Mon, 18 Apr 2011 08:37:01 +0000 (16:37 +0800)]
remove tpm from unsupported board cfg

BUG=chromium-os:14239
TEST=Manual

build test
 - emerge-tegra2_seaboard u-boot-config vboot_reference-firmware
chromeos-u-boot-next

Review URL: http://codereview.chromium.org/6881002

Change-Id: I1719fa9c039aa13a388705edf83d07f8fcde0df8

3 years agoPrune inactive configs.
Anton Staaf [Thu, 14 Apr 2011 23:10:29 +0000 (16:10 -0700)]
Prune inactive configs.

BUG=None
TEST=None

Change-Id: I0a6fa81ccff41734ce469230d11b58a680019e81

Review URL: http://codereview.chromium.org/6860001

3 years agoAdd review settings inheritance and WATCHLIST files.
Anton Staaf [Thu, 14 Apr 2011 22:50:12 +0000 (15:50 -0700)]
Add review settings inheritance and WATCHLIST files.

BUG=None
TEST=None

Change-Id: I94b0c1a07ab6f4bd3f75bef619921d8eedecba2e

Review URL: http://codereview.chromium.org/6859001

3 years agoHACK: Enable MMC in bootstub for factory bring up
Che-Liang Chiou [Thu, 14 Apr 2011 10:12:31 +0000 (18:12 +0800)]
HACK: Enable MMC in bootstub for factory bring up

TBR=rongchang@chromium.org

Change-Id: I3348a106fb18d3da652968638ae015b8e4ff7bf2

3 years agoThis is the preliminary v05 TPM driver from Infineon. With a wrapper layer added... 0.12.362.B 0.12.369.B 0.12.392.B
Rong Chang [Wed, 30 Mar 2011 07:36:25 +0000 (15:36 +0800)]
This is the preliminary v05 TPM driver from Infineon. With a wrapper layer added to auto detect v03 and v05 chips. This is a version that just work. Cleanup will start after the initial push.

BUG=chromium-os:10497
TEST=Manual

Build
1. build a compatible lib first
   emerge-tegra2_seaboard vboot_reference-firmware
2. use MAKEALL script to check all cfg
   CROSS_COMPILE=armv7a-cros-linux-gnueabi- VBOOT=/build/tegra2_seaboard/usr ./MAKEALL chromeos
3. check result. 25 passed, no warning, no error

u-boot command
1. build a compatible version
   USE-debug VBOOT_DEBUG=1 emerge-tegra2_seaboard -av vboot_reference-firmware chromeos-u-boot-next
2. flash it using proper tools
   [board specific]
3. reset system and boot into command prompt
4. test with cros_tpm_test command sets:
   cros_tpm_test enable
   cros_tpm_test fast_enable
   cros_tpm_test startup
   cros_tpm_test timing

Review URL: http://codereview.chromium.org/6683023

Change-Id: I37b73dc90399533594c841b016a194ff21ab889a

3 years agoReserve kernel load address that is the same with x86
Che-Liang Chiou [Wed, 30 Mar 2011 07:14:06 +0000 (15:14 +0800)]
Reserve kernel load address that is the same with x86

If possible, it is better to use the same kernel load address
with x86. Otherwise we have to change a lot of scripts that call
vboot utilities, passing kernel load address to these utilities.

R=waihong@chromium.org,robotboy@chromium.org
BUG=none
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6748005

Change-Id: Ic20a5477ebf4b7ecb75bc6f9e04a66490ba4179b

3 years agoGet/set VbNvContext cookies from SPI flash
Che-Liang Chiou [Wed, 30 Mar 2011 07:00:43 +0000 (15:00 +0800)]
Get/set VbNvContext cookies from SPI flash

BUG=chromium-os:10503
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6723013

Change-Id: Iabccfe8bdf473545cdff834c5628f969b3990291

3 years agoRefactor firmware storage interface
Che-Liang Chiou [Wed, 30 Mar 2011 06:46:17 +0000 (14:46 +0800)]
Refactor firmware storage interface

Note: The implementation of SPI interface is empty here and is
sent out in cl/6696066 to reduce the size of this CL.

The following test results are conducted with cl/6696066.

1. Verify that bootstub can boot to rewritable firmware

2. Verify that refactoring does not break load_fw
------------------------------------------------------------
(Read firmware image from SPI flash)
CrOS> sf probe 0
SF: Detected W25Q16B with page size 256, total 2 MiB
2048 KiB W25Q16B at 0:0 is now current device
CrOS> sf read 0x01000000 0 0x00400000

(Test load_fw)
CrOS> cros load_fw 0 0x01000000 0x00400000 0x10000000
LoadFirmware returns: LOAD_FIRMWARE_SUCCESS: firmware_index: 0
------------------------------------------------------------

3. Verify that refactoring does not break load_k
------------------------------------------------------------
(Following from previous command)

(Insert Chrome OS image into SDCard slot)
CrOS> mmc init 1
EMMC 1 Probed Successfully
mmc1 is available
CrOS> cros bootdev set mmc 1
Set boot device to mmc 1 0

(Test load_k)
CrOS> cros load_k 0 0x10000000
SF: Detected W25Q16B with page size 256, total 2 MiB
boot_flags:       0x00000004
shared_data_blob: 0x10000000
kernel_buffer:    0x027012f0
success: good kernel found on device
kernel_buffer:      0x0040c000
partition_number:   2
bootloader_address: 0x736000
bootloader_size:    0x1000
partition_guid:     fa e2 d2 39 82 ab 4b ff 93 b7 25 5e 88 a4 18 54
bytes_per_lba:      512
ending_lba:         0x003ce022
------------------------------------------------------------

Change-Id: I12d24f8df2535a1cd58e120552431b9314224f6e

R=robotboy@chromium.org,waihong@chromium.org
BUG=none
TEST=see above

Review URL: http://codereview.chromium.org/6676109

3 years agoFix Seaboard UART corruption on SPI activity
Simon Glass [Fri, 25 Mar 2011 20:20:55 +0000 (13:20 -0700)]
Fix Seaboard UART corruption on SPI activity

On Seaboard the UART and SPI interfere with each other. This causes the UART
to receive spurious zero bytes after SPI transactions and also means that
SPI can corrupt a few output characters when it starts up if they are still
in the UART buffer.

This hack corrects this by making SPI record that it may have corrupted the
UART, and making the UART take evasive action.

BUG=chromium-os:13228
TEST=Try developer U-Boot on Seaboard, make sure it auto-boots OK now

Change-Id: I130f5e8bdf1be48b20015c8b2228d972409cc135

Review URL: http://codereview.chromium.org/6715017

3 years agoAdd NAND support to Seaboard and Harmony boards for Flasher and Developer configs.
Anton Staaf [Thu, 24 Mar 2011 20:49:10 +0000 (13:49 -0700)]
Add NAND support to Seaboard and Harmony boards for Flasher and Developer configs.

BUG=chromium-os:11981
TEST=Build and boot U-Boot on Seaboard and Harmony, verify that NAND is reported.

Change-Id: I2676e4f7fac48f44131af91289bd896cf5fbeb92

Review URL: http://codereview.chromium.org/6726029

3 years agoRemove obsolete firmware layout
Che-Liang Chiou [Wed, 23 Mar 2011 07:00:16 +0000 (15:00 +0800)]
Remove obsolete firmware layout

R=waihong@chromium.org
BUG=none
TEST=run MAKEALL, build_packages, and build_image successfully

Review URL: http://codereview.chromium.org/6722020

Change-Id: I91cd17385e0dc4a2eb5b7d4d92231913c6a6246a

3 years agoReduce environment size for developer variant
Simon Glass [Tue, 22 Mar 2011 22:24:06 +0000 (15:24 -0700)]
Reduce environment size for developer variant

Developer environment size is now 4KB (down from 128KB) since this is all
we need. Previously it would overwrite SPI flash outside its allocated
area.

More notes:

The environment start and size is defined in firmware_layout.h:

#define CONFIG_OFFSET_ENV 0x003ff000
#define CONFIG_LENGTH_ENV 0x00001000

Previously we were leaving CONFIG_ENV_SIZE set to the Chrome OS default which is 128KB. If it is larger than CONFIG_ENV_SECT_SIZE then U-Boot will pad this and erase the full 128KB. This caused the SPI flash code to erase well beyond the 4KB limit (and presumably wrapping around). We didn't notice this before since U-Boot was booting from NAND.

BUG=chromium-os:13340
TEST=setenv ..., saveenv on Seaboard, reset, check that it boots ok
printenv to check the variable was saved.

Change-Id: I7ac72750dc4906fda12881d0c24b5d5cd74e8858

Review URL: http://codereview.chromium.org/6721006

3 years agoNo retry for USB storage to speed up the resume time.
Tom Wai-Hong Tam [Tue, 22 Mar 2011 06:01:50 +0000 (14:01 +0800)]
No retry for USB storage to speed up the resume time.

In the scenario, a user inserts a USB storage and boots to recovery mode, we
required the user to plug the USB out first. However, in the meantime that the
system is scanning the USB, the user plugs it out. It may need ~50sec to resume
because there are many retry there. This change makes it no retry such that it
only takes <1sec to resume.

R=clchiou@chromium.org,sjg@chromium.org
BUG=chromium-os:10500
TEST=emerge-tegra2_seaboard chromeos-u-boot-next successfully.
When the system is scanning the USB storage, plug the USB out.
It takes <1sec to resume.

Review URL: http://codereview.chromium.org/6685083

Change-Id: I1ed1d54c211dda87693b91302586ae1f534d75aa

3 years agoAdd a smaller firmware image layout for Seaboard
Che-Liang Chiou [Tue, 22 Mar 2011 05:14:00 +0000 (13:14 +0800)]
Add a smaller firmware image layout for Seaboard

Because Seaboard has only 2MB of SPI storage

BUG=chromium-os:1302
TEST=emerge-tegra2_seaboard chromeos-u-boot-next chromeos-bios && \
    [ $(stat -c "%s" /build/tegra2_seaboard/u-boot/image.bin) -eq 2097152 ] && \
    echo "Success!"

Review URL: http://codereview.chromium.org/6474034

Change-Id: I49b37de54a7931b6a1763161b4b408233b35eaaa

3 years agoAdd support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter
Simon Glass [Wed, 16 Mar 2011 21:14:53 +0000 (14:14 -0700)]
Add support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter

The SMSC95XX is a USB hub with a built-in Ethernet adapter. This adds support
for this, using the USB host network framework.

To test this you also need 6677054. If you just want to build it, this CL
is enough.

BUG=chromium-os:9574
TEST=Try U-boot on Harmony board, usb start, bootp, tftp ...

Change-Id: I25c27f192dc64971d8f5e888859962ead57dd23b

Review URL: http://codereview.chromium.org/6694038

3 years agoAdd CONFIG_CMD_MMC to normal config
Che-Liang Chiou [Wed, 16 Mar 2011 05:50:55 +0000 (13:50 +0800)]
Add CONFIG_CMD_MMC to normal config

TBR=

Change-Id: I511c14c517681b329f3ed19ba4d179c9ecc43541

3 years agoUpdate firmware layout
Che-Liang Chiou [Wed, 16 Mar 2011 05:00:07 +0000 (13:00 +0800)]
Update firmware layout

Chrome OS firmware specification has renamed most firmware sections. This CL
also reserve more spaces for VPD sections (from 4KB to 64KB).

BUG=chrome-os-partner:2333
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6694022

Change-Id: I2fcb861d3a6132937675de4c2a0fcaef36b4bac8

3 years agoAdd a wrapper function of LoadKernel()
Che-Liang Chiou [Tue, 15 Mar 2011 06:23:16 +0000 (14:23 +0800)]
Add a wrapper function of LoadKernel()

BUG=chromium-os:1034
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6628009

Change-Id: Ifacdfa26c414b50d6aa0ebc6455cedfeab0f939d

3 years agoEnable MMC on normal configs
Che-Liang Chiou [Mon, 14 Mar 2011 10:22:14 +0000 (18:22 +0800)]
Enable MMC on normal configs

Normal firmware needs to boot OS image from MMC device.

BUG=chromium-os:1304
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6657031

Change-Id: I423ca2fb20474fde6c23aef89481070c84ca0236

3 years agoCreate Chrome OS recovery firmware procedure
Tom Wai-Hong Tam [Mon, 14 Mar 2011 07:25:39 +0000 (15:25 +0800)]
Create Chrome OS recovery firmware procedure

The command cros_rec is the main procedure the recovery firmware runs by default. It also appears in developer image for debug purpose.

BUG=chromium-os:1305
TEST=build successfully and boot like:

U-Boot 2010.09 (Mar 09 2011 - 17:16:01)

Board:   Tegra2 chromeos/tegra2/seaboard/recovery
DRAM:  1 GiB
Using default environment

In:    tegra-kbc
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
EMMC 1 Probed Successfully
EMMC 1 Probed Successfully[mmc_legacy_init:231] EMMC 1 Probe Failed
USB:   Tegra ehci init hccr c5008100 and hcor c5008140 hc_length 64
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
[mmc_legacy_init:231] EMMC 1 Probe Failed
USB:   Tegra ehci init hccr c5008100 and hcor c5008140 hc_length 64
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
EMMC 1 Probed Successfully
EMMC 1 Probed Successfully
DEBUG: TPM: Startup
DEBUG: TPM: command 0x99 returned 0x0
DEBUG: TPM: Self test full
DEBUG: TPM: command 0x50 returned 0x0
ReadSingle Operation failed.
 mmc_bread:133 READ : failed
ReadSingle Operation failed.
 mmc_bread:133 READ : failed
DEBUG: GptNextKernelEntry looking at new prio partition 1
DEBUG: GptNextKernelEntry s1 t15 p15
DEBUG: GptNextKernelEntry looking at new prio partition 3
DEBUG: GptNextKernelEntry s0 t15 p0
DEBUG: GptNextKernelEntry looking at new prio partition 5
DEBUG: GptNextKernelEntry s0 t15 p0
DEBUG: GptNextKernelEntry likes that one
DEBUG: Found kernel entry at 4096 size 32768
DEBUG: Checking key block signature...
DEBUG: Kernel preamble is good.
DEBUG: Partition is good.
DEBUG: In recovery mode or dev-signed kernel
DEBUG: Updating GPT header 2
 Write failed. Block=8388606
 mmc_bwrite:171 WRITE : failed
DEBUG: Updating GPT entries 2
 Write failed. Block=8388607
 mmc_bwrite:171 WRITE : failed
DEBUG: Good_partition >= 0
Success; good kernel found on device
partition_number: 2
bootloader_address: 0x68c000bootloader_size: 0x1000partition_guid: 10 22 57 b6 1a 5f 41 e8 b9 fc 75 a2 7c a9 fa 30
## Booting kernel from Legacy Image at 0040c000 ...
   Image Name:   kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5807272 Bytes = 5.5 MiB
   Load Address: 10008000
   Entry Point:  10008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Change-Id: Iee8c703b934c7d7b7fb244355c8f4399bf3d057e

Review URL: http://codereview.chromium.org/5989010

3 years agoCHROMIUM: developer mode: boot from mmcblk0p3, not p5
Olof Johansson [Fri, 11 Mar 2011 23:27:55 +0000 (15:27 -0800)]
CHROMIUM: developer mode: boot from mmcblk0p3, not p5

On a freshly installed system, p5 is empty. Boot from A side (p3) by
default.

Change-Id: I9a382fb2498e27b61e7a45900fb415d1f25221d1
Signed-off-by: Olof Johansson <olofj@chromium.org>
BUG=none
TEST=boot system with developer firmware from eMMC

Review URL: http://codereview.chromium.org/6686016

3 years agoCHROMIUM: developer mode: add rootwait to bootargs
Olof Johansson [Fri, 11 Mar 2011 22:46:20 +0000 (14:46 -0800)]
CHROMIUM: developer mode: add rootwait to bootargs

Change-Id: I8624ee61c42cd901365611760d1a0671137c69c8
Signed-off-by: Olof Johansson <olofj@chromium.org>
BUG=None
TEST=flash developer firmware, try to boot from usb

Review URL: http://codereview.chromium.org/6686014

3 years agoSwitch Harmony over to use the Generic tegra2 board code.
Anton Staaf [Fri, 11 Mar 2011 00:09:38 +0000 (16:09 -0800)]
Switch Harmony over to use the Generic tegra2 board code.

This is a required step in the work to moving to a single
U-Boot binary for all Tegra2 based boards.  It also removes
a good bit of code duplication.

The use of macros to clean up the configuration isn't ideal
but is temporary (eventually they will be replaced by FDT).

Change-Id: I6a610317a7ba36d4ec63546152061795878c7b19

BUG=chromium-os:11623
TEST=Build and Boot U-Boot/Kernel for all chromeos boards (kaen, aebl, seaboard, wario, dev-board).
Also MAKEALL tegra chromeos passes cleanly, which covers building the tegra2_<board>.h configs,
but I haven't run them explicitly.

Review URL: http://codereview.chromium.org/6646034

3 years agoChanges to u-boot-next to match VBoot reference change
Randall Spangler [Wed, 9 Mar 2011 23:54:24 +0000 (15:54 -0800)]
Changes to u-boot-next to match VBoot reference change

vboot_reference CL: http://codereview.chromium.org/6626045

This should at least compile, and will probably work for do_load_fw().  do_load_k() needs to pass in a pointer to the GBB to work in recovery mode.

Change-Id: I03f531c0b08ba2bc6aa8d7162806d23d1d6e2301

BUG=chrome-os-partner:1657
TEST=code reviewer please make sure it at least compiles on ARM

Review URL: http://codereview.chromium.org/6658009

3 years agoEnable firmware relocation for normal, recovery, and developer firmware
Che-Liang Chiou [Wed, 9 Mar 2011 03:21:26 +0000 (11:21 +0800)]
Enable firmware relocation for normal, recovery, and developer firmware

BUG=chromium-os:1304
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6631001

Change-Id: Ia84333ad83a16acf550ca65a5c24669409d320f1

3 years agoAdd skeleton of normal firmware
Che-Liang Chiou [Wed, 9 Mar 2011 03:19:39 +0000 (11:19 +0800)]
Add skeleton of normal firmware

BUG=chromium-os:1304
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6628008

Change-Id: I71f6ab5afbc8e9c3a569f11c4f2184a1a15c56b1

3 years agoAdd back PINMUX #define for common tegra pinmux configuration.
Anton Staaf [Tue, 8 Mar 2011 20:53:15 +0000 (12:53 -0800)]
Add back PINMUX #define for common tegra pinmux configuration.

This fixes the build break.

BUG=None
TEST=MAKEALL chromeos

Change-Id: I448d6a9dd22aa866e58f2dc2a4c0b265901a56fd

Review URL: http://codereview.chromium.org/6650002

3 years agoMove pinmux configuration out of code and into configuration files.
Anton Staaf [Tue, 8 Mar 2011 18:55:17 +0000 (10:55 -0800)]
Move pinmux configuration out of code and into configuration files.

This will allow us to specify different pinmux configurations per
board.  This is required for instance for the USB1 power control
lines.

BUG=chromium-os:11536
TEST="MAKEALL tegra chromeos" passes
U-Boot boots on Kaen and Aebl

Change-Id: Iada963aa2e2a0b748d8fb219b2aca147ef803d13

Review URL: http://codereview.chromium.org/6623029

3 years agommc: Tegra2: chromeos: Add CONFIG_TEGRA2_EMMC4_IS_HS to aebl/kaen/wario/etc for 26MHz...
Anton Staaf [Tue, 8 Mar 2011 00:40:09 +0000 (16:40 -0800)]
mmc: Tegra2: chromeos: Add CONFIG_TEGRA2_EMMC4_IS_HS to aebl/kaen/wario/etc for 26MHz eMMC clk

Signed-off-by: Tom Warren <twarren@nvidia.com>
BUG=None
TEST=not tested, not built (chromeos-variants, at least)

Review URL: http://codereview.chromium.org/6610033

Change-Id: Icacc342640233331160f1c67ad9b334bac477484

3 years agoRename cros_rofw to cros_bootstub
Che-Liang Chiou [Fri, 4 Mar 2011 07:58:47 +0000 (15:58 +0800)]
Rename cros_rofw to cros_bootstub

Because read-only firmware may refer to boot stub and recovery
firmware.

BUG=chromium-os:1302
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6591037

Change-Id: I40b0b4f458675b1d129fd09dc1ac7504053883c3

3 years agoAdd statically allocated buffer for GetFirmwareBody
Che-Liang Chiou [Fri, 4 Mar 2011 07:57:52 +0000 (15:57 +0800)]
Add statically allocated buffer for GetFirmwareBody

These buffers will cache loaded firmware so that boot stub does not have to
load them again.

This CL also factors out the code that initialize struct fields used by
GetFirmwareBody().

BUG=chromium-os:1302
TEST=MAKEALL successfully

Review URL: http://codereview.chromium.org/6598032

Change-Id: I64d1e6f1e06edaa53bbf1e723bc0ea3aa88b6b6c

3 years agoRemove NAND support from the common tegra2 configuration.
Anton Staaf [Thu, 3 Mar 2011 17:18:56 +0000 (09:18 -0800)]
Remove NAND support from the common tegra2 configuration.

Not all of our boards have NAND, and we are not using NAND
commands currently.

BUG=chromium-os:11981
TEST=build and boot U-Boot on Kaen.

Change-Id: I02336d0fc530b0ac41e35f2903ae67623b32874c

Review URL: http://codereview.chromium.org/6609003

3 years agoMove tpm lite API to common include path
Rong Chang [Tue, 1 Mar 2011 16:39:14 +0000 (08:39 -0800)]
Move tpm lite API to common include path

In order to run test cases in both Linux user mode and u-boot command
mode. The API header tlcl.h must be accessed by both ebuilds.

Change-Id: Ic027dc118f26666b88bf54c511e2455a55e4eb8f

BUG=chromium-os:10497
TEST=emerge vboot_reference-firmware successfully

Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=baa3bbe

Review URL: http://codereview.chromium.org/6469089

3 years agoRevert "Add u-boot tpm driver, and integrate with verify boot."
Olof Johansson [Tue, 1 Mar 2011 01:44:29 +0000 (17:44 -0800)]
Revert "Add u-boot tpm driver, and integrate with verify boot."

This reverts commit a6e15bd148614f43b429b17d9de907a52e9020a8.

TBR=rongchang

Change-Id: Id9e1cdbf8f47aed0f8ef305fa66fb45bac8d865d

3 years agoAdd u-boot tpm driver, and integrate with verify boot.
Rong Chang [Mon, 28 Feb 2011 22:00:40 +0000 (06:00 +0800)]
Add u-boot tpm driver, and integrate with verify boot.
Currently only support developer version infineon i2c tpm ic, with i2c
address 0x1A. New versions would use i2c address 0x20 and might have
different protocol.

This CL depends on http://codereview.chromium.org/6469089 .

Remove white spaces

Change-Id: I32e2d34dcda15433d3b0b5514b70cba5b117a044

Clean debug output

Change-Id: Iaf766f599d28e56e47c899cf0890f3f858e67a24

Move vboot command support into developer build, and controled by compile time switch VBOOT_DEBUG

Change-Id: I35d2c7acfbd697adc39f7aa5778792d356b379f0

Change debug macro name to follow verify boot's VBOOT_DEBUG

Change-Id: I8637f436683ac9ed73900ff9952c9af71a326779

Add infineon i2c tpm driver drivers/misc/infineon_i2ctpm.c, tpm tests for u-boot and tlcl stub impl

Change-Id: Ic0d5cf8782815416e1a211fc5aa72170ce7a3ab1

BUG=chromium-os:10497
TEST=see below

1. build> VBOOT_DEBUG=1 emerge-tegra2_seaboard chromeos-u-boot-next
2. nvflash u-boot-developer.bin to seaboard, not u-boot.bin
3. copy signed image.bin to usb stick (fat format)
4. reboot newly flashed seaboard, wait for the prompt and type
  4a. usb start
  4b. fatload usb 0:1 0x10000000 image.bin
  4c. cros load_fw 0x10000000 0x00400000 0x10500000

Check the tpm protocol dump and verify boot return value.

Review URL: http://codereview.chromium.org/6542065

3 years agoDisplay the screens which are stored in GBB BMP block.
Tom Wai-Hong Tam [Tue, 22 Feb 2011 07:50:33 +0000 (15:50 +0800)]
Display the screens which are stored in GBB BMP block.

BUG=chromium-os:11368
TEST=manual
$ emerge-tegra2_seaboard chromeos-u-boot-next
$ emerge-tegra2_seaboard chromeos-bios
$ write_tegra_bios --board tegra2 --variant seaboard --bios /build/tegra2_seaboard/u-boot/image.bin
$ grep -m1 -E "^[0-9a-fA-F]{8} T _start$" /build/tegra2_seaboard/u-boot/System.map | cut -d " " -f 1
00e08000
$ grep -m1 CONFIG_OFFSET_GBB /build/tegra2_seaboard/u-boot/autoconf.mk | tr -d "\"" | cut -d = -f 2
0x000f0400
$ python -c 'print "0x%x" % (0xe08000 + 0xf0400)'
0xef8400

CrOS> cros bmpblk info 0xef8400 0
screens[0] info:
        - BMP (1366 x 768) showed on (0, 0)
CrOS> cros bmpblk info 0xef8400 1
screens[1] info:
        - BMP (1366 x 768) showed on (0, 0)
CrOS> cros bmpblk display 0xef8400 0
// The developer mode BMP is showing on LCD.
CrOS> cros bmpblk display 0xef8400 1
// The recovery mode BMP is showing on LCD.

Change-Id: I8bee7b74a3ca3006376838bd7de6a327bb253704

Review URL: http://codereview.chromium.org/6543008

3 years agoRevert accidentally-pushed unapproved stuff
Che-Liang Chiou [Tue, 22 Feb 2011 03:01:57 +0000 (11:01 +0800)]
Revert accidentally-pushed unapproved stuff

Change-Id: I28112985666369bef927ef297becb071a7118645

3 years agoExpand GPIO number definition to a combination of port number and bit number. This...
Che-Liang Chiou [Tue, 22 Feb 2011 02:24:58 +0000 (10:24 +0800)]
Expand GPIO number definition to a combination of port number and bit number. This should be more readable and maintainable than a list of magic numbers.

BUG=none
TEST=emerge-tegra2_seaboard chromeos-u-boot-next

Review URL: http://codereview.chromium.org/6541040

Change-Id: I686c7778afabc718165ce91769cc7775369c3420

3 years agoMove CONFIG_CMD_CROS to developer config
Che-Liang Chiou [Tue, 22 Feb 2011 02:23:23 +0000 (10:23 +0800)]
Move CONFIG_CMD_CROS to developer config

BUG=none
TEST=emerge-tegra2_seaboard chromeos-u-boot-next

Review URL: http://codereview.chromium.org/6532075

Change-Id: I18ef03011b88d7df1e6d00fccca40fba79db9b25

3 years agoMove the flashing script to write_tegra_bios.
Anton Staaf [Sat, 19 Feb 2011 00:46:22 +0000 (16:46 -0800)]
Move the flashing script to write_tegra_bios.

The script that is run to flash onto the boot device is now generated
in the write_tegra_bios script and passed as part of the payload image.
It is a U-Boot uimg formatted script at TEXT_BASE + 0x40000

Change-Id: Ib5410d6cad15f38f5b645369eb6b774c06886081

BUG=chromium-os:11981
TEST=Flash SPI on Wario and Kaen

Review URL: http://codereview.chromium.org/6546026

3 years agoAdd support for kcrashmem in U-Boot
Simon Glass [Fri, 18 Feb 2011 00:51:10 +0000 (16:51 -0800)]
Add support for kcrashmem in U-Boot

Reserve an area of memory for use by kcrashmem and update the environment
variables to reflect this.

BUG=chromiumos-9961
TEST=boot kernel with new U-Boot

Review URL: http://codereview.chromium.org/6069007

Change-Id: Iefad7e23425c8f65f436234f1a69516ca14b80cb

3 years agoAdd four main boot methods to developer build
Simon Glass [Thu, 17 Feb 2011 20:45:24 +0000 (12:45 -0800)]
Add four main boot methods to developer build

This adds DHCP/NFS boot, USB key/NFS boot, USB boot and MMC boot to the
developer build via easy-to-use commands. To cope with the DHCP server
providing less than useful data, we allow configuration of tfpserverip
and nfsserverip.

To allow users to share a single tftp and NFS server, we append the user,
board and serial number to tftpboot and NFS filenames.

The developer build progresses through dhcp, keynfs, usb and mmc boot in
order until a kernel is found.

BUG=chromium-os:9574
TEST=build U-Boot for developer and try: usb start, run dhcp_boot,
run keynfs_boot, run usb_boot, run mmc_boot. All should boot to a
working system on Seaboard.

Change-Id: I452b7df0fcf5ab204017d5d38873ae1a4e6751d5

Review URL: http://codereview.chromium.org/6480056

3 years agoIntialize aebl build target from kaen.
Dave Parker [Thu, 17 Feb 2011 18:13:05 +0000 (10:13 -0800)]
Intialize aebl build target from kaen.

PTAL. This gets the build working for aebl but additional changes are required for u-boot to work properly.
Keyboard scan matrix comes from seaboard. UART configuration comes from kaen.

The following change is needed to work for the board to come out of reset:
http://codereview.chromium.org/6523018/

With this patched in, the serial console is available and it will start loading the kernel but does not make it to X.

Change-Id: I8460b04096d64f3863ea10d8c2f071f60c3aae34

BUG=None
TEST=Manual. Verified board console is available.

Review URL: http://codereview.chromium.org/6537006

3 years agoRemove the board config data section.
Anton Staaf [Tue, 15 Feb 2011 22:39:35 +0000 (14:39 -0800)]
Remove the board config data section.

It can be the first part of the bootstub as long as the bootstub is
the first section in the firmware blob.  And it needs to be the
first part fo the bootstub because of the way the Tegra tools
sign the bootstub.

Change-Id: I72fad3491ea84c4c245694c1ee742cd785bc7985

BUG=chromium-os:11981
TEST=emerge-tegra2_seaboard -av chromeos-u-boot-next

This CL depends on: http://codereview.chromium.org/6517012/

Review URL: http://codereview.chromium.org/6484027

3 years agoZero out the BOARD_CONFIG_DATA firmware section.
Anton Staaf [Tue, 15 Feb 2011 22:35:07 +0000 (14:35 -0800)]
Zero out the BOARD_CONFIG_DATA firmware section.

This was initially intended to hold the SoC specific boot data, but
it turns out the implementation is simpler if that data is just part
of the beginning of the BOOTSTUB section.

BUG=chromium-os:11981
TEST=emerge-tegra2_seaboard -av chromeos-u-boot-next

Change-Id: Iea9b09b377388b798cd0d4d907939e3b093be2f2

Review URL: http://codereview.chromium.org/6520001

3 years agoCreate flasher configs for all Tegra2 boards.
Anton Staaf [Tue, 15 Feb 2011 00:39:58 +0000 (16:39 -0800)]
Create flasher configs for all Tegra2 boards.

The flasher configs are used to write a ChromeOS firmware payload to the SPI device on a Tegra2 board.  They are stripped down versions of U-Boot that expect a firmware image to be prepended to them.  They are written into RAM using the NVIDIA nvflash tool.

Change-Id: Ic8b713eed25707640abee90f99249fdd304a4b10

BUG=chromium-os:11981
TEST=emerge chromeos-u-boot-next for all boards, verify that a flasher image is build and use write_tegra_bios to run the image on each board out of RAM.  Verify that the image can in fact write to the SPI flash.

Review URL: http://codereview.chromium.org/6519004

3 years agoRename LCD_vl_* to CONFIG_LCD_vl_* to expose the values to ebuild.
Tom Wai-Hong Tam [Mon, 14 Feb 2011 08:00:03 +0000 (16:00 +0800)]
Rename LCD_vl_* to CONFIG_LCD_vl_* to expose the values to ebuild.

Such that another CL can get the values to resize the screen images.
http://codereview.chromium.org/6485023/

Change-Id: I6c1f8e51b38b706622a6ecc099ab7f8e6f71904d

BUG=chromium-os:11017
TEST=build chromeos-u-boot-next and check CONFIG_LCD_vl_* value in
/build/tegra2_seaboard/u-boot/autoconf.mk

Review URL: http://codereview.chromium.org/6486029

3 years agoHave all u-boot flavors report board type.
Vadim Bendebury [Tue, 8 Feb 2011 23:41:05 +0000 (15:41 -0800)]
Have all u-boot flavors report board type.

Change-Id: Idbc899d1903a2f7701b2dd6a73d3393517b9e23e

BUG=chromium-os:1302
TEST=manual

. run the following commands to build a u-boot image
 emerge-tegra2_kaen chromeos-u-boot-next
 emerge-tegra2_kaen chromeos-bios
. then program the image into the Kaen board: hold recovery
 button and push and release the reset button to initiate
 the new image download, and then run on the workstation:
   write_tegra_bios --board tegra2 --variant kaen
. reset the board and observe the banner:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
U-Boot 2010.09 (Feb 08 2011 - 11:56:30)

Board:   Tegra2 Kaen.recovery
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Review URL: http://codereview.chromium.org/6458002

3 years agoAdd support for ASIX AX88772 USB 2.0 10/100Mbit Ethernet Adaptor
Simon Glass [Mon, 7 Feb 2011 15:53:53 +0000 (07:53 -0800)]
Add support for ASIX AX88772 USB 2.0 10/100Mbit Ethernet Adaptor

Driver originally written by NVIDIA Corporation, modified to
handle odd-length packets.

This is enabled only on tegra2_seaboard_config and the chromeos developer
config.

BUG=chromium-os:9574
TEST=build U-Boot on Seaboard, usb start; bootp

Change-Id: I97a842e649ddee7dc5fdac49280ac67c22da5b1a

Review URL: http://codereview.chromium.org/6392035

3 years agoTurn off the environment for the generic developer config.
Anton Staaf [Fri, 4 Feb 2011 23:25:11 +0000 (15:25 -0800)]
Turn off the environment for the generic developer config.

Change-Id: Idef73775ceae61fbfa5284e1e5fd2714309f409e

BUG=None
TEST=emerge-tegra2 -av chromeos-u-boot-next

Review URL: http://codereview.chromium.org/6410100

3 years agoMove keyboard config to config files and switch seaboard to generic board files.
Anton Staaf [Fri, 4 Feb 2011 23:11:11 +0000 (15:11 -0800)]
Move keyboard config to config files and switch seaboard to generic board files.

Change-Id: I7eeed8af9bd09a42513aec2f10ce42c3b0f82c7c

BUG=chromium-os:11623
TEST=Build and boot Seaboard, Kaen and Wario, verify keyboard works.

Review URL: http://codereview.chromium.org/6250146

3 years agoCreate a "generic" Tegra2 board and config. Switch kaen and wario to it.
Anton Staaf [Fri, 4 Feb 2011 23:07:34 +0000 (15:07 -0800)]
Create a "generic" Tegra2 board and config.  Switch kaen and wario to it.

The generic board is immediately useful, as can be seen by the kaen and
wario configs using it.  The generic config is not.  It will eventually
be used to configure the U-Boot binary at run time based on board
configuration data.

Change-Id: I4eeadfdc27b35b8676fd882b427aaaad720b0bd7

BUG=chromium-os:11623
TEST=1)Build and boot U-Boot on Kaen and Wario.
2)Build for generic tegra2, doesn't work on any boards yet.

Review URL: http://codereview.chromium.org/6349063

3 years agoPopulate basic developer configs.
Anton Staaf [Fri, 4 Feb 2011 22:59:52 +0000 (14:59 -0800)]
Populate basic developer configs.

This includes removing some "Developer" related configs from
the recovery config.

Change-Id: I8b8485ee879ea80c515a0ecd4e6ad41a7f866df7

BUG=None
TEST=manual

USE="developer recovery" emerge-tegra2_<kaen, wario, seaboard, harmony> chromeos-u-boot-next

burn and boot both developer and recovery U-Boot images on all boards.
boot Chromeos on Seaboard.

Review URL: http://codereview.chromium.org/6368090

3 years agoEnable SPI flash environment as a dev option for Chrome OS
Simon Glass [Thu, 3 Feb 2011 00:58:16 +0000 (16:58 -0800)]
Enable SPI flash environment as a dev option for Chrome OS

Enables a saved environment as the default for developer config. For Tegra2
this is an area at the end of SPI flash on Tegra2 boards.

BUG=chromiumos-11119
TEST=emerge-tegra2_kaen, flash and test, to check no saved environment
is active (this is chromeos_tegra2_kaen_recovery_config)
Also tested in the same way on seaboard, with J9 (UART ENABLE JMPR) in the
middle position (GPIO CTRL).

tegra2_kaen_config: make ..., flash and test environment
commands to check that it is accessible here also.

chromos_tegra2_kaen_developer_config: make ..., flash and test
environment to make sure saved environment is active.

Change-Id: Ibe78b29049386e116931dd3682190904c27cc7fe

Review URL: http://codereview.chromium.org/6298010

3 years agoCreate stub, normal and developer configs for kean, harmony, seaboard and wario.
Anton Staaf [Tue, 1 Feb 2011 22:35:48 +0000 (14:35 -0800)]
Create stub, normal and developer configs for kean, harmony, seaboard and wario.

BUG=None
TEST=Build all configs for all board, boot recovery config on all boards.

Change-Id: I7dab00a4f5f9616bc97f197197a2ed0639c89705

Review URL: http://codereview.chromium.org/6250087

3 years agoAdd firmware image layout and Makefile rule for generating the image
Che-Liang Chiou [Wed, 19 Jan 2011 07:31:18 +0000 (15:31 +0800)]
Add firmware image layout and Makefile rule for generating the image

BUG=chromium-os:1302
TEST=build seaboard image successfully

Review URL: http://codereview.chromium.org/6179003

Change-Id: I02f8f19e2baa47d7fa745a531ff268dd88e87d01