Page 1 of 1

ADB workshop

PostPosted: April 5th, 2011, 9:39 pm
by rammy
Here is a beginners guide too ADB (android debugging bridge) a helpful tool for android devices.

http://forum.xda-developers.com/showthread.php?t=879701

please feel free to read and learn ;)

if this has been posted already then please delete.

if you know adb can you do these commands to get an idea of different firmware structure please.

cat proc/mtd ,it should give you this....

cat /proc/mtd
dev: size erasesize name
mtd0: 00a00000 00100000 "boot"
mtd1: 00500000 00100000 "kpanic"
mtd2: 09600000 00100000 "system"
mtd3: 00400000 00100000 "splash"
mtd4: 02800000 00100000 "cache"
mtd5: 12100000 00100000 "userdata"
mtd6: 00a00000 00100000 "recovery"
mtd7: 00200000 00100000 "misc"
mtd8: 00200000 00100000 "tcc"

then this command. mount ,it should then say simular too the following.

mount
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
tmpfs /broadcasting tmpfs rw,size=1024k 0 0
/dev/block/mtdblock2 /system yaffs2 rw 0 0
/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block/ndda1 /nand vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fma
sk=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname
=mixed,utf8,errors=remount-ro 0 0
/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=
1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,s
hortname=mixed,utf8,errors=remount-ro 0 0

please post your results on here with firmware details...;)

Re: ADB workshop

PostPosted: April 5th, 2011, 11:17 pm
by Charlie
Nice post - Cheers, I am still learning ADB - Can do a few basic things already, but there is always more to learn.

Re: ADB workshop

PostPosted: April 6th, 2011, 2:00 am
by rammy
charlie wrote:Nice post - Cheers, I am still learning ADB - Can do a few basic things already, but there is always more to learn.


its more aimed at the new users tbh, i learnt a few things cos of my android phone, and then i got this android square thingy ma jig device.lmao

Re: ADB workshop

PostPosted: April 8th, 2011, 6:37 pm
by RichardP
I make the assumption that mtd0->mtdX is NOR flash and the ndda1 is used via the NAND driver. (NAND flash cant be used without a file-system driver of sorts)