The dev server allows you to update your Chromium OS machine with new builds without having to copy them via a USB drive. It also serves as a static file repository, allowing you to install your own packages and scripts making it easy to customize your machine for development purposes.
Note: Every time you create a Chromium OS build, the URL of the dev server corresponding to your development machine is put into /etc/lsb-release
. This file can be changed post-installation to manage a test machine's update source or can be overridden in /mnt/stateful_partition/etc/lsb-release
.
Note: Before you start the dev server, you must have already run cros build-packages
. If you have not, please run this now.
The first step in using the dev server is starting the web server on your development machine:
(chroot)$ start_devserver
Note that by default the devserver serves the latest image and runs on port 8080. You can change this among many other things. Here is a brief description of some of the options. Please see start_devserver --help
for more information.
--use_cached
- Forces the devserver to use the update.gz
it finds in its static dir. This allows you to pre-generate an update payload and place it in the devserver's static file hosting directory (~/src/platform/dev/static
).--src_image
- Generates a delta update based from the target image on the source image. If the source image you provide is not the image on the machine, the delta update will fail. Note that delta updates despite their name run slower than full updates (but will save you bandwidth).--pregenerate_update
- Generates the update before starting the dev server. This keeps from getting nasty timeouts for big update payloads (necessary for most delta updates).--image
- Serve this image to a machine that requests it.--port
- Start the devserver on this port.-t
- From the directory (using the latest image and/or using the archive logic) use the test image found in that directory (chromiumos_test_image.bin
)--static_dir
- Serve images from a file structure. Clients can prefix which image they want in their request by modifying their omaha_url
. By default this changes the static directory to ~/src/platform/dev/static
.A running devserver listens for calls to its stage and xBuddy RPCs.
An abbreviated version of the documentation for the stage RPC is copied here, but the up to date version can be found by going to host:port/doc/stage on any running devserver.
Downloads and caches the artifacts Google Storage URL. Returns once these have been downloaded on the devserver. A call to this will attempt to cache non-specified artifacts in the background for the given from the given URL following the principle of spatial locality. Spatial locality of different artifacts is explicitly defined in the build_artifact module. These artifacts will then be available from the static/
sub-directory of the devserver.
To download the autotest and test suites tarballs:
http://devserver_url:/stage?archive_url=gs://your_url/path&artifacts=autotest,test_suites
To download the full update payload:
http://devserver_url:/stage?archive_url=gs://your_url/path&artifacts=full_payload
To download just a file called blah.bin
:
http://devserver_url:/stage?archive_url=gs://your_url/path&files=blah.bin
See xBuddy for Devserver.
There are many things that can be done to improve this system. Feel free to make suggestions and submit patches.
为什么当警察 | 肾积水挂什么科室 | 脉是什么意思 | 一月20号是什么星座 | 嫁给香港人意味着什么 |
八月底什么星座 | 三月27号是什么星座 | 黄瓜和什么一起炒好吃 | 白天咳嗽晚上不咳嗽是什么原因 | 什么是阳虚 |
蛋白质被消化成什么 | 死库水什么意思 | 炖牛肉什么时候放盐 | 孕酮低跟什么有关系 | 学子是什么意思 |
无动于衷什么意思 | 中出是什么意思 | 3.5是什么星座 | tia是什么病 | 料酒是什么酒 |
老实人为什么总被欺负jinxinzhichuang.com | 平均血小板体积低是什么原因hcv9jop2ns6r.cn | 09年属什么hcv8jop9ns6r.cn | 五月初七是什么星座hcv8jop6ns8r.cn | 头皮痒用什么洗头好hcv8jop0ns6r.cn |
lf是什么意思hcv9jop4ns6r.cn | 狗尾巴草有什么功效hcv9jop8ns2r.cn | 不是你撞的为什么要扶luyiluode.com | 陈丽华是慈禧什么人naasee.com | 静的部首是什么hcv8jop9ns8r.cn |
识大体是什么意思hcv8jop5ns6r.cn | 荔枝适合什么地方种植hcv7jop6ns0r.cn | 80年属什么生肖hcv8jop9ns0r.cn | 女人鼻头有痣代表什么hcv8jop9ns0r.cn | 银灰色五行属什么hcv8jop8ns6r.cn |
初心不改是什么意思hcv8jop7ns6r.cn | dn是什么意思hcv8jop6ns9r.cn | 身份证最后一位代表什么hcv8jop5ns1r.cn | 骨盐量偏高代表什么hcv8jop6ns7r.cn | 难于上青天是什么意思hcv8jop8ns0r.cn |