2016년 3월 28일 월요일

How to expand userdata partition on ODROID-XU3/4 by Gparted.

I want to expand userdata partition to install app more.

Check current partition information.

system partition   | /dev/sdx2 | 1GByte
userdata partition | /dev/sdx3 | 2GByte
cache partition     | /dev/sdx4 | 256Byte
fat partition          | /dev/sdx1 | All the rest


Remove cache and fat32 partition. If you modified boot.ini backup first.

Select userdata partition and resize. I will resize twice.


userdata parition : 4GByte.


Create new partition for fat like picture.
assign 256 for cache on 'Free space preceding (MiB):'




Create new partition for cache like picture.

Complete.


This also applies to ODROID-C1.



2016년 3월 18일 금요일

How to update ODROID-C2 Android in slow internet.

If you select 'Check online update', You must stay this activity until to finish download.


If you close ODROID Utility, You will fail to update.

Open browser and download updatepackage-odroidc2-eng-s905_5.1.1_master-xxx.zip



Run ODROID Utility and select menu 'Package install from storage.'


 Select 'File Manager'


Select 'Download/updatepackage-odroidc2-eng-s905_5.1.1_master-xxx.zip'


Wait a second and click 'Proceed'


2016년 3월 3일 목요일

dual booting android and Ubuntu on ODROID-C2



I made dual booting image for ODROID-U3.
http://codewalkerster.blogspot.kr/2014/03/dual-booting-android-and-ubuntu-on.html?m=1

We will make dual booting image for ODROID-C2.

Make bootable android media(eMMC or SD).

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

Download ODROID-C2 Ubuntu Image.

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



Copy rootfs and boot partition of ODROID-C2 Ubuntu to your desktop Ubuntu.

- mount disk wrote ODROID-C2 ubuntu image on your desktop PC.

c2/ubuntu/ubuntu64-16.04lts-mate-od* on /media/codewalker/boot type vfat (ro,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
c2/ubuntu/ubuntu64-16.04lts-mate-od* on /media/codewalker/rootfs type ext4 (ro,nosuid,nodev,uhelper=udisks2)


$ mkdir odroid-c2_ubuntu
$ cd odroid-c2_ubuntu
$ mkdir boot
$ sudo cp -a /media/username/boot/* boot/
$ mkdir rootfs
$ sudo cp -a /media/username/rootfs/* rootfs/

- unmount ubuntu disk.


Delete rootfs/aafirstboot

$ rm -rf rootfs/aafirstboot

Edit rootfs/etc/fstab

$ sudo vi rootfs/etc/fstab
LABEL=VFAT /media/boot vfat defaults,rw,owner,flush,umask=000 0 0

Chagne userdata partition UUID.

- Insert disk wrote android image on your desktop PC and unmount /dev/sdX4.
$ sudo umount /dev/sdX4
$ cat rootfs/etc/fstab 
LABEL=VFAT /media/boot vfat defaults,rw,owner,flush,umask=000 0 0

UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro,noatime 0 1

$ sudo tune2fs /dev/sdX4 -U e139ce78-9841-40fe-8823-96a304a09859

Copy ODROID-C2 Ubuntu files to android disk.

$ mv /media/username/VFAT/boot. ini  /media/username/VFAT/boot. ini.android
$ cp boot/* /media/username/VFAT/
$ sudo cp rootfs/* /media/username/e139ce78-9841-40fe-8823-96a304a09859/ -a
$ sync

Make script to change OS.

in Ubuntu
$ vi boot_android.sh
------------------------------------------------------------------------
#!/bin/bash
sudo mv /media/boot/boot.ini /media/boot/boot.ini.ubuntu
sudo mv /media/boot/boot.ini.android /media/boot/boot.ini
sudo reboot
------------------------------------------------------------------------
#chmod +x boot_android.sh


in Adnroid
$ su
# mount -o rw,remount /
# vi /system/bin/boot_ubuntu.sh
------------------------------------------------------------------------
#!/bin/sh
mv /storage/internal/boot.ini /storage/internal/boot.ini.android
mv /storage/internal/boot.ini.ubuntu /storage/internal/boot.ini
reboot
------------------------------------------------------------------------
# chmod 777 /system/bin/boot_ubuntu.sh

2016년 2월 26일 금요일

How to install kodi v17.0(Krypton) for 4K on ODROID-C2

The kodi v16 Jarvis app has 4K video bugs.

Visit kodi site and download kodi v17.

Open CM FileManager and select Download folder.

Select and Install.

Enjoy 4K video without resolution resizing bug.

2016년 2월 25일 목요일

Google Play Store on ODROID-C2.






Visit http://dn.odroid.com/GAPPS and download GAppsInstaller_lollipop.apk

Install




Rebooted and log in google.

 Check Play store version.

If you Installed youtube app, You must update Google Play services too.


If you update Google Play service, You will go though this situation.
I do not have solution for that. You must reinstall android image.

Check Play store version like this. Play store will update automatically.


Fist Update Google Store and must update Google Play Services later.

2016년 2월 23일 화요일

Ctrl + Alt + Del doesn't reboot Android


















echo 0 > /proc/sys/kernel/ctrl-alt-del

Or edit init.xxx.rc

 write /proc/sys/kernel/ctrl-alt-del 0

2015년 12월 28일 월요일

overscan for ODROID-C1 Ubuntu


1. search overscan values.

Read default values
root@odroid:~# cat /sys/class/graphics/fb0/window_axis
window axis is [100 100 1919 1079]
root@odroid:~#

Try to set overscan values
root@odroid:~# echo 100 100 1919 1079 > /sys/class/graphics/fb0/window_axis
root@odroid:~# echo 0x10001 > /sys/class/graphics/fb0/free_scale


2. make script(overscan.sh)

root@odroid:~# cat overscan.sh
#!/bin/bash

echo 100 100 1919 1079 > /sys/class/graphics/fb0/window_axis
echo 0x10001 > /sys/class/graphics/fb0/free_scale 

root@odroid:~#

3. Auto-start overscan shell script on Ubuntu.

root@odroid:~# cp overscan.sh /etc/init.d/
root@odroid:~# sudo update-rc.d overscan.sh defaults 



left : 10
right : 1919
top : 10
bottom : 1070