dinsdag 24 april 2012

Getting Started

The first step in hacking any device is gathering as much information as possible. Since there is no file explorer or terminal software available on the Eee Note by default, the most obvious way to do this is by removing the internal SD card and using a card reader to clone the file system. Luckily for me, someone has already done this, so I don't have to open up my Eee Note, which would void my warranty.
In the cloned filesystem Joshua.Lamorie on the tabletpcreview forum found the following lines in /etc/profile:
if [ -e /mnt/extsdcard/dvt_check ] ;then
cd /mnt/extsdcard
./dvt_check
fi
So every time the Eee Note is booted, it checks for the existence of a file called dvt_check in the folder /mnt/extsdcard/ which is, not surprisingly, the external SD card. If the file exists, it is executed as the root user. So running a script is as easy as naming it dvt_check and copying it to the root of a micro-SD card, inserting it the external card slot of the Eee Note and rebooting the device.

So lets try it out with a simple information gathering script: As expected, the script runs as root, uname returns:

Linux Linux 2.6.21 #5 PREEMPT Wed Aug 3 16:59:11 CST 2011 armv5tel unknown
df shows the partitions on the internal SD card:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mss/blk0p6        2956236     95400   2710664   3% /
/dev/mss/blk0p5         806288    563220    202108  74% /usr
/dev/mss/blk1p1        7756980     14968   7742012   0% /mnt/extsdcard
You can find the output of dmesg here.

The filesystem is basically structured as follows:

/ 
  -+- UserApp
   +- bin
   +- boot
   +- cross-tools
   +- dev
   +- eTablet
   |   +- Settings
   |   +- etc
   |   +- var
   |
   +- etc
   +- home
   +- lib
   +- lost+found
   +- media
   +- mnt
   +- opt
   +- proc
   +- root
   +- sbin
   +- srv
   +- sys
   +- tmp
   +- usr
   |   +- bin
   |   +- ...
   |   +- local
   |   |   +- ...
   |   |   +- eTablet
   |   |   |   +- bin
   |   |   |   +- lib
   |   |   |   +- translator
   |   |   +- ...
   |   |
   |   +- ...
   |
   +- var
Apart from the standard Posix folder structure we see two folders: /eTables and /usr/local/eTablet.
  • /usr/local/eTablet contains mostly binaries and some translation files.
  • /eTablet/Settings only contains one file ('Trolltech.conf') with settings for Qt)
  • /eTablet/etc contains config files for the individual applications developed by Asus, but also the notebook templates (backgrounds) and the SQLite database files that manage the notes, ebooks etcetera.
  • /eTablet/var contains the actual notes (one gif file per page) and ebooks.

vrijdag 13 april 2012

Obligatory introduction post

Welcome to my blog.

A few weeks ago I bought the Asus Eee Note to keep my lecture notes. I chose the Eee Note because it uses a Wacom digitizer instead of a regular touchscreen which makes it much more comfortable to write on than regular tablets with capacitive touchscreens. And, more importantly, it is a very hackable device and I do enjoy a bit of hacking ;)

About the Asus Eee Note

The Eee Note is a $200 device that is best described as a blend between a e-reader and a tablet. It's main purpose is to take notes and view documents.

The hardware

The Eee Note's hardware is pretty basic. It has an 8'' greyscale LCD display with XGA resolution (768x1024) with a wacom digitizer. It has WLAN, a 2 megapixel camera, USB connection, a micro SD slot and an audio plug.
Internally it has 4GB of storage in the form of an SD card.
The processor is an 312 MHz ARMv5tel (turbo mode: 624MHz). It has a bus speed of 208MHz and has 256MB RAM.

Nothing too spectacular here, but it is enough to keep the device quite responsive.

The software

This is where it gets interesting ;)
The device runs a Linux kernell (version 2.6.21) and no barriers are installed to keep the user from installing their own software. It even seems that Asus has made the device very open on purpose (for example there is a /UserApp folder already present in the filesystem).

This blog

I have already done a little bit of hacking on the device and I have a lot of ideas. So may in fact that I am already forgetting many of them, so that is why I started this blog. It gives me a place to write down my progress and ideas. And maybe the information here will even be usefull to someone.

There has already been done much research by other people on this device, much of it can be found on this forum:
http://forum.tabletpcreview.com/asus-eee-line/
This (very long) thread is useful in particular:
Asus Eee Note - A peek within
I read the first few pages of this thread, but stopped ready because I enjoy figuring stuff out myself and didn't want to spoil it ;)


Disclaimer

Since I use the word 'hacking' a lot in this blog, I should probably explain what I mean with this word.
I do not mean breaking into computer systems (which seems to be what most people think about when I say hacking [Thanks a lot, popular media <:-( ]).
I also do not mean circumventing security measures on a system or device (which is by some [mostly companies] regarded as illegal, even if you actually OWN the device).
What I do mean is using skills to make the best possible use of the systems that I own. This is the original meaning of the word hacking and this is the way I shall use it in this blog.