test if modeswitch works
$ sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -M "55534243123456780000000000000a11062000000000000100000000000000"
if yes than usually you would do this (but for me it did not work)
#edit config file
/etc/usb_modeswitch.conf
| var mqtt = require('mqtt') | |
| // Make sure to change this to the IP address of your MQTT server | |
| , host = '192.168.128.204' // or localhost | |
| client = mqtt.createClient(1883, host, {keepalive: 10000}); | |
| // Subscribe to the temperature topic | |
| client.subscribe('temperature'); | |
| // When a temperature is published, it will show up here | |
| client.on('message', function (topic, message) { |
test if modeswitch works
$ sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -M "55534243123456780000000000000a11062000000000000100000000000000"
if yes than usually you would do this (but for me it did not work)
#edit config file
/etc/usb_modeswitch.conf
| #!/bin/sh | |
| # | |
| # Read-only Root-FS for Raspian | |
| # | |
| # Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
| # overlayfs integrated in Linux Kernel >= 3.18. | |
| # | |
| # Originally written by Axel Heider (Copyright 2012) for Ubuntu 11.10. | |
| # This version can be found here: | |
| # https://help.ubuntu.com/community/aufsRootFileSystemOnUsbFlash#Overlayfs |
| Working Huawei E3372h-153 SETPORT mappings | |
| replacing A1,A2 with FF turns off need for usb_modeswitch | |
| AT^SETPORT="A1,A2;12,1,16,A1,A2" | |
| ^GETPORTMODE: TYPE: WCDMA: huawei,PCUI:0,MDM:1,NDIS:2,CDROM:3,SD:4, | |
| AT^SETPORT="A1,A2;1,12,16,A1,A2" |
Testing qemu 2.1 arm64 support
qemu-system-aarch64 -m 1024 -cpu cortex-a57 -nographic -machine virt -kernel trusty-server-cloudimg-arm64-vmlinuz-generic -append 'root=/dev/vda1 rw rootwait mem=1024M console=ttyAMA0,38400n8 init=/usr/lib/cloud-init/uncloud-init ds=nocloud ubuntu-pass=ubuntu' -drive if=none,id=image,file=trusty-server-cloudimg-arm64-disk1.img -netdev user,id=user0 -device virtio-net-device,netdev=user0 -device virtio-blk-device,drive=image
qemu-system-aarch64 -m 1024 -cpu cortex-a57 -nographic -machine virt -kernel trusty-server-cloudimg-arm64-vmlinuz-generic -append 'root=/dev/vda1 rw rootwait mem=1024M console=ttyAMA0,38400n8 init=/usr/lib/cloud-init/uncloud-init ds=nocloud' -drive if=none,id=image,file=trusty-server-cloudimg-arm64-disk1.img -netdev user,id=user0 -device virtio-net-device,netdev=user0 -device virtio-blk-device,drive=image
[A Quick'n'Dirty Set-up of an Aarch64 Ubuntu 14.04 VM with QEMU]
| USER=ubuntu | |
| GROUP=ubuntu | |
| sudo mkdir -p /opt/{dev,git} || exit 0 | |
| sudo chown -R $USER:$GROUP /opt/{dev,git} | |
| git clone git://github.com/json-c/json-c.git /opt/git/json-c | |
| cd /opt/git/json-c/ | |
| autoreconf -i |
| #feeds | |
| cp feeds.conf.default feeds.conf | |
| echo "src-git openwisp https://github.com/openwisp/openwrt-feed.git" >> feeds.conf | |
| ./scripts/feeds update | |
| ./scripts/feeds install -d y openwisp-fw | |
| #config target | |
| echo "CONFIG_TARGET_ar71xx=y" > .config | |
| make defconfig | |
| make -j 4 |
| # Basic Strongswan ikev2 server setup | |
| * paltform: atlantic.net ubuntu 14.04 x64 | |
| * the commands below are run with root account | |
| ## Strongswan | |
| ``` | |
| apt-get install strongswan | |
| apt-get install iptables iptables-persistent | |
| ``` |
This is mainly a notes dump and should be used for reference. This guide assumes:
Limitations of the qemu-system-aarch64 emulator on x86 include only being able to emulate one CPU and no KVM support.