Commit Graph

4592 Commits

Author SHA1 Message Date
Daniel Erat
89b029c7c0 build: Re-hide pointless question in image_to_usb.sh --test_image.
Undoes a change from 5c3b457f.  Hardcoding "--yes" in the
call to mod_image_for_test.sh instead of inheriting
image_to_usb.sh's "yes" was intentional.  The user may not
pass --yes to image_to_usb.sh since they want to confirm
that they're writing to the correct device, but they already
told us that they want the image to be modified for test
with --test_image, so there's no reason to ask about it
again.

BUG=none
TEST=ran it

Review URL: http://codereview.chromium.org/1736005
2010-04-22 13:59:07 -07:00
Ken Mixter
565b11316a Support grabbing gpt-style images from buildbot
Review URL: http://codereview.chromium.org/1716003
2010-04-21 17:50:33 -07:00
Chris Sosa
6975c665d8 Only cache sudo if outside chroot
Review URL: http://codereview.chromium.org/1709005
2010-04-21 15:39:02 -07:00
robotboy
32ddb4282f Only search for the gpt tool if we need it.
Review URL: http://codereview.chromium.org/1747005
2010-04-21 14:46:00 -07:00
Nasser Grainawi
cb5f3ebe52 Retry N-1 times with the --jobs flag, then drop it
Review URL: http://codereview.chromium.org/1545043
Patch from Nasser Grainawi <nasserg@quicinc.com>.
2010-04-21 08:46:49 -06:00
Yusuke Sato
e5b9621b89 Revert "Only search for the gpt tool if we need it."
This reverts commit c8f8d220a2cdb3cd5b464859de38c8504403e6d1.
2010-04-21 10:46:59 +09:00
David McMahon
e707c1d4e7 Fix name of test image from autotest archive.
Review URL: http://codereview.chromium.org/1711005
2010-04-20 18:03:51 -07:00
robotboy
3e9204c315 Only search for the gpt tool if we need it.
Review URL: http://codereview.chromium.org/1604041
2010-04-20 17:17:03 -07:00
Andrew de los Reyes
ba9af725d1 tracker/spreadsheet tool: Improve tracker to spreadsheet migration.
Migrate only issues that are open or that are already in the
spreadsheet. This way, the spreadsheet doesn't get cluttered w/ closed
tasks.

Review URL: http://codereview.chromium.org/1734001
2010-04-20 16:28:37 -07:00
Chris Sosa
fb78b42940 New helper script to mount (and umount) gpt image into image_dir/rootfs and mount /var, /usr/local
Review URL: http://codereview.chromium.org/1648018
2010-04-19 14:56:18 -07:00
Chris Masone
127c3bfa2b Add testing root certs to an nssdb on the rootfs.
After discussing with drewry, we can't come up with a better way to inject these root certs.  We considered putting them on the stateful partition, but that opens up an avenue of attack (if you can get a root cert into the magic directory, then you can MITM login).  Thus, we put it on the rootfs instead.  The script that sets up the hashes for vboot will verify that this directory is not present in production images.  That work is tracked here: http://code.google.com/p/chromium-os/issues/detail?id=2693

Review URL: http://codereview.chromium.org/1566055
2010-04-19 14:26:14 -07:00
Nick Sanders
3c8023380e Allow boot directly into mfg test.
Add feature to mod_image_for_test to patch rootfs.
Change initctl path to get network but no chrome.
./image_to_usb.sh --install_mfg --install_autotest --test_image
which calls ./mod_image_for_test.sh --manuf

Review URL: http://codereview.chromium.org/1542011
2010-04-16 19:53:55 -07:00
David McMahon
acee63274c Created branch release_40. Update CHROMEOS_VERSION_BRANCH=41 2010-04-16 15:20:51 -07:00
Sean O'Connor
d41bbf4fd5 devserver support for update images from buildbot.
Remove implicit sudo from gpt partition packing scripts.

Misc cleanup and fixes included.

Review URL: http://codereview.chromium.org/1633018
2010-04-16 13:50:40 -07:00
Ken Mixter
d5c4b17da5 Revert "Retry on build_image failures and make sbt more aggressive by default"
This reverts commit 7c3272657eb2e3a106090c5ab57f16ba5ba21ffe.

Review URL: http://codereview.chromium.org/1594035
2010-04-16 10:11:02 -07:00
Ken Mixter
c223ba1e0c Retry on build_image failures and make sbt more aggressive by default
As with build_packages, only retries by default if you passed --jobs
even though build_image will indeed spuriously fail with only one job.
sync_build_test now uses jobs=#cores by default for both package and
image building.  Eventually will also use this for gclient sync'ing
once that is better vetted.

Review URL: http://codereview.chromium.org/1564035
2010-04-16 09:08:26 -07:00
Mike Truty
c5f1d31034 Add ssh cleanup to avoid leaving running agents around when imaging problems.
Review URL: http://codereview.chromium.org/1609025
2010-04-14 16:11:22 -07:00
Darin Petkov
835ea28436 Add generate_test_report to the hwqual package.
Will remove it from the autotest repo in a separate CL.

Review URL: http://codereview.chromium.org/1576035
2010-04-14 12:58:20 -07:00
Chris Sosa
3d9a10b393 Fix install mask and move dev_mode to true when dev packages are installed
Review URL: http://codereview.chromium.org/1553028
2010-04-13 15:00:46 -07:00
Andrew de los Reyes
23fbe7dde4 Tracker/Spreadsheet sync: tool to sync tracker issues
This can be useful for working with issues in a spreadsheet and making
bulk updates to tracker issues.

See known issues in the file for important known issues.

Review URL: http://codereview.chromium.org/1566037
2010-04-13 13:32:03 -07:00
Eric Li
ac2de13847 Refine image_to_live script to log all output from devserver.
Review URL: http://codereview.chromium.org/1572034
2010-04-13 13:19:08 -07:00
Bill Richardson
ba9682ac08 Change default grub.cfg to support fast-boot from EFI BIOS
Review URL: http://codereview.chromium.org/1518025
2010-04-13 13:02:32 -07:00
Eric Li
740d837451 Add iperf and netpipe into autotest prebuild test lists.
Now they should be built for both x86 and arm board.

Review URL: http://codereview.chromium.org/1621006
2010-04-13 10:07:15 -07:00
David McMahon
a2a9a2b5a8 Update CHROMEOS_VERSION_MINOR=7, Post R6.
Review URL: http://codereview.chromium.org/1645002
2010-04-12 18:22:56 -07:00
Jie Sun
5ade331b45 add install to arm platform
now we could install to mmcblk0.
for vogue, we even change the uboot environment.
on Samsung, you had to use 'chromeos-install --skip_src_removable' because mmcblk1 is not removable somehow.

Review URL: http://codereview.chromium.org/1618013
2010-04-12 17:04:36 -07:00
Chris Sosa
3ccf7410ea Add local dir's to path. SSH and SU respect paths in etc environment
Review URL: http://codereview.chromium.org/1650001
2010-04-12 16:00:17 -07:00
robotboy
9891221b6e Add a safe_unmount function and use it in enter_chroot.
The safe_unmount function first tries a regular unmount,  If that
fails it warns and tries a lazy unmount.  If the lazy unmount fails
it dies.

Both unmounts take the -d option in case the mount is a loop device.

BUG=None
TEST=Entered and exited multiple chroots

Review URL: http://codereview.chromium.org/1593021
2010-04-12 14:08:14 -07:00
David McMahon
ad9c20327d Run hwqual on test_mod=true as it has dependencies on test_mod=true.
Review URL: http://codereview.chromium.org/1553025
2010-04-12 12:21:35 -07:00
tedbo
373c3903c2 Add sudo_clobber and sudo_append functions so that we can "echo"
and "cat" stuff and pipe it to something that can write to a
file as root. For example:

echo "foo" | sudo_append /tmp/bar

will append "foo" to the file /tmp/bar as root. While

echo "foo" | sudo_clobber /tmp/bar

will truncate /tmp/bar and then write "foo" to the file.

Review URL: http://codereview.chromium.org/1610021
2010-04-12 10:52:40 -07:00
Chris Masone
30fa208c87 Tool for mounting USB sticks formatted with --statefuldev
sosa@'s statefuldev change, which installs all developer packages on
the stateful partition and has put /var there as well, means that we
can no longer just mount the rootfs on a usb stick and emerge packages
onto/off of the removeable device.  We now need to mount the stateful
partition as well, and also bindmount from /var on the rootfs to /var
on the stateful partition.  All portage state is stored there, among
other things.

Review URL: http://codereview.chromium.org/1644001
2010-04-12 08:59:05 -07:00
Eric Li
36e192758f Pass chroot flag into enter_chroot.
This is something missing from the original run_remote_tests script.

Review URL: http://codereview.chromium.org/1589022
2010-04-10 11:58:43 -07:00
Daniel Erat
35aa57a305 build: Suppress stupid question in image_to_usb.sh.
No point in asking the user if they're sure they want
to modify the image for testing when they asked us to
modify it for testing in the first place.

BUG=none
TEST=tried it

Review URL: http://codereview.chromium.org/1520031
2010-04-09 18:51:08 -07:00
Andrew de los Reyes
8d94f49f0d New Full AU Format w/ support for kernel partition.
The old format was: gzip(root filesystem). The new format is:
gzip(kernel parition length + kernel partition + root filesystem). The
length is 8 bytes (uint64 big endian).

This CL fixes the updater and the update generator to support the new
format.

Review URL: http://codereview.chromium.org/1520028
2010-04-09 16:07:37 -07:00
Jie Sun
96e2b09b24 current mkimage are build in u-boot package and copied to sys-root ( a x86 binary).
move mkimage to hard-host-depends and remove dependency from u-boot to kernel.
this will make use of mkimage on target possible in the future.

Review URL: http://codereview.chromium.org/1613008
2010-04-09 11:05:49 -07:00
Bill Richardson
a81df76a06 Replace "mount -o loop" with explict losetup use in build_image.
This fixes the loop device leak. The problem is that inside the chroot, we
have /etc/mtab as a symlink to /proc/mounts. That works most of the time,
but if you mount something using "-o loop", it isn't cleaned up correctly
when you umount it. To avoid that, we either have to replace the /etc/mtab
symlink with an empty file when we create the chroot, or we have to make
sure that we never execute a "mount -o loop" command from within the chroot.
If we use an empty /etc/mtab file, the builds work fine, but then we can't
see any mounted partitions that the host creates outside the chroot (such as
USB keys), which causes other problems. Bleah.

Review URL: http://codereview.chromium.org/1594020
2010-04-09 08:12:05 -07:00
Chris Sosa
1e5fe62f92 Fix build image
Review URL: http://codereview.chromium.org/1622015
2010-04-08 20:51:53 -07:00
Chris Masone
b9f7230dcd Fix permissions on fake root cert that is injected for login testing. It was getting 0600
Review URL: http://codereview.chromium.org/1626007
2010-04-08 16:05:32 -07:00
Andrew de los Reyes
e7a04adc83 Factory Installer.
Change build_image to support building a factory install image. Also,
a shell script and startup script to run the factory installer.

Change software_update startup script to detect if it's a factory
install and abort if so.

BUG=2378,2379,2380
TEST=Tested factory install worked on device.
Wrapper script to perform factory install at boot.

AU: New arg to install on non-boot device partition. This is used to
install in the factory. Also, switch to shflags for argument parsing.

Review URL: http://codereview.chromium.org/1556022
2010-04-08 15:58:17 -07:00
Chris Sosa
503efe1f65 Add /usr/local/lib to readlibs for test_image and move ldconfig higher for sful
Review URL: http://codereview.chromium.org/1618007
2010-04-08 10:05:46 -07:00
Chris Sosa
4bffb8be6a Fix symlinks for gmergefs on stateful and keep other stateful items installed from build_image
Review URL: http://codereview.chromium.org/1561014
2010-04-07 17:23:54 -07:00
Darin Petkov
dab00363f1 Fix 'autotest' defaults -- i.e., fail when tests fail to build,
just like build_autotest. This unmasks some test build failures that
are currently happenning.

Review URL: http://codereview.chromium.org/1582017
2010-04-07 17:16:54 -07:00
Eric Li
941893f111 Enable default board in the new build_autotest script.
Review URL: http://codereview.chromium.org/1582019
2010-04-07 17:00:36 -07:00
Eric Li
f93158db51 Filter out test directory which has only control files.
Review URL: http://codereview.chromium.org/1627006
2010-04-07 15:34:01 -07:00
Jie Sun
6795867104 fix a sudo issue
Review URL: http://codereview.chromium.org/1549025
2010-04-07 14:34:04 -07:00
Eric Li
7a4c081107 remove build_autotest.sh and change run_remote_tests.sh to use new autotest script.
This change should go with

http://codereview.chromium.org/1545014

together.

Review URL: http://codereview.chromium.org/1603004
2010-04-07 12:51:05 -07:00
Bill Richardson
8b3bd10b91 Create EFI System Partition on USB image during build.
The EFI System Partition is a special disk partition where EFI BIOS expects
to find the platform-specific bootloader. We need this in order to work on
the BIOS/kernel handoff. It's not needed for the final ChromeOS image and it
isn't useful for legacy BIOS systems, so right now it only makes any difference on x86
devices with development BIOSes.

This change creates the partition for ARM builds as well; it has no effect
there, either.

Review URL: http://codereview.chromium.org/1513019
2010-04-06 15:00:10 -07:00
robotboy
e450333e3f Set the bootargs in the MBR script.
This is one less thing to change when setting up a Voguev210 and if
we need to change anything later we won't have to reconnect all of
them to debug boards.

BUG=None
TEST=Build and boot a Voguev210 image.

Review URL: http://codereview.chromium.org/1596010
2010-04-05 17:26:46 -07:00
Chris Masone
35a83f99e4 Apparently, we have to have a rootfs big enough to hold all dev and test tools too.
I need a couple extra tools for testing purposes (about 10MB).  I'd love to not add space to the rootfs for these.  But...talking to sosa, it doesn't seem there's any other way.

Review URL: http://codereview.chromium.org/1576018
2010-04-05 16:51:53 -07:00
Chris Sosa
317d8eb3fd Better handling of fuse in chroot
Review URL: http://codereview.chromium.org/1582011
2010-04-05 15:45:28 -07:00
rginda
9f90710f3b A pair of scripts to make it easier to run and debug 32 bit executables on 64 bit systems
For Example:

  # run the 32 bit binary located ad ../platform/foo/a.out
  $ run_32bit.sh ../platform/foo/a.out

  # run a.out from the current directory, and pass it the --verbose=3 command line option
  $ ../../scripts/run_32bit.sh -- a.out --verbose=3

  # debug a.out from the current directory, include ../v8 in the library search path
  $ LIB_PATHS='../v8/' ../../scripts/debug_32bit.sh a.out

run_32bit.sh runs a 32bit executable, debug_32bit.sh starts up gdb so that it's ready to
debug a 32bit target.  Both scripts work from in or out of the chroot.

If you're running from outside the chroot, you can pass a --chroot command line option to
locate the chroot, otherwise a default is computed through the normal mechanism.

Pass the 32 bit target as the parameter to either of these scripts.  If you need to provide
additional parameters to your command, then you should use -- to signify the end of *_32bit.sh
parameters.

These could be useful to people developing parts of chromeos that can be easily isolated
from the rest of the system.  If your code doesn't NEED to run on a chromeos device it
can be a bit easier to try it out on your owm machine during dev/test.

Review URL: http://codereview.chromium.org/1131002
2010-04-05 15:22:44 -07:00