I wish there was some place or places where common issues and tips and the like were easy to find. I have used several different forums over the years and there are many different ways that the many different forums have done it. Some of the things I personally would benefit people include:
How to post questions: Questions should include enough details to reproduce the issue. Things like: Which Edison module do you have. What version firmware and IDE are you using? If you are asking about how to hook up to something, try to specify what hardware you are trying to attach, maybe include a link to it... If problem with code, try to include enough code source, such that someone can reproduce it. Also when showing code, try to show in code tags (In advanced editor you can do this by clicking on the >> ) Finally found that a day or two ago...
Reminder for when you are rusty at this: When you are on a Linux machine such as Ubuntu 14.04 and you wish to flash the Edison, remember to use the sudo command! That is if you are using the ./flashall.sh command or make flash remember sudo!
How to do some of the common things many of us do when we setup an Edison. Example flow for me:
1) Update the Edison to latest firmware - Note: the current reboot ota does not clear the contents of the PC Edison drive nor root directory on Edison. If you wish to clear everything use the flashall method
2) run the Configure_edison --setup
Go through the steps and setup name and Wifi.
a) My network is setup with the IP addresses in the range: 192.168.2.xxx which conflicts with some usb something so I then:
and change the two lines 192.168.2.15 to something like: 192.168.99.15
I then typically reboot then and setup my Wifi PuTTY for that machine...
EDIT: With new beta
Edit the file: /etc/systemd/network/usb0.network
to : Address=192.168.99.15/24
3) The boot segment is not setup to use all of the space that was allocated to it, which can cause issues when you try to update to a larger firmware set... Instructions on how to fix this is up at: http://alextgalileo.altervista.org/blog/install-kernel-from-repo-onto-edison-official-image/
Quick script to try here:
cp -rp /boot/* /home/root/boot-backup/
ls -alF /home/root/boot-backup/
mkfs.vfat -v -nboot -F16 /dev/mmcblk0p7
df -h /boot
cp -rp /home/root/boot-backup/* /boot
ls -alF /boot
rm -r /home/root/boot-backup
4) I configure to use get the recent copies of MRAA
echo "src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/mraa-upm.conf
opkg install libmraa0
4a) On Edison to keep the MRAA libraries up to date to use Eclipse
. Right now you can grab the latest tarball from
5) There are lots of other packages now available to download fro AlexT, to configure:
set the contents of: /etc/opkg/base-feeds.conf
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
Then do: opkg update
Edit: To make it easier, script to do it:
echo src/gz all http://repo.opkg.net/edison/repo/all > /etc/opkg/base-feeds.conf
echo src/gz edison http://repo.opkg.net/edison/repo/edison >> /etc/opkg/base-feeds.conf
echo src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32 >> /etc/opkg/base-feeds.conf
And then do opkg install xxx
6) You can upgrade many of the packages by first seeing which ones are upgradeable:
You can then do an upgrade: opkg uprade xxx
Note: if you don't specify a package or packages, it will upgrade all that are upgradeable. However you can run into issues that the root directory gets filled, so see step 6)
7) Some of my stuff uses sound libraries and the like, to compile I need some additional things installed:
opkg install espeak
opkg install --force-depends espeak-dev
opkg install alsa-dev
Also my USB sound card may require additional things defined like:
The file: /etc/asound.conf
echo pcm.!default sysdefault:Device > /etc/asound.conf
Also need to see if still need to install usb sound driver or if it is already part of new kernel...
When I build mraa, I normally use the commands:
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
With Current Beta builds been having issues with SPI not working well, I have built my own images, but see in the Edison page of the MRAA documents:
SPI PM can sometimes do weird things you can disable it with: echo on > /sys/devices/pci0000:00/0000:00:07.1/power/control
Note for using this with the Trossen Robotics HR-OS1 robot, this requires usb FTDI support. So far the current official Edison images do not include this module and simply installing the kernel module from AlexTs repo does not work as the kernel image names are different. Two options here: download the image that Trossen Robotics originally imaged the system with: HR-OS1 Linux Disk Images - Browse /Intel Edison at SourceForge.net or Build the image with the FTDI module installed. To do this, use the build manual, which currently is: http://download.intel.com/support/edison/sb/edisonbsp_ug_331188007.pdf
You will then need follow the procedure to configure the kernel. More stuff up in the posting: adding FTDI_USB to Edison kernel I was successful by following the guide where you needed to copy in the edited .config file into the defconfig as mentioned in the build manual.
Once I followed the above steps, in order to build the HROS1-Framework, I needed to do:
opkg install git opkg install libjpeg-dev
Wish there was some information only like postings. Example Alex_t's repo is great. At times I wish there was a sticky posting that maybe only he and moderators do postings to, which maybe give updated information what is there, any hints/gotchas... And then have another thread where each of us others may make comments, requests...
Again this is not a complete list of all of the great information that is up on the forums and on the Intel sites. I am just suggesting that it would be great if there was an easy way to setup to make some of the more important information easier to find.