Where's the linux kernel located?

Where's the linux kernel located after flashing the firmware? Where does uboot find it and load it from?
I've been looking for it but can't seem to find it anywhere

1 Like

That is heavily SOC- and device dependent. In most cases, the kernel is outside the rootfs on a dedicated flash partition (e.g. a hard mtd, a virtual one via mtdsplit or an ubi partition, it depends), the OEM bootloader typically loads a hardcoded amount of bytes from a given flash offset and loads the kernel from there.

1 Like

See e.g. https://openwrt.org/docs/techref/flash.layout#partitioning_of_the_flash

2 Likes