Kernel does not boot: solved

Started by johnfulgor, July 19, 2015, 03:05:56 PM

Previous topic - Next topic


Hello all,
I'm trying to build the kernel following the wiki instructions.

git clone -b olimex/stable-3.0

cd RK3188-SOM

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- olimex_rk3188_defconfig

make -j4

Ok, build is successful.

     Generate ramdisk

cd ../
git clone
cd initrd/
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
cd ../

    Make mkbootimg

git clone
cd rockchip-mkbootimg
make install
cd ../

    Make boot.img

mkbootimg --kernel RK3188-SOM/arch/arm/boot/Image --ramdisk initrd.img -o boot.img

Ok, done.

dd if=boot.img of=/dev/sdi conv=sync,fsync seek=16384

where /dev/sdi is my SD card

But it does not boot.

dd if=kernel_hdmi_1080p.img of=/dev/sdi conv=sync,fsync seek=16384

where kernel_hdmi_1080p.img is the one I've found in /etc/olimex/kernel

DOES work

Any idea? Anyone of you has successfully built and boot the kernel following the wiki?
Thank you.

After many days and nights of trials, I've finally had a booting kernel, in this way:

1)Copy working kernel image from /etc/olimex/kernel on the SD card (in my case kernel for hdmi 1080p)
2)Extract olimex ramdisk with
unmkbootimg --kernel olimexkernel.img --ramdisk olimexramdisk.img -i kernel_hdmi_1080p.img
3)Create boot image with the new kernel image and old ramdisk:
mkbootimg --kernel mykernel.img --ramdisk olimexramdisk.img -o myboot.img
4)Transfer myboot.img on SD:
dd if=myboot.img of=/dev/mmcblk0  conv=sync,fsync seek=16384



Kudos to you

I was looking for the /etc/olimex/kernel files.
They are not in the NAND image but are in the SD image ;)


Thanks again

Your recipe works fine. I needed to replace the kernel because I am testing with a 7" display that was not displaying image correctly (slightly shifted by a few pixels) I then noticed that Olimex has support in the kernel for several different 7" displays, and had to select the correct one for my setup.

In my case I wrote the boot image with

dd if=myboot.img of=/dev/block/mtd/by-name/boot conv=sync,fsync bs=16384

As soon as I have some time I will compare initrd from git clone with the one from the images.


Laskov Constantine

I created script that will build kernel and prepare bootable SD card.
Look it in the end of my article:
Maybe it will be helpful.
Thank you.