All of lore.kernel.org
 help / color / mirror / Atom feed
* Device tree.
@ 2012-07-17 11:55 Ian Molton
  2012-07-17 12:01 ` Thomas Petazzoni
  0 siblings, 1 reply; 41+ messages in thread
From: Ian Molton @ 2012-07-17 11:55 UTC (permalink / raw)
  To: linux-arm-kernel

I've found some references to this in the mailinglist archives but 
nothing conclusive.

Whats the recommended way of dealing with devicetree when one is stuck 
with an unco-operative bootloader?

I've made a small hack (below) to allow me to append a .dtb to the end 
of the kernel image. I note that other similar hacks have not been 
picked up, but I can't see why. Or I've missed the one that did get chosen.

TTFN!

-Ian

------------------------------- arch/arm/Kconfig 
-------------------------------
index 519b5e0..cd82cbc 100644
@@ -1105,6 +1105,10 @@ source "arch/arm/mach-vt8500/Kconfig"

  source "arch/arm/mach-w90x900/Kconfig"

+config EMBEDDED_DTB
+    string "Embedded device tree blob" if OF
+    default ""
+
  # Definitions to make life easier
  config ARCH_ACORN
      bool

---------------------------- arch/arm/boot/Makefile 
----------------------------
index c877087..8e43741 100644
@@ -44,6 +44,9 @@ $(obj)/xipImage: FORCE
      @echo 'Kernel not configured for XIP (CONFIG_XIP_KERNEL!=y)'
      @false

+#append Device Tree .dtb file after vmlinux
+cmd_do_append_dtb = if [ "$(CONFIG_EMBEDDED_DTB)" != "" ]; then cat 
$(CONFIG_EMBEDDED_DTB) >> $@ ; fi
+
  $(obj)/Image: vmlinux FORCE
      $(call if_changed,objcopy)
      @echo '  Kernel: $@ is ready'
@@ -53,6 +56,7 @@ $(obj)/compressed/vmlinux: $(obj)/Image FORCE

  $(obj)/zImage:    $(obj)/compressed/vmlinux FORCE
      $(call if_changed,objcopy)
+    $(call if_changed,do_append_dtb)
      @echo '  Kernel: $@ is ready'

  endif

^ permalink raw reply	[flat|nested] 41+ messages in thread
* Device Tree
@ 2016-10-25  6:21 Madhu K
  2016-10-25  7:32 ` Laurent Navet
  2016-10-25  7:39 ` Valdis.Kletnieks at vt.edu
  0 siblings, 2 replies; 41+ messages in thread
From: Madhu K @ 2016-10-25  6:21 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

This is to understand how Device tree works in linux kernel.

If in case Device tree is not there, where and how to pass the hardware
information to the linux kernel.

Does all embedded systems contains Device tree?

Regards,
Madhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161025/81b42d10/attachment.html 

^ permalink raw reply	[flat|nested] 41+ messages in thread
* Device Tree
@ 2008-09-29  6:24 Sébastien Chrétien
  2008-09-29  8:25 ` Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 41+ messages in thread
From: Sébastien Chrétien @ 2008-09-29  6:24 UTC (permalink / raw)
  To: linuxppc-dev

Hello,
I have a question about Device Tree.
Is Device Tree found only only on Linux Powerpc ?

Thanks
Sébastien

^ permalink raw reply	[flat|nested] 41+ messages in thread
* Device Tree
@ 2008-09-09 15:43 Georg Schardt
  2008-09-09 17:33 ` Josh Boyer
  2008-09-09 18:11 ` John Linn
  0 siblings, 2 replies; 41+ messages in thread
From: Georg Schardt @ 2008-09-09 15:43 UTC (permalink / raw)
  To: linuxppc-embedded

Hi,

im searching for informations about the flatten device trees. the only 
thing i know is, that the device tree is a kind of data-structure which 
the bios or bootloader gives to the operation system.

until now, i boot linux with uboot without a device tree, but newer 
kernel wants a devicetree, i think ??
i use a virtex4 board with an integrated powerpc

how can i create the device tree file ?
how must the linux kernel be configured ?
is there a good internet page with informations ?


thanks
regards
georg

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

end of thread, other threads:[~2016-10-25 15:43 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 11:55 Device tree Ian Molton
2012-07-17 12:01 ` Thomas Petazzoni
2012-07-17 12:13   ` Ian Molton
2012-07-17 12:29     ` Thomas Petazzoni
2012-07-17 12:41       ` Florian Fainelli
2012-07-17 13:32         ` Thomas Petazzoni
2012-07-17 12:32     ` Josh Coombs
2012-07-17 13:07       ` Ian Molton
2012-07-17 13:25         ` Ben Dooks
2012-07-17 13:52           ` Rob Herring
2012-07-17 13:56             ` Ben Dooks
2012-07-17 14:02               ` Florian Fainelli
2012-07-17 14:55                 ` Ian Molton
2012-07-17 21:18                   ` Nicolas Pitre
2012-07-18  7:51                     ` Ian Molton
2012-07-18 13:42                       ` Nicolas Pitre
2012-07-19  9:07                         ` Ian Molton
2012-07-19 21:32                           ` Nicolas Pitre
2012-07-23 13:10                             ` Mark Brown
2012-07-17 14:05             ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2016-10-25  6:21 Device Tree Madhu K
2016-10-25  7:32 ` Laurent Navet
2016-10-25  7:39 ` Valdis.Kletnieks at vt.edu
2016-10-25 10:12   ` Joel
2016-10-25 10:16   ` Madhu K
2016-10-25 15:43     ` Valdis.Kletnieks at vt.edu
2008-09-29  6:24 Sébastien Chrétien
2008-09-29  8:25 ` Sergei Shtylyov
2008-09-30 15:22   ` Matt Sealey
2008-09-30 22:30     ` Gerald Van Baren
2008-09-30 23:08       ` Matt Sealey
2008-10-01  3:24         ` Benjamin Herrenschmidt
2008-10-01 13:09           ` Matt Sealey
2008-10-29 21:04             ` Sébastien Chrétien
2008-09-29  8:25 ` Sergei Shtylyov
2008-09-29  8:51 ` Benjamin Herrenschmidt
2008-09-09 15:43 Georg Schardt
2008-09-09 17:33 ` Josh Boyer
2008-09-09 18:11 ` John Linn
2008-09-09 18:19   ` Georg Schardt
2008-09-09 18:24     ` John Linn

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.