Howto flash bootloader, where to start? - Android Q&A, Help & Troubleshooting

Hi,
I have 2 tablets running an ancient android version, they have the 'Allwinner A33' chipset.
One tablet is working and one is bricked (bootloader is overwritten and not working).
From the working tablet I copied all the /dev/block partitions using "adb pull /dev/block/mmcblk0 mmcblk0.img" and the mmcblk0boot0 and mmcblk0boot1 to my linux pc.
The bricked tablet starts up in Sunxi FEL mode.
Code:
[email protected]:/# sunxi-fel vers
AWUSBFEX soc=00001667(A33) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000
Howto write the bootloader (or complete mmcblk0) from the working tablet to the bricked one?
Where to start?
Any help would be greatly appreciated!
Best Regards,
Donald.

Megapearl said:
Hi,
I have 2 tablets running an ancient android version, they have the 'Allwinner A33' chipset.
One tablet is working and one is bricked (bootloader is overwritten and not working).
From the working tablet I copied all the /dev/block partitions using "adb pull /dev/block/mmcblk0 mmcblk0.img" and the mmcblk0boot0 and mmcblk0boot1 to my linux pc.
The bricked tablet starts up in Sunxi FEL mode.
Howto write the bootloader (or complete mmcblk0) from the working tablet to the bricked one?
Where to start?
Any help would be greatly appreciated!
Best Regards,
Donald.
Click to expand...
Click to collapse
Hello and good afternoon, @Megapearl
Prior to your next posting please read the guidances that are stuck on top of every forum like
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com
and the others. I've moved your thread to Android Q&A.
Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator

When I write the mmcblk0.img to a sdcard using dd it boots android from the sdcard on the bricked tablet, I can enter fastboot mode or open a root shell using adb shell, how can I flash the internal memory? It sees the sdcard as mmcblk0 instead of the internal emmc.
Some info from the working tablet:
Code:
[email protected]:/ # blkid
/dev/block/zram0: TYPE="swap"
/dev/block/mmcblk0p1: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p2: SEC_TYPE="msdos" LABEL="Volumn" UUID="0000-0000" TYPE="vfat"
/dev/block/mmcblk0p7: LABEL="system" UUID="da594c53-9beb-f85c-85c5-cedf76546f7a" TYPE="ext4"
/dev/block/mmcblk0p10: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p15: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p17: SEC_TYPE="msdos" UUID="2CF4-10B2" TYPE="vfat"
[email protected]:/ #
[email protected]:/ # busybox fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 7818 MB, 7818182656 bytes
1 heads, 16 sectors/track, 954368 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 270849 960512 5517312 b Win95 FAT32
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 4609 8704 32768 6 FAT16
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 1 262145 2097152 5 Extended
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p5 8705 10752 16384 83 Linux
/dev/block/mmcblk0p6 10753 12800 16384 83 Linux
/dev/block/mmcblk0p7 12801 143872 1048576 83 Linux
/dev/block/mmcblk0p8 143873 145920 16384 83 Linux
/dev/block/mmcblk0p9 145921 150016 32768 83 Linux
/dev/block/mmcblk0p10 150017 248320 786432 83 Linux
/dev/block/mmcblk0p11 248321 250368 16384 83 Linux
/dev/block/mmcblk0p12 250369 252416 16384 83 Linux
/dev/block/mmcblk0p13 252417 252480 512 83 Linux
/dev/block/mmcblk0p14 252481 254464 15872 83 Linux
/dev/block/mmcblk0p15 254465 264704 81920 83 Linux
/dev/block/mmcblk0p16 264705 266752 16384 83 Linux
/dev/block/mmcblk0p17 266753 270848 32768 83 Linux
Partition table entries are not in disk order
[email protected]:/ #
[email protected]:/ # cat /proc/cpuinfo
Processor : ARMv7 Processor rev 5 (v7l)
processor : 0
BogoMIPS : 2285.71
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
Hardware : sun8i
Revision : 0000
Serial : 278789046006ffffc172
[email protected]:/ #
[email protected]:/ # cat /proc/diskstats
7 0 loop0 0 0 0 0 0 0 0 0 0 0 0
7 1 loop1 0 0 0 0 0 0 0 0 0 0 0
7 2 loop2 0 0 0 0 0 0 0 0 0 0 0
7 3 loop3 0 0 0 0 0 0 0 0 0 0 0
7 4 loop4 0 0 0 0 0 0 0 0 0 0 0
7 5 loop5 0 0 0 0 0 0 0 0 0 0 0
7 6 loop6 0 0 0 0 0 0 0 0 0 0 0
7 7 loop7 0 0 0 0 0 0 0 0 0 0 0
253 0 zram0 0 0 0 0 0 0 0 0 0 0 0
179 0 mmcblk0 9756 2278 1260297 60860 858 2006 28632 17060 0 27860 77900
179 1 mmcblk0p1 5781 1533 849324 37490 838 2003 28448 16420 0 21450 53880
179 2 mmcblk0p2 33 0 33 10 0 0 0 0 0 10 10
179 3 mmcblk0p3 0 0 0 0 0 0 0 0 0 0 0
179 5 mmcblk0p5 0 0 0 0 0 0 0 0 0 0 0
179 6 mmcblk0p6 0 0 0 0 0 0 0 0 0 0 0
179 7 mmcblk0p7 3836 373 407378 23250 0 0 0 0 0 11170 23240
179 8 mmcblk0p8 0 0 0 0 0 0 0 0 0 0 0
179 9 mmcblk0p9 0 0 0 0 0 0 0 0 0 0 0
179 10 mmcblk0p10 31 66 764 20 10 2 96 260 0 270 280
179 11 mmcblk0p11 0 0 0 0 0 0 0 0 0 0 0
179 12 mmcblk0p12 0 0 0 0 0 0 0 0 0 0 0
179 13 mmcblk0p13 16 240 2048 60 2 0 16 100 0 100 160
179 14 mmcblk0p14 0 0 0 0 0 0 0 0 0 0 0
179 15 mmcblk0p15 23 66 700 10 8 1 72 280 0 290 290
259 0 mmcblk0p16 1 0 1 0 0 0 0 0 0 0 0
259 1 mmcblk0p17 33 0 33 20 0 0 0 0 0 20 20
179 32 mmcblk0boot1 1 0 8 0 0 0 0 0 0 0 0
179 16 mmcblk0boot0 1 0 8 0 0 0 0 0 0 0 0
[email protected]:/ #
[email protected]:/# adb shell getprop
[dalvik.vm.boot-dex2oat-threads]: [4]
[dalvik.vm.dex2oat-Xms]: [64m]
[dalvik.vm.dex2oat-Xmx]: [512m]
[dalvik.vm.dex2oat-filter]: []
[dalvik.vm.dex2oat-flags]: [--no-watch-dog]
[dalvik.vm.dex2oat-threads]: [3]
[dalvik.vm.heapgrowthlimit]: [80m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [512k]
[dalvik.vm.heapsize]: [384m]
[dalvik.vm.heapstartsize]: [8m]
[dalvik.vm.heaptargetutilization]: [0.75]
[dalvik.vm.image-dex2oat-Xms]: [64m]
[dalvik.vm.image-dex2oat-Xmx]: [64m]
[dalvik.vm.image-dex2oat-filter]: []
[dalvik.vm.image-dex2oat-threads]: [4]
[dalvik.vm.isa.arm.features]: [default]
[dalvik.vm.isa.arm.variant]: [cortex-a7]
[dalvik.vm.jit.codecachesize]: [0]
[dalvik.vm.lockprof.threshold]: [500]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[dalvik.vm.usejit]: [true]
[debug.atrace.tags.enableflags]: [0]
[debug.force_rtl]: [0]
[debug.hwui.render_dirty_regions]: [false]
[dev.bootcomplete]: [1]
[drm.service.enabled]: [true]
[gsm.current.phone-type]: [1]
[gsm.network.type]: [Unknown]
[gsm.operator.alpha]: []
[gsm.operator.iso-country]: []
[gsm.operator.isroaming]: [false]
[gsm.operator.numeric]: []
[gsm.sim.operator.alpha]: []
[gsm.sim.operator.iso-country]: []
[gsm.sim.operator.numeric]: []
[gsm.sim.state]: [NOT_READY]
[gsm.version.ril-impl]: [sw-dataonly-ril-for-6.0_v1.0]
[init.svc.CheckProdmode]: [stopped]
[init.svc.adbd]: [running]
[init.svc.bootanim]: [stopped]
[init.svc.bootclone]: [stopped]
[init.svc.debuggerd]: [running]
[init.svc.drm]: [running]
[init.svc.gatekeeperd]: [running]
[init.svc.healthd]: [running]
[init.svc.ic_encrypt]: [stopped]
[init.svc.installd]: [running]
[init.svc.keystore]: [running]
[init.svc.lmkd]: [running]
[init.svc.logd]: [running]
[init.svc.logd-reinit]: [stopped]
[init.svc.logger_private]: [stopped]
[init.svc.media]: [running]
[init.svc.nand_trim]: [running]
[init.svc.netd]: [running]
[init.svc.p2p_supplicant]: [stopped]
[init.svc.perfprofd]: [running]
[init.svc.prepare_oemfs]: [stopped]
[init.svc.ril-daemon]: [running]
[init.svc.sayeye]: [running]
[init.svc.servicemanager]: [running]
[init.svc.surfaceflinger]: [running]
[init.svc.ueventd]: [running]
[init.svc.vold]: [running]
[init.svc.wifi_off_on]: [stopped]
[init.svc.wifi_set]: [stopped]
[init.svc.zygote]: [running]
[keyguard.no_require_sim]: [true]
[net.bt.name]: [Android]
[net.change]: [net.qtaguid_enabled]
[net.hostname]: [android-afc029122f650851]
[net.qtaguid_enabled]: [1]
[net.tcp.default_init_rwnd]: [60]
[persist.fw.force_adoptable]: [true]
[persist.service.bdroid.bdaddr]: [8c:f7:10:9c:69:1a]
[persist.sys.boot.first]: [0]
[persist.sys.boot.first.wehc]: [0]
[persist.sys.country]: []
[persist.sys.dalvik.vm.lib.2]: [libart.so]
[persist.sys.language]: []
[persist.sys.locale]: [en-US]
[persist.sys.localevar]: []
[persist.sys.profiler_ms]: [0]
[persist.sys.strictmode.disable]: [1]
[persist.sys.strictmode.visual]: [0]
[persist.sys.timezone]: [Europe/Paris]
[persist.sys.usb.config]: [mtp,adb]
[ril.sw.modem.status]: [off]
[rild.libargs]: [-d/dev/ttyUSB2]
[rild.libpath]: [libsoftwinner-ril-6.0.so]
[ro.adb.secure]: [0]
[ro.allow.mock.location]: [1]
[ro.am.reschedule_service]: [true]
[ro.baseband]: [unknown]
[ro.board.platform]: [astar]
[ro.boot.hardware]: [sun8i]
[ro.boot.serialno]: [F10119140109]
[ro.bootimage.build.date]: [Mon Dec 10 10:34:16 HKT 2018]
[ro.bootimage.build.date.utc]: [1544409256]
[ro.bootimage.build.fingerprint]: [Allwinner/astar_hmi/astar-hmi:6.0.1/MOB30R/20181210:eng/release-keys]
[ro.bootloader]: [unknown]
[ro.bootmode]: [unknown]
[ro.bt.bdaddr_path]: [/data/misc/bluetooth/bdaddr]
[ro.build.characteristics]: [tablet]
[ro.build.date]: [Mon Dec 10 10:33:56 HKT 2018]
[ro.build.date.utc]: [1544409236]
[ro.build.description]: [astar_hmi-eng 6.0.1 MOB30R 20181210 release-keys]
[ro.build.display.id]: [astar_hmi-eng 6.0.1 MOB30R 20181210 release-keys]
[ro.build.fingerprint]: [Allwinner/astar_hmi/astar-hmi:6.0.1/MOB30R/20181210:eng/release-keys]
[ro.build.flavor]: [astar_hmi-eng]
[ro.build.host]: [ctserver]
[ro.build.id]: [MOB30R]
[ro.build.product]: [astar-hmi]
[ro.build.tags]: [release-keys]
[ro.build.type]: [eng]
[ro.build.user]: [garyxu]
[ro.build.version.all_codenames]: [REL]
[ro.build.version.base_os]: []
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [20181210]
[ro.build.version.preview_sdk]: [0]
[ro.build.version.release]: [6.0.1]
[ro.build.version.sdk]: [23]
[ro.build.version.security_patch]: [2016-07-05]
[ro.carrier]: [unknown]
[ro.config.alarm_alert]: [Alarm_Classic.ogg]
[ro.config.media]: [1]
[ro.config.notification_sound]: [pixiedust.ogg]
[ro.config.ringtone]: [Ring_Synth_04.ogg]
[ro.crypto.state]: [unencrypted]
[ro.dalvik.vm.native.bridge]: [0]
[ro.debuggable]: [1]
[ro.expect.recovery_id]: [0x9b70ed0cd0086f8c9f1154eeae56dac66bd89adf000000000000000000000000]
[ro.frp.pst]: [/dev/block/by-name/frp]
[ro.hardware]: [sun8i]
[ro.kernel.android.checkjni]: [0]
[ro.opengles.version]: [131072]
[ro.product.board]: [exdroid]
[ro.product.brand]: [Allwinner]
[ro.product.cpu.abi]: [armeabi-v7a]
[ro.product.cpu.abi2]: [armeabi]
[ro.product.cpu.abilist]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: []
[ro.product.device]: [astar-hmi]
[ro.product.firmware]: [v6.0rc3]
[ro.product.locale]: [en-US]
[ro.product.manufacturer]: [Allwinner]
[ro.product.model]: [WEHC HMI]
[ro.product.name]: [astar_hmi]
[ro.revision]: [0]
[ro.runtime.firstboot]: [2523231]
[ro.secure]: [0]
[ro.serialno]: [F10119140109]
[ro.sf.lcd_density]: [160]
[ro.sf.rotation]: [90]
[ro.sw.embeded.telephony]: [false]
[ro.sys.cputype]: [WEHC]
[ro.sys.ion_flush_cache_range]: [1]
[ro.sys.mutedrm]: [true]
[ro.sys.widevine_oemcrypto_level]: [3]
[ro.wifi.channels]: []
[ro.zygote]: [zygote32]
[ro.zygote.disable_gl_preload]: [false]
[rw.logger]: [0]
[selinux.reload_policy]: [1]
[service.bootanim.exit]: [1]
[sys.boost_up_perf.displays]: [1]
[sys.boot_completed]: [1]
[sys.forcegles]: [0]
[sys.lights_leds]: [1]
[sys.oem_unlock_allowed]: [1]
[sys.sensors]: [1]
[sys.settings_global_version]: [2]
[sys.sysctl.extra_free_kbytes]: [12000]
[sys.usb.config]: [mtp,adb]
[sys.usb.configfs]: [0]
[sys.usb.state]: [mtp,adb]
[vold.has_adoptable]: [0]
[vold.post_fs_data_done]: [1]
[wifi.interface]: [wlan0]
[wifi.supplicant_scan_interval]: [15]
[wlan.driver.status]: [unloaded]
[zygote.mount_fs_data_done]: [1]
[email protected]:/ # cat /proc/mounts
rootfs / rootfs ro,seclabel,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,seclabel,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs /mnt tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
none /dev/cpuset cgroup rw,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent 0 0
tmpfs /sensors_cache tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/block/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,nomblk_io_submit,discard,noauto_da_alloc,errors=panic,data=ordered 0 0
/dev/block/by-name/alog /logger ext4 rw,seclabel,nosuid,nodev,noatime,nomblk_io_submit,discard,noauto_da_alloc,errors=panic,data=ordered 0 0
/dev/block/by-name/UDISK /data ext4 rw,seclabel,nosuid,nodev,noatime,nomblk_io_submit,discard,noauto_da_alloc,errors=panic,data=ordered 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/block/by-name/bootloader /bootloader vfat rw,relatime,uid=1000,gid=1000,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=ascii,shortname=lower,errors=remount-ro 0 0
/dev/fuse /mnt/runtime/default/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/by-name/oem /factory vfat rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
[email protected]:/ # cat /proc/partitions
major minor #blocks name
253 0 262144 zram0
179 0 7634944 mmcblk0
179 1 5468160 mmcblk0p1
179 2 32768 mmcblk0p2
179 3 1 mmcblk0p3
179 5 16384 mmcblk0p5
179 6 16384 mmcblk0p6
179 7 1048576 mmcblk0p7
179 8 16384 mmcblk0p8
179 9 32768 mmcblk0p9
179 10 786432 mmcblk0p10
179 11 16384 mmcblk0p11
179 12 16384 mmcblk0p12
179 13 512 mmcblk0p13
179 14 15872 mmcblk0p14
179 15 81920 mmcblk0p15
259 0 16384 mmcblk0p16
259 1 32768 mmcblk0p17
179 32 4096 mmcblk0boot1
179 16 4096 mmcblk0boot0

@Megapearl while I am aware of the FEL mode and the Sunxi tools, I could not figure-out how to actually flash a device using them. Instead I discovered that Allwinner devices can be flashed using the Phoenixcard utility and a suitable ROM. The hardest part was finding a ROM that matched my hardware.
Phoenixcard enables the creation of an SD as either Product which will be automatically flashed to the device when it is powered-on (remember to remove the SD once it's done) or as Startup which is a "Live" bootable version which is what you have already created using DD.
There is also the ImgRepacker tool that packs/unpacks the images which is useful as it allows the partition images to be replaced eg replacing the recovery partition.
Note that the ROMs are not disk images. There are some files that are partition images but there are also various other files for configuration etc. I hope this helps.

Related

[Q] Need some help with partitions

This is my portion layout:
$ su
# mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/stl14 /cache rfs rw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0
/dev/stl13 /data rfs rw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0
/dev/stl12 /system rfs ro,relatime,vfat,log_off,check=no,gid/uid/rwx,iocharset=utf8 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
and
$ su
# cat /proc/partitions
major minor #blocks name
137 0 513024 bml0/c
137 1 1536 bml1
137 2 768 bml2
137 3 768 bml3
137 4 17920 bml4
137 5 12800 bml5
137 6 768 bml6
137 7 6144 bml7
137 8 2048 bml8
137 9 10240 bml9
137 10 10240 bml10
137 11 768 bml11
137 12 173568 bml12
137 13 173056 bml13
137 14 102400 bml14
179 0 1955840 mmcblk0
179 1 1955775 mmcblk0p1
138 12 166912 stl12
138 13 166400 stl13
138 14 97280 stl14
#
I am trying to put system and boot.img!
I tried dd if=/dev/block/stl12 of=/sdcard/system.img and it shows a pound at the end I check my sdcard and there is nothing there? Is there something I'm doing wrong?

{help needed} cannot find boot/recovery partition

i got the cat /proc/mounts here -
Code:
[email protected]:/ # cat /proc/mounts
cat /proc/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/block/nandi /oem cramfs ro,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/block/nandd /system ext4 ro,relatime,user_xattr,barrier=0,data=ordered 0 0
/dev/block/nande /data ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=0,journal
_checksum,data=ordered,noauto_da_alloc 0 0
/dev/block/nandh /cache ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=0,journa
l_checksum,data=ordered,noauto_da_alloc 0 0
/dev/block/vold/93:72 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,u
id=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset
=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/93:72 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,ioch
arset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/vold/179:1 /mnt/extsd vfat rw,dirsync,nosuid,nodev,noexec,relatime,ui
d=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=
ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,ioch
arset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/extsd/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.gameinsight.mycountry-1 vfat ro,dirsync,nosuid,nod
ev,relatime,uid=1000,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocha
rset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-1 /mnt/asec/com.vividgames.speedwaygp2012-1 vfat ro,dirsync,nosuid
,nodev,relatime,uid=1000,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,i
ocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
can any one tell me from this which is the boot and recovery partition?
anyone please???
michael.the.don said:
i got the cat /proc/mounts here -
can any one tell me from this which is the boot and recovery partition?
Click to expand...
Click to collapse
/proc/mounts only shows currently mounted partitions, and not boot neither recovery are ever mounted. Instead check either /proc/mtd (for NAND) or in the partition table (for MMC, use fdisk).
If NAND, there's no guarantee the boot loader exposes those partitions to the kernel at all, though.
i tried using /proc/mtd but it says file missing.
how to use fdisk?
i tried using /proc/partitions
it gives me-
[email protected]:/ # cat /partitions
cat /proc/partitions
major minor #blocks name
93 0 16384 nanda
93 8 2048 nandb
93 16 32768 nandc
93 24 262144 nandd
93 32 1048576 nande
93 40 1024 nandf
93 48 32768 nandg
93 56 262144 nandh
93 64 131072 nandi
93 72 5992448 nandj
179 0 15674368 mmcblk0
179 1 15670272 mmcblk0p1
michael.the.don said:
i tried using /proc/mtd but it says file missing.
how to use fdisk?
i tried using /proc/partitions
it gives me-
[email protected]:/ # cat /partitions
cat /proc/partitions
major minor #blocks name
93 0 16384 nanda
93 8 2048 nandb
93 16 32768 nandc
93 24 262144 nandd
93 32 1048576 nande
93 40 1024 nandf
93 48 32768 nandg
93 56 262144 nandh
93 64 131072 nandi
93 72 5992448 nandj
179 0 15674368 mmcblk0
179 1 15670272 mmcblk0p1
Click to expand...
Click to collapse
Good enough, now you can start mapping all your partitions. Compare this to the mount list, and mark e.g. nande as data, etc. After a while you'll get a few unknown left, potential candidates for boot and recovery you can examine more carefully.
thanks very much.
michael.the.don said:
thanks very much.
Click to expand...
Click to collapse
I'd guess nandc and nandg, they seems about the right size and not mounted. dd them to a file and examine them if they've got the format mkbootimg produces. Those files should begin with "ANDROID!".
# dd if=/dev/block/nandg of=/sdcard/isthisboot.img

[Q] How to extract recovery.img from your phone

Hey everyone,
I'm having trouble extracting a recovery.img from my phone. More specific I can't seem to find which file I have to 'dd' to create the img file.
Some commands with the output
Code:
[email protected]:/ # cat /proc/mtd
dev: size erasesize name
Code:
[email protected]:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/[email protected] /system ext4 ro,relatime,user_xattr,commit=1,barrier=1,data=ordered,noauto_da_alloc 0 0
/[email protected] /data ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
/[email protected] /cache ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
/dev/block/vold/179:97 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:97 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/vold/179:6 /mnt/sdcard2 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
Code:
[email protected]:/ # cat /proc/partitions
major minor #blocks name
179 0 3792000 mmcblk0
179 1 1 mmcblk0p1
179 2 5120 mmcblk0p2
179 3 524288 mmcblk0p3
179 4 524288 mmcblk0p4
179 5 2621440 mmcblk0p5
179 6 85216 mmcblk0p6
179 64 1024 mmcblk0boot1
179 32 1024 mmcblk0boot0
179 96 15110144 mmcblk1
179 97 15106048 mmcblk1p1
Code:
[email protected]:/ # cat /proc/emmc
partno: start_sect nr_sects partition_name
emmc_p1: 00000020 00000002 "ebr1"
emmc_p2: 0000ac40 00002800 "sec_ro"
emmc_p3: 00010740 00100000 "android"
emmc_p4: 00110f40 00100000 "cache"
emmc_p5: 00211740 00500000 "usrdata"
emmc_p6: 00711f40 000299c0 "fat"
Even by running the commands above I'm still not able to determine where I can extract a recovery.img.
Ive been looking around and can't seem to find anything so I hope someone can point me in the right direction.
PS: Phone in question is a Star B92M (chinaphone)
Thanks for the help!
~Whookid
EDIT: I'm looking for a way to do this without SP Flash tool

[Q] Mount data partition on GT-S5570

Hi,
I'm having problems mounting the data partition on my Galaxy Mini. Below is the steps I have taken. I'm just guessing bml12 is the data partition.
When I try and mount bml12 as rfs with read write using the command "# mount -o rw -t rfs /dev/block/bml12 /data" i get the error message "mount: Invalid argument". But when command appears to work for mounting stl14.
Any help or guidance would be greatly appreciated.
Thanks
Code:
$ su
su
# mount
mount
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime 0 0
/dev/stl12 /system rfs rw,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8
0 0
/dev/stl14 /cache rfs rw,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0
0
# cat /proc/partitions
cat /proc/partitions
major minor #blocks name
137 0 513024 bml0/c
137 1 1536 bml1
137 2 512 bml2
137 3 768 bml3
137 4 25600 bml4
137 5 9216 bml5
137 6 5120 bml6
137 7 2048 bml7
137 8 8192 bml8
137 9 8192 bml9
137 10 768 bml10
137 11 6144 bml11
137 12 222464 bml12
137 13 192768 bml13
137 14 29696 bml14
138 12 214784 stl12
138 14 25856 stl14
# ls /dev/block
ls /dev/block
stl14
stl13
stl12
stl11
stl10
stl9
stl8
stl7
stl6
stl5
stl4
stl3
stl2
stl1
bml14
bml13
bml12
bml11
bml10
bml9
bml8
bml7
bml6
bml5
bml4
bml3
bml2
bml1
bml0!c
loop7
loop6
loop5
loop4
loop3
loop2
loop1
loop0
ram7
ram6
ram5
ram4
ram3
ram2
ram1
ram0
# mount -o rw -t rfs /dev/block/bml12 /data
mount -o rw -t rfs /dev/block/bml12 /data
mount: Invalid argument

[Q] Dump Lenovo B8080 boot.img/recovery.img

I'm trying to dump the boot.img in the hopes of porting CWM and, eventually, CM11 to the Lenovo B8080, better known as the Lenovo Yoga 10 HD+. But I'm at a loss how to extract the boot.img.
I've been following this guide here: http://xda-university.com/as-a-developer/porting-clockworkmod-recovery-to-a-new-device and am stuck at trying to extract my boot.img as the binary is missing. All I get is
Code:
$ dump_image boot /storage/sdcard1/boot.img
dump_image: not found
I've also tried using romdump but the binary that I found won't run on the b8080, wrong architecture.
Lastly, I tried
Code:
$ cat /proc/mtd
as recommended in this guide: http://www.addictivetips.com/mobile...es-boot-recovery-and-system-partition-images/
but that also doesn't work as there is no "/proc/mtd".
What I do have is the following output:
Code:
$ cat /proc/partitions
major minor #blocks name
7 0 17703 loop0
179 0 15267840 mmcblk0
179 1 65536 mmcblk0p1
179 2 512 mmcblk0p2
179 3 512 mmcblk0p3
179 4 32 mmcblk0p4
179 5 32 mmcblk0p5
179 6 768 mmcblk0p6
179 7 768 mmcblk0p7
179 8 500 mmcblk0p8
179 9 500 mmcblk0p9
179 10 16384 mmcblk0p10
179 11 500 mmcblk0p11
179 12 500 mmcblk0p12
179 13 1024 mmcblk0p13
179 14 1536 mmcblk0p14
179 15 1536 mmcblk0p15
179 16 10240 mmcblk0p16
179 17 1572864 mmcblk0p17
179 18 32768 mmcblk0p18
179 19 131072 mmcblk0p19
179 20 204800 mmcblk0p20
179 21 16384 mmcblk0p21
179 22 1024 mmcblk0p22
179 23 1536 mmcblk0p23
179 24 1 mmcblk0p24
179 25 8 mmcblk0p25
179 26 12646383 mmcblk0p26
179 32 4096 mmcblk0rpmb
254 0 17703 dm-0
179 64 31166976 mmcblk1
179 65 31162880 mmcblk1p1
and
Code:
$ cat /proc/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=962644k,nr_inodes=182058,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
/dev/faccc /fac ext4 rw,seclabel,nodev,noatime,nodiratime,data=ordered 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,size=962644k,nr_inodes=182058,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,size=962644k,nr_inodes=182058,mode=755,gid=1000 0 0
tmpfs /mnt/asec2 tmpfs rw,seclabel,relatime,size=962644k,nr_inodes=182058,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,size=962644k,nr_inodes=182058,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,discard,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/lesw /lesw ext4 rw,seclabel,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-0 /mnt/asec/[0]com.sketchbook-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/vold/179:65 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec2 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
Does anybody know how to proceed from here? Thanks!
In case anybody else is wondering, I found this wonderfully useful post that solves this problem:
http://forum.xda-developers.com/showpost.php?p=45564277&postcount=4
In case anybody is interested, here's the repository I'm working on:
https://github.com/zyrill/android_device_LENOVO_B8080
I am extremely interested! Nice work
Anny update ?

Categories

Resources