Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,354 Members 43,866 Now Online
XDA Developers Android and Mobile Development Forum

ouya mounts for updater script

Tip us?
 
No4g4Me
Old
(Last edited by No4g4Me; 29th May 2013 at 11:14 AM.)
#1  
No4g4Me's Avatar
Senior Member - OP
Thanks Meter 53
Posts: 458
Join Date: Jan 2012
Default ouya mounts for updater script

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
 
professorpoptart
Old
(Last edited by professorpoptart; 29th May 2013 at 12:02 PM.)
#2  
professorpoptart's Avatar
Senior Member
Thanks Meter 105
Posts: 159
Join Date: Jul 2010
Quote:
Originally Posted by No4g4Me View Post
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");
The Following User Says Thank You to professorpoptart For This Useful Post: [ Click to Expand ]
 
sonofskywalker3
Old
#3  
sonofskywalker3's Avatar
Senior Member
Thanks Meter 283
Posts: 728
Join Date: 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");
If you like my work, please consider donating. Thanks.
Email: Sonofskywalker3@gmail.com
Twitter: Sonofskywalker3
The Following 3 Users Say Thank You to sonofskywalker3 For This Useful Post: [ Click to Expand ]
 
mybook4
Old
#4  
mybook4's Avatar
Senior Member
Thanks Meter 262
Posts: 440
Join Date: Apr 2011

 
DONATE TO ME
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:
Select Code
run_program("/sbin/mount","/system");
Code:
Select 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
-----------------------------------------------------------
Like what I do? Donate to the coffee fund
The Following User Says Thank You to mybook4 For This Useful Post: [ Click to Expand ]
 
sonofskywalker3
Old
#5  
sonofskywalker3's Avatar
Senior Member
Thanks Meter 283
Posts: 728
Join Date: Jan 2009

 
DONATE TO ME
Ok, that's how I had to mount them on the Droid Bionic as well.
If you like my work, please consider donating. Thanks.
Email: Sonofskywalker3@gmail.com
Twitter: Sonofskywalker3
The Following User Says Thank You to sonofskywalker3 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes