Send commitlog mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. r3768 - trunk/src/target/u-boot/patches ([EMAIL PROTECTED])
2. r3769 - in trunk/src/target/u-boot: . scripts
([EMAIL PROTECTED])
3. r3770 - trunk/src/target/kernel ([EMAIL PROTECTED])
4. r3771 - trunk/src/target/u-boot/scripts ([EMAIL PROTECTED])
5. r3772 - in trunk/src/target/kernel: . scripts
([EMAIL PROTECTED])
6. r3773 - trunk/src/target/u-boot/scripts ([EMAIL PROTECTED])
--- Begin Message ---
Author: werner
Date: 2008-01-05 03:42:47 +0100 (Sat, 05 Jan 2008)
New Revision: 3768
Added:
trunk/src/target/u-boot/patches/eabi-toolchain.patch
Modified:
trunk/src/target/u-boot/patches/series
Log:
eabi-toolchain.patch: When using the new OpenMoko toolchain for EABI, u-boot
(http://wiki.openmoko.org/wiki/Toolchain) fails to build due to a number of
small compatibility issues. This patch fixes them in a way that is
backwards-compatible with our ancient OABI toolchain.
There also seems to be a "competing" patch for OE:
http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=180
Avoid "warning: target CPU does not support interworking" warnings:
- cpu/arm920t/config.mk (PLATFORM_CPPFLAGS): changed -march=armv4 to
-march=armv4t
- board/neo1973/gta01/Makefile, board/neo1973/gta02/Makefile: changed
-march=armv4 to -march=armv4t
Don't hardcode apcs ABI for arm920t:
- cpu/arm920t/config.mk (PLATFORM_CPPFLAGS): removed -mapcs-32 and
-mabi=apcs-gnu from
__div0 assumes we have some sort of libc:
- cpu/arm920t/config.mk (PLATFORM_LDFLAGS):
Add dummy "raise" symbol required by __div0 from lib1funcs.asm
series: added eabi-toolchain.patch, commented out for now, since there may be a
conflicting patch in OE
Added: trunk/src/target/u-boot/patches/eabi-toolchain.patch
===================================================================
--- trunk/src/target/u-boot/patches/eabi-toolchain.patch 2008-01-04
09:20:44 UTC (rev 3767)
+++ trunk/src/target/u-boot/patches/eabi-toolchain.patch 2008-01-05
02:42:47 UTC (rev 3768)
@@ -0,0 +1,67 @@
+eabi-toolchain.patch: When using the new OpenMoko toolchain for EABI, u-boot
+ (http://wiki.openmoko.org/wiki/Toolchain) fails to build due to a number of
+ small compatibility issues. This patch fixes them in a way that is
+ backwards-compatible with our ancient OABI toolchain.
+
+ There also seems to be a "competing" patch for OE:
+ http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=180
+
+Avoid "warning: target CPU does not support interworking" warnings:
+- cpu/arm920t/config.mk (PLATFORM_CPPFLAGS): changed -march=armv4 to
+ -march=armv4t
+- board/neo1973/gta01/Makefile, board/neo1973/gta02/Makefile: changed
+ -march=armv4 to -march=armv4t
+
+Don't hardcode apcs ABI for arm920t:
+- cpu/arm920t/config.mk (PLATFORM_CPPFLAGS): removed -mapcs-32 and
+ -mabi=apcs-gnu from
+
+__div0 assumes we have some sort of libc:
+- cpu/arm920t/config.mk (PLATFORM_LDFLAGS):
+ Add dummy "raise" symbol required by __div0 from lib1funcs.asm
+
+Index: u-boot/cpu/arm920t/config.mk
+===================================================================
+--- u-boot.orig/cpu/arm920t/config.mk
++++ u-boot/cpu/arm920t/config.mk
+@@ -24,11 +24,12 @@
+ PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
+ -msoft-float
+
+-PLATFORM_CPPFLAGS += -march=armv4
++PLATFORM_CPPFLAGS += -march=armv4t
+ # =========================================================================
+ #
+ # 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,))
++PLATFORM_LDFLAGS += --defsym raise=_start
+Index: u-boot/board/neo1973/gta01/Makefile
+===================================================================
+--- u-boot.orig/board/neo1973/gta01/Makefile
++++ u-boot/board/neo1973/gta01/Makefile
+@@ -36,7 +36,7 @@
+ $(AR) crv $@ $(OBJS) $(SOBJS)
+
+ lowlevel_foo.o: ../common/lowlevel_foo.S
+- $(CC) -c -DTEXT_BASE=0x33F80000 -march=armv4 \
++ $(CC) -c -DTEXT_BASE=0x33F80000 -march=armv4t \
+ -o lowlevel_foo.o ../common/lowlevel_foo.S
+
+ lowlevel_foo: lowlevel_foo.o ../common/lowlevel_init.o
../common/lowlevel_foo.lds
+Index: u-boot/board/neo1973/gta02/Makefile
+===================================================================
+--- u-boot.orig/board/neo1973/gta02/Makefile
++++ u-boot/board/neo1973/gta02/Makefile
+@@ -38,7 +38,7 @@
+ $(AR) crv $@ $(OBJS) $(SOBJS)
+
+ lowlevel_foo.o: ../common/lowlevel_foo.S
+- $(CC) -c -DTEXT_BASE=0x33F80000 -march=armv4 \
++ $(CC) -c -DTEXT_BASE=0x33F80000 -march=armv4t \
+ -o lowlevel_foo.o ../common/lowlevel_foo.S
+
+ lowlevel_foo: lowlevel_foo.o ../common/lowlevel_init.o
../common/lowlevel_foo.lds
Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series 2008-01-04 09:20:44 UTC (rev
3767)
+++ trunk/src/target/u-boot/patches/series 2008-01-05 02:42:47 UTC (rev
3768)
@@ -80,3 +80,5 @@
neo1973-gsmver.patch
uboot-nand_write_yaffs.patch
uboot-neo1973_defaultconsole_usbtty.patch
+# consider merging after checking OE resolution for bug P#180
+#eabi-toolchain.patch
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-01-05 04:04:13 +0100 (Sat, 05 Jan 2008)
New Revision: 3769
Added:
trunk/src/target/u-boot/scripts/
trunk/src/target/u-boot/scripts/README
trunk/src/target/u-boot/scripts/build
trunk/src/target/u-boot/scripts/update
Log:
Example scripts for the "manual" u-boot build process (i.e., without using
OpenEmbedded or anything similar.)
NOTE: this is still unfinished and largely untested work.
- scripts/README: description of what this is and of toolchain requirements
- scripts/build: build u-boot from scratch
- scripts/update: update one or both (upstream git and OM SVN) repositories
Added: trunk/src/target/u-boot/scripts/README
===================================================================
--- trunk/src/target/u-boot/scripts/README 2008-01-05 02:42:47 UTC (rev
3768)
+++ trunk/src/target/u-boot/scripts/README 2008-01-05 03:04:13 UTC (rev
3769)
@@ -0,0 +1,47 @@
+UNDER DEVELOPMENT - DON'T USE YET
+
+u-boot build scripts
+====================
+
+This is a collection of scripts to build u-boot. This is the "manual" build
+process, which only needs a cross-toolchain, but nothing else from OpenEmbedded
+or any similar environment.
+
+They're mainly intended as examples for how the process works and aren't
+necessarily useful "as is" for daily work:
+
+build
+ Build u-boot from scratch, using either the latest or some specific
+ version from the u-boot upstream sources (git) and the OpenMoko patches
+ (SVN).
+
+update
+ Update the u-boot sources to either the latest or some specific version.
+
+
+Toolchain
+---------
+
+We use the OpenEmbedded EABI toolchain. Below is are instructions for a
+quick minimal setup for the purpose of building u-boot and the kernel.
+More detailed instructions can be found here:
+http://wiki.openmoko.org/wiki/Toolchain
+
+# If the host is 64 bit (x86_64):
+DL=http://downloads.openmoko.org/
+wget $DL/toolchains/openmoko-x86_64-arm-linux-gnueabi-toolchain.tar.bz2
+tar xCfj / openmoko-x86_64-arm-linux-gnueabi-toolchain.tar.bz2
+
+# If the host is 32 bit (i686):
+DL=http://downloads.openmoko.org/
+wget $DL/toolchains/openmoko-i686-arm-linux-gnueabi-toolchain.tar.bz2
+tar xCfj / openmoko-i686-arm-linux-gnueabi-toolchain.tar.bz2
+
+# Then set the PATH with:
+PATH=$PATH:/usr/local/openmoko/arm/bin
+
+
+Environment variables
+---------------------
+
+See "build".
Added: trunk/src/target/u-boot/scripts/build
===================================================================
--- trunk/src/target/u-boot/scripts/build 2008-01-05 02:42:47 UTC (rev
3768)
+++ trunk/src/target/u-boot/scripts/build 2008-01-05 03:04:13 UTC (rev
3769)
@@ -0,0 +1,44 @@
+UNDER DEVELOPMENT - DON'T USE YET
+
+#!/bin/sh -e
+#
+# This script illustrates how to build a specific version of u-boot from
+# scratch. This is mainly intended as a template for copy & paste, and as an
+# example for individual scripts.
+#
+# This script uses the gnueabi toolchain, see the file README in this
+# directory.
+#
+#
+# Environment variables:
+#
+# SVN points to the root of the local copy of the OpenMoko SVN tree (the tree
+# must be checked out already), e.g.,
+# SVN=/home/moko/svn.openmoko.org/
+#
+# DEVICE specifies the name of the device we build u-boot for, e.g., one of
+# DEVICE=gta01bv4
+# DEVICE=gta02v3
+# DEVICE=gta02v4
+#
+# GIT_HEAD, if defined, specifies with git head we use, e.g.,
+# GIT_HEAD=5c740711f0ea5b51414b341b71597c4a0751be74
+#
+# SVN_REV, if defined, specifies which SVN revision we use, e.g.,
+# SVN_REV=3768
+#
+
+git clone git://www.denx.de/git/u-boot.git
+cd u-boot
+
+[ ! -z "$GIT_HEAD"] ||
+ git reset --hard $GIT_HEAD
+
+ln -sf $SVN/trunk/src/target/u-boot/patches
+
+[ ! -z "$SVN_REV" ] ||
+ ( cd patches && svn update -r$SVN_REV; )
+
+quilt push -a
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- ${DEVICE}_config
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- u-boot.udfu
Added: trunk/src/target/u-boot/scripts/update
===================================================================
--- trunk/src/target/u-boot/scripts/update 2008-01-05 02:42:47 UTC (rev
3768)
+++ trunk/src/target/u-boot/scripts/update 2008-01-05 03:04:13 UTC (rev
3769)
@@ -0,0 +1,29 @@
+UNDER DEVELOPMENT - DON'T USE YET
+
+#!/bin/sh -e
+#
+# This script illustrates how to update u-boot to either the latest or some
+# specific upstream and OpenMoko version. This is mainly intended as a template
+# for copy & paste, and as an example for individual scripts.
+#
+# See README for the toolchain and "build" for environment variables.
+#
+
+cd u-boot
+
+# If there are uncommitted changes, "quilt refresh" them first.
+# If any of the repositories has been updated before running this script,
+# "quilt pop -a" may fail, and you have to use "quilt pop -f" or
+# "quilt pop -a -f".
+#
+quilt pop -a
+
+git reset --hard ${GIT_HEAD:-HEAD}
+
+ln -sf $SVN/trunk/src/target/u-boot/patches
+
+( cd patches && svn update -r${SVN_REV:-HEAD}; )
+
+quilt push -a
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- clean
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- u-boot.udfu
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-01-05 04:19:07 +0100 (Sat, 05 Jan 2008)
New Revision: 3770
Removed:
trunk/src/target/kernel/p/
Log:
- kernel/p: removed empty directory getting in the way of file name completion
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-01-05 04:35:52 +0100 (Sat, 05 Jan 2008)
New Revision: 3771
Modified:
trunk/src/target/u-boot/scripts/build
Log:
- scripts/build: fixed incorrect negation in [ ! -z ... ] || ...
- scripts/build: typo, "which" not "with"
Modified: trunk/src/target/u-boot/scripts/build
===================================================================
--- trunk/src/target/u-boot/scripts/build 2008-01-05 03:19:07 UTC (rev
3770)
+++ trunk/src/target/u-boot/scripts/build 2008-01-05 03:35:52 UTC (rev
3771)
@@ -21,7 +21,7 @@
# DEVICE=gta02v3
# DEVICE=gta02v4
#
-# GIT_HEAD, if defined, specifies with git head we use, e.g.,
+# GIT_HEAD, if defined, specifies which git head we use, e.g.,
# GIT_HEAD=5c740711f0ea5b51414b341b71597c4a0751be74
#
# SVN_REV, if defined, specifies which SVN revision we use, e.g.,
@@ -31,12 +31,12 @@
git clone git://www.denx.de/git/u-boot.git
cd u-boot
-[ ! -z "$GIT_HEAD"] ||
+[ -z "$GIT_HEAD"] ||
git reset --hard $GIT_HEAD
ln -sf $SVN/trunk/src/target/u-boot/patches
-[ ! -z "$SVN_REV" ] ||
+[ -z "$SVN_REV" ] ||
( cd patches && svn update -r$SVN_REV; )
quilt push -a
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-01-05 05:12:17 +0100 (Sat, 05 Jan 2008)
New Revision: 3772
Added:
trunk/src/target/kernel/scripts/
trunk/src/target/kernel/scripts/README
trunk/src/target/kernel/scripts/build
trunk/src/target/kernel/scripts/update
Log:
Example scripts for the "manual" kernel build process (i.e., without using
OpenEmbedded or anything similar.)
NOTE: this is still unfinished and largely untested work.
- scripts/README: description of what this is
- scripts/build: build the kernel from scratch
- scripts/update: update the OM SVN repository
--Thi line, and those below, will be ignored--
A scripts
A scripts/build
A scripts/update
A scripts/README
Added: trunk/src/target/kernel/scripts/README
===================================================================
--- trunk/src/target/kernel/scripts/README 2008-01-05 03:35:52 UTC (rev
3771)
+++ trunk/src/target/kernel/scripts/README 2008-01-05 04:12:17 UTC (rev
3772)
@@ -0,0 +1,31 @@
+UNDER DEVELOPMENT - DON'T USE YET
+
+Kernel build scripts
+====================
+
+This is a collection of scripts to build the Linux kernel. This is the "manual"
+build process, which only needs a cross-toolchain and u-boot, but nothing else
+from OpenEmbedded or any similar environment.
+
+They're mainly intended as examples for how the process works and aren't
+necessarily useful "as is" for daily work:
+
+build
+ Build the kernel from scratch, using either the latest or some specific
+ version from the ftp.kernel.org kernel (HTTP) and the OpenMoko patches (SVN).
+
+update
+ Update the kernel sources to either the latest or some specific SVN version.
+
+
+Toolchain
+---------
+
+We use the OpenEmbedded EABI toolchain. See ../../u-boot/scripts/README for
+details.
+
+
+Environment variables
+---------------------
+
+See "build".
Added: trunk/src/target/kernel/scripts/build
===================================================================
--- trunk/src/target/kernel/scripts/build 2008-01-05 03:35:52 UTC (rev
3771)
+++ trunk/src/target/kernel/scripts/build 2008-01-05 04:12:17 UTC (rev
3772)
@@ -0,0 +1,51 @@
+UNDER DEVELOPMENT - DON'T USE YET
+
+#!/bin/sh -e
+#
+# This script illustrates how to build a specific version of the Linux kernel
+# from scratch. This is mainly intended as a template for copy & paste, and as
+# an example for individual scripts.
+#
+# This script uses the gnueabi toolchain, see the file
+# ../../u-boot/scripts/README in this
+#
+#
+# Environment variables:
+#
+# SVN points to the root of the local copy of the OpenMoko SVN tree (the tree
+# must be checked out already), e.g.,
+# SVN=/home/moko/svn.openmoko.org/
+#
+# KERNEL specifies the kernel version we use, e.g.,
+# KERNEL=2.6.22.5
+#
+# KERNELSRC_DIR, if defined, specifies the directory where the kernel source
+# tarball resides. By default, we use ".".
+# KERNELSRC_DIR=/wherever
+#
+# UBOOT_DIR, if defined, specifies the absolute (!) path to the directory where
+# u-boot has been built. By default, we use ./u-boot
+# UBOOT_DIR=/wherever/u-boot
+#
+# SVN_REV, if defined, specifies which SVN revision we use, e.g.,
+# SVN_REV=3770
+#
+
+# wget http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${KERNEL}.tar.bz2
+
+tar xfj ${KERNELSRC_DIR:-.}/linux-${KERNEL}.tar.bz2
+
+# we need this for "mkimage", which makes uImages
+PATH=$PATH:${UBOOT_DIR:-`pwd`/u-boot}/tools
+
+cd linux-$KERNEL
+
+ln -sf $SVN/trunk/src/target/kernel/patches
+
+[ -z "$SVN_REV" ] ||
+ ( cd patches && svn update -r$SVN_REV; )
+
+quilt push -a
+cp $SVN/trunk/src/target/kernel/config/defconfig-$KERNEL .config
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- oldconfig
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage
Added: trunk/src/target/kernel/scripts/update
===================================================================
--- trunk/src/target/kernel/scripts/update 2008-01-05 03:35:52 UTC (rev
3771)
+++ trunk/src/target/kernel/scripts/update 2008-01-05 04:12:17 UTC (rev
3772)
@@ -0,0 +1,26 @@
+UNDER DEVELOPMENT - DON'T USE YET
+
+#!/bin/sh -e
+#
+# This script illustrates how to update the Linux kernel to either a specific
+# of the latest OpenMoko version. This is mainly intended as a template for
+# copy & paste, and as an example for individual scripts.
+#
+# See ../../u-boot/scripts/README for the toolchain and "build" for environment
+# variables.
+#
+
+cd linux-$KERNEL
+
+# If there are uncommitted changes, "quilt refresh" them first.
+# If the SVN repository has been updated before running this script,
+# "quilt pop -a" may fail, and you have to use "quilt pop -f" or
+# "quilt pop -a -f".
+#
+quilt pop -a
+
+( cd patches && svn update -r${SVN_REV:-HEAD}; )
+
+quilt push -a
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- oldconfig
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-01-05 05:12:34 +0100 (Sat, 05 Jan 2008)
New Revision: 3773
Modified:
trunk/src/target/u-boot/scripts/update
Log:
- scripts/update: we don't need to symlink "patches" again
Modified: trunk/src/target/u-boot/scripts/update
===================================================================
--- trunk/src/target/u-boot/scripts/update 2008-01-05 04:12:17 UTC (rev
3772)
+++ trunk/src/target/u-boot/scripts/update 2008-01-05 04:12:34 UTC (rev
3773)
@@ -20,8 +20,6 @@
git reset --hard ${GIT_HEAD:-HEAD}
-ln -sf $SVN/trunk/src/target/u-boot/patches
-
( cd patches && svn update -r${SVN_REV:-HEAD}; )
quilt push -a
--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog