Difference between revisions of "User:Embrybd"

From eLinux.org
Jump to: navigation, search
m
(Added listings)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
[[ECE597:_MythTV/DSP_Pico_Projector]]
 
[[ECE597:_MythTV/DSP_Pico_Projector]]
  
VBox Remote Login Script:
+
=Useful Files=
 +
=== ~/.vimrc ===
 +
<pre>
 +
if has("cscope")
 +
                set csprg=/usr/bin/cscope
 +
                set csto=0
 +
                set cst
 +
                set nocsverb
 +
                " add any database in current directory
 +
                if filereadable("cscope.out")
 +
                    cs add cscope.out
 +
                " else add database pointed to by environment
 +
                elseif $CSCOPE_DB != ""
 +
                    cs add $CSCOPE_DB
 +
                endif
 +
                set csverb
 +
endif
 +
set tabstop=4
 +
set shiftwidth=4
 +
set expandtab
 +
set autoindent
 +
set smartindent
 +
set smarttab
 +
set showmatch
 +
 
 +
" Set options for 'list'
 +
set listchars=tab:>-,trail:%,extends:>,precedes:<
 +
set list
 +
 
 +
syntax on
 +
set number
 +
colorscheme desert
 +
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
 +
</pre>
 +
 
 +
=== ~/.screenrc ===
 +
<pre>
 +
hardstatus alwayslastline
 +
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]'
 +
</pre>
 +
 
 +
=== VBox Remote Login Script ===
 
<pre>
 
<pre>
 
#!/bin/bash
 
#!/bin/bash
 
#This script needs to be modified for your use, the port information needs to be filled
 
#This script needs to be modified for your use, the port information needs to be filled
#as well as the names of your vms.
+
#as well as the names of your vms. It also assumes ssh public key login is setup
  
 
SERVER=
 
SERVER=
Line 82: Line 123:
  
 
connect
 
connect
 +
</pre>
 +
 +
=Chapter Listings=
 +
 +
== Chapter 4 ==
 +
{|
 +
! Number
 +
! Caption
 +
! Listing
 +
|-
 +
| 4-3
 +
| Kernel Arch Subdirectory (omap2)
 +
| <pre>
 +
brian@Kratos:/dump/hw/oe/linux-omap-2.6/arch/arm$ ls -l mach-omap2
 +
total 1952
 +
-rwxrwx--x 1 brian elinux  5333 2010-03-11 23:14 board-2430sdp.c
 +
-rwxrwx--x 1 brian elinux  19575 2010-03-11 23:14 board-3430sdp.c
 +
-rwxrwx--x 1 brian elinux  2645 2010-03-11 23:14 board-3630sdp.c
 +
-rwxrwx--x 1 brian elinux  3467 2010-03-11 23:14 board-4430sdp.c
 +
-rwxrwx--x 1 brian elinux  8117 2010-03-11 23:14 board-am3517evm.c
 +
-rwxrwx--x 1 brian elinux  8653 2010-03-11 23:14 board-apollon.c
 +
-rwxrwx--x 1 brian elinux  22418 2010-03-11 23:14 board-cm-t35.c
 +
-rwxrwx--x 1 brian elinux  17097 2010-03-11 23:14 board-devkit8000.c
 +
-rwxrwx--x 1 brian elinux  1763 2010-03-11 23:14 board-generic.c
 +
-rwxrwx--x 1 brian elinux  9359 2010-03-11 23:14 board-h4.c
 +
-rwxrwx--x 1 brian elinux  14145 2010-03-11 23:14 board-igep0020.c
 +
-rwxrwx--x 1 brian elinux  9466 2010-03-11 23:14 board-ldp.c
 +
-rwxrwx--x 1 brian elinux  15510 2010-03-11 23:14 board-n8x0.c
 +
-rwxrwx--x 1 brian elinux  11863 2010-03-11 23:14 board-omap3beagle.c
 +
-rwxrwx--x 1 brian elinux  18257 2010-03-11 23:14 board-omap3evm.c
 +
-rwxrwx--x 1 brian elinux  15568 2010-03-11 23:14 board-omap3pandora.c
 +
-rwxrwx--x 1 brian elinux  14241 2010-03-11 23:14 board-omap3touchbook.c
 +
-rwxrwx--x 1 brian elinux  12529 2010-03-11 23:14 board-overo.c
 +
-rwxrwx--x 1 brian elinux  3544 2010-03-11 23:14 board-rx51.c
 +
-rwxrwx--x 1 brian elinux  20958 2010-03-11 23:14 board-rx51-peripherals.c
 +
-rwxrwx--x 1 brian elinux  4914 2010-03-11 23:14 board-rx51-sdram.c
 +
-rwxrwx--x 1 brian elinux  6955 2010-03-11 23:14 board-sdp-flash.c
 +
-rwxrwx--x 1 brian elinux  2311 2010-03-11 23:14 board-zoom2.c
 +
-rwxrwx--x 1 brian elinux  2002 2010-03-11 23:14 board-zoom3.c
 +
-rwxrwx--x 1 brian elinux  3863 2010-03-11 23:14 board-zoom-debugboard.c
 +
-rwxrwx--x 1 brian elinux  6928 2010-03-11 23:14 board-zoom-peripherals.c
 +
-rwxrwx--x 1 brian elinux  2709 2010-03-11 23:14 clkt2xxx_apll.c
 +
-rwxrwx--x 1 brian elinux  4517 2010-03-11 23:14 clkt2xxx_dpllcore.c
 +
-rwxrwx--x 1 brian elinux  1339 2010-03-11 23:14 clkt2xxx_osc.c
 +
-rwxrwx--x 1 brian elinux  1044 2010-03-11 23:14 clkt2xxx_sys.c
 +
-rwxrwx--x 1 brian elinux  6350 2010-03-11 23:14 clkt2xxx_virt_prcm_set.c
 +
-rwxrwx--x 1 brian elinux  3190 2010-03-11 23:14 clkt34xx_dpll3m2.c
 +
-rwxrwx--x 1 brian elinux  10683 2010-03-11 23:14 clkt_clksel.c
 +
-rwxrwx--x 1 brian elinux  11398 2010-03-11 23:14 clkt_dpll.c
 +
-rwxrwx--x 1 brian elinux  57617 2010-03-11 23:14 clock2420_data.c
 +
-rwxrwx--x 1 brian elinux  1825 2010-03-11 23:14 clock2430.c
 +
-rwxrwx--x 1 brian elinux  60193 2010-03-11 23:14 clock2430_data.c
 +
-rwxrwx--x 1 brian elinux  1545 2010-03-11 23:14 clock2xxx.c
 +
-rwxrwx--x 1 brian elinux  1303 2010-03-11 23:14 clock2xxx.h
 +
-rwxrwx--x 1 brian elinux  4195 2010-03-11 23:14 clock34xx.c
 +
-rwxrwx--x 1 brian elinux    430 2010-03-11 23:14 clock34xx.h
 +
-rwxrwx--x 1 brian elinux  4195 2010-03-11 23:14 clock3517.c
 +
-rwxrwx--x 1 brian elinux    355 2010-03-11 23:14 clock3517.h
 +
-rwxrwx--x 1 brian elinux  2027 2010-03-11 23:14 clock36xx.c
 +
-rwxrwx--x 1 brian elinux    313 2010-03-11 23:14 clock36xx.h
 +
-rwxrwx--x 1 brian elinux  2585 2010-03-11 23:14 clock3xxx.c
 +
-rwxrwx--x 1 brian elinux 109556 2010-03-11 23:14 clock3xxx_data.c
 +
-rwxrwx--x 1 brian elinux    563 2010-03-11 23:14 clock3xxx.h
 +
-rwxrwx--x 1 brian elinux  82933 2010-03-11 23:14 clock44xx_data.c
 +
-rwxrwx--x 1 brian elinux    445 2010-03-11 23:14 clock44xx.h
 +
-rwxrwx--x 1 brian elinux  14082 2010-03-11 23:14 clock.c
 +
-rwxrwx--x 1 brian elinux  1216 2010-03-11 23:14 clock_common_data.c
 +
-rwxrwx--x 1 brian elinux  29903 2010-03-11 23:14 clockdomain.c
 +
-rwxrwx--x 1 brian elinux  8265 2010-03-11 23:14 clockdomains44xx.h
 +
-rwxrwx--x 1 brian elinux  24077 2010-03-11 23:14 clockdomains.h
 +
-rwxrwx--x 1 brian elinux  5076 2010-03-11 23:14 clock.h
 +
-rwxrwx--x 1 brian elinux  29027 2010-03-11 23:14 cm44xx.h
 +
-rwxrwx--x 1 brian elinux  1421 2010-03-11 23:14 cm4xxx.c
 +
-rwxrwx--x 1 brian elinux  1683 2010-03-11 23:14 cm.c
 +
-rwxrwx--x 1 brian elinux  4467 2010-03-11 23:14 cm.h
 +
-rwxrwx--x 1 brian elinux  14321 2010-03-11 23:14 cm-regbits-24xx.h
 +
-rwxrwx--x 1 brian elinux  27452 2010-03-11 23:14 cm-regbits-34xx.h
 +
-rwxrwx--x 1 brian elinux  60074 2010-03-11 23:14 cm-regbits-44xx.h
 +
-rwxrwx--x 1 brian elinux  15102 2010-03-11 23:14 control.c
 +
-rwxrwx--x 1 brian elinux  14037 2010-03-11 23:14 cpuidle34xx.c
 +
-rwxrwx--x 1 brian elinux  18888 2010-03-11 23:14 devices.c
 +
-rwxrwx--x 1 brian elinux  15462 2010-03-11 23:14 dpll3xxx.c
 +
-rwxrwx--x 1 brian elinux  1522 2010-03-11 23:14 emu.c
 +
-rwxrwx--x 1 brian elinux  15087 2010-03-11 23:14 gpmc.c
 +
-rwxrwx--x 1 brian elinux  3562 2010-03-11 23:14 gpmc-nand.c
 +
-rwxrwx--x 1 brian elinux  9348 2010-03-11 23:14 gpmc-onenand.c
 +
-rwxrwx--x 1 brian elinux  5045 2010-03-11 23:14 gpmc-smc91x.c
 +
-rwxrwx--x 1 brian elinux  6968 2010-03-11 23:14 hsmmc.c
 +
-rwxrwx--x 1 brian elinux  1238 2010-03-11 23:14 hsmmc.h
 +
-rwxrwx--x 1 brian elinux  1538 2010-03-11 23:14 i2c.c
 +
-rwxrwx--x 1 brian elinux  10740 2010-03-11 23:14 id.c
 +
drwxrwx--x 3 brian elinux  4096 2010-03-11 23:14 include
 +
-rwxrwx--x 1 brian elinux  7975 2010-03-11 23:14 io.c
 +
-rwxrwx--x 1 brian elinux  7914 2010-03-11 23:14 iommu2.c
 +
-rwxrwx--x 1 brian elinux  7481 2010-03-11 23:14 irq.c
 +
-rwxrwx--x 1 brian elinux  3448 2010-03-11 23:14 Kconfig
 +
-rwxrwx--x 1 brian elinux  12216 2010-03-11 23:14 mailbox.c
 +
-rwxrwx--x 1 brian elinux  4943 2010-03-11 23:14 Makefile
 +
-rwxrwx--x 1 brian elinux    86 2010-03-11 23:14 Makefile.boot
 +
-rwxrwx--x 1 brian elinux  7650 2010-03-11 23:14 mcbsp.c
 +
-rwxrwx--x 1 brian elinux  83424 2010-03-11 23:14 mux34xx.c
 +
-rwxrwx--x 1 brian elinux  20813 2010-03-11 23:14 mux34xx.h
 +
-rwxrwx--x 1 brian elinux  26941 2010-03-11 23:14 mux.c
 +
-rwxrwx--x 1 brian elinux  5089 2010-03-11 23:14 mux.h
 +
-rwxrwx--x 1 brian elinux  2196 2010-03-11 23:14 omap3-iommu.c
 +
-rwxrwx--x 1 brian elinux    847 2010-03-11 23:14 omap44xx-smc.S
 +
-rwxrwx--x 1 brian elinux  1588 2010-03-11 23:14 omap-headsmp.S
 +
-rwxrwx--x 1 brian elinux  4151 2010-03-11 23:14 omap_hwmod_2420_data.c
 +
-rwxrwx--x 1 brian elinux  4243 2010-03-11 23:14 omap_hwmod_2430_data.c
 +
-rwxrwx--x 1 brian elinux  5122 2010-03-11 23:14 omap_hwmod_3xxx_data.c
 +
-rwxrwx--x 1 brian elinux  42966 2010-03-11 23:14 omap_hwmod.c
 +
-rwxrwx--x 1 brian elinux  1796 2010-03-11 23:14 omap_hwmod_common_data.c
 +
-rwxrwx--x 1 brian elinux    736 2010-03-11 23:14 omap_hwmod_common_data.h
 +
-rwxrwx--x 1 brian elinux  4059 2010-03-11 23:14 omap-smp.c
 +
-rwxrwx--x 1 brian elinux  4994 2010-03-11 23:14 opp2420_data.c
 +
-rwxrwx--x 1 brian elinux  4914 2010-03-11 23:14 opp2430_data.c
 +
-rwxrwx--x 1 brian elinux  15591 2010-03-11 23:14 opp2xxx.h
 +
-rwxrwx--x 1 brian elinux  13927 2010-03-11 23:14 pm24xx.c
 +
-rwxrwx--x 1 brian elinux  29998 2010-03-11 23:14 pm34xx.c
 +
-rwxrwx--x 1 brian elinux  14658 2010-03-11 23:14 pm-debug.c
 +
-rwxrwx--x 1 brian elinux  2526 2010-03-11 23:14 pm.h
 +
-rwxrwx--x 1 brian elinux  27931 2010-03-11 23:14 powerdomain.c
 +
-rwxrwx--x 1 brian elinux  2659 2010-03-11 23:14 powerdomains24xx.h
 +
-rwxrwx--x 1 brian elinux  6376 2010-03-11 23:14 powerdomains34xx.h
 +
-rwxrwx--x 1 brian elinux  8752 2010-03-11 23:14 powerdomains44xx.h
 +
-rwxrwx--x 1 brian elinux  3730 2010-03-11 23:14 powerdomains.h
 +
-rwxrwx--x 1 brian elinux  20105 2010-03-11 23:14 prcm.c
 +
-rwxrwx--x 1 brian elinux  16366 2010-03-11 23:14 prcm-common.h
 +
-rwxrwx--x 1 brian elinux  33309 2010-03-11 23:14 prm44xx.h
 +
-rwxrwx--x 1 brian elinux  14824 2010-03-11 23:14 prm.h
 +
-rwxrwx--x 1 brian elinux  8244 2010-03-11 23:14 prm-regbits-24xx.h
 +
-rwxrwx--x 1 brian elinux  19792 2010-03-11 23:14 prm-regbits-34xx.h
 +
-rwxrwx--x 1 brian elinux  80743 2010-03-11 23:14 prm-regbits-44xx.h
 +
-rwxrwx--x 1 brian elinux  1207 2010-03-11 23:14 sdram-hynix-h8mbx00u0mer-0em.h
 +
-rwxrwx--x 1 brian elinux  1306 2010-03-11 23:14 sdram-micron-mt46h32m32lf-6.h
 +
-rwxrwx--x 1 brian elinux  1141 2010-03-11 23:14 sdram-numonyx-m65kxxxxam.h
 +
-rwxrwx--x 1 brian elinux  1254 2010-03-11 23:14 sdram-qimonda-hyb18m512160af-6.h
 +
-rwxrwx--x 1 brian elinux  4290 2010-03-11 23:14 sdrc2xxx.c
 +
-rwxrwx--x 1 brian elinux  4676 2010-03-11 23:14 sdrc.c
 +
-rwxrwx--x 1 brian elinux  1935 2010-03-11 23:14 sdrc.h
 +
-rwxrwx--x 1 brian elinux  18740 2010-03-11 23:14 serial.c
 +
-rwxrwx--x 1 brian elinux  4039 2010-03-11 23:14 sleep24xx.S
 +
-rwxrwx--x 1 brian elinux  19716 2010-03-11 23:14 sleep34xx.S
 +
-rwxrwx--x 1 brian elinux  10217 2010-03-11 23:14 sram242x.S
 +
-rwxrwx--x 1 brian elinux  10217 2010-03-11 23:14 sram243x.S
 +
-rwxrwx--x 1 brian elinux  9800 2010-03-11 23:14 sram34xx.S
 +
-rwxrwx--x 1 brian elinux  6480 2010-03-11 23:14 timer-gp.c
 +
-rwxrwx--x 1 brian elinux    974 2010-03-11 23:14 timer-mpu.c
 +
-rwxrwx--x 1 brian elinux  7046 2010-03-11 23:14 usb-ehci.c
 +
-rwxrwx--x 1 brian elinux  3089 2010-03-11 23:14 usb-musb.c
 +
-rwxrwx--x 1 brian elinux  8813 2010-03-11 23:14 usb-tusb6010.c
 +
</pre>
 +
 +
|-
 +
| 4-6
 +
| Makefile Targets
 +
| <pre>
 +
brian@Kratos:/dump/hw/oe/linux-omap-2.6$ make help
 +
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
 +
  localmodconfig  - Update current config disabling modules not loaded
 +
  localyesconfig  - Update current config converting local mods to core
 +
  silentoldconfig - Same as oldconfig, but quietly, additionally update deps
 +
  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
 +
  modules_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: /dump/hw/oe/linux-omap-2.6/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
 +
  pdfdocs        - PDF
 +
  psdocs          - Postscript
 +
  xmldocs        - XML DocBook
 +
  mandocs        - man pages
 +
  installmandocs  - install man pages generated by mandocs
 +
  cleandocs      - clean all generated DocBook files
 +
 +
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
 +
 +
  acs5k_defconfig          - Build for acs5k
 +
  acs5k_tiny_defconfig    - Build for acs5k_tiny
 +
  afeb9260_defconfig      - Build for afeb9260
 +
  am200epdkit_defconfig    - Build for am200epdkit
 +
  am3517_evm_defconfig    - Build for am3517_evm
 +
  ams_delta_defconfig      - Build for ams_delta
 +
  assabet_defconfig        - Build for assabet
 +
  at572d940hfek_defconfig  - Build for at572d940hfek
 +
  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
 +
  bcmring_defconfig        - Build for bcmring
 +
  cam60_defconfig          - Build for cam60
 +
  carmeva_defconfig        - Build for carmeva
 +
  cerfcube_defconfig      - Build for cerfcube
 +
  cm_t35_defconfig        - Build for cm_t35
 +
  cm_x2xx_defconfig        - Build for cm_x2xx
 +
  cm_x300_defconfig        - Build for cm_x300
 +
  colibri_pxa270_defconfig - Build for colibri_pxa270
 +
  colibri_pxa300_defconfig - Build for colibri_pxa300
 +
  collie_defconfig        - Build for collie
 +
  corgi_defconfig          - Build for corgi
 +
  cpu9260_defconfig        - Build for cpu9260
 +
  cpu9g20_defconfig        - Build for cpu9g20
 +
  cpuat91_defconfig        - Build for cpuat91
 +
  csb337_defconfig        - Build for csb337
 +
  csb637_defconfig        - Build for csb637
 +
  da8xx_omapl_defconfig    - Build for da8xx_omapl
 +
  davinci_all_defconfig    - Build for davinci_all
 +
  devkit8000_defconfig    - Build for devkit8000
 +
  dove_defconfig          - Build for dove
 +
  ebsa110_defconfig        - Build for ebsa110
 +
  ecbat91_defconfig        - Build for ecbat91
 +
  edb7211_defconfig        - Build for edb7211
 +
  em_x270_defconfig        - Build for em_x270
 +
  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
 +
  htcherald_defconfig      - Build for htcherald
 +
  igep0020_defconfig      - Build for igep0020
 +
  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
 +
  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
 +
  mini2440_defconfig      - Build for mini2440
 +
  msm_defconfig            - Build for msm
 +
  mv78xx0_defconfig        - Build for mv78xx0
 +
  mx1ads_defconfig        - Build for mx1ads
 +
  mx1_defconfig            - Build for mx1
 +
  mx21_defconfig          - Build for mx21
 +
  mx27_defconfig          - Build for mx27
 +
  mx31pdk_defconfig        - Build for mx31pdk
 +
  mx3_defconfig            - Build for mx3
 +
  n770_defconfig          - Build for n770
 +
  n8x0_defconfig          - Build for n8x0
 +
  neocore926_defconfig    - Build for neocore926
 +
  neponset_defconfig      - Build for neponset
 +
  netwinder_defconfig      - Build for netwinder
 +
  netx_defconfig          - Build for netx
 +
  nhk8815_defconfig        - Build for nhk8815
 +
  ns9xxx_defconfig        - Build for ns9xxx
 +
  nuc910_defconfig        - Build for nuc910
 +
  nuc950_defconfig        - Build for nuc950
 +
  nuc960_defconfig        - Build for nuc960
 +
  omap_2430sdp_defconfig  - Build for omap_2430sdp
 +
  omap_3430sdp_defconfig  - Build for omap_3430sdp
 +
  omap_3630sdp_defconfig  - Build for omap_3630sdp
 +
  omap3_beagle_defconfig  - Build for omap3_beagle
 +
  omap3_defconfig          - Build for omap3
 +
  omap3_evm_defconfig      - Build for omap3_evm
 +
  omap3_pandora_defconfig  - Build for omap3_pandora
 +
  omap3_touchbook_defconfig - Build for omap3_touchbook
 +
  omap_4430sdp_defconfig  - Build for omap_4430sdp
 +
  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_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
 +
  omap_zoom2_defconfig    - Build for omap_zoom2
 +
  omap_zoom3_defconfig    - Build for omap_zoom3
 +
  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
 +
  picotux200_defconfig    - Build for picotux200
 +
  pleb_defconfig          - Build for pleb
 +
  pnx4008_defconfig        - Build for pnx4008
 +
  pxa168_defconfig        - Build for pxa168
 +
  pxa255-idp_defconfig    - Build for pxa255-idp
 +
  pxa3xx_defconfig        - Build for pxa3xx
 +
  pxa910_defconfig        - Build for pxa910
 +
  qil-a9260_defconfig      - Build for qil-a9260
 +
  realview_defconfig      - Build for realview
 +
  realview-smp_defconfig  - Build for realview-smp
 +
  rpc_defconfig            - Build for rpc
 +
  rx51_defconfig          - Build for rx51
 +
  s3c2410_defconfig        - Build for s3c2410
 +
  s3c6400_defconfig        - Build for s3c6400
 +
  s5pc100_defconfig        - Build for s5pc100
 +
  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
 +
  stmp378x_defconfig      - Build for stmp378x
 +
  stmp37xx_defconfig      - Build for stmp37xx
 +
  sx1_defconfig            - Build for sx1
 +
  tct_hammer_defconfig    - Build for tct_hammer
 +
  trizeps4_defconfig      - Build for trizeps4
 +
  u300_defconfig          - Build for u300
 +
  u8500_defconfig          - Build for u8500
 +
  usb-a9260_defconfig      - Build for usb-a9260
 +
  usb-a9263_defconfig      - Build for usb-a9263
 +
  versatile_defconfig      - Build for versatile
 +
  viper_defconfig          - Build for viper
 +
  xcep_defconfig          - Build for xcep
 +
  yl9200_defconfig        - Build for yl9200
 +
  zeus_defconfig          - Build for zeus
 +
 +
  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
 +
</pre>
 +
 +
|-
 +
| 4-8
 +
| Snippet from arch/arm/Kconfig
 +
| <pre>
 +
  source "init/Kconfig"
 +
 +
  source "kernel/Kconfig.freezer"
 +
 +
  menu "System Type"
 +
 +
  config MMU
 +
      bool "MMU-based Paged Memory Management Support"
 +
      default y
 +
      help
 +
        Select if you want MMU-based virtualised addressing space
 +
        support by paged memory management. If unsure, say 'Y'.
 +
 +
  choice
 +
      prompt "ARM system type"
 +
      default ARCH_VERSATILE
 +
 +
  config ARCH_AAEC2000
 +
      bool "Agilent AAEC-2000 based"
 +
      select CPU_ARM920T
 +
      select ARM_AMBA
 +
      select HAVE_CLK
 +
      help
 +
        This enables support for systems based on the Agilent AAEC-2000
 +
</pre>
 +
|-
 +
| 4-9
 +
| Snippet from arch/arm/mach-omap2/Kconfig
 +
| <pre>
 +
comment "OMAP Core Type"
 +
      depends on ARCH_OMAP2
 +
 
 +
  config ARCH_OMAP2420
 +
      bool "OMAP2420 support"
 +
      depends on ARCH_OMAP2
 +
      select OMAP_DM_TIMER
 +
      select ARCH_OMAP_OTG
 +
</pre>
 +
 +
|-
 +
| 4-10
 +
| Customized .config File Snippet
 +
| <pre>
 +
# TI OMAP Implementations
 +
  #
 +
  CONFIG_ARCH_OMAP_OTG=y
 +
  # CONFIG_ARCH_OMAP1 is not set
 +
  CONFIG_ARCH_OMAP2PLUS=y
 +
  # CONFIG_ARCH_OMAP2 is not set
 +
  CONFIG_ARCH_OMAP3=y
 +
  # CONFIG_ARCH_OMAP4 is not set
 +
 +
  #
 +
  # OMAP Feature Selections
 +
  #
 +
  # CONFIG_OMAP_RESET_CLOCKS is not set
 +
  # CONFIG_OMAP_MUX is not set
 +
  # CONFIG_OMAP_MCBSP is not set
 +
  # CONFIG_OMAP_MBOX_FWK is not set
 +
  # CONFIG_OMAP_MPU_TIMER is not set
 +
  CONFIG_OMAP_32K_TIMER=y
 +
  # CONFIG_OMAP3_L2_AUX_SECURE_SAVE_RESTORE is not set
 +
  CONFIG_OMAP_32K_TIMER_HZ=128
 +
  CONFIG_OMAP_DM_TIMER=y
 +
  # CONFIG_OMAP_PM_NONE is not set
 +
  CONFIG_OMAP_PM_NOOP=y
 +
  CONFIG_ARCH_OMAP3430=y
 +
  CONFIG_OMAP_PACKAGE_CBB=y
 +
 +
  #
 +
  # OMAP Board Type
 +
  #
 +
  CONFIG_MACH_OMAP3_BEAGLE=y
 +
  # CONFIG_MACH_DEVKIT8000 is not set
 +
  # CONFIG_MACH_OMAP_LDP is not set
 +
  # CONFIG_MACH_OVERO is not set
 +
  # CONFIG_MACH_OMAP3EVM is not set
 +
  # CONFIG_MACH_OMAP3517EVM is not set
 +
  # CONFIG_MACH_OMAP3_PANDORA is not set
 +
  # CONFIG_MACH_OMAP3_TOUCHBOOK is not set
 +
  # CONFIG_MACH_OMAP_3430SDP is not set
 +
  # CONFIG_MACH_NOKIA_RX51 is not set
 +
  # CONFIG_MACH_OMAP_ZOOM2 is not set
 +
  # CONFIG_MACH_OMAP_ZOOM3 is not set
 +
  # CONFIG_MACH_CM_T35 is not set
 +
  # CONFIG_MACH_IGEP0020 is not set
 +
  # CONFIG_MACH_OMAP_3630SDP is not set
 +
  # CONFIG_OMAP3_EMU is not set
 +
  # CONFIG_OMAP3_SDRC_AC_TIMING is not set
 +
</pre>
 +
|-
 +
| 4-11
 +
| Makefile from arch/arm/mach-omap2 Kernel Subdirectory
 +
| <pre>
 +
  # Makefile for the linux kernel.
 +
  #
 +
 
 +
  # Common support
 +
  obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o
 +
 
 +
  omap-2-3-common            = irq.o sdrc.o
 +
  hwmod-common                = omap_hwmod.o \
 +
                        omap_hwmod_common_data.o
 +
  prcm-common            = prcm.o powerdomain.o
 +
  clock-common                = clock.o clock_common_data.o \
 +
                        clockdomain.o clkt_dpll.o \
 +
                        clkt_clksel.o
 +
 +
  obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(hwmod-common    )
 +
  obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(hwmod-common    )
 +
  obj-$(CONFIG_ARCH_OMAP4) += $(prcm-common)
 +
 +
  obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
 +
</pre>
 +
|}
 +
== Chapter 5 ==
 +
{|
 +
! Number
 +
! Caption
 +
! Listing
 +
|-
 +
| 5-2
 +
| Assembly File piggy.S
 +
| <pre>
 +
.section .piggydata,#alloc
 +
      .globl  input_data
 +
  input_data:
 +
      .incbin "arch/arm/boot/compressed/piggy.gzip"
 +
      .globl  input_data_end
 +
  input_data_end:
 
</pre>
 
</pre>

Latest revision as of 18:13, 22 March 2010


Brian Embry

Senior CPE

My main experience is C and Linux. I like playing with microcontrollers

Projects: ECE597:_MythTV/DSP_Pico_Projector

Useful Files

~/.vimrc

if has("cscope")
                set csprg=/usr/bin/cscope
                set csto=0
                set cst 
                set nocsverb
                " add any database in current directory
                if filereadable("cscope.out")
                    cs add cscope.out
                " else add database pointed to by environment
                elseif $CSCOPE_DB != ""
                    cs add $CSCOPE_DB
                endif
                set csverb
endif
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
set smarttab
set showmatch

" Set options for 'list'
set listchars=tab:>-,trail:%,extends:>,precedes:<
set list

syntax on
set number
colorscheme desert
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE

~/.screenrc

hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]'

VBox Remote Login Script

#!/bin/bash
#This script needs to be modified for your use, the port information needs to be filled
#as well as the names of your vms.  It also assumes ssh public key login is setup

SERVER=
USER=

WIN7ULT=Win7-Ult
WIN7UPRT=

WIN7BETA=Win7-Beta
WIN7BPRT=

VISTA64=Vista64
VISTA64PRT=

WIDTH=1024
HEIGHT=768

LOCALPORT=5903

usage ()
{
    echo "VBoxConnect <Win7-Ult | Win7-Beta | Vista64> [w] [h]"
    exit 1
}

connect ()
{
    echo "Connecting to $SERVER"
    ssh $SERVER "VBoxManage startvm $VM --type vrdp"
    ssh $SERVER "VBoxManage controlvm $VM setvideomodehint $WIDTH $HEIGHT 24"
    ssh -f -L $LOCALPORT:$SERVER:$VMPORT $SERVER sleep 10
    rdesktop -5 -a 24 -x m -T $VM -u $USER -p - localhost:$LOCALPORT
}

if [ -z $1 ]
    then
        usage
fi

case "$1" in
    $WIN7ULT)
        VMPORT=$WIN7UPRT
        VM=$WIN7ULT
        ;;
    $WIN7BETA)
        VMPORT=$WIN7BPRT
        VM=$WIN7BETA
        ;;
    $VISTA64)
        VMPORT=$VISTA64PRT
        VM=$VISTA64
        ;;
    *)
        usage
        ;;
esac

if [ $2 ]
    then
        WIDTH=$2
fi

if [ $3 ]
    then
        HEIGHT=$3
fi

connect

Chapter Listings

Chapter 4

Number Caption Listing
4-3 Kernel Arch Subdirectory (omap2)
brian@Kratos:/dump/hw/oe/linux-omap-2.6/arch/arm$ ls -l mach-omap2
total 1952
-rwxrwx--x 1 brian elinux   5333 2010-03-11 23:14 board-2430sdp.c
-rwxrwx--x 1 brian elinux  19575 2010-03-11 23:14 board-3430sdp.c
-rwxrwx--x 1 brian elinux   2645 2010-03-11 23:14 board-3630sdp.c
-rwxrwx--x 1 brian elinux   3467 2010-03-11 23:14 board-4430sdp.c
-rwxrwx--x 1 brian elinux   8117 2010-03-11 23:14 board-am3517evm.c
-rwxrwx--x 1 brian elinux   8653 2010-03-11 23:14 board-apollon.c
-rwxrwx--x 1 brian elinux  22418 2010-03-11 23:14 board-cm-t35.c
-rwxrwx--x 1 brian elinux  17097 2010-03-11 23:14 board-devkit8000.c
-rwxrwx--x 1 brian elinux   1763 2010-03-11 23:14 board-generic.c
-rwxrwx--x 1 brian elinux   9359 2010-03-11 23:14 board-h4.c
-rwxrwx--x 1 brian elinux  14145 2010-03-11 23:14 board-igep0020.c
-rwxrwx--x 1 brian elinux   9466 2010-03-11 23:14 board-ldp.c
-rwxrwx--x 1 brian elinux  15510 2010-03-11 23:14 board-n8x0.c
-rwxrwx--x 1 brian elinux  11863 2010-03-11 23:14 board-omap3beagle.c
-rwxrwx--x 1 brian elinux  18257 2010-03-11 23:14 board-omap3evm.c
-rwxrwx--x 1 brian elinux  15568 2010-03-11 23:14 board-omap3pandora.c
-rwxrwx--x 1 brian elinux  14241 2010-03-11 23:14 board-omap3touchbook.c
-rwxrwx--x 1 brian elinux  12529 2010-03-11 23:14 board-overo.c
-rwxrwx--x 1 brian elinux   3544 2010-03-11 23:14 board-rx51.c
-rwxrwx--x 1 brian elinux  20958 2010-03-11 23:14 board-rx51-peripherals.c
-rwxrwx--x 1 brian elinux   4914 2010-03-11 23:14 board-rx51-sdram.c
-rwxrwx--x 1 brian elinux   6955 2010-03-11 23:14 board-sdp-flash.c
-rwxrwx--x 1 brian elinux   2311 2010-03-11 23:14 board-zoom2.c
-rwxrwx--x 1 brian elinux   2002 2010-03-11 23:14 board-zoom3.c
-rwxrwx--x 1 brian elinux   3863 2010-03-11 23:14 board-zoom-debugboard.c
-rwxrwx--x 1 brian elinux   6928 2010-03-11 23:14 board-zoom-peripherals.c
-rwxrwx--x 1 brian elinux   2709 2010-03-11 23:14 clkt2xxx_apll.c
-rwxrwx--x 1 brian elinux   4517 2010-03-11 23:14 clkt2xxx_dpllcore.c
-rwxrwx--x 1 brian elinux   1339 2010-03-11 23:14 clkt2xxx_osc.c
-rwxrwx--x 1 brian elinux   1044 2010-03-11 23:14 clkt2xxx_sys.c
-rwxrwx--x 1 brian elinux   6350 2010-03-11 23:14 clkt2xxx_virt_prcm_set.c
-rwxrwx--x 1 brian elinux   3190 2010-03-11 23:14 clkt34xx_dpll3m2.c
-rwxrwx--x 1 brian elinux  10683 2010-03-11 23:14 clkt_clksel.c
-rwxrwx--x 1 brian elinux  11398 2010-03-11 23:14 clkt_dpll.c
-rwxrwx--x 1 brian elinux  57617 2010-03-11 23:14 clock2420_data.c
-rwxrwx--x 1 brian elinux   1825 2010-03-11 23:14 clock2430.c
-rwxrwx--x 1 brian elinux  60193 2010-03-11 23:14 clock2430_data.c
-rwxrwx--x 1 brian elinux   1545 2010-03-11 23:14 clock2xxx.c
-rwxrwx--x 1 brian elinux   1303 2010-03-11 23:14 clock2xxx.h
-rwxrwx--x 1 brian elinux   4195 2010-03-11 23:14 clock34xx.c
-rwxrwx--x 1 brian elinux    430 2010-03-11 23:14 clock34xx.h
-rwxrwx--x 1 brian elinux   4195 2010-03-11 23:14 clock3517.c
-rwxrwx--x 1 brian elinux    355 2010-03-11 23:14 clock3517.h
-rwxrwx--x 1 brian elinux   2027 2010-03-11 23:14 clock36xx.c
-rwxrwx--x 1 brian elinux    313 2010-03-11 23:14 clock36xx.h
-rwxrwx--x 1 brian elinux   2585 2010-03-11 23:14 clock3xxx.c
-rwxrwx--x 1 brian elinux 109556 2010-03-11 23:14 clock3xxx_data.c
-rwxrwx--x 1 brian elinux    563 2010-03-11 23:14 clock3xxx.h
-rwxrwx--x 1 brian elinux  82933 2010-03-11 23:14 clock44xx_data.c
-rwxrwx--x 1 brian elinux    445 2010-03-11 23:14 clock44xx.h
-rwxrwx--x 1 brian elinux  14082 2010-03-11 23:14 clock.c
-rwxrwx--x 1 brian elinux   1216 2010-03-11 23:14 clock_common_data.c
-rwxrwx--x 1 brian elinux  29903 2010-03-11 23:14 clockdomain.c
-rwxrwx--x 1 brian elinux   8265 2010-03-11 23:14 clockdomains44xx.h
-rwxrwx--x 1 brian elinux  24077 2010-03-11 23:14 clockdomains.h
-rwxrwx--x 1 brian elinux   5076 2010-03-11 23:14 clock.h
-rwxrwx--x 1 brian elinux  29027 2010-03-11 23:14 cm44xx.h
-rwxrwx--x 1 brian elinux   1421 2010-03-11 23:14 cm4xxx.c
-rwxrwx--x 1 brian elinux   1683 2010-03-11 23:14 cm.c
-rwxrwx--x 1 brian elinux   4467 2010-03-11 23:14 cm.h
-rwxrwx--x 1 brian elinux  14321 2010-03-11 23:14 cm-regbits-24xx.h
-rwxrwx--x 1 brian elinux  27452 2010-03-11 23:14 cm-regbits-34xx.h
-rwxrwx--x 1 brian elinux  60074 2010-03-11 23:14 cm-regbits-44xx.h
-rwxrwx--x 1 brian elinux  15102 2010-03-11 23:14 control.c
-rwxrwx--x 1 brian elinux  14037 2010-03-11 23:14 cpuidle34xx.c
-rwxrwx--x 1 brian elinux  18888 2010-03-11 23:14 devices.c
-rwxrwx--x 1 brian elinux  15462 2010-03-11 23:14 dpll3xxx.c
-rwxrwx--x 1 brian elinux   1522 2010-03-11 23:14 emu.c
-rwxrwx--x 1 brian elinux  15087 2010-03-11 23:14 gpmc.c
-rwxrwx--x 1 brian elinux   3562 2010-03-11 23:14 gpmc-nand.c
-rwxrwx--x 1 brian elinux   9348 2010-03-11 23:14 gpmc-onenand.c
-rwxrwx--x 1 brian elinux   5045 2010-03-11 23:14 gpmc-smc91x.c
-rwxrwx--x 1 brian elinux   6968 2010-03-11 23:14 hsmmc.c
-rwxrwx--x 1 brian elinux   1238 2010-03-11 23:14 hsmmc.h
-rwxrwx--x 1 brian elinux   1538 2010-03-11 23:14 i2c.c
-rwxrwx--x 1 brian elinux  10740 2010-03-11 23:14 id.c
drwxrwx--x 3 brian elinux   4096 2010-03-11 23:14 include
-rwxrwx--x 1 brian elinux   7975 2010-03-11 23:14 io.c
-rwxrwx--x 1 brian elinux   7914 2010-03-11 23:14 iommu2.c
-rwxrwx--x 1 brian elinux   7481 2010-03-11 23:14 irq.c
-rwxrwx--x 1 brian elinux   3448 2010-03-11 23:14 Kconfig
-rwxrwx--x 1 brian elinux  12216 2010-03-11 23:14 mailbox.c
-rwxrwx--x 1 brian elinux   4943 2010-03-11 23:14 Makefile
-rwxrwx--x 1 brian elinux     86 2010-03-11 23:14 Makefile.boot
-rwxrwx--x 1 brian elinux   7650 2010-03-11 23:14 mcbsp.c
-rwxrwx--x 1 brian elinux  83424 2010-03-11 23:14 mux34xx.c
-rwxrwx--x 1 brian elinux  20813 2010-03-11 23:14 mux34xx.h
-rwxrwx--x 1 brian elinux  26941 2010-03-11 23:14 mux.c
-rwxrwx--x 1 brian elinux   5089 2010-03-11 23:14 mux.h
-rwxrwx--x 1 brian elinux   2196 2010-03-11 23:14 omap3-iommu.c
-rwxrwx--x 1 brian elinux    847 2010-03-11 23:14 omap44xx-smc.S
-rwxrwx--x 1 brian elinux   1588 2010-03-11 23:14 omap-headsmp.S
-rwxrwx--x 1 brian elinux   4151 2010-03-11 23:14 omap_hwmod_2420_data.c
-rwxrwx--x 1 brian elinux   4243 2010-03-11 23:14 omap_hwmod_2430_data.c
-rwxrwx--x 1 brian elinux   5122 2010-03-11 23:14 omap_hwmod_3xxx_data.c
-rwxrwx--x 1 brian elinux  42966 2010-03-11 23:14 omap_hwmod.c
-rwxrwx--x 1 brian elinux   1796 2010-03-11 23:14 omap_hwmod_common_data.c
-rwxrwx--x 1 brian elinux    736 2010-03-11 23:14 omap_hwmod_common_data.h
-rwxrwx--x 1 brian elinux   4059 2010-03-11 23:14 omap-smp.c
-rwxrwx--x 1 brian elinux   4994 2010-03-11 23:14 opp2420_data.c
-rwxrwx--x 1 brian elinux   4914 2010-03-11 23:14 opp2430_data.c
-rwxrwx--x 1 brian elinux  15591 2010-03-11 23:14 opp2xxx.h
-rwxrwx--x 1 brian elinux  13927 2010-03-11 23:14 pm24xx.c
-rwxrwx--x 1 brian elinux  29998 2010-03-11 23:14 pm34xx.c
-rwxrwx--x 1 brian elinux  14658 2010-03-11 23:14 pm-debug.c
-rwxrwx--x 1 brian elinux   2526 2010-03-11 23:14 pm.h
-rwxrwx--x 1 brian elinux  27931 2010-03-11 23:14 powerdomain.c
-rwxrwx--x 1 brian elinux   2659 2010-03-11 23:14 powerdomains24xx.h
-rwxrwx--x 1 brian elinux   6376 2010-03-11 23:14 powerdomains34xx.h
-rwxrwx--x 1 brian elinux   8752 2010-03-11 23:14 powerdomains44xx.h
-rwxrwx--x 1 brian elinux   3730 2010-03-11 23:14 powerdomains.h
-rwxrwx--x 1 brian elinux  20105 2010-03-11 23:14 prcm.c
-rwxrwx--x 1 brian elinux  16366 2010-03-11 23:14 prcm-common.h
-rwxrwx--x 1 brian elinux  33309 2010-03-11 23:14 prm44xx.h
-rwxrwx--x 1 brian elinux  14824 2010-03-11 23:14 prm.h
-rwxrwx--x 1 brian elinux   8244 2010-03-11 23:14 prm-regbits-24xx.h
-rwxrwx--x 1 brian elinux  19792 2010-03-11 23:14 prm-regbits-34xx.h
-rwxrwx--x 1 brian elinux  80743 2010-03-11 23:14 prm-regbits-44xx.h
-rwxrwx--x 1 brian elinux   1207 2010-03-11 23:14 sdram-hynix-h8mbx00u0mer-0em.h
-rwxrwx--x 1 brian elinux   1306 2010-03-11 23:14 sdram-micron-mt46h32m32lf-6.h
-rwxrwx--x 1 brian elinux   1141 2010-03-11 23:14 sdram-numonyx-m65kxxxxam.h
-rwxrwx--x 1 brian elinux   1254 2010-03-11 23:14 sdram-qimonda-hyb18m512160af-6.h
-rwxrwx--x 1 brian elinux   4290 2010-03-11 23:14 sdrc2xxx.c
-rwxrwx--x 1 brian elinux   4676 2010-03-11 23:14 sdrc.c
-rwxrwx--x 1 brian elinux   1935 2010-03-11 23:14 sdrc.h
-rwxrwx--x 1 brian elinux  18740 2010-03-11 23:14 serial.c
-rwxrwx--x 1 brian elinux   4039 2010-03-11 23:14 sleep24xx.S
-rwxrwx--x 1 brian elinux  19716 2010-03-11 23:14 sleep34xx.S
-rwxrwx--x 1 brian elinux  10217 2010-03-11 23:14 sram242x.S
-rwxrwx--x 1 brian elinux  10217 2010-03-11 23:14 sram243x.S
-rwxrwx--x 1 brian elinux   9800 2010-03-11 23:14 sram34xx.S
-rwxrwx--x 1 brian elinux   6480 2010-03-11 23:14 timer-gp.c
-rwxrwx--x 1 brian elinux    974 2010-03-11 23:14 timer-mpu.c
-rwxrwx--x 1 brian elinux   7046 2010-03-11 23:14 usb-ehci.c
-rwxrwx--x 1 brian elinux   3089 2010-03-11 23:14 usb-musb.c
-rwxrwx--x 1 brian elinux   8813 2010-03-11 23:14 usb-tusb6010.c
4-6 Makefile Targets
brian@Kratos:/dump/hw/oe/linux-omap-2.6$ make help
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
  localmodconfig  - Update current config disabling modules not loaded
  localyesconfig  - Update current config converting local mods to core
  silentoldconfig - Same as oldconfig, but quietly, additionally update deps
  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
  modules_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: /dump/hw/oe/linux-omap-2.6/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
  pdfdocs         - PDF
  psdocs          - Postscript
  xmldocs         - XML DocBook
  mandocs         - man pages
  installmandocs  - install man pages generated by mandocs
  cleandocs       - clean all generated DocBook files

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

  acs5k_defconfig          - Build for acs5k
  acs5k_tiny_defconfig     - Build for acs5k_tiny
  afeb9260_defconfig       - Build for afeb9260
  am200epdkit_defconfig    - Build for am200epdkit
  am3517_evm_defconfig     - Build for am3517_evm
  ams_delta_defconfig      - Build for ams_delta
  assabet_defconfig        - Build for assabet
  at572d940hfek_defconfig  - Build for at572d940hfek
  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
  bcmring_defconfig        - Build for bcmring
  cam60_defconfig          - Build for cam60
  carmeva_defconfig        - Build for carmeva
  cerfcube_defconfig       - Build for cerfcube
  cm_t35_defconfig         - Build for cm_t35
  cm_x2xx_defconfig        - Build for cm_x2xx
  cm_x300_defconfig        - Build for cm_x300
  colibri_pxa270_defconfig - Build for colibri_pxa270
  colibri_pxa300_defconfig - Build for colibri_pxa300
  collie_defconfig         - Build for collie
  corgi_defconfig          - Build for corgi
  cpu9260_defconfig        - Build for cpu9260
  cpu9g20_defconfig        - Build for cpu9g20
  cpuat91_defconfig        - Build for cpuat91
  csb337_defconfig         - Build for csb337
  csb637_defconfig         - Build for csb637
  da8xx_omapl_defconfig    - Build for da8xx_omapl
  davinci_all_defconfig    - Build for davinci_all
  devkit8000_defconfig     - Build for devkit8000
  dove_defconfig           - Build for dove
  ebsa110_defconfig        - Build for ebsa110
  ecbat91_defconfig        - Build for ecbat91
  edb7211_defconfig        - Build for edb7211
  em_x270_defconfig        - Build for em_x270
  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
  htcherald_defconfig      - Build for htcherald
  igep0020_defconfig       - Build for igep0020
  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
  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
  mini2440_defconfig       - Build for mini2440
  msm_defconfig            - Build for msm
  mv78xx0_defconfig        - Build for mv78xx0
  mx1ads_defconfig         - Build for mx1ads
  mx1_defconfig            - Build for mx1
  mx21_defconfig           - Build for mx21
  mx27_defconfig           - Build for mx27
  mx31pdk_defconfig        - Build for mx31pdk
  mx3_defconfig            - Build for mx3
  n770_defconfig           - Build for n770
  n8x0_defconfig           - Build for n8x0
  neocore926_defconfig     - Build for neocore926
  neponset_defconfig       - Build for neponset
  netwinder_defconfig      - Build for netwinder
  netx_defconfig           - Build for netx
  nhk8815_defconfig        - Build for nhk8815
  ns9xxx_defconfig         - Build for ns9xxx
  nuc910_defconfig         - Build for nuc910
  nuc950_defconfig         - Build for nuc950
  nuc960_defconfig         - Build for nuc960
  omap_2430sdp_defconfig   - Build for omap_2430sdp
  omap_3430sdp_defconfig   - Build for omap_3430sdp
  omap_3630sdp_defconfig   - Build for omap_3630sdp
  omap3_beagle_defconfig   - Build for omap3_beagle
  omap3_defconfig          - Build for omap3
  omap3_evm_defconfig      - Build for omap3_evm
  omap3_pandora_defconfig  - Build for omap3_pandora
  omap3_touchbook_defconfig - Build for omap3_touchbook
  omap_4430sdp_defconfig   - Build for omap_4430sdp
  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_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
  omap_zoom2_defconfig     - Build for omap_zoom2
  omap_zoom3_defconfig     - Build for omap_zoom3
  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
  picotux200_defconfig     - Build for picotux200
  pleb_defconfig           - Build for pleb
  pnx4008_defconfig        - Build for pnx4008
  pxa168_defconfig         - Build for pxa168
  pxa255-idp_defconfig     - Build for pxa255-idp
  pxa3xx_defconfig         - Build for pxa3xx
  pxa910_defconfig         - Build for pxa910
  qil-a9260_defconfig      - Build for qil-a9260
  realview_defconfig       - Build for realview
  realview-smp_defconfig   - Build for realview-smp
  rpc_defconfig            - Build for rpc
  rx51_defconfig           - Build for rx51
  s3c2410_defconfig        - Build for s3c2410
  s3c6400_defconfig        - Build for s3c6400
  s5pc100_defconfig        - Build for s5pc100
  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
  stmp378x_defconfig       - Build for stmp378x
  stmp37xx_defconfig       - Build for stmp37xx
  sx1_defconfig            - Build for sx1
  tct_hammer_defconfig     - Build for tct_hammer
  trizeps4_defconfig       - Build for trizeps4
  u300_defconfig           - Build for u300
  u8500_defconfig          - Build for u8500
  usb-a9260_defconfig      - Build for usb-a9260
  usb-a9263_defconfig      - Build for usb-a9263
  versatile_defconfig      - Build for versatile
  viper_defconfig          - Build for viper
  xcep_defconfig           - Build for xcep
  yl9200_defconfig         - Build for yl9200
  zeus_defconfig           - Build for zeus

  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-8 Snippet from arch/arm/Kconfig
  source "init/Kconfig"
 
  source "kernel/Kconfig.freezer"
 
  menu "System Type"
 
  config MMU
      bool "MMU-based Paged Memory Management Support"
      default y
      help
        Select if you want MMU-based virtualised addressing space
        support by paged memory management. If unsure, say 'Y'.
 
  choice
      prompt "ARM system type"
      default ARCH_VERSATILE
 
  config ARCH_AAEC2000
      bool "Agilent AAEC-2000 based"
      select CPU_ARM920T
      select ARM_AMBA
      select HAVE_CLK
      help
        This enables support for systems based on the Agilent AAEC-2000
4-9 Snippet from arch/arm/mach-omap2/Kconfig
comment "OMAP Core Type"
       depends on ARCH_OMAP2
  
   config ARCH_OMAP2420
       bool "OMAP2420 support"
       depends on ARCH_OMAP2
       select OMAP_DM_TIMER
       select ARCH_OMAP_OTG
4-10 Customized .config File Snippet
# TI OMAP Implementations
  #
  CONFIG_ARCH_OMAP_OTG=y
  # CONFIG_ARCH_OMAP1 is not set
  CONFIG_ARCH_OMAP2PLUS=y
  # CONFIG_ARCH_OMAP2 is not set
  CONFIG_ARCH_OMAP3=y
  # CONFIG_ARCH_OMAP4 is not set
 
  #
  # OMAP Feature Selections
  #
  # CONFIG_OMAP_RESET_CLOCKS is not set
  # CONFIG_OMAP_MUX is not set
  # CONFIG_OMAP_MCBSP is not set
  # CONFIG_OMAP_MBOX_FWK is not set
  # CONFIG_OMAP_MPU_TIMER is not set
  CONFIG_OMAP_32K_TIMER=y
  # CONFIG_OMAP3_L2_AUX_SECURE_SAVE_RESTORE is not set
  CONFIG_OMAP_32K_TIMER_HZ=128
  CONFIG_OMAP_DM_TIMER=y
  # CONFIG_OMAP_PM_NONE is not set
  CONFIG_OMAP_PM_NOOP=y
  CONFIG_ARCH_OMAP3430=y
  CONFIG_OMAP_PACKAGE_CBB=y
 
  #
  # OMAP Board Type
  #
  CONFIG_MACH_OMAP3_BEAGLE=y
  # CONFIG_MACH_DEVKIT8000 is not set
  # CONFIG_MACH_OMAP_LDP is not set
  # CONFIG_MACH_OVERO is not set
  # CONFIG_MACH_OMAP3EVM is not set
  # CONFIG_MACH_OMAP3517EVM is not set
  # CONFIG_MACH_OMAP3_PANDORA is not set
  # CONFIG_MACH_OMAP3_TOUCHBOOK is not set
  # CONFIG_MACH_OMAP_3430SDP is not set
  # CONFIG_MACH_NOKIA_RX51 is not set
  # CONFIG_MACH_OMAP_ZOOM2 is not set
  # CONFIG_MACH_OMAP_ZOOM3 is not set
  # CONFIG_MACH_CM_T35 is not set
  # CONFIG_MACH_IGEP0020 is not set
  # CONFIG_MACH_OMAP_3630SDP is not set
  # CONFIG_OMAP3_EMU is not set
  # CONFIG_OMAP3_SDRC_AC_TIMING is not set
4-11 Makefile from arch/arm/mach-omap2 Kernel Subdirectory
  # Makefile for the linux kernel.
  #
  
  # Common support
  obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o
  
  omap-2-3-common             = irq.o sdrc.o
  hwmod-common                = omap_hwmod.o \
                        omap_hwmod_common_data.o
  prcm-common             = prcm.o powerdomain.o
  clock-common                = clock.o clock_common_data.o \
                        clockdomain.o clkt_dpll.o \
                        clkt_clksel.o
 
  obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(hwmod-common    )
  obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(hwmod-common    )
  obj-$(CONFIG_ARCH_OMAP4) += $(prcm-common)
 
  obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
 

Chapter 5

Number Caption Listing
5-2 Assembly File piggy.S
 .section .piggydata,#alloc
       .globl  input_data
   input_data:
       .incbin "arch/arm/boot/compressed/piggy.gzip"
       .globl  input_data_end
   input_data_end: