Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:odroid-ups2 [2016/04/20 14:28] joy.cho [Auto shutdown Script] |
en:odroid-ups2 [2016/04/20 17:16] joy.cho [ODROID-C1/C2] |
||
---|---|---|---|
Line 125: | Line 125: | ||
The BAT_OK and AC_OK signals are used in the below simple shell script which runs in the background via crontab. | The BAT_OK and AC_OK signals are used in the below simple shell script which runs in the background via crontab. | ||
- | <WRAP left round important 70%> | ||
- | Before using UPS2 on ODROID-C2, please check u-boot version. \\ | ||
- | If the version of yours is the one before Mar 18 2016, update boot loader as following. \\ | ||
- | On Ubuntu release version "ver1.2" or higher, the control routine for ups2 port will be applied. | ||
- | Click the following site to download boot loader | + | <WRAP left round important 50%> |
- | * [[http://dn.odroid.com/S905/BootLoader/ODROID-C2/c2_bootloader.tar.gz|Download]] | + | Before using UPS3 on ODROID-C2, please check u-boot version. \\ |
+ | If the version of yours is the one before Mar 18 2016, update boot loader. | ||
+ | </WRAP> | ||
+ | |||
+ | === Check U-Boot Version on C2 === | ||
+ | |||
+ | If you have a USB-UART console, you can easily check the u-boot version using 'ver' on u-boot stage. \\ | ||
<code> | <code> | ||
- | $ tar zxvf c2_bootloader.tar.gz | + | Hit [Enter] key twice quickly during u-boot loading and enter 'ver' or 'version'. |
- | $ cd c2_bootloader | + | |
- | $ ./sd_fusing.sh <device/path/of/your/card> | + | odroidc2# version |
+ | U-Boot 2015.01-00089-gdfb8216 (Apr 09 2016 - 06:20:43) | ||
+ | </code> | ||
+ | |||
+ | Or you can check it after kernel booting on userspace using a simple shell script. | ||
+ | <file sh getUbootVer.sh> | ||
+ | #!/bin/sh | ||
+ | dd if=/dev/mmcblk0 of=/tmp/temp.bin bs=512 skip=97 count=1334 status=none | ||
+ | grep -a -r -E -o ".{0,0}U-Boot 2015.01.{0,50}" /tmp/temp.bin | grep -a "(" | ||
+ | rm /tmp/temp.bin | ||
+ | </file> | ||
+ | |||
+ | <code> | ||
+ | root@odroid64:~# vi getUbootVer.sh | ||
+ | root@odroid64:~# sudo chmod a+x getUbootVer.sh | ||
+ | root@odroid64:/home/odroid# ./getUbootVer.sh | ||
+ | U-Boot 2015.01-00089-gdfb8216 (Apr 09 2016 - 06:20:43) | ||
+ | </code> | ||
+ | |||
+ | === Update U-Boot on C2 === | ||
+ | If your U-Boot version is not the latest one, you can update it using apt-get command. | ||
+ | <code> | ||
+ | sudo apt-get install u-boot | ||
</code> | </code> | ||
- | </WRAP> | ||
==== Auto shutdown Script ==== | ==== Auto shutdown Script ==== |