guides to board files -> device-tree and Android -> mainline?
Hi all,
Are there any guides for developers new to Linux for:
* converting board files to device-tree
* porting drivers and patches from Android to current mainline?
There are a lot of ARM mobile devices out there that aren't supported by Linux mainline and having these guides available would really help getting the usual Linux distros to support more mobile devices. Usually the SoC is supported by mainline but the board is not, as is the case for the device I have been trying to work on:
http://bonedaddy.net/pabs3/log/2012/12/03/debian-mobile/
Signature · 11 lines
bye, pabs http://bonedaddy.net/pabs3/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130126/09cd75de/attachment.bin
Hi Paul,
2013/1/26 Paul Wise <[email protected]>:
Quoted 6 lines
Hi all,
Are there any guides for developers new to Linux for:
* converting board files to device-tree
* porting drivers and patches from Android to current mainline?
there are several parts of Android, which are not part of the mainline kernel. Others are in staging. See
http://elinux.org/Android_Mainlining_Project for more details.
Regarding drivers for chips on your board, see the kernel documentation about coding style
(http://lxr.free-electrons.com/source/Documentation/CodingStyle) and submitting drivers
(http://lxr.free-electrons.com/source/Documentation/SubmittingDrivers),
submitting patches etc.
Beware to send the patches/drivers to the right mailing list (see the MAINTAINERS file).
If you want to add the board itself and it is ARM based, then you have to create a device tree file. I think the older board files are no more accepted in the mainline kernel.
Hope that answered your question.
Cheers and happy hacking.
Matthias
Quoted 20 lines
There are a lot of ARM mobile devices out there that aren't supported by Linux mainline and having these guides available would really help getting the usual Linux distros to support more mobile devices. Usually the SoC is supported by mainline but the board is not, as is the case for the device I have been trying to work on:
http://bonedaddy.net/pabs3/log/2012/12/03/debian-mobile/
--
bye,
pabs_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 2 lines
--- motzblog.wordpress.com
Quoted 1 line · Matthias Brugger
there are several parts of Android....
Thanks for the pointers!
Quoted 3 lines
If you want to add the board itself and it is ARM based, then you have to create a device tree file. I think the older board files are no more accepted in the mainline kernel.
I'm aware of that, my question was how do I convert existing board files to device tree files? Is there an automated tool, or a guide for that?
Signature · 11 lines
bye, pabs http://bonedaddy.net/pabs3/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130129/071b8adb/attachment.bin
Dear Paul Wise,
Quoted 6 lines · Paul Wise
Quoted 3 lines
If you want to add the board itself and it is ARM based, then you have to create a device tree file. I think the older board files are no more accepted in the mainline kernel.
I'm aware of that, my question was how do I convert existing board files to device tree files? Is there an automated tool, or a guide for that?
No, there is no automated tool, because it is not possible to do that automatically. The device drivers used by your board must have a Device Tree binding, and writing the Device Tree source cannot directly be done from the C board file. It requires human knowledge and intervention.
Could you be more specific about the platform you would look to convert to the Device Tree? Where is the existing source code?
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 5 lines · Thomas Petazzoni
No, there is no automated tool, because it is not possible to do that automatically. The device drivers used by your board must have a Device Tree binding, and writing the Device Tree source cannot directly be done from the C board file. It requires human knowledge and intervention.
I see, is there at least a guide for the conversion?
Quoted 2 lines
Could you be more specific about the platform you would look to convert to the Device Tree? Where is the existing source code?
Many devices with an ARM SoC and or an Android kernel aren't fully supported by mainline. The devices that I own in this situation are the OpenMoko FreeRunner (gta02) and the Samsung Galaxy S (galaxysmtd).
gta02:git://git.openmoko.org/git/kernel.gitgit://github.com/shr-distribution/linux.git
galaxysmtd (and a bunch of other devices):git://gitorious.org/replicant/kernel_samsung_aries.git
Signature · 11 lines
bye, pabs http://bonedaddy.net/pabs3/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130130/2dd617ac/attachment.bin