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:8032 | Replies:5        Print     [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

35

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

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

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

This forum Credits Rules

Quick Reply Back to top Back to list