/system writable with unionfs

Search This thread

jensbln

New member
Mar 30, 2009
4
0
Hi,

I've followed the instructions on how to build froyo on Ubuntu 10.04 32Bit,

I had to disable gdb in /buildroot/local/g8_arm/g8_arm.config
or shot make -i world
make menuconfig breaks everything

....so edit configs by hand.....

then it builds fine.....

thanks to his patch:

www android-hilfe de /android-os-entwicklung-customize/4801-kernel-module-kompilieren-erster-versuch.html

it runs (else unionfs complains about missing symbols..)

Code:
adb push unionfs.ko /data/local/tmp
adb push ntfs.ko /data/local/tmp


I've created a second 2GB ext3 partition on my sdhc class6

Code:
insmod /data/local/tmp/unionfs.ko
mount /dev/block/vold/179:18 /data/newroot
mount -t unionfs -o dirs="/data/newroot/rootfs=rw:/system=ro" unionfs /system


and now i've things like a writeble host file .....

it runs since yesterday here - and is fine.


jens
 

Attachments

  • archos_gen8_unionfs-ntfs_modules.zip
    134 KB · Views: 110
Last edited:

mothy

Senior Member
Oct 3, 2008
596
65
Fort Collins
Hi,

I've followed the instructions on how to build froyo on Ubuntu 10.04 32Bit,

I had to disable gdb in /buildroot/local/g8_arm/g8_arm.config
or shot make -i world
make menuconfig breaks everything

....so edit configs by hand.....

then it builds fine.....

thanks to his patch:

www android-hilfe de /android-os-entwicklung-customize/4801-kernel-module-kompilieren-erster-versuch.html

it runs (else unionfs complains about missing symbols..)

Code:
adb push unionfs.ko /data/local/tmp
adb push ntfs.ko /data/local/tmp


I've created a second 2GB ext3 partition on my sdhc class6

Code:
insmod /data/local/tmp/unionfs.ko
mount /dev/block/vold/179:18 /data/newroot
mount -t unionfs -o dirs="/data/newroot/rootfs=rw:/system=ro" unionfs /system


and now i've things like a writeble host file .....

it runs since yesterday here - and is fine.


jens


For morons like me what does that mean....root access??

Sorry if that is a dumb question
 

laptopfreek0

Member
May 22, 2010
49
5
So just to be clear. Do you replace the kernel at all?
And do you have to mount the sd partition every time you boot up?
 

jensbln

New member
Mar 30, 2009
4
0
It's for the original Archos Kernel 2.6.29-omap1

Code:
# lsmod
ntfs 213028 0 - Live 0xbf276000
unionfs 74364 1 - Live 0xbf211000

this means you have to
temproot+"re"mount
the writable places, maybe soft-reboot (i use LCDDensity, it's soft-rebooting) and all your're changes are magicly there :)

instead of using sd, you can just create /data/newroot and let the things go there

Code:
# df -h
/dev/block/mmcblk0p4    299.4M    205.1M     78.9M  72% /data


i don't see any new rom's soon, unless we get a new bootloader, Archos uses mmcblk0 (an SD-Card device) and not mtd, so i think we can forget all that fastboot, flash_unlock mtd stuff.

this is very annoying, maybe i'm wrong,
but it looks like they don't want us to reflash the device :-(

unionfs usually need a own kernel, but the "ugly patches" make it run with the archos gen8 kernel

So i use temproot, gscript, LCDDensity after each reboot - and have all my settings back, apps like adsfree runs...

jens
 

jensbln

New member
Mar 30, 2009
4
0
yes, i hope so, but i havn't tested it until now, minimum is that you can mount ntfs volumes by hand - but maybe it's automounting....

i want test a HD movie from sd, but mine doesnt fit in 4Gig (fat)


jens
 

jensbln

New member
Mar 30, 2009
4
0
i've connected same ntfs disk and:

Code:
usb 2-1:1.0: uevent
usb-storage 2-1:1.0: usb_probe_interface
usb-storage 2-1:1.0: usb_probe_interface - got id
devdb: devpath usb-musb_hdrc-1 not found
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
/mnt/flash/releases/G8A/v2.0.53-r80341/arcbuild/linux/drivers/usb/core/inode.c: creating file '002'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000503
scsi 0:0:0:0: Direct-Access     SAMSUNG  HM160HI               PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 38 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 38 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
usb-storage: device scan complete
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda1.
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
usb 2-1: USB disconnect, address 2
usb 2-1: unregistering device
usb 2-1: usb_disable_device nuking all URBs
usb 2-1: unregistering interface 2-1:1.0


same things more need to be done, a trick could be having a small fat partition, so the system has it's sda1 as fas as expecting .....


jens