Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

RK3399 Ubuntu 16.04 Kernel Module

35

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
35

RK3399 Ubuntu 16.04 Kernel Module

Posted at 11/11/2017 07:17:38      View:8006 | Replies:5        Print      Only Author   [Copy Link] 1#
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
Reply

Use props Report

96

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
96
Posted at 11/13/2017 15:01:41        Only Author  2#
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.
Reply

Use props Report

35

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
35
Posted at 11/14/2017 03:09:42        Only Author  3#
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
Reply

Use props Report

32

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
32
Posted at 4/18/2018 15:31:02        Only Author  4#
firefly_dev_740@ ? Can you reply to the previous question
Reply

Use props Report

32

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
32
Posted at 4/18/2018 15:31:27        Only Author  5#
AndroidTool is for Windows.
Reply

Use props Report

31

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
31
Posted at 6/9/2018 04:03:54        Only Author  6#
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
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list