On 5/22/15 3:31 AM, Jeff Chuang wrote:
> Dear all,
>
> I am porting Chromium OS to an ARM platform.
> I have made embedded features Chromium OS booted on the platform.
> Currently, I am working on recovery mode and get errors when executing
> the expression "chroot /usb /usr/sbin/chromeos-recovery /dev/mmcblk0" of
> recovery_init.sh.
Using a recovery image may not be what you want.
A recovery image is simply a special image that boots
from removable storage like a USB stick or SD card and
invokes chromeos-install automatically. It's most useful
if you have users that need to be able to boot and install
automatically on their own.
As a developer, recovery isn't useful unless your device
doesn't have a terminal interface where you can log in
and type shell commands. If you can boot from an SD card,
log in at a terminal, and type commands, it'll be easier
to use chromeos-install directly.
> The error messages are as follows:
> + echo 1
> + chroot /usb /usr/sbin/chromeos-recovery /dev/mmcblk0
> initctl: Unable to connect to Upstart: Failed to connect to socket
> /com/ubuntu/upstart: Connection refused
This message is normal, and not an error.
> WARNING: Secondary GPT header is invalid
> WARNING: One of the GPT headers/entries is invalid
> WARNING: Secondary GPT header is invalid
> WARNING: One of the GPT headers/entries is invalid
>
These errors indicate that your SD card isn't properly
formatted. This could be a serious problem, although it's
possible that the system will install cleanly despite that.
> Error: can not determine destination device. Specify --dst yourself.
If you want to use a recovery image, you have to specify at
build time the destination device where the image will be
installed. I don't know exactly how to do that, but I think
the configuration is part of the disk_layout.json file.
If you use chromeos-install, you can just run it with the --dst
option to say what device you're installing to.
> + local install_status=1
> + [ 1 -ne 0 ]
> + dlog WARNING!!! Installation of software failed. Displaying hw
> diagnostics
> + echo WARNING!!! Installation of software failed. Displaying hw
> diagnostics
> + tee -a /dev/tty2 /dev/ttyS2
> Could you tell me where can I find the sources of chromeos-recovery?
> Any suggestions for this problem is appreciate.
chromeos-recovery is a 5-10 line wrapper around chromeos-install.
Both scripts are part of the installer package, here:
src/platform2/installer
https://chromium.googlesource.com/chromiumos/platform2/+/master/installer/
> Thank you
>
> BR,
> Jeff
>
>
>
> --
> --
> Chromium OS Developers mailing list:
chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
>
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>
--
--jrb