Index: linux-2.6.21gum/drivers/mtd/maps/gumstix-flash.c =================================================================== --- /dev/null +++ linux-2.6.21gum/drivers/mtd/maps/gumstix-flash.c @@ -0,0 +1,136 @@ +/* + * Map driver for the Gumstix platform + * + * Author: Craig Hughes + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +#define ROM_ADDR 0x00000000 +#define FLASH_ADDR 0x00000000 + +#define WINDOW_SIZE 64*1024*1024 + +static struct map_info gumstix_flash_maps[1] = { { + .name = "Gumstix Flash ROM", + .size = WINDOW_SIZE, + .phys = FLASH_ADDR, + .bankwidth = 2, +} }; + +static struct mtd_partition gumstix_flash_partitions[] = { + { + .name = "Bootloader", + .size = 0x00040000, + .offset = FLASH_ADDR + },{ + .name = "RootFS", + .size = MTDPART_SIZ_FULL, + .offset = MTDPART_OFS_APPEND + } +}; + +static struct mtd_info *mymtds[1]; +static struct mtd_partition *parsed_parts[1]; +static int nr_parsed_parts[1]; + +static const char *probes[] = { NULL }; + +static int __init gumstix_flashmap_init(void) +{ + int ret = 0, i; + + for (i = 0; i < 1; i++) { + gumstix_flash_maps[i].virt = ioremap(gumstix_flash_maps[i].phys, WINDOW_SIZE); + if (!gumstix_flash_maps[i].virt) { + printk(KERN_WARNING "Failed to ioremap %s\n", gumstix_flash_maps[i].name); + if (!ret) + ret = -ENOMEM; + continue; + } + simple_map_init(&gumstix_flash_maps[i]); + + printk(KERN_NOTICE "Probing %s at physical address 0x%08lx (%d-bit bankwidth)\n", + gumstix_flash_maps[i].name, gumstix_flash_maps[i].phys, + gumstix_flash_maps[i].bankwidth * 8); + + mymtds[i] = do_map_probe("cfi_probe", &gumstix_flash_maps[i]); + + if (!mymtds[i]) { + iounmap((void *)gumstix_flash_maps[i].virt); + if (gumstix_flash_maps[i].cached) + iounmap(gumstix_flash_maps[i].cached); + if (!ret) + ret = -EIO; + continue; + } + mymtds[i]->owner = THIS_MODULE; + + ret = parse_mtd_partitions(mymtds[i], probes, + &parsed_parts[i], 0); + + if (ret > 0) + nr_parsed_parts[i] = ret; + } + + if (!mymtds[0]) + return ret; + + for (i = 0; i < 1; i++) { + if (!mymtds[i]) { + printk(KERN_WARNING "%s is absent. Skipping\n", gumstix_flash_maps[i].name); + } else if (nr_parsed_parts[i]) { + add_mtd_partitions(mymtds[i], parsed_parts[i], nr_parsed_parts[i]); + } else if (!i) { + printk("Using static partitions on %s\n", gumstix_flash_maps[i].name); + add_mtd_partitions(mymtds[i], gumstix_flash_partitions, ARRAY_SIZE(gumstix_flash_partitions)); + } else { + printk("Registering %s as whole device\n", gumstix_flash_maps[i].name); + add_mtd_device(mymtds[i]); + } + } + return 0; +} + +static void __exit gumstix_flashmap_cleanup(void) +{ + int i; + for (i = 0; i < 1; i++) { + if (!mymtds[i]) + continue; + + if (nr_parsed_parts[i] || !i) + del_mtd_partitions(mymtds[i]); + else + del_mtd_device(mymtds[i]); + + map_destroy(mymtds[i]); + iounmap((void *)gumstix_flash_maps[i].virt); + if (gumstix_flash_maps[i].cached) + iounmap(gumstix_flash_maps[i].cached); + + if (parsed_parts[i]) + kfree(parsed_parts[i]); + } +} + +module_init(gumstix_flashmap_init); +module_exit(gumstix_flashmap_cleanup); + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Gumstix, Inc. "); +MODULE_DESCRIPTION("MTD map driver for the Gumstix Platform"); Index: linux-2.6.21gum/drivers/mtd/maps/Kconfig =================================================================== --- linux-2.6.21gum.orig/drivers/mtd/maps/Kconfig +++ linux-2.6.21gum/drivers/mtd/maps/Kconfig @@ -131,6 +131,13 @@ config MTD_SBC_GXX More info at . +config MTD_GUMSTIX + tristate "CFI Flash device mapped on Gumstix" + depends on ARCH_GUMSTIX && MTD_CFI_INTELEXT && MTD_PARTITIONS + help + This provides a driver for the on-board flash of the Gumstix + single board computers. + config MTD_LUBBOCK tristate "CFI Flash device mapped on Intel Lubbock XScale eval board" depends on ARCH_LUBBOCK && MTD_CFI_INTELEXT && MTD_PARTITIONS Index: linux-2.6.21gum/drivers/mtd/maps/Makefile =================================================================== --- linux-2.6.21gum.orig/drivers/mtd/maps/Makefile +++ linux-2.6.21gum/drivers/mtd/maps/Makefile @@ -21,6 +21,7 @@ obj-$(CONFIG_MTD_ICHXROM) += ichxrom.o obj-$(CONFIG_MTD_CK804XROM) += ck804xrom.o obj-$(CONFIG_MTD_TSUNAMI) += tsunami_flash.o obj-$(CONFIG_MTD_LUBBOCK) += lubbock-flash.o +obj-$(CONFIG_MTD_GUMSTIX) += gumstix-flash.o obj-$(CONFIG_MTD_MAINSTONE) += mainstone-flash.o obj-$(CONFIG_MTD_MBX860) += mbx860.o obj-$(CONFIG_MTD_CEIVA) += ceiva.o tr>-rw-r--r--README.hardware582
-rw-r--r--bitbake/AUTHORS10
-rw-r--r--bitbake/COPYING339
-rw-r--r--bitbake/ChangeLog317
-rw-r--r--bitbake/HEADER19
-rwxr-xr-xbitbake/bin/bitbake224
-rwxr-xr-xbitbake/bin/bitbake-diffsigs12
-rw-r--r--bitbake/bin/bitbake-layers154
-rwxr-xr-xbitbake/bin/bitbake-runtask120
-rwxr-xr-xbitbake/bin/bitdoc532
-rw-r--r--bitbake/contrib/README1
-rw-r--r--bitbake/contrib/bbdev.sh31
-rw-r--r--bitbake/contrib/vim/ftdetect/bitbake.vim24
-rw-r--r--bitbake/contrib/vim/ftplugin/bitbake.vim1
-rwxr-xr-xbitbake/contrib/vim/plugin/newbb.vim85
-rw-r--r--bitbake/contrib/vim/syntax/bitbake.vim123
-rw-r--r--bitbake/doc/COPYING.GPL339
-rw-r--r--bitbake/doc/COPYING.MIT17
-rw-r--r--bitbake/doc/bitbake.1121
-rw-r--r--bitbake/doc/manual/Makefile56
-rw-r--r--bitbake/doc/manual/html.css281
-rw-r--r--bitbake/doc/manual/usermanual.xml534
-rw-r--r--bitbake/lib/bb/COW.py323
-rw-r--r--bitbake/lib/bb/__init__.py139
-rw-r--r--bitbake/lib/bb/build.py472
-rw-r--r--bitbake/lib/bb/cache.py632
-rw-r--r--bitbake/lib/bb/codeparser.py336
-rw-r--r--bitbake/lib/bb/command.py271
-rw-r--r--bitbake/lib/bb/cooker.py1066
-rw-r--r--bitbake/lib/bb/daemonize.py190
-rw-r--r--bitbake/lib/bb/data.py338
-rw-r--r--bitbake/lib/bb/data_smart.py414
-rw-r--r--bitbake/lib/bb/event.py386
-rw-r--r--bitbake/lib/bb/fetch/__init__.py836
-rw-r--r--bitbake/lib/bb/fetch/bzr.py148
-rw-r--r--bitbake/lib/bb/fetch/cvs.py172
-rw-r--r--bitbake/lib/bb/fetch/git.py339
-rw-r--r--bitbake/lib/bb/fetch/hg.py180
-rw-r--r--bitbake/lib/bb/fetch/local.py73
-rw-r--r--bitbake/lib/bb/fetch/osc.py143
-rw-r--r--bitbake/lib/bb/fetch/perforce.py206
-rw-r--r--bitbake/lib/bb/fetch/repo.py98
-rw-r--r--bitbake/lib/bb/fetch/ssh.py118
-rw-r--r--bitbake/lib/bb/fetch/svk.py104
-rw-r--r--bitbake/lib/bb/fetch/svn.py204
-rw-r--r--bitbake/lib/bb/fetch/wget.py93
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py1072
-rw-r--r--bitbake/lib/bb/fetch2/bzr.py141
-rw-r--r--bitbake/lib/bb/fetch2/cvs.py181
-rw-r--r--bitbake/lib/bb/fetch2/git.py242
-rw-r--r--bitbake/lib/bb/fetch2/hg.py174
-rw-r--r--bitbake/lib/bb/fetch2/local.py80
-rw-r--r--bitbake/lib/bb/fetch2/osc.py135
-rw-r--r--bitbake/lib/bb/fetch2/perforce.py196
-rw-r--r--bitbake/lib/bb/fetch2/repo.py98
-rw-r--r--bitbake/lib/bb/fetch2/ssh.py120
-rw-r--r--bitbake/lib/bb/fetch2/svk.py97
-rw-r--r--bitbake/lib/bb/fetch2/svn.py180
-rw-r--r--bitbake/lib/bb/fetch2/wget.py91
-rw-r--r--bitbake/lib/bb/methodpool.py84
-rw-r--r--bitbake/lib/bb/msg.py200
-rw-r--r--bitbake/lib/bb/parse/__init__.py123
-rw-r--r--bitbake/lib/bb/parse/ast.py454
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py245
-rw-r--r--bitbake/lib/bb/parse/parse_py/ConfHandler.py139
-rw-r--r--bitbake/lib/bb/parse/parse_py/__init__.py33
-rw-r--r--bitbake/lib/bb/persist_data.py194
-rw-r--r--bitbake/lib/bb/process.py109
-rw-r--r--bitbake/lib/bb/providers.py330
-rw-r--r--bitbake/lib/bb/pysh/builtin.py710
-rw-r--r--bitbake/lib/bb/pysh/interp.py1367
-rw-r--r--bitbake/lib/bb/pysh/lsprof.py116
-rw-r--r--bitbake/lib/bb/pysh/pysh.py167
-rw-r--r--bitbake/lib/bb/pysh/pyshlex.py888
-rw-r--r--bitbake/lib/bb/pysh/pyshyacc.py779
-rw-r--r--bitbake/lib/bb/pysh/sherrors.py41
-rw-r--r--bitbake/lib/bb/pysh/subprocess_fix.py77
-rw-r--r--bitbake/lib/bb/runqueue.py1663
-rw-r--r--bitbake/lib/bb/server/none.py195
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py260
-rw-r--r--bitbake/lib/bb/shell.py820
-rw-r--r--bitbake/lib/bb/siggen.py298
-rw-r--r--bitbake/lib/bb/taskdata.py586
-rw-r--r--bitbake/lib/bb/ui/__init__.py17
-rw-r--r--bitbake/lib/bb/ui/crumbs/__init__.py17
-rw-r--r--bitbake/lib/bb/ui/crumbs/buildmanager.py455
-rw-r--r--bitbake/lib/bb/ui/crumbs/progress.py17
-rw-r--r--bitbake/lib/bb/ui/crumbs/puccho.glade606
-rw-r--r--bitbake/lib/bb/ui/crumbs/runningbuild.py311
-rw-r--r--bitbake/lib/bb/ui/depexp.py307
-rw-r--r--bitbake/lib/bb/ui/goggle.py110
-rw-r--r--bitbake/lib/bb/ui/knotty.py248
-rw-r--r--bitbake/lib/bb/ui/ncurses.py352
-rw-r--r--bitbake/lib/bb/ui/puccho.py425
-rw-r--r--bitbake/lib/bb/ui/uievent.py127
-rw-r--r--bitbake/lib/bb/ui/uihelper.py42
-rw-r--r--bitbake/lib/bb/utils.py845
-rw-r--r--bitbake/lib/codegen.py570
-rw-r--r--bitbake/lib/ply/__init__.py4
-rw-r--r--bitbake/lib/ply/lex.py1058
-rw-r--r--bitbake/lib/ply/yacc.py3276
-rw-r--r--bitbake/lib/progressbar.py384
-rw-r--r--documentation/bsp-guide/Makefile35
-rw-r--r--documentation/bsp-guide/bsp-guide-customization.xsl6
-rw-r--r--documentation/bsp-guide/bsp-guide.xml62
-rw-r--r--documentation/bsp-guide/bsp.xml644
-rwxr-xr-xdocumentation/bsp-guide/figures/bsp-title.pngbin15226 -> 0 bytes-rw-r--r--documentation/bsp-guide/figures/poky-ref-manual.pngbin17829 -> 0 bytes-rw-r--r--documentation/bsp-guide/style.css952
-rw-r--r--documentation/kernel-manual/Makefile42
-rwxr-xr-xdocumentation/kernel-manual/figures/kernel-architecture-overview.pngbin40748 -> 0 bytes-rwxr-xr-xdocumentation/kernel-manual/figures/kernel-big-picture.pngbin173130 -> 0 bytes-rwxr-xr-xdocumentation/kernel-manual/figures/kernel-title.pngbin14549 -> 0 bytes-rwxr-xr-xdocumentation/kernel-manual/figures/yocto-project-transp.pngbin8626 -> 0 bytes-rw-r--r--documentation/kernel-manual/kernel-concepts.xml335
-rw-r--r--documentation/kernel-manual/kernel-doc-intro.xml57
-rw-r--r--documentation/kernel-manual/kernel-how-to.xml2172
-rw-r--r--documentation/kernel-manual/kernel-manual.xml66
-rw-r--r--documentation/kernel-manual/style.css968
-rw-r--r--documentation/kernel-manual/yocto-project-kernel-manual-customization.xsl8
-rw-r--r--documentation/poky-ref-manual/Makefile36
-rw-r--r--documentation/poky-ref-manual/TODO11
-rw-r--r--documentation/poky-ref-manual/development.xml1098
-rw-r--r--documentation/poky-ref-manual/examples/hello-autotools/hello_2.3.bb7
-rw-r--r--documentation/poky-ref-manual/examples/hello-single/files/helloworld.c8
-rw-r--r--documentation/poky-ref-manual/examples/hello-single/hello.bb16
-rw-r--r--documentation/poky-ref-manual/examples/libxpm/libxpm_3.5.6.bb13
-rw-r--r--documentation/poky-ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb13
-rw-r--r--documentation/poky-ref-manual/extendpoky.xml1016
-rw-r--r--documentation/poky-ref-manual/faq.xml314
-rwxr-xr-xdocumentation/poky-ref-manual/figures/cropped-yocto-project-bw.pngbin5453 -> 0 bytes-rw-r--r--documentation/poky-ref-manual/figures/poky-ref-manual.pngbin17829 -> 0 bytes-rwxr-xr-xdocumentation/poky-ref-manual/figures/yocto-project-transp.pngbin8626 -> 0 bytes-rw-r--r--documentation/poky-ref-manual/introduction.xml170