Welcome, Guest

Author Topic: Kernel does not boot: solved  (Read 4500 times)


  • Newbie
  • *
  • Posts: 9
  • Karma: +1/-0
Kernel does not boot: solved
« on: July 19, 2015, 03:05:56 PM »
Hello all,
I'm trying to build the kernel following the wiki instructions.

git clone -b olimex/stable-3.0 https://github.com/SelfDestroyer/RK3188-SOM.git

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 https://github.com/radxa/initrd.git
cd initrd/
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
cd ../

    Make mkbootimg

git clone https://github.com/neo-technologies/rockchip-mkbootimg.git
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


« Last Edit: July 21, 2015, 08:40:58 PM by johnfulgor »


  • Jr. Member
  • **
  • Posts: 82
  • Karma: +3/-0
Re: Kernel does not boot: solved
« Reply #1 on: November 04, 2015, 11:22:17 AM »
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 ;)


  • Jr. Member
  • **
  • Posts: 82
  • Karma: +3/-0
Re: Kernel does not boot: solved
« Reply #2 on: November 04, 2015, 12:08:05 PM »
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 https://github.com/radxa/initrd.git with the one from the images.


Laskov Constantine

  • Newbie
  • *
  • Posts: 13
  • Karma: +1/-0
Re: Kernel does not boot: solved
« Reply #3 on: March 20, 2016, 03:23:01 AM »
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.