All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: "Dr. Markus Eich" <markus.eich@dfki.de>, <yocto@yoctoproject.org>
Subject: Re: How to select defconfig for kernel build with yocto/bitbake
Date: Fri, 11 Jul 2014 10:29:59 -0400	[thread overview]
Message-ID: <53BFF4E7.6090308@windriver.com> (raw)
In-Reply-To: <53BFA687.2030402@dfki.de>

On 14-07-11 04:55 AM, Dr. Markus Eich wrote:
> I have tried the different task separately.
>
> do_fetch works, no recursive link created
> do_kernel_checkout works, no recursive link created
> do_kernel_configme works, no recursive link created
> do_compile works, no recursive link created
> do_compile_kernelmodules works, no recursive link created
> do_install works, no recursive link created

There's no recursive link, but is the arch-release link
created, but pointing somewhere else ?

>
> do_package : Here it crashes. Th package subfolder is created and here
> it creates the recursive link within the subfolder.
>
> What does do_package do in detail? How can I further analyze the error.

Interesting. There's nothing custom in the kernel for packaging, and
nothing that I can think would be creating that symlink.

No good ideas at the moment, outside of pinpointing exactly where the
link is created, and when it transitions to a recursive one .. and
I'd do that by instrumentation.

Bruce

>
> /Markus
>
>
>
>
> On 10.07.2014 17:46, Bruce Ashfield wrote:
>> On 14-07-10 07:11 AM, Dr. Markus Eich wrote:
>>> Thank you Bruce, that did the trick. But I am facing a new problem while
>>> using bitbake for the build process.
>>>
>>> I have checked to build the odroid kernel with a standard crosscompiler
>>> tool chain and it works without any problems.
>>>
>>> When I do the same with the bitbake toolchain (bitbake virtual/kernel),
>>> it somehow creates a recursive link in the folder
>>>
>>> package/usr/src/kernel/drivers/gpu/arm/mali400/ump/arch/arch-release ->
>>> arch-release
>>>
>>> This causes a crash in the build system.
>>>
>>> Compilation runs fine though. This error seems to be within do_package.
>>> I have removed the link, but somehow it is created automatically.
>>>
>>> Any ideas?
>>
>> Nothing off the top of my head. That link would be created by the kernel
>> build, and not by bitbake or the oe-core kernel build classes.
>>
>> I'd start by looking at the kernel's makefiles and seeing where the
>> link is being created.
>>
>> Do specific tasks work ? i.e. is that happening during unpack/patch, or
>> during compilation.
>>
>> Bruce
>>
>>>
>>> /Markus
>>>
>>>
>>>
>>> On 09.07.2014 14:44, Bruce Ashfield wrote:
>>>> On 14-07-09 05:38 AM, Dr. Markus Eich wrote:
>>>>> Dear all,
>>>>>
>>>>> I work on the process to compile odroid xu kernel with yocto/bitbake
>>>>>
>>>>> In the kernel sources (from hardkernel) I have the corresponding
>>>>> defconfig file, i.e. in the git folder
>>>>> /arch/arm/configs/odroidxu_ubuntu_defconfig.
>>>>>
>>>>> How can I tell bitbake in my recipe to use
>>>>> "odroidxu_ubuntu_defconfig"?
>>>>
>>>> To trigger the oe-core kernel processing to use the defconfig, you need
>>>> to put that defconfig in your SRC_URI.
>>>>
>>>> Which means you should grab a copy of that from the kernel tree, and
>>>> in the same directory structure as your kernel recipe.
>>>>
>>>> See meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb for an
>>>> example.
>>>>
>>>> Cheers,
>>>>
>>>> Bruce
>>>>
>>>>
>>>>>
>>>>> My recipe looks as follow:
>>>>>
>>>>> ===
>>>>> require recipes-kernel/linux/linux-yocto.inc
>>>>>
>>>>> KERNEL_IMAGETYPE = "uImage"
>>>>>
>>>>> COMPATIBLE_MACHINE = "odroid-xu"
>>>>>
>>>>> LINUX_VERSION = "3.4.91"
>>>>> LINUX_VERSION_EXTENSION = "-custom"
>>>>>
>>>>> FILESEXTRAPATHS_prepend := "${THISDIR}/linux-hardkernel-3.4:"
>>>>>
>>>>> S = "${WORKDIR}/git"
>>>>>
>>>>> # from where to fetch the kernel
>>>>> KERNEL_REPO_OWNER ??= "hardkernel"
>>>>> KERNEL_REPO_URI ??= "git://github.com/${KERNEL_REPO_OWNER}/linux.git"
>>>>> KBRANCH = "odroidxu-3.4.y"
>>>>>
>>>>> SRCREV = "${AUTOREV}"
>>>>>
>>>>> KV = "3.4.91"
>>>>> PV = "${KV}+gitr${SRCPV}"
>>>>> LOCALVERSION ?= ""
>>>>>
>>>>>
>>>>> SRC_URI = " \
>>>>>    ${KERNEL_REPO_URI};nocheckout=1;branch=${KBRANCH} \
>>>>> "
>>>>>
>>>>> PACKAGES =+ "kernel-headers"
>>>>> FILES_kernel-headers = "${exec_prefix}/src/linux*"
>>>>> ===
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Markus
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>



      reply	other threads:[~2014-07-11 14:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09  9:38 How to select defconfig for kernel build with yocto/bitbake Dr. Markus Eich
2014-07-09 11:33 ` Sathish Kumar Balasubramaniam -ERS, HCL Tech
2014-07-09 12:09   ` Dr. Markus Eich
2014-07-09 12:23     ` Sathish Kumar Balasubramaniam -ERS, HCL Tech
2014-07-09 12:29     ` Sathish Kumar Balasubramaniam -ERS, HCL Tech
2014-07-09 12:41       ` Dr. Markus Eich
2014-07-09 12:44 ` Bruce Ashfield
2014-07-10 11:11   ` Dr. Markus Eich
2014-07-10 15:46     ` Bruce Ashfield
2014-07-11  8:55       ` Dr. Markus Eich
2014-07-11 14:29         ` Bruce Ashfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53BFF4E7.6090308@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=markus.eich@dfki.de \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.