nrobinson2000 on master
Update README.md (compare)
nrobinson2000 on get
[skip ci] at 14:34 of 2018-07-21 (compare)
nrobinson2000 on get
[skip ci] at 14:33 of 2018-07-21 (compare)
po dfu open -d /dev/ttyACM0
is:tve@soumak ~> dfu-util -l
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
tve@soumak ~>
tve@soumak ~> ~/.po-util/bin/gcc-arm-embedded/gcc-arm-none-eabi-5_3-2016q1/bin/arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.3.1 20160307 (release) [ARM/embedded-5-branch revision 234589]
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
po dfu open -d /dev/ttyACM0; po xenon flash-beta
prebuild
and postbuild
prerequisites missing on program-dfu
?
[tve@soumak ~]$ for modem in /dev/serial/by-id/usb-Particle*; do echo $modem; done
/dev/serial/by-id/usb-Particle_Xenon_CDC_Mode_e00fce68a8f4dc1358b533f5-if00
for modem in /dev/ttyACM* /dev/serial/by-id/usb-Particle*; do
To catch ttyACM and by-id you need something along the lines of
[tve@soumak ~]$ for modem in /dev/ttyACM* /dev/serial/by-id/usb-Particle* foobar*; do [ -e $modem ]
&& echo modem is $modem; done
modem is /dev/ttyACM0
modem is /dev/ttyACM1
modem is /dev/serial/by-id/usb-Particle_Xenon_CDC_Mode_e00fce68a8f4dc1358b533f5-if00
[tve@soumak ~]$
(I added the foobar* to show that it works if there are no files matching the wildcard)
for modem in /dev/ttyACM* /dev/serial/by-id/usb-Particle*; do
if [ -e "$modem" ]; then
MODEM="$modem"
MODEM_DUO="$modem"
fi
done
echo MODEM is set to $MODEM
Hi Nathan: I am installing po on a cloud Docker environment using this Dockerfile command:
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends dbus gcc g++ automake \
libtool lsb-release make clang-format-6.0 libdbus-1-dev libboost-dev libreadline-dev \
autoconf autoconf-archive software-properties-common bsdtar \
sudo curl git gzip python gnupg2 software-properties-common build-essential libarchive-zip-perl \
&& apt-get update \
&& /bin/bash -c "bash <(curl -sL https://particle.io/install-cli)" \
&& /bin/bash -c "bash <(curl -sL get.po-util.com)" \
&& po \
&& chown -R gitpod:gitpod /home/gitpod/.po-util \
&& chmod -R 777 /home/gitpod/.po-util
and building using these commands
po init argon myProjectName
cd myProjectName
po config mesh-develop
po setup-mesh
MODULAR=n po argon build
but I get this error, which is not a fault of Po I simply haven't installed a needed dependency, just not sure what it would be.
mbedtls/library/oid.c:558:31: error: 'oid_cipher_alg' defined but not used [-Werror=unused-const-variable=]
static const oid_cipher_alg_t oid_cipher_alg[] =
^~~~~~~~~~~~~~
mbedtls/library/oid.c:295:39: error: 'oid_ext_key_usage' defined but not used [-Werror=unused-const-variable=]
static const mbedtls_oid_descriptor_t oid_ext_key_usage[] =
^~~~~~~~~~~~~~~~~
mbedtls/library/oid.c:167:30: error: 'oid_x520_attr_type' defined but not used [-Werror=unused-const-variable=]
static const oid_x520_attr_t oid_x520_attr_type[] =
^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [../../build/module.mk:272: ../../build/target/mbedtls/platform-12/./mbedtls/library/oid.o] Error 1
make[1]: *** [../build/recurse.mk:12: third_party/mbedtls] Error 2
make: *** [../build/recurse.mk:12: crypto] Error 2
Does installing these packages help?:
sudo apt-get install gcc-multilib libncurses5:i386
https://docs.particle.io/support/particle-tools-faq/workbench/#linux-tips