<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=OS%3A_Menambahkan_Driver_ke_Kernel_Linux</id>
	<title>OS: Menambahkan Driver ke Kernel Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=OS%3A_Menambahkan_Driver_ke_Kernel_Linux"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=OS:_Menambahkan_Driver_ke_Kernel_Linux&amp;action=history"/>
	<updated>2026-04-20T16:52:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=OS:_Menambahkan_Driver_ke_Kernel_Linux&amp;diff=42386&amp;oldid=prev</id>
		<title>Onnowpurbo: New page:  To cross compile your own driver in the arm architecture you have to follow some steps as mentioned below.  * Create a directory like my_drvr inside drivers(which is in the Linux source c...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=OS:_Menambahkan_Driver_ke_Kernel_Linux&amp;diff=42386&amp;oldid=prev"/>
		<updated>2015-02-05T00:10:30Z</updated>

		<summary type="html">&lt;p&gt;New page:  To cross compile your own driver in the arm architecture you have to follow some steps as mentioned below.  * Create a directory like my_drvr inside drivers(which is in the Linux source c...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
To cross compile your own driver in the arm architecture you have to follow some steps as mentioned below.&lt;br /&gt;
&lt;br /&gt;
* Create a directory like my_drvr inside drivers(which is in the Linux source code) for your driver and put your driver (my_driver.c) file inside this directory. It will looks like /linux_source_code/drivers/my_drvr/my_driver.c&lt;br /&gt;
&lt;br /&gt;
* Create one Makefile inside your driver directory (using vi any editor) and inside this put obj-$(CONFIG_MY_DRIVER) += my_driver.o and save this file. This will appears like /linux_source_code/drivers/my_drvr/Makefile&lt;br /&gt;
&lt;br /&gt;
* Create one Kconfig file inside your driver directory (using vi any editor) and inside this put&lt;br /&gt;
&lt;br /&gt;
    config MY_DRIVER&lt;br /&gt;
    tristate &amp;quot;my driver&amp;quot; //gives your driver description like vendor name etc.&lt;br /&gt;
    depends on ARM&lt;br /&gt;
    default y if ARM&lt;br /&gt;
    help&lt;br /&gt;
      my driver module.&lt;br /&gt;
&lt;br /&gt;
Save this file, this will appears like /linux_source_code/drivers/my_drvr/Kconfig&lt;br /&gt;
&lt;br /&gt;
* Add both Makefile and Kconfig file in the Linux source drivers Makefile and Kconfig file which are at /linux_source_code/drivers/Makefile and /linux_source_code/drivers/Kconfig&lt;br /&gt;
&lt;br /&gt;
* In the Makefile add below in last line&lt;br /&gt;
&lt;br /&gt;
 obj-y    += my_drvr/ &lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 obj-$(CONFIG_MY_DRIVER)   += my_drvr/&lt;br /&gt;
&lt;br /&gt;
* In Kconfig file add below in last line&lt;br /&gt;
&lt;br /&gt;
 source &amp;quot;drivers/my_drvr/Kconfig&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Finally have to add Kconfig file into architecture specific config file which will be at kernel_source/arch/arm/configs/--defconfig in this add below line in the last&lt;br /&gt;
&lt;br /&gt;
 CONFIG_MY_DRIVER=y&lt;br /&gt;
&lt;br /&gt;
Note:- Last step will differ according to your architecture, so that you have take care. Now you can compile your driver by using make command. (eg: sun7i_defconfig)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://stackoverflow.com/questions/11710022/adding-new-driver-code-to-linux-source-code&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>