ouya mounts for updater script

Search This thread

No4g4Me

Senior Member
Jan 13, 2012
457
55
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:

professorpoptart

Senior Member
Jul 7, 2010
166
110
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://xdaforums.com/showpost.php?p=41808197&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:
  • Like
Reactions: mybook4

sonofskywalker3

Senior Member
Jan 22, 2009
812
460
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");
 

mybook4

Senior Member
Apr 3, 2011
445
267
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:

/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

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
Reactions: No4g4Me

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    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");
    1
    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://xdaforums.com/showpost.php?p=41808197&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");
    1
    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:

    /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

    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
    1
    Ok, that's how I had to mount them on the Droid Bionic as well.