- Plug both micro USB cables from Edison Dev board into linux pc, no power wall wart needed
- open a terminal and type sudo screen /dev/ttyUSB0 115200
- reset edison using reset button
- keep hitting a key until stop boot at a boot prompt
- type run do_flash
- now start flashing in a second terminal
- go to directory with the latest edison image
- make sure flashall.sh is execuatable (sudo chmod 777 flashall.sh)
- type sudo ./flashall.sh
- you will be prompted to reset the device - so press reset button
- you will see the flash start in terminal 1
all should be flashed!
Start with a newly flashed edison
- Stop the bluetoothd daemon: systemctl stop bluetooth
- Change the Bluetooth* system service file (/etc/systemd/system/bluetooth.target.wants/bluetooth.service) Add the –d option: ExecStart=/usr/lib/bluez5/bluetooth/bluetoothd –d
- Restart the Bluetooth* service: systemctl start bluetooth
echo "src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/mraa-upm.conf
opkg update
opkg install libmraa0
opkg update
opkg install bluez5-dev
npm install -g async
npm install noble
npm install bleno
npm install sensortag cylon cylon-intel-iot cylon-gpio cylon-i2c cylon-ble node-uuid uri-beacon
#!/bin/sh
rfkill unblock bluetooth
hciconfig hci0 up
chmod +x /home/root/btup.sh
[Unit]
Description=BTUP
After=bluetooth.target
Before=systemd-user-sessions.service
[Service]
Type=simple
RemainAfterExit=true
ExecStart=/home/root/btup.sh
Environment="HOME=/home/root"
WorkingDirectory=/home/root/
[Install]
WantedBy=multi-user.target
systemctl enable /lib/systemd/system/btup.service
###Create codebox startup script
rfkill unblock bluetooth
hciconfig hci0 up
sleep 2
nohup node /home/root/codebox/bin/codebox.js -p 8088 -u root:test1234 run /node_app_slot > codebox.log &
chmod +x /home/root/btup.sh
[Unit]
Description=BTUP
[Service]
Type=idle
RemainAfterExit=true
ExecStart=/home/root/codeboxup.sh
Environment="HOME=/home/root"
WorkingDirectory=/home/root/
[Install]
WantedBy=multi-user.target
systemctl enable /lib/systemd/system/codeboxup.service
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar -jxf vim-7.4.tar.bz2
cd vim74
make
make install
src all http://iotdk.intel.com/repos/1.1/iotdk/all
src x86 http://iotdk.intel.com/repos/1.1/iotdk/x86
src i586 http://iotdk.intel.com/repos/1.1/iotdk/i586
opkg update
opkg install git
Change last line createServer to use port 8080
git clone https://github.com/CodeboxIDE/codebox.git
cd codebox
npm install
npm install gulp -g
gulp build
mkdir -p /home/root/.codebox/packages
node ./bin/codebox.js -p PORT -u USERNAME:PASSWORD run WORKINGDIR
ssh-keygen -t rsa -b 4096 -C "[email protected]"
With"add deploy key" add a key. Your public key should be found in /home/root/.ssh/id_rsa.pub on he edison from creatin in earlier step.
Clone your nodejs project repo into the edison /node_app_slot directory so it will automatically start on reboot.
cd /
git clone {repolink.git} node_app_slot
cd /node_app_slot
git pull origin master