Customize linux kernel for dragon410


#1

I would appreciate if I can get your assistance on how to get and customize the kernel source code on the dragon410 board.
I did the following:

  1. Build linux kernel
    git clone -n http://git.linaro.org/landing-teams/working/qualcomm/kernel.git
    cd kernel
    git checkout -b kernel-15.09 ubuntu-qcom-dragonboard410c-15.09
    export ARCH=arm64
    export CROSS_COMPILE=<path to your GCC cross compiler>/aarch64-linux-gnu-git cherry-pick -n e4df9dd88bb3b37d84db277e0f6a5d59cf5ac737
    make defconfig distro.config
    make -j4 Image dtbs KERNELRELEASE=4.2.0-linaro-lt-qcom

  2. Install the following tools:
    sudo apt-get install device-tree-compiler
    git clone git://codeaurora.org/quic/kernel/skales

  3. The boot image consists of the table of device tree (dt.img), the kernel image (Image) and an init ramdisk image.
    ./skales/dtbTool -o dt.img -s 2048 arch/arm64/boot/dts/qcom/

  4. Get a ram disk image from the release
    wget http://builds.96boards.org/releases/dragonboard410c/linaro/ubuntu/15.09/initrd.img-4.2.0-linaro-lt-qcom

  5. Make boot image
    ./skales/mkbootimg --kernel arch/arm64/boot/Image
    –ramdisk initrd.img-4.2.0-linaro-lt-qcom
    –output boot-db410c.img
    –dt dt.img
    –pagesize 2048
    –base 0x80000000
    –cmdline “root=/dev/disk/by-partlabel/rootfs rw rootwait console=ttyMSM0,115200n8”

Assuming I have now built a boot image called boot-db410c.img,

Questions:

The boot-db410c.img is only 17M byte size (is that right?)

what shall I do next? I’m not sure I understand where the customized kernel is

Shall I use the fastboot (causes the system to stuck on device)
sudo fastboot boot boot-db410c.img

How to install the customized kernel?

Thanks

Ilan


#2

Hi,

Is there any reason why you are using that release? Maybe you could consider upgrading to 16.03 and follow the instructions in the wiki page.

Do let me know if this is an option for you; otherwise I will dig some of my upgrade scripts and post them here.


#3

Hi,

This is an option or me, I will follow the instructions in the wiki page


#4

Hi,
Regarding the instructions on the wiki page please advise
step 4 - after cloning…
I guess the directory is linux and not kernel linux instead of kernel

Step 5 - Set the right kernel .config file - o.k.

step 6 - Build kernel image: I received the following error:
HOSTCC scripts/extract-cert
scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory
#include <openssl/bio.h>
^
compilation terminated.
make[1]: *** [scripts/extract-cert] Error 1


#5

I don’t have that problem in my development machine (just did a clean build)
All I can suggest is to perhaps click on the first link of this search


#6

Hi,

Regarding the instructions on the wiki page Step 13,

Please advise where shall I find initrd.img-4.4.0+ I guess the file name is:
initrd.img-4.4.0-linaro-lt-qcom

Thanks,

Ilan


#7

Hi all,

We managed to create the Boot image to our DragonBoard™ 410c. thanks.

anyway, while trying the sudo fastboot flash boot boot.img

fastboot: command not found

please advise…


#8

Erm… you have installed android tools?
sudo apt-get install android-tools-adb android-tools-fastboot


#9

thanks,

please advise the system is stuck on < waiting for device >


#10

Make sure you boot DB410c in fastboot mode. For more info, please see the instructions in link below;

http://www.96boards.org/db410c-getting-started/Installation/LinuxFastboot.md/

P.S: Also make sure you’re executing ./flashall with sudo