Difference between revisions of "User:Collinjc"
From eLinux.org
m (→Chapter 4: More listings) |
m (→Chapter 4) |
||
| Line 827: | Line 827: | ||
</pre> | </pre> | ||
| + | |- | ||
| + | | 4-9 | ||
| + | | 4-30 | ||
| + | | Snippet from .../arch/arm/plat-omap/Kconfig | ||
| + | | <pre> | ||
| + | .... | ||
| + | config OMAP_BOOT_REASON | ||
| + | bool "Support for boot reason" | ||
| + | depends on OMAP_BOOT_TAG | ||
| + | default n | ||
| + | help | ||
| + | Say Y, if you want to have a procfs entry for reading the boot | ||
| + | reason in user-space. | ||
| + | config OMAP_COMPONENT_VERSION | ||
| + | bool "Support for component version display" | ||
| + | depends on OMAP_BOOT_TAG && PROC_FS | ||
| + | default n | ||
| + | help | ||
| + | Say Y, if you want to have a procfs entry for reading component | ||
| + | versions (supplied by the bootloader) in user-space. | ||
| + | |||
| + | config OMAP_GPIO_SWITCH | ||
| + | bool "GPIO switch support" | ||
| + | default n | ||
| + | help | ||
| + | Say Y, if you want to have support for reporting of GPIO | ||
| + | switches (e.g. cover switches) via sysfs. Your bootloader has | ||
| + | to provide information about the switches to the kernel via the | ||
| + | ATAG_BOARD mechanism if they're not defined by the board config. | ||
| + | |||
| + | config OMAP_MUX | ||
| + | bool "OMAP multiplexing support" | ||
| + | depends on ARCH_OMAP | ||
| + | default y | ||
| + | help | ||
| + | Pin multiplexing support for OMAP boards. If your bootloader | ||
| + | sets the multiplexing correctly, say N. Otherwise, or if unsure, | ||
| + | say Y. | ||
| + | |||
| + | config OMAP_MUX_DEBUG | ||
| + | bool "Multiplexing debug output" | ||
| + | depends on OMAP_MUX | ||
| + | help | ||
| + | Makes the multiplexing functions print out a lot of debug info. | ||
| + | This is useful if you want to find out the correct values of the | ||
| + | .... | ||
| + | </pre> | ||
| + | |||
| + | |- | ||
| + | | 4-10 | ||
| + | | 4-32 | ||
| + | | Customized .config File Snippet | ||
| + | | <pre> | ||
| + | # | ||
| + | # OMAP Feature Selections | ||
| + | # | ||
| + | # CONFIG_OMAP_DEBUG_POWERDOMAIN is not set | ||
| + | # CONFIG_OMAP_DEBUG_CLOCKDOMAIN is not set | ||
| + | # CONFIG_OMAP_SMARTREFLEX is not set | ||
| + | CONFIG_OMAP_RESET_CLOCKS=y | ||
| + | CONFIG_OMAP_BOOT_TAG=y | ||
| + | CONFIG_OMAP_BOOT_REASON=y | ||
| + | # CONFIG_OMAP_COMPONENT_VERSION is not set | ||
| + | CONFIG_OMAP_GPIO_SWITCH=y | ||
| + | # CONFIG_OMAP_GPIO_SWITCH_2 is not set | ||
| + | # CONFIG_OMAP_MUX is not set | ||
| + | CONFIG_OMAP_MCBSP=y | ||
| + | # CONFIG_OMAP_MBOX_FWK is not set | ||
| + | CONFIG_OMAP_IOMMU=m | ||
| + | # CONFIG_OMAP_MPU_TIMER is not set | ||
| + | CONFIG_OMAP_32K_TIMER=y | ||
| + | CONFIG_OMAP_32K_TIMER_HZ=128 | ||
| + | CONFIG_OMAP_TICK_GPTIMER=12 | ||
| + | CONFIG_OMAP_DM_TIMER=y | ||
| + | # CONFIG_OMAP_LL_DEBUG_UART1 is not set | ||
| + | # CONFIG_OMAP_LL_DEBUG_UART2 is not set | ||
| + | CONFIG_OMAP_LL_DEBUG_UART3=y | ||
| + | CONFIG_ARCH_OMAP34XX=y | ||
| + | CONFIG_ARCH_OMAP3430=y | ||
| + | </pre> | ||
| + | |||
| + | |- | ||
| + | | 4-11 | ||
| + | | 4-33 | ||
| + | | Makefile from .../arch/arm/plat-omap/ Kernel Subdirectory | ||
| + | | <pre> | ||
| + | # | ||
| + | # Makefile for the linux kernel. | ||
| + | # | ||
| + | |||
| + | # Common support | ||
| + | obj-y := common.o sram.o clock.o devices.o dma.o mux.o gpio.o \ | ||
| + | usb.o fb.o vram.o vrfb.o io.o | ||
| + | obj-m := | ||
| + | obj-n := | ||
| + | obj- := | ||
| + | |||
| + | # OCPI interconnect support for 1710, 1610 and 5912 | ||
| + | obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o | ||
| + | |||
| + | obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o | ||
| + | obj-$(CONFIG_OMAP_IOMMU) += iommu.o iovmm.o | ||
| + | |||
| + | obj-$(CONFIG_CPU_FREQ) += cpu-omap.o | ||
| + | obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o | ||
| + | obj-$(CONFIG_OMAP_BOOT_REASON) += bootreason.o | ||
| + | obj-$(CONFIG_OMAP_COMPONENT_VERSION) += component-version.o | ||
| + | obj-$(CONFIG_OMAP_GPIO_SWITCH) += gpio-switch.o | ||
| + | obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o | ||
| + | obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o | ||
| + | i2c-omap-$(CONFIG_I2C_OMAP) := i2c.o | ||
| + | obj-y += $(i2c-omap-m) $(i2c-omap-y) | ||
| + | |||
| + | # OMAP mailbox framework | ||
| + | obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox.o | ||
| + | </pre> | ||
|} | |} | ||
Revision as of 00:11, 30 March 2010
I am majoring in computer engineering and pursuing a certificate in optical communications. I am currently enrolled in ECE597, hoping to explore the applications of Linux in an embedded environment as well as the necessary considerations that must be made in developing for such an environment. I have a keen interest and a great deal of experience with Linux and am a member of the Rose-Hulman Linux Users' Group.
I am currently working on a script to automate the bitbake process with multiple cores. This is a copy of the script in its current form. Please note that it is a work in progress.
#!/bin/sh
# bitbake automation
# J. Cody Collins
START=$(date +%s)
MAXTRIES=15
COUNT=1
export OETREE="${HOME}/oe"
echo "set environment variables"
. ${OETREE}/sourceme.txt
echo "Go to the OE tree"
cd ${OETREE}/openembedded
echo "Make sure it's up to date"
git pull --rebase
echo "Start building"
bitbake $1
while [ $? -ne 0 ]; do
if [ $COUNT -lt $MAXTRIES ]; then
((COUNT++))
echo "re-running bitbake -- trial $COUNT"
# Give the user a chance to kill the task
sleep 5
bitbake $1
else
echo "Maximum tries exceeded. Exiting..."
break
fi
done
END=$(date +%s)
DIFF=$(( $END - $START ))
echo "Build took $DIFF seconds."
echo "Completed after $COUNT attempts."
Contents |
Listings
Chapter 2
| Number | Page | Caption | Listing |
|---|---|---|---|
| 2-1 | 2-6 | Initial Bootloader Serial Output | Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24) Reading boot sector Loading u-boot.bin from mmc U-Boot 2009.11-rc1 (Jan 08 2010 - 21:19:52) OMAP3530-GP ES3.1, CPU-OPP2 L3-165MHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 256 MB NAND: 256 MiB In: serial Out: serial Err: serial Board revision C4 Die ID #1e30000400000000040365fa1400400a Hit any key to stop autoboot: 0 OMAP3 beagleboard.org # |
| 2-2 | 2-7 | Loading the Linux Kernel | 2996196 bytes read ## Booting kernel from Legacy Image at 80300000 ... Image Name: Angstrom/2.6.29/beagleboard Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2996132 Bytes = 2.9 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux.................................................................................................................................................................................................. done, booting the kernel. [ 0.000000] Linux version 2.6.29-omap1 (koen@dominion) (gcc version 4.3.3 (GCC) ) #1 PREEMPT Wed Oct 21 13:11:52 CEST 2009 [ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [ 0.000000] Machine: OMAP3 Beagle Board [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] OMAP3430 ES3.1 [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000 [ 0.000000] Reserving 14680064 bytes SDRAM for VRAM [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 [ 0.000000] Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait [ 0.000000] Clocking rate (Crystal/DPLL/ARM core): 26.0/332/720 MHz [ 0.000000] GPMC revision 5.0 [ 0.000000] IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts [ 0.000000] Total of 96 interrupts on 1 active controller [ 0.000000] OMAP34xx GPIO hardware version 2.5 [ 0.000000] PID hash table entries: 1024 (order: 10, 4096 bytes) [ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Memory: 128MB 128MB = 256MB total [ 0.000000] Memory: 238848KB available (5632K code, 576K data, 204K init) [ 0.000000] Calibrating delay loop... 740.48 BogoMIPS (lpj=2891776) [ 0.000000] Mount-cache hash table entries: 512 [ 0.000000] CPU: Testing write buffer coherency: ok |
| 2-3 | 2-9 | Linux Final Boot Messages |
Lease of 192.168.1.108 obtained, lease time 86400
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
adding dns 192.168.1.1
done.
Starting portmap daemon: portmap.
Unknown HZ value! (75) Assume 100.
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
Wed Mar 10 03:00:00 GMT 2010
^MINIT: Entering runlevel: 5^M
Configuring leds:
beagleboard::usr0: heartbeat
beagleboard::usr1: mmc0
Starting Dropbear SSH server: dropbear.
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting Vixie-cron.
Starting system message bus: dbus.
Starting Hardware abstraction layer hald
Starting syslogd/klogd: done
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
[ ok ]
Starting Connection Manager
Running ntpdate to synchronize clock.
Starting GPE display manager: gpe-dm
.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'
The Angstrom Distribution beagleboard ttyS2
Angstrom 2009.X-stable beagleboard ttyS2
beagleboard login: root
|
| 2-4 | 2-21 | Hello World, Embedded Style |
#include <stdio.h>
int bss_var; /* Uninitialized global variable */
int data_var = 1; /* Initialized global variable */
int main(int argc, char **argv)
{
void *stack_var; /* Local variable on the stack */
stack_var = (void *)main; /* Don't let the compiler */
/* optimize it out */
printf("Hello, World! Main is executing at %p\n", stack_var);
printf("This address (%p) is in our stack frame\n", &stack_var);
/* bss section contains uninitialized data */
printf("This address (%p) is in our bss section\n", &bss_var);
/* data section contains initializated data */
printf("This address (%p) is in our data section\n", &data_var);
return 0;
}
|
| 2-5 | 2-22 | Hello Output for Host Computer | collinjc@collinjc-eee ~ % ./a.out [1021] Hello, World! Main is executing at 0x80483e4 This address (0xbfe6b58c) is in our stack frame This address (0x804a020) is in our bss section This address (0x804a014) is in our data section |
| 2-5 | 2-22 | Hello Output for Beagle | root@beagleboard:~# ./a.out Hello, World! Main is executing at 0x8380 This address (0xbea11cd4) is in our stack frame This address (0x10670) is in our bss section This address (0x10668) is in our data section |
Chapter 4
| Number | Page | Caption | Listing |
|---|---|---|---|
| 4-1 | 4-7 | Kernel Build Output | LD init/built-in.o scripts/kconfig/conf -s arch/arm/Kconfig CHK include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-arm CC kernel/bounds.s GEN include/linux/bounds.h CC arch/arm/kernel/asm-offsets.s GEN include/asm/asm-offsets.h CALL scripts/checksyscalls.sh CC scripts/mod/empty.o MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o .....output removed..... LD .tmp_vmlinux1 KSYM .tmp_kallsyms1.S AS .tmp_kallsyms1.o LD .tmp_vmlinux2 KSYM .tmp_kallsyms2.S AS .tmp_kallsyms2.o LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map OBJCOPY arch/arm/boot/Image Kernel: arch/arm/boot/Image is ready AS arch/arm/boot/compressed/head.o GZIP arch/arm/boot/compressed/piggy.gz AS arch/arm/boot/compressed/piggy.o CC arch/arm/boot/compressed/misc.o LD arch/arm/boot/compressed/vmlinux OBJCOPY arch/arm/boot/zImage Kernel: arch/arm/boot/zImage is ready UIMAGE arch/arm/boot/uImage Image Name: Linux-2.6.29-omap1 Created: Mon Mar 22 18:48:45 2010 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2994248 Bytes = 2924.07 kB = 2.86 MB Load Address: 80008000 Entry Point: 80008000 Image arch/arm/boot/uImage is ready |
| 4-2 | 4-9 | Link Stage: vmlinux | ?? |
| 4-3 | 4-14 | Kernel Subdirectory | collinjc@lug linux-omap-2.6.29-r46/git % ls -ls arch/arm/plat-omap/ | grep -v \\.o total 764K 8.0K -rw-r--r-- 1 collinjc students 8.0K Mar 19 19:48 Kconfig 4.0K -rw-r--r-- 1 collinjc students 824 Mar 15 02:52 Makefile 4.0K -rw-r--r-- 1 collinjc students 2.4K Mar 11 07:46 bootreason.c 16K -rw-r--r-- 1 collinjc students 15K Mar 11 07:46 clock.c 12K -rw-r--r-- 1 collinjc students 8.1K Mar 11 07:46 common.c 4.0K -rw-r--r-- 1 collinjc students 1.6K Mar 11 07:46 component-version.c 4.0K -rw-r--r-- 1 collinjc students 4.0K Mar 11 07:46 cpu-omap.c 4.0K -rw-r--r-- 1 collinjc students 2.0K Mar 11 07:46 debug-devices.c 8.0K -rw-r--r-- 1 collinjc students 7.0K Mar 11 07:46 debug-leds.c 12K -rw-r--r-- 1 collinjc students 9.8K Mar 11 07:46 devices.c 60K -rwxr-xr-x 1 collinjc students 59K Mar 15 02:51 dma.c 24K -rw-r--r-- 1 collinjc students 21K Mar 11 07:46 dmtimer.c 12K -rw-r--r-- 1 collinjc students 9.5K Mar 15 02:51 fb.c 16K -rw-r--r-- 1 collinjc students 13K Mar 11 07:46 gpio-switch.c 48K -rw-r--r-- 1 collinjc students 47K Mar 11 07:46 gpio.c 8.0K -rw-r--r-- 1 collinjc students 5.8K Mar 11 07:46 i2c.c 0 drwxr-xr-x 3 collinjc students 72 Mar 11 07:46 include 4.0K -rw-r--r-- 1 collinjc students 3.7K Mar 11 07:46 io.c 20K -rw-r--r-- 1 collinjc students 20K Mar 15 02:52 iommu.c 20K -rw-r--r-- 1 collinjc students 17K Mar 15 03:17 iommu.ko 4.0K -rw-r--r-- 1 collinjc students 1.9K Mar 15 03:16 iommu.mod.c 4.0K -rw-r--r-- 1 collinjc students 2.2K Mar 15 02:52 iopgtable.h 20K -rw-r--r-- 1 collinjc students 19K Mar 15 02:52 iovmm.c 16K -rw-r--r-- 1 collinjc students 15K Mar 15 03:17 iovmm.ko 4.0K -rw-r--r-- 1 collinjc students 1.8K Mar 15 03:16 iovmm.mod.c 12K -rw-r--r-- 1 collinjc students 12K Mar 11 07:46 mailbox.c 28K -rw-r--r-- 1 collinjc students 26K Mar 11 07:46 mcbsp.c 4.0K -rw-r--r-- 1 collinjc students 2.1K Mar 11 07:46 mux.c 4.0K -rw-r--r-- 1 collinjc students 2.7K Mar 11 07:46 ocpi.c 12K -rw-r--r-- 1 collinjc students 11K Mar 11 07:46 sram.c 20K -rw-r--r-- 1 collinjc students 18K Mar 11 07:46 usb.c 16K -rw-r--r-- 1 collinjc students 14K Mar 15 02:51 vram.c 8.0K -rw-r--r-- 1 collinjc students 6.3K Mar 15 02:51 vrfb.c |
| 4-4 | 4-17 | Snippet from Linux 2.6 .config | 1872 # 1873 # USB Input Devices 1874 # 1875 CONFIG_USB_HID=y 1876 # CONFIG_HID_PID is not set 1877 # CONFIG_USB_HIDDEV is not set 1878 1879 # 1880 # Special HID drivers 1881 # 1882 CONFIG_HID_COMPAT=y 1883 CONFIG_HID_A4TECH=y 1884 CONFIG_HID_APPLE=y 1885 CONFIG_HID_BELKIN=y 1886 CONFIG_HID_CHERRY=y 1887 CONFIG_HID_CHICONY=y 1888 CONFIG_HID_CYPRESS=y 1889 CONFIG_HID_EZKEY=y 1890 CONFIG_HID_GYRATION=y 1891 CONFIG_HID_LOGITECH=y 1892 # CONFIG_LOGITECH_FF is not set 1893 # CONFIG_LOGIRUMBLEPAD2_FF is not set |
| 4-5 | 4-21 | Linux autoconf.h | collinjc@lug linux-omap-2.6.29-r46/git % cat include/linux/autoconf.h| grep CONFIG_USB #define CONFIG_USB_SISUSBVGA_MODULE 1 #define CONFIG_USB_PHIDGETMOTORCONTROL_MODULE 1 #define CONFIG_USB_MUSB_HDRC 1 #define CONFIG_USB_LEGOTOWER_MODULE 1 #define CONFIG_USB_SERIAL_IR_MODULE 1 #define CONFIG_USB_GSPCA_T613_MODULE 1 #define CONFIG_USB_SERIAL_TI_MODULE 1 #define CONFIG_USB_ETH_RNDIS 1 #define CONFIG_USB_SERIAL_MODULE 1 #define CONFIG_USB_W9968CF_MODULE 1 #define CONFIG_USB_RTL8150 1 #define CONFIG_USB_SERIAL_WHITEHEAT_MODULE 1 #define CONFIG_USB_GADGET_MUSB_HDRC 1 #define CONFIG_USB_KAWETH 1 #define CONFIG_USB_ZERO_HNPTEST 1 #define CONFIG_USB_CXACRU_MODULE 1 #define CONFIG_USB_SERIAL_ARK3116_MODULE 1 #define CONFIG_USB_G_PRINTER_MODULE 1 #define CONFIG_USB_NET_PLUSB 1 #define CONFIG_USB_GPIO_VBUS 1 #define CONFIG_USB_EHCI_TT_NEWSCHED 1 #define CONFIG_USB_ACM_MODULE 1 #define CONFIG_USB_ARCH_HAS_EHCI 1 #define CONFIG_USB_USBNET 1 #define CONFIG_USB_LCD_MODULE 1 #define CONFIG_USB_SERIAL_BELKIN_MODULE 1 #define CONFIG_USB_LED_MODULE 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA49WLC 1 #define CONFIG_USB_HID 1 #define CONFIG_USB_GADGET_VBUS_DRAW 2 #define CONFIG_USB_SERIAL_KOBIL_SCT_MODULE 1 #define CONFIG_USB_OTG_UTILS 1 #define CONFIG_USB_ARCH_HAS_OHCI 1 #define CONFIG_USB_CDC_COMPOSITE_MODULE 1 #define CONFIG_USB_SERIAL_GARMIN_MODULE 1 #define CONFIG_USB_SERIAL_MOS7720_MODULE 1 #define CONFIG_USB_SERIAL_NAVMAN_MODULE 1 #define CONFIG_USB_GSPCA_FINEPIX_MODULE 1 #define CONFIG_USB_ETH_MODULE 1 #define CONFIG_USB_SERIAL_MOS7840_MODULE 1 #define CONFIG_USB_ATM_MODULE 1 #define CONFIG_USB_TMC_MODULE 1 #define CONFIG_USB_MUSB_HDRC_HCD 1 #define CONFIG_USB_SERIAL_OTI6858_MODULE 1 #define CONFIG_USB_WDM_MODULE 1 #define CONFIG_USB_MON 1 #define CONFIG_USB_OTG 1 #define CONFIG_USB_PWC_MODULE 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA19 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA28 1 #define CONFIG_USB_PHIDGETKIT_MODULE 1 #define CONFIG_USB_ET61X251_MODULE 1 #define CONFIG_USB_SERIAL_XIRCOM_MODULE 1 #define CONFIG_USB_SPEEDTOUCH_MODULE 1 #define CONFIG_USB_SISUSBVGA_CON 1 #define CONFIG_USB_NET_NET1080 1 #define CONFIG_USB_SERIAL_OPTION_MODULE 1 #define CONFIG_USB_ZR364XX_MODULE 1 #define CONFIG_USB_NET_MCS7830 1 #define CONFIG_USB_VST_MODULE 1 #define CONFIG_USB_GSPCA_MARS_MODULE 1 #define CONFIG_USB_EHCI_ROOT_HUB_TT 1 #define CONFIG_USB_PHIDGET_MODULE 1 #define CONFIG_USB_CYPRESS_CY7C63_MODULE 1 #define CONFIG_USB_GSPCA_SUNPLUS_MODULE 1 #define CONFIG_USB_GSPCA_OV534_MODULE 1 #define CONFIG_USB_SERIAL_IPW_MODULE 1 #define CONFIG_USB_NET_AX8817X 1 #define CONFIG_USB_GSPCA_OV519_MODULE 1 #define CONFIG_USB_SERIAL_IUU_MODULE 1 #define CONFIG_USB_STV06XX_MODULE 1 #define CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV 1 #define CONFIG_USB_STORAGE 1 #define CONFIG_USB_IDMOUSE_MODULE 1 #define CONFIG_USB_PEGASUS 1 #define CONFIG_USB_SERIAL_SPCP8X5_MODULE 1 #define CONFIG_USB_M5602_MODULE 1 #define CONFIG_USB_CATC 1 #define CONFIG_USB_CYTHERM_MODULE 1 #define CONFIG_USB_SERIAL_GENERIC 1 #define CONFIG_USB_IRDA_MODULE 1 #define CONFIG_USB_S2255_MODULE 1 #define CONFIG_USB_SUSPEND 1 #define CONFIG_USB_XUSBATM_MODULE 1 #define CONFIG_USB_PRINTER_MODULE 1 #define CONFIG_USB_TRANCEVIBRATOR_MODULE 1 #define CONFIG_USB_SERIAL_CYPRESS_M8_MODULE 1 #define CONFIG_USB_SE401_MODULE 1 #define CONFIG_USB_MIDI_GADGET_MODULE 1 #define CONFIG_USB_NET_ZAURUS 1 #define CONFIG_USB_SERIAL_OMNINET_MODULE 1 #define CONFIG_USB_SERIAL_KEYSPAN_MODULE 1 #define CONFIG_USB_GSPCA_PAC207_MODULE 1 #define CONFIG_USB_SERIAL_OPTICON_MODULE 1 #define CONFIG_USB_OV511_MODULE 1 #define CONFIG_USB_SUPPORT 1 #define CONFIG_USB_SERIAL_SAFE_MODULE 1 #define CONFIG_USB_ZERO_MODULE 1 #define CONFIG_USB_TEST_MODULE 1 #define CONFIG_USB_SERIAL_CH341_MODULE 1 #define CONFIG_USB_EMI26_MODULE 1 #define CONFIG_USB_EMI62_MODULE 1 #define CONFIG_USB_SERIAL_HP4X_MODULE 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA19W 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA18X 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA28X 1 #define CONFIG_USB_SERIAL_FUNSOFT_MODULE 1 #define CONFIG_USB_GADGETFS_MODULE 1 #define CONFIG_USB_NET_CDC_SUBSET 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA49W 1 #define CONFIG_USB_EHCI_HCD 1 #define CONFIG_USB_DEVICEFS 1 #define CONFIG_USB_GSPCA_TV8532_MODULE 1 #define CONFIG_USB_SERIAL_IPAQ_MODULE 1 #define CONFIG_USB_GSPCA_CONEX_MODULE 1 #define CONFIG_USB_VIDEO_CLASS_MODULE 1 #define CONFIG_USB_GSPCA_ZC3XX_MODULE 1 #define CONFIG_USB_SERIAL_MCT_U232_MODULE 1 #define CONFIG_USB_KONICAWC_MODULE 1 #define CONFIG_USB_SERIAL_KLSI_MODULE 1 #define CONFIG_USB_SERIAL_AIRCABLE_MODULE 1 #define CONFIG_USB_ALI_M5632 1 #define CONFIG_USB_SERIAL_SIERRAWIRELESS_MODULE 1 #define CONFIG_USB_GSPCA_VC032X_MODULE 1 #define CONFIG_USB_GADGET_SELECTED 1 #define CONFIG_USB_GSPCA_STK014_MODULE 1 #define CONFIG_USB_OXU210HP_HCD 1 #define CONFIG_USB_GSPCA_ETOMS_MODULE 1 #define CONFIG_USB_QUICKCAM_MESSENGER_MODULE 1 #define CONFIG_USB_NET_RNDIS_WLAN 1 #define CONFIG_USB_KC2190 1 #define CONFIG_USB_AN2720 1 #define CONFIG_USB_EPSON2888 1 #define CONFIG_USB_ZC0301_MODULE 1 #define CONFIG_USB_ZD1201 1 #define CONFIG_USB_NET_RNDIS_HOST 1 #define CONFIG_USB_G_SERIAL_MODULE 1 #define CONFIG_USB_GADGET_DEBUG_FS 1 #define CONFIG_USB_GSPCA_PAC7311_MODULE 1 #define CONFIG_USB_SERIAL_KEYSPAN_PDA_MODULE 1 #define CONFIG_USB_GSPCA_MODULE 1 #define CONFIG_USB_VICAM_MODULE 1 #define CONFIG_USB_ARMLINUX 1 #define CONFIG_USB_ATMEL_MODULE 1 #define CONFIG_USB_SERIAL_EDGEPORT_TI_MODULE 1 #define CONFIG_USB_SERIAL_CP2101_MODULE 1 #define CONFIG_USB_SERIAL_SIEMENS_MPI_MODULE 1 #define CONFIG_USB_SERIAL_EDGEPORT_MODULE 1 #define CONFIG_USB_MUSB_SOC 1 #define CONFIG_USB_SERIAL_DIGI_ACCELEPORT_MODULE 1 #define CONFIG_USB_MUSB_OTG 1 #define CONFIG_USB_SERIAL_PL2303_MODULE 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA28XA 1 #define CONFIG_USB_DEVICE_CLASS 1 #define CONFIG_USB_SERIAL_DEBUG_MODULE 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA19QI 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA28XB 1 #define CONFIG_USB_ARCH_HAS_HCD 1 #define CONFIG_USB_SERIAL_KEYSPAN_MPR 1 #define CONFIG_USB_NET_CDCETHER 1 #define CONFIG_USB_EZUSB 1 #define CONFIG_USB_GSPCA_SPCA500_MODULE 1 #define CONFIG_USB_GSPCA_SPCA501_MODULE 1 #define CONFIG_USB_SERIAL_MOTOROLA_MODULE 1 #define CONFIG_USB_BERRY_CHARGE_MODULE 1 #define CONFIG_USB_SERIAL_EMPEG_MODULE 1 #define CONFIG_USB_GSPCA_SPCA505_MODULE 1 #define CONFIG_USB_GSPCA_SPCA506_MODULE 1 #define CONFIG_USB_LD_MODULE 1 #define CONFIG_USB_SERIAL_FTDI_SIO_MODULE 1 #define CONFIG_USB_GSPCA_SPCA561_MODULE 1 #define CONFIG_USB_GSPCA_SPCA508_MODULE 1 #define CONFIG_USB_FILE_STORAGE_MODULE 1 #define CONFIG_USB_PHIDGETSERVO_MODULE 1 #define CONFIG_USB_SERIAL_KEYSPAN_USA19QW 1 #define CONFIG_USB_UEAGLEATM_MODULE 1 #define CONFIG_USB_INVENTRA_DMA 1 #define CONFIG_USB_NET_SMSC95XX 1 #define CONFIG_USB_STV680_MODULE 1 #define CONFIG_USB_GSPCA_SONIXB_MODULE 1 #define CONFIG_USB_STKWEBCAM_MODULE 1 #define CONFIG_USB 1 #define CONFIG_USB_GADGET_DUALSPEED 1 #define CONFIG_USB_FTDI_ELAN_MODULE 1 #define CONFIG_USB_NET_DM9601 1 #define CONFIG_USB_GSPCA_SONIXJ_MODULE 1 #define CONFIG_USB_IBMCAM_MODULE 1 #define CONFIG_USB_GADGET 1 #define CONFIG_USB_SERIAL_CYBERJACK_MODULE 1 #define CONFIG_USB_SN9C102_MODULE 1 #define CONFIG_USB_SERIAL_VISOR_MODULE 1 #define CONFIG_USB_NET_GL620A 1 #define CONFIG_USB_BELKIN 1 |
| 4-6 | 4-22 | Makefile Targets | Cleaning targets:
clean - Remove most generated files but keep the config and
enough build support to build external modules
mrproper - Remove all generated files + config + various backup files
distclean - mrproper + remove editor backup and patch files
Configuration targets:
config - Update current config utilising a line-oriented program
menuconfig - Update current config utilising a menu based program
xconfig - Update current config utilising a QT based front-end
gconfig - Update current config utilising a GTK based front-end
oldconfig - Update current config utilising a provided .config as base
silentoldconfig - Same as oldconfig, but quietly
randconfig - New config with random answer to all options
defconfig - New config with default answer to all options
allmodconfig - New config selecting modules when possible
allyesconfig - New config where all options are accepted with yes
allnoconfig - New config where all options are answered with no
Other generic targets:
all - Build all targets marked with [*]
* vmlinux - Build the bare kernel
* modules - Build all modules
modules_install - Install all modules to INSTALL_MOD_PATH (default: /)
firmware_install- Install all firmware to INSTALL_FW_PATH
(default: $(INSTALL_MOD_PATH)/lib/firmware)
dir/ - Build all files in dir and below
dir/file.[ois] - Build specified target only
dir/file.ko - Build module including final link
prepare - Set up for building external modules
tags/TAGS - Generate tags file for editors
cscope - Generate cscope index
kernelrelease - Output the release version string
kernelversion - Output the version stored in Makefile
headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH
(default: /home/users/collinjc/oe/angstrom-dev-backup2/work/beagleboard-angstrom-linux-gnueabi/linux-omap-2.6.29-r46/git/usr)
Static analysers
checkstack - Generate a list of stack hogs
namespacecheck - Name space analysis on compiled kernel
versioncheck - Sanity check on version.h usage
includecheck - Check for duplicate included header files
export_report - List the usages of all exported symbols
headers_check - Sanity check on exported headers
headerdep - Detect inclusion cycles in headers
Kernel packaging:
rpm-pkg - Build both source and binary RPM kernel packages
binrpm-pkg - Build only the binary kernel package
deb-pkg - Build the kernel as an deb package
tar-pkg - Build the kernel as an uncompressed tarball
targz-pkg - Build the kernel as a gzip compressed tarball
tarbz2-pkg - Build the kernel as a bzip2 compressed tarball
Documentation targets:
Linux kernel internal documentation in different formats:
htmldocs - HTML
installmandocs - install man pages generated by mandocs
mandocs - man pages
pdfdocs - PDF
psdocs - Postscript
xmldocs - XML DocBook
Architecture specific targets (arm):
* zImage - Compressed kernel image (arch/arm/boot/zImage)
Image - Uncompressed kernel image (arch/arm/boot/Image)
* xipImage - XIP kernel image, if configured (arch/arm/boot/xipImage)
uImage - U-Boot wrapped zImage
bootpImage - Combined zImage and initial RAM disk
(supply initrd image via make variable INITRD=<path>)
install - Install uncompressed kernel
zinstall - Install compressed kernel
Install using (your) ~/bin/installkernel or
(distribution) /sbin/installkernel or
install to $(INSTALL_PATH) and run lilo
afeb9260_defconfig - Build for afeb9260
am200epdkit_defconfig - Build for am200epdkit
ams_delta_defconfig - Build for ams_delta
assabet_defconfig - Build for assabet
at91cap9adk_defconfig - Build for at91cap9adk
at91rm9200dk_defconfig - Build for at91rm9200dk
at91rm9200ek_defconfig - Build for at91rm9200ek
at91sam9260ek_defconfig - Build for at91sam9260ek
at91sam9261ek_defconfig - Build for at91sam9261ek
at91sam9263ek_defconfig - Build for at91sam9263ek
at91sam9g20ek_defconfig - Build for at91sam9g20ek
at91sam9rlek_defconfig - Build for at91sam9rlek
ateb9200_defconfig - Build for ateb9200
badge4_defconfig - Build for badge4
cam60_defconfig - Build for cam60
carmeva_defconfig - Build for carmeva
cerfcube_defconfig - Build for cerfcube
cm_x300_defconfig - Build for cm_x300
colibri_defconfig - Build for colibri
collie_defconfig - Build for collie
corgi_defconfig - Build for corgi
csb337_defconfig - Build for csb337
csb637_defconfig - Build for csb637
dss_omap3_beagle_defconfig - Build for dss_omap3_beagle
dss_omap_3430sdp_defconfig - Build for dss_omap_3430sdp
dss_overo_defconfig - Build for dss_overo
ebsa110_defconfig - Build for ebsa110
ecbat91_defconfig - Build for ecbat91
edb7211_defconfig - Build for edb7211
ep93xx_defconfig - Build for ep93xx
eseries_pxa_defconfig - Build for eseries_pxa
ezx_defconfig - Build for ezx
footbridge_defconfig - Build for footbridge
fortunet_defconfig - Build for fortunet
h3600_defconfig - Build for h3600
h5000_defconfig - Build for h5000
h7201_defconfig - Build for h7201
h7202_defconfig - Build for h7202
hackkit_defconfig - Build for hackkit
imx27ads_defconfig - Build for imx27ads
integrator_defconfig - Build for integrator
iop13xx_defconfig - Build for iop13xx
iop32x_defconfig - Build for iop32x
iop33x_defconfig - Build for iop33x
ixp2000_defconfig - Build for ixp2000
ixp23xx_defconfig - Build for ixp23xx
ixp4xx_defconfig - Build for ixp4xx
jornada720_defconfig - Build for jornada720
kafa_defconfig - Build for kafa
kb9202_defconfig - Build for kb9202
kirkwood_defconfig - Build for kirkwood
ks8695_defconfig - Build for ks8695
lart_defconfig - Build for lart
littleton_defconfig - Build for littleton
loki_defconfig - Build for loki
lpd270_defconfig - Build for lpd270
lpd7a400_defconfig - Build for lpd7a400
lpd7a404_defconfig - Build for lpd7a404
lubbock_defconfig - Build for lubbock
lusl7200_defconfig - Build for lusl7200
magician_defconfig - Build for magician
mainstone_defconfig - Build for mainstone
msm_defconfig - Build for msm
mv78xx0_defconfig - Build for mv78xx0
mx1ads_defconfig - Build for mx1ads
mx31ads_defconfig - Build for mx31ads
mx31litekit_defconfig - Build for mx31litekit
mx31moboard_defconfig - Build for mx31moboard
mx31pdk_defconfig - Build for mx31pdk
n770_defconfig - Build for n770
n800_defconfig - Build for n800
neocore926_defconfig - Build for neocore926
neponset_defconfig - Build for neponset
netwinder_defconfig - Build for netwinder
netx_defconfig - Build for netx
ns9xxx_defconfig - Build for ns9xxx
omap2_evm_defconfig - Build for omap2_evm
omap3_beagle_defconfig - Build for omap3_beagle
omap3_evm_defconfig - Build for omap3_evm
omap3_pandora_defconfig - Build for omap3_pandora
omap_2430sdp_defconfig - Build for omap_2430sdp
omap_3430sdp_defconfig - Build for omap_3430sdp
omap_apollon_2420_defconfig - Build for omap_apollon_2420
omap_generic_1510_defconfig - Build for omap_generic_1510
omap_generic_1610_defconfig - Build for omap_generic_1610
omap_generic_1710_defconfig - Build for omap_generic_1710
omap_generic_2420_defconfig - Build for omap_generic_2420
omap_h2_1610_defconfig - Build for omap_h2_1610
omap_h3_1710_defconfig - Build for omap_h3_1710
omap_h4_2420_defconfig - Build for omap_h4_2420
omap_innovator_1510_defconfig - Build for omap_innovator_1510
omap_innovator_1610_defconfig - Build for omap_innovator_1610
omap_ldp_defconfig - Build for omap_ldp
omap_osk_5912_defconfig - Build for omap_osk_5912
omap_perseus2_730_defconfig - Build for omap_perseus2_730
onearm_defconfig - Build for onearm
orion5x_defconfig - Build for orion5x
overo_defconfig - Build for overo
palmte_defconfig - Build for palmte
palmtt_defconfig - Build for palmtt
palmz71_defconfig - Build for palmz71
palmz72_defconfig - Build for palmz72
pcm027_defconfig - Build for pcm027
pcm037_defconfig - Build for pcm037
pcm038_defconfig - Build for pcm038
picotux200_defconfig - Build for picotux200
pleb_defconfig - Build for pleb
pnx4008_defconfig - Build for pnx4008
pxa255-idp_defconfig - Build for pxa255-idp
qil-a9260_defconfig - Build for qil-a9260
realview-smp_defconfig - Build for realview-smp
realview_defconfig - Build for realview
rpc_defconfig - Build for rpc
rx51_defconfig - Build for rx51
s3c2410_defconfig - Build for s3c2410
s3c6400_defconfig - Build for s3c6400
sam9_l9260_defconfig - Build for sam9_l9260
shannon_defconfig - Build for shannon
shark_defconfig - Build for shark
simpad_defconfig - Build for simpad
spitz_defconfig - Build for spitz
sx1_defconfig - Build for sx1
tct_hammer_defconfig - Build for tct_hammer
trizeps4_defconfig - Build for trizeps4
usb-a9260_defconfig - Build for usb-a9260
usb-a9263_defconfig - Build for usb-a9263
versatile_defconfig - Build for versatile
viper_defconfig - Build for viper
w90p910_defconfig - Build for w90p910
xm_x2xx_defconfig - Build for xm_x2xx
yl9200_defconfig - Build for yl9200
zylonite_defconfig - Build for zylonite
make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build
make V=2 [targets] 2 => give reason for rebuild of target
make O=dir [targets] Locate all output files in "dir", including .config
make C=1 [targets] Check all c source with $CHECK (sparse by default)
make C=2 [targets] Force check of all c source with $CHECK
Execute "make" or "make all" to build all targets marked with [*]
For further info see the ./README file
|
| 4-7 | 4-27 | Partial Listing of Kconfig for ARM Architecture | |
| 4-8 | 4-30 | Snippet from .../arch/arm/Kconfig | 183 config VECTORS_BASE 184 hex 185 default 0xffff0000 if MMU || CPU_HIGH_VECTOR 186 default DRAM_BASE if REMAP_VECTORS_TO_RAM 187 default 0x00000000 188 help 189 The base address of exception vectors. 190 191 source "init/Kconfig" 192 193 source "kernel/Kconfig.freezer" 194 195 menu "System Type" 196 197 choice 198 prompt "ARM system type" 199 default ARCH_VERSATILE 200 201 config ARCH_AAEC2000 202 bool "Agilent AAEC-2000 based" 203 select CPU_ARM920T 204 select ARM_AMBA 205 select HAVE_CLK 206 help 207 This enables support for systems based on the Agilent AAEC-2000 208 209 config ARCH_INTEGRATOR 210 bool "ARM Ltd. Integrator family" 211 select ARM_AMBA 212 select HAVE_CLK 213 select COMMON_CLKDEV 214 select ICST525 215 help 216 Support for ARM's Integrator platform. |
| 4-9 | 4-30 | Snippet from .../arch/arm/plat-omap/Kconfig |
....
config OMAP_BOOT_REASON
bool "Support for boot reason"
depends on OMAP_BOOT_TAG
default n
help
Say Y, if you want to have a procfs entry for reading the boot
reason in user-space.
config OMAP_COMPONENT_VERSION
bool "Support for component version display"
depends on OMAP_BOOT_TAG && PROC_FS
default n
help
Say Y, if you want to have a procfs entry for reading component
versions (supplied by the bootloader) in user-space.
config OMAP_GPIO_SWITCH
bool "GPIO switch support"
default n
help
Say Y, if you want to have support for reporting of GPIO
switches (e.g. cover switches) via sysfs. Your bootloader has
to provide information about the switches to the kernel via the
ATAG_BOARD mechanism if they're not defined by the board config.
config OMAP_MUX
bool "OMAP multiplexing support"
depends on ARCH_OMAP
default y
help
Pin multiplexing support for OMAP boards. If your bootloader
sets the multiplexing correctly, say N. Otherwise, or if unsure,
say Y.
config OMAP_MUX_DEBUG
bool "Multiplexing debug output"
depends on OMAP_MUX
help
Makes the multiplexing functions print out a lot of debug info.
This is useful if you want to find out the correct values of the
....
|
| 4-10 | 4-32 | Customized .config File Snippet | # # OMAP Feature Selections # # CONFIG_OMAP_DEBUG_POWERDOMAIN is not set # CONFIG_OMAP_DEBUG_CLOCKDOMAIN is not set # CONFIG_OMAP_SMARTREFLEX is not set CONFIG_OMAP_RESET_CLOCKS=y CONFIG_OMAP_BOOT_TAG=y CONFIG_OMAP_BOOT_REASON=y # CONFIG_OMAP_COMPONENT_VERSION is not set CONFIG_OMAP_GPIO_SWITCH=y # CONFIG_OMAP_GPIO_SWITCH_2 is not set # CONFIG_OMAP_MUX is not set CONFIG_OMAP_MCBSP=y # CONFIG_OMAP_MBOX_FWK is not set CONFIG_OMAP_IOMMU=m # CONFIG_OMAP_MPU_TIMER is not set CONFIG_OMAP_32K_TIMER=y CONFIG_OMAP_32K_TIMER_HZ=128 CONFIG_OMAP_TICK_GPTIMER=12 CONFIG_OMAP_DM_TIMER=y # CONFIG_OMAP_LL_DEBUG_UART1 is not set # CONFIG_OMAP_LL_DEBUG_UART2 is not set CONFIG_OMAP_LL_DEBUG_UART3=y CONFIG_ARCH_OMAP34XX=y CONFIG_ARCH_OMAP3430=y |
| 4-11 | 4-33 | Makefile from .../arch/arm/plat-omap/ Kernel Subdirectory |
#
# Makefile for the linux kernel.
#
# Common support
obj-y := common.o sram.o clock.o devices.o dma.o mux.o gpio.o \
usb.o fb.o vram.o vrfb.o io.o
obj-m :=
obj-n :=
obj- :=
# OCPI interconnect support for 1710, 1610 and 5912
obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o
obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
obj-$(CONFIG_OMAP_IOMMU) += iommu.o iovmm.o
obj-$(CONFIG_CPU_FREQ) += cpu-omap.o
obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o
obj-$(CONFIG_OMAP_BOOT_REASON) += bootreason.o
obj-$(CONFIG_OMAP_COMPONENT_VERSION) += component-version.o
obj-$(CONFIG_OMAP_GPIO_SWITCH) += gpio-switch.o
obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o
obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o
i2c-omap-$(CONFIG_I2C_OMAP) := i2c.o
obj-y += $(i2c-omap-m) $(i2c-omap-y)
# OMAP mailbox framework
obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox.o
|