hi
i would like to build kernel for dragon board
from the scratch
can you give me a link or document for same
hi
i would like to build kernel for dragon board
from the scratch
can you give me a link or document for same
well, it really depends which âversionâ you are looking for⌠If you are interested in the Linaro Debian builds for DB410c, then have a look at the release notes:
http://builds.96boards.org/releases/dragonboard410c/linaro/debian/latest/
96Boards Wiki has instructions.
Note that that seems to literally be from source.
96Boards has both Android and âubuntuâ distro and includes a working kernel sources. The instructions on how to build from those trees are: Dragonboard Linux build guide. I suggest going this route since it will build an entire distribution for you and then you can modify/compile the kernel easily.
Iâm curious, how come you couldnât find the documents? Maybe 96boards needs a better documentation gateway⌠(We downloaded all the documents from Qualcomm and 96boards into a network share and I just search through them locally).
Hi Jaime,
Thanks,
I was this link
This looks very breif.
I will follow the commands mentioned in the release notes and get back.
Hi
I m facing issue when compiling kernel. I m using below command
"
Additionally, you might want or need to compile the kernel modules:
make -j4 modules KERNELRELEASE=4.4.9-linaro-lt-qcom
Below is the error
root@sobin-HP-Pavilion-dv4-Notebook-PC:/home/sobin/dragon_board/kernel# make -j4 modules KERNELRELEASE=4.4.9-linaro-lt-qcom
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 160 modules
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_queue_releaseâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_queue_initâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_mmapâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_expbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_streamoffâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_queue_errorâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_streamonâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_dqbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_wait_for_all_buffersâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_qbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_prepare_bufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_discard_doneâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_buffer_doneâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_plane_cookieâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_plane_vaddrâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_create_bufsâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_reqbufsâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_verify_memory_typeâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_core_querybufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_buffer_in_useâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-core: âvb2_debugâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-memops: âvb2_common_vm_opsâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-memops: âvb2_destroy_framevecâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-memops: âvb2_create_framevecâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ops_wait_finishâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ops_wait_prepareâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_fop_pollâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_fop_readâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_fop_writeâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_fop_releaseâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: â_vb2_fop_releaseâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_fop_mmapâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_expbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_streamoffâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_streamonâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_dqbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_qbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_querybufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_prepare_bufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_create_bufsâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_ioctl_reqbufsâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_thread_stopâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_thread_startâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_writeâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_readâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_pollâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_queue_releaseâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_queue_initâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_expbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_streamoffâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_streamonâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_dqbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_qbufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_create_bufsâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_prepare_bufâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_reqbufsâ exported twice. Previous export was in vmlinux
WARNING: drivers/media/v4l2-core/videobuf2-v4l2: âvb2_querybufâ exported twice. Previous export was in vmlinux
ERROR: âbyte_rev_tableâ [lib/zlib_deflate/zlib_deflate.ko] undefined!
ERROR: âcpu_tssâ [fs/nfsd/nfsd.ko] undefined!
ERROR: âcurrent_taskâ [fs/nfsd/nfsd.ko] undefined!
ERROR: âwarn_slowpath_nullâ [fs/nfsd/nfsd.ko] undefined!
ERROR: âwarn_slowpath_fmtâ [fs/nfsd/nfsd.ko] undefined!
ERROR: âwarn_slowpath_nullâ [fs/configfs/configfs.ko] undefined!
ERROR: â_copy_from_userâ [fs/configfs/configfs.ko] undefined!
ERROR: â_copy_from_userâ [fs/binfmt_misc.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/whiteheat.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/usb_wwan.ko] undefined!
ERROR: â_copy_from_userâ [drivers/usb/serial/usb_wwan.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/ti_usb_3410_5052.ko] undefined!
ERROR: â_copy_from_userâ [drivers/usb/serial/ti_usb_3410_5052.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/ssu100.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/quatech2.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/pl2303.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/opticon.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/mos7840.ko] undefined!
ERROR: â_copy_from_userâ [drivers/usb/serial/mos7720.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/mos7720.ko] undefined!
ERROR: â__preempt_countâ [drivers/usb/serial/keyspan_pda.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/io_ti.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/io_edgeport.ko] undefined!
ERROR: âcurrent_taskâ [drivers/usb/serial/io_edgeport.ko] undefined!
ERROR: â_copy_from_userâ [drivers/usb/serial/ftdi_sio.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/ftdi_sio.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/f81232.ko] undefined!
ERROR: âcurrent_taskâ [drivers/usb/serial/digi_acceleport.ko] undefined!
ERROR: â__preempt_countâ [drivers/usb/serial/digi_acceleport.ko] undefined!
ERROR: â_copy_to_userâ [drivers/usb/serial/ark3116.ko] undefined!
ERROR: â_copy_from_userâ [drivers/usb/serial/ark3116.ko] undefined!
ERROR: âphys_baseâ [drivers/usb/misc/usbtest.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/usb/gadget/libcomposite.ko] undefined!
ERROR: âwarn_slowpath_fmtâ [drivers/usb/gadget/libcomposite.ko] undefined!
ERROR: âcpu_tssâ [drivers/usb/gadget/function/usb_f_mass_storage.ko] undefined!
ERROR: âcurrent_taskâ [drivers/usb/gadget/function/usb_f_mass_storage.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/usb/gadget/function/usb_f_mass_storage.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/usb/gadget/function/u_serial.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/usb/gadget/function/u_ether.ko] undefined!
ERROR: â_copy_to_userâ [drivers/spi/spidev.ko] undefined!
ERROR: âcopy_user_enhanced_fast_stringâ [drivers/spi/spidev.ko] undefined!
ERROR: âcopy_user_generic_stringâ [drivers/spi/spidev.ko] undefined!
ERROR: âcopy_user_generic_unrolledâ [drivers/spi/spidev.ko] undefined!
ERROR: âcpu_tssâ [drivers/spi/spidev.ko] undefined!
ERROR: â_copy_from_userâ [drivers/spi/spidev.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/spi/spidev.ko] undefined!
ERROR: âfind_first_zero_bitâ [drivers/spi/spidev.ko] undefined!
ERROR: âbyte_rev_tableâ [drivers/net/usb/sr9800.ko] undefined!
ERROR: âbyte_rev_tableâ [drivers/net/usb/sr9700.ko] undefined!
ERROR: âbyte_rev_tableâ [drivers/net/usb/smsc95xx.ko] undefined!
ERROR: âbyte_rev_tableâ [drivers/net/usb/smsc75xx.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/net/usb/r8152.ko] undefined!
ERROR: âcpu_numberâ [drivers/net/usb/r8152.ko] undefined!
ERROR: âbyte_rev_tableâ [drivers/net/usb/r8152.ko] undefined!
ERROR: âbyte_rev_tableâ [drivers/net/usb/mcs7830.ko] undefined!
ERROR: â__preempt_countâ [drivers/net/usb/kaweth.ko] undefined!
ERROR: â__put_user_4â [drivers/net/ppp/pppox.ko] undefined!
ERROR: â_copy_from_userâ [drivers/net/ppp/pppoe.ko] undefined!
ERROR: â__put_user_4â [drivers/net/ppp/pppoe.ko] undefined!
ERROR: â__get_user_4â [drivers/net/ppp/pppoe.ko] undefined!
ERROR: â_copy_from_userâ [drivers/net/ppp/ppp_synctty.ko] undefined!
ERROR: â_copy_to_userâ [drivers/net/ppp/ppp_synctty.ko] undefined!
ERROR: â__get_user_4â [drivers/net/ppp/ppp_synctty.ko] undefined!
ERROR: â__put_user_4â [drivers/net/ppp/ppp_synctty.ko] undefined!
ERROR: âphys_baseâ [drivers/net/ppp/ppp_mppe.ko] undefined!
ERROR: â__put_user_4â [drivers/net/ppp/ppp_generic.ko] undefined!
ERROR: â__get_user_4â [drivers/net/ppp/ppp_generic.ko] undefined!
ERROR: âcurrent_taskâ [drivers/net/ppp/ppp_generic.ko] undefined!
ERROR: â_copy_to_userâ [drivers/net/ppp/ppp_generic.ko] undefined!
ERROR: â_copy_from_userâ [drivers/net/ppp/ppp_generic.ko] undefined!
ERROR: â_copy_from_userâ [drivers/net/ppp/ppp_async.ko] undefined!
ERROR: â_copy_to_userâ [drivers/net/ppp/ppp_async.ko] undefined!
ERROR: â__get_user_4â [drivers/net/ppp/ppp_async.ko] undefined!
ERROR: â__put_user_4â [drivers/net/ppp/ppp_async.ko] undefined!
ERROR: âdma_opsâ [drivers/media/v4l2-core/videobuf2-vmalloc.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/media/v4l2-core/videobuf2-vmalloc.ko] undefined!
ERROR: âioremap_nocacheâ [drivers/media/v4l2-core/videobuf2-vmalloc.ko] undefined!
ERROR: âiounmapâ [drivers/media/v4l2-core/videobuf2-vmalloc.ko] undefined!
ERROR: â_copy_from_userâ [drivers/media/v4l2-core/videobuf2-v4l2.ko] undefined!
ERROR: â_copy_to_userâ [drivers/media/v4l2-core/videobuf2-v4l2.ko] undefined!
ERROR: âcurrent_taskâ [drivers/media/v4l2-core/videobuf2-v4l2.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/media/v4l2-core/videobuf2-v4l2.ko] undefined!
ERROR: âwarn_slowpath_fmtâ [drivers/media/v4l2-core/videobuf2-core.ko] undefined!
ERROR: âwarn_slowpath_nullâ [drivers/media/v4l2-core/videobuf2-core.ko] undefined!
ERROR: âcurrent_taskâ [drivers/media/v4l2-core/videobuf-core.ko] undefined!
ERROR: â_copy_to_userâ [drivers/media/v4l2-core/videobuf-core.ko] undefined!
ERROR: â__preempt_countâ [drivers/media/usb/zr364xx/zr364xx.ko] undefined!
ERROR: â_copy_to_userâ [drivers/media/usb/uvc/uvcvideo.ko] undefined!
ERROR: â_copy_from_userâ [drivers/media/usb/uvc/uvcvideo.ko] undefined!
ERROR: â_copy_to_userâ [drivers/media/usb/stkwebcam/stkwebcam.ko] undefined!
ERROR: âcurrent_taskâ [drivers/media/usb/gspca/m5602/gspca_m5602.ko] undefined!
ERROR: â_copy_to_userâ [drivers/media/usb/gspca/gspca_main.ko] undefined!
ERROR: âcurrent_taskâ [drivers/media/usb/gspca/gspca_main.ko] undefined!
ERROR: âcurrent_taskâ [drivers/media/usb/gspca/gspca_cpia1.ko] undefined!
ERROR: âfind_first_bitâ [drivers/input/joydev.ko] undefined!
ERROR: â__get_user_4â [drivers/input/joydev.ko] undefined!
ERROR: â__put_user_1â [drivers/input/joydev.ko] undefined!
ERROR: â__put_user_4â [drivers/input/joydev.ko] undefined!
ERROR: â__put_user_8â [drivers/input/joydev.ko] undefined!
ERROR: â_copy_to_userâ [drivers/input/joydev.ko] undefined!
ERROR: â__get_user_8â [drivers/input/joydev.ko] undefined!
ERROR: â_copy_from_userâ [drivers/input/joydev.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
root@sobin-HP-Pavilion-dv4-Notebook-PC:/home/sobin/dragon_board/kernel#
Can you sugges what next. Any issue in the kernel source. Undefined errrs tells some bug in the kernel. Does it neeed to be fixed ?
Hi ,
I was trying to build the kernel for my Dragon 410 C board and I followed the exact steps mentioned in the below link
After following all the steps I am able to create the boot image (Image.gz + dtb)
But when I try to boot my board with this image I am getting following error.
fastboot boot boot-db410c.img
downloading âboot.imgââŚ
OKAY [ 0.495s]
bootingâŚ
FAILED (remote: dtb not found)
finished. total time: 0.936s
Can any one please guide me where I am doing wrong ?
It will be great help if you revert ASAP.
Thanks
Can any one please guide me where I am doing wrong ?
Did you install the 18.01 release or are you running with an older
version?
Thanks danielt for the reply
I hope you are talking about the ubuntu version , Please find the below details about my ubuntu machine
Description: ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
x86_64 bit machine
FYI : I am trying to replace the kernel on the DB_410C which is running with Android[5.1.1] on it.
Thanks
I think you need to update the bootloader (LK), the one you have does not support the appended DTB. I would suggest to download the rescue files [1] and flash LK bootloader with fastboot:
fastboot flash aboot emmc_appsboot.mbn
EDIT: This comment is not relevant if youâre platform is running Android, cf Danielâs comment below.
Afraid not, I was asking what you were running on the Dragonboard âŚ
⌠thankfully you told us that too.
Iâm afraid the guide you are following is for people running Debian GNU/Linux on their Dragonboard. The instructions will not work for AOSP (it may boot but it will break Android features since they expect a different kernel).
As far as I know there are no kernel build instructions for AOSP+DB410C but the full build guide will result in the kernel being recompiled along with everything else:
HI danielt ,
Thanks for the reply.
Is there any repository where dedicated Kernel source for AOSP is maintained?
Because it will consume more time to Download the AOSP code (As its pretty huge ~60GB)
Please let me know if you have any other alternative ?
the kernel used for the Linaro AOSP project on Dragonboard is this one:
https://git.linaro.org/landing-teams/working/qualcomm/kernel.git/log/?h=release/android/qcomlt-4.14
e.g. branch name is release/android/qcomlt-4.14, and the defconfig files we use to build are: âqcom_defconfig android-base.config android-recommended.configâ
We publish the kernel and boot image here:
http://snapshots.linaro.org/96boards/dragonboard410c/linaro/aosp/kernel/latest/
The binaries there are generated from this Jenkins job:
https://git.linaro.org/ci/job/configs.git/tree/lt-qcom-linux-aosp.yaml
If you unroll all scripts you will be able to find the instructions we use to build.
Thanks ndec. its very helpful.
@shan2911: From the version number you quoted it looks to me like you are running the Qualcomm port of AOSP, not the Linaro port. Thus I think you might encounter also problems with release/android/qcomlt-4.14 , the Qualcomm port of AOSP will not expect this kernel.
The Linaro port is still a work-in-progress and has little in the way of documentation, although there is a build guide:
https://www.96boards.org/documentation/consumer/dragonboard410c/guides/aosp.md.html
I appreciate the support
HI ,
I followed the steps mentioned in the below link
https://www.96boards.org/documentation/consumer/dragonboard410c/guides/aosp.md.html
But there is no success , I am getting the same result.[FAILED (remote: dtb not found)]
I order to make sure I built the entire AOSP , then try to boot with only boot image (fastboot boot boot.img) , for this step also I am getting the same result [[FAILED (remote: dtb not found)]
I am not sure where I am doing wrong ?
is there any other methods we can get rid of this error ? meaning building the boot image with dtb.
Reverts are much appreciated.
Note :The version of Kernel currently DB_410C board is running âLinux version 3.10.49â
The steps use appended DTB as well:
cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/apq8016-sbc.dtb > db410c-qcomlt-4.14.gz-dtb
This requires an up-to-date bootloader. Like I said, I suggest you to update LK (aboot partition).
You can also use rescue procedure to update firmware/bootloader:
Just to confirm did you follow the whole guide or just the kernel build?
(following the whole guide wonât update your boot firmware⌠you still need to do that but it will ensure you have a userspace that matches the kernel).
Hi Loic ,
Thanks for the support ,
update of LK(aboot partition ) is applicable to system running with Android also ?
Note : I flashed the aboot partition as mentioned , after the reboot my adb connection is not establishing .Looks like it got brick.
Hi Danielt ,
First I tried with only the kernel build , but failed to update the kernel
Then I tried to build the complete AOSP and tried to boot with the boot image part of this build , here also I failed.
I am totally blank , Can please some one guide me what is the reason for this fail (Eventhough we merge the dtb with the regular kernel build (Image.gz)?