Firefly Open Source Community

Title: RK3399 Ubuntu 16.04 Kernel Module [Print This Page]

Author: SteveCheng    Time: 11/11/2017 07:17
Title: RK3399 Ubuntu 16.04 Kernel Module
Hi,

I got RK3399 with Ubuntu 16.04 running. I'm intalling linuxcan and it requires to be built as a kernel module. I didn't find any kernel header file under /usr/src,
firefly@firefly:/usr/src$ ls
v4l2loopback-0.9.1  v4l2loopback.tar.bz2


Is there any document/instruction on how to build kernel module on RK3399? Or anything on how to install linuxcan (https://www.kvaser.com/linux-drivers-and-sdk/) on RK3399 Ubuntu?

thanks,

Steve

Author: firefly_dev_740    Time: 11/13/2017 15:01
There are instructions on how to build kernel:
Build kernel for RK-3399. Read this to know how to obtain and compile kernel source files.
Build kernel for RK-3288. Refer part 5.1 only on how to build and install modules.
When building kernel, you have options to build some drivers as part of kernel or as a module. After building modules you need to install them into image you are going to use. Try it out.
Author: SteveCheng    Time: 11/14/2017 03:09
I got linux-kernel code compiled and got kernel.img and resource.img on ubuntu 16.04 host mahine. Looking at flash image instruction,
The root file system can reside on different partitions in different storage devices (eMMC, TF card or USB disk, etc). It must be specified in the kernel's command line. There is a CMDLINE in the paramter file:
CMDLINE:console=ttyFIQ0 ... mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),...,-@0x00394000(user)
Add one of below according to your need: (# and contents after are comments, no need to enter):
root=/dev/block/mtd/by-name/linuxroot        # flash partition named "linuxroot"
root=/dev/mmcblk0p1          # First partition of TF card
root=/dev/sda1               # First partition of USB disk
root=LABEL=linuxroot         # Partition whose label is "linuxroot"

Flash to Device

Please reference Flash image, choose the newly created boot.img and modified parameter files, flash to "boot" and "parameter" partitions respectively. Then the kernel update is done.
If the root filesystem image is not flashed yet, you can download the prebuilt image, or customize your own one, and flash it to the partition specified in parameter file.


I don't see any parameter.txt file generated after building kernel. I'm using TF card only for now. And there is no boot.img/recovery.img/misc.img/bootloader.bin. How to run it?

There is another tool called AndroidTool. Is it for Android only?

thanks,

Steve
Author: WajahathMM    Time: 4/18/2018 15:31
firefly_dev_740@ ? Can you reply to the previous question
Author: WajahathMM    Time: 4/18/2018 15:31
AndroidTool is for Windows.
Author: phi    Time: 6/9/2018 04:03
Hi Steve,

What receipe did you follow to boot ubuntu 16.04 that's what I want to do on  my rk3399

Thanx in advance
Cheers,
Phi

Author: enjoynyt    Time: yesterday 20:48
Escort service in Juhu always hires escorts who are educated and smart. The purpose of hiring a such a call girl is so that you can take her to any occasion if you want. Be it your office party or party with friends; she will always outstand in any gathering.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1