Video
Goals
To modify your Arduino Yun to run LininoOS and run with AlljoynJS
- Tools
- Setup
Tools
- Hardware
- Arduino Yun
- Micro USB Cable
- Lan Cable
- Network switch/router
- MicroSD card(Not required, but makes things easier if you have to reset the Yun)
- Software
- Windows PC
- OpenTFTP
- Putty
- Arduino Software IDE
Setup
- Configure Development Environment (Windows PC)
- Download files (All links will be included in comments)
- Install OpenTFTP
- Install Putty
- Install the Arduino Software IDE
- Configure Yun
- Download file on windows PC http://download.linino.org/linino_distro/master/latest/openwrt-ar71xx-generic-linino-u-boot.bin
- Configure OpenTFTP
- Configure the .ini
- Target the folder that contains the “openwrt-ar71xx-generic-linino-u-boot.bin” file
- Upgrade the Yun’s Linux distro to Linino
- Connect Yun with Lan Cable
- Open Arduino IDE to obtain IP of Yun
- SSH into Yun using Putty on the IP
- Change to the /mnt/sda1 folder
- Create a download folder
- Download files with wget
- Run sysupgrade -v openwrt-ar71xx-generic-linino-yun-16M-250k-squashfs-sysupgrade.bin
- Determine which USB COM port the Yun is registered on
- Connect to the Yun using Putty on the COM
- Reset and prevent autoboot
- Set ips
- setenv serverip <tftp-server-ip>;
- setenv ipaddr <linino-board-ip>;
- Ping windows machine to confirm
- Run the following commands
- tftp 0x80060000 openwrt-ar71xx-generic-linino-u-boot.bin
- erase 0x9f000000 +0x40000;
- cp.b $fileaddr 0x9f000000 $filesize;
- Reset only if commands were successful, otherwise panic!
- Run more commands
- setenv bootargs ‘console=spicons board=linino-yun mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) mem=64M rootfstype=squashfs,jffs2 noinitrd’
- setenv baudrate250000
- If you see gibberish press “~2”
- saveenv;
- Reset again
- Reconnect to IP
- Change to the /mnt/sda1 folder
- Run the following command “sysupgrade -n -v lininoIO-generic-linino-yun-squashfs-sysupgrade.bin”
- Run “/usr/bin/lininoio start” (Sketch upload, use this again)
- Reboot
- Install AllJoynJS on the Yun
- Opkg update
- Opkg install ajtcl-alljoynjs
Leave a Reply
You must be logged in to post a comment.