Debian Jessie Particle with Nginx for ODROID-XU (20131112)

Post Reply
User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Debian Jessie Particle with Nginx for ODROID-XU (20131112)

Unread post by robroy » Tue Nov 05, 2013 9:07 am

I created a minimal headless Debian Jessie image, forked from the official Hard Kernel release, intended as a high-performance platform for embedded resource-intensive applications. Nginx is pre-installed as an example of Particle being used as an instant-on web server.

Download the image here:
Kernel 3.4.67 (Stable): http://oph.mdrjr.net/robroyhall/images/ ... 111.img.xz
Kernel 3.11-rc7 (Beta): http://oph.mdrjr.net/robroyhall/images/ ... 112.img.xz

European mirror by @traxo:
http://odroid.txmonitor.de/

Want to upgrade your existing Particle image?
Kernel 3.4 updates: http://builder.mdrjr.net/tools/kernel-update.sh
Kernel 3.11 updates: https://github.com/hardkernel/linux/tre ... d-3.11-rc7

Username: root
Password: odroid

Username: odroid
Password: odroid

Applications: OpenSSH, Libgcc 4.8 and Nginx

If you enjoy my contributions to the Hard Kernel community, please consider donating an amount of your choice via the link in my signature.

Customizations left for you upon burning the image to your card:
  • 1. Resize the "rootfs" partition to fit your SD card. This is best done on another Linux system using the GParted utility.
    2. Change your server time zone from PST using "dpkg-reconfigure tzdata".
    3. Nginx may be removed by typing "sudo apt-get autoremove nginx-light nginx-common".
    4. The kernel build tools and source included with the Beta version may be deleted to free disk space by typing "sudo rm -rf ~/Public/kernel/".
Improvements and upgrades:
  • 1. The kernel has an on-demand maximum clock frequency of 1.8GHz.
    2. All upgrades and updates have been run using aptitude and apt-get.
    3. All X11, orphaned and obsolete packages have been purged, including the original kernel.
    4. TFTP and USB support in U-Boot by @suriyan (more here: http://forum.odroid.com/viewtopic.php?f=63&t=2601)
Features in this release:
  • Official HK Kernel 3.4.67 (commit e43e1c206e09f31715c0bddf621b403f9ff1d777)
    Beta version includes kernel builds scripts for Kernel 3.11.0-rc7 (commit 4521a9df0bb9c10d5fa885e10182ca0f6990c0df)
    Headless image (SSH and USB-UART serial console only)
    Nginx web server (more here: http://wiki.nginx.org/Main)
    Installable on 4GB eMMC
Notes:
  • This image is a light-weight version of Quiet Giant that boots to a web server in 15 seconds, uses 64MB of memory, and requires only 1.5GB of disk space. Benchmarks here: http://openbenchmarking.org/result/1311 ... 310259SO12.

    Use "shutdown -h now" when powering down to avoid single-user maintenance mode, ensuring that the rootfs unmounts cleanly.
Beta version:
  • Kernel 3.11 does not yet support SD card, USB 3.0 or HDMI, but both are available in Kernel 3.4.67, which is included as a fallback. To use Kernel 3.4.67, remove all files in /boot except /backup, then recopy the files from the /boot/backup/3.4.67 folder into /boot and restart.

    Kernel update and build tools are stored in ~/Public/kernel/. To compile the most recent updates to Kernel 3.11, use download.sh to pull the latest source from Github and follow the on-screen instructions to compile and install the kernel. After building, a kernel installation package is available in ~/Public/kernel/odroid-3.11-rc7/release/odroidxu_defconfig/ for posting and sharing.

    Image
Last edited by robroy on Sat Mar 01, 2014 1:04 pm, edited 21 times in total.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

User avatar
odroid
Site Admin
Posts: 29994
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by odroid » Tue Nov 05, 2013 11:44 am

Wow! You made a bootable imange with the Kernel 3.11.
Thank you so much!

SolarNet
Posts: 12
Joined: Tue Nov 05, 2013 9:51 am
languages_spoken: english
ODROIDs: U2, X2, XU
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by SolarNet » Tue Nov 05, 2013 12:24 pm

The benchmarks from this image look really good relative to other releases for the XU. Here are some benchies from a run using the 3.4 kernel... am still having trouble getting nginx running but will try fixing that up in our next battery of tests...

http://openbenchmarking.org/result/1311 ... 309256UT43

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Tue Nov 05, 2013 2:07 pm

SolarNet wrote:am still having trouble getting nginx running but will try fixing that up in our next battery of tests...
Here's a How-To guide if that helps: http://forum.odroid.com/viewtopic.php?f=52&t=167
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by mdrjr » Tue Nov 05, 2013 7:16 pm

SolarNet wrote:The benchmarks from this image look really good relative to other releases for the XU. Here are some benchies from a run using the 3.4 kernel... am still having trouble getting nginx running but will try fixing that up in our next battery of tests...

http://openbenchmarking.org/result/1311 ... 309256UT43
Don't be fooled.. Look at the kernel versions.. read the git commits.. I did tons of optimizations on XU kernel lately.

SolarNet
Posts: 12
Joined: Tue Nov 05, 2013 9:51 am
languages_spoken: english
ODROIDs: U2, X2, XU
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by SolarNet » Tue Nov 05, 2013 8:53 pm

Yeah, we will look a little deeper this week. Clearly some of our config scripts and compiler flags are broken. Not all of the benchmarks are running right. But most are... here are some more... will reorganize these into a better format after we test out the new kernel...
http://openbenchmarking.org/result/1311 ... 310259SO12

User avatar
sert00
Posts: 745
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: ODROID-U2*2__ODROID-U3__ODROID-XU-E__ODROID-XU-Ebeta__ODROID-C1__ODROID-XU4
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by sert00 » Tue Nov 05, 2013 11:23 pm

Rob..only a thing.
you wrote "stable" in the 3.4 version,and "beta" on 3.11 version.
why instead in the filenames where i have to click to start downloading it's reversed?a bit confused,i'd want download only the 3.11..thanks
2x Odroid-U2
2x Odroid-XU-E
Odroid-U3
Odroid-C1+
Odroid-XU4
Lcd touch panel 10.1"
....and many of the goodies available....

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Tue Nov 05, 2013 11:34 pm

sert00 wrote:Rob..only a thing.
you wrote "stable" in the 3.4 version,and "beta" on 3.11 version.
why instead in the filenames where i have to click to start downloading it's reversed?a bit confused,i'd want download only the 3.11..thanks
Yes, I accidentally reversed the names.

EDIT: I updated the original post, thank you for letting me know!
Last edited by robroy on Wed Nov 06, 2013 2:49 am, edited 3 times in total.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Wed Nov 06, 2013 12:52 am

odroid wrote:Wow! You made a bootable imange with the Kernel 3.11.
Thank you so much!
:D :D :D

You helped.. I copied the boot files that you posted for me in another thread, and then fused the new u-boot by @suriyan. So it was a group effort!

The only trick was switching from zImage to uImage in my build scripts, since Kernel 3.11 uses uImage instead. Thanks for that tip from @mdrjr 8-)

With this board hacker's image, some great 3.11 kernel work by the HK dev team that would normally go unnoticed gets to see the light of day, perhaps encouraging more developers to contribute to the HK Github 3.11 branch :geek:
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

Jabberwock
Posts: 33
Joined: Wed Oct 30, 2013 6:25 pm
languages_spoken: english, russian
ODROIDs: ODROID-XU
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by Jabberwock » Wed Nov 06, 2013 6:14 am

Can it run from SD card or from eMMC only? When I tried it kernel reported that dw_mmc module was not found and failed to mount rootfs.

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Wed Nov 06, 2013 6:23 am

Jabberwock wrote:Can it run from SD card or from eMMC only? When I tried it kernel reported that dw_mmc module was not found and failed to mount rootfs.
I may have shorted one of the images. Ill post back after testing the file integrity.

Thank you for letting me know!
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

suriyan
Posts: 473
Joined: Wed Jun 26, 2013 2:41 pm
languages_spoken: english
ODROIDs: odroid-u2/xu-e/u3/x2/xu3/c1
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by suriyan » Wed Nov 06, 2013 7:19 am

@robroyhall:
Also, would it be a good idea to get rid of the BOOT fat partition, and keep it all in one partition in the root fs? Or, is the fat paritition necessary for people on windows to be able to fiddle with it?
- Suriyan

User avatar
memeka
Posts: 4221
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by memeka » Wed Nov 06, 2013 7:23 am

I think it's a good thing to have the FAT partition, I always keep multiple kernels there and when I compile a new one that screws things up, I can just overwrite zImage with a backup, no reflashing....

mdrjr
Site Admin
Posts: 11698
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by mdrjr » Wed Nov 06, 2013 7:32 am

FAT partition will always stay here.. help our customers that uses windows to restore backups and modify the boot.ini

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Wed Nov 06, 2013 1:18 pm

Ill post back after testing the file integrity.
A verified copy of the image is now available on the server.

Enjoy!
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

User avatar
marcwolf
Posts: 16
Joined: Mon Nov 04, 2013 9:06 am
languages_spoken: english
ODROIDs: ODroid-XU, 16gb EMMC, Webcam
Location: Brisbane, Australia
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by marcwolf » Mon Dec 23, 2013 1:37 pm

This sounds great. For testing and set up purposes what would I need to do to load a desktop. I can get rid of it later.
Many thanks
Marc
Walk quietly through this world.
Leave nothing but smiles and pawprints

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Mon Dec 23, 2013 3:24 pm

marcwolf wrote:This sounds great. For testing and set up purposes what would I need to do to load a desktop. I can get rid of it later.
Many thanks
Marc
Use aptitude to install any desktop meta package you want, such as blackbox, xfce4 or razor-qt.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

User avatar
marcwolf
Posts: 16
Joined: Mon Nov 04, 2013 9:06 am
languages_spoken: english
ODROIDs: ODroid-XU, 16gb EMMC, Webcam
Location: Brisbane, Australia
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by marcwolf » Mon Dec 23, 2013 3:48 pm

Great.. Many many thanks. I have used Debian on some of the other boards and installed OpenVC and SimpleCV.. so doing a desktop be just as easy

Marc
Walk quietly through this world.
Leave nothing but smiles and pawprints

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Mon Dec 23, 2013 5:03 pm

marcwolf wrote:Great.. Many many thanks. I have used Debian on some of the other boards and installed OpenVC and SimpleCV.. so doing a desktop be just as easy

Marc
Make sure to use Kernel 3.4 since 3.11 doesnt support HDMI.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

User avatar
marcwolf
Posts: 16
Joined: Mon Nov 04, 2013 9:06 am
languages_spoken: english
ODROIDs: ODroid-XU, 16gb EMMC, Webcam
Location: Brisbane, Australia
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by marcwolf » Tue Dec 24, 2013 8:09 am

As I am a Windows user.. what is the best way to put this img onto a eMMC

Also as I am getting a 16GB eMMC I'll need to expand the filesystem. Does this have a wizard/util to do that easily

Many thanks
Marc

(My unit has been send and will be here just before new year)
Walk quietly through this world.
Leave nothing but smiles and pawprints

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Tue Dec 24, 2013 8:34 am

marcwolf wrote:As I am a Windows user.. what is the best way to put this img onto a eMMC
Please read the How-To Forums' first two posts.
Also as I am getting a 16GB eMMC I'll need to expand the filesystem. Does this have a wizard/util to do that easily
Use Gparted Live to resize since Windows will not be able to recognize or expand ext3/4 file systems.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

coolbho3k
Posts: 7
Joined: Tue Jan 28, 2014 4:12 pm
languages_spoken: english
ODROIDs: -XU+E, -X, -U2, 64GB EMMC 4.5
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by coolbho3k » Tue Jan 28, 2014 4:13 pm

odroid/odroid and root/odroid do not work for SSH :( STABLE variant btw. Will try the 3.11 version. :cry:

Edit: 3.11 version works with the default passwords. I switched to the stable kernel and it's fine.

WannaBe
Posts: 6
Joined: Fri Jan 17, 2014 5:27 am
languages_spoken: italian,english
ODROIDs: U3-CE & XU-L
Location: Verona, ITA
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by WannaBe » Fri Feb 07, 2014 6:04 pm

Hi all,

after fighting with a non working apt-get, I ended up changing the default repository from

Code: Select all

deb http://ftp.debian.org
to

Code: Select all

deb http://ftp.us.debian.org
...or whatever mirror is best for your country

So it works.

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Sat Feb 08, 2014 12:02 am

Great tip, thank you! I will include the repository update in the next release.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

roosemberth
Posts: 176
Joined: Thu Sep 12, 2013 1:09 pm
languages_spoken: English, Spanish, French, and a little German
ODROIDs: O̶D̶R̶O̶I̶D̶-̶X̶U̶, ODROID-XU3, ODROID-XU4
Location: Switzeerland
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by roosemberth » Thu Jun 26, 2014 11:37 am

Hi there!,

Are you still updating the image?
Can you refer me on how to compile the new kernel (unsure if whether 3.11 or 3.12)?

Best Regards!

User avatar
robroy
Posts: 3401
Joined: Mon Feb 25, 2013 2:29 am
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2
Location: San Francisco, California
Contact:

Re: Debian Jessie Particle with Nginx for ODROID-XU (2013111

Unread post by robroy » Thu Jun 26, 2014 3:02 pm

roosemberth wrote:Hi there!,

Are you still updating the image?
Can you refer me on how to compile the new kernel (unsure if whether 3.11 or 3.12)?

Best Regards!
There are build scripts in the top folder of the ~/Public/kernel directory (I think the folder is called "build"). You can switch between 3.4 and 3.11, so you can run 3.4 while you work on and compile 3.11, as mentioned in the original post. There is also a custom download script in the same folder as the build scripts that gets the latest 3.11 source code from GitHub.. It can be easily modified to get the 3.12 source code instead.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest