Google Invites Selected Devs to Buy Project Tango Development Kit

Just about a month ago, the curious Project Tango development kit was … more

Micromax Yureka: Indian Handset with CyanogenMod

Thesoap opera involving Cyanogen Inc., OnePlus, and Micromax is one of the most talked about … more

Chainfire Turns Your Bootanimation into a Logging Center

Having a nice boot animation certainly adds a little bit of aesthetic polish to your … more

Android TV Launcher Pushed to Google Play

Over the past decade, the tech universe has seen two drastic and widely contrasting changes with … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

/system writable with unionfs

OP jensbln

8th December 2010, 11:12 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Mar 2009
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
Attached Files
File Type: zip archos_gen8_unionfs-ntfs_modules.zip - [Click for QR Code] (134.0 KB, 83 views)
Last edited by jensbln; 8th December 2010 at 11:23 PM. Reason: some missspellings...
8th December 2010, 11:56 PM   |  #2  
mothy's Avatar
Senior Member
Flag Fort Collins
Thanks Meter: 70
 
595 posts
Join Date:Joined: Oct 2008
More
Quote:
Originally Posted by jensbln

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
9th December 2010, 12:08 AM   |  #3  
chrulri's Avatar
Senior Member
Thanks Meter: 275
 
896 posts
Join Date:Joined: Dec 2010
Donate to Me
@mothy
so far, temporary root with writable /system directory
9th December 2010, 05:33 PM   |  #4  
Member
Thanks Meter: 5
 
49 posts
Join Date:Joined: May 2010
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?
9th December 2010, 06:02 PM   |  #5  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Mar 2009
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
10th December 2010, 09:40 AM   |  #6  
Senior Member
Thanks Meter: 21
 
711 posts
Join Date:Joined: Sep 2004
More
forgive my lack of knowledge but you keep mentioning ntfs in the code fragments but you havent actually said that this is giving you ntfs support. does your kernal changes allow for reading ntfs volumes?
10th December 2010, 12:27 PM   |  #7  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Mar 2009
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
10th December 2010, 12:39 PM   |  #8  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Mar 2009
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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes