This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to replace Android 7.1.2 kernel
#11
Hello,

I'm also trying to replace my kernel on Nougat V14.2.2.73.
Because i'm not sure of the seek value I replaced via ADB

Code:
ls -l /dev/block/platform/ff0c0000.dwmmc/by-name/

and it's return:

Code:
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 backup -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 boot -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 cache -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 kernel -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 2013-01-18 10:50 metadata -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 misc -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 recovery -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 resource -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 2013-01-18 10:50 system -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 trust -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 2013-01-18 10:50 uboot -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 2013-01-18 10:50 userdata -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 2013-01-18 10:50 vendor0 -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 2013-01-18 10:50 vendor1 -> /dev/block/mmcblk0p13

Now we know the kernel it's on /dev/block/mmcblk0p5
after that I run:

Code:
dd if=/sdcard/newkernel.img of=/dev/block/mmcblk0p5

But after reboot I am still on old kernel.
Am I missing something?
Same procedure works with resource.img.

Thank you!
Reply
#12
hi  mw2u..

Code:
dd if=/sdcard/newkernel.img of=/dev/block/mmcblk0p5

could it be the && sync @ end...

Code:
dd if=/sdcard/newkernel.img of=/dev/block/mmcblk0p5 && sync

I also try conv=fsync for /system/bin/dd.. but nooo joy..
Code:
dd: conv option disabled
lucky they are 2 other dd..

busybox dd & toybox dd
Code:
rk3288:/sdcard/tinkerboard/bak # busybox dd if=/dev/block/mmcblk0p6 of=/sdcard/tinkerboard/bak/boot_conv_fsync.img conv=fsync
65536+0 records in
65536+0 records out
33554432 bytes (32.0MB) copied, 1234.008733 seconds, 26.6KB/s
rk3288:/sdcard/tinkerboard/bak #   LONG TIME....]]]...
over 20mins to make 32mb file... ;-]..

sync - flush file system buffers
i have no idea what that does 
------------------------------------ ;-]..
hope it helps,
k,
---
ps.. also since you use adb...
maybe.. 
Code:
adb root
adb remount
adb shell
mount -o rw,remount /
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)