Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Kernel 3.14 or above for ubuntu 14.04 is required

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/4/2016 15:35:51      1#
Sorry @tedd77 .  We'd like to listen to your advice about Linux development for Firefly.

Would you like the mainline kernel running on the board and more recent Linux distribution?
Or something else?
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/12/2016 11:27:53      2#
Please read the wiki page here:

http://wiki.t-firefly.com/index. ... 288/Build_kernel/en

Feel free to post any problem you meet here.
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/15/2016 14:11:00      3#
Yes, you have to replace it with the directory of your compiling toolchain.

Things will be easier if you have our Android SDK, which contains the toolchain.
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/16/2016 09:36:24      4#
Last edited by busybee In 3/16/2016 09:41 Editor

As stated in the build kernel wiki page, you can go to

  https://android.googlesource.com ... s/android-4.4.2_r1/

to download the toolchain by:

  cd /PATH/TO/kernel
  cd ..
  mkdir prebuilts
  wget "https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/+archive/refs/tags/android-4.4.2_r1.tar.gz"
  tar xvf android-4.4.2_r1.tar.gz -C prebuilts/





Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/17/2016 17:55:41      5#
There's no need to use sudo to compile the kernel.

I suggest you to start with the clean kernel source code, and run these commands in the new kernel directory:

export ARCH=arm
export CROSS_COMPILE=$HOME/prebuilts/bin/arm-eabi-
make firefly-rk3288-linux_defconfig
make -j8 firefly-rk3288.img

The kernel needs to locate "${CROSS_COMPILE}gcc" to compile source codes.
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/18/2016 09:30:30      6#
I suggest that you extract the parameter file from your working board.

First install rkflashkit following this link:
  http://wiki.t-firefly.com/index. ... image/en#rkflashkit

Then:
   sudo rkflashkit backup @parameter parameter.txt

The info in parameter partition is saved as parameter.txt.

Edit parameter.txt as you pleased.  Generally speaking, you only need
to modify the partition layout prefixed with 'mtdparts='.

To flash back the parameter.txt to the board, run:
  sudo rkflashkit flash @parameter parameter.txt
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/21/2016 09:45:58      7#
It seems that androidtool did not read the address from parameter info on board. You need to manully edit that address to match your parameter file.

Or you can use rkflashkit. It has both gui and command line, and it'll fetch the parition first from your board.

Simply run:
   sudo rkflashkit

to launch gui, or:
   sudo rkflashkit flash @boot /PATH/TO/boot.img
   sudo rkflashkit flash @resource /PATH/TO/resource.img

to update the boot.img(kernel+initramfs) and resource.img(logo+kernel dtb).


Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/24/2016 15:37:33      8#
Hi @tedd77, what specific feature you'd like from kernel newer than 3.10 ?
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/25/2016 18:03:08      9#
According to https://www.kernel.org/ ,  version 3.10 is the LTS version, and it is the vendor version which is feature rich and stable.

We did not pack a linux-headers-xxx package, and you can not apt-get that from official repository.
This package only contains the linux kernel headers.

Since you have the kernel source code. It is farely easy build the module from it, by speicifying the kernel source directory in the command line. Please see the module readme.
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/30/2016 15:30:49      10#
In your prevous post, you mention that
I wanted to compile some voice codecs and for that I should be able to run the following command without getting any errors.
"

The compiling is very specific. The readme should be in  doc of the voice codecs.
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