Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,360 Members 54,331 Now Online
XDA Developers Android and Mobile Development Forum

[Q][XP][JB] Unable to get kernel using adb

Tip us?
 
user44
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 24
Join Date: Mar 2014
Default [Q][XP][JB] Unable to get kernel using adb

> adb shell "dd if=/dev/block/mmcblk0p22 of=/sdcard/Boot.img"

using the above command i cannot get the kernel, the message i get is this: /dev/block/mmcblk0p22: cannot open for read: no such file or directory

tried using the same command on android terminal on the phone, still get similar message that the directory doesn't exist.
command used on terminal:
> su
> dd if=/dev/block/mmcblk0p22 of=/sdcard/Boot.img

any idea how to get the kernel? if you know please help. thanks


device:
- Xperia P LT22i
- Rooted with Locked Bootloader
- Stock Jelly Bean 4.1.2 ROM and Kernel
 
ChikeD
Old
#2  
Senior Member
Thanks Meter 462
Posts: 1,602
Join Date: Jun 2013
Quote:
Originally Posted by user44 View Post
> adb shell "dd if=/dev/block/mmcblk0p22 of=/sdcard/Boot.img"

using the above command i cannot get the kernel, the message i get is this: /dev/block/mmcblk0p22: cannot open for read: no such file or directory

tried using the same command on android terminal on the phone, still get similar message that the directory doesn't exist.
command used on terminal:
> su
> dd /dev/block/mmcblk0p22 of=/sdcard/Boot.img

any idea how to get the kernel? if you know please help. thanks


device:
- Xperia P LT22i
- Rooted with Locked Bootloader
- Stock Jelly Bean 4.1.2 ROM and Kernel
where did you get =/dev/block/mmcblk0p22 from? There is no such partition.
Kernel is at /dev/block/mmcblk0p9
 
user44
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 24
Join Date: Mar 2014
Quote:
Originally Posted by ChikeD View Post
where did you get =/dev/block/mmcblk0p22 from? There is no such partition.
Kernel is at /dev/block/mmcblk0p9
got it from here: http://forum.xda-developers.com/show....php?t=1450588

i did what you said and it says ----- /dev/block/mmcblk0p9: cannot open for read: permission denied
 
Ryccardo
Old
#4  
Senior Member
Thanks Meter 123
Posts: 433
Join Date: Nov 2013
Location: Imola

 
DONATE TO ME
Quote:
Originally Posted by user44 View Post
got it from here: http://forum.xda-developers.com/show....php?t=1450588

i did what you said and it says ----- /dev/block/mmcblk0p9: cannot open for read: permission denied
It will definitely work if you do it as superuser (well, maybe unless you're using a rom with SELinux configured to block that...)
Motorola International 8700 (first phone sold in Italy to send SMS) [half bricked] > Acer ? [returned] > Siemens S35i [good] > Samsung SGH-? [stolen] > Nokia 3220 [mostly still OK] > Motorola RAZR [still OK] > iPhone 3G S [2 batteries worn out] > iPhone 4S [I gave up after iOS 7, still has 10 months of warranty] > Samsung Ace 2 i8160 [won at Samsung giveaway, still works fine, CM10.1] > Sony Xperia U [modified Sony 2.3.7]
 
ChikeD
Old
#5  
Senior Member
Thanks Meter 462
Posts: 1,602
Join Date: Jun 2013
Quote:
Originally Posted by user44 View Post
got it from here: http://forum.xda-developers.com/show....php?t=1450588

i did what you said and it says ----- /dev/block/mmcblk0p9: cannot open for read: permission denied
Every device is different, so you better look at Xperia P development for how to do things on our device.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes