All of lore.kernel.org
 help / color / mirror / Atom feed
* Altera Cyclone V DTB origin
@ 2015-05-18  9:41 Steffen Schuetz
  2015-05-18 12:12 ` Steffen Schuetz
  0 siblings, 1 reply; 4+ messages in thread
From: Steffen Schuetz @ 2015-05-18  9:41 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 974 bytes --]

Hi,

I build a customized Linux image using Yocto Daisy - we need gcc >= 4.8
- following the instructions at
http://rocketboards.org/foswiki/Documentation/YoctoDoraBuildWithMetaAltera .
Besides the zImage and rootfs the build process outputs an .dtb file.
Now, in order to get the FPGA fabric involved, I'd have to come up with
a modified dts and build it.
That's where I'm a bit lost in the blur. I can not figure out where the
generated dtb is coming from? What's the mechanism behind? I cannot find
any .dts nor .dtb in the meta-altera layer.

Besides that I realized that if I use the dtb that shipped with the
board with the "daisy" kernel, the boot process gets stuck at "Waiting
for root device /dev/mmcblk0p3..." The "shipped" kernel is version 3.8.0
while the "daisy" one is 3.10.31-ltsi.
Was there a change in the device tree layout as the "old" one doesn't
work with the "daisy" kernel?


Thanks in advance!

Regards,
Steffen

-- 




[-- Attachment #1.2: schuetz.vcf --]
[-- Type: text/x-vcard, Size: 385 bytes --]

begin:vcard
fn:Dipl.-Ing. Steffen Schuetz
n:Schuetz;Steffen
org:TU Kaiserslautern;AG Robotersysteme, FB Informatik
adr:Gottlieb-Daimler-Str., Geb. 48;;Postfach 3049;Kaiserslautern;Rheinland-Pfalz;67663;Germany
email;internet:schuetz@cs.uni-kl.de
tel;work:+49 631 205 2579
tel;fax:+49 631 205 2640
x-mozilla-html:FALSE
url:http://agrosy.cs.uni-kl.de
version:2.1
end:vcard


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Altera Cyclone V DTB origin
  2015-05-18  9:41 Altera Cyclone V DTB origin Steffen Schuetz
@ 2015-05-18 12:12 ` Steffen Schuetz
  2015-05-18 14:56   ` Smith, Virgil
  0 siblings, 1 reply; 4+ messages in thread
From: Steffen Schuetz @ 2015-05-18 12:12 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]

Hi,

I found that the dtb is obtained from a git reposirtory during the build
and stored under
build/tmp/work/socfpga_cyclone5-poky-linux-gnueabi/linux-altera-ltsi/3.10-r1/git/arch/arm/boot/dts/
I succesfully build a custom dtb following these suggestions:
https://community.freescale.com/thread/325219

Is there a way to do this using a bitbake mechanism?

Thanks!

Best Regards,
Steffen

On 05/18/2015 11:41 AM, Steffen Schuetz wrote:
> Hi,
>
> I build a customized Linux image using Yocto Daisy - we need gcc >= 4.8
> - following the instructions at
> http://rocketboards.org/foswiki/Documentation/YoctoDoraBuildWithMetaAltera .
> Besides the zImage and rootfs the build process outputs an .dtb file.
> Now, in order to get the FPGA fabric involved, I'd have to come up with
> a modified dts and build it.
> That's where I'm a bit lost in the blur. I can not figure out where the
> generated dtb is coming from? What's the mechanism behind? I cannot find
> any .dts nor .dtb in the meta-altera layer.
>
> Besides that I realized that if I use the dtb that shipped with the
> board with the "daisy" kernel, the boot process gets stuck at "Waiting
> for root device /dev/mmcblk0p3..." The "shipped" kernel is version 3.8.0
> while the "daisy" one is 3.10.31-ltsi.
> Was there a change in the device tree layout as the "old" one doesn't
> work with the "daisy" kernel?
>
>
> Thanks in advance!
>
> Regards,
> Steffen



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Altera Cyclone V DTB origin
  2015-05-18 12:12 ` Steffen Schuetz
@ 2015-05-18 14:56   ` Smith, Virgil
  2015-05-19  3:07     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Smith, Virgil @ 2015-05-18 14:56 UTC (permalink / raw)
  To: Steffen Schuetz, yocto@yoctoproject.org

Perhaps someone could improve on this, but
you can build a dtb from a source dts using a bbappend for your linux kernel.
1. drop a copy of your new dts in ${S}/arch/arm/boot/dts
2. add the name of your dtb to the KERNEL_DEVICETREE variable.

If you are modifying an existing dts file, the cleanest approach is probably to use a patch file for step 1.  However, you could also create a completely new file.  That you could add either as a patch or by a direct file copy with something like

SRC_URI += "my-device-tree.dts"
KERNEL_DEVICETREE += "my-device-tree.dtb"
do_patch_append() {
  cp ${WORKDIR}/my-device-tree.dts ${S}/arch/arm/boot/dts/
}

Using do_configure_append (or even possibly do_unpack_append) might be more appropriate and would let you easily patch your own file in another layer, but I have not personally tried that.

However, if changing the name of the dtb (i.e. adding your own), you may need to tweak your bootloader (U-boot?) to pass the right dtb to the kernel at boot.  I don't know the Altera Cyclone configuration/layers/versions so take that as a very general statement.

Also, check the kernel recipe you are extending KERNEL_DEVICETREE may need to be expressed as KERNEL_DEVICETREE_somemachinenamehere.


> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-
> bounces@yoctoproject.org] On Behalf Of Steffen Schuetz
> Sent: Monday, May 18, 2015 7:13 AM
> To: yocto@yoctoproject.org
> Subject: Re: [yocto] Altera Cyclone V DTB origin
>
> Hi,
>
> I found that the dtb is obtained from a git reposirtory during the build and stored
> under build/tmp/work/socfpga_cyclone5-poky-linux-gnueabi/linux-altera-
> ltsi/3.10-r1/git/arch/arm/boot/dts/
> I succesfully build a custom dtb following these suggestions:
> https://community.freescale.com/thread/325219
>
> Is there a way to do this using a bitbake mechanism?
>
> Thanks!
>
> Best Regards,
> Steffen
>
> On 05/18/2015 11:41 AM, Steffen Schuetz wrote:
> > Hi,
> >
> > I build a customized Linux image using Yocto Daisy - we need gcc >=
> > 4.8
> > - following the instructions at
> >
> http://rocketboards.org/foswiki/Documentation/YoctoDoraBuildWithMetaAlter
> a .
> > Besides the zImage and rootfs the build process outputs an .dtb file.
> > Now, in order to get the FPGA fabric involved, I'd have to come up
> > with a modified dts and build it.
> > That's where I'm a bit lost in the blur. I can not figure out where
> > the generated dtb is coming from? What's the mechanism behind? I
> > cannot find any .dts nor .dtb in the meta-altera layer.
> >
> > Besides that I realized that if I use the dtb that shipped with the
> > board with the "daisy" kernel, the boot process gets stuck at "Waiting
> > for root device /dev/mmcblk0p3..." The "shipped" kernel is version
> > 3.8.0 while the "daisy" one is 3.10.31-ltsi.
> > Was there a change in the device tree layout as the "old" one doesn't
> > work with the "daisy" kernel?
> >
> >
> > Thanks in advance!
> >
> > Regards,
> > Steffen
>


________________________________

Notice to recipient: This email is meant for only the intended recipient of the transmission, and may be a communication privileged by law, subject to export control restrictions or that otherwise contains proprietary information. If you receive this email by mistake, please notify us immediately by replying to this message and then destroy it and do not review, disclose, copy or distribute it. Thank you in advance for your cooperation.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Altera Cyclone V DTB origin
  2015-05-18 14:56   ` Smith, Virgil
@ 2015-05-19  3:07     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2015-05-19  3:07 UTC (permalink / raw)
  To: Smith, Virgil; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 3959 bytes --]


> On May 18, 2015, at 7:56 AM, Smith, Virgil <Virgil.Smith@flir.com> wrote:
> 
> Perhaps someone could improve on this, but
> you can build a dtb from a source dts using a bbappend for your linux kernel.
> 1. drop a copy of your new dts in ${S}/arch/arm/boot/dts
> 2. add the name of your dtb to the KERNEL_DEVICETREE variable.
> 
> If you are modifying an existing dts file, the cleanest approach is probably to use a patch file for step 1.  However, you could also create a completely new file.  That you could add either as a patch or by a direct file copy with something like
> 
> SRC_URI += "my-device-tree.dts"
> KERNEL_DEVICETREE += "my-device-tree.dtb"
> do_patch_append() {
>  cp ${WORKDIR}/my-device-tree.dts ${S}/arch/arm/boot/dts/
> }
> 
> Using do_configure_append (or even possibly do_unpack_append) might be more appropriate and would let you easily patch your own file in another layer, but I have not personally tried that.
> 
> However, if changing the name of the dtb (i.e. adding your own), you may need to tweak your bootloader (U-boot?) to pass the right dtb to the kernel at boot.  I don't know the Altera Cyclone configuration/layers/versions so take that as a very general statement.
> 
> Also, check the kernel recipe you are extending KERNEL_DEVICETREE may need to be expressed as KERNEL_DEVICETREE_somemachinenamehere.
> 


you should checkout meta-altera here
https://github.com/kraj/meta-altera

> 
>> -----Original Message-----
>> From: yocto-bounces@yoctoproject.org [mailto:yocto-
>> bounces@yoctoproject.org] On Behalf Of Steffen Schuetz
>> Sent: Monday, May 18, 2015 7:13 AM
>> To: yocto@yoctoproject.org
>> Subject: Re: [yocto] Altera Cyclone V DTB origin
>> 
>> Hi,
>> 
>> I found that the dtb is obtained from a git reposirtory during the build and stored
>> under build/tmp/work/socfpga_cyclone5-poky-linux-gnueabi/linux-altera-
>> ltsi/3.10-r1/git/arch/arm/boot/dts/
>> I succesfully build a custom dtb following these suggestions:
>> https://community.freescale.com/thread/325219
>> 
>> Is there a way to do this using a bitbake mechanism?
>> 
>> Thanks!
>> 
>> Best Regards,
>> Steffen
>> 
>> On 05/18/2015 11:41 AM, Steffen Schuetz wrote:
>>> Hi,
>>> 
>>> I build a customized Linux image using Yocto Daisy - we need gcc >=
>>> 4.8
>>> - following the instructions at
>>> 
>> http://rocketboards.org/foswiki/Documentation/YoctoDoraBuildWithMetaAlter
>> a .
>>> Besides the zImage and rootfs the build process outputs an .dtb file.
>>> Now, in order to get the FPGA fabric involved, I'd have to come up
>>> with a modified dts and build it.
>>> That's where I'm a bit lost in the blur. I can not figure out where
>>> the generated dtb is coming from? What's the mechanism behind? I
>>> cannot find any .dts nor .dtb in the meta-altera layer.
>>> 
>>> Besides that I realized that if I use the dtb that shipped with the
>>> board with the "daisy" kernel, the boot process gets stuck at "Waiting
>>> for root device /dev/mmcblk0p3..." The "shipped" kernel is version
>>> 3.8.0 while the "daisy" one is 3.10.31-ltsi.
>>> Was there a change in the device tree layout as the "old" one doesn't
>>> work with the "daisy" kernel?
>>> 
>>> 
>>> Thanks in advance!
>>> 
>>> Regards,
>>> Steffen
>> 
> 
> 
> ________________________________
> 
> Notice to recipient: This email is meant for only the intended recipient of the transmission, and may be a communication privileged by law, subject to export control restrictions or that otherwise contains proprietary information. If you receive this email by mistake, please notify us immediately by replying to this message and then destroy it and do not review, disclose, copy or distribute it. Thank you in advance for your cooperation.
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-19  3:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18  9:41 Altera Cyclone V DTB origin Steffen Schuetz
2015-05-18 12:12 ` Steffen Schuetz
2015-05-18 14:56   ` Smith, Virgil
2015-05-19  3:07     ` Khem Raj

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.