Odroid: Difference between revisions

From 太極
Jump to navigation Jump to search
Line 109: Line 109:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
sudo dpkg-reconfigure tzdata
sudo dpkg-reconfigure tzdata
</syntaxhighlight>
== Bluetooth keyboard ==
See [[Raspberry#Bluetooth_keyboard|Raspberry bluetooth keyboard]]. The blueman utility does not work for some reason. I have to temporarily plug in a regular/RF wireless keyboard and do some work on the command line.
<syntaxhighlight lang='bash'>
# Press the 'connect' button on the bluetooth keyboard first!
$ bluetoothctl # no sudo is needed
[bluetooth] default-agent
[bluetooth] scan on
[bluetooth] pair 90:7F:61:8F:D0:38        # it will ask to enter a pin code
          # type the pin number shown on pop-up windows in the top-right corner
[bluetooth] connect 90:7F:61:8F:D0:38
[bluetooth] quit
</syntaxhighlight>
</syntaxhighlight>



Revision as of 08:47, 31 January 2016

XU4

My first impression

  • I am using Ubuntu mate 15.10 image on my 32G microSD
  • Need to switch the boot lever (next to the HDMI port) from eMMC to microSD
  • The graphical desktop is VERY sharp on my 1920x1080 Samsung lcd. But for some reason, my 9" lcd screen (1024x600) shows a black screen. Its gpu is Mali-T628 6 cores.
  • The cpu fan gets a little annoying (see the cpu fan control below)
  • youtube.com doesn't work:(
  • the processor (Samsung Exynos5422 Cortex™-A15 2Ghz and Cortex™-A7 Octa core CPUs) has 4 1.4GHz cores and 4 2.0GHz cores.
  • Configure my bluetooth keyboard is easy. I am using a wired mouse.
  • no need to run resize (the microSD) as it was automatically done

Download links

  • Ubuntu. Be sure to read the Release Note too. It teaches how to get gpu acceleration on the chromium browser.

Black screen, blue light is off

In my case, I need to unplug the HDMI cable and power first. Then apply the power (so the fan will spin and blue light will flash) and then connect the HDMI cable.

Forum

The forum is very active!!

Chromium and youtube

The artifacts problem in the Chromium + youtube of Ubuntu 15.10 can be fixed by following the release note.

Edit /etc/chromium-browser/default

CHROMIUM_FLAGS=" --use-gl=egl --ignore-gpu-blacklist --disable-accelerated-2d-canvas --num-raster-threads=2"

We can open the web page chrome://gpu to check hardware acceleration status.

Mali gpu

$ sudo apt-cache showpkg mali-x11

cpu fan control

cd
git clone https://github.com/mad-ady/odroid-cpu-control.git
sudo ~/odroid-cpu-control/odroid-cpu-control -s -g "powersave" -m 600M  # fixed freq at 600MHz
# or
sudo ~/odroid-cpu-control/odroid-cpu-control -s -g "conservative" -M 1.2G # conservative governor
~/odroid-cpu-control/odroid-cpu-control -l    # current cpu freq setting
~/odroid-cpu-control/odroid-cpu-control -l -t # temperature

Note that

$ # Original freq came with Ubuntu OS
$ sudo ./odroid-cpu-control -l
CPU0: governor performance	current 1.40GHz	min 200.00MHz [200.00MHz]	max 1.40GHz [1.40GHz] 	
CPU1: governor performance	current 1.40GHz	min 200.00MHz [200.00MHz]	max 1.40GHz [1.40GHz] 	
CPU2: governor performance	current 1.40GHz	min 200.00MHz [200.00MHz]	max 1.40GHz [1.40GHz] 	
CPU3: governor performance	current 1.40GHz	min 200.00MHz [200.00MHz]	max 1.40GHz [1.40GHz] 	
CPU4: governor performance	current 2.00GHz	min 200.00MHz [200.00MHz]	max 2.00GHz [2.00GHz] 	
CPU5: governor performance	current 2.00GHz	min 200.00MHz [200.00MHz]	max 2.00GHz [2.00GHz] 	
CPU6: governor performance	current 2.00GHz	min 200.00MHz [200.00MHz]	max 2.00GHz [2.00GHz] 	
CPU7: governor performance	current 2.00GHz	min 200.00MHz [200.00MHz]	max 2.00GHz [2.00GHz] 
$ # Use 'Conservative' governor as above
$ cpufreq-info | grep -i current | grep CPU
  current CPU frequency is 200 MHz.
  current CPU frequency is 200 MHz.
  current CPU frequency is 200 MHz.
  current CPU frequency is 200 MHz.
  current CPU frequency is 300 MHz.
  current CPU frequency is 300 MHz.
  current CPU frequency is 300 MHz.
  current CPU frequency is 300 MHz.
$ ~/odroid-cpu-control/odroid-cpu-control -l # not exactly the same as above
CPU0: governor conservative	current 300.00MHz	min 200.00MHz [200.00MHz]	max 1.20GHz [1.40GHz] 
CPU1: governor conservative	current 300.00MHz	min 200.00MHz [200.00MHz]	max 1.20GHz [1.40GHz] 
CPU2: governor conservative	current 300.00MHz	min 200.00MHz [200.00MHz]	max 1.20GHz [1.40GHz] 
CPU3: governor conservative	current 300.00MHz	min 200.00MHz [200.00MHz]	max 1.20GHz [1.40GHz] 
CPU4: governor conservative	current 600.00MHz	min 200.00MHz [200.00MHz]	max 1.20GHz [2.00GHz] 
CPU5: governor conservative	current 600.00MHz	min 200.00MHz [200.00MHz]	max 1.20GHz [2.00GHz] 
CPU6: governor conservative	current 600.00MHz	min 200.00MHz [200.00MHz]	max 1.20GHz [2.00GHz] 
CPU7: governor conservative	current 600.00MHz	min 200.00MHz [200.00MHz]	max 1.20GHz [2.00GHz] 
odroid@odroid:~$
watch grep \"cpu MHz\" /proc/cpuinfo
  • Google: odroid cpu governor

cpu temperature

~/odroid-cpu-control/odroid-cpu-control -l -t
# or to watch in real time (ctrl C to stop)
watch ~/odroid-cpu-control/odroid-cpu-control -l -t

RRDTool

fix date/zone

sudo dpkg-reconfigure tzdata

Bluetooth keyboard

See Raspberry bluetooth keyboard. The blueman utility does not work for some reason. I have to temporarily plug in a regular/RF wireless keyboard and do some work on the command line.

# Press the 'connect' button on the bluetooth keyboard first!
$ bluetoothctl # no sudo is needed
[bluetooth] default-agent
[bluetooth] scan on
[bluetooth] pair 90:7F:61:8F:D0:38        # it will ask to enter a pin code
           # type the pin number shown on pop-up windows in the top-right corner
[bluetooth] connect 90:7F:61:8F:D0:38
[bluetooth] quit

I2C write error on boot

See XU4 tip. It is because XU4 and XU3-Lite have no energy sensor on board.

Boot Linux over NFS

http://odroid.com/dokuwiki/doku.php?id=en:nfsboot

/etc/apt/sources.list

$ cat /etc/apt/sources.list
deb http://ports.ubuntu.com wily restricted universe multiverse main
deb-src http://ports.ubuntu.com wily restricted universe multiverse main

deb http://ports.ubuntu.com wily-backports restricted universe multiverse main
deb-src http://ports.ubuntu.com wily-backports restricted universe multiverse main

deb http://ports.ubuntu.com wily-proposed restricted universe multiverse main
deb-src http://ports.ubuntu.com wily-proposed restricted universe multiverse main

deb http://ports.ubuntu.com wily-security restricted universe multiverse main
deb-src http://ports.ubuntu.com wily-security restricted universe multiverse main

deb http://ports.ubuntu.com wily-updates restricted universe multiverse main
deb-src http://ports.ubuntu.com wily-updates restricted universe multiverse main

And the /etc/apt/ directory

odroid@odroid:~/preprocessgui$ ls /etc/apt/
apt.conf.d     sources.list   sources.list.d  trusted.gpg~
preferences.d  sources.list~  trusted.gpg     trusted.gpg.d
odroid@odroid:~/preprocessgui$ cat /etc/apt/sources.list.d/odroid.list
deb http://deb.odroid.in/5422/ wily main
odroid@odroid:~/preprocessgui$ ls /etc/apt/sources.list.d/
odroid.list

Kodi

Ubuntu 15.10 image preloads Kodi. One cool thing is the 'Display Mode' option in the System > Settings > System > Video Output is available. So Kodi can coexist with my Ubuntu. So next time when I exit Kodi, I won't need to click Ctrl-Alt-F7 to get back to Ubuntu OS.

Testing gigabit ethernet

Use iperf -The network bandwidth measurement tool.

See

OTG gadget

http://forum.odroid.com/viewtopic.php?f=112&t=9111

Odroid Magazine

Running Linux programs under Android

A guide to Linux chroot. Jan 2014

IO ports on U3

You can use any generic C/C++ or Python libraries to access the GPIOs in your program. Firma can be used to make an interactive interface between U3 and ATmega328P. Jan 2014.

Playing youtube on Linux

Jan 2014

Use as a Wifi router

by using hostapd. Feb 2014.

IO/O Shield access & Arduino

Feb 2014

Game emulator

Feb 2014

From least powerful to most powerful: GB < GBC < NES < SMS < GAMEGEAR < GENESIS < SNES < GBA < PSI < PSP

Communicate Odroid with PC via USB

The following 3 functions may be used simulaneously

  • Emulate a mass storage device
  • Emulate a serial link
  • Emulate a ethernet link - the speed can be faster than 100Mbps

Feb 2014

Sensors and Odroid xu

Mar 2014

Portable Linux tablet

Apr 2014

Build Android from source

Apr 2014

Build Ubuntu from scratch

Cross compile. Apr 2014

Install oracle JDK version 8

Apr 2014

Monitor your Linux with NMON

sudo apt-get install nmon
nmon -f -s 30 -c 120  # ~/<hostname>_date_time.nmon will be created

May 2014

Introduction to Odroid-show

Using bash scripts to show texts or images. May 2014

Sort by file size

find . -type f -exec ls -s {} \; | sort -n -r | head -5

Find fils that are larger than 100MB

find - -size +100M

Dual boot Android and Ubuntu

  1. Modify the Android source code for the MTP.
  2. Copy the Xubuntu root file system
    1. Modify the odroid-config script
    2. Check the u-boot version
  3. Generate a new partition table
  4. Format the partitions
  5. Install the Ubuntu rootfs
    1. Replace UUID in boot.scr
  6. Install the Android system files
  7. Using the prebuilt image
  8. Switching between Android and Ubuntu

May 2014

Pipe viewer and dd

See the progress of your operation.

sudo apt-get install pv
dd if=/dev/sdX bs=4M | pv | dd of=/dev/sdY

May 2014

Android boot process

May 2014.

Openbox

Openbox can be run by itself or within another desktop environment. The main focus of Openbox is speed. It comes with only a terminal and web browser, and is perfect for embedded systems. Jun 2014.

Lego case for Odroid U3

Jun 2014

Step motor and Odroid U3

using a bash script. Jun 2014

Resize Android partitions

with gparted. Jun 2014.

Explore Android img files

Jun 2014

If X11 stops working

Ctrl + Alt + F1[1-6] to switch to a resident framebuffer terminal console.

To switch back to X11, click Ctrl + Alt + F7.

Create deb files - checkinstall

Jun 2014

Using wiimote

Jun 2014

High performance computing at home

Jan 2014, Feb 2014, Mar 2014, Apr 2014, Jul 2014.

LDAP, NFS/AutoFS. With LDAP (Lightweight Active Directory Protocol) configured, we will be able to have users log into any node of the cluster with the same credentials and permissions whcih, when combined with NFS/AutoFS, will permit us to configure network mounted home directories and shares, creating a uniform user experience when connecting to any node in our cluster.

Using Xbox 360 controllers with Android

Jul 2014.

Control your bandwidth

Jul 2014.

sudo apt-get install nload

Deny some users to access your machine via SSH

Jul 2014.

OS: GameStation Turbo

which is a Linux frontend for both games and media playback.

Jul 2014.

Portable solar computing

Jul 2014

Odroid weather board + Qt application

Odroid-show + PC/Odroid host. Jul 2014

Building native Android applications with RED

Jul 2014

Remote Desktop Connection

using x11vnc server. If we also want to use Microsoft RDP to access, you will need to also install the xrd service.

Jul 2014.

Robotic Operating System

Jul 2014.

Mupen64 and Retroarch

Pocket rocket and couch potato. Aug 2014

ODROID-VU 9 inch 1280x800 touchscreen lcd

for android, linux and windows. Aug 2014

Home web server

using lighttpd & nginx. Aug 2014

Youtube player alternative

Tampermonkey. Aug 2014

Linux kernel compilation

The article provides details on starting with natively building a kernel using only the odroid itself. It does not addres cross-compiling.

Aug 2014

All about emmc modules

Aug 2014

Fix android overscan

Aug 2014.

ODROID-W

a miniature raspberry pi compatible wearable computer. A diy smartwatch was used as an example. It can run a full raspbian desktop environment on its own. Qt 4 and applications were used to display he clock and sms/mail/call notification.

Aug 2014

Mouting sd card as extra storage when booting from emmc

instead of a USB drive.

Aug 2014

Android development using the linux kernel

Aug 2014

Pepperflash chrome plugin

Aug 2014

Robot

Sep 2014

Wicd - network manager

Sep 2014

Freedomotic - home automation

Sep 2014

Bash script

  • do something every time the os boots
  • do math and concatenate strings
  • accept arguments
  • run a loop
  • launch a bunch of child processes with different arguments

Sep 2014.

Linux Gaming

Sep 2014

Conky

Oct 2014

I2C connection between U3 and Arduino module

Oct 2014.

KVM

Really, with 1GB memory! Nov 2014.

Node.js

Nov 2014.

Odroid C1 vs Raspberry Pi B+

Including an introduction to C1. Dec 2014.

Manage your software packages with automatic updates using apt-get

Kernel updates using apt-get.

Jan 2015.

ownCloud

Jan 2015.

Remote Desktop

Using Guacamole. All you need is a web browser with HTML5 support since no plugin or client-side software is required. Guacamole supports VNC, SSH and RDP.

Feb 2015.

Docker on ARMv7

Jan, Feb and March 2015.

Android Kitkat and Odroid C1

March 2015.

Android Development

Dissecting and modifying the APK file

Sep 2014, March 2015.

Installing Linux on an external USB drive

Mar 2014 & April 2015 issue. The boot partition is required to reside on a microSD card or emmc module. However, the root partition can be moved to a USB drive.

GPIO shutdown

April 2015 issue.

Triple boot Odroid C1

Pack Ubuntu, Android and Openelec.

April 2015 issue.

Dashing

May 2015 issue.

USB GPS and OBDII to track vehicles

June 2015.

Nintendo 64 emulation

Jun 2015.

3.2" touchscreen driver installation

Jun 2015.

Karaoke

Jun 2015

Popcorn time

Popcorn Time uses sequential downloading to play copies of films listed by the website yts.to (YIFY). Jul 2015.

PS3 controller

Aug 2015

Building Android Kitkat on Odroid C1

Aug 2015

Stepmania

Dancing entertainment. Aug 2015

Netflix under Linux + Odroid C1

Chromium is used. Sep 2015

Android Debian

Sep 2015

Qt5

Sep 2015

ownCloud

Oct 2015.

apt-get

  • Kernel update
  • Package list

Oct 2015

Zygote and Android development

Oct 2015

Seafile

A cloud service that allows you to create and share a private cloud library of files with friends or colleagues. Files get synced for all users. Oct 2015.

Docker

Oct 2015

Get more out of U-boot

It include boot rootfs from different partition or USB drive. Nov 2015

Logical volume management

Sep 2015, Nov 2015

Linux Gaming using GLshim

ODroid devices do not support OpenGL but only OpenGL ES, which is an optimized subset of OpenGL designed for embedded systems.

GLshim is a OpenGL to OpenGL ES wrapper, which means it's possible to translate certain OpenGL functions into OpenGL ES functions. Nov 2015

LFTP and CRON

LFTP allows segmented & parallel downloads. Nov 2015

Cloudshell home server

Oct 2015, Nov 2015

RuneAudio music player

  • LXDE auto-login
  • Setup kiosk
  • Auto-start Chromium
  • Remote control is used.

Nov 2015

ODroid-VU7 800x480 multi-touch screen for C1+

boot.ini file needs to be configured to support 800x480 resolution and DVI output mode. Nov 2015