Auf 18.07.2010 17:20, Michael Karcher schrieb:
> Signed-off-by: Michael Karcher <flashrom(a)mkarcher.dialup.fu-berlin.de>
>
Go ahead. Your code is an improvement over the current state, and I can
send a followup patch with the changes I suggested in my review.
Please compile-test before committing. You can activate all drivers (on
a machine with libftdi) with
make CONFIG_ATAHPT=yes CONFIG_NICNATSEMI=yes CONFIG_DEDIPROG=yes
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Regards,
Carl-Daniel
--
http://www.hailfinger.org/
Hi,
attached patch contains a couple of build fixes for libpayload builds,
adds a "libpayload" OS_ARCH (which disables serial and usb programmers
and sets up the build to use lpgcc), and provides a new make target
"libflashrom.a" which combines all object files except the CLI_OBJS
class into libflashrom.a.
For a successful build you also need the libpayload patches on the
coreboot mailing list until they're checked in.
libflashrom.a still suffers from a variety of exit(1)s here and there,
so it's not quite a librarified flashrom yet, but it's a start.
Signed-off-by: Patrick Georgi <patrick.georgi(a)secunet.com>
--
Patrick Georgi
SINA-Development - High Security
secunet Security Networks AG - Mergenthalerallee 77 - 65760 Eschborn, Germany
Phone +49 201 54 54-3610 - Fax +49 201 54 54-1325 - www.secunet.com
Sitz: Kronprinzenstraße 30, 45128 Essen / Amtsgericht Essen HRB 13615
Vorstand: Dr. Rainer Baumgart (Vors.), Thomas Koelzer, Thomas Pleines
Aufsichtsratsvorsitzender: Dr. Karsten Ottenberg
A few months ago, ITE open sourced the initial IT8500 EC patch on this
mailing list (
http://www.flashrom.org/pipermail/flashrom/2010-August/004382.html) so that
we could check it in to the Chromium OS branch. It didn't quite make it
upstream, and has been updated since then.
The attached patch basically does the same thing and has been deployed and
tested to work on the Cr-48. There are a few caveats, though:
- The boot BIOS straps register must be modified to select LPC. This can be
done with the attached "select_bbs.sh" script (Install iotools (
http://code.google.com/p/iotools/) before using select_bbs). We worked
around this in the Chromium OS branch by adding a bus argument to the
programmer option, ie "flashrom -p internal:bus=lpc".
- It is very important to disable power management daemons before running
Flashrom on this EC. I commented out the brute force method we use in the
Chromium OS branch that disables powerd, since IIRC Carl-Daniel has a better
approach in the works.
- Due to dependencies which may be introduced by the OEM/ODM EC firmware,
the code is not guaranteed to work for anything other than the Cr-48.
- Carl-Daniel pointed out that the code might ignore the result of it87 init
code. I've attempted to mitigate this in the patch (see internal.c), but I
think it's just the symptom of a larger problem with how we detect and
initialize IO bridges, and should probably be dealt with in a separate
patch.
*Here is the text from the original patch submission:
The attached patch adds generalized support for IT8500/IT8502 embedded
controllers.
The patch was developed by Google for Flashrom r1082, but applies cleanly
against r1130.
It was tested for IT8500E on a Chrome OS platform and may require
modification
depending on ODM/OEM customization and EC firmware version.
This patch is not officially supported by ITE Tech Inc.*
Signed-off-by: David Hendricks <dhendrix(a)google.com>
(The original patch also included a sign-off from Yung-chieh Lo @ Google and
Donald Huang @ ITE).
--
David Hendricks (dhendrix)
Systems Software Engineer, Google Inc.