ivyvisors
Senior Member
- Dec 29, 2010
- 233
- 52
Hi everyone,
Anyway I'm Ivy, a unix hacker type who's just stumbled upon the android scene.
So far, I've rooted the device, and got a few things working.
Anyway currently I'm working through the init.rc script. The init.rc script is one of the first thing runs when the tablet runs. This sets up the device for everything else to run.
One part of the init script that interests me is how it sets up the "data" partition.
The data partition is 256mb in size which is not really large enough. But there may be a work around on this.
Firstly the init script sets up what are called environment variables, like the path, and a few other things. There is also one for the data partition:
export ANDROID_DATA /data
Now, as the init script goes on it creates in the root partition (this is created on boot) the directories where things are stored for example cache.
Now we come to mounting the data partition:
mount yaffs2 mtd@userdata /data nosuid nodev
Here is where it starts to interest me.
If I was to create a partition on the sdcard, using the same file system, I might be able to mount that instead of the internal data partition.
Now the difficult part will be creating a new boot image to do this, but from what I can tell this itself isn't too hard.
It's almost like making linux boot floppys and ramdisks =)
Another interesting thing I've found out about the device is that there are a lot of startup scripts that have been sourced from the Code Aurora Forum. Whom I'd not heard of before today, though these are more specific to the processor in the device.
Finally, where too from here. well I'd love to see if I could get Froyo ported to the device, but who knows how successful I will be. Only time will tell.
~Ivy
Anyway I'm Ivy, a unix hacker type who's just stumbled upon the android scene.
So far, I've rooted the device, and got a few things working.
Anyway currently I'm working through the init.rc script. The init.rc script is one of the first thing runs when the tablet runs. This sets up the device for everything else to run.
One part of the init script that interests me is how it sets up the "data" partition.
The data partition is 256mb in size which is not really large enough. But there may be a work around on this.
Firstly the init script sets up what are called environment variables, like the path, and a few other things. There is also one for the data partition:
export ANDROID_DATA /data
Now, as the init script goes on it creates in the root partition (this is created on boot) the directories where things are stored for example cache.
Now we come to mounting the data partition:
mount yaffs2 mtd@userdata /data nosuid nodev
Here is where it starts to interest me.
If I was to create a partition on the sdcard, using the same file system, I might be able to mount that instead of the internal data partition.
Now the difficult part will be creating a new boot image to do this, but from what I can tell this itself isn't too hard.
It's almost like making linux boot floppys and ramdisks =)
Another interesting thing I've found out about the device is that there are a lot of startup scripts that have been sourced from the Code Aurora Forum. Whom I'd not heard of before today, though these are more specific to the processor in the device.
Finally, where too from here. well I'd love to see if I could get Froyo ported to the device, but who knows how successful I will be. Only time will tell.
~Ivy