3.5
Source Code Modification
This section will guide you how to use the Linux source code. You will see some
examples of using BSP source code in this section.
3.5.1
Add a Driver to Kernel by menuconfig
You can add a driver to kernel by menuconfig. Here is an example to guide you how
to add a RTC driver (Seiko Instruments S-35390A) to Linux kernel. Please use the
following steps:
1.
Open "Terminal" on Ubuntu 10.04 LTS.
2.
$sudo su (Change to "root" authority)
3.
Input user password.
4.
Change directory to BSP's scripts folder.
5.
#. setenv.sh (To configure the developing environment automatically)
6.
#./cfg_kernel.sh menuconfig
7.
Then you will see a GUI screen (Linux Kernel Configuration) as below:
Figure 3.1 Linux Kernel Configuration
35
UBC-220 User Manual