This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Embedded Handbook/Boards/Intel Edison

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
General topics
Introduction
Creating a cross-compiler
Cross-compiling with Portage
Cross-compiling the kernel
Compiling with qemu user chroot
Frequently asked questions
Emulators
Qemu
SkyEye
Armulator
Softgun
Hercules
Bootloaders
Das U-Boot
NeTTrom
RedBoot
SH-LILO
Boards
Hammer Board and Nail Board
LANTank
NetWinder
NSLU2
QNAP TurboStation 109/209/409
Marvell Sheevaplug
ACME SYSTEMS Netus G20
Genesi Efika MX
Pandaboard
TrimSlice
BeagleBone
BeagleBone Black
Intel Edison
Beyond
Communication
Contributing
Vendors
External resources
Intel-Edison.png

Gentoo for Edison

Intel Edison

is a tiny computer-on-module offered by Intel as a development system for wearable devices and Internet of Things devices.

License

U-boot:
GPL-2+
https://github.com/01org/edison-u-boot

Pre-made Image

Gentoo-edison-170104.tar.gz md5sum: 3f956280ba52de26fe95705e884e83c4

Image password

User: root
password: edison

Features list

  • working wifi
  • Portage
  • squashfs Gentoo repository

specification

Performance

Image Install

Download the Gentoo image on your local pc.

root #tar -xvzf Gentoo-edison-*.tar.gz
root #cd GentootoFlash

connect and flash the Intel edison.
This will delete all your previous data.

root #./flashall.sh
CODE flashall.sh output example
 
Using U-Boot target: edison-blankcdc
Now waiting for dfu device 8087:0a99
Please plug and reboot the board
Flashing IFWI
Download        [=========================] 100%      4194304 bytes
Download        [=========================] 100%      4194304 bytes
Flashing U-Boot
Download        [=========================] 100%       245760 bytes
Flashing U-Boot Environment
Download        [=========================] 100%        65536 bytes
Flashing U-Boot Environment Backup
Download        [=========================] 100%        65536 bytes
Rebooting to apply partition changes
Now waiting for dfu device 8087:0a99
Flashing boot partition (kernel)
Download        [=========================] 100%      5980160 bytes
Flashing rootfs, (it can take up to 10 minutes... Please be patient)
Download        [=========================] 100%   1610612736 bytes
Rebooting
U-boot & Kernel System Flash Success...
Your board needs to reboot to complete the flashing procedure, please do not unplug it for 2 minutes.

Configure Wifi

symlink wlan0

root #cd /etc/init.d/
root #ln -s net.lo net.wlan0
root #rc-config add net.wlan0 default

create /etc/conf.d/net file

FILE /etc/conf.d/net
# Set the dns_domain_lo variable to the selected domain name
dns_domain_lo="homenetwork"
modules_wlan0="wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211"
config_wlan0="dhcp"

Features

Cross compile preparation

Setup:

root #emerge --ask crossdev
root #crossdev i686-pc-linux-gnu

Copy package to Intel Edison:

root #scp -r /usr/i686-pc-linux-gnu/packages root@192.168.0.102:/usr/portage/packages/

Install in Intel Edison:

root #emerge --ask --oneshot --usepkgonly <package atom>

Squashfs Gentoo repository

mount squashfs or use sd-card

root #mount /portage.squash /usr/portage/

Kernel multi-boot

increase the Edison boot partition

root #mount /dev/mmcblk0p7 /mnt/boot/
root #mkdir /tmp/boot
root #mv /mnt/boot/* /tmp/boot
root #umount /mnt/boot
root #mkfs.vfat /dev/mmcblk0p7
root #mount /mnt/boot
root #cp /tmp/boot/* /boot

let's add a new kernel in the /mnt/boot folder for example vmlinuz_01 and vmlinuz_02

multi boot with u-boot for start vmlinuz_01

boot > setenv load_kernel fatload mmc 0:7 ${loadaddr} vmlinuz_01
boot > boot

Performance

Intel Edison Board Software Package v2.2

Gentoo for Edison 170104

Install from source

Repository

Support

For support contact:
Alicef

External resources