OpenWrt Forum Archive

Topic: Is it possible to replace just kernel?

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Let's assume I want to replace the kernel, and *only* kernel on a device running OpenWRT.

Is it possible?

Is there a chance that with:

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "pmon"
mtd1: 003b0000 00010000 "linux"
mtd2: 00330000 00010000 "rootfs"
mtd3: 00010000 00010000 "nvram"

some magic command like:

write_kernel /dev/mtd1

will work (+ adding new kernel modules on the filesystem)?

We didn't exactly provide any extra padding around the kernel, that alone will make it extremely difficult to do anything to the kernel.

The discussion might have continued from here.