Bala Subramanian
Bala Subramanian

Reputation: 37

Devicetree in embedded linux

How can I convert platform specific file to device tree?.

I know theoretically about device tree. Please explain how its works in raspberry pi board or any other boards.

Upvotes: 1

Views: 2169

Answers (1)

TheCodeArtist
TheCodeArtist

Reputation: 22477

A device-tree is simply a data structure for describing the hardware present on a system. In the absence of device-tree, systems rely on "board-files". These are C files with plenty of structures, each describing every individual hardware present on the system and also how they are connected.

Porting of code from legacy "board-files" to device-tree dts files is currently an ongoing process across several platforms/devices based on the ARM architecture.

To do this one requires proper understanding of the

  • platform/device hardware.
  • structure of the board-file.
  • structure of the dts file.

This answer should help you get started in preparing a device-tree dts.

Also there is an ongoing effort to migrate the raspberry-pi Linux-kernel to use device-tree. Take a look at the source and booting instructions.

Upvotes: 6

Related Questions