Post Reply

ouya mounts for updater script

OP No4g4Me

29th May 2013, 10:13 AM   |  #1  
No4g4Me's Avatar
OP Senior Member
Thanks Meter: 53
 
458 posts
Join Date:Joined: Jan 2012
What are the correct commands for the updater script in a custom rom.zip when im writing to the /system, /data, /recovery, /boot i know the architecture which is.... but what would i put in the updater script from a custom rom....i built one but all thats in the there for mount is MTD

/recovery emmc /dev/block/platform/sdhci-tegra.3/by-name/SOS
/boot emmc /dev/block/platform/sdhci-tegra.3/by-name/LNX
/system ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
/cache ext4 /dev/block/platform/sdhci-tegra.3/by-name/CAC
/misc emmc /dev/block/platform/sdhci-tegra.3/by-name/MSC
/staging emmc /dev/block/platform/sdhci-tegra.3/by-name/USP
/metadata emmc /dev/block/platform/sdhci-tegra.3/by-name/MDA
/data ext4 /dev/block/platform/sdhci-tegra.3/by-name/UDA

*please move to general questions sorry devs
Last edited by No4g4Me; 29th May 2013 at 11:14 AM.
29th May 2013, 11:56 AM   |  #2  
professorpoptart's Avatar
Senior Member
Thanks Meter: 106
 
159 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by No4g4Me

What are the correct commands for the updater script in a custom rom.zip when im writing to the /system, /data, /recovery, /boot

the partition type is EMMC

Recovery is mmcblk0p1
Boot is mmcblk0p2
System is mmcblk0p3

http://forum.xda-developers.com/show...7&postcount=13

Sweet more roms!


Edit:
Here is what I am using, but the format isnt working, I'm getting status 6 in cwm, So just removing that from updater script and doing a manual wipe of system before flash;
format("ext4", "EMMC", "/dev/block/mmcblk0p3");
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");
Last edited by professorpoptart; 29th May 2013 at 12:02 PM.
The Following User Says Thank You to professorpoptart For This Useful Post: [ View ]
29th May 2013, 12:36 PM   |  #3  
sonofskywalker3's Avatar
Senior Member
Thanks Meter: 283
 
729 posts
Join Date:Joined: Jan 2009
Donate to Me
This is what I'm using because I pulled it straight from the OTA update updater-script file:

format("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
The Following 3 Users Say Thank You to sonofskywalker3 For This Useful Post: [ View ]
29th May 2013, 01:42 PM   |  #4  
mybook4's Avatar
Senior Member
Thanks Meter: 263
 
444 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Yeah. I got status 6 when I tried using those commands as well. I'm not sure if it's something misconfigured with the CWM recovery or not.

Anyway, I was able to mount and unmount stuff with:

Code:
run_program("/sbin/mount","/system");
Code:
run_program("/sbin/umount","/system");

The partitions in the fstab are:

Quote:

/recovery emmc /dev/block/platform/sdhci-tegra.3/by-name/SOS
/boot emmc /dev/block/platform/sdhci-tegra.3/by-name/LNX
/system ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
/cache ext4 /dev/block/platform/sdhci-tegra.3/by-name/CAC
/misc emmc /dev/block/platform/sdhci-tegra.3/by-name/MSC
/staging emmc /dev/block/platform/sdhci-tegra.3/by-name/USP
/metadata emmc /dev/block/platform/sdhci-tegra.3/by-name/MDA
/data ext4 /dev/block/platform/sdhci-tegra.3/by-name/UDA
/sdcard datamedia /dev/null


And as the professor pointed out, the corresponding mmcblk numbers are

Quote:

lrwxrwxrwx root root 2013-05-25 02:23 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2013-05-25 02:23 CAC -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2013-05-25 02:23 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2013-05-25 02:23 MDA -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2013-05-25 02:23 MSC -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2013-05-25 02:23 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2013-05-25 02:23 UDA -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2013-05-25 02:23 UPP -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2013-05-25 02:23 USP -> /dev/block/mmcblk0p7

The Following User Says Thank You to mybook4 For This Useful Post: [ View ]
29th May 2013, 02:05 PM   |  #5  
sonofskywalker3's Avatar
Senior Member
Thanks Meter: 283
 
729 posts
Join Date:Joined: Jan 2009
Donate to Me
Ok, that's how I had to mount them on the Droid Bionic as well.
The Following User Says Thank You to sonofskywalker3 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Ouya Android Development by ThreadRank