Commit d2fc2c82 authored by Sami Nurmenniemi's avatar Sami Nurmenniemi

Added device setup instructions

parent a655102f
Docker builder for Qt on Artik 530
Compiling Qt libraries
======================
1. Set up your development PC
sudo apt install git curl qemu-user-static binfmt-support
2. Clone the Artik Qt5 builder
......@@ -23,23 +25,51 @@ Docker builder for Qt on Artik 530
scripts/create_docker.sh
scripts/do_initial_build.sh
You can rebuild with scripts/docker_exec.sh build
7. Now you should have in the qt5 available in build/qt5_install
8. Boot your device and check it's IP address
Now you should have in the qt5 available in build/qt5_install
Deploying Qt libraries
======================
1. Boot your device and check it's IP address (see device preparation instructions in the bottom)
ifconfig
9. Set up automatic SSH access to the device (unless you want to give password several times)
2. Set up automatic SSH access to the device (unless you want to give password several times)
ssh root@IP_ADDR "mkdir .ssh; chmod 700 .ssh"
ssh-keygen
scp ~/.ssh/id_rsa.pub root@IP_ADDR:.ssh/authorized_keys
ssh root@IP_ADDR "chmod 600 .ssh/authorized_keys"
10. Download qt-ubuntu-32bit.zip from https://developer.artik.io/downloads/qt-ubuntu-32bit/download and put it to the artik_qt5_builder directory
11. Run setup & deploy scripts
3. Download qt-ubuntu-32bit.zip from https://developer.artik.io/downloads/qt-ubuntu-32bit/download and put it to the artik_qt5_builder directory
4. Run setup & deploy scripts
scripts/setup_device.sh IP_ADDR
Please note the Qt environmental variables that are appended to /etc/profile
scripts/deploy_to_device.sh IP_ADDR
12. Compiling your Qt application
Copy the source to the build directory
./docker_exec.sh debug
Compiling Qt application
========================
1. Copy the source to the artik_qt5_builder/build directory
2. Start docker container
scripts/docker_exec.sh debug
3. Build inside the container
~/build/qt5_install/bin/qmake
make
exit
scp ../build/appdir/appbinary root@IP_ADDR:/path/in/device
4. Deploy to the device
scp build/appdir/appbinary root@IP_ADDR:/path/in/device
Preparing Artik 530 (S) device
==============================
1. Download Ubuntu image from https://developer.artik.io/documentation/downloads.html#firmware
ARTIK 530s 1G Secure Module Firmware (Ubuntu)
ARTIK 530s Secure Module Firmware (Ubuntu)
ARTIK 530 Module Firmware (Ubuntu)
2. Flash the image (artik533s.. is for 530s 1G)
sudo dd if=artik533s_sdfuse-0533GS0F-44U-DD60-20180406.010001.img of=/dev/mmcblk0 bs=32M
3. Set DIP4 from SW402 to "ON"
4. Plug in SD-card and power up the device
5. After device firmware has been updated, turn DIP4 back to "OFF" and reset the device
6. If you can't see output on HDMI, do this
https://developer.artik.io/documentation/developer-guide/multimedia/display.html#hdmi-edid-workaround
Stop booting to the bootloader by pressing any key
setenv opts loglevel=4 drm_kms_helper.edid_firmware=HDMI-A-1:edid/1920x1080.bin
saveenv
reset
7. Username/password is "root"/"root"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment