* Confused with adding drivers to kernel via bitbake -c menuconfig
@ 2015-02-05 5:42 Alvin D.M. DIZON
2015-02-05 11:23 ` Otavio Salvador
0 siblings, 1 reply; 10+ messages in thread
From: Alvin D.M. DIZON @ 2015-02-05 5:42 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
Hello,
I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://defconfig"
I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
Thanks,
Alvin
[PCI]
Innovative Manufacturing Solutions. Professionally Delivered!
The information contained in this email is confidential and is intended for addressee(s) only. If you have received this email in error, please notify the originator immediately. Nothing in this email shall constitute an offer or acceptance leading to a legally binding contract which shall only arise from a formal written agreement between yourselves and ourselves in the form of a Purchase Order issued by us and accepted by you in writing. For the avoidance of doubt, this email shall not be construed in any way as a formal written agreement. We accept no liability for any damage arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please consider your environmental responsibility before printing this e-mail.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Confused with adding drivers to kernel via bitbake -c menuconfig
@ 2015-02-05 5:43 Alvin D.M. DIZON
[not found] ` <CACgAsMev7C2tTpHTYdQEr=Lb5mXJsi6nAHuJd-fR-4bqkreU2A@mail.gmail.com>
0 siblings, 1 reply; 10+ messages in thread
From: Alvin D.M. DIZON @ 2015-02-05 5:43 UTC (permalink / raw)
To: yocto@yoctoproject.org
Hello,
I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://defconfig"
I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
Thanks,
Alvin
[PCI]
Innovative Manufacturing Solutions. Professionally Delivered!
The information contained in this email is confidential and is intended for addressee(s) only. If you have received this email in error, please notify the originator immediately. Nothing in this email shall constitute an offer or acceptance leading to a legally binding contract which shall only arise from a formal written agreement between yourselves and ourselves in the form of a Purchase Order issued by us and accepted by you in writing. For the avoidance of doubt, this email shall not be construed in any way as a formal written agreement. We accept no liability for any damage arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please consider your environmental responsibility before printing this e-mail.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Confused with adding drivers to kernel via bitbake -c menuconfig
2015-02-05 5:42 Confused with adding drivers to kernel via bitbake -c menuconfig Alvin D.M. DIZON
@ 2015-02-05 11:23 ` Otavio Salvador
2015-02-06 2:59 ` Alvin D.M. DIZON
0 siblings, 1 reply; 10+ messages in thread
From: Otavio Salvador @ 2015-02-05 11:23 UTC (permalink / raw)
To: Alvin D.M. DIZON; +Cc: meta-freescale@yoctoproject.org
On Thu, Feb 5, 2015 at 3:42 AM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> SRC_URI += "file://defconfig"
>
> I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
You might have made it built-in, no? in this case no module will be
generated but it will be included in the kernel.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Confused with adding drivers to kernel via bitbake -c menuconfig
[not found] ` <CACgAsMev7C2tTpHTYdQEr=Lb5mXJsi6nAHuJd-fR-4bqkreU2A@mail.gmail.com>
@ 2015-02-06 1:35 ` Alvin D.M. DIZON
2015-02-06 19:21 ` Kevyn-Alexandre Paré
[not found] ` <46557CEF4ABDB54B92C59390D2741FD1BD8C9A@PCISGEX.pciltd.com.sg>
1 sibling, 1 reply; 10+ messages in thread
From: Alvin D.M. DIZON @ 2015-02-06 1:35 UTC (permalink / raw)
To: Kevyn-Alexandre Paré, yocto@yoctoproject.org
Hello Kevyn,
Thanks for your help. Do I still have to run bitbake -c cleansstate after creating the configuration fragment? Or do I go straight to bitbake linux-imx or bitbake fsl-image-x11?
Thanks
________________________________________
From: Kevyn-Alexandre Paré [kapare@rogue-research.com]
Sent: Friday, February 06, 2015 12:58 AM
To: Alvin D.M. DIZON
Subject: Re: [yocto] Confused with adding drivers to kernel via bitbake -c menuconfig
Hi Alvin,
On Thu, Feb 5, 2015 at 12:43 AM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> Hello,
>
> I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
I personally prefer this approach:
http://www.yoctoproject.org/docs/1.6.1/kernel-dev/kernel-dev.html#changing-the-configuration
second part with the .cfg
Doing this you can then validate it:
bitbake linux-imx -c configure -f
cat tmp/work/<PATH>/linux-imx/<VERSION>/build/.config | grep CONFIG_BT
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> SRC_URI += "file://defconfig"
>
> I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
>
Before putting it on your SD you could validate that btusb is in
tmp/work/<PATH>/linux-imx/<VERSION>/image
Or
grep btusb tmp/work/<PATH>/linux-imx/<VERSION>/temp/*
Hope it could help,
-KA
> Thanks,
> Alvin
> [PCI]
>
> Innovative Manufacturing Solutions. Professionally Delivered!
>
> The information contained in this email is confidential and is intended for addressee(s) only. If you have received this email in error, please notify the originator immediately. Nothing in this email shall constitute an offer or acceptance leading to a legally binding contract which shall only arise from a formal written agreement between yourselves and ourselves in the form of a Purchase Order issued by us and accepted by you in writing. For the avoidance of doubt, this email shall not be construed in any way as a formal written agreement. We accept no liability for any damage arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please consider your environmental responsibility before printing this e-mail.
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Confused with adding drivers to kernel via bitbake -c menuconfig
2015-02-05 11:23 ` Otavio Salvador
@ 2015-02-06 2:59 ` Alvin D.M. DIZON
2015-02-06 9:58 ` Nikolay Dimitrov
0 siblings, 1 reply; 10+ messages in thread
From: Alvin D.M. DIZON @ 2015-02-06 2:59 UTC (permalink / raw)
To: Otavio Salvador, meta-freescale@yoctoproject.org
Hello Otavio,
If I set the drivers to be added as built-in, does that mean that the driver would be installed and loaded in the kernel? I ran "lsmod" and didn't see the bluetooth driver loaded. Am I missing something here?
________________________________________
From: otavio.salvador@gmail.com [otavio.salvador@gmail.com] on behalf of Otavio Salvador [otavio@ossystems.com.br]
Sent: Thursday, February 05, 2015 7:23 PM
To: Alvin D.M. DIZON
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] Confused with adding drivers to kernel via bitbake -c menuconfig
On Thu, Feb 5, 2015 at 3:42 AM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> SRC_URI += "file://defconfig"
>
> I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
You might have made it built-in, no? in this case no module will be
generated but it will be included in the kernel.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[PCI]
Innovative Manufacturing Solutions. Professionally Delivered!
The information contained in this email is confidential and is intended for addressee(s) only. If you have received this email in error, please notify the originator immediately. Nothing in this email shall constitute an offer or acceptance leading to a legally binding contract which shall only arise from a formal written agreement between yourselves and ourselves in the form of a Purchase Order issued by us and accepted by you in writing. For the avoidance of doubt, this email shall not be construed in any way as a formal written agreement. We accept no liability for any damage arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please consider your environmental responsibility before printing this e-mail.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Confused with adding drivers to kernel via bitbake -c menuconfig
2015-02-06 2:59 ` Alvin D.M. DIZON
@ 2015-02-06 9:58 ` Nikolay Dimitrov
0 siblings, 0 replies; 10+ messages in thread
From: Nikolay Dimitrov @ 2015-02-06 9:58 UTC (permalink / raw)
To: Alvin D.M. DIZON; +Cc: meta-freescale@yoctoproject.org, Otavio Salvador
Hi Alvin,
On 02/06/2015 04:59 AM, Alvin D.M. DIZON wrote:
> Hello Otavio,
>
> If I set the drivers to be added as built-in, does that mean that the driver would be installed and loaded in the kernel? I ran "lsmod" and didn't see the bluetooth driver loaded. Am I missing something here?
"lsmod" lists only loaded kernel modules (.ko files under
/lib/modules/<kernelversion>). If you enable a driver as built-in, it
will be statically compiled in the kernel and won't show on "lsmod".
Better way is to look in boot messages (dmesg) to see whether the
drivers is initialized.
> ________________________________________
> From: otavio.salvador@gmail.com [otavio.salvador@gmail.com] on behalf of Otavio Salvador [otavio@ossystems.com.br]
> Sent: Thursday, February 05, 2015 7:23 PM
> To: Alvin D.M. DIZON
> Cc: meta-freescale@yoctoproject.org
> Subject: Re: [meta-freescale] Confused with adding drivers to kernel via bitbake -c menuconfig
>
> On Thu, Feb 5, 2015 at 3:42 AM, Alvin D.M. DIZON
> <adm.dizon@pciltd.com.sg> wrote:
>> I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
>>
>> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>> SRC_URI += "file://defconfig"
>>
>> I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
>
> You might have made it built-in, no? in this case no module will be
> generated but it will be included in the kernel.
>
> --
> Otavio Salvador O.S. Systems
> http://www.ossystems.com.br http://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
> [PCI]
>
> Innovative Manufacturing Solutions. Professionally Delivered!
>
> The information contained in this email is confidential and is intended for addressee(s) only. If you have received this email in error, please notify the originator immediately. Nothing in this email shall constitute an offer or acceptance leading to a legally binding contract which shall only arise from a formal written agreement between yourselves and ourselves in the form of a Purchase Order issued by us and accepted by you in writing. For the avoidance of doubt, this email shall not be construed in any way as a formal written agreement. We accept no liability for any damage arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please consider your environmental responsibility before printing this e-mail.
>
Regards,
Nikolay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Confused with adding drivers to kernel via bitbake -c menuconfig
2015-02-06 1:35 ` Alvin D.M. DIZON
@ 2015-02-06 19:21 ` Kevyn-Alexandre Paré
2015-02-10 2:03 ` Alvin D.M. DIZON
0 siblings, 1 reply; 10+ messages in thread
From: Kevyn-Alexandre Paré @ 2015-02-06 19:21 UTC (permalink / raw)
To: Alvin D.M. DIZON; +Cc: yocto@yoctoproject.org
Alvin,,
On Thu, Feb 5, 2015 at 8:35 PM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> Hello Kevyn,
>
> Thanks for your help. Do I still have to run bitbake -c cleansstate after creating the configuration fragment? Or do I go straight to bitbake linux-imx or bitbake fsl-image-x11?
Look into ${WORKDIR}/temp for what's happening
http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-WORKDIR
http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#usingpoky-debugging-taskfailures
It depends what you want to do.
-KA
On Thu, Feb 5, 2015 at 8:35 PM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> Hello Kevyn,
>
> Thanks for your help. Do I still have to run bitbake -c cleansstate after creating the configuration fragment? Or do I go straight to bitbake linux-imx or bitbake fsl-image-x11?
>
> Thanks
> ________________________________________
> From: Kevyn-Alexandre Paré [kapare@rogue-research.com]
> Sent: Friday, February 06, 2015 12:58 AM
> To: Alvin D.M. DIZON
> Subject: Re: [yocto] Confused with adding drivers to kernel via bitbake -c menuconfig
>
> Hi Alvin,
>
> On Thu, Feb 5, 2015 at 12:43 AM, Alvin D.M. DIZON
> <adm.dizon@pciltd.com.sg> wrote:
>> Hello,
>>
>> I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
>
> I personally prefer this approach:
> http://www.yoctoproject.org/docs/1.6.1/kernel-dev/kernel-dev.html#changing-the-configuration
> second part with the .cfg
>
> Doing this you can then validate it:
> bitbake linux-imx -c configure -f
>
> cat tmp/work/<PATH>/linux-imx/<VERSION>/build/.config | grep CONFIG_BT
>
>>
>> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>> SRC_URI += "file://defconfig"
>>
>> I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
>>
>
> Before putting it on your SD you could validate that btusb is in
> tmp/work/<PATH>/linux-imx/<VERSION>/image
>
> Or
>
> grep btusb tmp/work/<PATH>/linux-imx/<VERSION>/temp/*
>
> Hope it could help,
>
> -KA
>
>> Thanks,
>> Alvin
>> [PCI]
>>
>> Innovative Manufacturing Solutions. Professionally Delivered!
>>
>> The information contained in this email is confidential and is intended for addressee(s) only. If you have received this email in error, please notify the originator immediately. Nothing in this email shall constitute an offer or acceptance leading to a legally binding contract which shall only arise from a formal written agreement between yourselves and ourselves in the form of a Purchase Order issued by us and accepted by you in writing. For the avoidance of doubt, this email shall not be construed in any way as a formal written agreement. We accept no liability for any damage arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please consider your environmental responsibility before printing this e-mail.
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Confused with adding drivers to kernel via bitbake -c menuconfig
[not found] ` <46557CEF4ABDB54B92C59390D2741FD1BD8C9A@PCISGEX.pciltd.com.sg>
@ 2015-02-06 19:23 ` Kevyn-Alexandre Paré
0 siblings, 0 replies; 10+ messages in thread
From: Kevyn-Alexandre Paré @ 2015-02-06 19:23 UTC (permalink / raw)
To: Alvin D.M. DIZON, Yocto discussion list
Hi Alvin,
On Thu, Feb 5, 2015 at 11:53 PM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> I tried "cat tmp/work/<PATH>/linux-imx/<VERSION>/build/.config | grep CONFIG_BT" but there was no "build" folder inside linux-imx/<VERSION>, right after the version folder there is only bt.cfg, which is my configuration fragment. and defconfig. I have built the needed modules outside of Yocto, but I still want to try adding modules via bitbake. I have also configured the drivers as modules, not as built-in to the kernel. I'll post updates once I make some progress.
>
I should have said to look in the Build directory of linux-imx in your
${WORKDIR}
http://www.yoctoproject.org/docs/1.7.1/dev-manual/dev-manual.html#build-directory
http://www.yoctoproject.org/docs/1.7.1/kernel-dev/kernel-dev.html#modifying-source-code
-KA
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Confused with adding drivers to kernel via bitbake -c menuconfig
2015-02-06 19:21 ` Kevyn-Alexandre Paré
@ 2015-02-10 2:03 ` Alvin D.M. DIZON
2015-02-11 21:00 ` Kevyn-Alexandre Paré
0 siblings, 1 reply; 10+ messages in thread
From: Alvin D.M. DIZON @ 2015-02-10 2:03 UTC (permalink / raw)
To: Kevyn-Alexandre Paré, yocto@yoctoproject.org
From my understanding bitbake -c cleansstate deletes sstate-cache and $(WORKDIR), so if I want to replace the previous kernel configuration with a new one, I should run cleansstate right?
________________________________________
From: Kevyn-Alexandre Paré [kapare@rogue-research.com]
Sent: Saturday, February 07, 2015 3:21 AM
To: Alvin D.M. DIZON
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Confused with adding drivers to kernel via bitbake -c menuconfig
Alvin,,
On Thu, Feb 5, 2015 at 8:35 PM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> Hello Kevyn,
>
> Thanks for your help. Do I still have to run bitbake -c cleansstate after creating the configuration fragment? Or do I go straight to bitbake linux-imx or bitbake fsl-image-x11?
Look into ${WORKDIR}/temp for what's happening
http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-WORKDIR
http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#usingpoky-debugging-taskfailures
It depends what you want to do.
-KA
On Thu, Feb 5, 2015 at 8:35 PM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> Hello Kevyn,
>
> Thanks for your help. Do I still have to run bitbake -c cleansstate after creating the configuration fragment? Or do I go straight to bitbake linux-imx or bitbake fsl-image-x11?
>
> Thanks
> ________________________________________
> From: Kevyn-Alexandre Paré [kapare@rogue-research.com]
> Sent: Friday, February 06, 2015 12:58 AM
> To: Alvin D.M. DIZON
> Subject: Re: [yocto] Confused with adding drivers to kernel via bitbake -c menuconfig
>
> Hi Alvin,
>
> On Thu, Feb 5, 2015 at 12:43 AM, Alvin D.M. DIZON
> <adm.dizon@pciltd.com.sg> wrote:
>> Hello,
>>
>> I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
>
> I personally prefer this approach:
> http://www.yoctoproject.org/docs/1.6.1/kernel-dev/kernel-dev.html#changing-the-configuration
> second part with the .cfg
>
> Doing this you can then validate it:
> bitbake linux-imx -c configure -f
>
> cat tmp/work/<PATH>/linux-imx/<VERSION>/build/.config | grep CONFIG_BT
>
>>
>> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>> SRC_URI += "file://defconfig"
>>
>> I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
>>
>
> Before putting it on your SD you could validate that btusb is in
> tmp/work/<PATH>/linux-imx/<VERSION>/image
>
> Or
>
> grep btusb tmp/work/<PATH>/linux-imx/<VERSION>/temp/*
>
> Hope it could help,
>
> -KA
>
>> Thanks,
>> Alvin
>> [PCI]
>>
>> Innovative Manufacturing Solutions. Professionally Delivered!
>>
>> The information contained in this email is confidential and is intended for addressee(s) only. If you have received this email in error, please notify the originator immediately. Nothing in this email shall constitute an offer or acceptance leading to a legally binding contract which shall only arise from a formal written agreement between yourselves and ourselves in the form of a Purchase Order issued by us and accepted by you in writing. For the avoidance of doubt, this email shall not be construed in any way as a formal written agreement. We accept no liability for any damage arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please consider your environmental responsibility before printing this e-mail.
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Confused with adding drivers to kernel via bitbake -c menuconfig
2015-02-10 2:03 ` Alvin D.M. DIZON
@ 2015-02-11 21:00 ` Kevyn-Alexandre Paré
0 siblings, 0 replies; 10+ messages in thread
From: Kevyn-Alexandre Paré @ 2015-02-11 21:00 UTC (permalink / raw)
To: Alvin D.M. DIZON; +Cc: yocto@yoctoproject.org
Hi,
On Mon, Feb 9, 2015 at 9:03 PM, Alvin D.M. DIZON
<adm.dizon@pciltd.com.sg> wrote:
> From my understanding bitbake -c cleansstate deletes sstate-cache and $(WORKDIR), so if I want to replace the previous kernel configuration with a new one, I should run cleansstate right?
Yes bitbake <packagename> -c cleansstate will delete package cache & WORKDIR .
After you create you layer, add your bbappend file and add config in
defconfig.cfg simply bitbake <packagename> and it will detect changes
and process all tasks required by the package.
You can validate in your WORKDIR to validate the change
hmm I just notice that adding CONFIG_BT=m, when it was =y, in
defconfig.cfg didn't change it even tried cleansstate. But it worked
if I copy the original .config to my bbappend and change it inside...
I'm with yocto 1.7.1
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "wandboard-quad"
DISTRO = "poky"
DISTRO_VERSION = "1.7.1"
-KA
> ________________________________________
> From: Kevyn-Alexandre Paré [kapare@rogue-research.com]
> Sent: Saturday, February 07, 2015 3:21 AM
> To: Alvin D.M. DIZON
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] Confused with adding drivers to kernel via bitbake -c menuconfig
>
> Alvin,,
>
> On Thu, Feb 5, 2015 at 8:35 PM, Alvin D.M. DIZON
> <adm.dizon@pciltd.com.sg> wrote:
>> Hello Kevyn,
>>
>> Thanks for your help. Do I still have to run bitbake -c cleansstate after creating the configuration fragment? Or do I go straight to bitbake linux-imx or bitbake fsl-image-x11?
>
> Look into ${WORKDIR}/temp for what's happening
> http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-WORKDIR
> http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#usingpoky-debugging-taskfailures
>
> It depends what you want to do.
>
> -KA
>
> On Thu, Feb 5, 2015 at 8:35 PM, Alvin D.M. DIZON
> <adm.dizon@pciltd.com.sg> wrote:
>> Hello Kevyn,
>>
>> Thanks for your help. Do I still have to run bitbake -c cleansstate after creating the configuration fragment? Or do I go straight to bitbake linux-imx or bitbake fsl-image-x11?
>>
>> Thanks
>> ________________________________________
>> From: Kevyn-Alexandre Paré [kapare@rogue-research.com]
>> Sent: Friday, February 06, 2015 12:58 AM
>> To: Alvin D.M. DIZON
>> Subject: Re: [yocto] Confused with adding drivers to kernel via bitbake -c menuconfig
>>
>> Hi Alvin,
>>
>> On Thu, Feb 5, 2015 at 12:43 AM, Alvin D.M. DIZON
>> <adm.dizon@pciltd.com.sg> wrote:
>>> Hello,
>>>
>>> I would like to the generic USB bluetooth driver "btusb" to my i.MX6Q SABRE SD, so that my USB Bluetooth dongle(Cambridge Silicon Radio). Upon reading https://community.freescale.com/docs/DOC-100847 I enabled the Bluetooth subsystem support, RFCOMM, BNEP, and HIDP, as well as the HCI USB driver. I saved the .config file and copied it to the directory where my Linux recipe is (linux-imx_3.10.17.bb). I then renamed my .config file into defconfig, made a new folder called "files" and placed the defconfig in it. I also made a .bbappend file that contained
>>
>> I personally prefer this approach:
>> http://www.yoctoproject.org/docs/1.6.1/kernel-dev/kernel-dev.html#changing-the-configuration
>> second part with the .cfg
>>
>> Doing this you can then validate it:
>> bitbake linux-imx -c configure -f
>>
>> cat tmp/work/<PATH>/linux-imx/<VERSION>/build/.config | grep CONFIG_BT
>>
>>>
>>> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>>> SRC_URI += "file://defconfig"
>>>
>>> I then ran "bitbake -c cleansstate linux-imx", after that I ran "bitbake fsl-image-x11". I flashed the resulting .sdcard file to an SD card, booted up my board, but found no trace of btusb. I tried doing "bitbake -f -c compile linux-imx" and then "bitbake -f -c deploy linux-imx", and copied the resulting uImage to my SD card's /media/Boot folder, but still no trace of btusb. I checked the tar archive for the kernel modules found in the /tmp/deploy/images/imx6qsabresd folder, and found two files called modules.order and modules.builtin, the btusb driver is listed in the modules.builtin file, but not mentioned in the modules.order file, I have also tried compiling the driver as module, and then ran the same commands as listed in the said link, but could not find the module. What am I doing wrong here? Any help will be will be appreciated, since I am new to Linux and the Yocto Project.
>>>
>>
>> Before putting it on your SD you could validate that btusb is in
>> tmp/work/<PATH>/linux-imx/<VERSION>/image
>>
>> Or
>>
>> grep btusb tmp/work/<PATH>/linux-imx/<VERSION>/temp/*
>>
>> Hope it could help,
>>
>> -KA
>>
>>> Thanks,
>>> Alvin
>>> [PCI]
>>>
>>> Innovative Manufacturing Solutions. Professionally Delivered!
>>>
>>> The information contained in this email is confidential and is intended for addressee(s) only. If you have received this email in error, please notify the originator immediately. Nothing in this email shall constitute an offer or acceptance leading to a legally binding contract which shall only arise from a formal written agreement between yourselves and ourselves in the form of a Purchase Order issued by us and accepted by you in writing. For the avoidance of doubt, this email shall not be construed in any way as a formal written agreement. We accept no liability for any damage arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please consider your environmental responsibility before printing this e-mail.
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-02-11 21:00 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 5:42 Confused with adding drivers to kernel via bitbake -c menuconfig Alvin D.M. DIZON
2015-02-05 11:23 ` Otavio Salvador
2015-02-06 2:59 ` Alvin D.M. DIZON
2015-02-06 9:58 ` Nikolay Dimitrov
-- strict thread matches above, loose matches on Subject: below --
2015-02-05 5:43 Alvin D.M. DIZON
[not found] ` <CACgAsMev7C2tTpHTYdQEr=Lb5mXJsi6nAHuJd-fR-4bqkreU2A@mail.gmail.com>
2015-02-06 1:35 ` Alvin D.M. DIZON
2015-02-06 19:21 ` Kevyn-Alexandre Paré
2015-02-10 2:03 ` Alvin D.M. DIZON
2015-02-11 21:00 ` Kevyn-Alexandre Paré
[not found] ` <46557CEF4ABDB54B92C59390D2741FD1BD8C9A@PCISGEX.pciltd.com.sg>
2015-02-06 19:23 ` Kevyn-Alexandre Paré
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.