Hello! I want make recovery to LG Optimus L7 (P705).
In BoardConfig i find this line:
# fix this up by examining /proc/mtd on a running device
Click to expand...
Click to collapse
But on LG Optimus L7 this file not found.
Because i can't write correct size.
BOARD_KERNEL_BASE :=
BOARD_KERNEL_PAGESIZE :=
BOARD_BOOTIMAGE_PARTITION_SIZE :=
BOARD_RECOVERYIMAGE_PARTITION_SIZE :=
BOARD_SYSTEMIMAGE_PARTITION_SIZE :=
BOARD_USERDATAIMAGE_PARTITION_SIZE :=
BOARD_FLASH_BLOCK_SIZE :=
Click to expand...
Click to collapse
Please help me. Thank you!
Connect your device via USB, make sure you have USB drivers installed.
Then in the command line type:
adb shell
cat /proc/mtd
Click to expand...
Click to collapse
The result will be something like this:
mtd0: 00a00000 00020000 "boot"
mtd1: 0f800000 00020000 "system"
mtd2: 00100000 00020000 "splash"
mtd3: 04000000 00020000 "cache"
mtd4: 00400000 00020000 "misc"
mtd5: 00400000 00020000 "persist"
mtd6: 00a00000 00020000 "recovery"
mtd7: 24fe0000 00020000 "userdata"
mtd8: 00140000 00020000 "MIBIB"
mtd9: 00080000 00020000 "SIM_SECURE"
mtd10: 00040000 00020000 "QCSBL"
mtd11: 00120000 00020000 "OEMSBL1"
mtd12: 00120000 00020000 "OEMSBL2"
mtd13: 01a80000 00020000 "AMSS"
mtd14: 017c0000 00020000 "EFS2"
mtd15: 01200000 00020000 "FTL"
mtd16: 01200000 00020000 "FTL2"
mtd17: 00040000 00020000 "FOTA"
Click to expand...
Click to collapse
The first column of numbers if the partition size. and the second one is the erasesize (KERNEL_FLASH_BLOCK_SIZE)
You will get the KERNEL_BASE and KERNEL_PAGESIZE after running unpackbootimg on the boot.img file extracted from your device.
Related
Hi everyone
I recently bought a ZTE blade variant (ZTE T-U880) which turns out to completely different blade.
It has a Marvell CPU @ 806 Mhz and 512 MB ram.
I managed to root it and found a working version (2.5.0.9) of clockwork recovery on some chinese site. This particular version fails to do "nandroid" backup. So, i'm in need of a fully functional clockwork recovery for the device.
Any help regarding it will be appreciated.
Here is the partition structure of the new blade (ZTE T-U880).
dev: size erasesize name
mtd0: 00100000 00020000 "bootloader"
mtd1: 00040000 00020000 "ramdisk"
mtd2: 00040000 00020000 "nvm"
mtd3: 00800000 00020000 "cpbinary"
mtd4: 00300000 00020000 "kernel"
mtd5: 00300000 00020000 "maintenance"
mtd6: 00500000 00020000 "recovery"
mtd7: 00040000 00020000 "misc"
mtd8: 02700000 00020000 "cache"
mtd9: 0c800000 00020000 "system"
mtd10: 0d800000 00020000 "userdata"
mtd11: 00a00000 00020000 "NVM"
mtd12: 00f40000 00020000 "telephony"
mtd13: 00100000 00020000 "reserved"
mtd14: 00a00000 00020000 "MRVL_BBM"
I tried to backup the bootloader and recovery using the following commands
# cat /dev/mtd/mtd0 >sdcard/Boot_mtd0.img
# cat /dev/mtd/mtd6 >sdcard/Recovery_mtd6.img
I'm attaching both these file.
I have no experience of linux, someone please unpack clockwork recovery and pack it using this boot.img. Hopefully recovery will work with the new boot image extracted from this device.
Thanks in advance.
i don't think the “bootloader” is “boot”...
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Hi all,
I have these partitions on my phone:
Code:
cat /proc/mtd
mtd0: 00020000 00020000 "preloader"
mtd1: 00300000 00020000 "nvram"
mtd2: 00020000 00020000 "seccnfg"
mtd3: 00060000 00020000 "uboot"
mtd4: 00600000 00020000 "boot"
mtd5: 00600000 00020000 "recovery"
mtd6: 00120000 00020000 "secstatic"
mtd7: 00060000 00020000 "misc"
mtd8: 0a000000 00020000 "system"
mtd9: 03c00000 00020000 "cache"
mtd10: 00300000 00020000 "logo"
mtd11: 000a0000 00020000 "expdb"
mtd12: 10f40000 00020000 "userdata"
I extracted them all (except preloader) with a tool called 'dump_image'. I later created the file '/etc/gps.conf' and now my phone won't boot to anything; Not even factory mode. I'm hoping to be able to restore the image that has '/etc' on it but I don't know which it is. I rather not restore anymore than necessary.
So can anyone tell me which of these partitions will contain '/etc'?
Or failing that, if someone could post the contents of a standard text file that's found in '/etc' then I can do a text search on the images to find the right one.
Cheers.
etc is under the system partition on the android os
Thanks, I'll try that first when my cable's sorted.
Hi All,
I am seeking a way to find size of boot and recovery partitions (the partition size, not data size) programmatically for use in a shell script. Any thoughts?
# cat /proc/mtd
dev: size erasesize name
mtd0: 000a0000 00020000 "misc"
mtd1: 003e0000 00020000 "recovery"
mtd2: 00300000 00020000 "boot"
mtd3: 0f000000 00020000 "system"
mtd4: 02800000 00020000 "cache"
mtd5: 0b920000 00020000 "userdata"
zeubea said:
# cat /proc/mtd
dev: size erasesize name
mtd0: 000a0000 00020000 "misc"
mtd1: 003e0000 00020000 "recovery"
mtd2: 00300000 00020000 "boot"
mtd3: 0f000000 00020000 "system"
mtd4: 02800000 00020000 "cache"
mtd5: 0b920000 00020000 "userdata"
Click to expand...
Click to collapse
I have seen and used the above command numerous times for something else. But your post made me think again about the size column, which I was thinking as some gibberish numbers. I found out that it is actually is hexadecimal. Converting it to decimal does the job for me. Thanks so much!
Hello,
I want to add a rule to the init.rc to autostart a program.
I tried to follow this guide:
hxxp://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
Instead of the following:
Code:
#cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "misc"
mtd1: 00500000 00020000 "recovery"
mtd2: 00280000 00020000 "boot"
mtd3: 04380000 00020000 "system"
mtd4: 04380000 00020000 "cache"
mtd5: 04ac0000 00020000 "userdata"
I am only getting:
Code:
dev: size erasesize name
mtd0: 00100000 00001000 "w25q80"
So where can I get the boot image that is installed? The device is a Galaxy Nexus 4.1.1
Thank you for your help!
Mark
Found it
On this device the boot image is located here:
Code:
/dev/block/platform/omap/omap_hsmmc.0/by-name/boot
Is it available yet? Since I cannot ask directly in that topic.
[ROM][Linux/XBMC] Native Linux for Amlogic based Tv-Box's {08/24/2014}
http://forum.xda-developers.com/showthread.php?t=2418029
Bluetimes MX5 is G02REF? it a bit confuse since MTD is very uncommon. Anyway I didn't check this myself it from other user who have this box.
[email protected]:/sdcard # cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00200000 "logo"
mtd1: 00800000 00200000 "aml_logo"
mtd2: 00800000 00200000 "recovery"
mtd3: 00800000 00200000 "boot"
mtd4: 20200000 00200000 "system"
mtd5: 21000000 00200000 "cache"
mtd6: 10000000 00200000 "backup"
mtd7: ac600000 00200000 "userdata"
mtd8: 00060000 00001000 "bootloader"
mtd9: 00008000 00001000 "ubootenv"
Hi,
i have this bluetimes mx5 also, but it has problems with xbmc on android and i'm also looking for linux OS that will work on it,
would really appreaciate if anyone has tested a linux installation on this tv box and can share...