Hardware hacking this puppy, input?
#21
Posted 23 June 2010 - 11:00 PM
#22
Posted 23 June 2010 - 11:34 PM
Sounds really good waiting to see how the next steps go but so far it sounds amazing especially if it means we can end up with 64GB of storage and it's faster. Just one question though what will happen when the 2.2 update is released would you need to replace the original card and then do it all again?
Marc
Froyo V1.6.1 By DJ_Steve
The only problem with common sense is it's just not that common
#23
Posted 24 June 2010 - 02:19 AM
If you have a Linux box it would be easier to create the partitions to suite your storage device as partitions 5 and 6 and then format them ext3.
Use tar to copy the files over to their respective partitions to get the perms right.
Should work right away and give you the full card to use without having to modify mount tables. You would have had to dd only if there were boot partitions on that card, but there's not so it's unnecessary.
Edited by popetodd, 24 June 2010 - 02:21 AM.
#24
Posted 24 June 2010 - 03:18 AM
#25
Posted 24 June 2010 - 11:03 AM
#26
Posted 24 June 2010 - 01:01 PM
It appears that the filesystems are mapped by init.rc and that this file is stored in the boot.img file which is loaded at each boot.
This means that I can use my extra space but only manually, as I cannot use vold to mount the partition for me.
So here is where I am at
1. work out how to modify the boot image to create a sub folder under /sdcard on the rootfs and modify vold.conf to mount the sdcard to the subfolder, then modify init.rc to mount the internal partition to /sdcard
2. leave everything as it is and mount my new partition to a folder I create on each boot.
any tips and tricks would be appreciated
Tim
#27
Posted 24 June 2010 - 05:37 PM
plink212, on Jun 24 2010, 14:01, said:
It appears that the filesystems are mapped by init.rc and that this file is stored in the boot.img file which is loaded at each boot.
This means that I can use my extra space but only manually, as I cannot use vold to mount the partition for me.
So here is where I am at
1. work out how to modify the boot image to create a sub folder under /sdcard on the rootfs and modify vold.conf to mount the sdcard to the subfolder, then modify init.rc to mount the internal partition to /sdcard
2. leave everything as it is and mount my new partition to a folder I create on each boot.
any tips and tricks would be appreciated
Tim
If so give what I outlined above a shot, I bet it works.
#28
Posted 24 June 2010 - 07:19 PM
popetodd, on Jun 24 2010, 17:37, said:
If so give what I outlined above a shot, I bet it works.
Problem with that is that say I extended partition 6 i would have a large /data partition and if i extended partition 5 i would have a large cache partition
The numbers need to be 5 and 6 as they are the entries in the init.rc file.
Unless of course I have completely missed the point of what you are suggesting
Tim
#29
Posted 24 June 2010 - 08:05 PM
plink212, on Jun 24 2010, 20:19, said:
The numbers need to be 5 and 6 as they are the entries in the init.rc file.
Unless of course I have completely missed the point of what you are suggesting
Tim
What you want is a large data partition and a reasonable cache.
This card is where the apps get installed to and the data partition is where that happens.
So in Linux run fdisk, create partitions 1->4 with a single sector apiece, that will take care of any partition reordering that may occur.
Create partition 5 and make it reasonable, it's just a cache partition, say around 1Gb (twice the internal memory).
Create partition 6 and make it the rest of the card.
Then format each one with ext3.
Then copy over the data from the respective partitions on the original card using tar.
Put it back in and boot it up, that OS will mount it and it should show as a ton of space to install programs into.
I don't think you are going to be using the internal card as some kind of extra storage unless you play some games like creating a partition from what you have after you dd that is the rest of the card, mount it by hand as a subdirectory hanging off the /sdcard directory and then make a script that runs on startup that mounts it there all the time. But even that should be trivial.
Come to think of it that kind of opens up the possibility of a secret (security through obscurity) storage space that is only accessible when mounted but isn't obvious due to the devices factory specified 2 Gb internal capacity. Hmmm...
Edited by popetodd, 24 June 2010 - 08:17 PM.
#30
Posted 24 June 2010 - 09:44 PM
popetodd, on Jun 24 2010, 20:05, said:
What you want is a large data partition and a reasonable cache.
This card is where the apps get installed to and the data partition is where that happens.
So in Linux run fdisk, create partitions 1->4 with a single sector apiece, that will take care of any partition reordering that may occur.
Create partition 5 and make it reasonable, it's just a cache partition, say around 1Gb (twice the internal memory).
Create partition 6 and make it the rest of the card.
Then format each one with ext3.
Then copy over the data from the respective partitions on the original card using tar.
Put it back in and boot it up, that OS will mount it and it should show as a ton of space to install programs into.
I don't think you are going to be using the internal card as some kind of extra storage unless you play some games like creating a partition from what you have after you dd that is the rest of the card, mount it by hand as a subdirectory hanging off the /sdcard directory and then make a script that runs on startup that mounts it there all the time. But even that should be trivial.
Come to think of it that kind of opens up the possibility of a secret (security through obscurity) storage space that is only accessible when mounted but isn't obvious due to the devices factory specified 2 Gb internal capacity. Hmmm...
I was thinking of using the space for media, do I really need that amount of space for applications?
I like the idea of a startup script have you any ideas of how to make one.
Also if you mount the extra space beneath /sdcard then when you connect the streak in mass storage it will not work as you will not be able to dismount the /sdcard mount as it will have a locked folder, no?
What I think the ideal solution would be to use vold/dbus or something similar to automount the space beneath the sdcard or mount the sdcard beneath the /sdcard mount, as the dell media app if nothing else seems to look directly at the /sdcard mount point
Tim
#31
Posted 24 June 2010 - 10:03 PM
plink212, on Jun 24 2010, 22:44, said:
I was thinking of using the space for media, do I really need that amount of space for applications?
I like the idea of a startup script have you any ideas of how to make one.
Also if you mount the extra space beneath /sdcard then when you connect the streak in mass storage it will not work as you will not be able to dismount the /sdcard mount as it will have a locked folder, no?
What I think the ideal solution would be to use vold/dbus or something similar to automount the space beneath the sdcard or mount the sdcard beneath the /sdcard mount, as the dell media app if nothing else seems to look directly at the /sdcard mount point
Tim
Don't want to use vold for this as it won't need to be controlled for random mounting.
First things first though, have you picked up Root Explorer yet? With this you can make the flash read write and create a mount point and edit files on it. This would be the first step as a directory in root (/intstorage for example) needs to be created for a mount point.
vold.cfg looks good but I am sure there is a standard Unix type fstab somewhere that can be edited to add the mount to, as I said this can be done with Root Explorer and should persist through a shutdown and restart.
I'll start looking now for the fstab file for Android, if you know what and where this is let me know and I'll get you the exact string to add to it.
Same for all you devs out there, pipe in if you already know where this is to save us some time looking for it.
[EDIT] Found it, it's /init.rc.
I'm working out what out add and where to add it.
Edited by popetodd, 24 June 2010 - 10:37 PM.
#32
Posted 25 June 2010 - 12:12 PM
popetodd, on Jun 24 2010, 22:03, said:
Don't want to use vold for this as it won't need to be controlled for random mounting.
First things first though, have you picked up Root Explorer yet? With this you can make the flash read write and create a mount point and edit files on it. This would be the first step as a directory in root (/intstorage for example) needs to be created for a mount point.
vold.cfg looks good but I am sure there is a standard Unix type fstab somewhere that can be edited to add the mount to, as I said this can be done with Root Explorer and should persist through a shutdown and restart.
I'll start looking now for the fstab file for Android, if you know what and where this is let me know and I'll get you the exact string to add to it.
Same for all you devs out there, pipe in if you already know where this is to save us some time looking for it.
[EDIT] Found it, it's /init.rc.
I'm working out what out add and where to add it.
Edited by plink212, 25 June 2010 - 12:13 PM.
#33
Posted 25 June 2010 - 12:33 PM
plink212, on Jun 25 2010, 13:12, said:
So, without actually modifying the image itself (looks like that is what will be required to make it a perm change) a script that can be run after startup looks like the best way.
Something like this then:
#!/system/bin/sh /system/bin/mount -w -o remount rootfs / /system/bin/mkdir /storage /system/bin/mount -t ext3 -w /dev/block/innersd0p1 /storage /system/bin/mount -r -o remount rootfs /This assumes that your new partition is number 1, if it is not change the "p" designation in the block device to the partition number you set up for the extra space on the card. It also assumes that you have formatted the filesystem in that partition as ext3.
I read on another thread in another platform forum here that someone thought Paul was placing init scripts in /data/system/etc/init.d to have them run at boot, if that is the case you could call this script S99InternalMount or similar and place it in that directory and it should mount up the partition after the system has started.
[EDIT] Nope, that's not the init script directory on this device. Will look around a bit to see if I can find one.
On the plus side the script work perfectly to create the mount pint.
Then to access it while plugged in through USB place a soft link on the SD card to this directory? Don't know if that will work as there is some funny business with the SD card when USB charging.
Be sure to chmod 755 so no one will be able to start something you don't want started by modifying the file.
Edited by popetodd, 25 June 2010 - 03:30 PM.
#34
Posted 26 June 2010 - 11:27 AM
#35
Posted 26 June 2010 - 11:40 AM
#36
Posted 26 June 2010 - 12:49 PM
service flash_recovery /system/etc/install-recovery.sh
disabled
oneshot
#Jeff flash recovery image
on property:sys.init.fdiskcmd_complete=1
start flash_recovery
it seems that, that shell script does not exist in /system/etc/ if this is the case maybe we can use it to our advantage and run the remount script that way
Tim
#37
Posted 26 June 2010 - 08:12 PM
#38
Posted 26 June 2010 - 10:50 PM
popetodd, on Jun 26 2010, 21:12, said:
im using startup manager to stop all these programs starting up for no reason, in the apps there is a custom tab where you can run your own programs at start. I assume you can somehow add it there or find aanother similar app. Iv not done this btw. You need root tho, but thats not so bad to get done
#39
Posted 26 June 2010 - 11:13 PM
Edited by popetodd, 26 June 2010 - 11:18 PM.
#40
Posted 27 June 2010 - 12:01 PM
popetodd, on Jun 26 2010, 23:13, said:
Howto: edit boot images
Tim
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users







Sign In
Create Account

Back to top









