Good news! I’ve just read Rockchip RK3188 Linux source code has just been released via Rikomagic, and Alok Sinha, the main maintainer of RK3066 source code, has already imported into github, and we should soon see a PicUntu image for RK3188 mini PCs.
Let’s have a look:
1 2 |
git clone git://github.com/aloksinha2001/Linux3188.git cd Linux3188 |
[Update: you may have to run “sudo apt-get install libc6-i386” before running make_kernel_ruikemei.sh below, as mkkrnlimg is a 32-bit binary]
Usually, I immediately look into arch/arm/configs, but this time, there’s a “funny” script called make_kernel_ruikemei.sh, and .config already have some CONFIG_RK3188, so let’s run it:
1 2 3 |
export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf- ./make_kernel_ruikemei.sh |
After just over a minute, success!:
1 2 3 4 5 6 7 8 9 10 |
LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map OBJCOPY arch/arm/boot/Image Kernel: arch/arm/boot/Image is ready mkkrnlimg V20120220 cmd:/home/jaufranc/edev/sandbox/rk3188/Linux3188/arch/arm/boot/Image /home/jaufranc/edev/sandbox/rk3188/Linux3188/kernel.img [(null)] kernel Image:/home/jaufranc/edev/sandbox/rk3188/Linux3188/kernel.img for mid is ready. Image: kernel.img is ready |
This kernel image is for Android only, and there’s a little work to modify it as a “pure” Linux kernel, so that it can be used to boot PicUnutu for RK3188.
Let’s go back to arch/arm/configs, and we’ll find several RK3188 configs:
- rk3168_86v_defconfig
- rk3188_dongle_defconfig
- rk3188_ds1006h_defconfig
- rk3188_ds1006h_v1_0_defconfig
- rk3188_hotdog_defconfig
- rk3188_LR097_defconfig
- rk3188_magicwand_defconfig
- rk3188_steak_defconfig
However, in arch/arm/mach, there are only board files for rk3188-box and rk3188-ds1006h.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
That’s great, i’m looking forward to a usable archlinux arm version.
The RK3168 boards (along with the latest for RK3066) are located in arch/arm/mach-rk30
I guess this is due to their also being a dual-core.
RK3066 please!
Hi
Which rk3118 device should I buy To get best community support ?
@qwiqooq
The source for RK3066 has been available for a while. The most active repo must be https://github.com/aloksinha2001/picuntu-3.0.8-alok
@tom
For Android support, check out http://www.armtvtech.com/armtvtechforum/viewforum.php?f=206 or http://www.freaktab.com/forumdisplay.php?134-RK3188-Devices. It seems now Tronmsart T428 is the device with most activity.
For Linux support, you may want to wait a bit, probably one of the device with Realtek Wi-Fi.
How did you get the screen of the installer or what ever it’s called. I did this on my MK808 that has picuntu on it. I love it to run on the MK908 or RK3188 what they call it. Here what my command lines look like: “root@small4:~/Linux3188# ./make_kernel_ruikemei.sh ************* rm logo_linux_clut224 ************* *********************** copy logo_linux_clut224.ppm *********************** *********************** make kernel.img *********************** HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf –silentoldconfig Kconfig CHK include/linux/version.h UPD include/linux/version.h HOSTCC scripts/kallsyms HOSTCC scripts/bmptologo HOSTCC scripts/conmakehash CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig scripts/bmptologo.c: In function âwrite_footerâ: scripts/bmptologo.c:247:3: warning: format â%ldâ expects argument of type âlong intâ, but… Read more »
@Raymond Day
You’d have to check what causes:
“/root/Linux3188/scripts/gen_initramfs_list.sh: Cannot open ‘../initramfs/initramfs.cpio’”
But if you just want to install Linux on RK3188, you don’t need to build it yourself unless you want to.
http://www.cnx-software.com/2013/06/15/ubuntu-12-04-now-boots-on-rockchip-rk3188-mini-pcs-t428-mk908-rikomagic-mk802-iv/
Yet, this is still working in progress, and AFAIK a Pictuntu RK3188 image has not been released yet.
drink@alexander:~/Software/src/Linux3188$ ./make_kernel_ruikemei.sh
*************
rm logo_linux_clut224
*************
***********************
copy logo_linux_clut224.ppm
***********************
***********************
make kernel.img
***********************
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h’ is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
/opt/src/Linux3188/scripts/gen_initramfs_list.sh: Cannot open ‘../initramfs/initramfs.cpio’
make[1]: *** [usr/initramfs_data.cpio.gz] Error 1
make: *** [usr] Error 2
make: *** Waiting for unfinished jobs….
@Martin Espinoza
You need to check the full log for errors. It’s possible one dependency is not installed.
@Martin Espinoza
I solved this problem following http://www.sysresccd.org/forums/viewtopic.php?f=25&t=3165&start=0
I removed the content in .config of CONFIG_INITRAMFS_SOURCE
Hey guys, what went wrong, if the output is like that:
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
make: *** [kernel.img] Fehler 127
I have a Neo x7 and would like to compile a wheezy.
@thehid
Scroll up to find the error, or run “make”, not “make -jx” to see the error at the end.
You would better use Minix SDK instead of the code here, as their kernel will exactly match their hardware.
You should be able to use instructions adapted from to http://www.cnx-software.com/2014/01/27/getting-started-with-raxda-rock-how-to-generate-and-flash-ubuntu-saucy-server-and-desktop-images/ to run Debian Wheezy on Neo X7.
@Jean-Luc Aufranc (CNXSoft) Hi cnxsoft, thank you for the fast reply. Can I use the instructions for the raxda rock also for me neo x7? I’m not familiar with with kernel compiling and image construction. Do you know a good tutorial for building images for neo x7? The last lines of my make command, doesnt show error: LD [M] sound/core/seq/snd-seq.ko CC sound/usb/misc/snd-ua101.mod.o LD [M] sound/usb/misc/snd-ua101.ko HOSTCC firmware/ihex2fw IHEX2FW firmware/emi26/loader.fw IHEX2FW firmware/emi26/firmware.fw IHEX2FW firmware/emi26/bitstream.fw IHEX2FW firmware/emi62/loader.fw IHEX2FW firmware/emi62/bitstream.fw IHEX2FW firmware/emi62/spdif.fw IHEX2FW firmware/emi62/midi.fw IHEX firmware/ti_3410.fw IHEX firmware/ti_5052.fw IHEX firmware/mts_cdma.fw IHEX firmware/mts_gsm.fw IHEX firmware/mts_edge.fw H16TOFW firmware/edgeport/boot.fw H16TOFW firmware/edgeport/boot2.fw H16TOFW firmware/edgeport/down.fw H16TOFW firmware/edgeport/down2.fw IHEX… Read more »
@thehid
So the build managed to complete….
Yes, the instructions for Radxa Rock and Neo X7 will be very similar because they both use RK3188, but you need to use the minix SDK (they’ve released it for the UI competition) to build the kernel (and boot.img), and the rest should be about the same.
@Jean-Luc Aufranc (CNXSoft)
I needed to install libc6-i386 to get the 32-bit mkkrnlimg to work.
Gave me the [kernel.img] error 127, before.
@stefan
Thanks. I’ll update the post.
I get this error at the end when I compile the kernel. Could you please update me.
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
/mkkrnlimg: cannot execute binary file
make: *** [kernel.img] Error 126
@dhruv
mkkrnimg cannot run… Are you building the kernel an x86/x86-64 machine or directly in a RK3188 development board ?
The instructions above are for cross-compiling in a Linux PC.
how do I install linux on a Satechi tv box? it has a RK3188