forked from walthowd/husbzb-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (25 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:18.04
COPY qemu-arm-static /usr/bin
MAINTAINER Walt Howd <[email protected]>
WORKDIR /tmp/silabs
RUN apt-get update \
&& apt-get install -y git wget python-pip python3-pip unzip jq
RUN pip install xmodem pyserial
RUN pip3 install --upgrade git+git://github.com/zigpy/bellows.git
RUN mkdir -p /tmp/silabs
# Get firmware
#RUN wget http://developer.silabs.com/studio/v4/control/stacks/PrivateGA/updates/binary/com.silabs.stack.znet.v6.4.feature_root_6.4.1.0
#RUN unzip -p com.silabs.stack.znet.v6.4.feature_root_6.4.1.0 developer/sdks/gecko_sdk_suite/v2.4/protocol/zigbee/ncp-images/em3581/ncp-uart-xon-xoff-use-with-serial-uart-btl-6.4.1.ebl > ncp-uart-xon-xoff-use-with-serial-uart-btl-6.4.1.ebl
#RUN rm -f /tmp/silabs/com.silabs.stack.znet.v6.4.feature_root_6.4.1.0
# Get ncp.py
#RUN wget http://devtools.silabs.com/solutions/apt/pool/main/s/silabs-zigbee-gateway/silabs-zigbee-gateway_2.5.0-3_armhf.deb
#RUN ar x /tmp/silabs/silabs-zigbee-gateway_2.5.0-3_armhf.deb
#RUN tar -xvf data.tar.gz ./opt/siliconlabs/zigbeegateway/tools/ncp-updater/ncp.py --strip-components 6 -C /tmp/silabs/
#RUN sed -i "s/CEL_PID.=.*/CEL_PID = '8A2A'/" ncp.py
#RUN rm -f silabs-zigbee-gateway_2.5.0-3_armhf.deb
#RUN rm -f *.gz
#RUN rm -f /tmp/silabs/debian-binary
ADD update-firmware.sh /tmp/silabs
ADD ncp.py /tmp/silabs
ADD *.ebl /tmp/silabs/
CMD /tmp/silabs/update-firmware.sh