Instructions and scripts for the installation of ROS on various platforms, such as Odroid and Intel Edison.
Ubuntu 14.04 LTS (Doesn't work on 16.04 LTS)
It takes about 4-5 hours build time depending on number of CPU cores.
- How to Build Debian Image for Edison
- Building Debian Linux for Intel Edison
- Building a Custom Debian Image for the Intel Edison
cd ~
mkdir -p ~/src/edison
cd ~/src/edison
sudo apt-get -y install build-essential git diffstat gawk chrpath texinfo libtool gcc-multilib debootstrap u-boot-tools debian-archive-keyring python curl
curl -O http://downloadmirror.intel.com/25028/eng/edison-src-ww25.5-15.tgz
tar xfvz edison-src-ww25.5-15.tgz
Create two resource directories so we can rebuild the images without fetching support file twice
mkdir bitbake_download_dir
mkdir bitbake_sstate_dir
To take advantage of parallelization, change parallel_make and bb_number_thread to equal to the number of cores available.
./meta-intel-edison/setup.sh --dl_dir=bitbake_download_dir --sstate_dir=bitbake_sstate_dir --deb_packages --parallel_make=40 --bb_number_thread=40
cd out/linux64
source poky/oe-init-build-env
-
paho-mqtt_3.1.bb
sudo nano ~/src/edison/edison-src/linux64/poky/meta-intel-iot-middleware/recipes-connectivity/paho-mqtt/paho-mqtt_3.1.bb⋅⋅ and change SRC_URI fromgit://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.c.git
togit://github.com/eclipse/paho.mqtt.c.git -
edison-images.bb
sudo nano ~/src/edison/edison-src/meta-intel-edison/meta-intel-edison-distro/recipes-core/images/edison-images.bb
Comment the following lines
IMAGE_INSTALL += "iotkit-comm-js"
IMAGE_INSTALL += "iotkit-comm-c-dev"
Now we are ready to build the image. I will take several hours, around 5 hours. (It takes 20 mins on a 40-core CPU :P)
run bitbake edison-image
cd ~/src/edison-src
sudo nano meta-intel-edison/utils/create-debian-image.sh
-
Change
build_dir=$top_repo_dir/buildtobuild_dir=$top_repo_dir/out/linux64/build -
Change
fsize=$((`stat --printf="%s" toFlash/edison-image-edison.ext4` / 524288))tofsize=$((`stat --printf="%s" toFlash/edison-image-edison.ext4` / 524288 * 2)) -
Change
$CHROOTCMD dpkg -i /tmp/deb/edison/kernel-image-3.10.17-poky-edison+_1.0-r2_i386.deb
$CHROOTCMD dpkg -i /tmp/deb/edison/kernel-3.10.17-poky-edison+_1.0-r2_i386.deb
to$CHROOTCMD dpkg -i /tmp/deb/edison/kernel-image-3.10.98-poky-edison+_1.0-r2_i386.deb$CHROOTCMD dpkg -i /tmp/deb/edison/kernel-3.10.98-poky-edison+_1.0-r2_i386.deb
Finally, we cleared all the mistakes in the scripts.
sudo ./meta-intel-edison/utils/create-debian-image.sh
The flashable image is build in out/linux64/build/toFlash