[poky] [ Error ] Could not locate BSP definition witch custom machine.conf

Bruce Ashfield bruce.ashfield at gmail.com
Fri Oct 18 06:31:56 PDT 2019


On Fri, Oct 18, 2019 at 3:06 AM AshishKumar Mishra
<ashish.emailaddress at gmail.com> wrote:
>
> Hi Bruce ,
>
> Can you please let me know which all file's you meant by  " BSP definition file"

It is the kernel's meta data that I'm talking about (the .scc and .cfg
files that make up how to patch and configure the BSP).
You can find details about the components in the Yocto mega manual (it
does a better job that I can do here).

Unless you've provided a .scc file that matches for the machine you
are building, the kernel configuration has no where to start when
looking for the standard set of configuration fragments.

Cheers,

Bruce

> I think i am missing some standard aspect here.
> I was considering  machine.conf file as BSP definition file .
>
> Going through the thread you asked , seems like i have to read a few times
> to get clear understanding of discussion there due my limited knowledge as of now.
>
> Thanks a lot for your valuable input , error seems to be resolved .
>
> Thanks
> Ashish
>
>
>
>
>
>
> On Fri, Oct 18, 2019 at 1:58 AM Bruce Ashfield <bruce.ashfield at gmail.com> wrote:
>>
>> On Thu, Oct 17, 2019 at 1:00 PM AshishKumar Mishra
>> <ashish.emailaddress at gmail.com> wrote:
>> >
>> > Hi Team ,
>> >
>> > (1) I am trying to understand yocto BSP creation for which i create an
>> >      machine.conf ( used qemux86.conf )
>> > PROMPT : ls conf/machine/armour-whiplash.conf
>> > conf/machine/armour-whiplash.conf
>> >
>> > (2) I made the changes in linux recipe file on lines of qemux86
>> > PROMPT : cat recipes-kernel/linux/linux-yocto_5.0.bb | grep armour*
>> > KBRANCH_armour-whiplash  ?= "v5.0/standard/base"
>> > SRCREV_machine_armour-whiplash ?= "14b6c1fc020fa357245e9ac9c6c69d253bc7ce30"
>> > COMPATIBLE_MACHINE = "qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|armour-whiplash"
>> > KERNEL_FEATURES_append_armour-whiplash=" cfg/sound.scc cfg/paravirt_kvm.scc"
>> >
>> > PROMPT : cat recipes-kernel/linux/linux-yocto_5.0.bb | grep qemux86
>> > KBRANCH_qemux86  ?= "v5.0/standard/base"
>> > SRCREV_machine_qemux86 ?= "14b6c1fc020fa357245e9ac9c6c69d253bc7ce30"
>> > COMPATIBLE_MACHINE = "qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|armour-whiplash"
>> > KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
>> >
>> >
>> > (3) When i compile the core-image i am getting below mentioned error
>> > ERROR: linux-yocto-5.0.7+gitAUTOINC+2d838e11b0_14b6c1fc02-r0 do_kernel_metadata: Could not locate BSP definition for armour-whiplash/standard and no defconfig was provided
>> >
>>
>> You need to have a BSP definition file, which tells the kernel meta
>> data and configuration phases how to actually configure the board from
>> the collection of fragments.
>>
>> That error is telling you that you don't have a BSP definition file
>> that can be located by the tools.
>>
>> If you want to have your own machine name, but otherwise re-use the
>> qemux86 configuration, you can put: KMACHINE_armour-whiplash =
>> "qemux86", and the tools will use that as the starting point for
>> configuration.
>>
>> If you need to define your own BSP definition file, search for the
>> recent thread with this subject: "[yocto] Kernel patches pulled from
>> BSP definition file are not applied", and you'll see an example of how
>> to define one in your own layer.
>>
>> Bruce
>>
>> > Can team please provide any pointers on same as i checked that my layer has machine.conf (armour-whiplash.conf)
>> > but not sure why yocto gives error of no BSP
>> >
>> > Thanks
>> > Ashish
>> >
>> > --
>> > _______________________________________________
>> > poky mailing list
>> > poky at yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/poky
>>
>>
>>
>> --
>> - Thou shalt not follow the NULL pointer, for chaos and madness await
>> thee at its end
>> - "Use the force Harry" - Gandalf, Star Trek II



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


More information about the poky mailing list