blob: 204ffbdce85ace5d3fda81451125e914f3367511 [file] [log] [blame]
Carmelo Casconeb7e618d2018-01-12 18:31:33 -08001#!/usr/bin/env bash
2# -----------------------------------------------------------------------------
3# Builds and installs all tools needed for developing and testing P4 support in
4# ONOS.
5#
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -08006# Tested on 16.04 and 18.04.
Carmelo Casconeb7e618d2018-01-12 18:31:33 -08007#
8# Recommended minimum system requirements:
9# 4 GB of RAM
10# 2 cores
11# 8 GB free hard drive space (~4 GB to build everything)
Carmelo Cascone95e5afd2018-07-17 14:45:23 +020012#
13# To execute up to a given step, pass the step name as the first argument. For
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -080014# example, to install PI, but not bmv2, p4c, etc:
Carmelo Cascone95e5afd2018-07-17 14:45:23 +020015# ./install-p4-tools.sh PI
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080016# -----------------------------------------------------------------------------
17
18# Exit on errors.
19set -e
Carmelo Casconea4dc3c12019-02-12 17:30:00 -080020set -x
21
Carmelo Casconea1ae4272019-04-11 17:53:19 -070022BMV2_COMMIT="8c6f852867c4a80b7c51c23db3419e1137f5038d"
23PI_COMMIT="9f6c1f23843b99fb582a9b893be628e5ae820b53"
24P4C_COMMIT="74bcfa32a6c782bc9a3c4c29d5656519dee4dfdb"
Carmelo Casconea4dc3c12019-02-12 17:30:00 -080025
26# p4c seems to break when using protobuf versions newer than 3.2.0
27PROTOBUF_VER=${PROTOBUF_VER:-3.2.0}
28GRPC_VER=${GRPC_VER:-1.3.2}
29
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080030
31BUILD_DIR=~/p4tools
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080032NUM_CORES=`grep -c ^processor /proc/cpuinfo`
Carmelo Casconef02872d2018-06-20 08:49:02 +020033# If false, build tools without debug features to improve throughput of BMv2 and
Carmelo Cascone03ae0ac2018-10-11 08:31:59 -070034# reduce CPU/memory footprint. Default is true.
Carmelo Casconef02872d2018-06-20 08:49:02 +020035DEBUG_FLAGS=${DEBUG_FLAGS:-true}
Carmelo Cascone95e5afd2018-07-17 14:45:23 +020036# Execute up to the given step (first argument), or all if not defined.
37LAST_STEP=${1:-all}
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -080038# PI and BMv2 must be configured differently if we want to use Stratum
39USE_STRATUM=${USE_STRATUM:-false}
40# Improve time for one-time builds
41FAST_BUILD=${FAST_BUILD:-false}
42# Remove build artifacts
43CLEAN_UP=${CLEAN_UP:-false}
44BMV2_INSTALL=/usr/local
45set +x
Carmelo Cascone95e5afd2018-07-17 14:45:23 +020046
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080047function do_requirements {
48 sudo apt update
49 sudo apt-get install -y --no-install-recommends \
50 autoconf \
51 automake \
52 bison \
53 build-essential \
54 cmake \
55 cpp \
56 curl \
57 flex \
58 git \
Carmelo Casconeb5324e72018-11-25 02:26:32 -080059 graphviz \
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080060 libavl-dev \
61 libboost-dev \
Carmelo Casconeb5324e72018-11-25 02:26:32 -080062 libboost-graph-dev \
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080063 libboost-program-options-dev \
64 libboost-system-dev \
65 libboost-filesystem-dev \
66 libboost-thread-dev \
67 libboost-filesystem-dev \
68 libboost-program-options-dev \
69 libboost-system-dev \
70 libboost-test-dev \
71 libboost-thread-dev \
72 libc6-dev \
73 libev-dev \
74 libevent-dev \
75 libffi-dev \
76 libfl-dev \
77 libgc-dev \
78 libgc1c2 \
79 libgflags-dev \
80 libgmp-dev \
81 libgmp10 \
82 libgmpxx4ldbl \
83 libjudy-dev \
84 libpcap-dev \
85 libpcre3-dev \
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080086 libssl-dev \
87 libtool \
88 make \
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080089 pkg-config \
Carmelo Cascone57defd32018-05-11 14:34:01 -070090 python2.7 \
91 python2.7-dev \
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080092 tcpdump \
93 wget \
94 unzip
95
Carmelo Casconea1ae4272019-04-11 17:53:19 -070096 sudo -H pip install setuptools cffi ipaddr ipaddress pypcap scapy
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080097}
98
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080099function do_requirements_1604 {
100 sudo apt-get update
101 sudo apt-get install -y --no-install-recommends \
102 ca-certificates \
103 g++ \
Kevin Chuang53a9d5b2018-01-17 15:55:32 +0800104 libboost-iostreams1.58-dev \
Jonghwan Hyunbfb3a212018-11-16 11:42:18 +0900105 libreadline6 \
106 libreadline6-dev \
107 mktemp
108}
109
110function do_requirements_1804 {
111 sudo apt-get update
112 sudo apt-get install -y --no-install-recommends \
113 ca-certificates \
114 g++ \
115 libboost1.65-dev \
116 libboost-regex1.65-dev \
117 libboost-iostreams1.65-dev \
118 libreadline-dev \
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800119 libssl1.0-dev
Kevin Chuang53a9d5b2018-01-17 15:55:32 +0800120}
121
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800122function do_protobuf {
123 cd ${BUILD_DIR}
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800124 if [[ ! -d protobuf-${PROTOBUF_VER} ]]; then
125 # Get python package which also includes cpp.
126 wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VER}/protobuf-python-${PROTOBUF_VER}.tar.gz
127 tar -xzf protobuf-python-${PROTOBUF_VER}.tar.gz
128 rm -r protobuf-python-${PROTOBUF_VER}.tar.gz
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800129 fi
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800130 cd protobuf-${PROTOBUF_VER}
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800131
132 export CFLAGS="-Os"
133 export CXXFLAGS="-Os"
134 export LDFLAGS="-Wl,-s"
135 ./autogen.sh
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800136 confOpts="--prefix=/usr"
137 if [[ "${FAST_BUILD}" = true ]] ; then
138 confOpts="${confOpts} --disable-dependency-tracking"
139 fi
140 ./configure ${confOpts}
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800141 make -j${NUM_CORES}
142 sudo make install
143 sudo ldconfig
144 unset CFLAGS CXXFLAGS LDFLAGS
Carmelo Casconef645e842018-07-16 18:31:52 +0200145
146 cd python
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800147 # Hack to get the -std=c++11 flag when building 3.6.1
148 # https://github.com/protocolbuffers/protobuf/blob/v3.6.1/python/setup.py#L208
149 export KOKORO_BUILD_NUMBER="hack"
150 sudo -E python setup.py build --cpp_implementation
151 sudo -E pip install .
152 unset KOKORO_BUILD_NUMBER
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800153}
154
155function do_grpc {
156 cd ${BUILD_DIR}
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800157 if [[ ! -d grpc-${GRPC_VER} ]]; then
158 git clone --depth 1 --single-branch --branch v${GRPC_VER} https://github.com/grpc/grpc.git grpc-${GRPC_VER}
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800159 fi
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800160
161 cd grpc-${GRPC_VER}
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800162 git submodule update --init
163
164 export LDFLAGS="-Wl,-s"
Jonghwan Hyunbfb3a212018-11-16 11:42:18 +0900165 RELEASE=`lsb_release -rs`
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800166 if version_ge ${RELEASE} 18.04; then
Jonghwan Hyunbfb3a212018-11-16 11:42:18 +0900167 # Ubuntu 18.04 ships OpenSSL 1.1 by default, which has breaking changes in the API.
168 # Here, we will build grpc with OpenSSL 1.0.
169 # (Reference: https://github.com/grpc/grpc/issues/10589)
170 # Also, set CFLAGS to avoid compilcation error caused by gcc7.
171 # (Reference: https://github.com/grpc/grpc/issues/13854)
172 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig make -j${NUM_CORES} CFLAGS='-Wno-error'
173 else
174 make -j${NUM_CORES}
175 fi
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800176 sudo make install
177 sudo ldconfig
178 unset LDFLAGS
Carmelo Casconef645e842018-07-16 18:31:52 +0200179
180 sudo pip install -r requirements.txt
181 sudo pip install .
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800182}
183
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800184function checkout_bmv2 {
185 cd ${BUILD_DIR}
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800186 if [[ ! -d bmv2 ]]; then
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800187 git clone https://github.com/p4lang/behavioral-model.git bmv2
188 fi
189 cd bmv2
190 git fetch
191 git checkout ${BMV2_COMMIT}
192}
193
194function do_pi_bmv2_deps {
195 checkout_bmv2
196 # From bmv2's install_deps.sh.
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800197 tmpdir=`mktemp -d -p .`
198 cd ${tmpdir}
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800199 if [[ "${USE_STRATUM}" = false ]] ; then
200 bash ../travis/install-thrift.sh
201 fi
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800202 sudo ldconfig
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800203 cd ..
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800204 sudo rm -rf ${tmpdir}
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800205}
206
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200207function do_PI {
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800208 cd ${BUILD_DIR}
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800209 if [[ ! -d PI ]]; then
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200210 git clone https://github.com/p4lang/PI.git
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800211 fi
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200212 cd PI
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800213 git fetch
214 git checkout ${PI_COMMIT}
215 git submodule update --init --recursive
216
217 ./autogen.sh
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800218 if [[ "${USE_STRATUM}" = false ]] ; then
219 ./configure --with-proto --without-internal-rpc --without-cli
220 else
221 # Configure for Stratum
222 ./configure --without-bmv2 --without-proto --without-fe-cpp --without-cli --without-internal-rpc --prefix=${BMV2_INSTALL}
223 fi
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800224 make -j${NUM_CORES}
225 sudo make install
226 sudo ldconfig
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800227}
228
229function do_bmv2 {
230 checkout_bmv2
231
232 ./autogen.sh
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800233
234 confOpts="--with-pi --disable-elogger --without-nanomsg --without-targets"
Carmelo Cascone4b2ff042019-04-16 13:25:10 -0700235 # We are building --without-targets but we know for sure we need those
236 # parts of the BMv2 PI library for simple_switch.
237 cppFlags="-I${PWD}/targets/simple_switch -DWITH_SIMPLE_SWITCH"
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800238 if [[ "${FAST_BUILD}" = true ]] ; then
239 confOpts="${confOpts} --disable-dependency-tracking"
Carmelo Casconef02872d2018-06-20 08:49:02 +0200240 fi
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800241 if [[ "${DEBUG_FLAGS}" = false ]] ; then
242 confOpts="${confOpts} --disable-logging-macros"
243 fi
244 if [[ "${USE_STRATUM}" = true ]] ; then
Carmelo Cascone4b2ff042019-04-16 13:25:10 -0700245 confOpts="--prefix=${BMV2_INSTALL} --without-thrift ${confOpts}"
246 cppFlags="${cppFlags} -isystem${BMV2_INSTALL}/include"
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800247 fi
Carmelo Cascone4b2ff042019-04-16 13:25:10 -0700248 confCmd="./configure CPPFLAGS=\"${cppFlags}\" ${confOpts}"
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800249 eval ${confCmd}
250
251 make -j${NUM_CORES}
252 sudo make install
253 cd targets/simple_switch
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800254 make -j${NUM_CORES}
255 sudo make install
256 sudo ldconfig
257
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800258 if [[ "${USE_STRATUM}" = false ]] ; then
259 # Simple_switch_grpc target (not using Stratum)
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800260 cd ../simple_switch_grpc
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800261 ./autogen.sh
262 ./configure --with-thrift
263 make -j${NUM_CORES}
264 sudo make install
265 sudo ldconfig
266 fi
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800267}
268
269function do_p4c {
270 cd ${BUILD_DIR}
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800271 if [[ ! -d p4c ]]; then
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800272 git clone https://github.com/p4lang/p4c.git
273 fi
274 cd p4c
275 git fetch
276 git checkout ${P4C_COMMIT}
277 git submodule update --init --recursive
278
279 mkdir -p build
280 cd build
Carmelo Cascone03ae0ac2018-10-11 08:31:59 -0700281 cmake .. -DENABLE_EBPF=OFF
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800282 make -j${NUM_CORES}
283 sudo make install
284 sudo ldconfig
285}
286
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200287function do_ptf {
288 cd ${BUILD_DIR}
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800289 if [[ ! -d ptf ]]; then
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200290 git clone https://github.com/p4lang/ptf.git
291 fi
292 cd ptf
293 git pull origin master
294
295 sudo python setup.py install
Carmelo Cascone76b3ee62018-01-30 15:45:27 -0800296}
297
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800298function check_commit {
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800299 if [[ ! -e $2 ]]; then
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800300 return 0 # true
301 fi
302 if [[ $(< $2) != "$1" ]]; then
303 return 0 # true
304 fi
305 return 1 # false
306}
307
308# The following is borrowed from Mininet's util/install.sh
309function version_ge {
310 # sort -V sorts by *version number*
311 latest=`printf "$1\n$2" | sort -V | tail -1`
312 # If $1 is latest version, then $1 >= $2
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800313 [[ "$1" == "$latest" ]]
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800314}
315
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800316function missing_lib {
Carmelo Casconee45902b2018-12-18 13:30:45 -0800317 ldconfig -p | grep $1 &> /dev/null
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800318 if [[ $? == 0 ]]; then
Carmelo Casconee45902b2018-12-18 13:30:45 -0800319 echo "$1 found!"
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800320 return 1 # false
Carmelo Casconee45902b2018-12-18 13:30:45 -0800321 fi
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800322 return 0 # true
323}
324
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800325function missing_protoc {
326 command -v protoc >/dev/null 2>&1
327 if [[ $? == 0 ]]; then
328 protoc --version | grep $1 &> /dev/null
329 if [[ $? == 0 ]]; then
330 echo "protoc ${1} found!"
331 else
332 echo "A version of protoc was found, but not $1 (you may experience issues)"
333 fi
334 return 1 # false
335 fi
336 return 0 # true
337}
338
339function missing_grpc {
340 # Is there a better way to check if a specific version of grpc is installed?
341 if [[ -f /usr/local/lib/libgrpc++.so ]]; then
342 ls -l /usr/local/lib/libgrpc++.so | grep libgrpc++.so.${1} &> /dev/null
343 if [[ $? == 0 ]]; then
344 echo "grpc ${1} found!"
345 else
346 echo "A version of grpc was found, but not $1 (you may experience issues)"
347 fi
348 return 1 # false
349 else
350 return 0 # true
351 fi
352}
353
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800354function all_done {
355 if [[ "${CLEAN_UP}" = true ]] ; then
356 echo "Cleaning up build dir... ${BUILD_DIR})"
357 sudo rm -rf ${BUILD_DIR}
358 fi
359 echo "Done!"
360 exit 0
Carmelo Casconee45902b2018-12-18 13:30:45 -0800361}
362
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800363MUST_DO_ALL=false
364DID_REQUIREMENTS=false
365function check_and_do {
366 # Check if the latest built commit is the same we are trying to build now,
367 # or if all projects must be built. If true builds this project.
368 commit_id="$1"
369 proj_dir="$2"
370 func_name="$3"
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200371 step_name="$4"
372 commit_file=${BUILD_DIR}/${proj_dir}/.last_built_commit_${step_name}
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800373 if [[ ${MUST_DO_ALL} = true ]] \
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200374 || check_commit ${commit_id} ${commit_file}; then
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800375 echo "#"
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200376 echo "# Building ${step_name} (${commit_id})"
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800377 echo "#"
378 # Print commands used to install to aid debugging
379 set -x
380 if ! ${DID_REQUIREMENTS} = true; then
381 do_requirements
382 # TODO consider other Linux distros; presently this script assumes
383 # that it is running on Ubuntu.
384 RELEASE=`lsb_release -rs`
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800385 if version_ge ${RELEASE} 18.04; then
Jonghwan Hyunbfb3a212018-11-16 11:42:18 +0900386 do_requirements_1804
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800387 elif version_ge ${RELEASE} 16.04; then
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800388 do_requirements_1604
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800389 else
390 echo "Ubuntu version $RELEASE is not supported"
391 exit 1
392 fi
393 DID_REQUIREMENTS=true
394 fi
395 eval ${func_name}
Carmelo Casconee45902b2018-12-18 13:30:45 -0800396 if [[ -d ${BUILD_DIR}/${proj_dir} ]]; then
397 # If project was built, we expect its dir. Otherwise, we assume
398 # build was skipped.
399 echo ${commit_id} > ${commit_file}
400 # Build all next projects as they might depend on this one.
401 MUST_DO_ALL=true
402 fi
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800403 # Disable printing to reduce output
404 set +x
405 else
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200406 echo "${step_name} is up to date (commit ${commit_id})"
407 fi
408 # Exit if last step.
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800409 if [[ ${step_name} = ${LAST_STEP} ]]; then
410 all_done
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800411 fi
412}
413
414mkdir -p ${BUILD_DIR}
415cd ${BUILD_DIR}
416# In dependency order.
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800417if missing_protoc ${PROTOBUF_VER}; then
418 check_and_do ${PROTOBUF_VER} protobuf-${PROTOBUF_VER} do_protobuf protobuf
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800419fi
Carmelo Casconea4dc3c12019-02-12 17:30:00 -0800420if missing_grpc ${GRPC_VER}; then
421 check_and_do ${GRPC_VER} grpc-${GRPC_VER} do_grpc grpc
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800422fi
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800423check_and_do ${BMV2_COMMIT} bmv2 do_pi_bmv2_deps bmv2-deps
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200424check_and_do ${PI_COMMIT} PI do_PI PI
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800425check_and_do ${BMV2_COMMIT} bmv2 do_bmv2 bmv2
426check_and_do ${P4C_COMMIT} p4c do_p4c p4c
Carmelo Cascone95e5afd2018-07-17 14:45:23 +0200427check_and_do master ptf do_ptf ptf
Carmelo Casconeb7e618d2018-01-12 18:31:33 -0800428
Carmelo Cascone7c82bcf2019-02-08 22:57:18 -0800429all_done