summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/base-files/base-files/slugos/filesystems5
-rw-r--r--packages/base-files/base-files/slugos/fstab2
-rw-r--r--packages/base-files/base-files_3.0.14.bb2
-rw-r--r--packages/busybox/busybox-1.11.1/slugos/.mtn2git_empty (renamed from packages/u-boot/u-boot-git/akita/.mtn2git_empty)0
-rw-r--r--packages/busybox/busybox-1.11.1/slugos/defconfig851
-rw-r--r--packages/directfb/directfb-1.2.3/.mtn2git_empty (renamed from packages/u-boot/u-boot-git/c7x0/.mtn2git_empty)0
-rw-r--r--packages/directfb/directfb-1.2.3/fix-pkgconfig-cflags.patch47
-rw-r--r--packages/directfb/directfb.inc4
-rw-r--r--packages/directfb/directfb_1.2.3.bb28
-rw-r--r--packages/icon-slicer/.mtn2git_empty0
-rw-r--r--packages/icon-slicer/icon-slicer-native_0.3.bb18
-rw-r--r--packages/images/fso-image.bb1
-rw-r--r--packages/initscripts/initscripts-1.0/slugos/alignment.sh2
-rw-r--r--packages/initscripts/initscripts-1.0/slugos/bootclean.sh4
-rw-r--r--packages/initscripts/initscripts-slugos_1.0.bb2
-rw-r--r--packages/linux/linux-omap1-2.6.25-omap1/gcc43-arm-fix-inline-asm-constraints-for-preload.patch22
-rw-r--r--packages/linux/linux-omap1_2.6.25-omap1.bb1
-rw-r--r--packages/openttd/openttd.inc4
-rw-r--r--packages/openttd/openttd_0.6.0.bb2
-rw-r--r--packages/opkg/files/opkg_wget.patch88
-rw-r--r--packages/opkg/files/reduce-nogpg-noise.patch11
-rw-r--r--packages/opkg/opkg-nogpg-nocurl_svn.bb20
-rw-r--r--packages/slugos-init/files/boot/disk1
-rw-r--r--packages/slugos-init/files/boot/kexec2
-rw-r--r--packages/slugos-init/files/sysconf2
-rw-r--r--packages/slugos-init/files/turnup10
-rw-r--r--packages/slugos-init/slugos-init_5.0.bb148
-rw-r--r--packages/sugar/sugar-artwork/.mtn2git_empty0
-rw-r--r--packages/sugar/sugar-artwork/icon-slicer.diff83
-rw-r--r--packages/sugar/sugar-artwork_0.82.0.bb29
-rw-r--r--packages/tasks/task-slugos.bb39
-rw-r--r--packages/u-boot/u-boot-git/akita/akita-standard-partitioning.patch112
-rw-r--r--packages/u-boot/u-boot-git/c7x0/corgi-standard-partitioning.patch112
-rw-r--r--packages/u-boot/u-boot-git/pdaXrom-u-boot.patch4934
-rw-r--r--packages/u-boot/u-boot-git/uboot-eabi-fix-HACK2.patch94
-rw-r--r--packages/u-boot/u-boot_git.bb12
36 files changed, 1402 insertions, 5290 deletions
diff --git a/packages/base-files/base-files/slugos/filesystems b/packages/base-files/base-files/slugos/filesystems
new file mode 100644
index 0000000000..58dd33c0a3
--- /dev/null
+++ b/packages/base-files/base-files/slugos/filesystems
@@ -0,0 +1,5 @@
+ext3
+ext2
+vfat
+fat
+*
diff --git a/packages/base-files/base-files/slugos/fstab b/packages/base-files/base-files/slugos/fstab
index 53008e49a5..e00f057a08 100644
--- a/packages/base-files/base-files/slugos/fstab
+++ b/packages/base-files/base-files/slugos/fstab
@@ -1,6 +1,6 @@
rootfs / jffs2 defaults 1 1
+sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
tmpfs /var/volatile tmpfs mode=0755 0 0
-#tmpfs /media/ram tmpfs defaults 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
diff --git a/packages/base-files/base-files_3.0.14.bb b/packages/base-files/base-files_3.0.14.bb
index 83f6be3054..287f022562 100644
--- a/packages/base-files/base-files_3.0.14.bb
+++ b/packages/base-files/base-files_3.0.14.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Miscellaneous files for the base system."
SECTION = "base"
PRIORITY = "required"
-PR = "r78"
+PR = "r79"
LICENSE = "GPL"
SRC_URI = " \
diff --git a/packages/u-boot/u-boot-git/akita/.mtn2git_empty b/packages/busybox/busybox-1.11.1/slugos/.mtn2git_empty
index e69de29bb2..e69de29bb2 100644
--- a/packages/u-boot/u-boot-git/akita/.mtn2git_empty
+++ b/packages/busybox/busybox-1.11.1/slugos/.mtn2git_empty
diff --git a/packages/busybox/busybox-1.11.1/slugos/defconfig b/packages/busybox/busybox-1.11.1/slugos/defconfig
new file mode 100644
index 0000000000..d922529cc2
--- /dev/null
+++ b/packages/busybox/busybox-1.11.1/slugos/defconfig
@@ -0,0 +1,851 @@
+#
+# Automatically generated make config: don't edit
+# Busybox version: 1.11.1
+# Thu Aug 21 23:08:10 2008
+#
+CONFIG_HAVE_DOT_CONFIG=y
+
+#
+# Busybox Settings
+#
+
+#
+# General Configuration
+#
+# CONFIG_DESKTOP is not set
+# CONFIG_FEATURE_ASSUME_UNICODE is not set
+CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
+# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set
+# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set
+CONFIG_SHOW_USAGE=y
+CONFIG_FEATURE_VERBOSE_USAGE=y
+CONFIG_FEATURE_COMPRESS_USAGE=y
+# CONFIG_FEATURE_INSTALLER is not set
+CONFIG_LOCALE_SUPPORT=y
+CONFIG_GETOPT_LONG=y
+CONFIG_FEATURE_DEVPTS=y
+# CONFIG_FEATURE_CLEAN_UP is not set
+CONFIG_FEATURE_PIDFILE=y
+CONFIG_FEATURE_SUID=y
+CONFIG_FEATURE_SUID_CONFIG=y
+# CONFIG_FEATURE_SUID_CONFIG_QUIET is not set
+# CONFIG_SELINUX is not set
+# CONFIG_FEATURE_PREFER_APPLETS is not set
+CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
+CONFIG_FEATURE_SYSLOG=y
+CONFIG_FEATURE_HAVE_RPC=y
+
+#
+# Build Options
+#
+# CONFIG_STATIC is not set
+# CONFIG_PIE is not set
+# CONFIG_NOMMU is not set
+# CONFIG_BUILD_LIBBUSYBOX is not set
+# CONFIG_FEATURE_INDIVIDUAL is not set
+# CONFIG_FEATURE_SHARED_BUSYBOX is not set
+CONFIG_LFS=y
+CONFIG_CROSS_COMPILER_PREFIX=""
+
+#
+# Debugging Options
+#
+# CONFIG_DEBUG is not set
+# CONFIG_DEBUG_PESSIMIZE is not set
+# CONFIG_WERROR is not set
+CONFIG_NO_DEBUG_LIB=y
+# CONFIG_DMALLOC is not set
+# CONFIG_EFENCE is not set
+# CONFIG_INCLUDE_SUSv2 is not set
+
+#
+# Installation Options
+#
+# CONFIG_INSTALL_NO_USR is not set
+CONFIG_INSTALL_APPLET_SYMLINKS=y
+# CONFIG_INSTALL_APPLET_HARDLINKS is not set
+# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set
+# CONFIG_INSTALL_APPLET_DONT is not set
+# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set
+# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set
+# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set
+CONFIG_PREFIX="./_install"
+
+#
+# Busybox Library Tuning
+#
+CONFIG_PASSWORD_MINLEN=6
+CONFIG_MD5_SIZE_VS_SPEED=1
+CONFIG_FEATURE_FAST_TOP=y
+# CONFIG_FEATURE_ETC_NETWORKS is not set
+CONFIG_FEATURE_EDITING=y
+CONFIG_FEATURE_EDITING_MAX_LEN=1024
+# CONFIG_FEATURE_EDITING_VI is not set
+CONFIG_FEATURE_EDITING_HISTORY=15
+CONFIG_FEATURE_EDITING_SAVEHISTORY=y
+CONFIG_FEATURE_TAB_COMPLETION=y
+CONFIG_FEATURE_USERNAME_COMPLETION=y
+CONFIG_FEATURE_EDITING_FANCY_PROMPT=y
+CONFIG_FEATURE_VERBOSE_CP_MESSAGE=y
+CONFIG_FEATURE_COPYBUF_KB=4
+CONFIG_MONOTONIC_SYSCALL=y
+CONFIG_IOCTL_HEX2STR_ERROR=y
+# CONFIG_FEATURE_HWIB is not set
+
+#
+# Applets
+#
+
+#
+# Archival Utilities
+#
+CONFIG_AR=y
+CONFIG_FEATURE_AR_LONG_FILENAMES=y
+CONFIG_BUNZIP2=y
+CONFIG_BZIP2=y
+# CONFIG_CPIO is not set
+# CONFIG_FEATURE_CPIO_O is not set
+# CONFIG_DPKG is not set
+# CONFIG_DPKG_DEB is not set
+# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set
+CONFIG_GUNZIP=y
+CONFIG_FEATURE_GUNZIP_UNCOMPRESS=y
+CONFIG_GZIP=y
+# CONFIG_RPM2CPIO is not set
+# CONFIG_RPM is not set
+# CONFIG_FEATURE_RPM_BZ2 is not set
+CONFIG_TAR=y
+CONFIG_FEATURE_TAR_CREATE=y
+CONFIG_FEATURE_TAR_GZIP=y
+CONFIG_FEATURE_TAR_BZIP2=y
+CONFIG_FEATURE_TAR_LZMA=y
+CONFIG_FEATURE_TAR_COMPRESS=y
+CONFIG_FEATURE_TAR_AUTODETECT=y
+CONFIG_FEATURE_TAR_FROM=y
+# CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY is not set
+# CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set
+CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
+CONFIG_FEATURE_TAR_LONG_OPTIONS=y
+CONFIG_FEATURE_TAR_UNAME_GNAME=y
+CONFIG_UNCOMPRESS=y
+CONFIG_UNLZMA=y
+# CONFIG_FEATURE_LZMA_FAST is not set
+CONFIG_UNZIP=y
+
+#
+# Common options for cpio and tar
+#
+# CONFIG_FEATURE_DEB_TAR_GZ is not set
+# CONFIG_FEATURE_DEB_TAR_BZ2 is not set
+# CONFIG_FEATURE_DEB_TAR_LZMA is not set
+
+#
+# Coreutils
+#
+CONFIG_BASENAME=y
+# CONFIG_CAL is not set
+CONFIG_CAT=y
+# CONFIG_CATV is not set
+CONFIG_CHGRP=y
+CONFIG_CHMOD=y
+CONFIG_CHOWN=y
+CONFIG_CHROOT=y
+# CONFIG_CKSUM is not set
+# CONFIG_COMM is not set
+CONFIG_CP=y
+CONFIG_CUT=y
+CONFIG_DATE=y
+CONFIG_FEATURE_DATE_ISOFMT=y
+CONFIG_DD=y
+CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
+CONFIG_FEATURE_DD_IBS_OBS=y
+CONFIG_DF=y
+CONFIG_FEATURE_DF_INODE=y
+CONFIG_DIRNAME=y
+CONFIG_DOS2UNIX=y
+CONFIG_UNIX2DOS=y
+CONFIG_DU=y
+CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y
+CONFIG_ECHO=y
+CONFIG_FEATURE_FANCY_ECHO=y
+CONFIG_ENV=y
+CONFIG_FEATURE_ENV_LONG_OPTIONS=y
+# CONFIG_EXPAND is not set
+# CONFIG_FEATURE_EXPAND_LONG_OPTIONS is not set
+CONFIG_EXPR=y
+# CONFIG_EXPR_MATH_SUPPORT_64 is not set
+CONFIG_FALSE=y
+# CONFIG_FOLD is not set
+CONFIG_HEAD=y
+CONFIG_FEATURE_FANCY_HEAD=y
+# CONFIG_HOSTID is not set
+CONFIG_ID=y
+# CONFIG_INSTALL is not set
+# CONFIG_FEATURE_INSTALL_LONG_OPTIONS is not set
+CONFIG_LENGTH=y
+CONFIG_LN=y
+CONFIG_LOGNAME=y
+CONFIG_LS=y
+CONFIG_FEATURE_LS_FILETYPES=y
+CONFIG_FEATURE_LS_FOLLOWLINKS=y
+CONFIG_FEATURE_LS_RECURSIVE=y
+CONFIG_FEATURE_LS_SORTFILES=y
+CONFIG_FEATURE_LS_TIMESTAMPS=y
+CONFIG_FEATURE_LS_USERNAME=y
+CONFIG_FEATURE_LS_COLOR=y
+# CONFIG_FEATURE_LS_COLOR_IS_DEFAULT is not set
+CONFIG_MD5SUM=y
+CONFIG_MKDIR=y
+CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y
+CONFIG_MKFIFO=y
+CONFIG_MKNOD=y
+CONFIG_MV=y
+CONFIG_FEATURE_MV_LONG_OPTIONS=y
+CONFIG_NICE=y
+CONFIG_NOHUP=y
+CONFIG_OD=y
+CONFIG_PRINTENV=y
+CONFIG_PRINTF=y
+CONFIG_PWD=y
+CONFIG_READLINK=y
+CONFIG_FEATURE_READLINK_FOLLOW=y
+CONFIG_REALPATH=y
+CONFIG_RM=y
+CONFIG_RMDIR=y
+CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y
+CONFIG_SEQ=y
+CONFIG_SHA1SUM=y
+CONFIG_SLEEP=y
+CONFIG_FEATURE_FANCY_SLEEP=y
+CONFIG_SORT=y
+CONFIG_FEATURE_SORT_BIG=y
+CONFIG_SPLIT=y
+CONFIG_FEATURE_SPLIT_FANCY=y
+# CONFIG_STAT is not set
+# CONFIG_FEATURE_STAT_FORMAT is not set
+CONFIG_STTY=y
+CONFIG_SUM=y
+CONFIG_SYNC=y
+# CONFIG_TAC is not set
+CONFIG_TAIL=y
+CONFIG_FEATURE_FANCY_TAIL=y
+CONFIG_TEE=y
+CONFIG_FEATURE_TEE_USE_BLOCK_IO=y
+CONFIG_TEST=y
+# CONFIG_FEATURE_TEST_64 is not set
+CONFIG_TOUCH=y
+CONFIG_TR=y
+CONFIG_FEATURE_TR_CLASSES=y
+CONFIG_FEATURE_TR_EQUIV=y
+CONFIG_TRUE=y
+CONFIG_TTY=y
+CONFIG_UNAME=y
+# CONFIG_UNEXPAND is not set
+# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set
+CONFIG_UNIQ=y
+CONFIG_USLEEP=y
+# CONFIG_UUDECODE is not set
+# CONFIG_UUENCODE is not set
+CONFIG_WC=y
+# CONFIG_FEATURE_WC_LARGE is not set
+CONFIG_WHO=y
+CONFIG_WHOAMI=y
+CONFIG_YES=y
+
+#
+# Common options for cp and mv
+#
+CONFIG_FEATURE_PRESERVE_HARDLINKS=y
+
+#
+# Common options for ls, more and telnet
+#
+CONFIG_FEATURE_AUTOWIDTH=y
+
+#
+# Common options for df, du, ls
+#
+CONFIG_FEATURE_HUMAN_READABLE=y
+
+#
+# Common options for md5sum, sha1sum
+#
+CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
+
+#
+# Console Utilities
+#
+CONFIG_CHVT=y
+CONFIG_CLEAR=y
+CONFIG_DEALLOCVT=y
+CONFIG_DUMPKMAP=y
+CONFIG_KBD_MODE=y
+CONFIG_LOADFONT=y
+CONFIG_LOADKMAP=y
+CONFIG_OPENVT=y
+CONFIG_RESET=y
+CONFIG_RESIZE=y
+CONFIG_FEATURE_RESIZE_PRINT=y
+CONFIG_SETCONSOLE=y
+CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y
+CONFIG_SETKEYCODES=y
+CONFIG_SETLOGCONS=y
+
+#
+# Debian Utilities
+#
+CONFIG_MKTEMP=y
+# CONFIG_PIPE_PROGRESS is not set
+CONFIG_RUN_PARTS=y
+CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y
+CONFIG_FEATURE_RUN_PARTS_FANCY=y
+CONFIG_START_STOP_DAEMON=y
+CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y
+CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y
+CONFIG_WHICH=y
+
+#
+# Editors
+#
+CONFIG_AWK=y
+CONFIG_FEATURE_AWK_MATH=y
+CONFIG_CMP=y
+CONFIG_DIFF=y
+CONFIG_FEATURE_DIFF_BINARY=y
+CONFIG_FEATURE_DIFF_DIR=y
+CONFIG_FEATURE_DIFF_MINIMAL=y
+# CONFIG_ED is not set
+CONFIG_PATCH=y
+CONFIG_SED=y
+CONFIG_VI=y
+CONFIG_FEATURE_VI_MAX_LEN=1024
+CONFIG_FEATURE_VI_8BIT=y
+CONFIG_FEATURE_VI_COLON=y
+CONFIG_FEATURE_VI_YANKMARK=y
+CONFIG_FEATURE_VI_SEARCH=y
+CONFIG_FEATURE_VI_USE_SIGNALS=y
+# CONFIG_FEATURE_VI_DOT_CMD is not set
+# CONFIG_FEATURE_VI_READONLY is not set
+# CONFIG_FEATURE_VI_SETOPTS is not set
+# CONFIG_FEATURE_VI_SET is not set
+CONFIG_FEATURE_VI_WIN_RESIZE=y
+CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y
+CONFIG_FEATURE_ALLOW_EXEC=y
+
+#
+# Finding Utilities
+#
+CONFIG_FIND=y
+CONFIG_FEATURE_FIND_PRINT0=y
+CONFIG_FEATURE_FIND_MTIME=y
+CONFIG_FEATURE_FIND_MMIN=y
+CONFIG_FEATURE_FIND_PERM=y
+CONFIG_FEATURE_FIND_TYPE=y
+CONFIG_FEATURE_FIND_XDEV=y
+CONFIG_FEATURE_FIND_MAXDEPTH=y
+CONFIG_FEATURE_FIND_NEWER=y
+CONFIG_FEATURE_FIND_INUM=y
+CONFIG_FEATURE_FIND_EXEC=y
+CONFIG_FEATURE_FIND_USER=y
+CONFIG_FEATURE_FIND_GROUP=y
+CONFIG_FEATURE_FIND_NOT=y
+CONFIG_FEATURE_FIND_DEPTH=y
+CONFIG_FEATURE_FIND_PAREN=y
+CONFIG_FEATURE_FIND_SIZE=y
+CONFIG_FEATURE_FIND_PRUNE=y
+CONFIG_FEATURE_FIND_DELETE=y
+CONFIG_FEATURE_FIND_PATH=y
+CONFIG_FEATURE_FIND_REGEX=y
+# CONFIG_FEATURE_FIND_CONTEXT is not set
+CONFIG_GREP=y
+CONFIG_FEATURE_GREP_EGREP_ALIAS=y
+CONFIG_FEATURE_GREP_FGREP_ALIAS=y
+CONFIG_FEATURE_GREP_CONTEXT=y
+CONFIG_XARGS=y
+CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y
+CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y
+CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y
+CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y
+
+#
+# Init Utilities
+#
+# CONFIG_INIT is not set
+# CONFIG_DEBUG_INIT is not set
+# CONFIG_FEATURE_USE_INITTAB is not set
+# CONFIG_FEATURE_KILL_REMOVED is not set
+CONFIG_FEATURE_KILL_DELAY=0
+# CONFIG_FEATURE_INIT_SCTTY is not set
+# CONFIG_FEATURE_INIT_SYSLOG is not set
+# CONFIG_FEATURE_EXTRA_QUIET is not set
+# CONFIG_FEATURE_INIT_COREDUMPS is not set
+# CONFIG_FEATURE_INITRD is not set
+# CONFIG_HALT is not set
+# CONFIG_MESG is not set
+
+#
+# Login/Password Management Utilities
+#
+# CONFIG_FEATURE_SHADOWPASSWDS is not set
+CONFIG_USE_BB_PWD_GRP=y
+# CONFIG_USE_BB_SHADOW is not set
+CONFIG_USE_BB_CRYPT=y
+CONFIG_ADDGROUP=y
+CONFIG_FEATURE_ADDUSER_TO_GROUP=y
+CONFIG_DELGROUP=y
+CONFIG_FEATURE_DEL_USER_FROM_GROUP=y
+CONFIG_FEATURE_CHECK_NAMES=y
+CONFIG_ADDUSER=y
+CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y
+CONFIG_DELUSER=y
+CONFIG_GETTY=y
+CONFIG_FEATURE_UTMP=y
+CONFIG_FEATURE_WTMP=y
+CONFIG_LOGIN=y
+# CONFIG_PAM is not set
+CONFIG_LOGIN_SCRIPTS=y
+CONFIG_FEATURE_NOLOGIN=y
+CONFIG_FEATURE_SECURETTY=y
+CONFIG_PASSWD=y
+CONFIG_FEATURE_PASSWD_WEAK_CHECK=y
+CONFIG_CRYPTPW=y
+CONFIG_CHPASSWD=y
+CONFIG_SU=y
+CONFIG_FEATURE_SU_SYSLOG=y
+CONFIG_FEATURE_SU_CHECKS_SHELLS=y
+CONFIG_SULOGIN=y
+# CONFIG_VLOCK is not set
+
+#
+# Linux Ext2 FS Progs
+#
+# CONFIG_CHATTR is not set
+# CONFIG_FSCK is not set
+# CONFIG_LSATTR is not set
+
+#
+# Linux Module Utilities
+#
+CONFIG_DEPMOD=y
+# CONFIG_FEATURE_DEPMOD_PRUNE_FANCY is not set
+CONFIG_FEATURE_DEPMOD_ALIAS=y
+CONFIG_INSMOD=y
+# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
+# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
+# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
+# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
+# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
+CONFIG_RMMOD=y
+CONFIG_LSMOD=y
+CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=y
+CONFIG_MODPROBE=y
+CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS=y
+CONFIG_FEATURE_MODPROBE_FANCY_ALIAS=y
+CONFIG_FEATURE_MODPROBE_BLACKLIST=y
+
+#
+# Options common to multiple modutils
+#
+CONFIG_FEATURE_CHECK_TAINTED_MODULE=y
+# CONFIG_FEATURE_2_4_MODULES is not set
+CONFIG_FEATURE_2_6_MODULES=y
+CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
+CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
+# CONFIG_FEATURE_QUERY_MODULE_INTERFACE is not set
+
+#
+# Linux System Utilities
+#
+CONFIG_DMESG=y
+CONFIG_FEATURE_DMESG_PRETTY=y
+# CONFIG_FBSET is not set
+# CONFIG_FEATURE_FBSET_FANCY is not set
+# CONFIG_FEATURE_FBSET_READMODE is not set
+# CONFIG_FDFLUSH is not set
+# CONFIG_FDFORMAT is not set
+CONFIG_FDISK=y
+CONFIG_FDISK_SUPPORT_LARGE_DISKS=y
+CONFIG_FEATURE_FDISK_WRITABLE=y
+# CONFIG_FEATURE_AIX_LABEL is not set
+# CONFIG_FEATURE_SGI_LABEL is not set
+# CONFIG_FEATURE_SUN_LABEL is not set
+# CONFIG_FEATURE_OSF_LABEL is not set
+CONFIG_FEATURE_FDISK_ADVANCED=y
+CONFIG_FINDFS=y
+CONFIG_FREERAMDISK=y
+# CONFIG_FSCK_MINIX is not set
+# CONFIG_MKFS_MINIX is not set
+# CONFIG_FEATURE_MINIX2 is not set
+CONFIG_GETOPT=y
+CONFIG_HEXDUMP=y
+CONFIG_FEATURE_HEXDUMP_REVERSE=y
+CONFIG_HD=y
+CONFIG_HWCLOCK=y
+CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y
+CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y
+# CONFIG_IPCRM is not set
+# CONFIG_IPCS is not set
+CONFIG_LOSETUP=y
+CONFIG_MDEV=y
+CONFIG_FEATURE_MDEV_CONF=y
+CONFIG_FEATURE_MDEV_RENAME=y
+CONFIG_FEATURE_MDEV_RENAME_REGEXP=y
+CONFIG_FEATURE_MDEV_EXEC=y
+CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y
+CONFIG_MKSWAP=y
+# CONFIG_FEATURE_MKSWAP_V0 is not set
+CONFIG_MORE=y
+CONFIG_FEATURE_USE_TERMIOS=y
+CONFIG_VOLUMEID=y
+CONFIG_FEATURE_VOLUMEID_EXT=y
+# CONFIG_FEATURE_VOLUMEID_REISERFS is not set
+CONFIG_FEATURE_VOLUMEID_FAT=y
+CONFIG_FEATURE_VOLUMEID_HFS=y
+CONFIG_FEATURE_VOLUMEID_JFS=y
+# CONFIG_FEATURE_VOLUMEID_XFS is not set
+CONFIG_FEATURE_VOLUMEID_NTFS=y
+CONFIG_FEATURE_VOLUMEID_ISO9660=y
+CONFIG_FEATURE_VOLUMEID_UDF=y
+CONFIG_FEATURE_VOLUMEID_LUKS=y
+CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y
+# CONFIG_FEATURE_VOLUMEID_CRAMFS is not set
+# CONFIG_FEATURE_VOLUMEID_ROMFS is not set
+# CONFIG_FEATURE_VOLUMEID_SYSV is not set
+# CONFIG_FEATURE_VOLUMEID_OCFS2 is not set
+CONFIG_FEATURE_VOLUMEID_LINUXRAID=y
+CONFIG_MOUNT=y
+CONFIG_FEATURE_MOUNT_FAKE=y
+CONFIG_FEATURE_MOUNT_VERBOSE=y
+CONFIG_FEATURE_MOUNT_HELPERS=y
+CONFIG_FEATURE_MOUNT_LABEL=y
+CONFIG_FEATURE_MOUNT_NFS=y
+CONFIG_FEATURE_MOUNT_CIFS=y
+CONFIG_FEATURE_MOUNT_FLAGS=y
+CONFIG_FEATURE_MOUNT_FSTAB=y
+CONFIG_PIVOT_ROOT=y
+CONFIG_RDATE=y
+# CONFIG_READPROFILE is not set
+# CONFIG_RTCWAKE is not set
+CONFIG_SCRIPT=y
+# CONFIG_SETARCH is not set
+CONFIG_SWAPONOFF=y
+CONFIG_FEATURE_SWAPON_PRI=y
+CONFIG_SWITCH_ROOT=y
+CONFIG_UMOUNT=y
+CONFIG_FEATURE_UMOUNT_ALL=y
+
+#
+# Common options for mount/umount
+#
+CONFIG_FEATURE_MOUNT_LOOP=y
+# CONFIG_FEATURE_MTAB_SUPPORT is not set
+
+#
+# Miscellaneous Utilities
+#
+CONFIG_ADJTIMEX=y
+CONFIG_BBCONFIG=y
+# CONFIG_CHAT is not set
+# CONFIG_FEATURE_CHAT_NOFAIL is not set
+# CONFIG_FEATURE_CHAT_TTY_HIFI is not set
+# CONFIG_FEATURE_CHAT_IMPLICIT_CR is not set
+# CONFIG_FEATURE_CHAT_SWALLOW_OPTS is not set
+# CONFIG_FEATURE_CHAT_SEND_ESCAPES is not set
+# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set
+# CONFIG_FEATURE_CHAT_CLR_ABORT is not set
+# CONFIG_CHRT is not set
+CONFIG_CROND=y
+CONFIG_DEBUG_CROND_OPTION=y
+# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set
+CONFIG_CRONTAB=y
+CONFIG_DC=y
+# CONFIG_DEVFSD is not set
+# CONFIG_DEVFSD_MODLOAD is not set
+# CONFIG_DEVFSD_FG_NP is not set
+# CONFIG_DEVFSD_VERBOSE is not set
+# CONFIG_FEATURE_DEVFS is not set
+# CONFIG_EJECT is not set
+# CONFIG_FEATURE_EJECT_SCSI is not set
+# CONFIG_FBSPLASH is not set
+# CONFIG_INOTIFYD is not set
+# CONFIG_LAST is not set
+# CONFIG_FEATURE_LAST_SMALL is not set
+# CONFIG_FEATURE_LAST_FANCY is not set
+CONFIG_LESS=y
+CONFIG_FEATURE_LESS_MAXLINES=9999999
+CONFIG_FEATURE_LESS_BRACKETS=y
+CONFIG_FEATURE_LESS_FLAGS=y
+CONFIG_FEATURE_LESS_FLAGCS=y
+CONFIG_FEATURE_LESS_MARKS=y
+CONFIG_FEATURE_LESS_REGEXP=y
+CONFIG_HDPARM=y
+CONFIG_FEATURE_HDPARM_GET_IDENTITY=y
+CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y
+CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y
+CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y
+CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y
+CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y
+CONFIG_MAKEDEVS=y
+# CONFIG_FEATURE_MAKEDEVS_LEAF is not set
+CONFIG_FEATURE_MAKEDEVS_TABLE=y
+# CONFIG_MAN is not set
+CONFIG_MICROCOM=y
+CONFIG_MOUNTPOINT=y
+# CONFIG_MT is not set
+CONFIG_RAIDAUTORUN=y
+CONFIG_READAHEAD=y
+CONFIG_RUNLEVEL=y
+CONFIG_RX=y
+# CONFIG_SETSID is not set
+CONFIG_STRINGS=y
+# CONFIG_TASKSET is not set
+# CONFIG_FEATURE_TASKSET_FANCY is not set
+CONFIG_TIME=y
+# CONFIG_TTYSIZE is not set
+# CONFIG_WATCHDOG is not set
+
+#
+# Networking Utilities
+#
+CONFIG_FEATURE_IPV6=y
+CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y
+CONFIG_VERBOSE_RESOLUTION_ERRORS=y
+CONFIG_ARP=y
+CONFIG_ARPING=y
+CONFIG_BRCTL=y
+CONFIG_FEATURE_BRCTL_FANCY=y
+CONFIG_FEATURE_BRCTL_SHOW=y
+# CONFIG_DNSD is not set
+# CONFIG_ETHER_WAKE is not set
+# CONFIG_FAKEIDENTD is not set
+# CONFIG_FTPGET is not set
+# CONFIG_FTPPUT is not set
+# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
+CONFIG_HOSTNAME=y
+CONFIG_HTTPD=y
+CONFIG_FEATURE_HTTPD_RANGES=y
+CONFIG_FEATURE_HTTPD_USE_SENDFILE=y
+CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP=y
+CONFIG_FEATURE_HTTPD_SETUID=y
+CONFIG_FEATURE_HTTPD_BASIC_AUTH=y
+CONFIG_FEATURE_HTTPD_AUTH_MD5=y
+CONFIG_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES=y
+CONFIG_FEATURE_HTTPD_CGI=y
+CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y
+CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y
+CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y
+CONFIG_FEATURE_HTTPD_ERROR_PAGES=y
+CONFIG_FEATURE_HTTPD_PROXY=y
+CONFIG_IFCONFIG=y
+CONFIG_FEATURE_IFCONFIG_STATUS=y
+# CONFIG_FEATURE_IFCONFIG_SLIP is not set
+# CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ is not set
+CONFIG_FEATURE_IFCONFIG_HW=y
+CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y
+# CONFIG_IFENSLAVE is not set
+CONFIG_IFUPDOWN=y
+CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate"
+# CONFIG_FEATURE_IFUPDOWN_IP is not set
+# CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN is not set
+CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN=y
+CONFIG_FEATURE_IFUPDOWN_IPV4=y
+CONFIG_FEATURE_IFUPDOWN_IPV6=y
+# CONFIG_FEATURE_IFUPDOWN_MAPPING is not set
+# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set
+# CONFIG_INETD is not set
+# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO is not set
+# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD is not set
+# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME is not set
+# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME is not set
+# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN is not set
+# CONFIG_FEATURE_INETD_RPC is not set
+CONFIG_IP=y
+CONFIG_FEATURE_IP_ADDRESS=y
+CONFIG_FEATURE_IP_LINK=y
+CONFIG_FEATURE_IP_ROUTE=y
+CONFIG_FEATURE_IP_TUNNEL=y
+CONFIG_FEATURE_IP_RULE=y
+CONFIG_FEATURE_IP_SHORT_FORMS=y
+# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set
+CONFIG_IPADDR=y
+CONFIG_IPLINK=y
+CONFIG_IPROUTE=y
+CONFIG_IPTUNNEL=y
+CONFIG_IPRULE=y
+CONFIG_IPCALC=y
+CONFIG_FEATURE_IPCALC_FANCY=y
+CONFIG_FEATURE_IPCALC_LONG_OPTIONS=y
+# CONFIG_NAMEIF is not set
+# CONFIG_FEATURE_NAMEIF_EXTENDED is not set
+CONFIG_NC=y
+CONFIG_NC_SERVER=y
+CONFIG_NC_EXTRA=y
+CONFIG_NETSTAT=y
+CONFIG_FEATURE_NETSTAT_WIDE=y
+CONFIG_NSLOOKUP=y
+CONFIG_PING=y
+CONFIG_PING6=y
+CONFIG_FEATURE_FANCY_PING=y
+# CONFIG_PSCAN is not set
+CONFIG_ROUTE=y
+# CONFIG_SENDMAIL is not set
+# CONFIG_FETCHMAIL is not set
+# CONFIG_SLATTACH is not set
+CONFIG_TELNET=y
+CONFIG_FEATURE_TELNET_TTYPE=y
+CONFIG_FEATURE_TELNET_AUTOLOGIN=y
+CONFIG_TELNETD=y
+# CONFIG_FEATURE_TELNETD_STANDALONE is not set
+CONFIG_TFTP=y
+CONFIG_TFTPD=y
+CONFIG_FEATURE_TFTP_GET=y
+CONFIG_FEATURE_TFTP_PUT=y
+CONFIG_FEATURE_TFTP_BLOCKSIZE=y
+CONFIG_DEBUG_TFTP=y
+CONFIG_TRACEROUTE=y
+CONFIG_FEATURE_TRACEROUTE_VERBOSE=y
+CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=y
+# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set
+# CONFIG_APP_UDHCPD is not set
+# CONFIG_APP_DHCPRELAY is not set
+# CONFIG_APP_DUMPLEASES is not set
+# CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY is not set
+CONFIG_DHCPD_LEASES_FILE=""
+CONFIG_APP_UDHCPC=y
+CONFIG_FEATURE_UDHCPC_ARPING=y
+# CONFIG_FEATURE_UDHCP_PORT is not set
+# CONFIG_FEATURE_UDHCP_DEBUG is not set
+# CONFIG_FEATURE_RFC3397 is not set
+CONFIG_DHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
+CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=120
+CONFIG_VCONFIG=y
+CONFIG_WGET=y
+CONFIG_FEATURE_WGET_STATUSBAR=y
+CONFIG_FEATURE_WGET_AUTHENTICATION=y
+CONFIG_FEATURE_WGET_LONG_OPTIONS=y
+# CONFIG_ZCIP is not set
+# CONFIG_TCPSVD is not set
+# CONFIG_UDPSVD is not set
+
+#
+# Process Utilities
+#
+CONFIG_FREE=y
+CONFIG_FUSER=y
+CONFIG_KILL=y
+CONFIG_KILLALL=y
+# CONFIG_KILLALL5 is not set
+# CONFIG_NMETER is not set
+# CONFIG_PGREP is not set
+CONFIG_PIDOF=y
+CONFIG_FEATURE_PIDOF_SINGLE=y
+CONFIG_FEATURE_PIDOF_OMIT=y
+CONFIG_PKILL=y
+CONFIG_PS=y
+CONFIG_FEATURE_PS_WIDE=y
+# CONFIG_FEATURE_PS_TIME is not set
+# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set
+CONFIG_RENICE=y
+CONFIG_BB_SYSCTL=y
+CONFIG_TOP=y
+CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y
+CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y
+CONFIG_FEATURE_TOP_DECIMALS=y
+CONFIG_FEATURE_TOPMEM=y
+CONFIG_UPTIME=y
+CONFIG_WATCH=y
+
+#
+# Shells
+#
+CONFIG_FEATURE_SH_IS_ASH=y
+# CONFIG_FEATURE_SH_IS_HUSH is not set
+# CONFIG_FEATURE_SH_IS_MSH is not set
+# CONFIG_FEATURE_SH_IS_NONE is not set
+CONFIG_ASH=y
+
+#
+# Ash Shell Options
+#
+CONFIG_ASH_BASH_COMPAT=y
+CONFIG_ASH_JOB_CONTROL=y
+CONFIG_ASH_READ_NCHARS=y
+CONFIG_ASH_READ_TIMEOUT=y
+CONFIG_ASH_ALIAS=y
+CONFIG_ASH_MATH_SUPPORT=y
+# CONFIG_ASH_MATH_SUPPORT_64 is not set
+CONFIG_ASH_GETOPTS=y
+CONFIG_ASH_BUILTIN_ECHO=y
+CONFIG_ASH_BUILTIN_PRINTF=y
+CONFIG_ASH_BUILTIN_TEST=y
+CONFIG_ASH_CMDCMD=y
+# CONFIG_ASH_MAIL is not set
+CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
+CONFIG_ASH_RANDOM_SUPPORT=y
+CONFIG_ASH_EXPAND_PRMT=y
+# CONFIG_HUSH is not set
+# CONFIG_HUSH_HELP is not set
+# CONFIG_HUSH_INTERACTIVE is not set
+# CONFIG_HUSH_JOB is not set
+# CONFIG_HUSH_TICK is not set
+# CONFIG_HUSH_IF is not set
+# CONFIG_HUSH_LOOPS is not set
+# CONFIG_LASH is not set
+# CONFIG_MSH is not set
+
+#
+# Bourne Shell Options
+#
+CONFIG_FEATURE_SH_EXTRA_QUIET=y
+# CONFIG_FEATURE_SH_STANDALONE is not set
+# CONFIG_FEATURE_SH_NOFORK is not set
+CONFIG_CTTYHACK=y
+
+#
+# System Logging Utilities
+#
+CONFIG_SYSLOGD=y
+CONFIG_FEATURE_ROTATE_LOGFILE=y
+CONFIG_FEATURE_REMOTE_LOG=y
+CONFIG_FEATURE_SYSLOGD_DUP=y
+CONFIG_FEATURE_IPC_SYSLOG=y
+CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16
+CONFIG_LOGREAD=y
+CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y
+CONFIG_KLOGD=y
+CONFIG_LOGGER=y
+
+#
+# Runit Utilities
+#
+# CONFIG_RUNSV is not set
+# CONFIG_RUNSVDIR is not set
+# CONFIG_SV is not set
+# CONFIG_SVLOGD is not set
+# CONFIG_CHPST is not set
+# CONFIG_SETUIDGID is not set
+# CONFIG_ENVUIDGID is not set
+# CONFIG_ENVDIR is not set
+# CONFIG_SOFTLIMIT is not set
+# CONFIG_CHCON is not set
+# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set
+# CONFIG_GETENFORCE is not set
+# CONFIG_GETSEBOOL is not set
+# CONFIG_LOAD_POLICY is not set
+# CONFIG_MATCHPATHCON is not set
+# CONFIG_RESTORECON is not set
+# CONFIG_RUNCON is not set
+# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set
+# CONFIG_SELINUXENABLED is not set
+# CONFIG_SETENFORCE is not set
+# CONFIG_SETFILES is not set
+# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set
+# CONFIG_SETSEBOOL is not set
+# CONFIG_SESTATUS is not set
+
+#
+# Print Utilities
+#
+# CONFIG_LPD is not set
+# CONFIG_LPR is not set
+# CONFIG_LPQ is not set
diff --git a/packages/u-boot/u-boot-git/c7x0/.mtn2git_empty b/packages/directfb/directfb-1.2.3/.mtn2git_empty
index e69de29bb2..e69de29bb2 100644
--- a/packages/u-boot/u-boot-git/c7x0/.mtn2git_empty
+++ b/packages/directfb/directfb-1.2.3/.mtn2git_empty
diff --git a/packages/directfb/directfb-1.2.3/fix-pkgconfig-cflags.patch b/packages/directfb/directfb-1.2.3/fix-pkgconfig-cflags.patch
new file mode 100644
index 0000000000..745c561cc0
--- /dev/null
+++ b/packages/directfb/directfb-1.2.3/fix-pkgconfig-cflags.patch
@@ -0,0 +1,47 @@
+Index: DirectFB-1.1.1/directfb-internal.pc.in
+===================================================================
+--- DirectFB-1.1.1.orig/directfb-internal.pc.in 2007-08-07 21:43:00.000000000 +0200
++++ DirectFB-1.1.1/directfb-internal.pc.in 2008-07-17 21:00:47.424654304 +0200
+@@ -2,10 +2,10 @@
+ exec_prefix=@exec_prefix@
+ moduledir=@MODULEDIR@
+ moduledirname=@MODULEDIRNAME@
+-includedir=@INTERNALINCLUDEDIR@
++includedir=@includedir@
+
+ Name: DirectFB-Internal
+ Description: Third party module support package for DirectFB.
+ Version: @VERSION@
+ Requires: directfb = @VERSION@
+-Cflags: @DFB_INTERNAL_CFLAGS@ -I@INTERNALINCLUDEDIR@
++Cflags: @DFB_INTERNAL_CFLAGS@ -I${includedir}/directfb -I${includedir}
+Index: DirectFB-1.1.1/directfb.pc.in
+===================================================================
+--- DirectFB-1.1.1.orig/directfb.pc.in 2007-12-15 16:23:16.000000000 +0100
++++ DirectFB-1.1.1/directfb.pc.in 2008-07-17 20:59:58.044985193 +0200
+@@ -9,4 +9,4 @@
+ Requires: fusion direct
+ Libs: -L${libdir} -ldirectfb @THREADLIB@ @OSX_LIBS@
+ Libs.private: -L${libdir} @DYNLIB@ @ZLIB_LIBS@
+-Cflags: @THREADFLAGS@ -I@INCLUDEDIR@
++Cflags: @THREADFLAGS@ -I${includedir}/directfb
+Index: DirectFB-1.1.1/lib/fusion/fusion.pc.in
+===================================================================
+--- DirectFB-1.1.1.orig/lib/fusion/fusion.pc.in 2007-08-07 21:43:00.000000000 +0200
++++ DirectFB-1.1.1/lib/fusion/fusion.pc.in 2008-07-17 20:58:07.051338866 +0200
+@@ -8,4 +8,4 @@
+ Version: @VERSION@
+ Requires: direct
+ Libs: -L${libdir} -lfusion
+-Cflags: -I@INCLUDEDIR@
++Cflags: -I${includedir}/directfb -I${includedir}
+Index: DirectFB-1.1.1/lib/voodoo/voodoo.pc.in
+===================================================================
+--- DirectFB-1.1.1.orig/lib/voodoo/voodoo.pc.in 2007-08-07 21:43:00.000000000 +0200
++++ DirectFB-1.1.1/lib/voodoo/voodoo.pc.in 2008-07-17 20:58:07.054671842 +0200
+@@ -8,4 +8,4 @@
+ Version: @VERSION@
+ Requires: direct
+ Libs: -L${libdir} -lvoodoo
+-Cflags: -I@INCLUDEDIR@
++Cflags: -I${includedir}/directfb -I${includedir}
diff --git a/packages/directfb/directfb.inc b/packages/directfb/directfb.inc
index 07024402b9..948ffa892e 100644
--- a/packages/directfb/directfb.inc
+++ b/packages/directfb/directfb.inc
@@ -9,7 +9,7 @@ HOMEPAGE = "http://directfb.org"
DEPENDS = "jpeg libpng freetype zlib tslib"
SRC_URI = " \
- http://www.directfb.org/download/DirectFB/DirectFB-${PV}.tar.gz \
+ http://www.directfb.org/downloads/Core/DirectFB-${PV}.tar.gz \
file://fix-pkgconfig-cflags.patch;patch=1 \
file://fix-font-missing-char.patch;patch=1 \
file://getpagesize.patch;patch=1 \
@@ -21,7 +21,7 @@ S = "${WORKDIR}/DirectFB-${PV}"
LDFLAGS_append =" -lts -lm"
-inherit autotools pkgconfig
+inherit autotools binconfig pkgconfig
EXTRA_OECONF = "\
--with-gfxdrivers=none \
diff --git a/packages/directfb/directfb_1.2.3.bb b/packages/directfb/directfb_1.2.3.bb
new file mode 100644
index 0000000000..57a4721a02
--- /dev/null
+++ b/packages/directfb/directfb_1.2.3.bb
@@ -0,0 +1,28 @@
+require directfb.inc
+
+RV = "1.2-0"
+PR = "r0"
+
+DEPENDS += "sysfsutils"
+
+SRC_URI = " \
+ http://www.directfb.org/downloads/Core/DirectFB-${PV}.tar.gz \
+ file://fix-pkgconfig-cflags.patch;patch=1 \
+ file://mkdfiff.patch;patch=1 \
+ file://dont-use-linux-config.patch;patch=1 \
+ file://ts_lib_autotools.patch;patch=1 \
+"
+
+EXTRA_OECONF = "\
+ --enable-freetype=yes \
+ --enable-zlib \
+ --with-gfxdrivers=none \
+ --disable-libmpeg3 \
+ --disable-sdl \
+ --disable-vnc \
+ --disable-x11 \
+"
+
+LDFLAGS_append = ""
+
+LEAD_SONAME = "libdirectfb-1.2.so.0"
diff --git a/packages/icon-slicer/.mtn2git_empty b/packages/icon-slicer/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/icon-slicer/.mtn2git_empty
diff --git a/packages/icon-slicer/icon-slicer-native_0.3.bb b/packages/icon-slicer/icon-slicer-native_0.3.bb
new file mode 100644
index 0000000000..e23bcacdff
--- /dev/null
+++ b/packages/icon-slicer/icon-slicer-native_0.3.bb
@@ -0,0 +1,18 @@
+LICENSE = "MIT"
+
+SRC_URI = "http://freedesktop.org/software/icon-slicer/releases/icon-slicer-${PV}.tar.gz"
+
+inherit autotools native
+
+DEPENDS = "gtk+-native popt-native"
+
+S = "${WORKDIR}/icon-slicer-${PV}"
+
+AUTOTOOLS_STAGE_PKGCONFIG = "1"
+
+do_stage() {
+ autotools_stage_all
+}
+
+
+
diff --git a/packages/images/fso-image.bb b/packages/images/fso-image.bb
index a857c5b331..261caa3476 100644
--- a/packages/images/fso-image.bb
+++ b/packages/images/fso-image.bb
@@ -2,6 +2,7 @@
# freesmartphone.org Image Recipe
#------------------------------------------------------
+COMPATIBLE_MACHINE = "(om-gta01|om-gta02)"
IMAGE_LINGUAS = ""
# getting the base system up
diff --git a/packages/initscripts/initscripts-1.0/slugos/alignment.sh b/packages/initscripts/initscripts-1.0/slugos/alignment.sh
index bf193cb01c..52e43cc0c5 100644
--- a/packages/initscripts/initscripts-1.0/slugos/alignment.sh
+++ b/packages/initscripts/initscripts-1.0/slugos/alignment.sh
@@ -14,7 +14,7 @@
# Set ALIGN in /etc/default/rcS to override (do not edit this
# file!) Set ALIGN to empty to avoid changing the kernel
# default (currently '0').
-ALIGN=1
+ALIGN=3
. /etc/default/rcS
test -e /proc/cpu/alignment -a -n "$ALIGN" -a "$ALIGN" -ge 0 -a "$ALIGN" -lt 6 &&
echo "$ALIGN" >/proc/cpu/alignment
diff --git a/packages/initscripts/initscripts-1.0/slugos/bootclean.sh b/packages/initscripts/initscripts-1.0/slugos/bootclean.sh
index 1304cb3794..3b17d6d617 100644
--- a/packages/initscripts/initscripts-1.0/slugos/bootclean.sh
+++ b/packages/initscripts/initscripts-1.0/slugos/bootclean.sh
@@ -16,8 +16,8 @@
if [ -d /tmp -a ! -L /tmp ] ; then
echo "bootclean.sh: Cleaning /tmp..."
cd /tmp || { echo "bootclean.sh: unable to cd to /tmp." ; return 1 ; }
- find . -depth -xdev ! -type d -print0 | xargs -0r rm -f --
- find . -depth -xdev -type d ! -name . -empty -exec rmdir \{\} \;
+ find . -xdev ! -type d -print0 | xargs -0r rm -f --
+ find . -depth -xdev -type d ! -name . -exec rmdir \{\} \;
else
echo "bootclean.sh: Skipping /tmp (not a directory)..."
fi
diff --git a/packages/initscripts/initscripts-slugos_1.0.bb b/packages/initscripts/initscripts-slugos_1.0.bb
index 0608db714d..242a55ad7a 100644
--- a/packages/initscripts/initscripts-slugos_1.0.bb
+++ b/packages/initscripts/initscripts-slugos_1.0.bb
@@ -10,7 +10,7 @@ RCONFLICTS = "initscripts"
# All other standard definitions inherited from initscripts
# Except the PR which is hacked here. The format used is
# a suffix
-PR := "${PR}.12"
+PR := "${PR}.13"
FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/${P}', '${FILE_DIRNAME}/initscripts-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
diff --git a/packages/linux/linux-omap1-2.6.25-omap1/gcc43-arm-fix-inline-asm-constraints-for-preload.patch b/packages/linux/linux-omap1-2.6.25-omap1/gcc43-arm-fix-inline-asm-constraints-for-preload.patch
new file mode 100644
index 0000000000..4695917a57
--- /dev/null
+++ b/packages/linux/linux-omap1-2.6.25-omap1/gcc43-arm-fix-inline-asm-constraints-for-preload.patch
@@ -0,0 +1,22 @@
+Source:
+http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=5196/1
+
+Description:
+This patch is already submitted upstream. So it will not be needed in 2.6.27 onwards I guess but anyone interested in compiling prior versions of kernels with gcc 4.3 for ARM would need this patch.
+
+diff --git a/include/asm-arm/processor.h b/include/asm-arm/processor.h
+index b01d5e7..517a4d6 100644
+--- a/include/asm-arm/processor.h
++++ b/include/asm-arm/processor.h
+@@ -112,9 +112,9 @@ extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
+ static inline void prefetch(const void *ptr)
+ {
+ __asm__ __volatile__(
+- "pld\t%0"
++ "pld\t%a0"
+ :
+- : "o" (*(char *)ptr)
++ : "p" (ptr)
+ : "cc");
+ }
+
diff --git a/packages/linux/linux-omap1_2.6.25-omap1.bb b/packages/linux/linux-omap1_2.6.25-omap1.bb
index 1d2d0bedc5..2f3f3ce22a 100644
--- a/packages/linux/linux-omap1_2.6.25-omap1.bb
+++ b/packages/linux/linux-omap1_2.6.25-omap1.bb
@@ -4,6 +4,7 @@ COMPATIBLE_MACHINE = "omap5912osk"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2 \
http://www.muru.com/linux/omap/patches/patch-2.6.25-omap1.bz2;patch=1 \
+ file://gcc43-arm-fix-inline-asm-constraints-for-preload.patch;patch=1 \
file://defconfig"
S = "${WORKDIR}/linux-2.6.25"
diff --git a/packages/openttd/openttd.inc b/packages/openttd/openttd.inc
index 4c4c009296..a27da0fd4c 100644
--- a/packages/openttd/openttd.inc
+++ b/packages/openttd/openttd.inc
@@ -1,7 +1,9 @@
# Note: OpenTTD's build system changed considerably in 0.6.x
# This include file is written towards the newer versions.
-DESCRIPTION = "Open source clone of the Microprose game 'Transport Tycoon Deluxe' - SDL edition."
+DESCRIPTION = "Open source clone of the Microprose game 'Transport Tycoon Deluxe' - SDL edition. \
+This package provides the engine only. You will need to get the data file elsewhere \
+through official channels."
HOMEPAGE = "http://openttd.sf.net"
LICENSE = "GPLv2"
diff --git a/packages/openttd/openttd_0.6.0.bb b/packages/openttd/openttd_0.6.0.bb
index b984d45dbf..893551ac59 100644
--- a/packages/openttd/openttd_0.6.0.bb
+++ b/packages/openttd/openttd_0.6.0.bb
@@ -1,6 +1,6 @@
require openttd.inc
-PR = "r0"
+PR = "r1"
SRC_URI += "file://openttd_0.6.0-buildfix.patch;patch=1"
diff --git a/packages/opkg/files/opkg_wget.patch b/packages/opkg/files/opkg_wget.patch
new file mode 100644
index 0000000000..b9773a54b6
--- /dev/null
+++ b/packages/opkg/files/opkg_wget.patch
@@ -0,0 +1,88 @@
+--- opkg/libopkg/opkg_download.c.orig 2008-08-21 12:33:49.000000000 -0500
++++ opkg/libopkg/opkg_download.c 2008-08-21 15:12:00.000000000 -0500
+@@ -17,7 +17,9 @@
+ General Public License for more details.
+ */
+ #include "config.h"
++#ifdef HAVE_CURL
+ #include <curl/curl.h>
++#endif
+ #ifdef HAVE_GPGME
+ #include <gpgme.h>
+ #endif
+@@ -76,6 +78,7 @@
+ setenv("no_proxy", conf->no_proxy, 1);
+ }
+
++#ifdef HAVE_CURL
+ CURL *curl;
+ CURLcode res;
+ FILE * file = fopen (tmp_file_location, "w");
+@@ -121,6 +124,27 @@
+ free(src_basec);
+ return -1;
+ }
++#else
++ {
++ int res;
++ char *wgetcmd;
++ char *wgetopts;
++ wgetopts = getenv("OPKG_WGETOPTS");
++ sprintf_alloc(&wgetcmd, "wget -q %s%s -O \"%s\" \"%s\"",
++ (conf->http_proxy || conf->ftp_proxy) ? "-Y on " : "",
++ (wgetopts!=NULL) ? wgetopts : "",
++ tmp_file_location, src);
++ opkg_message(conf, OPKG_INFO, "Executing: %s\n", wgetcmd);
++ res = xsystem(wgetcmd);
++ free(wgetcmd);
++ if (res) {
++ opkg_message(conf, OPKG_ERROR, "Failed to download %s, error %d\n", src, res);
++ free(tmp_file_location);
++ free(src_basec);
++ return res;
++ }
++ }
++#endif
+
+ err = file_move(tmp_file_location, dest_file_name);
+
+--- opkg/configure.ac.orig 2008-07-08 09:39:11.000000000 -0500
++++ opkg/configure.ac 2008-08-21 14:57:35.000000000 -0500
+@@ -23,7 +23,7 @@
+ # Checks for libraries
+
+ # check for libcurl
+-PKG_CHECK_MODULES(CURL, libcurl)
++#PKG_CHECK_MODULES(CURL, libcurl)
+
+
+
+--- opkg/libopkg/opkg.c.orig 2008-08-21 19:49:35.000000000 -0500
++++ opkg/libopkg/opkg.c 2008-08-21 19:55:27.000000000 -0500
+@@ -1021,7 +1021,9 @@
+ return package;
+ }
+
++#ifdef HAVE_CURL
+ #include <curl/curl.h>
++#endif
+ /**
+ * @brief Check the accessibility of repositories. It will try to access the repository to check if the respository is accessible throught current network status.
+ * @param opkg The opkg_t
+@@ -1071,12 +1073,16 @@
+ repositories--;
+
+ err = opkg_download(opkg->conf, iter1->data, "/dev/null", NULL, NULL);
++#ifdef HAVE_CURL
+ if (!(err == CURLE_OK ||
+ err == CURLE_HTTP_RETURNED_ERROR ||
+ err == CURLE_FILE_COULDNT_READ_FILE ||
+ err == CURLE_REMOTE_FILE_NOT_FOUND ||
+ err == CURLE_TFTP_NOTFOUND
+ )) {
++#else
++ if (!(err == 0)) {
++#endif
+ ret++;
+ }
+ str_list_elt_deinit(iter1);
diff --git a/packages/opkg/files/reduce-nogpg-noise.patch b/packages/opkg/files/reduce-nogpg-noise.patch
new file mode 100644
index 0000000000..b72560876e
--- /dev/null
+++ b/packages/opkg/files/reduce-nogpg-noise.patch
@@ -0,0 +1,11 @@
+--- opkg/libopkg/opkg_cmd.c.orig 2008-08-21 22:18:43.000000000 -0500
++++ opkg/libopkg/opkg_cmd.c 2008-08-21 22:19:20.000000000 -0500
+@@ -288,7 +288,7 @@ static int opkg_update_cmd(opkg_conf_t *
+ free (tmp_file_name);
+ free (url);
+ #else
+- opkg_message (conf, OPKG_NOTICE, "Signiture check for %s skipped "
++ opkg_message (conf, OPKG_INFO, "Signature check for %s skipped "
+ "because GPG support was not enabled in this build\n", src->name);
+ #endif
+ free(list_file_name);
diff --git a/packages/opkg/opkg-nogpg-nocurl_svn.bb b/packages/opkg/opkg-nogpg-nocurl_svn.bb
new file mode 100644
index 0000000000..5fa459630d
--- /dev/null
+++ b/packages/opkg/opkg-nogpg-nocurl_svn.bb
@@ -0,0 +1,20 @@
+require opkg_svn.bb
+
+DEPENDS = ""
+PROVIDES += "opkg"
+
+SRC_URI += "file://opkg_wget.patch;patch=1 \
+ file://reduce-nogpg-noise.patch;patch=1 \
+ "
+PR = "r0"
+
+SRCREV = "${SRCREV_pn-opkg}"
+
+EXTRA_OECONF += "--disable-gpg"
+
+# The nogpg version isn't getting much love and has an unused variable which trips up -Werror
+do_configure_prepend() {
+ sed -i -e s:-Werror::g ${S}/libopkg/Makefile.am
+}
+
+DEFAULT_PREFERENCE = "-1"
diff --git a/packages/slugos-init/files/boot/disk b/packages/slugos-init/files/boot/disk
index a991bc50ac..d47be54c37 100644
--- a/packages/slugos-init/files/boot/disk
+++ b/packages/slugos-init/files/boot/disk
@@ -37,6 +37,7 @@ then
# the UUID mount fails a standard device mount
# is attempted.
if test -n "$UUID" &&
+ mount "$@" UUID="$UUID" /mnt ||
mount "$@" -U "$UUID" /mnt ||
mount "$@" "$device" /mnt
then
diff --git a/packages/slugos-init/files/boot/kexec b/packages/slugos-init/files/boot/kexec
index 8973d20bfe..dd757fd771 100644
--- a/packages/slugos-init/files/boot/kexec
+++ b/packages/slugos-init/files/boot/kexec
@@ -126,7 +126,7 @@ if [ -n "$1" -a -n "$2" ] ; then
sleep "$sleep"
if [ -n "$UUID" ] ; then
echo "mounting partition UUID \"$UUID\"..."
- if mount -o ro -U "$UUID" /mnt ; then
+ if mount -o ro UUID="$UUID" /mnt ; then
need_umount=1
kexec_image="/mnt/$kpath"
fi
diff --git a/packages/slugos-init/files/sysconf b/packages/slugos-init/files/sysconf
index 57a69b7643..3059a466da 100644
--- a/packages/slugos-init/files/sysconf
+++ b/packages/slugos-init/files/sysconf
@@ -238,7 +238,7 @@ sysconf_save_conffiles(){
}
#
( cd "$ffsdir"
- find etc/*.conf $(sed 's!^/!!' usr/lib/ipkg/info/*.conffiles) ! -type d -newer etc/.configured -print |
+ find etc/*.conf $(sed 's!^/!!' usr/lib/opkg/info/*.conffiles) ! -type d -newer etc/.configured -print |
sed 's/^/diff /'
exec sed 's/#.*$//;/^[ ]*$/d' etc/default/conffiles
) | sed 's!^/*!!' |
diff --git a/packages/slugos-init/files/turnup b/packages/slugos-init/files/turnup
index c6220077a5..4aa1fba3ed 100644
--- a/packages/slugos-init/files/turnup
+++ b/packages/slugos-init/files/turnup
@@ -49,7 +49,7 @@ l root root 1777 /var/tmp /var/volatile/tmp
d root root 0755 /var/lock/subsys none
d root root 0755 /var/lib/dropbear none
d root root 0755 /var/lib/misc none
-d root root 0755 /var/lib/ipkg none
+d root root 0755 /var/lib/opkg none
f root root 0664 /var/log/wtmp none
f root root 0664 /var/log/lastlog none
f root root 0664 /var/run/utmp none"
@@ -68,7 +68,7 @@ d root root 1777 /var/tmp none
d root root 0755 /var/lock/subsys none
d root root 0755 /var/lib/dropbear none
d root root 0755 /var/lib/misc none
-d root root 0755 /var/lib/ipkg none
+d root root 0755 /var/lib/opkg none
f root root 0664 /var/log/wtmp none
f root root 0664 /var/log/lastlog none
f root root 0664 /var/run/utmp none"
@@ -578,7 +578,7 @@ disk() {
fso="$(fsoptions "$@")"
if if test -n "$uuid"
then
- mount "$@" -U "$uuid" "$new"
+ mount "$@" UUID="$uuid" "$new" || mount "$@" -U "$uuid" "$new"
else
mount "$@" "$device" "$new"
fi
@@ -591,7 +591,7 @@ disk() {
if test -n "$fst" &&
if test -n "$uuid"
then
- mount -t "$fst" -o "$fso" -U "$uuid" "$new"
+ mount -t "$fst" -o "$fso" UUID="$uuid" "$new" || mount -t "$fst" -o "$fso" -U "$uuid" "$new"
else
mount -t "$fst" -o "$fso" "$device" "$new"
fi
@@ -633,7 +633,7 @@ disk() {
then
echo " options used: -t $fst -o $fso [error in this script]" >&2
test -n "$uuid" &&
- echo " uuid: $uuid (passed with -U)" >&2
+ echo " uuid: $uuid (passed with UUID= or -U)" >&2
fi
fi
diff --git a/packages/slugos-init/slugos-init_5.0.bb b/packages/slugos-init/slugos-init_5.0.bb
new file mode 100644
index 0000000000..9c50cd61f6
--- /dev/null
+++ b/packages/slugos-init/slugos-init_5.0.bb
@@ -0,0 +1,148 @@
+DESCRIPTION = "SlugOS initial network config via sysconf"
+SECTION = "base"
+PRIORITY = "required"
+LICENSE = "GPL"
+DEPENDS = "base-files devio"
+RDEPENDS = "busybox devio"
+PR = "r0"
+
+SRC_URI = "file://boot/flash \
+ file://boot/disk \
+ file://boot/nfs \
+ file://boot/ram \
+ file://boot/kexec \
+ file://boot/network \
+ file://boot/udhcpc.script \
+ file://initscripts/fixfstab \
+ file://initscripts/syslog.buffer \
+ file://initscripts/syslog.file \
+ file://initscripts/syslog.network \
+ file://initscripts/zleds \
+ file://initscripts/leds_startup \
+ file://initscripts/rmrecovery \
+ file://initscripts/sysconfsetup \
+ file://initscripts/umountinitrd.sh \
+ file://initscripts/loadmodules.sh \
+ file://functions \
+ file://modulefunctions \
+ file://conffiles \
+ file://sysconf \
+ file://leds \
+ file://turnup \
+ "
+
+SBINPROGS = ""
+USRSBINPROGS = ""
+CPROGS = "${USRSBINPROGS} ${SBINPROGS}"
+SCRIPTS = "turnup leds sysconf"
+BOOTSCRIPTS = "flash disk nfs ram kexec network udhcpc.script"
+INITSCRIPTS = "syslog.buffer syslog.file syslog.network zleds\
+ leds_startup rmrecovery sysconfsetup umountinitrd.sh\
+ fixfstab loadmodules.sh"
+
+# This just makes things easier...
+S="${WORKDIR}"
+
+do_compile() {
+ set -ex
+ for p in ${CPROGS}
+ do
+ ${CC} ${CFLAGS} -o $p $p.c
+ done
+ set +ex
+}
+
+do_install() {
+ set -ex
+
+ # Directories
+ install -d ${D}${sysconfdir} \
+ ${D}${sysconfdir}/default \
+ ${D}${sysconfdir}/init.d \
+ ${D}${sysconfdir}/modutils \
+ ${D}${sysconfdir}/udev \
+ ${D}${sbindir} \
+ ${D}${base_sbindir} \
+ ${D}/initrd \
+ ${D}/boot
+
+ # linuxrc
+ rm -f ${D}/linuxrc
+ ln -s boot/flash ${D}/linuxrc
+
+ # C programs
+ for p in ${USRSBINPROGS}
+ do
+ install -m 0755 $p ${D}${sbindir}/$p
+ done
+ for p in ${SBINPROGS}
+ do
+ install -m 0755 $p ${D}${base_sbindir}/$p
+ done
+
+ # Shell scripts
+ for p in ${SCRIPTS}
+ do
+ install -m 0755 $p ${D}${base_sbindir}/$p
+ done
+
+ #
+ # Init scripts
+ install -m 0644 functions ${D}${sysconfdir}/default
+ install -m 0644 modulefunctions ${D}${sysconfdir}/default
+ for s in ${INITSCRIPTS}
+ do
+ install -m 0755 initscripts/$s ${D}${sysconfdir}/init.d/
+ done
+
+ #
+ # Boot scripts
+ for p in ${BOOTSCRIPTS}
+ do
+ install -m 0755 boot/$p ${D}/boot
+ done
+
+ # Configuration files
+ install -m 0644 conffiles ${D}${sysconfdir}/default
+
+ set +ex
+}
+
+# If the package is installed on an NSLU2 $D will be empty, in that
+# case it is normal to run 'start' and 'stop', but because the conf
+# files installed don't actually start or stop anything this is
+# unnecessary, so the package postfoo handling is simplified here.
+#NB: do not use '08' (etc) for the first argument after start/stop,
+# the value is interpreted as an octal number if there is a leading
+# zero.
+pkg_postinst_slugos-init() {
+ opt=
+ test -n "$D" && opt="-r $D"
+ update-rc.d $opt hwclock.sh start 8 S . start 45 0 6 .
+ update-rc.d $opt umountinitrd.sh start 9 S .
+ update-rc.d $opt fixfstab start 10 S .
+ update-rc.d $opt syslog.buffer start 11 S . start 49 0 6 .
+ update-rc.d $opt sysconfsetup start 12 S .
+ update-rc.d $opt loadmodules.sh start 21 S .
+ update-rc.d $opt syslog.file start 39 S . start 47 0 6 .
+ update-rc.d $opt syslog.network start 44 S . start 39 0 6 .
+ update-rc.d $opt zleds start 99 S 1 2 3 4 5 . start 89 0 6 . stop 5 0 1 2 3 4 5 6 .
+ update-rc.d $opt rmrecovery start 99 1 2 3 4 5 .
+ # bug fix for startup
+ update-rc.d $opt leds_startup start 1 1 2 3 4 5 .
+}
+
+pkg_postrm_slugos-init() {
+ opt=
+ test -n "$D" && opt="-r $D"
+ for s in ${INITSCRIPTS}
+ do
+ update-rc.d $opt "$s" remove
+ done
+}
+
+FILES_${PN} = "/"
+
+# It is bad to overwrite /linuxrc as it puts the system back to
+# a flash boot (and the flash has potentially not been upgraded!)
+CONFFILES_${PN} = "/linuxrc ${sysconfdir}/default/conffiles"
diff --git a/packages/sugar/sugar-artwork/.mtn2git_empty b/packages/sugar/sugar-artwork/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/sugar/sugar-artwork/.mtn2git_empty
diff --git a/packages/sugar/sugar-artwork/icon-slicer.diff b/packages/sugar/sugar-artwork/icon-slicer.diff
new file mode 100644
index 0000000000..4eacb91251
--- /dev/null
+++ b/packages/sugar/sugar-artwork/icon-slicer.diff
@@ -0,0 +1,83 @@
+From: Marco Pesenti Gritti <marco@localhost.localdomain>
+Date: Thu, 21 Aug 2008 12:52:39 +0000 (+0200)
+Subject: User icon-slicer to generate the icons, instead of cursorthemegen.
+X-Git-Url: http://dev.laptop.org/git?p=artwork;a=commitdiff_plain;h=2954f4c6d2c178ba005025a94f3d31e54fe37103
+
+User icon-slicer to generate the icons, instead of cursorthemegen.
+---
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -14,6 +14,8 @@ AC_PROG_CC
+ AC_HEADER_STDC
+ AC_PROG_LIBTOOL
+
++AC_PATH_PROG([ICON_SLICER], [icon-slicer])
++
+ PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.0,,
+ AC_MSG_ERROR([GTK+-2.0 is required to compile redhat-artwork]))
+
+@@ -46,7 +48,6 @@ fi
+ AC_OUTPUT([
+ Makefile
+ cursor/Makefile
+-cursor/cursorthemegen/Makefile
+ cursor/sugar/Makefile
+ icons/Makefile
+ icons/scalable/Makefile
+diff --git a/cursor/Makefile.am b/cursor/Makefile.am
+index 5f0148f..4fa44db 100644
+--- a/cursor/Makefile.am
++++ b/cursor/Makefile.am
+@@ -1 +1 @@
+-SUBDIRS = cursorthemegen sugar
++SUBDIRS = sugar
+
+diff --git a/cursor/sugar/Makefile.am b/cursor/sugar/Makefile.am
+index cb9beec..9af934c 100644
+--- a/cursor/sugar/Makefile.am
++++ b/cursor/sugar/Makefile.am
+@@ -1,6 +1,3 @@
+-THEMEGEN = $(top_builddir)/cursor/cursorthemegen/cursorthemegen
+-THEME_DIR = $(top_builddir)/cursor/sugar/theme
+-
+ all-local: sugar.stamp
+
+ sugar_images = \
+@@ -12,26 +9,24 @@ sugar_images = \
+ sugar-05.png \
+ sugar-06.png \
+ sugar-07.png \
+- sugar-08.png \
+- sugar-09.png \
+- sugar-10.png \
+- sugar-11.png \
++ sugar-08.png \
++ sugar-09.png \
++ sugar-10.png \
++ sugar-11.png \
+ sugar-hotspots.png
+
+ sugar.stamp: $(sugar_images) $(THEMEGEN) sugar.cursortheme
+- rm -rf sugar && \
+- BDIR=`pwd` && cd $(srcdir) && \
+- $$BDIR/$(THEMEGEN) sugar.cursortheme $$BDIR/theme && \
+- cd $$BDIR && touch sugar.stamp
++ $(ICON_SLICER) --image-dir=$(srcdir) --output-dir=$(builddir) $(srcdir)/sugar.cursortheme
++ touch sugar.stamp
+
+ clean-local:
+- rm -rf $(THEME_DIR)
+- rm -rf $(top_builddir)/cursor/sugar/sugar.stamp
++ rm -rf cursors
++ rm sugar.stamp
+
+ install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(datadir)/icons/sugar/cursors/
+- for i in `cd $(THEME_DIR) && echo *` ; do \
+- $(INSTALL) $(THEME_DIR)/$$i $(DESTDIR)$(datadir)/icons/sugar/cursors/$$i ; \
++ for i in `cd $(srcdir)/cursors && echo *` ; do \
++ $(INSTALL) $(srcdir)/cursors/$$i $(DESTDIR)$(datadir)/icons/sugar/cursors/$$i ; \
+ done
+
+ uninstall-local:
diff --git a/packages/sugar/sugar-artwork_0.82.0.bb b/packages/sugar/sugar-artwork_0.82.0.bb
new file mode 100644
index 0000000000..4a1ab847e5
--- /dev/null
+++ b/packages/sugar/sugar-artwork_0.82.0.bb
@@ -0,0 +1,29 @@
+DESCRIPTION = "Sugar artwork"
+LICENSE = "GPLv2"
+
+PR = "r1"
+
+DEPENDS = "sugar icon-slicer-native"
+
+SRC_URI = "http://dev.laptop.org/pub/sugar/sources/sugar-artwork/${PN}-${PV}.tar.bz2 \
+ file://icon-slicer.diff;patch=1"
+
+inherit autotools distutils-base
+
+do_configure_prepend() {
+ mkdir -p ${S}/m4
+}
+
+FILES_${PN} += "${datadir}/${PN} \
+ ${datadir}/icons \
+ ${datadir}/themes \
+ ${sysconfdir} "
+
+FILES_${PN}-dbg += "${libdir}/gtk-2.0/2.*/engines/.debug"
+
+AUTOTOOLS_STAGE_PKGCONFIG = "1"
+
+do_stage() {
+ autotools_stage_all
+}
+
diff --git a/packages/tasks/task-slugos.bb b/packages/tasks/task-slugos.bb
index f8d9d3501b..186eab6d07 100644
--- a/packages/tasks/task-slugos.bb
+++ b/packages/tasks/task-slugos.bb
@@ -6,7 +6,7 @@
DESCRIPTION = "Task packages for the SlugOS distribution"
HOMEPAGE = "http://www.nslu2-linux.org"
LICENSE = "MIT"
-PR = "r18"
+PR = "r19"
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(nslu2|ixp4xx)"
ALLOW_EMPTY = "1"
@@ -23,10 +23,12 @@ SLUGOS_STANDARD_RRECOMMENDS = ""
# diff, cpio and find are required for turnup and ipkg.
SLUGOS_STANDARD_RRECOMMENDS += "\
-diffutils \
cpio \
-findutils \
"
+## SlugOS 5.0 -- uses busybox diff & find; cpio still needs -p and ability to
+## create CRC archives before we can use busybox cpio - MJW
+#diffutils \
+#findutils \
# These lines add support for formatting ext2 and ext3 file systems
# on a hard disk attached to the NSLU2. ext3 is the standard Linux
@@ -42,7 +44,8 @@ e2fsprogs-blkid \
# These lines add support for an X/Y/ZModem package called lrzsz
# (this is of use for people with modified NSLU2 hardware which
# supports a serial port.)
-SLUGOS_STANDARD_RRECOMMENDS += "lrzsz"
+## SlugOS 5.0 -- uses busybox rx command - MJW
+#SLUGOS_STANDARD_RRECOMMENDS += "lrzsz"
# Filesystem selection. Adding entries here adds the module to the
# image. The module must be built as part of nslu2-kernel (i.e. it
@@ -116,19 +119,35 @@ DISTRO_EXTRA_DEPENDS ?= ""
DEPENDS += "${DISTRO_EXTRA_DEPENDS}"
DISTRO_EXTRA_RDEPENDS ?= ""
+##RDEPENDS += "\
+## kernel ixp4xx-npe \
+## base-files base-passwd netbase \
+## busybox initscripts-slugos slugos-init \
+## update-modules sysvinit tinylogin udev \
+## module-init-tools modutils-initscripts \
+## ipkg-collateral ipkg ipkg-link \
+## libgcc \
+## beep \
+## util-linux-mount \
+## util-linux-umount \
+## util-linux-swaponoff \
+## util-linux-losetup \
+## ${SLUGOS_STANDARD_RDEPENDS} \
+## ${DISTRO_EXTRA_RDEPENDS}"
+## SlugOS 5.0 - original RDEPENDS above for reference; tinylogin and the
+## util-linux-* utilities are now replaced by busybox tools. Also, ipkg
+## is replaced by a trimmed-down version of opkg (no package signatures,
+## and it uses the busybox wget command instead of libcurl - MJW
+
RDEPENDS += "\
kernel ixp4xx-npe \
base-files base-passwd netbase \
busybox initscripts-slugos slugos-init \
- update-modules sysvinit tinylogin udev \
+ update-modules sysvinit udev \
module-init-tools modutils-initscripts \
- ipkg-collateral ipkg ipkg-link \
+ opkg-collateral opkg-nogpg-nocurl \
libgcc \
beep \
- util-linux-mount \
- util-linux-umount \
- util-linux-swaponoff \
- util-linux-losetup \
${SLUGOS_STANDARD_RDEPENDS} \
${DISTRO_EXTRA_RDEPENDS}"
diff --git a/packages/u-boot/u-boot-git/akita/akita-standard-partitioning.patch b/packages/u-boot/u-boot-git/akita/akita-standard-partitioning.patch
deleted file mode 100644
index 9d65de8daa..0000000000
--- a/packages/u-boot/u-boot-git/akita/akita-standard-partitioning.patch
+++ /dev/null
@@ -1,112 +0,0 @@
---- git/include/configs/akita.h 2007-12-26 17:57:00.000000000 +0000
-+++ git/include/configs/akita.h 2007-12-26 18:07:47.000000000 +0000
-@@ -81,35 +81,35 @@
- "if testkey 101 ; " \
- "then " \
- "nand read.logical 0xa1000000 0x00060000 0x00540000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192 mtdparts=sharpsl-nand-0:7168k(smf),59392k(root),-(home); " \
- "bootm; " \
- "fi; " \
- "if testkey 2 ; " \
- "then " \
- "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 fbcon=rotate:1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait fbcon=rotate:1; " \
- "bootm; " \
- "fi; " \
- "if testkey 18 ; " \
- "then " \
- "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1 fbcon=rotate:1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1 rootwait fbcon=rotate:1; " \
- "bootm; " \
- "fi; " \
- "if testkey 3 ; " \
- "then " \
- "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1 fbcon=rotate:1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1 rootwait fbcon=rotate:1; " \
- "bootm; " \
- "fi; " \
- "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2 fbcon=rotate:1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2 fbcon=rotate:1 mtdparts=sharpsl-nand-0:7168k(smf),59392k(root),-(home); " \
- "bootm; "
- #else
- #define CONFIG_BOOTCOMMAND "" // "run boot_flash"
- #endif
-
--#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192"
-+#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192 mtdparts=sharpsl-nand-0:7168k(smf),59392k(root),-(home)"
- #define CONFIG_SETUP_MEMORY_TAGS 1
- #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
- #define CONFIG_INITRD_TAG 1
-@@ -302,9 +302,9 @@
- /* Note: fake mtd_id used, no linux mtd map file */
-
- #define CONFIG_JFFS2_CMDLINE
--#define MTDIDS_DEFAULT "nand0=laze-0"
-+#define MTDIDS_DEFAULT "nand0=sharpsl-nand"
- //#define MTDPARTS_DEFAULT "mtdparts=laze-0:256k(uboot),128k(env),-(jffs2)"
--#define MTDPARTS_DEFAULT "mtdparts=laze-0:7168k(Logical),-(JFFS2)"
-+#define MTDPARTS_DEFAULT "mtdparts=sharpsl-nand-0:7168k(smf),59392k(root),-(home)"
-
- /*
- * SHARP SL NAND logical partition
---- git/include/configs/akita.h 2007-12-26 17:57:00.000000000 +0000
-+++ git/include/configs/akita.h 2007-12-26 18:07:47.000000000 +0000
-@@ -81,35 +81,35 @@
- "if testkey 101 ; " \
- "then " \
- "nand read.logical 0xa1000000 0x00060000 0x00540000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192 mtdparts=sharpsl-nand-0:7168k(smf),CUSTOM_ROOTFS_SIZE(root),-(home); " \
- "bootm; " \
- "fi; " \
- "if testkey 2 ; " \
- "then " \
- "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 fbcon=rotate:1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait fbcon=rotate:1; " \
- "bootm; " \
- "fi; " \
- "if testkey 18 ; " \
- "then " \
- "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1 fbcon=rotate:1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1 rootwait fbcon=rotate:1; " \
- "bootm; " \
- "fi; " \
- "if testkey 3 ; " \
- "then " \
- "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1 fbcon=rotate:1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1 rootwait fbcon=rotate:1; " \
- "bootm; " \
- "fi; " \
- "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2 fbcon=rotate:1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2 fbcon=rotate:1 mtdparts=sharpsl-nand-0:7168k(smf),CUSTOM_ROOTFS_SIZE(root),-(home); " \
- "bootm; "
- #else
- #define CONFIG_BOOTCOMMAND "" // "run boot_flash"
- #endif
-
--#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192"
-+#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192 mtdparts=sharpsl-nand-0:7168k(smf),CUSTOM_ROOTFS_SIZE(root),-(home)"
- #define CONFIG_SETUP_MEMORY_TAGS 1
- #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
- #define CONFIG_INITRD_TAG 1
-@@ -302,9 +302,9 @@
- /* Note: fake mtd_id used, no linux mtd map file */
-
- #define CONFIG_JFFS2_CMDLINE
--#define MTDIDS_DEFAULT "nand0=laze-0"
-+#define MTDIDS_DEFAULT "nand0=sharpsl-nand"
- //#define MTDPARTS_DEFAULT "mtdparts=laze-0:256k(uboot),128k(env),-(jffs2)"
--#define MTDPARTS_DEFAULT "mtdparts=laze-0:7168k(Logical),-(JFFS2)"
-+#define MTDPARTS_DEFAULT "mtdparts=sharpsl-nand-0:7168k(smf),CUSTOM_ROOTFS_SIZE(root),-(home)"
-
- /*
- * SHARP SL NAND logical partition
diff --git a/packages/u-boot/u-boot-git/c7x0/corgi-standard-partitioning.patch b/packages/u-boot/u-boot-git/c7x0/corgi-standard-partitioning.patch
deleted file mode 100644
index 205f05b53e..0000000000
--- a/packages/u-boot/u-boot-git/c7x0/corgi-standard-partitioning.patch
+++ /dev/null
@@ -1,112 +0,0 @@
---- git/include/configs/corgi.h 2007-12-26 17:57:00.000000000 +0000
-+++ git/include/configs/corgi.h 2007-12-26 18:07:47.000000000 +0000
-@@ -81,35 +81,35 @@
- "if testkey 101 ; " \
- "then " \
- "nand read.logical 0xa0800000 0x00060000 0x00540000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192 mtdparts=sharpsl-nand:7168k(smf),54272k(root),-(home); " \
- "bootm; " \
- "fi; " \
- "if testkey 2 ; " \
- "then " \
- "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait; " \
- "bootm; " \
- "fi; " \
- "if testkey 18 ; " \
- "then " \
- "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1 rootwait; " \
- "bootm; " \
- "fi; " \
- "if testkey 3 ; " \
- "then " \
- "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1 rootwait; " \
- "bootm; " \
- "fi; " \
- "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=sharpsl-nand:7168k(smf),54272k(root),-(home); " \
- "bootm; "
- #else
- #define CONFIG_BOOTCOMMAND "" // "run boot_flash"
- #endif
-
--#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192"
-+#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192 mtdparts=sharpsl-nand:7168k(smf),54272k(root),-(home)"
- #define CONFIG_SETUP_MEMORY_TAGS 1
- #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
- #define CONFIG_INITRD_TAG 1
-@@ -304,9 +304,9 @@
- /* Note: fake mtd_id used, no linux mtd map file */
-
- #define CONFIG_JFFS2_CMDLINE
--#define MTDIDS_DEFAULT "nand0=laze-0"
-+#define MTDIDS_DEFAULT "nand0=sharpsl-nand"
- //#define MTDPARTS_DEFAULT "mtdparts=laze-0:256k(uboot),128k(env),-(jffs2)"
--#define MTDPARTS_DEFAULT "mtdparts=laze-0:7168k(Logical),-(JFFS2)"
-+#define MTDPARTS_DEFAULT "mtdparts=sharpsl-nand:7168k(smf),54272k(root),-(home)"
-
- /*
- * SHARP SL NAND logical partition
---- git/include/configs/corgi.h 2007-12-26 17:57:00.000000000 +0000
-+++ git/include/configs/corgi.h 2007-12-26 18:07:47.000000000 +0000
-@@ -81,35 +81,35 @@
- "if testkey 101 ; " \
- "then " \
- "nand read.logical 0xa0800000 0x00060000 0x00540000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192 mtdparts=sharpsl-nand:7168k(smf),CUSTOM_ROOTFS_SIZE(root),-(home); " \
- "bootm; " \
- "fi; " \
- "if testkey 2 ; " \
- "then " \
- "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait; " \
- "bootm; " \
- "fi; " \
- "if testkey 18 ; " \
- "then " \
- "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1 rootwait; " \
- "bootm; " \
- "fi; " \
- "if testkey 3 ; " \
- "then " \
- "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1 rootwait; " \
- "bootm; " \
- "fi; " \
- "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-- "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=sharpsl-nand:7168k(smf),CUSTOM_ROOTFS_SIZE(root),-(home); " \
- "bootm; "
- #else
- #define CONFIG_BOOTCOMMAND "" // "run boot_flash"
- #endif
-
--#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192"
-+#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192 mtdparts=sharpsl-nand:7168k(smf),CUSTOM_ROOTFS_SIZE(root),-(home)"
- #define CONFIG_SETUP_MEMORY_TAGS 1
- #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
- #define CONFIG_INITRD_TAG 1
-@@ -304,9 +304,9 @@
- /* Note: fake mtd_id used, no linux mtd map file */
-
- #define CONFIG_JFFS2_CMDLINE
--#define MTDIDS_DEFAULT "nand0=laze-0"
-+#define MTDIDS_DEFAULT "nand0=sharpsl-nand"
- //#define MTDPARTS_DEFAULT "mtdparts=laze-0:256k(uboot),128k(env),-(jffs2)"
--#define MTDPARTS_DEFAULT "mtdparts=laze-0:7168k(Logical),-(JFFS2)"
-+#define MTDPARTS_DEFAULT "mtdparts=sharpsl-nand:7168k(smf),CUSTOM_ROOTFS_SIZE(root),-(home)"
-
- /*
- * SHARP SL NAND logical partition
diff --git a/packages/u-boot/u-boot-git/pdaXrom-u-boot.patch b/packages/u-boot/u-boot-git/pdaXrom-u-boot.patch
deleted file mode 100644
index 9ceadde6dc..0000000000
--- a/packages/u-boot/u-boot-git/pdaXrom-u-boot.patch
+++ /dev/null
@@ -1,4934 +0,0 @@
-diff -Nur u-boot-2006-04-18-1106/CREDITS u-boot-2006-04-18-1106-new/CREDITS
---- u-boot-2006-04-18-1106/CREDITS 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/CREDITS 2006-07-05 11:19:44.000000000 +0000
-@@ -93,6 +93,12 @@
- E: jonathan.debruyne@siemens.atea.be
- D: Port to Siemens IAD210 board
-
-+N: Alexander Chukov
-+E: sash@pdaXrom.org
-+D: initial support for Sharp Zaurus SL-C1000/3100
-+D: initial support for Sharp Zaurus SL-C7x0/C860
-+W: http://www.pdaXrom.org
-+
- N: Ken Chou
- E: kchou@ieee.org
- D: Support for A3000 SBC board
-diff -Nur u-boot-2006-04-18-1106/MAINTAINERS u-boot-2006-04-18-1106-new/MAINTAINERS
---- u-boot-2006-04-18-1106/MAINTAINERS 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/MAINTAINERS 2006-07-05 11:19:44.000000000 +0000
-@@ -379,6 +379,11 @@
-
- AT91RM9200DK at91rm9200
-
-+Alexander Chukov <sash@pdaXrom.org>
-+
-+ akita xscale
-+ corgi xscale
-+
- George G. Davis <gdavis@mvista.com>
-
- assabet SA1100
-diff -Nur u-boot-2006-04-18-1106/MAKEALL u-boot-2006-04-18-1106-new/MAKEALL
---- u-boot-2006-04-18-1106/MAKEALL 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/MAKEALL 2006-07-05 11:19:44.000000000 +0000
-@@ -206,7 +206,7 @@
- adsvix cerf250 cradle csb226 \
- delta innokom lubbock pxa255_idp \
- wepep250 xaeniax xm250 xsengine \
-- zylonite \
-+ zylonite akita corgi \
- "
-
- LIST_ixp="ixdp425"
-diff -Nur u-boot-2006-04-18-1106/Makefile u-boot-2006-04-18-1106-new/Makefile
---- u-boot-2006-04-18-1106/Makefile 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/Makefile 2006-07-05 11:19:44.000000000 +0000
-@@ -61,7 +61,7 @@
- CROSS_COMPILE = powerpc-linux-
- endif
- ifeq ($(ARCH),arm)
--CROSS_COMPILE = arm-linux-
-+CROSS_COMPILE = armv5tel-linux-
- endif
- ifeq ($(ARCH),i386)
- ifeq ($(HOSTARCH),i386)
-@@ -1709,6 +1709,12 @@
- zylonite_config :
- @./mkconfig $(@:_config=) arm pxa zylonite
-
-+akita_config : unconfig
-+ @./mkconfig $(@:_config=) arm pxa akita
-+
-+corgi_config : unconfig
-+ @./mkconfig $(@:_config=) arm pxa corgi
-+
- #########################################################################
- ## ARM1136 Systems
- #########################################################################
-diff -Nur u-boot-2006-04-18-1106/README u-boot-2006-04-18-1106-new/README
---- u-boot-2006-04-18-1106/README 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/README 2006-07-05 11:19:44.000000000 +0000
-@@ -311,7 +311,8 @@
- CONFIG_KB9202, CONFIG_LART, CONFIG_LPD7A400,
- CONFIG_LUBBOCK, CONFIG_OSK_OMAP5912, CONFIG_OMAP2420H4,
- CONFIG_SHANNON, CONFIG_P2_OMAP730, CONFIG_SMDK2400,
-- CONFIG_SMDK2410, CONFIG_TRAB, CONFIG_VCMA9
-+ CONFIG_SMDK2410, CONFIG_TRAB, CONFIG_VCMA9,
-+ CONFIG_AKITA, CONFIG_CORGI
-
- MicroBlaze based boards:
- ------------------------
-diff -Nur u-boot-2006-04-18-1106/board/akita/Makefile u-boot-2006-04-18-1106-new/board/akita/Makefile
---- u-boot-2006-04-18-1106/board/akita/Makefile 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/Makefile 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,51 @@
-+#
-+# board/akita/Makefile
-+#
-+# (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+#
-+# (C) Copyright 2000
-+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-+#
-+# See file CREDITS for list of people who contributed to this
-+# project.
-+#
-+# This program is free software; you can redistribute it and/or
-+# modify it under the terms of the GNU General Public License as
-+# published by the Free Software Foundation; either version 2 of
-+# the License, or (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+# MA 02111-1307 USA
-+#
-+
-+include $(TOPDIR)/config.mk
-+
-+LIB = lib$(BOARD).a
-+
-+OBJS := akita.o nand.o kbd.o
-+SOBJS := lowlevel_init.o
-+
-+$(LIB): $(OBJS) $(SOBJS)
-+ $(AR) crv $@ $(OBJS) $(SOBJS)
-+
-+clean:
-+ rm -f $(SOBJS) $(OBJS)
-+
-+distclean: clean
-+ rm -f $(LIB) core *.bak .depend
-+
-+#########################################################################
-+
-+.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
-+ $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
-+
-+-include .depend
-+
-+#########################################################################
-diff -Nur u-boot-2006-04-18-1106/board/akita/akita.c u-boot-2006-04-18-1106-new/board/akita/akita.c
---- u-boot-2006-04-18-1106/board/akita/akita.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/akita.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,89 @@
-+/*
-+ * board/akita/akita.c
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-Cxx00.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from adsvix board configuration:
-+ * (C) Copyright 2004
-+ * Robert Whaley, Applied Data Systems, Inc. rwhaley@applieddata.net
-+ * (C) Copyright 2002
-+ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
-+ * (C) Copyright 2002
-+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-+ * Marius Groeger <mgroeger@sysgo.de>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+
-+void set_turbo_mode(void);
-+
-+/* ------------------------------------------------------------------------- */
-+
-+/*
-+ * Miscellaneous platform dependent initialisations
-+ */
-+
-+int board_init (void)
-+{
-+ DECLARE_GLOBAL_DATA_PTR;
-+
-+ /* memory and cpu-speed are setup before relocation */
-+ /* so we do _nothing_ here */
-+
-+ /* arch number of Sharp Zaurus Akita : MACH_TYPE_AKITA */
-+ gd->bd->bi_arch_number = 744;
-+
-+ /* adress of boot parameters */
-+ gd->bd->bi_boot_params = 0xa0000100;
-+
-+ /* set cpu turbo mode */
-+ set_turbo_mode();
-+
-+ spitzkbd_init();
-+
-+ return 0;
-+}
-+
-+int board_late_init(void)
-+{
-+ setenv("stdout", "serial");
-+ setenv("stderr", "serial");
-+ return 0;
-+}
-+
-+
-+int dram_init (void)
-+{
-+ DECLARE_GLOBAL_DATA_PTR;
-+
-+ gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-+ gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-+ gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-+ gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
-+ gd->bd->bi_dram[2].start = PHYS_SDRAM_3;
-+ gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE;
-+ gd->bd->bi_dram[3].start = PHYS_SDRAM_4;
-+ gd->bd->bi_dram[3].size = PHYS_SDRAM_4_SIZE;
-+
-+ return 0;
-+}
-diff -Nur u-boot-2006-04-18-1106/board/akita/config.mk u-boot-2006-04-18-1106-new/board/akita/config.mk
---- u-boot-2006-04-18-1106/board/akita/config.mk 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/config.mk 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1 @@
-+TEXT_BASE = 0xa3000000
-diff -Nur u-boot-2006-04-18-1106/board/akita/kbd.c u-boot-2006-04-18-1106-new/board/akita/kbd.c
---- u-boot-2006-04-18-1106/board/akita/kbd.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/kbd.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,261 @@
-+/*
-+ * board/akita/kbd.c
-+ *
-+ * Keyboard driver for the Sharp Zaurus SL-Cxx00.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from:
-+ *
-+ * linux/drivers/input/keyboard/spitzkbd.c
-+ *
-+ * Keyboard driver for Sharp Spitz, Borzoi and Akita (SL-Cxx00 series)
-+ *
-+ * Copyright (C) 2005 Richard Purdie
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+#include <command.h>
-+#include <config.h>
-+#include <version.h>
-+#include <asm/arch/pxa-regs.h>
-+
-+#define GPIO_DFLT_LOW 0x400
-+#define GPIO_DFLT_HIGH 0x800
-+
-+void pxa_gpio_mode(int gpio_mode)
-+{
-+ int gpio = gpio_mode & GPIO_MD_MASK_NR;
-+ int fn = (gpio_mode & GPIO_MD_MASK_FN) >> 8;
-+ int gafr;
-+
-+ if (gpio_mode & GPIO_DFLT_LOW)
-+ GPCR(gpio) = GPIO_bit(gpio);
-+ else if (gpio_mode & GPIO_DFLT_HIGH)
-+ GPSR(gpio) = GPIO_bit(gpio);
-+ if (gpio_mode & GPIO_MD_MASK_DIR)
-+ GPDR(gpio) |= GPIO_bit(gpio);
-+ else
-+ GPDR(gpio) &= ~GPIO_bit(gpio);
-+ gafr = GAFR(gpio) & ~(0x3 << (((gpio) & 0xf)*2));
-+ GAFR(gpio) = gafr | (fn << (((gpio) & 0xf)*2));
-+}
-+
-+#define SPITZ_KEY_STROBE_NUM (11)
-+#define SPITZ_KEY_SENSE_NUM (7)
-+
-+#define SPITZ_GPIO_G0_STROBE_BIT 0x0f800000
-+#define SPITZ_GPIO_G1_STROBE_BIT 0x00100000
-+#define SPITZ_GPIO_G2_STROBE_BIT 0x01000000
-+#define SPITZ_GPIO_G3_STROBE_BIT 0x00041880
-+#define SPITZ_GPIO_G0_SENSE_BIT 0x00021000
-+#define SPITZ_GPIO_G1_SENSE_BIT 0x000000d4
-+#define SPITZ_GPIO_G2_SENSE_BIT 0x08000000
-+#define SPITZ_GPIO_G3_SENSE_BIT 0x00000000
-+
-+#define SPITZ_GPIO_KEY_STROBE0 88
-+#define SPITZ_GPIO_KEY_STROBE1 23
-+#define SPITZ_GPIO_KEY_STROBE2 24
-+#define SPITZ_GPIO_KEY_STROBE3 25
-+#define SPITZ_GPIO_KEY_STROBE4 26
-+#define SPITZ_GPIO_KEY_STROBE5 27
-+#define SPITZ_GPIO_KEY_STROBE6 52
-+#define SPITZ_GPIO_KEY_STROBE7 103
-+#define SPITZ_GPIO_KEY_STROBE8 107
-+#define SPITZ_GPIO_KEY_STROBE9 108
-+#define SPITZ_GPIO_KEY_STROBE10 114
-+
-+#define SPITZ_GPIO_KEY_SENSE0 12
-+#define SPITZ_GPIO_KEY_SENSE1 17
-+#define SPITZ_GPIO_KEY_SENSE2 91
-+#define SPITZ_GPIO_KEY_SENSE3 34
-+#define SPITZ_GPIO_KEY_SENSE4 36
-+#define SPITZ_GPIO_KEY_SENSE5 38
-+#define SPITZ_GPIO_KEY_SENSE6 39
-+
-+#define SPITZ_GPIO_ON_KEY (95)
-+
-+#define KB_ROWS 7
-+#define KB_COLS 11
-+#define KB_ROWMASK(r) (1 << (r))
-+#define SCANCODE(r,c) (((r)<<4) + (c) + 1)
-+#define NR_SCANCODES ((KB_ROWS<<4) + 1)
-+
-+#define SCAN_INTERVAL (50) /* ms */
-+#define HINGE_SCAN_INTERVAL (150) /* ms */
-+
-+#define KB_DISCHARGE_DELAY 10
-+#define KB_ACTIVATE_DELAY 10
-+
-+static int spitz_strobes[] = {
-+ SPITZ_GPIO_KEY_STROBE0,
-+ SPITZ_GPIO_KEY_STROBE1,
-+ SPITZ_GPIO_KEY_STROBE2,
-+ SPITZ_GPIO_KEY_STROBE3,
-+ SPITZ_GPIO_KEY_STROBE4,
-+ SPITZ_GPIO_KEY_STROBE5,
-+ SPITZ_GPIO_KEY_STROBE6,
-+ SPITZ_GPIO_KEY_STROBE7,
-+ SPITZ_GPIO_KEY_STROBE8,
-+ SPITZ_GPIO_KEY_STROBE9,
-+ SPITZ_GPIO_KEY_STROBE10,
-+};
-+
-+static int spitz_senses[] = {
-+ SPITZ_GPIO_KEY_SENSE0,
-+ SPITZ_GPIO_KEY_SENSE1,
-+ SPITZ_GPIO_KEY_SENSE2,
-+ SPITZ_GPIO_KEY_SENSE3,
-+ SPITZ_GPIO_KEY_SENSE4,
-+ SPITZ_GPIO_KEY_SENSE5,
-+ SPITZ_GPIO_KEY_SENSE6,
-+};
-+
-+static inline void spitzkbd_discharge_all(void)
-+{
-+ /* STROBE All HiZ */
-+ GPCR0 = SPITZ_GPIO_G0_STROBE_BIT;
-+ GPDR0 &= ~SPITZ_GPIO_G0_STROBE_BIT;
-+ GPCR1 = SPITZ_GPIO_G1_STROBE_BIT;
-+ GPDR1 &= ~SPITZ_GPIO_G1_STROBE_BIT;
-+ GPCR2 = SPITZ_GPIO_G2_STROBE_BIT;
-+ GPDR2 &= ~SPITZ_GPIO_G2_STROBE_BIT;
-+ GPCR3 = SPITZ_GPIO_G3_STROBE_BIT;
-+ GPDR3 &= ~SPITZ_GPIO_G3_STROBE_BIT;
-+}
-+
-+static inline void spitzkbd_activate_all(void)
-+{
-+ /* STROBE ALL -> High */
-+ GPSR0 = SPITZ_GPIO_G0_STROBE_BIT;
-+ GPDR0 |= SPITZ_GPIO_G0_STROBE_BIT;
-+ GPSR1 = SPITZ_GPIO_G1_STROBE_BIT;
-+ GPDR1 |= SPITZ_GPIO_G1_STROBE_BIT;
-+ GPSR2 = SPITZ_GPIO_G2_STROBE_BIT;
-+ GPDR2 |= SPITZ_GPIO_G2_STROBE_BIT;
-+ GPSR3 = SPITZ_GPIO_G3_STROBE_BIT;
-+ GPDR3 |= SPITZ_GPIO_G3_STROBE_BIT;
-+
-+ udelay(KB_DISCHARGE_DELAY);
-+}
-+
-+static inline void spitzkbd_activate_col(int col)
-+{
-+ int gpio = spitz_strobes[col];
-+ GPDR0 &= ~SPITZ_GPIO_G0_STROBE_BIT;
-+ GPDR1 &= ~SPITZ_GPIO_G1_STROBE_BIT;
-+ GPDR2 &= ~SPITZ_GPIO_G2_STROBE_BIT;
-+ GPDR3 &= ~SPITZ_GPIO_G3_STROBE_BIT;
-+ GPSR(gpio) = GPIO_bit(gpio);
-+ GPDR(gpio) |= GPIO_bit(gpio);
-+}
-+
-+static inline void spitzkbd_reset_col(int col)
-+{
-+ int gpio = spitz_strobes[col];
-+ GPDR0 &= ~SPITZ_GPIO_G0_STROBE_BIT;
-+ GPDR1 &= ~SPITZ_GPIO_G1_STROBE_BIT;
-+ GPDR2 &= ~SPITZ_GPIO_G2_STROBE_BIT;
-+ GPDR3 &= ~SPITZ_GPIO_G3_STROBE_BIT;
-+ GPCR(gpio) = GPIO_bit(gpio);
-+ GPDR(gpio) |= GPIO_bit(gpio);
-+}
-+
-+static inline int spitzkbd_get_row_status(int col)
-+{
-+ return ((GPLR0 >> 12) & 0x01) | ((GPLR0 >> 16) & 0x02)
-+ | ((GPLR2 >> 25) & 0x04) | ((GPLR1 << 1) & 0x08)
-+ | ((GPLR1 >> 0) & 0x10) | ((GPLR1 >> 1) & 0x60);
-+}
-+
-+static int spitzkbd_scankeyboard(void)
-+{
-+ unsigned int row, col, rowd;
-+ unsigned int num_pressed, pwrkey = ((GPLR(SPITZ_GPIO_ON_KEY) & GPIO_bit(SPITZ_GPIO_ON_KEY)) != 0);
-+ int ret = -1;
-+
-+ num_pressed = 0;
-+ for (col = 0; col < KB_COLS; col++) {
-+ spitzkbd_discharge_all();
-+ udelay(KB_DISCHARGE_DELAY);
-+
-+ spitzkbd_activate_col(col);
-+ udelay(KB_ACTIVATE_DELAY);
-+
-+ rowd = spitzkbd_get_row_status(col);
-+ for (row = 0; row < KB_ROWS; row++) {
-+ unsigned int scancode, pressed;
-+
-+ scancode = SCANCODE(row, col);
-+ pressed = rowd & KB_ROWMASK(row);
-+
-+ if (pressed)
-+ ret = scancode;
-+ }
-+ spitzkbd_reset_col(col);
-+ }
-+
-+ spitzkbd_activate_all();
-+
-+ if (pwrkey)
-+ return -2;
-+
-+ return ret;
-+}
-+
-+void spitzkbd_init(void)
-+{
-+ int i;
-+
-+ /* Setup sense interrupts - RisingEdge Detect, sense lines as inputs */
-+ for (i = 0; i < SPITZ_KEY_SENSE_NUM; i++)
-+ pxa_gpio_mode(spitz_senses[i] | GPIO_IN);
-+
-+ /* Set Strobe lines as outputs - set high */
-+ for (i = 0; i < SPITZ_KEY_STROBE_NUM; i++)
-+ pxa_gpio_mode(spitz_strobes[i] | GPIO_OUT | GPIO_DFLT_HIGH);
-+
-+ pxa_gpio_mode(SPITZ_GPIO_ON_KEY | GPIO_IN);
-+}
-+
-+int do_testkey(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
-+{
-+ int scan;
-+
-+ if (argc < 2)
-+ return 1;
-+
-+ scan = spitzkbd_scankeyboard();
-+
-+
-+// if (scan >= 0)
-+// printf("Scan = %d\n", scan);
-+// else
-+// printf("Nothing!\n");
-+
-+ return !(simple_strtol(argv[1], NULL, 10) == scan);
-+}
-+
-+U_BOOT_CMD(
-+ testkey, 2, 1, do_testkey,
-+ "testkey - compare pressed key with arg\n",
-+ "<key scancode>"
-+);
-diff -Nur u-boot-2006-04-18-1106/board/akita/lowlevel_init.S u-boot-2006-04-18-1106-new/board/akita/lowlevel_init.S
---- u-boot-2006-04-18-1106/board/akita/lowlevel_init.S 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/lowlevel_init.S 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,135 @@
-+/*
-+ * board/akita/lowlevel_init.S
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-Cxx00.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * This was originally from the Lubbock u-boot port and from BLOB with cleanup
-+ *
-+ * NOTE: I haven't clean this up considerably, just enough to get it
-+ * running. See hal_platform_setup.h for the source. See
-+ * board/cradle/lowlevel_init.S for another PXA250 setup that is
-+ * much cleaner.
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <config.h>
-+#include <version.h>
-+#include <asm/arch/pxa-regs.h>
-+
-+/* wait for coprocessor write complete */
-+ .macro CPWAIT reg
-+ mrc p15,0,\reg,c2,c0,0
-+ mov \reg,\reg
-+ sub pc,pc,#4
-+ .endm
-+
-+/*********** Write out to HEX 7 segment leds *********/
-+
-+#undef DEBUG_HEXLOG
-+
-+#ifdef DEBUG_HEXLOG
-+#define LEDCTL 0x08000040
-+#define LEDDAT1 0x08000010
-+#define LEDDAT2 0x08000014
-+
-+.macro wait, count
-+ mov r10, \count
-+0:
-+ subs r10, r10, #1
-+ bne 0b
-+.endm
-+
-+.macro hexlog_init
-+ ldr r11, =LEDCTL
-+ mov r10, #0xff
-+ str r10, [r11]
-+ ldr r11, =LEDDAT2
-+ mov r10, #0xFFFFFFFF
-+ str r10, [r11]
-+ ldr r11, =LEDDAT1
-+ mov r10, #0x0
-+ str r10, [r11]
-+.endm
-+
-+.macro hexlog, val
-+ ldr r11, =LEDCTL
-+ mov r10, #0xff
-+ str r10, [r11]
-+ ldr r11, =LEDDAT2
-+ mov r10, #0xFFFFFFFF
-+ str r10, [r11]
-+
-+ ldr r11, =LEDDAT1
-+ mov r10, \val
-+ str r10, [r11]
-+
-+ wait #0x400000
-+.endm
-+
-+#else
-+
-+.macro hexlog_init
-+ nop
-+.endm
-+
-+.macro hexlog, val
-+ nop
-+.endm
-+
-+#endif
-+
-+/***********************************/
-+
-+/*
-+ * Memory setup
-+ */
-+
-+.globl lowlevel_init
-+lowlevel_init:
-+
-+ mov pc, lr
-+
-+.globl set_turbo_mode
-+
-+set_turbo_mode:
-+ /* Turn on turbo mode */
-+ mrc p14, 0, r2, c6, c0, 0
-+ orr r2, r2, #0xB /* Turbo, Fast-Bus, Freq change**/
-+ mcr p14, 0, r2, c6, c0, 0
-+
-+ /* Setup vectors */
-+ ldr r0, =TEXT_BASE
-+ ldr r1, =TEXT_BASE+0x40
-+ ldr r2, =0x0
-+1:
-+ ldr r3, [r0]
-+ str r3, [r2]
-+ add r0, r0, #4
-+ add r2, r2, #4
-+ cmp r0, r1
-+ bne 1b
-+
-+ ldr r0, =0x0
-+ ldr r1, [r0, #4]
-+ str r1, [r0]
-+
-+ mov pc, lr
-diff -Nur u-boot-2006-04-18-1106/board/akita/nand.c u-boot-2006-04-18-1106-new/board/akita/nand.c
---- u-boot-2006-04-18-1106/board/akita/nand.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/nand.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,169 @@
-+/*
-+ * board/akita/nand.c
-+ *
-+ * NAND driver for the Sharp Zaurus SL-Cxx00.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from mtd nand driver:
-+ *
-+ * drivers/mtd/nand/sharpsl.c
-+ *
-+ * Copyright (C) 2004 Richard Purdie
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_NAND)
-+
-+#include <nand.h>
-+#include <linux/mtd/nand_ecc.h>
-+
-+static int sharpsl_io_base = CFG_NAND_BASE;
-+
-+/* register offset */
-+#define ECCLPLB sharpsl_io_base+0x00 /* line parity 7 - 0 bit */
-+#define ECCLPUB sharpsl_io_base+0x04 /* line parity 15 - 8 bit */
-+#define ECCCP sharpsl_io_base+0x08 /* column parity 5 - 0 bit */
-+#define ECCCNTR sharpsl_io_base+0x0C /* ECC byte counter */
-+#define ECCCLRR sharpsl_io_base+0x10 /* cleare ECC */
-+#define FLASHIO sharpsl_io_base+0x14 /* Flash I/O */
-+#define FLASHCTL sharpsl_io_base+0x18 /* Flash Control */
-+
-+/* Flash control bit */
-+#define FLRYBY (1 << 5)
-+#define FLCE1 (1 << 4)
-+#define FLWP (1 << 3)
-+#define FLALE (1 << 2)
-+#define FLCLE (1 << 1)
-+#define FLCE0 (1 << 0)
-+
-+#define readb(address) *((volatile unsigned char *)(address))
-+#define writeb(v, address) *((volatile unsigned char *)(address))=v
-+
-+/*
-+ * hardware specific access to control-lines
-+ */
-+static void
-+sharpsl_nand_hwcontrol(struct mtd_info* mtd, int cmd)
-+{
-+ switch (cmd) {
-+ case NAND_CTL_SETCLE:
-+ writeb(readb(FLASHCTL) | FLCLE, FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRCLE:
-+ writeb(readb(FLASHCTL) & ~FLCLE, FLASHCTL);
-+ break;
-+
-+ case NAND_CTL_SETALE:
-+ writeb(readb(FLASHCTL) | FLALE, FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRALE:
-+ writeb(readb(FLASHCTL) & ~FLALE, FLASHCTL);
-+ break;
-+
-+ case NAND_CTL_SETNCE:
-+ writeb(readb(FLASHCTL) & ~(FLCE0|FLCE1), FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRNCE:
-+ writeb(readb(FLASHCTL) | (FLCE0|FLCE1), FLASHCTL);
-+ break;
-+ }
-+}
-+
-+static int
-+sharpsl_nand_dev_ready(struct mtd_info* mtd)
-+{
-+ return !((readb(FLASHCTL) & FLRYBY) == 0);
-+}
-+
-+static void
-+sharpsl_nand_enable_hwecc(struct mtd_info* mtd, int mode)
-+{
-+ writeb(0 ,ECCCLRR);
-+}
-+
-+static int
-+sharpsl_nand_calculate_ecc(struct mtd_info* mtd, const u_char* dat,
-+ u_char* ecc_code)
-+{
-+ ecc_code[0] = ~readb(ECCLPUB);
-+ ecc_code[1] = ~readb(ECCLPLB);
-+ ecc_code[2] = (~readb(ECCCP) << 2) | 0x03;
-+ return readb(ECCCNTR) != 0;
-+}
-+
-+static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
-+
-+static struct nand_bbt_descr sharpsl_akita_bbt = {
-+ .options = 0,
-+ .offs = 4,
-+ .len = 1,
-+ .pattern = scan_ff_pattern
-+};
-+
-+static struct nand_oobinfo akita_oobinfo = {
-+ .useecc = MTD_NANDECC_AUTOPLACE,
-+ .eccbytes = 24,
-+ .eccpos = {
-+ 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11,
-+ 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23,
-+ 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37},
-+ .oobfree = { {0x08, 0x09} }
-+};
-+
-+/*
-+ * Board-specific NAND initialization. The following members of the
-+ * argument are board-specific (per include/linux/mtd/nand.h):
-+ * - IO_ADDR_R?: address to read the 8 I/O lines of the flash device
-+ * - IO_ADDR_W?: address to write the 8 I/O lines of the flash device
-+ * - hwcontrol: hardwarespecific function for accesing control-lines
-+ * - dev_ready: hardwarespecific function for accesing device ready/busy line
-+ * - enable_hwecc?: function to enable (reset) hardware ecc generator. Must
-+ * only be provided if a hardware ECC is available
-+ * - eccmode: mode of ecc, see defines
-+ * - chip_delay: chip dependent delay for transfering data from array to
-+ * read regs (tR)
-+ * - options: various chip options. They can partly be set to inform
-+ * nand_scan about special functionality. See the defines for further
-+ * explanation
-+ * Members with a "?" were not set in the merged testing-NAND branch,
-+ * so they are not set here either.
-+ */
-+void board_nand_init(struct nand_chip *nand)
-+{
-+ writeb(readb(FLASHCTL) | FLWP, FLASHCTL);
-+
-+ nand->IO_ADDR_R = FLASHIO;
-+ nand->IO_ADDR_W = FLASHIO;
-+ nand->hwcontrol = sharpsl_nand_hwcontrol;
-+ nand->dev_ready = sharpsl_nand_dev_ready;
-+ nand->eccmode = NAND_ECC_HW3_256;
-+ nand->chip_delay = 15;
-+ nand->options = NAND_SAMSUNG_LP_OPTIONS;
-+ nand->badblock_pattern = &sharpsl_akita_bbt;
-+ nand->autooob = &akita_oobinfo;
-+ nand->enable_hwecc = sharpsl_nand_enable_hwecc;
-+ nand->calculate_ecc = sharpsl_nand_calculate_ecc;
-+ nand->correct_data = nand_correct_data;
-+}
-+#endif /* (CONFIG_COMMANDS & CFG_CMD_NAND) */
-diff -Nur u-boot-2006-04-18-1106/board/akita/u-boot.lds u-boot-2006-04-18-1106-new/board/akita/u-boot.lds
---- u-boot-2006-04-18-1106/board/akita/u-boot.lds 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/u-boot.lds 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,56 @@
-+/*
-+ * (C) Copyright 2000
-+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
-+OUTPUT_ARCH(arm)
-+ENTRY(_start)
-+SECTIONS
-+{
-+ . = 0x00000000;
-+
-+ . = ALIGN(4);
-+ .text :
-+ {
-+ cpu/pxa/start.o (.text)
-+ *(.text)
-+ }
-+
-+ . = ALIGN(4);
-+ .rodata : { *(.rodata) }
-+
-+ . = ALIGN(4);
-+ .data : { *(.data) }
-+
-+ . = ALIGN(4);
-+ .got : { *(.got) }
-+
-+ . = .;
-+ __u_boot_cmd_start = .;
-+ .u_boot_cmd : { *(.u_boot_cmd) }
-+ __u_boot_cmd_end = .;
-+
-+ . = ALIGN(4);
-+ __bss_start = .;
-+ .bss : { *(.bss) }
-+ _end = .;
-+}
-diff -Nur u-boot-2006-04-18-1106/board/corgi/Makefile u-boot-2006-04-18-1106-new/board/corgi/Makefile
---- u-boot-2006-04-18-1106/board/corgi/Makefile 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/Makefile 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,51 @@
-+#
-+# board/corgi/Makefile
-+#
-+# (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+#
-+# (C) Copyright 2000
-+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-+#
-+# See file CREDITS for list of people who contributed to this
-+# project.
-+#
-+# This program is free software; you can redistribute it and/or
-+# modify it under the terms of the GNU General Public License as
-+# published by the Free Software Foundation; either version 2 of
-+# the License, or (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+# MA 02111-1307 USA
-+#
-+
-+include $(TOPDIR)/config.mk
-+
-+LIB = lib$(BOARD).a
-+
-+OBJS := corgi.o nand.o kbd.o
-+SOBJS := lowlevel_init.o
-+
-+$(LIB): $(OBJS) $(SOBJS)
-+ $(AR) crv $@ $(OBJS) $(SOBJS)
-+
-+clean:
-+ rm -f $(SOBJS) $(OBJS)
-+
-+distclean: clean
-+ rm -f $(LIB) core *.bak .depend
-+
-+#########################################################################
-+
-+.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
-+ $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
-+
-+-include .depend
-+
-+#########################################################################
-diff -Nur u-boot-2006-04-18-1106/board/corgi/config.mk u-boot-2006-04-18-1106-new/board/corgi/config.mk
---- u-boot-2006-04-18-1106/board/corgi/config.mk 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/config.mk 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1 @@
-+TEXT_BASE = 0xa1000000
-diff -Nur u-boot-2006-04-18-1106/board/corgi/corgi.c u-boot-2006-04-18-1106-new/board/corgi/corgi.c
---- u-boot-2006-04-18-1106/board/corgi/corgi.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/corgi.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,87 @@
-+/*
-+ * board/corgi/corgi.c
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-C7x0/860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from adsvix board configuration:
-+ * (C) Copyright 2004
-+ * Robert Whaley, Applied Data Systems, Inc. rwhaley@applieddata.net
-+ * (C) Copyright 2002
-+ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
-+ * (C) Copyright 2002
-+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-+ * Marius Groeger <mgroeger@sysgo.de>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+
-+/* ------------------------------------------------------------------------- */
-+
-+/*
-+ * Miscellaneous platform dependent initialisations
-+ */
-+
-+int board_init (void)
-+{
-+ DECLARE_GLOBAL_DATA_PTR;
-+
-+ /* memory and cpu-speed are setup before relocation */
-+ /* so we do _nothing_ here */
-+
-+ /* arch number of Sharp Zaurus Corgi : MACH_TYPE_CORGI */
-+ gd->bd->bi_arch_number = 423;
-+
-+ /* adress of boot parameters */
-+ gd->bd->bi_boot_params = 0xa0000100;
-+
-+ /* set cpu turbo mode */
-+ set_turbo_mode();
-+
-+ corgikbd_init();
-+
-+ return 0;
-+}
-+
-+int board_late_init(void)
-+{
-+ setenv("stdout", "serial");
-+ setenv("stderr", "serial");
-+ return 0;
-+}
-+
-+
-+int dram_init (void)
-+{
-+ DECLARE_GLOBAL_DATA_PTR;
-+
-+ gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-+ gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-+ gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-+ gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
-+ gd->bd->bi_dram[2].start = PHYS_SDRAM_3;
-+ gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE;
-+ gd->bd->bi_dram[3].start = PHYS_SDRAM_4;
-+ gd->bd->bi_dram[3].size = PHYS_SDRAM_4_SIZE;
-+
-+ return 0;
-+}
-diff -Nur u-boot-2006-04-18-1106/board/corgi/kbd.c u-boot-2006-04-18-1106-new/board/corgi/kbd.c
---- u-boot-2006-04-18-1106/board/corgi/kbd.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/kbd.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,202 @@
-+/*
-+ * board/corgi/kbd.c
-+ *
-+ * Keyboard driver for the Sharp Zaurus SL-C7x0/860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from:
-+ *
-+ * linux/drivers/input/keyboard/spitzkbd.c
-+ *
-+ * Keyboard driver for Sharp Corgi models (SL-C7xx)
-+ *
-+ * Copyright (C) 2005 Richard Purdie
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+#include <command.h>
-+#include <config.h>
-+#include <version.h>
-+#include <asm/arch/pxa-regs.h>
-+
-+#define GPIO_DFLT_LOW 0x400
-+#define GPIO_DFLT_HIGH 0x800
-+
-+void pxa_gpio_mode(int gpio_mode)
-+{
-+ int gpio = gpio_mode & GPIO_MD_MASK_NR;
-+ int fn = (gpio_mode & GPIO_MD_MASK_FN) >> 8;
-+ int gafr;
-+
-+ if (gpio_mode & GPIO_DFLT_LOW)
-+ GPCR(gpio) = GPIO_bit(gpio);
-+ else if (gpio_mode & GPIO_DFLT_HIGH)
-+ GPSR(gpio) = GPIO_bit(gpio);
-+ if (gpio_mode & GPIO_MD_MASK_DIR)
-+ GPDR(gpio) |= GPIO_bit(gpio);
-+ else
-+ GPDR(gpio) &= ~GPIO_bit(gpio);
-+ gafr = GAFR(gpio) & ~(0x3 << (((gpio) & 0xf)*2));
-+ GAFR(gpio) = gafr | (fn << (((gpio) & 0xf)*2));
-+}
-+
-+/*
-+ * Corgi Keyboard Definitions
-+ */
-+#define CORGI_KEY_STROBE_NUM (12)
-+#define CORGI_KEY_SENSE_NUM (8)
-+#define CORGI_GPIO_ALL_STROBE_BIT (0x00003ffc)
-+#define CORGI_GPIO_HIGH_SENSE_BIT (0xfc000000)
-+#define CORGI_GPIO_HIGH_SENSE_RSHIFT (26)
-+#define CORGI_GPIO_LOW_SENSE_BIT (0x00000003)
-+#define CORGI_GPIO_LOW_SENSE_LSHIFT (6)
-+#define CORGI_GPIO_STROBE_BIT(a) GPIO_bit(66+(a))
-+#define CORGI_GPIO_SENSE_BIT(a) GPIO_bit(58+(a))
-+#define CORGI_GAFR_ALL_STROBE_BIT (0x0ffffff0)
-+#define CORGI_GAFR_HIGH_SENSE_BIT (0xfff00000)
-+#define CORGI_GAFR_LOW_SENSE_BIT (0x0000000f)
-+#define CORGI_GPIO_KEY_SENSE(a) (58+(a))
-+#define CORGI_GPIO_KEY_STROBE(a) (66+(a))
-+
-+#define CORGI_GPIO_AK_INT (4) /* Headphone Jack Control Interrupt */
-+
-+#define KB_ROWS 8
-+#define KB_COLS 12
-+#define KB_ROWMASK(r) (1 << (r))
-+#define SCANCODE(r,c) ( ((r)<<4) + (c) + 1 )
-+/* zero code, 124 scancodes */
-+#define NR_SCANCODES ( SCANCODE(KB_ROWS-1,KB_COLS-1) +1 +1 )
-+
-+#define SCAN_INTERVAL (50) /* ms */
-+#define HINGE_SCAN_INTERVAL (250) /* ms */
-+
-+#define KB_DISCHARGE_DELAY 10
-+#define KB_ACTIVATE_DELAY 10
-+
-+static inline void corgikbd_discharge_all(void)
-+{
-+ /* STROBE All HiZ */
-+ GPCR2 = CORGI_GPIO_ALL_STROBE_BIT;
-+ GPDR2 &= ~CORGI_GPIO_ALL_STROBE_BIT;
-+}
-+
-+static inline void corgikbd_activate_all(void)
-+{
-+ /* STROBE ALL -> High */
-+ GPSR2 = CORGI_GPIO_ALL_STROBE_BIT;
-+ GPDR2 |= CORGI_GPIO_ALL_STROBE_BIT;
-+
-+ udelay(KB_DISCHARGE_DELAY);
-+
-+ /* Clear any interrupts we may have triggered when altering the GPIO lines */
-+ GEDR1 = CORGI_GPIO_HIGH_SENSE_BIT;
-+ GEDR2 = CORGI_GPIO_LOW_SENSE_BIT;
-+}
-+
-+static inline void corgikbd_activate_col(int col)
-+{
-+ /* STROBE col -> High, not col -> HiZ */
-+ GPSR2 = CORGI_GPIO_STROBE_BIT(col);
-+ GPDR2 = (GPDR2 & ~CORGI_GPIO_ALL_STROBE_BIT) | CORGI_GPIO_STROBE_BIT(col);
-+}
-+
-+static inline void corgikbd_reset_col(int col)
-+{
-+ /* STROBE col -> Low */
-+ GPCR2 = CORGI_GPIO_STROBE_BIT(col);
-+ /* STROBE col -> out, not col -> HiZ */
-+ GPDR2 = (GPDR2 & ~CORGI_GPIO_ALL_STROBE_BIT) | CORGI_GPIO_STROBE_BIT(col);
-+}
-+
-+#define GET_ROWS_STATUS(c) (((GPLR1 & CORGI_GPIO_HIGH_SENSE_BIT) >> CORGI_GPIO_HIGH_SENSE_RSHIFT) | ((GPLR2 & CORGI_GPIO_LOW_SENSE_BIT) << CORGI_GPIO_LOW_SENSE_LSHIFT))
-+
-+static int corgikbd_scankeyboard(void)
-+{
-+ unsigned int row, col, rowd;
-+ unsigned int num_pressed;
-+ int ret = -1;
-+
-+ num_pressed = 0;
-+ for (col = 0; col < KB_COLS; col++) {
-+ corgikbd_discharge_all();
-+ udelay(KB_DISCHARGE_DELAY);
-+
-+ corgikbd_activate_col(col);
-+ udelay(KB_ACTIVATE_DELAY);
-+
-+ rowd = GET_ROWS_STATUS(col);
-+ for (row = 0; row < KB_ROWS; row++) {
-+ unsigned int scancode, pressed;
-+
-+ scancode = SCANCODE(row, col);
-+ pressed = rowd & KB_ROWMASK(row);
-+
-+ if (pressed)
-+ ret = scancode;
-+ }
-+ corgikbd_reset_col(col);
-+ }
-+
-+ corgikbd_activate_all();
-+
-+ return ret;
-+}
-+
-+void corgikbd_init(void)
-+{
-+ int i;
-+
-+ /* Setup sense interrupts - RisingEdge Detect, sense lines as inputs */
-+ for (i = 0; i < CORGI_KEY_SENSE_NUM; i++)
-+ pxa_gpio_mode(CORGI_GPIO_KEY_SENSE(i) | GPIO_IN);
-+
-+ /* Set Strobe lines as outputs - set high */
-+ for (i = 0; i < CORGI_KEY_STROBE_NUM; i++)
-+ pxa_gpio_mode(CORGI_GPIO_KEY_STROBE(i) | GPIO_OUT | GPIO_DFLT_HIGH);
-+
-+ /* Setup the headphone jack as an input */
-+ pxa_gpio_mode(CORGI_GPIO_AK_INT | GPIO_IN);
-+}
-+
-+int do_testkey(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
-+{
-+ int scan;
-+
-+ if (argc < 2)
-+ return 1;
-+
-+ scan = corgikbd_scankeyboard();
-+
-+
-+// if (scan >= 0)
-+// printf("Scan = %d\n", scan);
-+// else
-+// printf("Nothing!\n");
-+
-+ return !(simple_strtol(argv[1], NULL, 10) == scan);
-+}
-+
-+U_BOOT_CMD(
-+ testkey, 2, 1, do_testkey,
-+ "testkey - compare pressed key with arg\n",
-+ "<key scancode>"
-+);
-diff -Nur u-boot-2006-04-18-1106/board/corgi/lowlevel_init.S u-boot-2006-04-18-1106-new/board/corgi/lowlevel_init.S
---- u-boot-2006-04-18-1106/board/corgi/lowlevel_init.S 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/lowlevel_init.S 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,136 @@
-+/*
-+ * board/corgi/lowlevel_init.S
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-C7x0/860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * This was originally from the Lubbock u-boot port and from BLOB with cleanup
-+ *
-+ * NOTE: I haven't clean this up considerably, just enough to get it
-+ * running. See hal_platform_setup.h for the source. See
-+ * board/cradle/lowlevel_init.S for another PXA250 setup that is
-+ * much cleaner.
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <config.h>
-+#include <version.h>
-+#include <asm/arch/pxa-regs.h>
-+
-+/* wait for coprocessor write complete */
-+ .macro CPWAIT reg
-+ mrc p15,0,\reg,c2,c0,0
-+ mov \reg,\reg
-+ sub pc,pc,#4
-+ .endm
-+
-+/*********** Write out to HEX 7 segment leds *********/
-+
-+#undef DEBUG_HEXLOG
-+
-+#ifdef DEBUG_HEXLOG
-+#define LEDCTL 0x08000040
-+#define LEDDAT1 0x08000010
-+#define LEDDAT2 0x08000014
-+
-+.macro wait, count
-+ mov r10, \count
-+0:
-+ subs r10, r10, #1
-+ bne 0b
-+.endm
-+
-+.macro hexlog_init
-+ ldr r11, =LEDCTL
-+ mov r10, #0xff
-+ str r10, [r11]
-+ ldr r11, =LEDDAT2
-+ mov r10, #0xFFFFFFFF
-+ str r10, [r11]
-+ ldr r11, =LEDDAT1
-+ mov r10, #0x0
-+ str r10, [r11]
-+.endm
-+
-+.macro hexlog, val
-+ ldr r11, =LEDCTL
-+ mov r10, #0xff
-+ str r10, [r11]
-+ ldr r11, =LEDDAT2
-+ mov r10, #0xFFFFFFFF
-+ str r10, [r11]
-+
-+ ldr r11, =LEDDAT1
-+ mov r10, \val
-+ str r10, [r11]
-+
-+ wait #0x400000
-+.endm
-+
-+#else
-+
-+.macro hexlog_init
-+ nop
-+.endm
-+
-+.macro hexlog, val
-+ nop
-+.endm
-+
-+#endif
-+
-+/***********************************/
-+
-+/*
-+ * Memory setup
-+ */
-+
-+.globl lowlevel_init
-+lowlevel_init:
-+
-+ mov pc, lr
-+
-+.globl set_turbo_mode
-+
-+set_turbo_mode:
-+ /* Turn on turbo mode */
-+ mrc p14, 0, r2, c6, c0, 0
-+ orr r2, r2, #0x3 /* Turbo, Freq change */
-+ mcr p14, 0, r2, c6, c0, 0
-+
-+
-+ /* Setup vectors */
-+ ldr r0, =TEXT_BASE
-+ ldr r1, =TEXT_BASE+0x40
-+ ldr r2, =0x0
-+1:
-+ ldr r3, [r0]
-+ str r3, [r2]
-+ add r0, r0, #4
-+ add r2, r2, #4
-+ cmp r0, r1
-+ bne 1b
-+
-+ ldr r0, =0x0
-+ ldr r1, [r0, #4]
-+ str r1, [r0]
-+
-+ mov pc, lr
-diff -Nur u-boot-2006-04-18-1106/board/corgi/nand.c u-boot-2006-04-18-1106-new/board/corgi/nand.c
---- u-boot-2006-04-18-1106/board/corgi/nand.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/nand.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,157 @@
-+/*
-+ * board/corgi/nand.c
-+ *
-+ * NAND driver for the Sharp Zaurus SL-C7x0/860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from mtd nand driver:
-+ *
-+ * drivers/mtd/nand/sharpsl.c
-+ *
-+ * Copyright (C) 2004 Richard Purdie
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_NAND)
-+
-+#include <nand.h>
-+#include <linux/mtd/nand_ecc.h>
-+
-+static int sharpsl_io_base = CFG_NAND_BASE;
-+
-+/* register offset */
-+#define ECCLPLB sharpsl_io_base+0x00 /* line parity 7 - 0 bit */
-+#define ECCLPUB sharpsl_io_base+0x04 /* line parity 15 - 8 bit */
-+#define ECCCP sharpsl_io_base+0x08 /* column parity 5 - 0 bit */
-+#define ECCCNTR sharpsl_io_base+0x0C /* ECC byte counter */
-+#define ECCCLRR sharpsl_io_base+0x10 /* cleare ECC */
-+#define FLASHIO sharpsl_io_base+0x14 /* Flash I/O */
-+#define FLASHCTL sharpsl_io_base+0x18 /* Flash Control */
-+
-+/* Flash control bit */
-+#define FLRYBY (1 << 5)
-+#define FLCE1 (1 << 4)
-+#define FLWP (1 << 3)
-+#define FLALE (1 << 2)
-+#define FLCLE (1 << 1)
-+#define FLCE0 (1 << 0)
-+
-+#define readb(address) *((volatile unsigned char *)(address))
-+#define writeb(v, address) *((volatile unsigned char *)(address))=v
-+
-+/*
-+ * hardware specific access to control-lines
-+ */
-+static void
-+sharpsl_nand_hwcontrol(struct mtd_info* mtd, int cmd)
-+{
-+ switch (cmd) {
-+ case NAND_CTL_SETCLE:
-+ writeb(readb(FLASHCTL) | FLCLE, FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRCLE:
-+ writeb(readb(FLASHCTL) & ~FLCLE, FLASHCTL);
-+ break;
-+
-+ case NAND_CTL_SETALE:
-+ writeb(readb(FLASHCTL) | FLALE, FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRALE:
-+ writeb(readb(FLASHCTL) & ~FLALE, FLASHCTL);
-+ break;
-+
-+ case NAND_CTL_SETNCE:
-+ writeb(readb(FLASHCTL) & ~(FLCE0|FLCE1), FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRNCE:
-+ writeb(readb(FLASHCTL) | (FLCE0|FLCE1), FLASHCTL);
-+ break;
-+ }
-+}
-+
-+static int
-+sharpsl_nand_dev_ready(struct mtd_info* mtd)
-+{
-+ return !((readb(FLASHCTL) & FLRYBY) == 0);
-+}
-+
-+static void
-+sharpsl_nand_enable_hwecc(struct mtd_info* mtd, int mode)
-+{
-+ writeb(0 ,ECCCLRR);
-+}
-+
-+static int
-+sharpsl_nand_calculate_ecc(struct mtd_info* mtd, const u_char* dat,
-+ u_char* ecc_code)
-+{
-+ ecc_code[0] = ~readb(ECCLPUB);
-+ ecc_code[1] = ~readb(ECCLPLB);
-+ ecc_code[2] = (~readb(ECCCP) << 2) | 0x03;
-+ return readb(ECCCNTR) != 0;
-+}
-+
-+static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
-+
-+static struct nand_bbt_descr sharpsl_bbt = {
-+ .options = 0,
-+ .offs = 4,
-+ .len = 2,
-+ .pattern = scan_ff_pattern
-+};
-+
-+/*
-+ * Board-specific NAND initialization. The following members of the
-+ * argument are board-specific (per include/linux/mtd/nand.h):
-+ * - IO_ADDR_R?: address to read the 8 I/O lines of the flash device
-+ * - IO_ADDR_W?: address to write the 8 I/O lines of the flash device
-+ * - hwcontrol: hardwarespecific function for accesing control-lines
-+ * - dev_ready: hardwarespecific function for accesing device ready/busy line
-+ * - enable_hwecc?: function to enable (reset) hardware ecc generator. Must
-+ * only be provided if a hardware ECC is available
-+ * - eccmode: mode of ecc, see defines
-+ * - chip_delay: chip dependent delay for transfering data from array to
-+ * read regs (tR)
-+ * - options: various chip options. They can partly be set to inform
-+ * nand_scan about special functionality. See the defines for further
-+ * explanation
-+ * Members with a "?" were not set in the merged testing-NAND branch,
-+ * so they are not set here either.
-+ */
-+void board_nand_init(struct nand_chip *nand)
-+{
-+ writeb(readb(FLASHCTL) | FLWP, FLASHCTL);
-+
-+ nand->IO_ADDR_R = FLASHIO;
-+ nand->IO_ADDR_W = FLASHIO;
-+ nand->hwcontrol = sharpsl_nand_hwcontrol;
-+ nand->dev_ready = sharpsl_nand_dev_ready;
-+ nand->eccmode = NAND_ECC_HW3_256;
-+ nand->chip_delay = 15;
-+ nand->badblock_pattern = &sharpsl_bbt;
-+ nand->enable_hwecc = sharpsl_nand_enable_hwecc;
-+ nand->calculate_ecc = sharpsl_nand_calculate_ecc;
-+ nand->correct_data = nand_correct_data;
-+}
-+#endif /* (CONFIG_COMMANDS & CFG_CMD_NAND) */
-diff -Nur u-boot-2006-04-18-1106/board/corgi/u-boot.lds u-boot-2006-04-18-1106-new/board/corgi/u-boot.lds
---- u-boot-2006-04-18-1106/board/corgi/u-boot.lds 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/u-boot.lds 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,56 @@
-+/*
-+ * (C) Copyright 2000
-+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
-+OUTPUT_ARCH(arm)
-+ENTRY(_start)
-+SECTIONS
-+{
-+ . = 0x00000000;
-+
-+ . = ALIGN(4);
-+ .text :
-+ {
-+ cpu/pxa/start.o (.text)
-+ *(.text)
-+ }
-+
-+ . = ALIGN(4);
-+ .rodata : { *(.rodata) }
-+
-+ . = ALIGN(4);
-+ .data : { *(.data) }
-+
-+ . = ALIGN(4);
-+ .got : { *(.got) }
-+
-+ . = .;
-+ __u_boot_cmd_start = .;
-+ .u_boot_cmd : { *(.u_boot_cmd) }
-+ __u_boot_cmd_end = .;
-+
-+ . = ALIGN(4);
-+ __bss_start = .;
-+ .bss : { *(.bss) }
-+ _end = .;
-+}
-diff -Nur u-boot-2006-04-18-1106/common/cmd_nand.c u-boot-2006-04-18-1106-new/common/cmd_nand.c
---- u-boot-2006-04-18-1106/common/cmd_nand.c 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/common/cmd_nand.c 2006-07-05 11:19:44.000000000 +0000
-@@ -81,6 +81,63 @@
- return 0;
- }
-
-+#ifdef NAND_LOGICAL
-+/////////////////////////////////////////////////////////////////////
-+// oob structure
-+/////////////////////////////////////////////////////////////////////
-+
-+#define NAND_NOOB_LOGADDR_00 8
-+#define NAND_NOOB_LOGADDR_01 9
-+#define NAND_NOOB_LOGADDR_10 10
-+#define NAND_NOOB_LOGADDR_11 11
-+#define NAND_NOOB_LOGADDR_20 12
-+#define NAND_NOOB_LOGADDR_21 13
-+
-+static uint nand_get_logical_no(unsigned char *oob)
-+{
-+ unsigned short us,bit;
-+ int par;
-+ int good0, good1;
-+
-+ if(oob[NAND_NOOB_LOGADDR_00] == oob[NAND_NOOB_LOGADDR_10] &&
-+ oob[NAND_NOOB_LOGADDR_01] == oob[NAND_NOOB_LOGADDR_11]){
-+ good0 = NAND_NOOB_LOGADDR_00;
-+ good1 = NAND_NOOB_LOGADDR_01;
-+ }else
-+ if(oob[NAND_NOOB_LOGADDR_10] == oob[NAND_NOOB_LOGADDR_20] &&
-+ oob[NAND_NOOB_LOGADDR_11] == oob[NAND_NOOB_LOGADDR_21]){
-+ good0 = NAND_NOOB_LOGADDR_10;
-+ good1 = NAND_NOOB_LOGADDR_11;
-+ }else
-+ if(oob[NAND_NOOB_LOGADDR_20] == oob[NAND_NOOB_LOGADDR_00] &&
-+ oob[NAND_NOOB_LOGADDR_21] == oob[NAND_NOOB_LOGADDR_01]){
-+ good0 = NAND_NOOB_LOGADDR_20;
-+ good1 = NAND_NOOB_LOGADDR_21;
-+ }else{
-+ return (uint)-1;
-+ }
-+
-+ us = (((unsigned short)(oob[good0]) & 0x00ff) << 0) |
-+ (((unsigned short)(oob[good1]) & 0x00ff) << 8);
-+
-+ par = 0;
-+ for(bit = 0x0001; bit != 0; bit <<= 1){
-+ if(us & bit){
-+ par++;
-+ }
-+ }
-+ if(par & 1){
-+ return (uint)-2;
-+ }
-+
-+ if(us == 0xffff){
-+ return 0xffff;
-+ }else{
-+ return ((us & 0x07fe) >> 1);
-+ }
-+}
-+#endif
-+
- /* ------------------------------------------------------------------------- */
-
- static void
-@@ -245,6 +302,55 @@
- if (off == 0 && size == 0)
- return 1;
-
-+#ifdef NAND_LOGICAL
-+ s = strchr(cmd, '.');
-+ if (s != NULL) {
-+ if (strcmp(s, ".logical") == 0) {
-+ int blocks = NAND_LOGICAL_SIZE / nand->erasesize;
-+ ulong *log2phy = malloc(blocks * sizeof(ulong));
-+ u_char *oobuf = malloc(nand->oobblock + nand->oobsize);
-+ int i;
-+ ulong offset;
-+ ret = 1;
-+ for (i = 0; i < blocks; i++)
-+ log2phy[i] = (uint) -1;
-+ offset = 0;
-+ for (i = 0; i < blocks; i++) {
-+ ret = nand_read_raw(nand, oobuf, offset, nand->oobblock, nand->oobsize);
-+ if (!ret) {
-+ int log_no = nand_get_logical_no(oobuf + nand->oobblock);
-+ if (((int)log_no >= 0) && (log_no < blocks)) {
-+ log2phy[log_no] = offset;
-+ //printf("NAND logical - %08X -> %04X\n", offset, log_no);
-+ }
-+ }
-+ offset += nand->erasesize;
-+ }
-+
-+ for (i = 0; i < size / nand->erasesize; i++) {
-+ ulong sz = nand->erasesize;
-+ offset = log2phy[off / nand->erasesize];
-+ if ((int)offset < 0) {
-+ printf("NAND logical - offset %08X not found\n", off);
-+ return 1;
-+ }
-+ //printf("NAND logical - %04X -> %08X\n", off / nand->erasesize, offset);
-+ ret = nand_read(nand, offset, &sz, (u_char *)addr);
-+ if (ret) {
-+ printf("NAND logical - offset %08X, read error\n", off);
-+ return 1;
-+ }
-+ off += nand->erasesize;
-+ addr += nand->erasesize;
-+ }
-+ printf(" %d bytes read from NAND logical\n", size);
-+ free(oobuf);
-+ free(log2phy);
-+ return ret == 0 ? 0 : 1;
-+ }
-+ }
-+#endif
-+
- i = strncmp(cmd, "read", 4) == 0; /* 1 = read, 0 = write */
- printf("\nNAND %s: device %d offset %u, size %u ... ",
- i ? "read" : "write", nand_curr_device, off, size);
-diff -Nur u-boot-2006-04-18-1106/cpu/pxa/config.mk u-boot-2006-04-18-1106-new/cpu/pxa/config.mk
---- u-boot-2006-04-18-1106/cpu/pxa/config.mk 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/cpu/pxa/config.mk 2006-07-05 11:19:44.000000000 +0000
-@@ -22,8 +22,7 @@
- # MA 02111-1307 USA
- #
-
--PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
-- -msoft-float
-+PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -fomit-frame-pointer
-
- #PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=strongarm1100
- PLATFORM_CPPFLAGS += -march=armv5 -mtune=xscale
-@@ -32,5 +31,5 @@
- # Supply options according to compiler version
- #
- # ========================================================================
--PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
-+#PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
- PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
-diff -Nur u-boot-2006-04-18-1106/cpu/pxa/start.S u-boot-2006-04-18-1106-new/cpu/pxa/start.S
---- u-boot-2006-04-18-1106/cpu/pxa/start.S 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/cpu/pxa/start.S 2006-07-05 11:19:44.000000000 +0000
-@@ -42,6 +42,7 @@
- ldr pc, _irq
- ldr pc, _fiq
-
-+_reset: .word reset
- _undefined_instruction: .word undefined_instruction
- _software_interrupt: .word software_interrupt
- _prefetch_abort: .word prefetch_abort
-diff -Nur u-boot-2006-04-18-1106/fs/cramfs/cramfs.c u-boot-2006-04-18-1106-new/fs/cramfs/cramfs.c
---- u-boot-2006-04-18-1106/fs/cramfs/cramfs.c 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/fs/cramfs/cramfs.c 2006-07-05 11:19:44.000000000 +0000
-@@ -44,8 +44,13 @@
-
- /* CPU address space offset calculation macro, struct part_info offset is
- * device address space offset, so we need to shift it by a device start address. */
-+#if (CONFIG_COMMANDS & CFG_CMD_FLASH)
- extern flash_info_t flash_info[];
- #define PART_OFFSET(x) (x->offset + flash_info[x->dev->id->num].start[0])
-+#else
-+static struct cramfs_super super_fake;
-+#define PART_OFFSET(x) (&super_fake)
-+#endif
-
- static int cramfs_read_super (struct part_info *info)
- {
-diff -Nur u-boot-2006-04-18-1106/include/asm-arm/arch-pxa/pxa-regs.h u-boot-2006-04-18-1106-new/include/asm-arm/arch-pxa/pxa-regs.h
---- u-boot-2006-04-18-1106/include/asm-arm/arch-pxa/pxa-regs.h 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/include/asm-arm/arch-pxa/pxa-regs.h 2006-07-05 11:19:44.000000000 +0000
-@@ -1269,15 +1269,16 @@
- #define _GEDR(x) __REG2(0x40E00048, ((x) & 0x60) >> 3)
- #define _GAFR(x) __REG2(0x40E00054, ((x) & 0x70) >> 2)
-
--#define GPLR(x) ((((x) & 0x7f) < 96) ? _GPLR(x) : GPLR3)
--#define GPDR(x) ((((x) & 0x7f) < 96) ? _GPDR(x) : GPDR3)
--#define GPSR(x) ((((x) & 0x7f) < 96) ? _GPSR(x) : GPSR3)
--#define GPCR(x) ((((x) & 0x7f) < 96) ? _GPCR(x) : GPCR3)
--#define GRER(x) ((((x) & 0x7f) < 96) ? _GRER(x) : GRER3)
--#define GFER(x) ((((x) & 0x7f) < 96) ? _GFER(x) : GFER3)
--#define GEDR(x) ((((x) & 0x7f) < 96) ? _GEDR(x) : GEDR3)
--#define GAFR(x) ((((x) & 0x7f) < 96) ? _GAFR(x) : \
-- ((((x) & 0x7f) < 112) ? GAFR3_L : GAFR3_U))
-+#define GPLR(x) (*((((x) & 0x7f) < 96) ? &_GPLR(x) : &GPLR3))
-+#define GPDR(x) (*((((x) & 0x7f) < 96) ? &_GPDR(x) : &GPDR3))
-+#define GPSR(x) (*((((x) & 0x7f) < 96) ? &_GPSR(x) : &GPSR3))
-+#define GPCR(x) (*((((x) & 0x7f) < 96) ? &_GPCR(x) : &GPCR3))
-+#define GRER(x) (*((((x) & 0x7f) < 96) ? &_GRER(x) : &GRER3))
-+#define GFER(x) (*((((x) & 0x7f) < 96) ? &_GFER(x) : &GFER3))
-+#define GEDR(x) (*((((x) & 0x7f) < 96) ? &_GEDR(x) : &GEDR3))
-+#define GAFR(x) (*((((x) & 0x7f) < 96) ? &_GAFR(x) : \
-+ ((((x) & 0x7f) < 112) ? &GAFR3_L : &GAFR3_U)))
-+
- #else
-
- #define GPLR(x) __REG2(0x40E00000, ((x) & 0x60) >> 3)
-diff -Nur u-boot-2006-04-18-1106/include/configs/akita.h u-boot-2006-04-18-1106-new/include/configs/akita.h
---- u-boot-2006-04-18-1106/include/configs/akita.h 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/include/configs/akita.h 2006-07-13 11:00:46.000000000 +0000
-@@ -0,0 +1,324 @@
-+/*
-+ * include/configs/akita.h
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-C1000/C3100.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from adsvix board configuration:
-+ * (C) Copyright 2004
-+ * Robert Whaley, Applied Data Systems, Inc. rwhaley@applieddata.net
-+ * (C) Copyright 2002
-+ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
-+ * (C) Copyright 2002
-+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-+ * Marius Groeger <mgroeger@sysgo.de>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#ifndef __CONFIG_H
-+#define __CONFIG_H
-+
-+#define CONFIG_SKIP_LOWLEVEL_INIT
-+
-+#undef SKIP_CONFIG_RELOCATE_UBOOT
-+
-+#undef CONFIG_HARD_I2C
-+
-+/*
-+ * High Level Configuration Options
-+ * (easy to change)
-+ */
-+#define CONFIG_PXA27X 1 /* This is an PXA27x CPU */
-+#define CONFIG_AKITA 1 /* on Sharp Zaurus Akita */
-+//#define CONFIG_MMC 1
-+#define BOARD_LATE_INIT 1
-+
-+#undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */
-+
-+#define RTC 1
-+
-+/*
-+ * Size of malloc() pool
-+ */
-+//#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
-+#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 256*1024)
-+#define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
-+
-+/*
-+ * select serial console configuration
-+ */
-+#define CONFIG_FFUART 1 /* we use FFUART on Mainstone */
-+
-+/* allow to overwrite serial and ethaddr */
-+#define CONFIG_BAUDRATE 115200
-+//#define CONFIG_DOS_PARTITION 1
-+
-+#undef CONFIG_SHOW_BOOT_PROGRESS
-+
-+#if 1
-+#define CONFIG_BOOTDELAY 1
-+#define CONFIG_AUTOBOOT_PROMPT "Autobooting in %d seconds\n"
-+
-+#define CONFIG_BOOTCOMMAND \
-+ "if testkey 101 ; " \
-+ "then " \
-+ "nand read.logical 0xa1000000 0x00060000 0x00540000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 2 ; " \
-+ "then " \
-+ "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 fbcon=rotate:1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 18 ; " \
-+ "then " \
-+ "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1 fbcon=rotate:1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 3 ; " \
-+ "then " \
-+ "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1 fbcon=rotate:1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2 fbcon=rotate:1; " \
-+ "bootm; "
-+#else
-+#define CONFIG_BOOTCOMMAND "" // "run boot_flash"
-+#endif
-+
-+#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192"
-+#define CONFIG_SETUP_MEMORY_TAGS 1
-+#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
-+#define CONFIG_INITRD_TAG 1
-+
-+#define CONFIG_COMMANDS (( \
-+ CONFIG_CMD_DFL | \
-+ CFG_CMD_NAND | \
-+ CFG_CMD_JFFS2 \
-+ ) & ~( \
-+ CFG_CMD_NET | \
-+ CFG_CMD_FLASH | \
-+ CFG_CMD_IMLS \
-+ ))
-+
-+// CFG_CMD_ENV
-+
-+/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
-+#include <cmd_confdefs.h>
-+
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
-+#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
-+#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
-+#endif
-+
-+/*
-+ * Miscellaneous configurable options
-+ */
-+#define CFG_HUSH_PARSER 1
-+#define CFG_PROMPT_HUSH_PS2 "> "
-+
-+#define CFG_LONGHELP /* undef to save memory */
-+#define CFG_PROMPT "U-Boot> " /* Monitor Command Prompt */
-+
-+#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
-+#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-+#define CFG_MAXARGS 16 /* max number of command args */
-+#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
-+#define CFG_DEVICE_NULLDEV 1
-+
-+#define CFG_MEMTEST_START 0xa0400000 /* memtest works on */
-+#define CFG_MEMTEST_END 0xa0800000 /* 4 ... 8 MB in DRAM */
-+
-+#undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
-+
-+#define CFG_LOAD_ADDR 0xa1000000 /* default load address */
-+
-+#define CFG_HZ 3686400 /* incrementer freq: 3.6864 MHz */
-+#define CFG_CPUSPEED 0x207 /* need to look more closely, I think this is Turbo = 2x, L=91Mhz */
-+
-+ /* valid baudrates */
-+#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
-+
-+#define CFG_MMC_BASE 0xF0000000
-+
-+/*
-+ * Stack sizes
-+ *
-+ * The stack sizes are set up in start.S using the settings below
-+ */
-+#define CONFIG_STACKSIZE (128*1024) /* regular stack */
-+#ifdef CONFIG_USE_IRQ
-+#define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
-+#define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
-+#endif
-+
-+/*
-+ * Physical Memory Map
-+ */
-+#define CONFIG_NR_DRAM_BANKS 4 /* we have 2 banks of DRAM */
-+#define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */
-+#define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
-+#define PHYS_SDRAM_2 0xa4000000 /* SDRAM Bank #2 */
-+#define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 MB */
-+#define PHYS_SDRAM_3 0xa8000000 /* SDRAM Bank #3 */
-+#define PHYS_SDRAM_3_SIZE 0x00000000 /* 0 MB */
-+#define PHYS_SDRAM_4 0xac000000 /* SDRAM Bank #4 */
-+#define PHYS_SDRAM_4_SIZE 0x00000000 /* 0 MB */
-+
-+#define PHYS_FLASH_1 0xd4000000 /* Flash Bank #1 */
-+
-+#define CFG_DRAM_BASE 0xa0000000
-+#define CFG_DRAM_SIZE 0x04000000
-+
-+#define CFG_FLASH_BASE PHYS_FLASH_1
-+
-+/*
-+ * GPIO settings for Mainstone
-+ */
-+
-+#define CFG_GPSR0_VAL 0x00708800
-+#define CFG_GPSR1_VAL 0x03cf0002
-+#define CFG_GPSR2_VAL 0x0021FC00
-+#define CFG_GPSR3_VAL 0x00000000
-+
-+#define CFG_GPCR0_VAL 0x00001000
-+#define CFG_GPCR1_VAL 0x00000000
-+#define CFG_GPCR2_VAL 0x00000000
-+#define CFG_GPCR3_VAL 0x00000000
-+
-+#define CFG_GPDR0_VAL 0xC27B9C04
-+#define CFG_GPDR1_VAL 0x00EFAA83
-+#define CFG_GPDR2_VAL 0x0E23FC00
-+#define CFG_GPDR3_VAL 0x001E1F81
-+
-+#define CFG_GAFR0_L_VAL 0x94F00000
-+#define CFG_GAFR0_U_VAL 0x015A859A
-+#define CFG_GAFR1_L_VAL 0x999A955A
-+#define CFG_GAFR1_U_VAL 0x0005A4AA
-+#define CFG_GAFR2_L_VAL 0x6AA00000
-+#define CFG_GAFR2_U_VAL 0x55A8041A
-+#define CFG_GAFR3_L_VAL 0x56AA955A
-+#define CFG_GAFR3_U_VAL 0x00000001
-+
-+#define CFG_PSSR_VAL 0x20 // ???????????
-+
-+/*
-+ * PCMCIA and CF Interfaces
-+ */
-+#define CFG_MECR_VAL 0x00000001
-+#define CFG_MCMEM0_VAL 0x00010204
-+#define CFG_MCMEM1_VAL 0x00010204
-+#define CFG_MCATT0_VAL 0x00010204
-+#define CFG_MCATT1_VAL 0x00010204
-+#define CFG_MCIO0_VAL 0x0000c108
-+#define CFG_MCIO1_VAL 0x0001c108
-+
-+//#define CONFIG_PXA_PCMCIA 1
-+//#define CONFIG_PXA_IDE 1
-+
-+#define CONFIG_PCMCIA_SLOT_A 1
-+/* just to keep build system happy */
-+
-+#define CFG_PCMCIA_MEM_ADDR 0x28000000
-+#define CFG_PCMCIA_MEM_SIZE 0x04000000
-+
-+#define CFG_IDE_MAXBUS 1
-+/* max. 1 IDE bus */
-+#define CFG_IDE_MAXDEVICE 1
-+/* max. 1 drive per IDE bus */
-+
-+#define CFG_ATA_IDE0_OFFSET 0x0000
-+
-+#define CFG_ATA_BASE_ADDR 0x20000000
-+
-+/* Offset for data I/O */
-+#define CFG_ATA_DATA_OFFSET 0x1f0
-+
-+/* Offset for normal register accesses */
-+#define CFG_ATA_REG_OFFSET 0x1f0
-+
-+/* Offset for alternate registers */
-+#define CFG_ATA_ALT_OFFSET 0x3f0
-+
-+#define CFG_NO_FLASH 1
-+#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
-+#define CFG_MAX_FLASH_SECT 512 /* max number of sectors on one chip */
-+
-+/*-----------------------------------------------------------------------
-+ * NAND-FLASH stuff
-+ *-----------------------------------------------------------------------
-+ */
-+#undef CFG_NAND_LEGACY
-+
-+/* NAND debugging */
-+//#define CONFIG_MTD_DEBUG
-+//#define CONFIG_MTD_DEBUG_VERBOSE 3
-+
-+#define CFG_NAND_BASE 0xd4000000
-+#define CFG_MAX_NAND_DEVICE 1 /* Max number of NAND devices */
-+#define NAND_MAX_CHIPS 1
-+
-+//#define CONFIG_MTD_NAND_VERIFY_WRITE 1 /* verify all writes!!! */
-+//#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
-+
-+#define CONFIG_JFFS2_NAND 1 /* jffs2 on nand support */
-+#define NAND_CACHE_PAGES 16 /* size of nand cache in 512 bytes pages */
-+
-+/*
-+ * JFFS2 partitions
-+ *
-+ */
-+/* No command line, one static partition */
-+//#undef CONFIG_JFFS2_CMDLINE
-+//#define CONFIG_JFFS2_DEV "nand0"
-+//#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
-+//#define CONFIG_JFFS2_PART_OFFSET 0x00060000
-+
-+/* mtdparts command line support */
-+/* Note: fake mtd_id used, no linux mtd map file */
-+
-+#define CONFIG_JFFS2_CMDLINE
-+#define MTDIDS_DEFAULT "nand0=laze-0"
-+//#define MTDPARTS_DEFAULT "mtdparts=laze-0:256k(uboot),128k(env),-(jffs2)"
-+#define MTDPARTS_DEFAULT "mtdparts=laze-0:7168k(Logical),-(JFFS2)"
-+
-+/*
-+ * SHARP SL NAND logical partition
-+ */
-+#define NAND_LOGICAL 1
-+#define NAND_LOGICAL_SIZE 0x700000
-+
-+/*
-+ * Environment
-+ */
-+
-+#define CFG_ENV_IS_IN_NAND 1
-+#define CFG_ENV_OFFSET 0x40000
-+//#define CFG_ENV_OFFSET_REDUND 0x44000
-+#define CFG_ENV_SIZE 0x20000
-+
-+#endif /* __CONFIG_H */
-diff -Nur u-boot-2006-04-18-1106/include/configs/corgi.h u-boot-2006-04-18-1106-new/include/configs/corgi.h
---- u-boot-2006-04-18-1106/include/configs/corgi.h 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/include/configs/corgi.h 2006-07-13 11:19:04.000000000 +0000
-@@ -0,0 +1,326 @@
-+/*
-+ * include/configs/corgi.h
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-C7x0/C860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from adsvix board configuration:
-+ * (C) Copyright 2004
-+ * Robert Whaley, Applied Data Systems, Inc. rwhaley@applieddata.net
-+ * (C) Copyright 2002
-+ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
-+ * (C) Copyright 2002
-+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-+ * Marius Groeger <mgroeger@sysgo.de>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#ifndef __CONFIG_H
-+#define __CONFIG_H
-+
-+#define CONFIG_SKIP_LOWLEVEL_INIT
-+
-+#undef SKIP_CONFIG_RELOCATE_UBOOT
-+
-+#undef CONFIG_HARD_I2C
-+
-+/*
-+ * High Level Configuration Options
-+ * (easy to change)
-+ */
-+#define CONFIG_PXA250 1 /* This is an PXA255 CPU */
-+#define CONFIG_CORGI 1 /* on Sharp Zaurus Corgi */
-+//#define CONFIG_MMC 1
-+#define BOARD_LATE_INIT 1
-+
-+#undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */
-+
-+#define RTC 1
-+
-+/*
-+ * Size of malloc() pool
-+ */
-+//#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
-+#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 256*1024)
-+#define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
-+
-+/*
-+ * select serial console configuration
-+ */
-+#define CONFIG_FFUART 1 /* we use FFUART on Mainstone */
-+
-+/* allow to overwrite serial and ethaddr */
-+#define CONFIG_BAUDRATE 115200
-+//#define CONFIG_DOS_PARTITION 1
-+
-+#undef CONFIG_SHOW_BOOT_PROGRESS
-+
-+#if 1
-+#define CONFIG_BOOTDELAY 1
-+#define CONFIG_AUTOBOOT_PROMPT "Autobooting in %d seconds\n"
-+
-+#define CONFIG_BOOTCOMMAND \
-+ "if testkey 101 ; " \
-+ "then " \
-+ "nand read.logical 0xa0800000 0x00060000 0x00540000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 2 ; " \
-+ "then " \
-+ "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 18 ; " \
-+ "then " \
-+ "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 3 ; " \
-+ "then " \
-+ "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2; " \
-+ "bootm; "
-+#else
-+#define CONFIG_BOOTCOMMAND "" // "run boot_flash"
-+#endif
-+
-+#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192"
-+#define CONFIG_SETUP_MEMORY_TAGS 1
-+#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
-+#define CONFIG_INITRD_TAG 1
-+
-+#define CONFIG_COMMANDS (( \
-+ CONFIG_CMD_DFL | \
-+ CFG_CMD_NAND | \
-+ CFG_CMD_JFFS2 \
-+ ) & ~( \
-+ CFG_CMD_NET | \
-+ CFG_CMD_FLASH | \
-+ CFG_CMD_IMLS \
-+ ))
-+
-+// CFG_CMD_ENV
-+
-+/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
-+#include <cmd_confdefs.h>
-+
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
-+#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
-+#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
-+#endif
-+
-+/*
-+ * Miscellaneous configurable options
-+ */
-+#define CFG_HUSH_PARSER 1
-+#define CFG_PROMPT_HUSH_PS2 "> "
-+
-+#define CFG_LONGHELP /* undef to save memory */
-+#define CFG_PROMPT "U-Boot> " /* Monitor Command Prompt */
-+
-+#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
-+#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-+#define CFG_MAXARGS 16 /* max number of command args */
-+#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
-+#define CFG_DEVICE_NULLDEV 1
-+
-+#define CFG_MEMTEST_START 0xa0400000 /* memtest works on */
-+#define CFG_MEMTEST_END 0xa0800000 /* 4 ... 8 MB in DRAM */
-+
-+#undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
-+
-+#define CFG_LOAD_ADDR 0xa0800000 /* default load address */
-+
-+#define CFG_HZ 3686400 /* incrementer freq: 3.6864 MHz */
-+#define CFG_CPUSPEED 0x207 /* need to look more closely, I think this is Turbo = 2x, L=91Mhz */
-+
-+ /* valid baudrates */
-+#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
-+
-+#define CFG_MMC_BASE 0xF0000000
-+
-+/*
-+ * Stack sizes
-+ *
-+ * The stack sizes are set up in start.S using the settings below
-+ */
-+#define CONFIG_STACKSIZE (128*1024) /* regular stack */
-+#ifdef CONFIG_USE_IRQ
-+#define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
-+#define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
-+#endif
-+
-+/*
-+ * Physical Memory Map
-+ */
-+#define CONFIG_NR_DRAM_BANKS 4 /* we have 2 banks of DRAM */
-+#define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */
-+#define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
-+#define PHYS_SDRAM_2 0xa4000000 /* SDRAM Bank #2 */
-+#define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 MB */
-+#define PHYS_SDRAM_3 0xa8000000 /* SDRAM Bank #3 */
-+#define PHYS_SDRAM_3_SIZE 0x00000000 /* 0 MB */
-+#define PHYS_SDRAM_4 0xac000000 /* SDRAM Bank #4 */
-+#define PHYS_SDRAM_4_SIZE 0x00000000 /* 0 MB */
-+
-+#define PHYS_FLASH_1 0xd4000000 /* Flash Bank #1 */
-+
-+#define CFG_DRAM_BASE 0xa0000000
-+#define CFG_DRAM_SIZE 0x04000000
-+
-+#define CFG_FLASH_BASE PHYS_FLASH_1
-+
-+/*
-+ * GPIO settings for Mainstone
-+ */
-+
-+#define CFG_GPSR0_VAL 0x00708800
-+#define CFG_GPSR1_VAL 0x03cf0002
-+#define CFG_GPSR2_VAL 0x0021FC00
-+#define CFG_GPSR3_VAL 0x00000000
-+
-+#define CFG_GPCR0_VAL 0x00001000
-+#define CFG_GPCR1_VAL 0x00000000
-+#define CFG_GPCR2_VAL 0x00000000
-+#define CFG_GPCR3_VAL 0x00000000
-+
-+#define CFG_GPDR0_VAL 0xC27B9C04
-+#define CFG_GPDR1_VAL 0x00EFAA83
-+#define CFG_GPDR2_VAL 0x0E23FC00
-+#define CFG_GPDR3_VAL 0x001E1F81
-+
-+#define CFG_GAFR0_L_VAL 0x94F00000
-+#define CFG_GAFR0_U_VAL 0x015A859A
-+#define CFG_GAFR1_L_VAL 0x999A955A
-+#define CFG_GAFR1_U_VAL 0x0005A4AA
-+#define CFG_GAFR2_L_VAL 0x6AA00000
-+#define CFG_GAFR2_U_VAL 0x55A8041A
-+#define CFG_GAFR3_L_VAL 0x56AA955A
-+#define CFG_GAFR3_U_VAL 0x00000001
-+
-+#define CFG_PSSR_VAL 0x20 // ???????????
-+
-+/*
-+ * PCMCIA and CF Interfaces
-+ */
-+#define CFG_MECR_VAL 0x00000001
-+#define CFG_MCMEM0_VAL 0x00010204
-+#define CFG_MCMEM1_VAL 0x00010204
-+#define CFG_MCATT0_VAL 0x00010204
-+#define CFG_MCATT1_VAL 0x00010204
-+#define CFG_MCIO0_VAL 0x0000c108
-+#define CFG_MCIO1_VAL 0x0001c108
-+
-+//#define CONFIG_PXA_PCMCIA 1
-+//#define CONFIG_PXA_IDE 1
-+
-+#define CONFIG_PCMCIA_SLOT_A 1
-+/* just to keep build system happy */
-+
-+#define CFG_PCMCIA_MEM_ADDR 0x28000000
-+#define CFG_PCMCIA_MEM_SIZE 0x04000000
-+
-+#define CFG_IDE_MAXBUS 1
-+/* max. 1 IDE bus */
-+#define CFG_IDE_MAXDEVICE 1
-+/* max. 1 drive per IDE bus */
-+
-+#define CFG_ATA_IDE0_OFFSET 0x0000
-+
-+#define CFG_ATA_BASE_ADDR 0x20000000
-+
-+/* Offset for data I/O */
-+#define CFG_ATA_DATA_OFFSET 0x1f0
-+
-+/* Offset for normal register accesses */
-+#define CFG_ATA_REG_OFFSET 0x1f0
-+
-+/* Offset for alternate registers */
-+#define CFG_ATA_ALT_OFFSET 0x3f0
-+
-+#define CFG_NO_FLASH 1
-+#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
-+#define CFG_MAX_FLASH_SECT 512 /* max number of sectors on one chip */
-+
-+/*-----------------------------------------------------------------------
-+ * NAND-FLASH stuff
-+ *-----------------------------------------------------------------------
-+ */
-+#undef CFG_NAND_LEGACY
-+
-+/* NAND debugging */
-+//#define CONFIG_MTD_DEBUG
-+//#define CONFIG_MTD_DEBUG_VERBOSE 3
-+
-+#define CFG_NAND_BASE 0xd4000000
-+#define CFG_MAX_NAND_DEVICE 1 /* Max number of NAND devices */
-+#define NAND_MAX_CHIPS 1
-+
-+//#define CONFIG_MTD_NAND_VERIFY_WRITE 1 /* verify all writes!!! */
-+//#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
-+
-+#define CONFIG_JFFS2_NAND 1 /* jffs2 on nand support */
-+#define NAND_CACHE_PAGES 16 /* size of nand cache in 512 bytes pages */
-+
-+#define NAND_ALLOW_ERASE_ALL 1
-+
-+/*
-+ * JFFS2 partitions
-+ *
-+ */
-+/* No command line, one static partition */
-+//#undef CONFIG_JFFS2_CMDLINE
-+//#define CONFIG_JFFS2_DEV "nand0"
-+//#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
-+//#define CONFIG_JFFS2_PART_OFFSET 0x00060000
-+
-+/* mtdparts command line support */
-+/* Note: fake mtd_id used, no linux mtd map file */
-+
-+#define CONFIG_JFFS2_CMDLINE
-+#define MTDIDS_DEFAULT "nand0=laze-0"
-+//#define MTDPARTS_DEFAULT "mtdparts=laze-0:256k(uboot),128k(env),-(jffs2)"
-+#define MTDPARTS_DEFAULT "mtdparts=laze-0:7168k(Logical),-(JFFS2)"
-+
-+/*
-+ * SHARP SL NAND logical partition
-+ */
-+#define NAND_LOGICAL 1
-+#define NAND_LOGICAL_SIZE 0x700000
-+
-+/*
-+ * Environment
-+ */
-+
-+#define CFG_ENV_IS_IN_NAND 1
-+#define CFG_ENV_OFFSET 0x40000
-+//#define CFG_ENV_OFFSET_REDUND 0x44000
-+#define CFG_ENV_SIZE 0x20000
-+
-+#endif /* __CONFIG_H */
---- s/examples/Makefile.orig 2006-12-09 15:08:45.000000000 +0600
-+++ s/examples/Makefile 2006-12-09 15:09:00.000000000 +0600
-@@ -60,7 +60,7 @@
- include $(TOPDIR)/config.mk
-
- SREC = hello_world.srec
--BIN = hello_world.bin hello_world
-+BIN = hello_world hello_world.bin
-
- ifeq ($(CPU),mpc8xx)
- SREC = test_burst.srec
-@@ -122,7 +122,7 @@
-
- CPPFLAGS += -I..
-
--all: .depend $(OBJS) $(LIB) $(SREC) $(BIN)
-+all: .depend $(OBJS) $(LIB) $(BIN) $(SREC)
-
- #########################################################################
- $(LIB): .depend $(LIBOBJS)
-diff -Nur u-boot-2006-04-18-1106/CREDITS u-boot-2006-04-18-1106-new/CREDITS
---- u-boot-2006-04-18-1106/CREDITS 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/CREDITS 2006-07-05 11:19:44.000000000 +0000
-@@ -93,6 +93,12 @@
- E: jonathan.debruyne@siemens.atea.be
- D: Port to Siemens IAD210 board
-
-+N: Alexander Chukov
-+E: sash@pdaXrom.org
-+D: initial support for Sharp Zaurus SL-C1000/3100
-+D: initial support for Sharp Zaurus SL-C7x0/C860
-+W: http://www.pdaXrom.org
-+
- N: Ken Chou
- E: kchou@ieee.org
- D: Support for A3000 SBC board
-diff -Nur u-boot-2006-04-18-1106/MAINTAINERS u-boot-2006-04-18-1106-new/MAINTAINERS
---- u-boot-2006-04-18-1106/MAINTAINERS 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/MAINTAINERS 2006-07-05 11:19:44.000000000 +0000
-@@ -379,6 +379,11 @@
-
- AT91RM9200DK at91rm9200
-
-+Alexander Chukov <sash@pdaXrom.org>
-+
-+ akita xscale
-+ corgi xscale
-+
- George G. Davis <gdavis@mvista.com>
-
- assabet SA1100
-diff -Nur u-boot-2006-04-18-1106/MAKEALL u-boot-2006-04-18-1106-new/MAKEALL
---- u-boot-2006-04-18-1106/MAKEALL 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/MAKEALL 2006-07-05 11:19:44.000000000 +0000
-@@ -206,7 +206,7 @@
- adsvix cerf250 cradle csb226 \
- delta innokom lubbock pxa255_idp \
- wepep250 xaeniax xm250 xsengine \
-- zylonite \
-+ zylonite akita corgi \
- "
-
- LIST_ixp="ixdp425"
-diff -Nur u-boot-2006-04-18-1106/Makefile u-boot-2006-04-18-1106-new/Makefile
---- u-boot-2006-04-18-1106/Makefile 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/Makefile 2006-07-05 11:19:44.000000000 +0000
-@@ -61,7 +61,7 @@
- CROSS_COMPILE = powerpc-linux-
- endif
- ifeq ($(ARCH),arm)
--CROSS_COMPILE = arm-linux-
-+CROSS_COMPILE = armv5tel-linux-
- endif
- ifeq ($(ARCH),i386)
- ifeq ($(HOSTARCH),i386)
-@@ -1709,6 +1709,12 @@
- zylonite_config :
- @./mkconfig $(@:_config=) arm pxa zylonite
-
-+akita_config : unconfig
-+ @./mkconfig $(@:_config=) arm pxa akita
-+
-+corgi_config : unconfig
-+ @./mkconfig $(@:_config=) arm pxa corgi
-+
- #########################################################################
- ## ARM1136 Systems
- #########################################################################
-diff -Nur u-boot-2006-04-18-1106/README u-boot-2006-04-18-1106-new/README
---- u-boot-2006-04-18-1106/README 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/README 2006-07-05 11:19:44.000000000 +0000
-@@ -311,7 +311,8 @@
- CONFIG_KB9202, CONFIG_LART, CONFIG_LPD7A400,
- CONFIG_LUBBOCK, CONFIG_OSK_OMAP5912, CONFIG_OMAP2420H4,
- CONFIG_SHANNON, CONFIG_P2_OMAP730, CONFIG_SMDK2400,
-- CONFIG_SMDK2410, CONFIG_TRAB, CONFIG_VCMA9
-+ CONFIG_SMDK2410, CONFIG_TRAB, CONFIG_VCMA9,
-+ CONFIG_AKITA, CONFIG_CORGI
-
- MicroBlaze based boards:
- ------------------------
-diff -Nur u-boot-2006-04-18-1106/board/akita/Makefile u-boot-2006-04-18-1106-new/board/akita/Makefile
---- u-boot-2006-04-18-1106/board/akita/Makefile 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/Makefile 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,51 @@
-+#
-+# board/akita/Makefile
-+#
-+# (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+#
-+# (C) Copyright 2000
-+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-+#
-+# See file CREDITS for list of people who contributed to this
-+# project.
-+#
-+# This program is free software; you can redistribute it and/or
-+# modify it under the terms of the GNU General Public License as
-+# published by the Free Software Foundation; either version 2 of
-+# the License, or (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+# MA 02111-1307 USA
-+#
-+
-+include $(TOPDIR)/config.mk
-+
-+LIB = lib$(BOARD).a
-+
-+OBJS := akita.o nand.o kbd.o
-+SOBJS := lowlevel_init.o
-+
-+$(LIB): $(OBJS) $(SOBJS)
-+ $(AR) crv $@ $(OBJS) $(SOBJS)
-+
-+clean:
-+ rm -f $(SOBJS) $(OBJS)
-+
-+distclean: clean
-+ rm -f $(LIB) core *.bak .depend
-+
-+#########################################################################
-+
-+.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
-+ $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
-+
-+-include .depend
-+
-+#########################################################################
-diff -Nur u-boot-2006-04-18-1106/board/akita/akita.c u-boot-2006-04-18-1106-new/board/akita/akita.c
---- u-boot-2006-04-18-1106/board/akita/akita.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/akita.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,89 @@
-+/*
-+ * board/akita/akita.c
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-Cxx00.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from adsvix board configuration:
-+ * (C) Copyright 2004
-+ * Robert Whaley, Applied Data Systems, Inc. rwhaley@applieddata.net
-+ * (C) Copyright 2002
-+ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
-+ * (C) Copyright 2002
-+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-+ * Marius Groeger <mgroeger@sysgo.de>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+
-+void set_turbo_mode(void);
-+
-+/* ------------------------------------------------------------------------- */
-+
-+/*
-+ * Miscellaneous platform dependent initialisations
-+ */
-+
-+int board_init (void)
-+{
-+ DECLARE_GLOBAL_DATA_PTR;
-+
-+ /* memory and cpu-speed are setup before relocation */
-+ /* so we do _nothing_ here */
-+
-+ /* arch number of Sharp Zaurus Akita : MACH_TYPE_AKITA */
-+ gd->bd->bi_arch_number = 744;
-+
-+ /* adress of boot parameters */
-+ gd->bd->bi_boot_params = 0xa0000100;
-+
-+ /* set cpu turbo mode */
-+ set_turbo_mode();
-+
-+ spitzkbd_init();
-+
-+ return 0;
-+}
-+
-+int board_late_init(void)
-+{
-+ setenv("stdout", "serial");
-+ setenv("stderr", "serial");
-+ return 0;
-+}
-+
-+
-+int dram_init (void)
-+{
-+ DECLARE_GLOBAL_DATA_PTR;
-+
-+ gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-+ gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-+ gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-+ gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
-+ gd->bd->bi_dram[2].start = PHYS_SDRAM_3;
-+ gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE;
-+ gd->bd->bi_dram[3].start = PHYS_SDRAM_4;
-+ gd->bd->bi_dram[3].size = PHYS_SDRAM_4_SIZE;
-+
-+ return 0;
-+}
-diff -Nur u-boot-2006-04-18-1106/board/akita/config.mk u-boot-2006-04-18-1106-new/board/akita/config.mk
---- u-boot-2006-04-18-1106/board/akita/config.mk 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/config.mk 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1 @@
-+TEXT_BASE = 0xa3000000
-diff -Nur u-boot-2006-04-18-1106/board/akita/kbd.c u-boot-2006-04-18-1106-new/board/akita/kbd.c
---- u-boot-2006-04-18-1106/board/akita/kbd.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/kbd.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,261 @@
-+/*
-+ * board/akita/kbd.c
-+ *
-+ * Keyboard driver for the Sharp Zaurus SL-Cxx00.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from:
-+ *
-+ * linux/drivers/input/keyboard/spitzkbd.c
-+ *
-+ * Keyboard driver for Sharp Spitz, Borzoi and Akita (SL-Cxx00 series)
-+ *
-+ * Copyright (C) 2005 Richard Purdie
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+#include <command.h>
-+#include <config.h>
-+#include <version.h>
-+#include <asm/arch/pxa-regs.h>
-+
-+#define GPIO_DFLT_LOW 0x400
-+#define GPIO_DFLT_HIGH 0x800
-+
-+void pxa_gpio_mode(int gpio_mode)
-+{
-+ int gpio = gpio_mode & GPIO_MD_MASK_NR;
-+ int fn = (gpio_mode & GPIO_MD_MASK_FN) >> 8;
-+ int gafr;
-+
-+ if (gpio_mode & GPIO_DFLT_LOW)
-+ GPCR(gpio) = GPIO_bit(gpio);
-+ else if (gpio_mode & GPIO_DFLT_HIGH)
-+ GPSR(gpio) = GPIO_bit(gpio);
-+ if (gpio_mode & GPIO_MD_MASK_DIR)
-+ GPDR(gpio) |= GPIO_bit(gpio);
-+ else
-+ GPDR(gpio) &= ~GPIO_bit(gpio);
-+ gafr = GAFR(gpio) & ~(0x3 << (((gpio) & 0xf)*2));
-+ GAFR(gpio) = gafr | (fn << (((gpio) & 0xf)*2));
-+}
-+
-+#define SPITZ_KEY_STROBE_NUM (11)
-+#define SPITZ_KEY_SENSE_NUM (7)
-+
-+#define SPITZ_GPIO_G0_STROBE_BIT 0x0f800000
-+#define SPITZ_GPIO_G1_STROBE_BIT 0x00100000
-+#define SPITZ_GPIO_G2_STROBE_BIT 0x01000000
-+#define SPITZ_GPIO_G3_STROBE_BIT 0x00041880
-+#define SPITZ_GPIO_G0_SENSE_BIT 0x00021000
-+#define SPITZ_GPIO_G1_SENSE_BIT 0x000000d4
-+#define SPITZ_GPIO_G2_SENSE_BIT 0x08000000
-+#define SPITZ_GPIO_G3_SENSE_BIT 0x00000000
-+
-+#define SPITZ_GPIO_KEY_STROBE0 88
-+#define SPITZ_GPIO_KEY_STROBE1 23
-+#define SPITZ_GPIO_KEY_STROBE2 24
-+#define SPITZ_GPIO_KEY_STROBE3 25
-+#define SPITZ_GPIO_KEY_STROBE4 26
-+#define SPITZ_GPIO_KEY_STROBE5 27
-+#define SPITZ_GPIO_KEY_STROBE6 52
-+#define SPITZ_GPIO_KEY_STROBE7 103
-+#define SPITZ_GPIO_KEY_STROBE8 107
-+#define SPITZ_GPIO_KEY_STROBE9 108
-+#define SPITZ_GPIO_KEY_STROBE10 114
-+
-+#define SPITZ_GPIO_KEY_SENSE0 12
-+#define SPITZ_GPIO_KEY_SENSE1 17
-+#define SPITZ_GPIO_KEY_SENSE2 91
-+#define SPITZ_GPIO_KEY_SENSE3 34
-+#define SPITZ_GPIO_KEY_SENSE4 36
-+#define SPITZ_GPIO_KEY_SENSE5 38
-+#define SPITZ_GPIO_KEY_SENSE6 39
-+
-+#define SPITZ_GPIO_ON_KEY (95)
-+
-+#define KB_ROWS 7
-+#define KB_COLS 11
-+#define KB_ROWMASK(r) (1 << (r))
-+#define SCANCODE(r,c) (((r)<<4) + (c) + 1)
-+#define NR_SCANCODES ((KB_ROWS<<4) + 1)
-+
-+#define SCAN_INTERVAL (50) /* ms */
-+#define HINGE_SCAN_INTERVAL (150) /* ms */
-+
-+#define KB_DISCHARGE_DELAY 10
-+#define KB_ACTIVATE_DELAY 10
-+
-+static int spitz_strobes[] = {
-+ SPITZ_GPIO_KEY_STROBE0,
-+ SPITZ_GPIO_KEY_STROBE1,
-+ SPITZ_GPIO_KEY_STROBE2,
-+ SPITZ_GPIO_KEY_STROBE3,
-+ SPITZ_GPIO_KEY_STROBE4,
-+ SPITZ_GPIO_KEY_STROBE5,
-+ SPITZ_GPIO_KEY_STROBE6,
-+ SPITZ_GPIO_KEY_STROBE7,
-+ SPITZ_GPIO_KEY_STROBE8,
-+ SPITZ_GPIO_KEY_STROBE9,
-+ SPITZ_GPIO_KEY_STROBE10,
-+};
-+
-+static int spitz_senses[] = {
-+ SPITZ_GPIO_KEY_SENSE0,
-+ SPITZ_GPIO_KEY_SENSE1,
-+ SPITZ_GPIO_KEY_SENSE2,
-+ SPITZ_GPIO_KEY_SENSE3,
-+ SPITZ_GPIO_KEY_SENSE4,
-+ SPITZ_GPIO_KEY_SENSE5,
-+ SPITZ_GPIO_KEY_SENSE6,
-+};
-+
-+static inline void spitzkbd_discharge_all(void)
-+{
-+ /* STROBE All HiZ */
-+ GPCR0 = SPITZ_GPIO_G0_STROBE_BIT;
-+ GPDR0 &= ~SPITZ_GPIO_G0_STROBE_BIT;
-+ GPCR1 = SPITZ_GPIO_G1_STROBE_BIT;
-+ GPDR1 &= ~SPITZ_GPIO_G1_STROBE_BIT;
-+ GPCR2 = SPITZ_GPIO_G2_STROBE_BIT;
-+ GPDR2 &= ~SPITZ_GPIO_G2_STROBE_BIT;
-+ GPCR3 = SPITZ_GPIO_G3_STROBE_BIT;
-+ GPDR3 &= ~SPITZ_GPIO_G3_STROBE_BIT;
-+}
-+
-+static inline void spitzkbd_activate_all(void)
-+{
-+ /* STROBE ALL -> High */
-+ GPSR0 = SPITZ_GPIO_G0_STROBE_BIT;
-+ GPDR0 |= SPITZ_GPIO_G0_STROBE_BIT;
-+ GPSR1 = SPITZ_GPIO_G1_STROBE_BIT;
-+ GPDR1 |= SPITZ_GPIO_G1_STROBE_BIT;
-+ GPSR2 = SPITZ_GPIO_G2_STROBE_BIT;
-+ GPDR2 |= SPITZ_GPIO_G2_STROBE_BIT;
-+ GPSR3 = SPITZ_GPIO_G3_STROBE_BIT;
-+ GPDR3 |= SPITZ_GPIO_G3_STROBE_BIT;
-+
-+ udelay(KB_DISCHARGE_DELAY);
-+}
-+
-+static inline void spitzkbd_activate_col(int col)
-+{
-+ int gpio = spitz_strobes[col];
-+ GPDR0 &= ~SPITZ_GPIO_G0_STROBE_BIT;
-+ GPDR1 &= ~SPITZ_GPIO_G1_STROBE_BIT;
-+ GPDR2 &= ~SPITZ_GPIO_G2_STROBE_BIT;
-+ GPDR3 &= ~SPITZ_GPIO_G3_STROBE_BIT;
-+ GPSR(gpio) = GPIO_bit(gpio);
-+ GPDR(gpio) |= GPIO_bit(gpio);
-+}
-+
-+static inline void spitzkbd_reset_col(int col)
-+{
-+ int gpio = spitz_strobes[col];
-+ GPDR0 &= ~SPITZ_GPIO_G0_STROBE_BIT;
-+ GPDR1 &= ~SPITZ_GPIO_G1_STROBE_BIT;
-+ GPDR2 &= ~SPITZ_GPIO_G2_STROBE_BIT;
-+ GPDR3 &= ~SPITZ_GPIO_G3_STROBE_BIT;
-+ GPCR(gpio) = GPIO_bit(gpio);
-+ GPDR(gpio) |= GPIO_bit(gpio);
-+}
-+
-+static inline int spitzkbd_get_row_status(int col)
-+{
-+ return ((GPLR0 >> 12) & 0x01) | ((GPLR0 >> 16) & 0x02)
-+ | ((GPLR2 >> 25) & 0x04) | ((GPLR1 << 1) & 0x08)
-+ | ((GPLR1 >> 0) & 0x10) | ((GPLR1 >> 1) & 0x60);
-+}
-+
-+static int spitzkbd_scankeyboard(void)
-+{
-+ unsigned int row, col, rowd;
-+ unsigned int num_pressed, pwrkey = ((GPLR(SPITZ_GPIO_ON_KEY) & GPIO_bit(SPITZ_GPIO_ON_KEY)) != 0);
-+ int ret = -1;
-+
-+ num_pressed = 0;
-+ for (col = 0; col < KB_COLS; col++) {
-+ spitzkbd_discharge_all();
-+ udelay(KB_DISCHARGE_DELAY);
-+
-+ spitzkbd_activate_col(col);
-+ udelay(KB_ACTIVATE_DELAY);
-+
-+ rowd = spitzkbd_get_row_status(col);
-+ for (row = 0; row < KB_ROWS; row++) {
-+ unsigned int scancode, pressed;
-+
-+ scancode = SCANCODE(row, col);
-+ pressed = rowd & KB_ROWMASK(row);
-+
-+ if (pressed)
-+ ret = scancode;
-+ }
-+ spitzkbd_reset_col(col);
-+ }
-+
-+ spitzkbd_activate_all();
-+
-+ if (pwrkey)
-+ return -2;
-+
-+ return ret;
-+}
-+
-+void spitzkbd_init(void)
-+{
-+ int i;
-+
-+ /* Setup sense interrupts - RisingEdge Detect, sense lines as inputs */
-+ for (i = 0; i < SPITZ_KEY_SENSE_NUM; i++)
-+ pxa_gpio_mode(spitz_senses[i] | GPIO_IN);
-+
-+ /* Set Strobe lines as outputs - set high */
-+ for (i = 0; i < SPITZ_KEY_STROBE_NUM; i++)
-+ pxa_gpio_mode(spitz_strobes[i] | GPIO_OUT | GPIO_DFLT_HIGH);
-+
-+ pxa_gpio_mode(SPITZ_GPIO_ON_KEY | GPIO_IN);
-+}
-+
-+int do_testkey(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
-+{
-+ int scan;
-+
-+ if (argc < 2)
-+ return 1;
-+
-+ scan = spitzkbd_scankeyboard();
-+
-+
-+// if (scan >= 0)
-+// printf("Scan = %d\n", scan);
-+// else
-+// printf("Nothing!\n");
-+
-+ return !(simple_strtol(argv[1], NULL, 10) == scan);
-+}
-+
-+U_BOOT_CMD(
-+ testkey, 2, 1, do_testkey,
-+ "testkey - compare pressed key with arg\n",
-+ "<key scancode>"
-+);
-diff -Nur u-boot-2006-04-18-1106/board/akita/lowlevel_init.S u-boot-2006-04-18-1106-new/board/akita/lowlevel_init.S
---- u-boot-2006-04-18-1106/board/akita/lowlevel_init.S 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/lowlevel_init.S 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,135 @@
-+/*
-+ * board/akita/lowlevel_init.S
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-Cxx00.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * This was originally from the Lubbock u-boot port and from BLOB with cleanup
-+ *
-+ * NOTE: I haven't clean this up considerably, just enough to get it
-+ * running. See hal_platform_setup.h for the source. See
-+ * board/cradle/lowlevel_init.S for another PXA250 setup that is
-+ * much cleaner.
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <config.h>
-+#include <version.h>
-+#include <asm/arch/pxa-regs.h>
-+
-+/* wait for coprocessor write complete */
-+ .macro CPWAIT reg
-+ mrc p15,0,\reg,c2,c0,0
-+ mov \reg,\reg
-+ sub pc,pc,#4
-+ .endm
-+
-+/*********** Write out to HEX 7 segment leds *********/
-+
-+#undef DEBUG_HEXLOG
-+
-+#ifdef DEBUG_HEXLOG
-+#define LEDCTL 0x08000040
-+#define LEDDAT1 0x08000010
-+#define LEDDAT2 0x08000014
-+
-+.macro wait, count
-+ mov r10, \count
-+0:
-+ subs r10, r10, #1
-+ bne 0b
-+.endm
-+
-+.macro hexlog_init
-+ ldr r11, =LEDCTL
-+ mov r10, #0xff
-+ str r10, [r11]
-+ ldr r11, =LEDDAT2
-+ mov r10, #0xFFFFFFFF
-+ str r10, [r11]
-+ ldr r11, =LEDDAT1
-+ mov r10, #0x0
-+ str r10, [r11]
-+.endm
-+
-+.macro hexlog, val
-+ ldr r11, =LEDCTL
-+ mov r10, #0xff
-+ str r10, [r11]
-+ ldr r11, =LEDDAT2
-+ mov r10, #0xFFFFFFFF
-+ str r10, [r11]
-+
-+ ldr r11, =LEDDAT1
-+ mov r10, \val
-+ str r10, [r11]
-+
-+ wait #0x400000
-+.endm
-+
-+#else
-+
-+.macro hexlog_init
-+ nop
-+.endm
-+
-+.macro hexlog, val
-+ nop
-+.endm
-+
-+#endif
-+
-+/***********************************/
-+
-+/*
-+ * Memory setup
-+ */
-+
-+.globl lowlevel_init
-+lowlevel_init:
-+
-+ mov pc, lr
-+
-+.globl set_turbo_mode
-+
-+set_turbo_mode:
-+ /* Turn on turbo mode */
-+ mrc p14, 0, r2, c6, c0, 0
-+ orr r2, r2, #0xB /* Turbo, Fast-Bus, Freq change**/
-+ mcr p14, 0, r2, c6, c0, 0
-+
-+ /* Setup vectors */
-+ ldr r0, =TEXT_BASE
-+ ldr r1, =TEXT_BASE+0x40
-+ ldr r2, =0x0
-+1:
-+ ldr r3, [r0]
-+ str r3, [r2]
-+ add r0, r0, #4
-+ add r2, r2, #4
-+ cmp r0, r1
-+ bne 1b
-+
-+ ldr r0, =0x0
-+ ldr r1, [r0, #4]
-+ str r1, [r0]
-+
-+ mov pc, lr
-diff -Nur u-boot-2006-04-18-1106/board/akita/nand.c u-boot-2006-04-18-1106-new/board/akita/nand.c
---- u-boot-2006-04-18-1106/board/akita/nand.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/nand.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,169 @@
-+/*
-+ * board/akita/nand.c
-+ *
-+ * NAND driver for the Sharp Zaurus SL-Cxx00.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from mtd nand driver:
-+ *
-+ * drivers/mtd/nand/sharpsl.c
-+ *
-+ * Copyright (C) 2004 Richard Purdie
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_NAND)
-+
-+#include <nand.h>
-+#include <linux/mtd/nand_ecc.h>
-+
-+static int sharpsl_io_base = CFG_NAND_BASE;
-+
-+/* register offset */
-+#define ECCLPLB sharpsl_io_base+0x00 /* line parity 7 - 0 bit */
-+#define ECCLPUB sharpsl_io_base+0x04 /* line parity 15 - 8 bit */
-+#define ECCCP sharpsl_io_base+0x08 /* column parity 5 - 0 bit */
-+#define ECCCNTR sharpsl_io_base+0x0C /* ECC byte counter */
-+#define ECCCLRR sharpsl_io_base+0x10 /* cleare ECC */
-+#define FLASHIO sharpsl_io_base+0x14 /* Flash I/O */
-+#define FLASHCTL sharpsl_io_base+0x18 /* Flash Control */
-+
-+/* Flash control bit */
-+#define FLRYBY (1 << 5)
-+#define FLCE1 (1 << 4)
-+#define FLWP (1 << 3)
-+#define FLALE (1 << 2)
-+#define FLCLE (1 << 1)
-+#define FLCE0 (1 << 0)
-+
-+#define readb(address) *((volatile unsigned char *)(address))
-+#define writeb(v, address) *((volatile unsigned char *)(address))=v
-+
-+/*
-+ * hardware specific access to control-lines
-+ */
-+static void
-+sharpsl_nand_hwcontrol(struct mtd_info* mtd, int cmd)
-+{
-+ switch (cmd) {
-+ case NAND_CTL_SETCLE:
-+ writeb(readb(FLASHCTL) | FLCLE, FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRCLE:
-+ writeb(readb(FLASHCTL) & ~FLCLE, FLASHCTL);
-+ break;
-+
-+ case NAND_CTL_SETALE:
-+ writeb(readb(FLASHCTL) | FLALE, FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRALE:
-+ writeb(readb(FLASHCTL) & ~FLALE, FLASHCTL);
-+ break;
-+
-+ case NAND_CTL_SETNCE:
-+ writeb(readb(FLASHCTL) & ~(FLCE0|FLCE1), FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRNCE:
-+ writeb(readb(FLASHCTL) | (FLCE0|FLCE1), FLASHCTL);
-+ break;
-+ }
-+}
-+
-+static int
-+sharpsl_nand_dev_ready(struct mtd_info* mtd)
-+{
-+ return !((readb(FLASHCTL) & FLRYBY) == 0);
-+}
-+
-+static void
-+sharpsl_nand_enable_hwecc(struct mtd_info* mtd, int mode)
-+{
-+ writeb(0 ,ECCCLRR);
-+}
-+
-+static int
-+sharpsl_nand_calculate_ecc(struct mtd_info* mtd, const u_char* dat,
-+ u_char* ecc_code)
-+{
-+ ecc_code[0] = ~readb(ECCLPUB);
-+ ecc_code[1] = ~readb(ECCLPLB);
-+ ecc_code[2] = (~readb(ECCCP) << 2) | 0x03;
-+ return readb(ECCCNTR) != 0;
-+}
-+
-+static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
-+
-+static struct nand_bbt_descr sharpsl_akita_bbt = {
-+ .options = 0,
-+ .offs = 4,
-+ .len = 1,
-+ .pattern = scan_ff_pattern
-+};
-+
-+static struct nand_oobinfo akita_oobinfo = {
-+ .useecc = MTD_NANDECC_AUTOPLACE,
-+ .eccbytes = 24,
-+ .eccpos = {
-+ 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11,
-+ 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23,
-+ 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37},
-+ .oobfree = { {0x08, 0x09} }
-+};
-+
-+/*
-+ * Board-specific NAND initialization. The following members of the
-+ * argument are board-specific (per include/linux/mtd/nand.h):
-+ * - IO_ADDR_R?: address to read the 8 I/O lines of the flash device
-+ * - IO_ADDR_W?: address to write the 8 I/O lines of the flash device
-+ * - hwcontrol: hardwarespecific function for accesing control-lines
-+ * - dev_ready: hardwarespecific function for accesing device ready/busy line
-+ * - enable_hwecc?: function to enable (reset) hardware ecc generator. Must
-+ * only be provided if a hardware ECC is available
-+ * - eccmode: mode of ecc, see defines
-+ * - chip_delay: chip dependent delay for transfering data from array to
-+ * read regs (tR)
-+ * - options: various chip options. They can partly be set to inform
-+ * nand_scan about special functionality. See the defines for further
-+ * explanation
-+ * Members with a "?" were not set in the merged testing-NAND branch,
-+ * so they are not set here either.
-+ */
-+void board_nand_init(struct nand_chip *nand)
-+{
-+ writeb(readb(FLASHCTL) | FLWP, FLASHCTL);
-+
-+ nand->IO_ADDR_R = FLASHIO;
-+ nand->IO_ADDR_W = FLASHIO;
-+ nand->hwcontrol = sharpsl_nand_hwcontrol;
-+ nand->dev_ready = sharpsl_nand_dev_ready;
-+ nand->eccmode = NAND_ECC_HW3_256;
-+ nand->chip_delay = 15;
-+ nand->options = NAND_SAMSUNG_LP_OPTIONS;
-+ nand->badblock_pattern = &sharpsl_akita_bbt;
-+ nand->autooob = &akita_oobinfo;
-+ nand->enable_hwecc = sharpsl_nand_enable_hwecc;
-+ nand->calculate_ecc = sharpsl_nand_calculate_ecc;
-+ nand->correct_data = nand_correct_data;
-+}
-+#endif /* (CONFIG_COMMANDS & CFG_CMD_NAND) */
-diff -Nur u-boot-2006-04-18-1106/board/akita/u-boot.lds u-boot-2006-04-18-1106-new/board/akita/u-boot.lds
---- u-boot-2006-04-18-1106/board/akita/u-boot.lds 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/akita/u-boot.lds 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,56 @@
-+/*
-+ * (C) Copyright 2000
-+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
-+OUTPUT_ARCH(arm)
-+ENTRY(_start)
-+SECTIONS
-+{
-+ . = 0x00000000;
-+
-+ . = ALIGN(4);
-+ .text :
-+ {
-+ cpu/pxa/start.o (.text)
-+ *(.text)
-+ }
-+
-+ . = ALIGN(4);
-+ .rodata : { *(.rodata) }
-+
-+ . = ALIGN(4);
-+ .data : { *(.data) }
-+
-+ . = ALIGN(4);
-+ .got : { *(.got) }
-+
-+ . = .;
-+ __u_boot_cmd_start = .;
-+ .u_boot_cmd : { *(.u_boot_cmd) }
-+ __u_boot_cmd_end = .;
-+
-+ . = ALIGN(4);
-+ __bss_start = .;
-+ .bss : { *(.bss) }
-+ _end = .;
-+}
-diff -Nur u-boot-2006-04-18-1106/board/corgi/Makefile u-boot-2006-04-18-1106-new/board/corgi/Makefile
---- u-boot-2006-04-18-1106/board/corgi/Makefile 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/Makefile 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,51 @@
-+#
-+# board/corgi/Makefile
-+#
-+# (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+#
-+# (C) Copyright 2000
-+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-+#
-+# See file CREDITS for list of people who contributed to this
-+# project.
-+#
-+# This program is free software; you can redistribute it and/or
-+# modify it under the terms of the GNU General Public License as
-+# published by the Free Software Foundation; either version 2 of
-+# the License, or (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+# MA 02111-1307 USA
-+#
-+
-+include $(TOPDIR)/config.mk
-+
-+LIB = lib$(BOARD).a
-+
-+OBJS := corgi.o nand.o kbd.o
-+SOBJS := lowlevel_init.o
-+
-+$(LIB): $(OBJS) $(SOBJS)
-+ $(AR) crv $@ $(OBJS) $(SOBJS)
-+
-+clean:
-+ rm -f $(SOBJS) $(OBJS)
-+
-+distclean: clean
-+ rm -f $(LIB) core *.bak .depend
-+
-+#########################################################################
-+
-+.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
-+ $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
-+
-+-include .depend
-+
-+#########################################################################
-diff -Nur u-boot-2006-04-18-1106/board/corgi/config.mk u-boot-2006-04-18-1106-new/board/corgi/config.mk
---- u-boot-2006-04-18-1106/board/corgi/config.mk 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/config.mk 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1 @@
-+TEXT_BASE = 0xa1000000
-diff -Nur u-boot-2006-04-18-1106/board/corgi/corgi.c u-boot-2006-04-18-1106-new/board/corgi/corgi.c
---- u-boot-2006-04-18-1106/board/corgi/corgi.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/corgi.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,87 @@
-+/*
-+ * board/corgi/corgi.c
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-C7x0/860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from adsvix board configuration:
-+ * (C) Copyright 2004
-+ * Robert Whaley, Applied Data Systems, Inc. rwhaley@applieddata.net
-+ * (C) Copyright 2002
-+ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
-+ * (C) Copyright 2002
-+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-+ * Marius Groeger <mgroeger@sysgo.de>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+
-+/* ------------------------------------------------------------------------- */
-+
-+/*
-+ * Miscellaneous platform dependent initialisations
-+ */
-+
-+int board_init (void)
-+{
-+ DECLARE_GLOBAL_DATA_PTR;
-+
-+ /* memory and cpu-speed are setup before relocation */
-+ /* so we do _nothing_ here */
-+
-+ /* arch number of Sharp Zaurus Corgi : MACH_TYPE_CORGI */
-+ gd->bd->bi_arch_number = 423;
-+
-+ /* adress of boot parameters */
-+ gd->bd->bi_boot_params = 0xa0000100;
-+
-+ /* set cpu turbo mode */
-+ set_turbo_mode();
-+
-+ corgikbd_init();
-+
-+ return 0;
-+}
-+
-+int board_late_init(void)
-+{
-+ setenv("stdout", "serial");
-+ setenv("stderr", "serial");
-+ return 0;
-+}
-+
-+
-+int dram_init (void)
-+{
-+ DECLARE_GLOBAL_DATA_PTR;
-+
-+ gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-+ gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-+ gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-+ gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
-+ gd->bd->bi_dram[2].start = PHYS_SDRAM_3;
-+ gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE;
-+ gd->bd->bi_dram[3].start = PHYS_SDRAM_4;
-+ gd->bd->bi_dram[3].size = PHYS_SDRAM_4_SIZE;
-+
-+ return 0;
-+}
-diff -Nur u-boot-2006-04-18-1106/board/corgi/kbd.c u-boot-2006-04-18-1106-new/board/corgi/kbd.c
---- u-boot-2006-04-18-1106/board/corgi/kbd.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/kbd.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,202 @@
-+/*
-+ * board/corgi/kbd.c
-+ *
-+ * Keyboard driver for the Sharp Zaurus SL-C7x0/860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from:
-+ *
-+ * linux/drivers/input/keyboard/spitzkbd.c
-+ *
-+ * Keyboard driver for Sharp Corgi models (SL-C7xx)
-+ *
-+ * Copyright (C) 2005 Richard Purdie
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+#include <command.h>
-+#include <config.h>
-+#include <version.h>
-+#include <asm/arch/pxa-regs.h>
-+
-+#define GPIO_DFLT_LOW 0x400
-+#define GPIO_DFLT_HIGH 0x800
-+
-+void pxa_gpio_mode(int gpio_mode)
-+{
-+ int gpio = gpio_mode & GPIO_MD_MASK_NR;
-+ int fn = (gpio_mode & GPIO_MD_MASK_FN) >> 8;
-+ int gafr;
-+
-+ if (gpio_mode & GPIO_DFLT_LOW)
-+ GPCR(gpio) = GPIO_bit(gpio);
-+ else if (gpio_mode & GPIO_DFLT_HIGH)
-+ GPSR(gpio) = GPIO_bit(gpio);
-+ if (gpio_mode & GPIO_MD_MASK_DIR)
-+ GPDR(gpio) |= GPIO_bit(gpio);
-+ else
-+ GPDR(gpio) &= ~GPIO_bit(gpio);
-+ gafr = GAFR(gpio) & ~(0x3 << (((gpio) & 0xf)*2));
-+ GAFR(gpio) = gafr | (fn << (((gpio) & 0xf)*2));
-+}
-+
-+/*
-+ * Corgi Keyboard Definitions
-+ */
-+#define CORGI_KEY_STROBE_NUM (12)
-+#define CORGI_KEY_SENSE_NUM (8)
-+#define CORGI_GPIO_ALL_STROBE_BIT (0x00003ffc)
-+#define CORGI_GPIO_HIGH_SENSE_BIT (0xfc000000)
-+#define CORGI_GPIO_HIGH_SENSE_RSHIFT (26)
-+#define CORGI_GPIO_LOW_SENSE_BIT (0x00000003)
-+#define CORGI_GPIO_LOW_SENSE_LSHIFT (6)
-+#define CORGI_GPIO_STROBE_BIT(a) GPIO_bit(66+(a))
-+#define CORGI_GPIO_SENSE_BIT(a) GPIO_bit(58+(a))
-+#define CORGI_GAFR_ALL_STROBE_BIT (0x0ffffff0)
-+#define CORGI_GAFR_HIGH_SENSE_BIT (0xfff00000)
-+#define CORGI_GAFR_LOW_SENSE_BIT (0x0000000f)
-+#define CORGI_GPIO_KEY_SENSE(a) (58+(a))
-+#define CORGI_GPIO_KEY_STROBE(a) (66+(a))
-+
-+#define CORGI_GPIO_AK_INT (4) /* Headphone Jack Control Interrupt */
-+
-+#define KB_ROWS 8
-+#define KB_COLS 12
-+#define KB_ROWMASK(r) (1 << (r))
-+#define SCANCODE(r,c) ( ((r)<<4) + (c) + 1 )
-+/* zero code, 124 scancodes */
-+#define NR_SCANCODES ( SCANCODE(KB_ROWS-1,KB_COLS-1) +1 +1 )
-+
-+#define SCAN_INTERVAL (50) /* ms */
-+#define HINGE_SCAN_INTERVAL (250) /* ms */
-+
-+#define KB_DISCHARGE_DELAY 10
-+#define KB_ACTIVATE_DELAY 10
-+
-+static inline void corgikbd_discharge_all(void)
-+{
-+ /* STROBE All HiZ */
-+ GPCR2 = CORGI_GPIO_ALL_STROBE_BIT;
-+ GPDR2 &= ~CORGI_GPIO_ALL_STROBE_BIT;
-+}
-+
-+static inline void corgikbd_activate_all(void)
-+{
-+ /* STROBE ALL -> High */
-+ GPSR2 = CORGI_GPIO_ALL_STROBE_BIT;
-+ GPDR2 |= CORGI_GPIO_ALL_STROBE_BIT;
-+
-+ udelay(KB_DISCHARGE_DELAY);
-+
-+ /* Clear any interrupts we may have triggered when altering the GPIO lines */
-+ GEDR1 = CORGI_GPIO_HIGH_SENSE_BIT;
-+ GEDR2 = CORGI_GPIO_LOW_SENSE_BIT;
-+}
-+
-+static inline void corgikbd_activate_col(int col)
-+{
-+ /* STROBE col -> High, not col -> HiZ */
-+ GPSR2 = CORGI_GPIO_STROBE_BIT(col);
-+ GPDR2 = (GPDR2 & ~CORGI_GPIO_ALL_STROBE_BIT) | CORGI_GPIO_STROBE_BIT(col);
-+}
-+
-+static inline void corgikbd_reset_col(int col)
-+{
-+ /* STROBE col -> Low */
-+ GPCR2 = CORGI_GPIO_STROBE_BIT(col);
-+ /* STROBE col -> out, not col -> HiZ */
-+ GPDR2 = (GPDR2 & ~CORGI_GPIO_ALL_STROBE_BIT) | CORGI_GPIO_STROBE_BIT(col);
-+}
-+
-+#define GET_ROWS_STATUS(c) (((GPLR1 & CORGI_GPIO_HIGH_SENSE_BIT) >> CORGI_GPIO_HIGH_SENSE_RSHIFT) | ((GPLR2 & CORGI_GPIO_LOW_SENSE_BIT) << CORGI_GPIO_LOW_SENSE_LSHIFT))
-+
-+static int corgikbd_scankeyboard(void)
-+{
-+ unsigned int row, col, rowd;
-+ unsigned int num_pressed;
-+ int ret = -1;
-+
-+ num_pressed = 0;
-+ for (col = 0; col < KB_COLS; col++) {
-+ corgikbd_discharge_all();
-+ udelay(KB_DISCHARGE_DELAY);
-+
-+ corgikbd_activate_col(col);
-+ udelay(KB_ACTIVATE_DELAY);
-+
-+ rowd = GET_ROWS_STATUS(col);
-+ for (row = 0; row < KB_ROWS; row++) {
-+ unsigned int scancode, pressed;
-+
-+ scancode = SCANCODE(row, col);
-+ pressed = rowd & KB_ROWMASK(row);
-+
-+ if (pressed)
-+ ret = scancode;
-+ }
-+ corgikbd_reset_col(col);
-+ }
-+
-+ corgikbd_activate_all();
-+
-+ return ret;
-+}
-+
-+void corgikbd_init(void)
-+{
-+ int i;
-+
-+ /* Setup sense interrupts - RisingEdge Detect, sense lines as inputs */
-+ for (i = 0; i < CORGI_KEY_SENSE_NUM; i++)
-+ pxa_gpio_mode(CORGI_GPIO_KEY_SENSE(i) | GPIO_IN);
-+
-+ /* Set Strobe lines as outputs - set high */
-+ for (i = 0; i < CORGI_KEY_STROBE_NUM; i++)
-+ pxa_gpio_mode(CORGI_GPIO_KEY_STROBE(i) | GPIO_OUT | GPIO_DFLT_HIGH);
-+
-+ /* Setup the headphone jack as an input */
-+ pxa_gpio_mode(CORGI_GPIO_AK_INT | GPIO_IN);
-+}
-+
-+int do_testkey(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
-+{
-+ int scan;
-+
-+ if (argc < 2)
-+ return 1;
-+
-+ scan = corgikbd_scankeyboard();
-+
-+
-+// if (scan >= 0)
-+// printf("Scan = %d\n", scan);
-+// else
-+// printf("Nothing!\n");
-+
-+ return !(simple_strtol(argv[1], NULL, 10) == scan);
-+}
-+
-+U_BOOT_CMD(
-+ testkey, 2, 1, do_testkey,
-+ "testkey - compare pressed key with arg\n",
-+ "<key scancode>"
-+);
-diff -Nur u-boot-2006-04-18-1106/board/corgi/lowlevel_init.S u-boot-2006-04-18-1106-new/board/corgi/lowlevel_init.S
---- u-boot-2006-04-18-1106/board/corgi/lowlevel_init.S 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/lowlevel_init.S 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,136 @@
-+/*
-+ * board/corgi/lowlevel_init.S
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-C7x0/860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * This was originally from the Lubbock u-boot port and from BLOB with cleanup
-+ *
-+ * NOTE: I haven't clean this up considerably, just enough to get it
-+ * running. See hal_platform_setup.h for the source. See
-+ * board/cradle/lowlevel_init.S for another PXA250 setup that is
-+ * much cleaner.
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <config.h>
-+#include <version.h>
-+#include <asm/arch/pxa-regs.h>
-+
-+/* wait for coprocessor write complete */
-+ .macro CPWAIT reg
-+ mrc p15,0,\reg,c2,c0,0
-+ mov \reg,\reg
-+ sub pc,pc,#4
-+ .endm
-+
-+/*********** Write out to HEX 7 segment leds *********/
-+
-+#undef DEBUG_HEXLOG
-+
-+#ifdef DEBUG_HEXLOG
-+#define LEDCTL 0x08000040
-+#define LEDDAT1 0x08000010
-+#define LEDDAT2 0x08000014
-+
-+.macro wait, count
-+ mov r10, \count
-+0:
-+ subs r10, r10, #1
-+ bne 0b
-+.endm
-+
-+.macro hexlog_init
-+ ldr r11, =LEDCTL
-+ mov r10, #0xff
-+ str r10, [r11]
-+ ldr r11, =LEDDAT2
-+ mov r10, #0xFFFFFFFF
-+ str r10, [r11]
-+ ldr r11, =LEDDAT1
-+ mov r10, #0x0
-+ str r10, [r11]
-+.endm
-+
-+.macro hexlog, val
-+ ldr r11, =LEDCTL
-+ mov r10, #0xff
-+ str r10, [r11]
-+ ldr r11, =LEDDAT2
-+ mov r10, #0xFFFFFFFF
-+ str r10, [r11]
-+
-+ ldr r11, =LEDDAT1
-+ mov r10, \val
-+ str r10, [r11]
-+
-+ wait #0x400000
-+.endm
-+
-+#else
-+
-+.macro hexlog_init
-+ nop
-+.endm
-+
-+.macro hexlog, val
-+ nop
-+.endm
-+
-+#endif
-+
-+/***********************************/
-+
-+/*
-+ * Memory setup
-+ */
-+
-+.globl lowlevel_init
-+lowlevel_init:
-+
-+ mov pc, lr
-+
-+.globl set_turbo_mode
-+
-+set_turbo_mode:
-+ /* Turn on turbo mode */
-+ mrc p14, 0, r2, c6, c0, 0
-+ orr r2, r2, #0x3 /* Turbo, Freq change */
-+ mcr p14, 0, r2, c6, c0, 0
-+
-+
-+ /* Setup vectors */
-+ ldr r0, =TEXT_BASE
-+ ldr r1, =TEXT_BASE+0x40
-+ ldr r2, =0x0
-+1:
-+ ldr r3, [r0]
-+ str r3, [r2]
-+ add r0, r0, #4
-+ add r2, r2, #4
-+ cmp r0, r1
-+ bne 1b
-+
-+ ldr r0, =0x0
-+ ldr r1, [r0, #4]
-+ str r1, [r0]
-+
-+ mov pc, lr
-diff -Nur u-boot-2006-04-18-1106/board/corgi/nand.c u-boot-2006-04-18-1106-new/board/corgi/nand.c
---- u-boot-2006-04-18-1106/board/corgi/nand.c 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/nand.c 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,157 @@
-+/*
-+ * board/corgi/nand.c
-+ *
-+ * NAND driver for the Sharp Zaurus SL-C7x0/860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from mtd nand driver:
-+ *
-+ * drivers/mtd/nand/sharpsl.c
-+ *
-+ * Copyright (C) 2004 Richard Purdie
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#include <common.h>
-+
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_NAND)
-+
-+#include <nand.h>
-+#include <linux/mtd/nand_ecc.h>
-+
-+static int sharpsl_io_base = CFG_NAND_BASE;
-+
-+/* register offset */
-+#define ECCLPLB sharpsl_io_base+0x00 /* line parity 7 - 0 bit */
-+#define ECCLPUB sharpsl_io_base+0x04 /* line parity 15 - 8 bit */
-+#define ECCCP sharpsl_io_base+0x08 /* column parity 5 - 0 bit */
-+#define ECCCNTR sharpsl_io_base+0x0C /* ECC byte counter */
-+#define ECCCLRR sharpsl_io_base+0x10 /* cleare ECC */
-+#define FLASHIO sharpsl_io_base+0x14 /* Flash I/O */
-+#define FLASHCTL sharpsl_io_base+0x18 /* Flash Control */
-+
-+/* Flash control bit */
-+#define FLRYBY (1 << 5)
-+#define FLCE1 (1 << 4)
-+#define FLWP (1 << 3)
-+#define FLALE (1 << 2)
-+#define FLCLE (1 << 1)
-+#define FLCE0 (1 << 0)
-+
-+#define readb(address) *((volatile unsigned char *)(address))
-+#define writeb(v, address) *((volatile unsigned char *)(address))=v
-+
-+/*
-+ * hardware specific access to control-lines
-+ */
-+static void
-+sharpsl_nand_hwcontrol(struct mtd_info* mtd, int cmd)
-+{
-+ switch (cmd) {
-+ case NAND_CTL_SETCLE:
-+ writeb(readb(FLASHCTL) | FLCLE, FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRCLE:
-+ writeb(readb(FLASHCTL) & ~FLCLE, FLASHCTL);
-+ break;
-+
-+ case NAND_CTL_SETALE:
-+ writeb(readb(FLASHCTL) | FLALE, FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRALE:
-+ writeb(readb(FLASHCTL) & ~FLALE, FLASHCTL);
-+ break;
-+
-+ case NAND_CTL_SETNCE:
-+ writeb(readb(FLASHCTL) & ~(FLCE0|FLCE1), FLASHCTL);
-+ break;
-+ case NAND_CTL_CLRNCE:
-+ writeb(readb(FLASHCTL) | (FLCE0|FLCE1), FLASHCTL);
-+ break;
-+ }
-+}
-+
-+static int
-+sharpsl_nand_dev_ready(struct mtd_info* mtd)
-+{
-+ return !((readb(FLASHCTL) & FLRYBY) == 0);
-+}
-+
-+static void
-+sharpsl_nand_enable_hwecc(struct mtd_info* mtd, int mode)
-+{
-+ writeb(0 ,ECCCLRR);
-+}
-+
-+static int
-+sharpsl_nand_calculate_ecc(struct mtd_info* mtd, const u_char* dat,
-+ u_char* ecc_code)
-+{
-+ ecc_code[0] = ~readb(ECCLPUB);
-+ ecc_code[1] = ~readb(ECCLPLB);
-+ ecc_code[2] = (~readb(ECCCP) << 2) | 0x03;
-+ return readb(ECCCNTR) != 0;
-+}
-+
-+static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
-+
-+static struct nand_bbt_descr sharpsl_bbt = {
-+ .options = 0,
-+ .offs = 4,
-+ .len = 2,
-+ .pattern = scan_ff_pattern
-+};
-+
-+/*
-+ * Board-specific NAND initialization. The following members of the
-+ * argument are board-specific (per include/linux/mtd/nand.h):
-+ * - IO_ADDR_R?: address to read the 8 I/O lines of the flash device
-+ * - IO_ADDR_W?: address to write the 8 I/O lines of the flash device
-+ * - hwcontrol: hardwarespecific function for accesing control-lines
-+ * - dev_ready: hardwarespecific function for accesing device ready/busy line
-+ * - enable_hwecc?: function to enable (reset) hardware ecc generator. Must
-+ * only be provided if a hardware ECC is available
-+ * - eccmode: mode of ecc, see defines
-+ * - chip_delay: chip dependent delay for transfering data from array to
-+ * read regs (tR)
-+ * - options: various chip options. They can partly be set to inform
-+ * nand_scan about special functionality. See the defines for further
-+ * explanation
-+ * Members with a "?" were not set in the merged testing-NAND branch,
-+ * so they are not set here either.
-+ */
-+void board_nand_init(struct nand_chip *nand)
-+{
-+ writeb(readb(FLASHCTL) | FLWP, FLASHCTL);
-+
-+ nand->IO_ADDR_R = FLASHIO;
-+ nand->IO_ADDR_W = FLASHIO;
-+ nand->hwcontrol = sharpsl_nand_hwcontrol;
-+ nand->dev_ready = sharpsl_nand_dev_ready;
-+ nand->eccmode = NAND_ECC_HW3_256;
-+ nand->chip_delay = 15;
-+ nand->badblock_pattern = &sharpsl_bbt;
-+ nand->enable_hwecc = sharpsl_nand_enable_hwecc;
-+ nand->calculate_ecc = sharpsl_nand_calculate_ecc;
-+ nand->correct_data = nand_correct_data;
-+}
-+#endif /* (CONFIG_COMMANDS & CFG_CMD_NAND) */
-diff -Nur u-boot-2006-04-18-1106/board/corgi/u-boot.lds u-boot-2006-04-18-1106-new/board/corgi/u-boot.lds
---- u-boot-2006-04-18-1106/board/corgi/u-boot.lds 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/board/corgi/u-boot.lds 2006-07-05 11:19:44.000000000 +0000
-@@ -0,0 +1,56 @@
-+/*
-+ * (C) Copyright 2000
-+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
-+OUTPUT_ARCH(arm)
-+ENTRY(_start)
-+SECTIONS
-+{
-+ . = 0x00000000;
-+
-+ . = ALIGN(4);
-+ .text :
-+ {
-+ cpu/pxa/start.o (.text)
-+ *(.text)
-+ }
-+
-+ . = ALIGN(4);
-+ .rodata : { *(.rodata) }
-+
-+ . = ALIGN(4);
-+ .data : { *(.data) }
-+
-+ . = ALIGN(4);
-+ .got : { *(.got) }
-+
-+ . = .;
-+ __u_boot_cmd_start = .;
-+ .u_boot_cmd : { *(.u_boot_cmd) }
-+ __u_boot_cmd_end = .;
-+
-+ . = ALIGN(4);
-+ __bss_start = .;
-+ .bss : { *(.bss) }
-+ _end = .;
-+}
-diff -Nur u-boot-2006-04-18-1106/common/cmd_nand.c u-boot-2006-04-18-1106-new/common/cmd_nand.c
---- u-boot-2006-04-18-1106/common/cmd_nand.c 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/common/cmd_nand.c 2006-07-05 11:19:44.000000000 +0000
-@@ -81,6 +81,63 @@
- return 0;
- }
-
-+#ifdef NAND_LOGICAL
-+/////////////////////////////////////////////////////////////////////
-+// oob structure
-+/////////////////////////////////////////////////////////////////////
-+
-+#define NAND_NOOB_LOGADDR_00 8
-+#define NAND_NOOB_LOGADDR_01 9
-+#define NAND_NOOB_LOGADDR_10 10
-+#define NAND_NOOB_LOGADDR_11 11
-+#define NAND_NOOB_LOGADDR_20 12
-+#define NAND_NOOB_LOGADDR_21 13
-+
-+static uint nand_get_logical_no(unsigned char *oob)
-+{
-+ unsigned short us,bit;
-+ int par;
-+ int good0, good1;
-+
-+ if(oob[NAND_NOOB_LOGADDR_00] == oob[NAND_NOOB_LOGADDR_10] &&
-+ oob[NAND_NOOB_LOGADDR_01] == oob[NAND_NOOB_LOGADDR_11]){
-+ good0 = NAND_NOOB_LOGADDR_00;
-+ good1 = NAND_NOOB_LOGADDR_01;
-+ }else
-+ if(oob[NAND_NOOB_LOGADDR_10] == oob[NAND_NOOB_LOGADDR_20] &&
-+ oob[NAND_NOOB_LOGADDR_11] == oob[NAND_NOOB_LOGADDR_21]){
-+ good0 = NAND_NOOB_LOGADDR_10;
-+ good1 = NAND_NOOB_LOGADDR_11;
-+ }else
-+ if(oob[NAND_NOOB_LOGADDR_20] == oob[NAND_NOOB_LOGADDR_00] &&
-+ oob[NAND_NOOB_LOGADDR_21] == oob[NAND_NOOB_LOGADDR_01]){
-+ good0 = NAND_NOOB_LOGADDR_20;
-+ good1 = NAND_NOOB_LOGADDR_21;
-+ }else{
-+ return (uint)-1;
-+ }
-+
-+ us = (((unsigned short)(oob[good0]) & 0x00ff) << 0) |
-+ (((unsigned short)(oob[good1]) & 0x00ff) << 8);
-+
-+ par = 0;
-+ for(bit = 0x0001; bit != 0; bit <<= 1){
-+ if(us & bit){
-+ par++;
-+ }
-+ }
-+ if(par & 1){
-+ return (uint)-2;
-+ }
-+
-+ if(us == 0xffff){
-+ return 0xffff;
-+ }else{
-+ return ((us & 0x07fe) >> 1);
-+ }
-+}
-+#endif
-+
- /* ------------------------------------------------------------------------- */
-
- static void
-@@ -245,6 +302,55 @@
- if (off == 0 && size == 0)
- return 1;
-
-+#ifdef NAND_LOGICAL
-+ s = strchr(cmd, '.');
-+ if (s != NULL) {
-+ if (strcmp(s, ".logical") == 0) {
-+ int blocks = NAND_LOGICAL_SIZE / nand->erasesize;
-+ ulong *log2phy = malloc(blocks * sizeof(ulong));
-+ u_char *oobuf = malloc(nand->oobblock + nand->oobsize);
-+ int i;
-+ ulong offset;
-+ ret = 1;
-+ for (i = 0; i < blocks; i++)
-+ log2phy[i] = (uint) -1;
-+ offset = 0;
-+ for (i = 0; i < blocks; i++) {
-+ ret = nand_read_raw(nand, oobuf, offset, nand->oobblock, nand->oobsize);
-+ if (!ret) {
-+ int log_no = nand_get_logical_no(oobuf + nand->oobblock);
-+ if (((int)log_no >= 0) && (log_no < blocks)) {
-+ log2phy[log_no] = offset;
-+ //printf("NAND logical - %08X -> %04X\n", offset, log_no);
-+ }
-+ }
-+ offset += nand->erasesize;
-+ }
-+
-+ for (i = 0; i < size / nand->erasesize; i++) {
-+ ulong sz = nand->erasesize;
-+ offset = log2phy[off / nand->erasesize];
-+ if ((int)offset < 0) {
-+ printf("NAND logical - offset %08X not found\n", off);
-+ return 1;
-+ }
-+ //printf("NAND logical - %04X -> %08X\n", off / nand->erasesize, offset);
-+ ret = nand_read(nand, offset, &sz, (u_char *)addr);
-+ if (ret) {
-+ printf("NAND logical - offset %08X, read error\n", off);
-+ return 1;
-+ }
-+ off += nand->erasesize;
-+ addr += nand->erasesize;
-+ }
-+ printf(" %d bytes read from NAND logical\n", size);
-+ free(oobuf);
-+ free(log2phy);
-+ return ret == 0 ? 0 : 1;
-+ }
-+ }
-+#endif
-+
- i = strncmp(cmd, "read", 4) == 0; /* 1 = read, 0 = write */
- printf("\nNAND %s: device %d offset %u, size %u ... ",
- i ? "read" : "write", nand_curr_device, off, size);
-diff -Nur u-boot-2006-04-18-1106/cpu/pxa/config.mk u-boot-2006-04-18-1106-new/cpu/pxa/config.mk
---- u-boot-2006-04-18-1106/cpu/pxa/config.mk 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/cpu/pxa/config.mk 2006-07-05 11:19:44.000000000 +0000
-@@ -22,8 +22,7 @@
- # MA 02111-1307 USA
- #
-
--PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
-- -msoft-float
-+PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -fomit-frame-pointer
-
- #PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=strongarm1100
- PLATFORM_CPPFLAGS += -march=armv5 -mtune=xscale
-@@ -32,5 +31,5 @@
- # Supply options according to compiler version
- #
- # ========================================================================
--PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
-+#PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
- PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
-diff -Nur u-boot-2006-04-18-1106/cpu/pxa/start.S u-boot-2006-04-18-1106-new/cpu/pxa/start.S
---- u-boot-2006-04-18-1106/cpu/pxa/start.S 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/cpu/pxa/start.S 2006-07-05 11:19:44.000000000 +0000
-@@ -42,6 +42,7 @@
- ldr pc, _irq
- ldr pc, _fiq
-
-+_reset: .word reset
- _undefined_instruction: .word undefined_instruction
- _software_interrupt: .word software_interrupt
- _prefetch_abort: .word prefetch_abort
-diff -Nur u-boot-2006-04-18-1106/fs/cramfs/cramfs.c u-boot-2006-04-18-1106-new/fs/cramfs/cramfs.c
---- u-boot-2006-04-18-1106/fs/cramfs/cramfs.c 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/fs/cramfs/cramfs.c 2006-07-05 11:19:44.000000000 +0000
-@@ -44,8 +44,13 @@
-
- /* CPU address space offset calculation macro, struct part_info offset is
- * device address space offset, so we need to shift it by a device start address. */
-+#if (CONFIG_COMMANDS & CFG_CMD_FLASH)
- extern flash_info_t flash_info[];
- #define PART_OFFSET(x) (x->offset + flash_info[x->dev->id->num].start[0])
-+#else
-+static struct cramfs_super super_fake;
-+#define PART_OFFSET(x) (&super_fake)
-+#endif
-
- static int cramfs_read_super (struct part_info *info)
- {
-diff -Nur u-boot-2006-04-18-1106/include/asm-arm/arch-pxa/pxa-regs.h u-boot-2006-04-18-1106-new/include/asm-arm/arch-pxa/pxa-regs.h
---- u-boot-2006-04-18-1106/include/asm-arm/arch-pxa/pxa-regs.h 2006-04-18 09:05:03.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/include/asm-arm/arch-pxa/pxa-regs.h 2006-07-05 11:19:44.000000000 +0000
-@@ -1269,15 +1269,16 @@
- #define _GEDR(x) __REG2(0x40E00048, ((x) & 0x60) >> 3)
- #define _GAFR(x) __REG2(0x40E00054, ((x) & 0x70) >> 2)
-
--#define GPLR(x) ((((x) & 0x7f) < 96) ? _GPLR(x) : GPLR3)
--#define GPDR(x) ((((x) & 0x7f) < 96) ? _GPDR(x) : GPDR3)
--#define GPSR(x) ((((x) & 0x7f) < 96) ? _GPSR(x) : GPSR3)
--#define GPCR(x) ((((x) & 0x7f) < 96) ? _GPCR(x) : GPCR3)
--#define GRER(x) ((((x) & 0x7f) < 96) ? _GRER(x) : GRER3)
--#define GFER(x) ((((x) & 0x7f) < 96) ? _GFER(x) : GFER3)
--#define GEDR(x) ((((x) & 0x7f) < 96) ? _GEDR(x) : GEDR3)
--#define GAFR(x) ((((x) & 0x7f) < 96) ? _GAFR(x) : \
-- ((((x) & 0x7f) < 112) ? GAFR3_L : GAFR3_U))
-+#define GPLR(x) (*((((x) & 0x7f) < 96) ? &_GPLR(x) : &GPLR3))
-+#define GPDR(x) (*((((x) & 0x7f) < 96) ? &_GPDR(x) : &GPDR3))
-+#define GPSR(x) (*((((x) & 0x7f) < 96) ? &_GPSR(x) : &GPSR3))
-+#define GPCR(x) (*((((x) & 0x7f) < 96) ? &_GPCR(x) : &GPCR3))
-+#define GRER(x) (*((((x) & 0x7f) < 96) ? &_GRER(x) : &GRER3))
-+#define GFER(x) (*((((x) & 0x7f) < 96) ? &_GFER(x) : &GFER3))
-+#define GEDR(x) (*((((x) & 0x7f) < 96) ? &_GEDR(x) : &GEDR3))
-+#define GAFR(x) (*((((x) & 0x7f) < 96) ? &_GAFR(x) : \
-+ ((((x) & 0x7f) < 112) ? &GAFR3_L : &GAFR3_U)))
-+
- #else
-
- #define GPLR(x) __REG2(0x40E00000, ((x) & 0x60) >> 3)
-diff -Nur u-boot-2006-04-18-1106/include/configs/akita.h u-boot-2006-04-18-1106-new/include/configs/akita.h
---- u-boot-2006-04-18-1106/include/configs/akita.h 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/include/configs/akita.h 2006-07-13 11:00:46.000000000 +0000
-@@ -0,0 +1,324 @@
-+/*
-+ * include/configs/akita.h
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-C1000/C3100.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from adsvix board configuration:
-+ * (C) Copyright 2004
-+ * Robert Whaley, Applied Data Systems, Inc. rwhaley@applieddata.net
-+ * (C) Copyright 2002
-+ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
-+ * (C) Copyright 2002
-+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-+ * Marius Groeger <mgroeger@sysgo.de>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#ifndef __CONFIG_H
-+#define __CONFIG_H
-+
-+#define CONFIG_SKIP_LOWLEVEL_INIT
-+
-+#undef SKIP_CONFIG_RELOCATE_UBOOT
-+
-+#undef CONFIG_HARD_I2C
-+
-+/*
-+ * High Level Configuration Options
-+ * (easy to change)
-+ */
-+#define CONFIG_PXA27X 1 /* This is an PXA27x CPU */
-+#define CONFIG_AKITA 1 /* on Sharp Zaurus Akita */
-+//#define CONFIG_MMC 1
-+#define BOARD_LATE_INIT 1
-+
-+#undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */
-+
-+#define RTC 1
-+
-+/*
-+ * Size of malloc() pool
-+ */
-+//#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
-+#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 256*1024)
-+#define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
-+
-+/*
-+ * select serial console configuration
-+ */
-+#define CONFIG_FFUART 1 /* we use FFUART on Mainstone */
-+
-+/* allow to overwrite serial and ethaddr */
-+#define CONFIG_BAUDRATE 115200
-+//#define CONFIG_DOS_PARTITION 1
-+
-+#undef CONFIG_SHOW_BOOT_PROGRESS
-+
-+#if 1
-+#define CONFIG_BOOTDELAY 1
-+#define CONFIG_AUTOBOOT_PROMPT "Autobooting in %d seconds\n"
-+
-+#define CONFIG_BOOTCOMMAND \
-+ "if testkey 101 ; " \
-+ "then " \
-+ "nand read.logical 0xa1000000 0x00060000 0x00540000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 2 ; " \
-+ "then " \
-+ "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 fbcon=rotate:1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 18 ; " \
-+ "then " \
-+ "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1 fbcon=rotate:1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 3 ; " \
-+ "then " \
-+ "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1 fbcon=rotate:1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "nand read.logical 0xa1000000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2 fbcon=rotate:1; " \
-+ "bootm; "
-+#else
-+#define CONFIG_BOOTCOMMAND "" // "run boot_flash"
-+#endif
-+
-+#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw fbcon=rotate:1 ramdisk_size=8192"
-+#define CONFIG_SETUP_MEMORY_TAGS 1
-+#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
-+#define CONFIG_INITRD_TAG 1
-+
-+#define CONFIG_COMMANDS (( \
-+ CONFIG_CMD_DFL | \
-+ CFG_CMD_NAND | \
-+ CFG_CMD_JFFS2 \
-+ ) & ~( \
-+ CFG_CMD_NET | \
-+ CFG_CMD_FLASH | \
-+ CFG_CMD_IMLS \
-+ ))
-+
-+// CFG_CMD_ENV
-+
-+/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
-+#include <cmd_confdefs.h>
-+
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
-+#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
-+#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
-+#endif
-+
-+/*
-+ * Miscellaneous configurable options
-+ */
-+#define CFG_HUSH_PARSER 1
-+#define CFG_PROMPT_HUSH_PS2 "> "
-+
-+#define CFG_LONGHELP /* undef to save memory */
-+#define CFG_PROMPT "U-Boot> " /* Monitor Command Prompt */
-+
-+#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
-+#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-+#define CFG_MAXARGS 16 /* max number of command args */
-+#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
-+#define CFG_DEVICE_NULLDEV 1
-+
-+#define CFG_MEMTEST_START 0xa0400000 /* memtest works on */
-+#define CFG_MEMTEST_END 0xa0800000 /* 4 ... 8 MB in DRAM */
-+
-+#undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
-+
-+#define CFG_LOAD_ADDR 0xa1000000 /* default load address */
-+
-+#define CFG_HZ 3686400 /* incrementer freq: 3.6864 MHz */
-+#define CFG_CPUSPEED 0x207 /* need to look more closely, I think this is Turbo = 2x, L=91Mhz */
-+
-+ /* valid baudrates */
-+#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
-+
-+#define CFG_MMC_BASE 0xF0000000
-+
-+/*
-+ * Stack sizes
-+ *
-+ * The stack sizes are set up in start.S using the settings below
-+ */
-+#define CONFIG_STACKSIZE (128*1024) /* regular stack */
-+#ifdef CONFIG_USE_IRQ
-+#define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
-+#define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
-+#endif
-+
-+/*
-+ * Physical Memory Map
-+ */
-+#define CONFIG_NR_DRAM_BANKS 4 /* we have 2 banks of DRAM */
-+#define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */
-+#define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
-+#define PHYS_SDRAM_2 0xa4000000 /* SDRAM Bank #2 */
-+#define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 MB */
-+#define PHYS_SDRAM_3 0xa8000000 /* SDRAM Bank #3 */
-+#define PHYS_SDRAM_3_SIZE 0x00000000 /* 0 MB */
-+#define PHYS_SDRAM_4 0xac000000 /* SDRAM Bank #4 */
-+#define PHYS_SDRAM_4_SIZE 0x00000000 /* 0 MB */
-+
-+#define PHYS_FLASH_1 0xd4000000 /* Flash Bank #1 */
-+
-+#define CFG_DRAM_BASE 0xa0000000
-+#define CFG_DRAM_SIZE 0x04000000
-+
-+#define CFG_FLASH_BASE PHYS_FLASH_1
-+
-+/*
-+ * GPIO settings for Mainstone
-+ */
-+
-+#define CFG_GPSR0_VAL 0x00708800
-+#define CFG_GPSR1_VAL 0x03cf0002
-+#define CFG_GPSR2_VAL 0x0021FC00
-+#define CFG_GPSR3_VAL 0x00000000
-+
-+#define CFG_GPCR0_VAL 0x00001000
-+#define CFG_GPCR1_VAL 0x00000000
-+#define CFG_GPCR2_VAL 0x00000000
-+#define CFG_GPCR3_VAL 0x00000000
-+
-+#define CFG_GPDR0_VAL 0xC27B9C04
-+#define CFG_GPDR1_VAL 0x00EFAA83
-+#define CFG_GPDR2_VAL 0x0E23FC00
-+#define CFG_GPDR3_VAL 0x001E1F81
-+
-+#define CFG_GAFR0_L_VAL 0x94F00000
-+#define CFG_GAFR0_U_VAL 0x015A859A
-+#define CFG_GAFR1_L_VAL 0x999A955A
-+#define CFG_GAFR1_U_VAL 0x0005A4AA
-+#define CFG_GAFR2_L_VAL 0x6AA00000
-+#define CFG_GAFR2_U_VAL 0x55A8041A
-+#define CFG_GAFR3_L_VAL 0x56AA955A
-+#define CFG_GAFR3_U_VAL 0x00000001
-+
-+#define CFG_PSSR_VAL 0x20 // ???????????
-+
-+/*
-+ * PCMCIA and CF Interfaces
-+ */
-+#define CFG_MECR_VAL 0x00000001
-+#define CFG_MCMEM0_VAL 0x00010204
-+#define CFG_MCMEM1_VAL 0x00010204
-+#define CFG_MCATT0_VAL 0x00010204
-+#define CFG_MCATT1_VAL 0x00010204
-+#define CFG_MCIO0_VAL 0x0000c108
-+#define CFG_MCIO1_VAL 0x0001c108
-+
-+//#define CONFIG_PXA_PCMCIA 1
-+//#define CONFIG_PXA_IDE 1
-+
-+#define CONFIG_PCMCIA_SLOT_A 1
-+/* just to keep build system happy */
-+
-+#define CFG_PCMCIA_MEM_ADDR 0x28000000
-+#define CFG_PCMCIA_MEM_SIZE 0x04000000
-+
-+#define CFG_IDE_MAXBUS 1
-+/* max. 1 IDE bus */
-+#define CFG_IDE_MAXDEVICE 1
-+/* max. 1 drive per IDE bus */
-+
-+#define CFG_ATA_IDE0_OFFSET 0x0000
-+
-+#define CFG_ATA_BASE_ADDR 0x20000000
-+
-+/* Offset for data I/O */
-+#define CFG_ATA_DATA_OFFSET 0x1f0
-+
-+/* Offset for normal register accesses */
-+#define CFG_ATA_REG_OFFSET 0x1f0
-+
-+/* Offset for alternate registers */
-+#define CFG_ATA_ALT_OFFSET 0x3f0
-+
-+#define CFG_NO_FLASH 1
-+#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
-+#define CFG_MAX_FLASH_SECT 512 /* max number of sectors on one chip */
-+
-+/*-----------------------------------------------------------------------
-+ * NAND-FLASH stuff
-+ *-----------------------------------------------------------------------
-+ */
-+#undef CFG_NAND_LEGACY
-+
-+/* NAND debugging */
-+//#define CONFIG_MTD_DEBUG
-+//#define CONFIG_MTD_DEBUG_VERBOSE 3
-+
-+#define CFG_NAND_BASE 0xd4000000
-+#define CFG_MAX_NAND_DEVICE 1 /* Max number of NAND devices */
-+#define NAND_MAX_CHIPS 1
-+
-+//#define CONFIG_MTD_NAND_VERIFY_WRITE 1 /* verify all writes!!! */
-+//#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
-+
-+#define CONFIG_JFFS2_NAND 1 /* jffs2 on nand support */
-+#define NAND_CACHE_PAGES 16 /* size of nand cache in 512 bytes pages */
-+
-+/*
-+ * JFFS2 partitions
-+ *
-+ */
-+/* No command line, one static partition */
-+//#undef CONFIG_JFFS2_CMDLINE
-+//#define CONFIG_JFFS2_DEV "nand0"
-+//#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
-+//#define CONFIG_JFFS2_PART_OFFSET 0x00060000
-+
-+/* mtdparts command line support */
-+/* Note: fake mtd_id used, no linux mtd map file */
-+
-+#define CONFIG_JFFS2_CMDLINE
-+#define MTDIDS_DEFAULT "nand0=laze-0"
-+//#define MTDPARTS_DEFAULT "mtdparts=laze-0:256k(uboot),128k(env),-(jffs2)"
-+#define MTDPARTS_DEFAULT "mtdparts=laze-0:7168k(Logical),-(JFFS2)"
-+
-+/*
-+ * SHARP SL NAND logical partition
-+ */
-+#define NAND_LOGICAL 1
-+#define NAND_LOGICAL_SIZE 0x700000
-+
-+/*
-+ * Environment
-+ */
-+
-+#define CFG_ENV_IS_IN_NAND 1
-+#define CFG_ENV_OFFSET 0x40000
-+//#define CFG_ENV_OFFSET_REDUND 0x44000
-+#define CFG_ENV_SIZE 0x20000
-+
-+#endif /* __CONFIG_H */
-diff -Nur u-boot-2006-04-18-1106/include/configs/corgi.h u-boot-2006-04-18-1106-new/include/configs/corgi.h
---- u-boot-2006-04-18-1106/include/configs/corgi.h 1970-01-01 00:00:00.000000000 +0000
-+++ u-boot-2006-04-18-1106-new/include/configs/corgi.h 2006-07-13 11:19:04.000000000 +0000
-@@ -0,0 +1,326 @@
-+/*
-+ * include/configs/corgi.h
-+ *
-+ * Configuration settings for the Sharp Zaurus SL-C7x0/C860.
-+ *
-+ * (C) Copyright 2006 Alexander Chukov <sash@pdaXrom.org>
-+ *
-+ * portions from adsvix board configuration:
-+ * (C) Copyright 2004
-+ * Robert Whaley, Applied Data Systems, Inc. rwhaley@applieddata.net
-+ * (C) Copyright 2002
-+ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
-+ * (C) Copyright 2002
-+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-+ * Marius Groeger <mgroeger@sysgo.de>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * This program is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU General Public License as
-+ * published by the Free Software Foundation; either version 2 of
-+ * the License, or (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+#ifndef __CONFIG_H
-+#define __CONFIG_H
-+
-+#define CONFIG_SKIP_LOWLEVEL_INIT
-+
-+#undef SKIP_CONFIG_RELOCATE_UBOOT
-+
-+#undef CONFIG_HARD_I2C
-+
-+/*
-+ * High Level Configuration Options
-+ * (easy to change)
-+ */
-+#define CONFIG_PXA250 1 /* This is an PXA255 CPU */
-+#define CONFIG_CORGI 1 /* on Sharp Zaurus Corgi */
-+//#define CONFIG_MMC 1
-+#define BOARD_LATE_INIT 1
-+
-+#undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */
-+
-+#define RTC 1
-+
-+/*
-+ * Size of malloc() pool
-+ */
-+//#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
-+#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 256*1024)
-+#define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
-+
-+/*
-+ * select serial console configuration
-+ */
-+#define CONFIG_FFUART 1 /* we use FFUART on Mainstone */
-+
-+/* allow to overwrite serial and ethaddr */
-+#define CONFIG_BAUDRATE 115200
-+//#define CONFIG_DOS_PARTITION 1
-+
-+#undef CONFIG_SHOW_BOOT_PROGRESS
-+
-+#if 1
-+#define CONFIG_BOOTDELAY 1
-+#define CONFIG_AUTOBOOT_PROMPT "Autobooting in %d seconds\n"
-+
-+#define CONFIG_BOOTCOMMAND \
-+ "if testkey 101 ; " \
-+ "then " \
-+ "nand read.logical 0xa0800000 0x00060000 0x00540000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 2 ; " \
-+ "then " \
-+ "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 18 ; " \
-+ "then " \
-+ "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hda1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "if testkey 3 ; " \
-+ "then " \
-+ "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/hdc1; " \
-+ "bootm; " \
-+ "fi; " \
-+ "nand read.logical 0xa0800000 0x005a0000 0x00160000; " \
-+ "setenv bootargs console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2; " \
-+ "bootm; "
-+#else
-+#define CONFIG_BOOTCOMMAND "" // "run boot_flash"
-+#endif
-+
-+#define CONFIG_BOOTARGS "console=ttyS0,115200 console=tty1 root=/dev/ram rw ramdisk_size=8192"
-+#define CONFIG_SETUP_MEMORY_TAGS 1
-+#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
-+#define CONFIG_INITRD_TAG 1
-+
-+#define CONFIG_COMMANDS (( \
-+ CONFIG_CMD_DFL | \
-+ CFG_CMD_NAND | \
-+ CFG_CMD_JFFS2 \
-+ ) & ~( \
-+ CFG_CMD_NET | \
-+ CFG_CMD_FLASH | \
-+ CFG_CMD_IMLS \
-+ ))
-+
-+// CFG_CMD_ENV
-+
-+/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
-+#include <cmd_confdefs.h>
-+
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
-+#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
-+#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
-+#endif
-+
-+/*
-+ * Miscellaneous configurable options
-+ */
-+#define CFG_HUSH_PARSER 1
-+#define CFG_PROMPT_HUSH_PS2 "> "
-+
-+#define CFG_LONGHELP /* undef to save memory */
-+#define CFG_PROMPT "U-Boot> " /* Monitor Command Prompt */
-+
-+#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
-+#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-+#define CFG_MAXARGS 16 /* max number of command args */
-+#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
-+#define CFG_DEVICE_NULLDEV 1
-+
-+#define CFG_MEMTEST_START 0xa0400000 /* memtest works on */
-+#define CFG_MEMTEST_END 0xa0800000 /* 4 ... 8 MB in DRAM */
-+
-+#undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
-+
-+#define CFG_LOAD_ADDR 0xa0800000 /* default load address */
-+
-+#define CFG_HZ 3686400 /* incrementer freq: 3.6864 MHz */
-+#define CFG_CPUSPEED 0x207 /* need to look more closely, I think this is Turbo = 2x, L=91Mhz */
-+
-+ /* valid baudrates */
-+#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
-+
-+#define CFG_MMC_BASE 0xF0000000
-+
-+/*
-+ * Stack sizes
-+ *
-+ * The stack sizes are set up in start.S using the settings below
-+ */
-+#define CONFIG_STACKSIZE (128*1024) /* regular stack */
-+#ifdef CONFIG_USE_IRQ
-+#define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
-+#define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
-+#endif
-+
-+/*
-+ * Physical Memory Map
-+ */
-+#define CONFIG_NR_DRAM_BANKS 4 /* we have 2 banks of DRAM */
-+#define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */
-+#define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
-+#define PHYS_SDRAM_2 0xa4000000 /* SDRAM Bank #2 */
-+#define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 MB */
-+#define PHYS_SDRAM_3 0xa8000000 /* SDRAM Bank #3 */
-+#define PHYS_SDRAM_3_SIZE 0x00000000 /* 0 MB */
-+#define PHYS_SDRAM_4 0xac000000 /* SDRAM Bank #4 */
-+#define PHYS_SDRAM_4_SIZE 0x00000000 /* 0 MB */
-+
-+#define PHYS_FLASH_1 0xd4000000 /* Flash Bank #1 */
-+
-+#define CFG_DRAM_BASE 0xa0000000
-+#define CFG_DRAM_SIZE 0x04000000
-+
-+#define CFG_FLASH_BASE PHYS_FLASH_1
-+
-+/*
-+ * GPIO settings for Mainstone
-+ */
-+
-+#define CFG_GPSR0_VAL 0x00708800
-+#define CFG_GPSR1_VAL 0x03cf0002
-+#define CFG_GPSR2_VAL 0x0021FC00
-+#define CFG_GPSR3_VAL 0x00000000
-+
-+#define CFG_GPCR0_VAL 0x00001000
-+#define CFG_GPCR1_VAL 0x00000000
-+#define CFG_GPCR2_VAL 0x00000000
-+#define CFG_GPCR3_VAL 0x00000000
-+
-+#define CFG_GPDR0_VAL 0xC27B9C04
-+#define CFG_GPDR1_VAL 0x00EFAA83
-+#define CFG_GPDR2_VAL 0x0E23FC00
-+#define CFG_GPDR3_VAL 0x001E1F81
-+
-+#define CFG_GAFR0_L_VAL 0x94F00000
-+#define CFG_GAFR0_U_VAL 0x015A859A
-+#define CFG_GAFR1_L_VAL 0x999A955A
-+#define CFG_GAFR1_U_VAL 0x0005A4AA
-+#define CFG_GAFR2_L_VAL 0x6AA00000
-+#define CFG_GAFR2_U_VAL 0x55A8041A
-+#define CFG_GAFR3_L_VAL 0x56AA955A
-+#define CFG_GAFR3_U_VAL 0x00000001
-+
-+#define CFG_PSSR_VAL 0x20 // ???????????
-+
-+/*
-+ * PCMCIA and CF Interfaces
-+ */
-+#define CFG_MECR_VAL 0x00000001
-+#define CFG_MCMEM0_VAL 0x00010204
-+#define CFG_MCMEM1_VAL 0x00010204
-+#define CFG_MCATT0_VAL 0x00010204
-+#define CFG_MCATT1_VAL 0x00010204
-+#define CFG_MCIO0_VAL 0x0000c108
-+#define CFG_MCIO1_VAL 0x0001c108
-+
-+//#define CONFIG_PXA_PCMCIA 1
-+//#define CONFIG_PXA_IDE 1
-+
-+#define CONFIG_PCMCIA_SLOT_A 1
-+/* just to keep build system happy */
-+
-+#define CFG_PCMCIA_MEM_ADDR 0x28000000
-+#define CFG_PCMCIA_MEM_SIZE 0x04000000
-+
-+#define CFG_IDE_MAXBUS 1
-+/* max. 1 IDE bus */
-+#define CFG_IDE_MAXDEVICE 1
-+/* max. 1 drive per IDE bus */
-+
-+#define CFG_ATA_IDE0_OFFSET 0x0000
-+
-+#define CFG_ATA_BASE_ADDR 0x20000000
-+
-+/* Offset for data I/O */
-+#define CFG_ATA_DATA_OFFSET 0x1f0
-+
-+/* Offset for normal register accesses */
-+#define CFG_ATA_REG_OFFSET 0x1f0
-+
-+/* Offset for alternate registers */
-+#define CFG_ATA_ALT_OFFSET 0x3f0
-+
-+#define CFG_NO_FLASH 1
-+#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
-+#define CFG_MAX_FLASH_SECT 512 /* max number of sectors on one chip */
-+
-+/*-----------------------------------------------------------------------
-+ * NAND-FLASH stuff
-+ *-----------------------------------------------------------------------
-+ */
-+#undef CFG_NAND_LEGACY
-+
-+/* NAND debugging */
-+//#define CONFIG_MTD_DEBUG
-+//#define CONFIG_MTD_DEBUG_VERBOSE 3
-+
-+#define CFG_NAND_BASE 0xd4000000
-+#define CFG_MAX_NAND_DEVICE 1 /* Max number of NAND devices */
-+#define NAND_MAX_CHIPS 1
-+
-+//#define CONFIG_MTD_NAND_VERIFY_WRITE 1 /* verify all writes!!! */
-+//#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
-+
-+#define CONFIG_JFFS2_NAND 1 /* jffs2 on nand support */
-+#define NAND_CACHE_PAGES 16 /* size of nand cache in 512 bytes pages */
-+
-+#define NAND_ALLOW_ERASE_ALL 1
-+
-+/*
-+ * JFFS2 partitions
-+ *
-+ */
-+/* No command line, one static partition */
-+//#undef CONFIG_JFFS2_CMDLINE
-+//#define CONFIG_JFFS2_DEV "nand0"
-+//#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
-+//#define CONFIG_JFFS2_PART_OFFSET 0x00060000
-+
-+/* mtdparts command line support */
-+/* Note: fake mtd_id used, no linux mtd map file */
-+
-+#define CONFIG_JFFS2_CMDLINE
-+#define MTDIDS_DEFAULT "nand0=laze-0"
-+//#define MTDPARTS_DEFAULT "mtdparts=laze-0:256k(uboot),128k(env),-(jffs2)"
-+#define MTDPARTS_DEFAULT "mtdparts=laze-0:7168k(Logical),-(JFFS2)"
-+
-+/*
-+ * SHARP SL NAND logical partition
-+ */
-+#define NAND_LOGICAL 1
-+#define NAND_LOGICAL_SIZE 0x700000
-+
-+/*
-+ * Environment
-+ */
-+
-+#define CFG_ENV_IS_IN_NAND 1
-+#define CFG_ENV_OFFSET 0x40000
-+//#define CFG_ENV_OFFSET_REDUND 0x44000
-+#define CFG_ENV_SIZE 0x20000
-+
-+#endif /* __CONFIG_H */
---- s/examples/Makefile.orig 2006-12-09 15:08:45.000000000 +0600
-+++ s/examples/Makefile 2006-12-09 15:09:00.000000000 +0600
-@@ -60,7 +60,7 @@
- include $(TOPDIR)/config.mk
-
- SREC = hello_world.srec
--BIN = hello_world.bin hello_world
-+BIN = hello_world hello_world.bin
-
- ifeq ($(CPU),mpc8xx)
- SREC = test_burst.srec
-@@ -122,7 +122,7 @@
-
- CPPFLAGS += -I..
-
--all: .depend $(OBJS) $(LIB) $(SREC) $(BIN)
-+all: .depend $(OBJS) $(LIB) $(BIN) $(SREC)
-
- #########################################################################
- $(LIB): .depend $(LIBOBJS)
diff --git a/packages/u-boot/u-boot-git/uboot-eabi-fix-HACK2.patch b/packages/u-boot/u-boot-git/uboot-eabi-fix-HACK2.patch
deleted file mode 100644
index 858296b980..0000000000
--- a/packages/u-boot/u-boot-git/uboot-eabi-fix-HACK2.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-Index: git/lib_arm/div0.c
-===================================================================
---- git.orig/lib_arm/div0.c
-+++ git/lib_arm/div0.c
-@@ -22,9 +22,3 @@
- */
-
- /* Replacement (=dummy) for GNU/Linux division-by zero handler */
--void __div0 (void)
--{
-- extern void hang (void);
--
-- hang();
--}
-Index: git/Makefile
-===================================================================
---- git.orig/Makefile
-+++ git/Makefile
-@@ -225,7 +225,7 @@ LIBS := $(addprefix $(obj),$(LIBS))
- .PHONY : $(LIBS)
-
- # Add GCC lib
--PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
-+PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lgcc_eh
-
- # The "tools" are needed early, so put this first
- # Don't include stuff already done in $(LIBS)
---- git/board/akita/akita.c.orig 2007-12-26 17:52:33.000000000 +0000
-+++ git/board/akita/akita.c 2007-12-26 17:52:59.000000000 +0000
-@@ -87,3 +87,7 @@
-
- return 0;
- }
-+
-+void raise() {}
-+
-+void abort() {}
---- git/board/corgi/corgi.c.orig 2007-12-26 17:52:33.000000000 +0000
-+++ git/board/corgi/corgi.c 2007-12-26 17:52:59.000000000 +0000
-@@ -87,3 +87,7 @@
-
- return 0;
- }
-+
-+void raise() {}
-+
-+void abort() {}
-Index: git/lib_arm/div0.c
-===================================================================
---- git.orig/lib_arm/div0.c
-+++ git/lib_arm/div0.c
-@@ -22,9 +22,3 @@
- */
-
- /* Replacement (=dummy) for GNU/Linux division-by zero handler */
--void __div0 (void)
--{
-- extern void hang (void);
--
-- hang();
--}
-Index: git/Makefile
-===================================================================
---- git.orig/Makefile
-+++ git/Makefile
-@@ -225,7 +225,7 @@ LIBS := $(addprefix $(obj),$(LIBS))
- .PHONY : $(LIBS)
-
- # Add GCC lib
--PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
-+PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lgcc_eh
-
- # The "tools" are needed early, so put this first
- # Don't include stuff already done in $(LIBS)
---- git/board/akita/akita.c.orig 2007-12-26 17:52:33.000000000 +0000
-+++ git/board/akita/akita.c 2007-12-26 17:52:59.000000000 +0000
-@@ -87,3 +87,7 @@
-
- return 0;
- }
-+
-+void raise() {}
-+
-+void abort() {}
---- git/board/corgi/corgi.c.orig 2007-12-26 17:52:33.000000000 +0000
-+++ git/board/corgi/corgi.c 2007-12-26 17:52:59.000000000 +0000
-@@ -87,3 +87,7 @@
-
- return 0;
- }
-+
-+void raise() {}
-+
-+void abort() {}
diff --git a/packages/u-boot/u-boot_git.bb b/packages/u-boot/u-boot_git.bb
index 56b0797e01..04eb7eb2e8 100644
--- a/packages/u-boot/u-boot_git.bb
+++ b/packages/u-boot/u-boot_git.bb
@@ -1,12 +1,10 @@
require u-boot.inc
-PR="r17"
+PR="r16"
SRCREV_davinci-sffsdr = "4b50cd12a3b3c644153c4cf393f4a4c12289e5aa"
SRCREV_davinci-dvevm = "4b50cd12a3b3c644153c4cf393f4a4c12289e5aa"
SRCREV_beagleboard = "9c1c36409b2cb4e81aab0bd9d0a69c68f4475aae"
SRCREV_neuros-osd2 = "bc66414cd99154a40949db1bd2f45a62b8febca9"
-SRCREV_akita = "9bf86baaa3b35b25baa2d664e2f7f6cafad689ee"
-SRCREV_c7x0 = "9bf86baaa3b35b25baa2d664e2f7f6cafad689ee"
SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git "
SRC_URI_sequoia = "git://www.denx.de/git/u-boot.git;protocol=git;tag=cf3b41e0c1111dbb865b6e34e9f3c3d3145a6093 "
@@ -17,14 +15,6 @@ SRC_URI_beagleboard = "git://www.sakoman.net/git/u-boot-omap3.git;branch=test;pr
"
SRC_URI_neuros-osd2 += "file://Makefile-fix.patch;patch=1"
-SRC_URI_append_akita = "file://pdaXrom-u-boot.patch;patch=1 \
- file://uboot-eabi-fix-HACK2.patch;patch=1 \
- file://akita-standard-partitioning.patch;patch=1 \
- "
-SRC_URI_append_c7x0 = "file://pdaXrom-u-boot.patch;patch=1 \
- file://uboot-eabi-fix-HACK2.patch;patch=1 \
- file://corgi-standard-partitioning.patch;patch=1 \
- "
S = "${WORKDIR}/git"