Thursday, November 21, 2013

RK2928sdk kernel compile notes [INCOMPLETE/IN PROGRESS]

### YET ANOTHER TRIAL ###

Kernel source: https://s3.amazonaws.com/tabletfirmwares/GPL/bqCurie_GPL.tar.gz
Base kernel config: http://source.android.com/devices/tech/kernel.html

got error:
make[1]: *** No rule to make target `arch/arm/plat-rk/vpu_service.o', needed by `arch/arm/plat-rk/built-in.o'.  Stop.
fixed by:

cd bqCurie/kernel/arch/arm/mach-rk2928/include/mach
wget https://raw.github.com/DJNoXD/rockchip-kernel-rk2918/master/arch/arm/mach-rk29/include/mach/vpu.h
wget https://raw.github.com/DJNoXD/rockchip-kernel-rk2918/master/arch/arm/mach-rk29/include/mach/vpu_mem.h
wget https://raw.github.com/DJNoXD/rockchip-kernel-rk2918/master/arch/arm/mach-rk29/include/mach/vpu_service.h
cd bqCurie/kernel/arch/arm/mach-rk2928
wget https://raw.github.com/DJNoXD/rockchip-kernel-rk2918/master/arch/arm/mach-rk29/vpu_mem.uu
wget https://raw.github.com/DJNoXD/rockchip-kernel-rk2918/master/arch/arm/mach-rk29/vpu_service.uu
mv bqCurie/kernel/arch/arm/plat-rk/include/plat/vpu_service.h  bqCurie/kernel/arch/arm/plat-rk/include/plat/vpu_service.h-DELETED

remove line obj-$(CONFIG_RK29_VPU) += vpu_service.o from bqCurie/kernel/arch/arm/plat-rk/Makefile
got error:

arch/arm/mach-rk2928/devices.c:806:2: error: implicit declaration of function 'rk2928_init_i2c' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

fixed by:
                   removing line from MAKEFILE
-Werror-implicit-function-declaration \


### NEW TRIAL ###
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.8-dev build-essential zip curl libncurses5-dev zlib1g-dev ia32-libs-multiarch lib32z1-dev  gcc-multilib g++-multilib sharutils lzop sharutils

git clone https://github.com/Galland/rk30_linux_initramfs.git initramfs
cd initramfs/
gzip -dc debian-3.0.8+fkubi.cpio.gz > initramfs.cpio
git clone https://github.com/crewrktablets/rk3x_kernel_3.0.36.git

# CONFIG_VIDEO_RK29 is not set
# CONFIG_RK29_VPU is not set
# CONFIG_RK29_IPP is not set

patch [1] include/drm/drm.h

-#if defined(__linux__)
+#if defined(__KERNEL__) || defined(__linux__)
Ref: http://comments.gmane.org/gmane.linux.linaro.devel/4634
cp arch/arm/mach-rk30/include/mach/mtk_wcn_cmb_stub.h arch/arm/mach-rk2928/include/mach/

cp -a ~/rk/rk3x_kernel_3.0.36/drivers/mtk_wcn_combo/common/core/ drivers/mtk_wcn_combo/common/

### OLD NOTES ###



git clone https://github.com/DooMLoRD/android_prebuilt_toolchains.git toolchains
git clone https://github.com/olegk0/tools.git
git clone https://github.com/Galland/rk30_linux_initramfs.git initramfs
cd initramfs/
gzip -dc debian-3.0.8+fkubi.cpio.gz > initramfs.cpio
git clone https://github.com/Galland/rk3x_kernel_3.0.36.git

11 comments:

  1. Replies
    1. you're welcome. Did you succeed compiling the kernel for rk2928sdk?

      Delete
    2. wow another rk2928 user and with same tab s mine iball slide 6318i
      android_kernel_rockchip_rk2918
      can we do this on our tab using ur kernel compile notes

      and ur blog spot dont work http://androkafa.blogspot.com/2013/11/cwm-for-rk2928.html this one it says it was removed

      Delete
    3. ah i have renamed the blog, you can use this address instead http://embedhead.blogspot.com/2013/11/cwm-for-rk2928.html

      Delete
    4. hi hasan in my cwm recovery funs generic recovery for rk2928 i hav boot problem ie wen i try reboot to system it boots to recovery itself and i hav to long press power button to switch it off
      ten start it again

      Delete
    5. you can try to flash multiboot image and boot from external sd card with linux root filesystem.

      Pleas see the post http://embedhead.blogspot.com/2013/11/rockchip-unpackrepack-bootimg.html

      The details can be found on http://androtab.info/rockchip/multiboot/

      Delete
    6. kernel sources of another rk2928 device
      http://openlinux.goclever.com/R104/

      but some file missing while trying to compile kernel
      see
      https://plus.google.com/u/0/photos?pid=5980600609754158434&oid=100516412325373390957

      and dont hav device _defconfig
      but then i used rk2928_sdk_defconfig

      Delete
  2. see here http://www.freaktab.com/showthread.php?287-RockChip-ROM-Building-Tips-and-Tricks-by-Finless&p=131712&viewfull=1#post131712
    me no dev
    but he succeded

    ReplyDelete
  3. hi me too no dev i hav iball slide 6318i can u also help me with cm 10 or 11 for our device its rk2928 device i can giv u all info u want..plz

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. hi...

    i don't know how to build a kernel...

    but i need help with my tablet yk98vs-rk2926-v1.1 mali400 gsl3680 8 inch nd-r800w...

    i've searched all the internet but seem that not exist a firmware for this tablet...also on the manufacturer site don't exist nothing...

    the only firmware that partially work is: http://pan.baidu.com/share/link?shareid=602253013&uk=942987571

    but the only issue is that the screen size is 800x480 but mine is 800x600...

    result glitch...

    then i need ubuntu touch port for my tablet...

    i think is my last beach...

    please help me...

    ReplyDelete