summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenmoko anonymizer key <devel@lists.openmoko.org>2007-10-10 10:17:41 +0000
committerOpenmoko anonymizer key <devel@lists.openmoko.org>2007-10-10 10:17:41 +0000
commit10873a2c35c9225f04853a323c8e01559e5a9034 (patch)
tree5a087efe3a3709bce064466027b4a06c02dcbb3f
parent9794ad6e78a6a7f5f6b26aaa0494558b7d73e81b (diff)
parent2eb5a3d80018bcfb02586f03f22745d50e327547 (diff)
merge of '320ea19bc463d1bf9e280cbcadba04f87a928ede'
and 'fd564937a9d082f3ea9dd580636ab959f5d77258'
-rw-r--r--conf/distro/include/moko-autorev.inc3
-rw-r--r--conf/machine/bd-neon.conf56
-rw-r--r--conf/machine/cm-x270.conf11
-rw-r--r--contrib/armmon_xfer/.mtn2git_empty0
-rwxr-xr-xcontrib/armmon_xfer/armmon_xfer.py150
-rw-r--r--contrib/mtn2git/.mtn2git_empty0
-rwxr-xr-xcontrib/mtn2git/git2mtn.py50
-rw-r--r--contrib/mtn2git/mtn/.mtn2git_empty0
-rw-r--r--contrib/mtn2git/mtn/__init__.py6
-rw-r--r--contrib/mtn2git/mtn/authors.py11
-rw-r--r--contrib/mtn2git/mtn/common.py49
-rwxr-xr-xcontrib/mtn2git/mtn/genproxy.py25
-rw-r--r--contrib/mtn2git/mtn/mtn.py419
-rw-r--r--contrib/mtn2git/mtn/utility.py100
-rwxr-xr-xcontrib/mtn2git/mtn2git.py610
-rw-r--r--contrib/mtn2git/status.py47
-rw-r--r--packages/gcc/gcc-4.2.2/.mtn2git_empty0
-rw-r--r--packages/gcc/gcc-4.2.2/100-uclibc-conf.patch200
-rw-r--r--packages/gcc/gcc-4.2.2/103-uclibc-conf-noupstream.patch11
-rw-r--r--packages/gcc/gcc-4.2.2/110-arm-eabi.patch27
-rw-r--r--packages/gcc/gcc-4.2.2/200-uclibc-locale.patch2790
-rw-r--r--packages/gcc/gcc-4.2.2/203-uclibc-locale-no__x.patch213
-rw-r--r--packages/gcc/gcc-4.2.2/204-uclibc-locale-wchar_fix.patch48
-rw-r--r--packages/gcc/gcc-4.2.2/205-uclibc-locale-update.patch347
-rw-r--r--packages/gcc/gcc-4.2.2/300-libstdc++-pic.patch46
-rw-r--r--packages/gcc/gcc-4.2.2/301-missing-execinfo_h.patch11
-rw-r--r--packages/gcc/gcc-4.2.2/302-c99-snprintf.patch11
-rw-r--r--packages/gcc/gcc-4.2.2/303-c99-complex-ugly-hack.patch12
-rw-r--r--packages/gcc/gcc-4.2.2/304-index_macro.patch24
-rw-r--r--packages/gcc/gcc-4.2.2/305-libmudflap-susv3-legacy.patch49
-rw-r--r--packages/gcc/gcc-4.2.2/306-libstdc++-namespace.patch36
-rw-r--r--packages/gcc/gcc-4.2.2/307-locale_facets.patch26
-rw-r--r--packages/gcc/gcc-4.2.2/402-libbackend_dep_gcov-iov.h.patch13
-rw-r--r--packages/gcc/gcc-4.2.2/602-sdk-libstdc++-includes.patch20
-rw-r--r--packages/gcc/gcc-4.2.2/740-sh-pr24836.patch25
-rw-r--r--packages/gcc/gcc-4.2.2/800-arm-bigendian.patch67
-rw-r--r--packages/gcc/gcc-4.2.2/801-arm-bigendian-eabi.patch14
-rw-r--r--packages/gcc/gcc-4.2.2/904-flatten-switch-stmt-00.patch153
-rw-r--r--packages/gcc/gcc-4.2.2/README4
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-20000320.patch11
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-32bit-disable.patch85
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-64bit-disable-4.2.0.patch169
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-64bit-disable0.patch47
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-and-or.patch67
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-cfcvt64-disable.patch19
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-cfcvtds-disable.patch32
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-cirrus-bugfixes.patch573
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-compare-geu.patch48
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-compare-unordered.patch98
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-compare-unordered.patch-z-eq98
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-compare.patch400
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-compare.patch-z-eq400
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-dominance.patch12
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-eabi-ieee754-div.patch139
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-eabi-ieee754.patch100
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-eabi.patch64
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-floatsi-disable-single.patch38
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-floatsi-disable.patch61
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-floatunsidf.patch37
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-fp_consts.patch13
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-neg.patch30
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-neg2.patch25
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-offset.patch20
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-predicates.patch20
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-predicates2.patch10
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-predicates3.patch116
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-saveregs.patch153
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-scc.patch38
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-truncsi-disable-new.patch33
-rw-r--r--packages/gcc/gcc-4.2.2/arm-crunch-truncsi-disable.patch56
-rw-r--r--packages/gcc/gcc-4.2.2/arm-nolibfloat.patch24
-rw-r--r--packages/gcc/gcc-4.2.2/arm-softfloat.patch16
-rw-r--r--packages/gcc/gcc-4.2.2/arm-thumb-cache.patch29
-rw-r--r--packages/gcc/gcc-4.2.2/arm-thumb.patch64
-rw-r--r--packages/gcc/gcc-4.2.2/cache-amnesia.patch13
-rw-r--r--packages/gcc/gcc-4.2.2/fix-ICE-in-arm_unwind_emit_set.diff18
-rw-r--r--packages/gcc/gcc-4.2.2/gcc41-configure.in.patch22
-rw-r--r--packages/gcc/gcc-4.2.2/ldflags.patch22
-rw-r--r--packages/gcc/gcc-4.2.2/sdk-libstdc++-includes.patch22
-rw-r--r--packages/gcc/gcc-4.2.2/sh3-installfix-fixheaders.patch11
-rw-r--r--packages/gcc/gcc-4.2.2/unbreak-armv4t.patch12
-rw-r--r--packages/gcc/gcc-4.2.2/zecke-no-host-includes.patch31
-rw-r--r--packages/gcc/gcc-4.2.2/zecke-xgcc-cpp.patch12
-rw-r--r--packages/gcc/gcc-cross-initial_4.2.2.bb5
-rw-r--r--packages/gcc/gcc-cross_4.2.2.bb20
-rw-r--r--packages/gcc/gcc_4.2.2.bb83
-rwxr-xr-xpackages/gpephone/gpe-session-scripts-phone/phonesession1
-rw-r--r--packages/gpephone/gpe-session-scripts-phone_0.67.bb2
-rw-r--r--packages/linux/linux-bd-neon-2.6-2.6.22/.mtn2git_empty0
-rw-r--r--packages/linux/linux-bd-neon-2.6-2.6.22/neon-jffs2-config.patch33
-rw-r--r--packages/linux/linux-bd-neon-2.6_2.6.22.bb48
-rw-r--r--packages/linux/linux.inc5
-rw-r--r--packages/linux/linux_2.6.22.bb9
-rw-r--r--packages/tslib/tslib-1.0/bd-neon/.mtn2git_empty0
-rw-r--r--packages/tslib/tslib-1.0/bd-neon/ts.conf5
-rw-r--r--packages/tslib/tslib-1.0/bd-neon/tslib.sh6
-rw-r--r--packages/tslib/tslib_1.0.bb2
-rw-r--r--packages/uboot/u-boot-1.1.2/u-boot-1.1.2-neon.patch19204
-rw-r--r--packages/uboot/u-boot_1.1.2.bb3
99 files changed, 28413 insertions, 5 deletions
diff --git a/conf/distro/include/moko-autorev.inc b/conf/distro/include/moko-autorev.inc
index c4d478ccde..0cba28de58 100644
--- a/conf/distro/include/moko-autorev.inc
+++ b/conf/distro/include/moko-autorev.inc
@@ -61,3 +61,6 @@ SRCREV_pn-openocd ?= "${AUTOREV}"
SRCREV_pn-openocd-native ?= "${AUTOREV}"
SRCREV_pn-uboot-openmoko ?= "${AUTOREV}"
+SRCREV_pn-dfu-util ?= "${AUTOREV}"
+SRCREV_pn-dfu-util-native ?= "${AUTOREV}"
+
diff --git a/conf/machine/bd-neon.conf b/conf/machine/bd-neon.conf
new file mode 100644
index 0000000000..63e3ac8269
--- /dev/null
+++ b/conf/machine/bd-neon.conf
@@ -0,0 +1,56 @@
+#@TYPE: Machine
+#@NAME: Boundary Devices NEON
+#@DESCRIPTION: Machine configuration for the Boundary Devices NEON board
+
+#
+# Hardware-based properties
+#
+TARGET_ARCH = "arm"
+PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5te"
+
+# Use tune-xscale per default. Machine independent feeds should be built with tune-strongarm.
+require conf/machine/include/tune-xscale.conf
+
+# Uncomment this to use iwmmxt optimizations. Remove the above xscale stuff first
+#require conf/machine/include/tune-iwmmxt.conf
+
+ROOT_FLASH_SIZE = "60"
+VOLATILE_STORAGE_SIZE = "128"
+GUI_MACHINE_CLASS = "bigscreen"
+MACHINE_FEATURES = "kernel26 touchscreen apm alsa usbgadget screen uboot"
+
+#
+# Software/packages selection
+#
+PREFERRED_PROVIDER_virtual/kernel = "linux-bd-neon-2.6"
+MODUTILS = "26"
+XSERVER = "xserver-kdrive-fbdev"
+MACHINE_TASK_PROVIDER = "task-base"
+
+PREFERRED_VERSION_u-boot = "1.1.2"
+
+EXTRA_IMAGEDEPENDS =" mtd-utils"
+
+MACHINE_EXTRA_RDEPENDS = " mtd-utils"
+MACHINE_EXTRA_RRECOMMENDS = " kernel-modules kernel-module-nls-cp437 \
+ kernel-module-nls-iso8859-1 \
+ kernel-module-nls-utf8 \
+ kernel-module-af-key \
+ kernel-module-i2c-pxa"
+
+EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 -n"
+EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x40000 --pad=32243712; sumtool -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
+ -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs-summary.jffs2 \
+ -e 128KiB -p"
+
+#
+# Modules autoload and other boot properties
+#
+module_autoload_evdev = "evdev"
+module_autoload_mmc_block = "mmc_block"
+module_autoload_snd-pcm-oss = "snd-pcm-oss"
+module_autoload_snd-mixer-oss = "snd-mixer-oss"
+
+#module_autoload_g_ether = "g_ether"
+
+SERIAL_CONSOLE = "115200 ttyS0"
diff --git a/conf/machine/cm-x270.conf b/conf/machine/cm-x270.conf
index a77a85186f..db3fb9ba51 100644
--- a/conf/machine/cm-x270.conf
+++ b/conf/machine/cm-x270.conf
@@ -17,6 +17,13 @@ require conf/machine/include/tune-xscale.inc
# the following line to your local.conf:
# CMX270_CONSOLE_SERIAL_PORT = "ttyS0"
+# NAND flash eraseblock size
+# most of the older cm-x270 modules are populated with NAND flash
+# that have 128KiB eraseblocks. Recently, a user encounted
+# a device that has 16KiB eraseblocks. The following define
+# can be overridden in local.conf if you have one of these devices.
+CMX270_NAND_ERASEBLOCK_SIZE ?= "0x20000"
+
# the following is for the cm-x270 L module
CMX270_CONSOLE_SERIAL_PORT ?= "ttyS1"
@@ -32,10 +39,10 @@ SERIAL_CONSOLE ?= "38400 ${CMX270_CONSOLE_SERIAL_PORT}"
ROOT_FLASH_SIZE ?= "32"
# for NAND flash.
-EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 --pad --no-cleanmarkers;\
+EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=${CMX270_NAND_ERASEBLOCK_SIZE} --pad --no-cleanmarkers;\
sumtool -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
-o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs-summary.jffs2 \
- -e 0x20000 -p; \
+ -e ${CMX270_NAND_ERASEBLOCK_SIZE} -p; \
cd ${DEPLOY_DIR_IMAGE}; \
rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs-summary.jffs2; \
ln -s ${IMAGE_NAME}.rootfs-summary.jffs2 ${IMAGE_LINK_NAME}.rootfs-summary.jffs2 \
diff --git a/contrib/armmon_xfer/.mtn2git_empty b/contrib/armmon_xfer/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/contrib/armmon_xfer/.mtn2git_empty
diff --git a/contrib/armmon_xfer/armmon_xfer.py b/contrib/armmon_xfer/armmon_xfer.py
new file mode 100755
index 0000000000..d7a9b7281d
--- /dev/null
+++ b/contrib/armmon_xfer/armmon_xfer.py
@@ -0,0 +1,150 @@
+#!/usr/bin/python
+
+# Small utility to upload kernel and/or ramdisk to
+# the compulab board through the ARMmon firmware.
+# Requires pyserial : http://pyserial.sourceforge.net
+# author: Tobias Pflug
+
+import sys, os, serial, getopt, atexit, re
+
+# regular expression to match valid IPv4 addresses
+ipv4_regex = r"\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b"
+
+def wait_flash_complete():
+ while 1:
+ data = s.readline()
+ if quiet != 1:
+ print data,
+ if data.split(" ")[0] == "Finished":
+ break
+
+def test_armmon():
+ # write some nonsense to the monitor and
+ # check if armmon replies accordingly
+ s.write("nonsense\n")
+ s.timeout=2
+ s.read(len("nonsense\n")+1)
+ data = s.read(len("Illegal"))
+ if data.split(" ")[0] != "Illegal":
+ sys.exit("Error: ARMmon not responding. Linux running maybe?")
+ s.timeout=None
+ s.flushInput()
+ s.flushOutput()
+
+
+def usage():
+ sys.stderr.write("""USAGE: %s [options] <server ip>
+ armmon_xfer - data upload tool for cmx270/ARMmon
+
+ options:
+ -p, --port=PORT: serial port, default='/dev/ttyUSB0'
+ -k, --kernel=KERNEL: upload and flash kernel image KERNEL
+ -r, --ramdisk=RAMDISK: upload and flash ramdisk image RAMDISK
+ -b, --bootos: boot Linux
+ -R, --reboot: reboot cmx270
+ -q, --quiet be quiet, little output
+ -h, --help: print this help screen
+
+""" % (sys.argv[0],))
+
+if __name__ == '__main__':
+
+ port = "/dev/ttyUSB0"
+ baud = 38400
+ kernel = None
+ ramdisk = None
+ boot = None
+ reboot = None
+ quiet = None
+ tftp_ip = None
+
+ if len(sys.argv) < 2:
+ usage()
+ sys.exit(0)
+
+ # parse command line
+
+ try:
+ opts, args = getopt.getopt(sys.argv[1:],
+ "p:k:r:bRhq",
+ ["port=", "kernel=","ramdisk=","bootos","reboot","help","quiet"]
+ )
+ except getopt.GetoptError:
+ usage()
+ sys.exit(2)
+
+ for o, a in opts:
+ if o in ("-h","--help"):
+ usage()
+ sys.exit()
+ elif o in ("-k","--kernel"):
+ kernel = a
+ elif o in ("-r","--ramdisk"):
+ ramdisk = a
+ elif o in ("-b","--bootos"):
+ boot = 1
+ elif o in ("-R","--reboot"):
+ reboot = 1
+ elif o in ("-p","--port"):
+ port = o
+ elif o in ("-q","--quiet"):
+ quiet = 1
+
+ # check for arguments and validate IP address
+ # when required by commands
+ if len(args)>0 and re.match(ipv4_regex,args[0]):
+ tftp_ip = args[0]
+ else:
+ if kernel or ramdisk:
+ sys.exit("Error: invalid IP address!")
+
+ try:
<