Skip to content

Instantly share code, notes, and snippets.

@tatigger
Created December 22, 2016 04:43
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tatigger/5f5281934f18a542d54f3fb5743c60e5 to your computer and use it in GitHub Desktop.
Save tatigger/5f5281934f18a542d54f3fb5743c60e5 to your computer and use it in GitHub Desktop.
Steps I used to Flash Edison from Raspberry Pi, from download of Jubiliux to Pi
In my initial attempt to Flash, I tried to use my Macbook Pro. That left me with the edison booted in Safe Mode, or with a screen, but the cursor did not respond to entering or any other key strokes.
Download Jubilinux and dfu-util to Pi
SSH into RPi
Change Directory to the directory you want Jubilinux to download to.
Type wget http://www.robinkirkman.com/jubilinux/jubilinux.zip
When it is done downloading change to the directory you want the unzipped file
Type unzip jubilinux.zip
Type cd jubilinux
Type sudo apt-get install dfu-util
2. Open another terminal window and SSH into the RPi
3. Plug USB OTG Data cable into Explorer UART and Pi USB
4. Type in terminal ls /dev
5. Plug in 2nd USB OTG Data cable into Explorer OTG and Pi USB
6. Retype ls /dev
7. Compare the output from step 4 and step 6 to see which TTY shows up. Should be /dev/ttyUSB0 or /dev/ttyUSB1
8. Type sudo screen /dev/ttyUSB0 115200 (or ttyUSB1,from step 7) or if neither works, try sudo screen /dev/ttyAMA0 115200
9. If all three do not work, install screen. Type sudo apt-get install screen
10. Repeat step 8
In my setup, I had a screen, but the cursor did not respond to entering or any other key strokes. If it does, go back to the documents and start at the next step.
From the terminal pi side, navigate to the directory containing jubilinux.
Be ready to power the Edison off and on using power button.
Type sudo ./flashall.sh
Power Edison off and then back on when instructed
I got this error:
Did you plug and reboot your board?
If yes, please try a recovery by calling this script with the --recovery option
Then I plugged in my Lipo battery as well, and the system gave message:
Starting Recovery mode
Please plug and reboot the board
Flashing IFWI
!!! You should install xfstk tools, please visit http://xfstk.sourceforge.net/
So next you have to get those tools.
Navigate to the directory that jubilinux is in.
Type wget http://sourceforge.net/projects/xfstk/files/xfstk-dldr-linux-source-1.8.1.tar.gz/download
The wget command created a new directory called “download” which is where the file was sent. We renamed it to by typing cp download xfstk-dldr-linux-source-1.8.1.tar.gz
Unzip the tar file by typing To unzip the tar file, type tar xfvz xfstk-dldr-linux-source-1.8.1.tar.gz
Type gunzip xfstk-dldr-linux-source-1.8.1.tar.gz
Type tar xfv xfstk-dldr-linux-source-1.8.1.tar
Type cd xfstk-build
Type ls
Type cat README.txt
The README takes you through installation of more software. Copy it into a note or word file, or open another terminal window and open it there. You will refer back to it.
Type sudo apt-get update
Type sudo apt-get install g++ qtcreator build-essential devscripts libxml2-dev alien doxygen graphviz libusb-dev libboost-all-dev
cd to main directory (out of xfstk-build)
Type wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz
Type tar xfvz cmake-2.8.12.2.tar.gz
Type cd cmake-2.8.12.2
Type sudo ./bootstrap; make; make install
Check the version of CMAKE cmake —version
Mine is version 2.8.12.2
9. Type cd xfstk-build
10. Type mkdir build
11. Type cd build
12. Type sudo apt-get install qt4-dev-tools
13. Type cmake ../linux-source-package/
14. Type make
15. Type make package
16. Type sudo dpkg -i xfstk-downloader-0.0.0.ubuntu12.04-i386.deb
17. Change directory to jubilinux (in my case cd then cd jubilinux)
18. Be ready to power cycle Edison when directed
19. Type sudo ./flashall.sh —recovery
I had to do step 19 twice, then follow directions on screen and in docs from there.
@JaysonEwer
Copy link

I'll review this more closely later. Looks pretty good though. Thanks for capturing all that we did!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment