Difference between revisions of "Tips and Techniques"
From odroid US
(Created page with " === Resize FAT partition === use gparted to resize the ext4 fs.. you'll need space to increase the fat partition. Backup the fat partition contents.. Upon opening space f...") |
(→Mount Boot partition) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | === Useful Links === | ||
+ | ==== SD Card Readers ==== | ||
+ | [http://com.odroid.com/sigong/blog/blog_list.php?bid=139 http://com.odroid.com/sigong/blog/blog_list.php?bid=139] | ||
+ | ==== Adding Vendor/Product IDs to existing Kernel Drivers ==== | ||
+ | [http://www.ha19.no/usb/ http://www.ha19.no/usb/] | ||
+ | |||
+ | === Mount Boot partition === | ||
+ | Add line to /etc/fstab | ||
+ | <pre> | ||
+ | sudo echo "/dev/mmcblk0p1 /boot vfat noatime 1 2" >> /etc/fstab | ||
+ | </pre> | ||
+ | |||
+ | And use mount command | ||
+ | <pre> | ||
+ | mount /boot | ||
+ | </pre> | ||
=== Resize FAT partition === | === Resize FAT partition === | ||
Line 8: | Line 24: | ||
Upon opening space for the new fat partition go to a console and type: | Upon opening space for the new fat partition go to a console and type: | ||
− | + | <pre> | |
fdisk /dev/sdX | fdisk /dev/sdX | ||
Line 26: | Line 42: | ||
mkfs.vfat -n boot /dev/sdX1 | mkfs.vfat -n boot /dev/sdX1 | ||
+ | </pre> | ||
+ | |||
+ | === Read temperature sensors of the odroid === | ||
+ | |||
+ | First find the files the kernel drops in the sys file system | ||
+ | <pre> | ||
+ | find /sys -iname *temp* | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | /sys/devices/platform/samsung-fake-battery/power_supply/battery/batt_temp | ||
+ | /sys/devices/platform/samsung-fake-battery/power_supply/battery/batt_temp_adc | ||
+ | /sys/devices/platform/samsung-fake-battery/power_supply/battery/batt_temp_adc_cal | ||
+ | /sys/devices/platform/tmu/temperature | ||
+ | /sys/devices/platform/tmu/throttle_temp | ||
+ | /sys/devices/platform/tmu/warning_temp | ||
+ | </pre> | ||
+ | |||
+ | Then cat the one you want to know | ||
+ | <pre> | ||
+ | cat /sys/devices/platform/tmu/temperature | ||
+ | </pre> | ||
+ | <pre> | ||
+ | 30 | ||
+ | </pre> |
Latest revision as of 21:57, 21 March 2013
Contents
Useful Links
SD Card Readers
http://com.odroid.com/sigong/blog/blog_list.php?bid=139
Adding Vendor/Product IDs to existing Kernel Drivers
Mount Boot partition
Add line to /etc/fstab
sudo echo "/dev/mmcblk0p1 /boot vfat noatime 1 2" >> /etc/fstab
And use mount command
mount /boot
Resize FAT partition
use gparted to resize the ext4 fs.. you'll need space to increase the fat partition.
Backup the fat partition contents..
Upon opening space for the new fat partition go to a console and type:
fdisk /dev/sdX d 1 n p 1 +3072 t 1 c w mkfs.vfat -n boot /dev/sdX1
Read temperature sensors of the odroid
First find the files the kernel drops in the sys file system
find /sys -iname *temp*
/sys/devices/platform/samsung-fake-battery/power_supply/battery/batt_temp /sys/devices/platform/samsung-fake-battery/power_supply/battery/batt_temp_adc /sys/devices/platform/samsung-fake-battery/power_supply/battery/batt_temp_adc_cal /sys/devices/platform/tmu/temperature /sys/devices/platform/tmu/throttle_temp /sys/devices/platform/tmu/warning_temp
Then cat the one you want to know
cat /sys/devices/platform/tmu/temperature
30