Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP user44

23rd March 2014, 06:50 PM   |  #1  
OP Junior Member
Thanks Meter: 1
 
24 posts
Join Date:Joined: Mar 2014
> 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
24th March 2014, 03:01 AM   |  #2  
Senior Member
Thanks Meter: 469
 
1,623 posts
Join Date:Joined: Jun 2013
More
Quote:
Originally Posted by user44

> 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
24th March 2014, 04:45 PM   |  #3  
OP Junior Member
Thanks Meter: 1
 
24 posts
Join Date:Joined: Mar 2014
Quote:
Originally Posted by ChikeD

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
24th March 2014, 04:57 PM   |  #4  
Senior Member
Flag Imola
Thanks Meter: 125
 
443 posts
Join Date:Joined: Nov 2013
Donate to Me
More
Quote:
Originally Posted by user44

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...)
24th March 2014, 06:43 PM   |  #5  
Senior Member
Thanks Meter: 469
 
1,623 posts
Join Date:Joined: Jun 2013
More
Quote:
Originally Posted by user44

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.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes