Skip to content

Instantly share code, notes, and snippets.

View KemperVreden's full-sized avatar

Kemper GmbH KemperVreden

View GitHub Profile
while (error) {
trail();
}
@KemperVreden
KemperVreden / gist:a177f7fc59f29e729f6d11d04c54439e
Created May 4, 2017 13:39
Resin.io dmesg Output of Variscite DART-6UL
[ 13.831384] brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip 43430 rev 1 pmurev 24
[ 13.968427] usbcore: registered new interface driver brcmfmac
[ 14.022452] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2
[ 14.180557] brcmfmac mmc0:0001:1: Falling back to user helper
[ 15.353737] cfg80211: World regulatory domain updated:
[ 15.357618] cfg80211: DFS Master region: unset
[ 15.380732] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 15.389245] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 15.408156] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 15.421330] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
simon@ubuntu:~/Documents/resin-preload-image-script$ sudo ./preload.sh --app 206443 --api-token "nononoapitokenhere" --img ~/Documents/airwatch2production-uart.img
[sudo] Passwort für simon:
Sending build context to Docker daemon 249.9 kB
Step 1 : FROM docker:1.10-dind
---> 305c151749f4
Step 2 : RUN apk update && apk add --no-cache bash curl jq parted btrfs-progs docker util-linux
---> Using cache
---> 83a39ee72017
Step 3 : COPY ./src /usr/src/app
---> Using cache
cat /data/network.config
[service_home_ethernet]
Type = ethernet
IPv4 = #{req.body.staticip}/#{req.body.subnet}/#{req.body.gateway}
Nameservers = #{req.body.primarydns},#{req.body.secondarydns}
Connecting to 4bd59d43feae0acd26fa97500889e0aa2b48904f022d0c430665131b6a624a...
Spawning shell...
root@raspberrypi2-4bd59d4:/usr/src/app# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.6 0.2 4524 2352 ? Ss+ 16:31 0:02 /bin/bash /usr/bin/entry.sh /bin/sh -c bash start
root 24 0.4 0.2 10532 2308 ? S 16:31 0:01 udevd
root 26 0.0 0.0 1440 408 ? S 16:31 0:00 /bin/sh -c bash start
root 27 0.0 0.2 4476 2308 ? S 16:31 0:00 bash start
root 54 0.6 2.5 75680 25196 console Sl 16:31 0:02 node /usr/src/app/nodesrc/sethostname.js
root 80 12.2 3.0 42564 30252 ? Sl 16:33 0:30 python main.py
if [ ! -f /data/network.config ] &&
! grep -Fxq up /sys/class/net/eth0/operstate
then
test -f /data/apnameenv && source /data/apnameenv
node /usr/src/app/nodesrc/app.js
else
cp /data/network.config /host/var/lib/connman/network.config 2> /dev/null
fi
if [ ! -f /data/network.config ]
then
test -f /data/apnameenv && source /data/apnameenv
node /usr/src/app/nodesrc/app.js
else
cp /data/network.config /host/var/lib/connman/network.config 2> /dev/null
fi
07.03.17 11:13:14 [+0100] Unhandled rejection TypeError: Cannot read property 'length' of undefined
07.03.17 11:13:14 [+0100] at writeOrBuffer (_stream_writable.js:301:41)
07.03.17 11:13:14 [+0100] at WriteStream.Writable.write (_stream_writable.js:247:11)
07.03.17 11:13:14 [+0100] at /usr/src/app/nodesrc/app.js:121:16
07.03.17 11:13:14 [+0100] at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
07.03.17 11:13:14 [+0100] at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:512:31)
07.03.17 11:13:14 [+0100] at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
07.03.17 11:13:14 [+0100] at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
07.03.17 11:13:14 [+0100] at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:689:18)
07.03.17 11:13:14 [+0100] at Async._drainQueue (/usr/src/app/node_modules/bluebi
# base-image for python on any machine using a template variable,
# see more about dockerfile templates here:http://docs.resin.io/pages/deployment/docker-templates
FROM resin/%%RESIN_MACHINE_NAME%%-python:2.7
# Set our working directory
WORKDIR /usr/src/app
# -- Start of resin-wifi-connect section -- #
# Set the device type environment variable using Dockerfile templates