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
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
John
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 https://github.com/radxa/initrd.git with the one from the images.
Regards
I created script that will build kernel and prepare bootable SD card.
Look it in the end of my article:
http://microelk.azurewebsites.net/RK3188_kernel/RK3188_kernel
Maybe it will be helpful.
Thank you.