From tinderbox at freebsd.org Sat Aug 2 04:59:42 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Sat Aug 2 04:59:54 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080802045938.A3EB773039@freebsd-current.sentex.ca> TB --- 2008-08-02 04:10:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-02 04:10:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-02 04:10:00 - cleaning the object tree TB --- 2008-08-02 04:10:33 - cvsupping the source tree TB --- 2008-08-02 04:10:33 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-02 04:10:42 - building world (CFLAGS=-O -pipe) TB --- 2008-08-02 04:10:42 - cd /src TB --- 2008-08-02 04:10:42 - /usr/bin/make -B buildworld >>> World build started on Sat Aug 2 04:10:45 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -Dxregcomp=regcomp -Dxre_exec=re_exec -Dxregexec=regexec -Dxre_search=re_search -Dxre_compile_fastmap=re_compile_fastmap -Dxregerror=regerror -Dxre_comp=re_comp -Dxre_set_syntax=re_set_syntax -DHAVE_CONFIG_H -DRL_NO_COMPAT -DMI_OUT=1 -DTUI=1 -I. -I/src/gnu/usr.bin/gdb/libgdb/../arch/arm -I/src/gnu/usr.bin/gdb/libgdb/../../binutils/libbfd -I/src/gnu/usr.bin/gdb/libgdb/../../binutils/libbfd/arm -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/config -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/include -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/binutils/include -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/binutils/bfd -c version.c building static gdb library ranlib libgdb.a ===> gnu/usr.bin/gdb/gdb (all) cc -O -pipe -DHAVE_CONFIG_H -DRL_NO_COMPAT -DMI_OUT=1 -DTUI=1 -I. -I/src/gnu/usr.bin/gdb/gdb/../arch/arm -I/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd -I/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd/arm -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/config -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/include -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/binutils/include -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/binutils/bfd -c /src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/gdb.c cc -O -pipe -DHAVE_CONFIG_H -DRL_NO_COMPAT -DMI_OUT=1 -DTUI=1 -I. -I/src/gnu/usr.bin/gdb/gdb/../arch/arm -I/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd -I/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd/arm -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/config -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/include -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/binutils/include -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/binutils/bfd -Wl,-E -o gdb gdb.o /obj/arm/src/gnu/usr.bin/gdb/gdb/../../gdb/libgdb/libgdb.a /obj/arm/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd/libbfd.a /obj/arm/src/gnu/usr.bin/gdb/gdb/../../binutils/libopcodes/libopcodes.a /obj/arm/src/gnu/usr.bin/gdb/gdb/../../binutils/libiberty/libiberty.a -lm -lreadline -ltermcap -lgnuregex /obj/arm/src/gnu/usr.bin/gdb/gdb/../../gdb/libgdb/libgdb.a(init.o)(.text+0x3c): In function `initialize_all_files': : undefined reference to `_initialize_thread_db' *** Error code 1 Stop in /src/gnu/usr.bin/gdb/gdb. *** Error code 1 Stop in /src/gnu/usr.bin/gdb. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-02 04:59:38 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-02 04:59:38 - ERROR: failed to build world TB --- 2008-08-02 04:59:38 - tinderbox aborted TB --- 2195.65 user 287.64 system 2978.12 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Sat Aug 2 12:09:34 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Sat Aug 2 12:09:52 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080802120931.0417C73039@freebsd-current.sentex.ca> TB --- 2008-08-02 11:20:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-02 11:20:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-02 11:20:00 - cleaning the object tree TB --- 2008-08-02 11:20:22 - cvsupping the source tree TB --- 2008-08-02 11:20:22 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-02 11:20:29 - building world (CFLAGS=-O -pipe) TB --- 2008-08-02 11:20:29 - cd /src TB --- 2008-08-02 11:20:29 - /usr/bin/make -B buildworld >>> World build started on Sat Aug 2 11:20:31 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -Dxregcomp=regcomp -Dxre_exec=re_exec -Dxregexec=regexec -Dxre_search=re_search -Dxre_compile_fastmap=re_compile_fastmap -Dxregerror=regerror -Dxre_comp=re_comp -Dxre_set_syntax=re_set_syntax -DHAVE_CONFIG_H -DRL_NO_COMPAT -DMI_OUT=1 -DTUI=1 -I. -I/src/gnu/usr.bin/gdb/libgdb/../arch/arm -I/src/gnu/usr.bin/gdb/libgdb/../../binutils/libbfd -I/src/gnu/usr.bin/gdb/libgdb/../../binutils/libbfd/arm -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/config -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/include -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/binutils/include -I/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/binutils/bfd -c version.c building static gdb library ranlib libgdb.a ===> gnu/usr.bin/gdb/gdb (all) cc -O -pipe -DHAVE_CONFIG_H -DRL_NO_COMPAT -DMI_OUT=1 -DTUI=1 -I. -I/src/gnu/usr.bin/gdb/gdb/../arch/arm -I/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd -I/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd/arm -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/config -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/include -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/binutils/include -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/binutils/bfd -c /src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/gdb.c cc -O -pipe -DHAVE_CONFIG_H -DRL_NO_COMPAT -DMI_OUT=1 -DTUI=1 -I. -I/src/gnu/usr.bin/gdb/gdb/../arch/arm -I/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd -I/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd/arm -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/config -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/include -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/binutils/include -I/src/gnu/usr.bin/gdb/gdb/../../../../contrib/binutils/bfd -Wl,-E -o gdb gdb.o /obj/arm/src/gnu/usr.bin/gdb/gdb/../../gdb/libgdb/libgdb.a /obj/arm/src/gnu/usr.bin/gdb/gdb/../../binutils/libbfd/libbfd.a /obj/arm/src/gnu/usr.bin/gdb/gdb/../../binutils/libopcodes/libopcodes.a /obj/arm/src/gnu/usr.bin/gdb/gdb/../../binutils/libiberty/libiberty.a -lm -lreadline -ltermcap -lgnuregex /obj/arm/src/gnu/usr.bin/gdb/gdb/../../gdb/libgdb/libgdb.a(init.o)(.text+0x3c): In function `initialize_all_files': : undefined reference to `_initialize_thread_db' *** Error code 1 Stop in /src/gnu/usr.bin/gdb/gdb. *** Error code 1 Stop in /src/gnu/usr.bin/gdb. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-02 12:09:30 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-02 12:09:30 - ERROR: failed to build world TB --- 2008-08-02 12:09:30 - tinderbox aborted TB --- 2193.87 user 288.49 system 2970.03 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Thu Aug 7 21:26:07 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Thu Aug 7 21:26:19 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080807212604.5D87573039@freebsd-current.sentex.ca> TB --- 2008-08-07 21:25:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-07 21:25:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-07 21:25:00 - cleaning the object tree TB --- 2008-08-07 21:25:25 - cvsupping the source tree TB --- 2008-08-07 21:25:25 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-07 21:25:34 - building world (CFLAGS=-O -pipe) TB --- 2008-08-07 21:25:34 - cd /src TB --- 2008-08-07 21:25:34 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 7 21:25:35 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools [...] /obj/arm/src/tmp/src/games/fortune/strfile created for /src/games/fortune/strfile rm -f .depend mkdep -f .depend -a -I/obj/arm/src/tmp/legacy/usr/include /src/games/fortune/strfile/strfile.c echo strfile: /usr/lib/libc.a /obj/arm/src/tmp/legacy/usr/lib/libegacy.a >> .depend cc -O -pipe -I/obj/arm/src/tmp/legacy/usr/include -c /src/games/fortune/strfile/strfile.c cc -O -pipe -I/obj/arm/src/tmp/legacy/usr/include -static -L/obj/arm/src/tmp/legacy/usr/lib -o strfile strfile.o -legacy strfile.o(.text+0xa47): In function `main': : undefined reference to `arc4random_uniform' *** Error code 1 Stop in /src/games/fortune/strfile. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-07 21:26:04 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-07 21:26:04 - ERROR: failed to build world TB --- 2008-08-07 21:26:04 - tinderbox aborted TB --- 15.45 user 4.52 system 63.29 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Thu Aug 7 21:30:33 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Thu Aug 7 21:31:04 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080807213029.6F9937303E@freebsd-current.sentex.ca> TB --- 2008-08-07 21:30:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-07 21:30:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-07 21:30:00 - cleaning the object tree TB --- 2008-08-07 21:30:04 - cvsupping the source tree TB --- 2008-08-07 21:30:04 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-07 21:30:10 - building world (CFLAGS=-O -pipe) TB --- 2008-08-07 21:30:10 - cd /src TB --- 2008-08-07 21:30:10 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 7 21:30:11 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools [...] /obj/arm/src/tmp/src/games/fortune/strfile created for /src/games/fortune/strfile rm -f .depend mkdep -f .depend -a -I/obj/arm/src/tmp/legacy/usr/include /src/games/fortune/strfile/strfile.c echo strfile: /usr/lib/libc.a /obj/arm/src/tmp/legacy/usr/lib/libegacy.a >> .depend cc -O -pipe -I/obj/arm/src/tmp/legacy/usr/include -c /src/games/fortune/strfile/strfile.c cc -O -pipe -I/obj/arm/src/tmp/legacy/usr/include -static -L/obj/arm/src/tmp/legacy/usr/lib -o strfile strfile.o -legacy strfile.o(.text+0xa47): In function `main': : undefined reference to `arc4random_uniform' *** Error code 1 Stop in /src/games/fortune/strfile. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-07 21:30:29 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-07 21:30:29 - ERROR: failed to build world TB --- 2008-08-07 21:30:29 - tinderbox aborted TB --- 14.96 user 2.23 system 28.52 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Thu Aug 7 21:35:30 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Thu Aug 7 21:35:42 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080807213527.E80267303E@freebsd-current.sentex.ca> TB --- 2008-08-07 21:35:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-07 21:35:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-07 21:35:00 - cleaning the object tree TB --- 2008-08-07 21:35:03 - cvsupping the source tree TB --- 2008-08-07 21:35:03 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-07 21:35:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-07 21:35:09 - cd /src TB --- 2008-08-07 21:35:09 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 7 21:35:10 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools [...] /obj/arm/src/tmp/src/games/fortune/strfile created for /src/games/fortune/strfile rm -f .depend mkdep -f .depend -a -I/obj/arm/src/tmp/legacy/usr/include /src/games/fortune/strfile/strfile.c echo strfile: /usr/lib/libc.a /obj/arm/src/tmp/legacy/usr/lib/libegacy.a >> .depend cc -O -pipe -I/obj/arm/src/tmp/legacy/usr/include -c /src/games/fortune/strfile/strfile.c cc -O -pipe -I/obj/arm/src/tmp/legacy/usr/include -static -L/obj/arm/src/tmp/legacy/usr/lib -o strfile strfile.o -legacy strfile.o(.text+0xa47): In function `main': : undefined reference to `arc4random_uniform' *** Error code 1 Stop in /src/games/fortune/strfile. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-07 21:35:27 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-07 21:35:27 - ERROR: failed to build world TB --- 2008-08-07 21:35:27 - tinderbox aborted TB --- 14.90 user 2.32 system 27.00 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Thu Aug 7 21:40:31 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Thu Aug 7 21:41:02 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080807214027.78B6E7303E@freebsd-current.sentex.ca> TB --- 2008-08-07 21:40:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-07 21:40:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-07 21:40:00 - cleaning the object tree TB --- 2008-08-07 21:40:02 - cvsupping the source tree TB --- 2008-08-07 21:40:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-07 21:40:08 - building world (CFLAGS=-O -pipe) TB --- 2008-08-07 21:40:08 - cd /src TB --- 2008-08-07 21:40:08 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 7 21:40:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools [...] /obj/arm/src/tmp/src/games/fortune/strfile created for /src/games/fortune/strfile rm -f .depend mkdep -f .depend -a -I/obj/arm/src/tmp/legacy/usr/include /src/games/fortune/strfile/strfile.c echo strfile: /usr/lib/libc.a /obj/arm/src/tmp/legacy/usr/lib/libegacy.a >> .depend cc -O -pipe -I/obj/arm/src/tmp/legacy/usr/include -c /src/games/fortune/strfile/strfile.c cc -O -pipe -I/obj/arm/src/tmp/legacy/usr/include -static -L/obj/arm/src/tmp/legacy/usr/lib -o strfile strfile.o -legacy strfile.o(.text+0xa47): In function `main': : undefined reference to `arc4random_uniform' *** Error code 1 Stop in /src/games/fortune/strfile. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-07 21:40:27 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-07 21:40:27 - ERROR: failed to build world TB --- 2008-08-07 21:40:27 - tinderbox aborted TB --- 14.86 user 2.41 system 26.47 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From thompsa at FreeBSD.org Thu Aug 14 21:54:42 2008 From: thompsa at FreeBSD.org (Andrew Thompson) Date: Thu Aug 14 21:54:48 2008 Subject: static function table in DDB Message-ID: <20080814215435.GA94816@citylink.fud.org.nz> Hi, I notice that DDB on Arm does not have the static functions in the symbol table (vs. i386 for instance). Is this something that I can enable? It makes stack traces difficult to use as it will print the function as the nearest global with a largish offset. cheers, Andrew From mlfbsd at ci0.org Fri Aug 15 11:47:25 2008 From: mlfbsd at ci0.org (Olivier Houchard) Date: Fri Aug 15 11:47:31 2008 Subject: static function table in DDB In-Reply-To: <20080814215435.GA94816@citylink.fud.org.nz> References: <20080814215435.GA94816@citylink.fud.org.nz> Message-ID: <20080815133841.GA58191@ci0.org> On Thu, Aug 14, 2008 at 02:54:35PM -0700, Andrew Thompson wrote: > Hi, > > > I notice that DDB on Arm does not have the static functions in the symbol > table (vs. i386 for instance). Is this something that I can enable? It > makes stack traces difficult to use as it will print the function as the > nearest global with a largish offset. > Hi, The problem is probably, your bootloader doesn't load the kernel symbol table, as it is not an ELF loadable section. You can try to boot "kernel.tramp", instead of the regular "kernel". it is a tiny ELF trampoline, which will handles the kernel relocation, and put the symbol table somwhere where the kernel will find it. Regards, Olivier From thompsa at FreeBSD.org Fri Aug 15 16:22:04 2008 From: thompsa at FreeBSD.org (Andrew Thompson) Date: Fri Aug 15 16:22:11 2008 Subject: static function table in DDB In-Reply-To: <20080815133841.GA58191@ci0.org> References: <20080814215435.GA94816@citylink.fud.org.nz> <20080815133841.GA58191@ci0.org> Message-ID: <20080815162153.GD94816@citylink.fud.org.nz> On Fri, Aug 15, 2008 at 03:38:41PM +0200, Olivier Houchard wrote: > On Thu, Aug 14, 2008 at 02:54:35PM -0700, Andrew Thompson wrote: > > Hi, > > > > > > I notice that DDB on Arm does not have the static functions in the symbol > > table (vs. i386 for instance). Is this something that I can enable? It > > makes stack traces difficult to use as it will print the function as the > > nearest global with a largish offset. > > > > Hi, > > The problem is probably, your bootloader doesn't load the kernel symbol table, > as it is not an ELF loadable section. > You can try to boot "kernel.tramp", instead of the regular "kernel". it is > a tiny ELF trampoline, which will handles the kernel relocation, and put > the symbol table somwhere where the kernel will find it. I see, its not that the symbol table is incomplete but its missing entirely and ddb is falling back to the linker to resolve the names. I will try this out, thanks. Andrew From thompsa at FreeBSD.org Fri Aug 15 17:41:53 2008 From: thompsa at FreeBSD.org (Andrew Thompson) Date: Fri Aug 15 17:42:01 2008 Subject: static function table in DDB In-Reply-To: <20080815133841.GA58191@ci0.org> References: <20080814215435.GA94816@citylink.fud.org.nz> <20080815133841.GA58191@ci0.org> Message-ID: <20080815174143.GG94816@citylink.fud.org.nz> On Fri, Aug 15, 2008 at 03:38:41PM +0200, Olivier Houchard wrote: > On Thu, Aug 14, 2008 at 02:54:35PM -0700, Andrew Thompson wrote: > > Hi, > > > > > > I notice that DDB on Arm does not have the static functions in the symbol > > table (vs. i386 for instance). Is this something that I can enable? It > > makes stack traces difficult to use as it will print the function as the > > nearest global with a largish offset. > > > > Hi, > > The problem is probably, your bootloader doesn't load the kernel symbol table, > as it is not an ELF loadable section. > You can try to boot "kernel.tramp", instead of the regular "kernel". it is > a tiny ELF trampoline, which will handles the kernel relocation, and put > the symbol table somwhere where the kernel will find it. This indeed fixed it! thanks, Andrew From stma at antcor.com Mon Aug 18 09:01:14 2008 From: stma at antcor.com (Stavros Markou) Date: Mon Aug 18 09:01:21 2008 Subject: how to build root filesystem for ixp425 Message-ID: <1219048946.12457.1.camel@Hellboy> Hi, I am trying to build a root filesystem using the mini guide at http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for IXP425. Just to clarify some things : When i am doing a buildworld inside /usr/src all these env variables inside the mini guide must be exported ? What about BUILD_ARCH ? By default i am building a filesystem at a i386 machine so BUILD_ARCH has the i386 value. I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got the same Makefile.inc1 error for setting TARGET_ARCH (even though i am setting TARGET_ARCH=arm) I have build the kernel which is loaded fine but when the root filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i think that maybe the root filesystem i 've built is not right. Thanks in advance for your help. Best Regards, Stavros. Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE From stma at antcor.com Mon Aug 18 10:03:44 2008 From: stma at antcor.com (Stavros Markou) Date: Mon Aug 18 10:03:51 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <48A946DC.704@fuckner.net> References: <1219048946.12457.1.camel@Hellboy> <48A946DC.704@fuckner.net> Message-ID: <1219053819.12457.5.camel@Hellboy> Hi, Are you using freebsd release 8 for your build ? Best Regards, Stavros. On Mon, 2008-08-18 at 11:54 +0200, Michael Fuckner wrote: > Stavros Markou wrote: > > Hi, > > > > I am trying to build a root filesystem using the mini guide at > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > > IXP425. Just to clarify some things : > > > > When i am doing a buildworld inside /usr/src all these env variables > > inside the mini guide must be exported ? > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > > machine so BUILD_ARCH has the i386 value. > > I don't know if I have to, but I am using a separate usr/src-tree for > cross-compiling arm- which is at /samba/freebsd8-arm. > > #!/bin/csh > cd /samba/freebsd8-arm > mkdir -p usr/bin > mdkir -p usr/lib > mkdir -p usr/include > mkdir -p usr/share/man/man1 > > mkdir -p usr/share/info > > mkdir -p usr/libdata/ldscripts > mkdir -p usr/libexec > > cd /samba/freebsd8-arm/src/gnu/usr.bin/cc > make TARGET_ARCH=arm TOOLS_PREFIX=/samba/freebsd8-arm clean depend all > make TARGET_ARCH=arm TOOLS_PREFIX=/samba/freebsd8-arm > DESTDIR=/samba/freebsd8-arm install > cd ../binutils/ > make TARGET_ARCH=arm TOOLS_PREFIX=/samba/freebsd8-arm clean depend all > make TARGET_ARCH=arm TOOLS_PREFIX=/samba/freebsd8-arm > DESTDIR=/samba/freebsd8-arm install > > setenv CC /samba/freebsd8-arm/usr/bin/gcc > setenv CC /samba/freebsd8-arm/usr/bin/gcc > setenv AS /samba/freebsd8-arm/usr/bin/as > setenv NM /samba/freebsd8-arm/usr/bin/nm > setenv RANLIB /samba/freebsd8-arm/usr/bin/gnu-ranlib > setenv LD /samba/freebsd8-arm/usr/bin/ld > setenv OBJCOPY /samba/freebsd8-arm/usr/bin/objcopy > setenv SIZE /samba/freebsd8-arm/usr/bin/size > setenv MACHINE arm > setenv MACHINE_ARCH arm > cd /samba/freebsd8-arm/src/sys/arm/conf/ > config AVILA > cd ../compile/AVILA > make depend all > > > Regards, > Michael! Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE From michael at fuckner.net Mon Aug 18 10:13:08 2008 From: michael at fuckner.net (Michael Fuckner) Date: Mon Aug 18 10:13:14 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219048946.12457.1.camel@Hellboy> References: <1219048946.12457.1.camel@Hellboy> Message-ID: <48A946DC.704@fuckner.net> Stavros Markou wrote: > Hi, > > I am trying to build a root filesystem using the mini guide at > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > IXP425. Just to clarify some things : > > When i am doing a buildworld inside /usr/src all these env variables > inside the mini guide must be exported ? > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > machine so BUILD_ARCH has the i386 value. I don't know if I have to, but I am using a separate usr/src-tree for cross-compiling arm- which is at /samba/freebsd8-arm. #!/bin/csh cd /samba/freebsd8-arm mkdir -p usr/bin mdkir -p usr/lib mkdir -p usr/include mkdir -p usr/share/man/man1 mkdir -p usr/share/info mkdir -p usr/libdata/ldscripts mkdir -p usr/libexec cd /samba/freebsd8-arm/src/gnu/usr.bin/cc make TARGET_ARCH=arm TOOLS_PREFIX=/samba/freebsd8-arm clean depend all make TARGET_ARCH=arm TOOLS_PREFIX=/samba/freebsd8-arm DESTDIR=/samba/freebsd8-arm install cd ../binutils/ make TARGET_ARCH=arm TOOLS_PREFIX=/samba/freebsd8-arm clean depend all make TARGET_ARCH=arm TOOLS_PREFIX=/samba/freebsd8-arm DESTDIR=/samba/freebsd8-arm install setenv CC /samba/freebsd8-arm/usr/bin/gcc setenv CC /samba/freebsd8-arm/usr/bin/gcc setenv AS /samba/freebsd8-arm/usr/bin/as setenv NM /samba/freebsd8-arm/usr/bin/nm setenv RANLIB /samba/freebsd8-arm/usr/bin/gnu-ranlib setenv LD /samba/freebsd8-arm/usr/bin/ld setenv OBJCOPY /samba/freebsd8-arm/usr/bin/objcopy setenv SIZE /samba/freebsd8-arm/usr/bin/size setenv MACHINE arm setenv MACHINE_ARCH arm cd /samba/freebsd8-arm/src/sys/arm/conf/ config AVILA cd ../compile/AVILA make depend all Regards, Michael! From michael at fuckner.net Mon Aug 18 10:14:22 2008 From: michael at fuckner.net (Michael Fuckner) Date: Mon Aug 18 10:14:29 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219053819.12457.5.camel@Hellboy> References: <1219048946.12457.1.camel@Hellboy> <48A946DC.704@fuckner.net> <1219053819.12457.5.camel@Hellboy> Message-ID: <48A94B78.9050200@fuckner.net> Stavros Markou wrote: > Hi, > > Are you using freebsd release 8 for your build ? > I have both release8 and 7 both are currently not working with my horstbox) and the system running is FreeBSD-7-AMD64. Regards, Michael! From stma at antcor.com Mon Aug 18 10:16:28 2008 From: stma at antcor.com (Stavros Markou) Date: Mon Aug 18 10:16:38 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <48A94B78.9050200@fuckner.net> References: <1219048946.12457.1.camel@Hellboy> <48A946DC.704@fuckner.net> <1219053819.12457.5.camel@Hellboy> <48A94B78.9050200@fuckner.net> Message-ID: <1219054583.12457.11.camel@Hellboy> Hi, Are you building also a root filesystem and how ? Also what do you mean Release 8 and 7 are not working currently ? Best Regards, Stavros. On Mon, 2008-08-18 at 12:14 +0200, Michael Fuckner wrote: > Stavros Markou wrote: > > Hi, > > > > Are you using freebsd release 8 for your build ? > > > > > I have both release8 and 7 both are currently not working with my > horstbox) and the system running is FreeBSD-7-AMD64. > > > Regards, > Michael! Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE From tinderbox at freebsd.org Mon Aug 18 10:18:10 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Mon Aug 18 10:18:37 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080818101804.4997B73039@freebsd-current.sentex.ca> TB --- 2008-08-18 09:25:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-18 09:25:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-18 09:25:00 - cleaning the object tree TB --- 2008-08-18 09:25:29 - cvsupping the source tree TB --- 2008-08-18 09:25:29 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-18 09:25:35 - building world (CFLAGS=-O -pipe) TB --- 2008-08-18 09:25:35 - cd /src TB --- 2008-08-18 09:25:35 - /usr/bin/make -B buildworld >>> World build started on Mon Aug 18 09:25:38 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c /src/usr.bin/tar/bsdtar.c cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c getdate.c cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c /src/usr.bin/tar/matching.c /src/usr.bin/tar/matching.c: In function 'pathmatch': /src/usr.bin/tar/matching.c:316: error: 'FNM_LEADING_DIR' undeclared (first use in this function) /src/usr.bin/tar/matching.c:316: error: (Each undeclared identifier is reported only once /src/usr.bin/tar/matching.c:316: error: for each function it appears in.) /src/usr.bin/tar/matching.c:316: error: too many arguments to function 'bsdtar_fnmatch' *** Error code 1 Stop in /src/usr.bin/tar. *** Error code 1 Stop in /obj/arm/src/rescue/rescue. *** Error code 1 Stop in /src/rescue/rescue. *** Error code 1 Stop in /src/rescue. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-18 10:18:04 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-18 10:18:04 - ERROR: failed to build world TB --- 2008-08-18 10:18:04 - tinderbox aborted TB --- 2438.04 user 313.88 system 3183.31 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From michael at fuckner.net Mon Aug 18 10:37:11 2008 From: michael at fuckner.net (Michael Fuckner) Date: Mon Aug 18 10:37:17 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219054583.12457.11.camel@Hellboy> References: <1219048946.12457.1.camel@Hellboy> <48A946DC.704@fuckner.net> <1219053819.12457.5.camel@Hellboy> <48A94B78.9050200@fuckner.net> <1219054583.12457.11.camel@Hellboy> Message-ID: <48A950D0.40300@fuckner.net> Stavros Markou wrote: > Hi, > > Are you building also a root filesystem and how ? make installworld DESTDIR=/samba/freebsd8-arm/nfsroot > Also what do you mean > Release 8 and 7 are not working currently ? they are not working with Dlink horstbox, avila should be working. Regards, Michael! From jhay at meraka.org.za Mon Aug 18 12:49:15 2008 From: jhay at meraka.org.za (John Hay) Date: Mon Aug 18 12:49:21 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219048946.12457.1.camel@Hellboy> References: <1219048946.12457.1.camel@Hellboy> Message-ID: <20080818124909.GA10897@zibbi.meraka.csir.co.za> On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: > Hi, > > I am trying to build a root filesystem using the mini guide at > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > IXP425. Just to clarify some things : > > When i am doing a buildworld inside /usr/src all these env variables > inside the mini guide must be exported ? > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > machine so BUILD_ARCH has the i386 value. > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am > setting TARGET_ARCH=arm) > I have build the kernel which is loaded fine but when the root > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i > think that maybe the root filesystem i 've built is not right. My script do this: rm -rf /armdist chflags -R 0 /armdist rm -rf /armdist mkdir /armdist make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org From stma at antcor.com Mon Aug 18 12:54:10 2008 From: stma at antcor.com (Stavros Markou) Date: Mon Aug 18 12:54:17 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <20080818124909.GA10897@zibbi.meraka.csir.co.za> References: <1219048946.12457.1.camel@Hellboy> <20080818124909.GA10897@zibbi.meraka.csir.co.za> Message-ID: <1219064043.12457.17.camel@Hellboy> Hi, You are using this script with which release of FreeBSD ? In order to use this script do you set as tools the cross tools or native i386 (or any other host arch) ? I am using currently 7.0 release p2 and i cannot pass the error with cross build (keeps telling me to set TARGET_ARCH but it is already set by me as a command-line option of the make) Best Regards, Stavros. On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: > > Hi, > > > > I am trying to build a root filesystem using the mini guide at > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > > IXP425. Just to clarify some things : > > > > When i am doing a buildworld inside /usr/src all these env variables > > inside the mini guide must be exported ? > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > > machine so BUILD_ARCH has the i386 value. > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am > > setting TARGET_ARCH=arm) > > I have build the kernel which is loaded fine but when the root > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i > > think that maybe the root filesystem i 've built is not right. > > My script do this: > > rm -rf /armdist > chflags -R 0 /armdist > rm -rf /armdist > mkdir /armdist > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution > > John Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE From tinderbox at freebsd.org Mon Aug 18 14:03:05 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Mon Aug 18 14:03:12 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080818140302.315CD73039@freebsd-current.sentex.ca> TB --- 2008-08-18 13:10:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-18 13:10:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-18 13:10:00 - cleaning the object tree TB --- 2008-08-18 13:10:22 - cvsupping the source tree TB --- 2008-08-18 13:10:23 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-18 13:10:30 - building world (CFLAGS=-O -pipe) TB --- 2008-08-18 13:10:30 - cd /src TB --- 2008-08-18 13:10:30 - /usr/bin/make -B buildworld >>> World build started on Mon Aug 18 13:10:35 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c /src/usr.bin/tar/bsdtar.c cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c getdate.c cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c /src/usr.bin/tar/matching.c /src/usr.bin/tar/matching.c: In function 'pathmatch': /src/usr.bin/tar/matching.c:316: error: 'FNM_LEADING_DIR' undeclared (first use in this function) /src/usr.bin/tar/matching.c:316: error: (Each undeclared identifier is reported only once /src/usr.bin/tar/matching.c:316: error: for each function it appears in.) /src/usr.bin/tar/matching.c:316: error: too many arguments to function 'bsdtar_fnmatch' *** Error code 1 Stop in /src/usr.bin/tar. *** Error code 1 Stop in /obj/arm/src/rescue/rescue. *** Error code 1 Stop in /src/rescue/rescue. *** Error code 1 Stop in /src/rescue. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-18 14:03:02 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-18 14:03:02 - ERROR: failed to build world TB --- 2008-08-18 14:03:02 - tinderbox aborted TB --- 2440.98 user 311.01 system 3181.19 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From gary.jennejohn at freenet.de Mon Aug 18 14:05:40 2008 From: gary.jennejohn at freenet.de (Gary Jennejohn) Date: Mon Aug 18 14:05:47 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219064043.12457.17.camel@Hellboy> References: <1219048946.12457.1.camel@Hellboy> <20080818124909.GA10897@zibbi.meraka.csir.co.za> <1219064043.12457.17.camel@Hellboy> Message-ID: <20080818160531.5ea5c8e6@peedub.jennejohn.org> On Mon, 18 Aug 2008 15:54:03 +0300 Stavros Markou wrote: > You are using this script with which release of FreeBSD ? In order to > use this script do you set as tools the cross tools or native i386 (or > any other host arch) ? > > I am using currently 7.0 release p2 and i cannot pass the error with > cross build (keeps telling me to set TARGET_ARCH but it is already set > by me as a command-line option of the make) > Then the option probably isn't being passed to Makefiles in sub- directories, i.e. not set in make's environment. Set it in the the global environment, that way it should always work. --- Gary Jennejohn From stma at antcor.com Mon Aug 18 14:13:00 2008 From: stma at antcor.com (Stavros Markou) Date: Mon Aug 18 14:13:06 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <20080818160531.5ea5c8e6@peedub.jennejohn.org> References: <1219048946.12457.1.camel@Hellboy> <20080818124909.GA10897@zibbi.meraka.csir.co.za> <1219064043.12457.17.camel@Hellboy> <20080818160531.5ea5c8e6@peedub.jennejohn.org> Message-ID: <1219068774.12457.26.camel@Hellboy> Hi, The option is well set because i am echoing it at the time of the build what i don't understand is the check about BUILD_ARCH and TARGET_ARCH or for that matter MACHINE_ARCH. I think, and let me know if i am wrong, that BUILD_ARCH must be whatever is the ARCH of the Host system. If i am right on this then why there is this check inside Makefile.inc1 : if ${MACHINE_ARCH) != ${BUILD_ARCH} .error To cross-build, set TARGET_ARCH. .endif In my case BUILD_ARCH is i386 and as it is supposed to be (?) TARGET_ARCH=arm. Best Regards, Stavros. On Mon, 2008-08-18 at 16:05 +0200, Gary Jennejohn wrote: > On Mon, 18 Aug 2008 15:54:03 +0300 > Stavros Markou wrote: > > > You are using this script with which release of FreeBSD ? In order to > > use this script do you set as tools the cross tools or native i386 (or > > any other host arch) ? > > > > I am using currently 7.0 release p2 and i cannot pass the error with > > cross build (keeps telling me to set TARGET_ARCH but it is already set > > by me as a command-line option of the make) > > > > Then the option probably isn't being passed to Makefiles in sub- > directories, i.e. not set in make's environment. > > Set it in the the global environment, that way it should always work. > > --- > Gary Jennejohn Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE From jhay at meraka.org.za Mon Aug 18 15:37:38 2008 From: jhay at meraka.org.za (John Hay) Date: Mon Aug 18 15:37:44 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219064043.12457.17.camel@Hellboy> References: <1219048946.12457.1.camel@Hellboy> <20080818124909.GA10897@zibbi.meraka.csir.co.za> <1219064043.12457.17.camel@Hellboy> Message-ID: <20080818153734.GA19506@zibbi.meraka.csir.co.za> On Mon, Aug 18, 2008 at 03:54:03PM +0300, Stavros Markou wrote: > Hi, > > You are using this script with which release of FreeBSD ? In order to > use this script do you set as tools the cross tools or native i386 (or > any other host arch) ? I do not need to set anything else for it to work. I do sometimes set things like NO_PROFILE, but that is only to speed things up. It will build the crosstools by itself as needed. You only need a checked out /usr/src tree. The box(es) I run this on are i386 boxes. Just to check, I started the buildworld line (the first one) on my home box, which is running 7-stable from Aug 17, and it fired up without a problem... It will take a while to finish though, but I do not forsee a problem. I'll send you an email if it does not finish. > I am using currently 7.0 release p2 and i cannot pass the error with > cross build (keeps telling me to set TARGET_ARCH but it is already set > by me as a command-line option of the make) I mostly do this on 7-stable, sorry I rarely run releases and never pX releases. I also often do it on current and it has been a while since I have done it on 6-stable. Thinking about it, maybe you should remove all your env settings, and then try just that buildworld line of mine. If that does not work, clean out your /usr/obj and usr/src directories and get a new copy of /usr/src and try again. If it then still do not work, show us the error message. > On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: > > > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: > > > Hi, > > > > > > I am trying to build a root filesystem using the mini guide at > > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > > > IXP425. Just to clarify some things : > > > > > > When i am doing a buildworld inside /usr/src all these env variables > > > inside the mini guide must be exported ? > > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > > > machine so BUILD_ARCH has the i386 value. > > > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got > > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am > > > setting TARGET_ARCH=arm) > > > I have build the kernel which is loaded fine but when the root > > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i > > > think that maybe the root filesystem i 've built is not right. > > > > My script do this: > > > > rm -rf /armdist > > chflags -R 0 /armdist > > rm -rf /armdist > > mkdir /armdist > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution > > > > John John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org From tinderbox at freebsd.org Mon Aug 18 17:48:08 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Mon Aug 18 17:48:30 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080818174805.43C1B73039@freebsd-current.sentex.ca> TB --- 2008-08-18 16:55:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-18 16:55:01 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-18 16:55:01 - cleaning the object tree TB --- 2008-08-18 16:55:26 - cvsupping the source tree TB --- 2008-08-18 16:55:26 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-18 16:55:36 - building world (CFLAGS=-O -pipe) TB --- 2008-08-18 16:55:36 - cd /src TB --- 2008-08-18 16:55:36 - /usr/bin/make -B buildworld >>> World build started on Mon Aug 18 16:55:37 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c /src/usr.bin/tar/bsdtar.c cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c getdate.c cc -O -pipe -DBSDTAR_VERSION_STRING=\"2.5.5\" -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -I/src/usr.bin/tar -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -c /src/usr.bin/tar/matching.c /src/usr.bin/tar/matching.c: In function 'pathmatch': /src/usr.bin/tar/matching.c:316: error: 'FNM_LEADING_DIR' undeclared (first use in this function) /src/usr.bin/tar/matching.c:316: error: (Each undeclared identifier is reported only once /src/usr.bin/tar/matching.c:316: error: for each function it appears in.) /src/usr.bin/tar/matching.c:316: error: too many arguments to function 'bsdtar_fnmatch' *** Error code 1 Stop in /src/usr.bin/tar. *** Error code 1 Stop in /obj/arm/src/rescue/rescue. *** Error code 1 Stop in /src/rescue/rescue. *** Error code 1 Stop in /src/rescue. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-18 17:48:05 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-18 17:48:05 - ERROR: failed to build world TB --- 2008-08-18 17:48:05 - tinderbox aborted TB --- 2441.09 user 309.99 system 3183.86 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From stma at antcor.com Tue Aug 19 08:39:13 2008 From: stma at antcor.com (Stavros Markou) Date: Tue Aug 19 08:39:20 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <20080818153734.GA19506@zibbi.meraka.csir.co.za> References: <1219048946.12457.1.camel@Hellboy> <20080818124909.GA10897@zibbi.meraka.csir.co.za> <1219064043.12457.17.camel@Hellboy> <20080818153734.GA19506@zibbi.meraka.csir.co.za> Message-ID: <1219135149.6821.5.camel@Hellboy> Hi, Is there anyone form the developers-authors of the Makefile.inc1 file who can explain to me the below : I don't understand the check about BUILD_ARCH and TARGET_ARCH or for that matter MACHINE_ARCH. I think, and let me know if i am wrong, that BUILD_ARCH must be whatever is the ARCH of the Host system. If i am right on this then why there is this check inside Makefile.inc1 : if ${MACHINE_ARCH) != ${BUILD_ARCH} .error To cross-build, set TARGET_ARCH. .endif In my case BUILD_ARCH is i386 and as it is supposed to be (?) TARGET_ARCH=arm. -mbig-endian option does not apply to i386 gcc only to arm cross compiler. Best Regards, Stavros. On Mon, 2008-08-18 at 17:37 +0200, John Hay wrote: > On Mon, Aug 18, 2008 at 03:54:03PM +0300, Stavros Markou wrote: > > Hi, > > > > You are using this script with which release of FreeBSD ? In order to > > use this script do you set as tools the cross tools or native i386 (or > > any other host arch) ? > > I do not need to set anything else for it to work. I do sometimes > set things like NO_PROFILE, but that is only to speed things up. It > will build the crosstools by itself as needed. You only need a checked > out /usr/src tree. The box(es) I run this on are i386 boxes. > > Just to check, I started the buildworld line (the first one) on my > home box, which is running 7-stable from Aug 17, and it fired up > without a problem... It will take a while to finish though, but I do > not forsee a problem. I'll send you an email if it does not finish. > > > I am using currently 7.0 release p2 and i cannot pass the error with > > cross build (keeps telling me to set TARGET_ARCH but it is already set > > by me as a command-line option of the make) > > I mostly do this on 7-stable, sorry I rarely run releases and never pX > releases. I also often do it on current and it has been a while since > I have done it on 6-stable. > > Thinking about it, maybe you should remove all your env settings, > and then try just that buildworld line of mine. If that does not work, > clean out your /usr/obj and usr/src directories and get a new copy of > /usr/src and try again. If it then still do not work, show us the > error message. > > > On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: > > > > > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: > > > > Hi, > > > > > > > > I am trying to build a root filesystem using the mini guide at > > > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > > > > IXP425. Just to clarify some things : > > > > > > > > When i am doing a buildworld inside /usr/src all these env variables > > > > inside the mini guide must be exported ? > > > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > > > > machine so BUILD_ARCH has the i386 value. > > > > > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got > > > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am > > > > setting TARGET_ARCH=arm) > > > > I have build the kernel which is loaded fine but when the root > > > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i > > > > think that maybe the root filesystem i 've built is not right. > > > > > > My script do this: > > > > > > rm -rf /armdist > > > chflags -R 0 /armdist > > > rm -rf /armdist > > > mkdir /armdist > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution > > > > > > John > > John Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE From imp at bsdimp.com Tue Aug 19 13:26:24 2008 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Aug 19 13:26:31 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219135149.6821.5.camel@Hellboy> References: <1219064043.12457.17.camel@Hellboy> <20080818153734.GA19506@zibbi.meraka.csir.co.za> <1219135149.6821.5.camel@Hellboy> Message-ID: <20080819.072438.504234287.imp@bsdimp.com> In message: <1219135149.6821.5.camel@Hellboy> Stavros Markou writes: : Hi, : Is there anyone form the developers-authors of the Makefile.inc1 file : who can explain to me the below : : : I don't understand the check about BUILD_ARCH and TARGET_ARCH or for : that matter MACHINE_ARCH. : I think, and let me know if i am wrong, that BUILD_ARCH must be whatever : is the ARCH of the Host system. If i am right on this then why there is : this check inside Makefile.inc1 : : : if ${MACHINE_ARCH) != ${BUILD_ARCH} : .error To cross-build, set TARGET_ARCH. : .endif : : In my case BUILD_ARCH is i386 and as it is supposed to be (?) : TARGET_ARCH=arm. : -mbig-endian option does not apply to i386 gcc only to arm cross : compiler. setenv TARGET arm setenv TARGET_BIG_ENDIAN t is all you need. MACHINE_ARCH is the machine you are building on very early in the build. It is soon set to TARGET_ARCH. BUILD_ARCH retains the initial value of MACHINE_ARCH. This check makes sure that you set TARGET correctly (which causes TARGET_ARCH to be set to the right value). You can see my blog for complete instructions that work back on both 7.x and -current (except for the NSLU part): http://bsdimp.blogspot.com/2008/08/nslu2-support-committed-to-freebsdarm.html This was how I built NFS root for my NSLU2. Earlier posts talk about how to build root on a CF. I made one small correction... Warner : Best Regards, : : Stavros. : : On Mon, 2008-08-18 at 17:37 +0200, John Hay wrote: : : > On Mon, Aug 18, 2008 at 03:54:03PM +0300, Stavros Markou wrote: : > > Hi, : > > : > > You are using this script with which release of FreeBSD ? In order to : > > use this script do you set as tools the cross tools or native i386 (or : > > any other host arch) ? : > : > I do not need to set anything else for it to work. I do sometimes : > set things like NO_PROFILE, but that is only to speed things up. It : > will build the crosstools by itself as needed. You only need a checked : > out /usr/src tree. The box(es) I run this on are i386 boxes. : > : > Just to check, I started the buildworld line (the first one) on my : > home box, which is running 7-stable from Aug 17, and it fired up : > without a problem... It will take a while to finish though, but I do : > not forsee a problem. I'll send you an email if it does not finish. : > : > > I am using currently 7.0 release p2 and i cannot pass the error with : > > cross build (keeps telling me to set TARGET_ARCH but it is already set : > > by me as a command-line option of the make) : > : > I mostly do this on 7-stable, sorry I rarely run releases and never pX : > releases. I also often do it on current and it has been a while since : > I have done it on 6-stable. : > : > Thinking about it, maybe you should remove all your env settings, : > and then try just that buildworld line of mine. If that does not work, : > clean out your /usr/obj and usr/src directories and get a new copy of : > /usr/src and try again. If it then still do not work, show us the : > error message. : > : > > On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: : > > : > > > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: : > > > > Hi, : > > > > : > > > > I am trying to build a root filesystem using the mini guide at : > > > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for : > > > > IXP425. Just to clarify some things : : > > > > : > > > > When i am doing a buildworld inside /usr/src all these env variables : > > > > inside the mini guide must be exported ? : > > > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 : > > > > machine so BUILD_ARCH has the i386 value. : > > > > : > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got : > > > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am : > > > > setting TARGET_ARCH=arm) : > > > > I have build the kernel which is loaded fine but when the root : > > > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i : > > > > think that maybe the root filesystem i 've built is not right. : > > > : > > > My script do this: : > > > : > > > rm -rf /armdist : > > > chflags -R 0 /armdist : > > > rm -rf /armdist : > > > mkdir /armdist : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution : > > > : > > > John : > : > John : : Stavros Markou : Senior Software Engineer : ANTCOR S.A. : Email: mailto:stma@antcor.com : Phone: +30 210 52 22 290 : Fax: +30 210 52 22 254 : Address: 52 Ag. Konstantinou, Athens 10437, GREECE : From stma at antcor.com Tue Aug 19 13:54:14 2008 From: stma at antcor.com (Stavros Markou) Date: Tue Aug 19 13:54:21 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <20080819.072438.504234287.imp@bsdimp.com> References: <1219064043.12457.17.camel@Hellboy> <20080818153734.GA19506@zibbi.meraka.csir.co.za> <1219135149.6821.5.camel@Hellboy> <20080819.072438.504234287.imp@bsdimp.com> Message-ID: <1219154042.6821.27.camel@Hellboy> Hi, First of all thanks for your help. I don't have setenv (BTW do you know what package do i have to install in order to have it) installed on my freebsd system so i followed your advice and did : export TARGET=arm export TARGET_BIG_ENDIAN=t export TARGET_CPUTYPE=xscale (I am using bash shell) Target Arch is set correctly (arm) and BUILD_ARCH is i386, so i get the error about cross-build and the TARGET_ARCH set. What release are you using for your build ? If i am building a distro on an i386 machine for ixp425 (arm) what are the values for TARGET, TARGET_ARCH BUILD_ARCH and why can't i build the distro with the values i am setting (TARGET=arm, TARGET_ARCH=arm, TARGET? Best Regards, Stavros. On Tue, 2008-08-19 at 07:24 -0600, M. Warner Losh wrote: > In message: <1219135149.6821.5.camel@Hellboy> > Stavros Markou writes: > : Hi, > : Is there anyone form the developers-authors of the Makefile.inc1 file > : who can explain to me the below : > : > : I don't understand the check about BUILD_ARCH and TARGET_ARCH or for > : that matter MACHINE_ARCH. > : I think, and let me know if i am wrong, that BUILD_ARCH must be whatever > : is the ARCH of the Host system. If i am right on this then why there is > : this check inside Makefile.inc1 : > : > : if ${MACHINE_ARCH) != ${BUILD_ARCH} > : .error To cross-build, set TARGET_ARCH. > : .endif > : > : In my case BUILD_ARCH is i386 and as it is supposed to be (?) > : TARGET_ARCH=arm. > : -mbig-endian option does not apply to i386 gcc only to arm cross > : compiler. > > setenv TARGET arm > setenv TARGET_BIG_ENDIAN t > > is all you need. MACHINE_ARCH is the machine you are building on very > early in the build. It is soon set to TARGET_ARCH. BUILD_ARCH > retains the initial value of MACHINE_ARCH. This check makes sure that > you set TARGET correctly (which causes TARGET_ARCH to be set to the > right value). > > You can see my blog for complete instructions that work back on both > 7.x and -current (except for the NSLU part): > > http://bsdimp.blogspot.com/2008/08/nslu2-support-committed-to-freebsdarm.html > > This was how I built NFS root for my NSLU2. Earlier posts talk about > how to build root on a CF. I made one small correction... > > Warner > > > : Best Regards, > : > : Stavros. > : > : On Mon, 2008-08-18 at 17:37 +0200, John Hay wrote: > : > : > On Mon, Aug 18, 2008 at 03:54:03PM +0300, Stavros Markou wrote: > : > > Hi, > : > > > : > > You are using this script with which release of FreeBSD ? In order to > : > > use this script do you set as tools the cross tools or native i386 (or > : > > any other host arch) ? > : > > : > I do not need to set anything else for it to work. I do sometimes > : > set things like NO_PROFILE, but that is only to speed things up. It > : > will build the crosstools by itself as needed. You only need a checked > : > out /usr/src tree. The box(es) I run this on are i386 boxes. > : > > : > Just to check, I started the buildworld line (the first one) on my > : > home box, which is running 7-stable from Aug 17, and it fired up > : > without a problem... It will take a while to finish though, but I do > : > not forsee a problem. I'll send you an email if it does not finish. > : > > : > > I am using currently 7.0 release p2 and i cannot pass the error with > : > > cross build (keeps telling me to set TARGET_ARCH but it is already set > : > > by me as a command-line option of the make) > : > > : > I mostly do this on 7-stable, sorry I rarely run releases and never pX > : > releases. I also often do it on current and it has been a while since > : > I have done it on 6-stable. > : > > : > Thinking about it, maybe you should remove all your env settings, > : > and then try just that buildworld line of mine. If that does not work, > : > clean out your /usr/obj and usr/src directories and get a new copy of > : > /usr/src and try again. If it then still do not work, show us the > : > error message. > : > > : > > On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: > : > > > : > > > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: > : > > > > Hi, > : > > > > > : > > > > I am trying to build a root filesystem using the mini guide at > : > > > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > : > > > > IXP425. Just to clarify some things : > : > > > > > : > > > > When i am doing a buildworld inside /usr/src all these env variables > : > > > > inside the mini guide must be exported ? > : > > > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > : > > > > machine so BUILD_ARCH has the i386 value. > : > > > > > : > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got > : > > > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am > : > > > > setting TARGET_ARCH=arm) > : > > > > I have build the kernel which is loaded fine but when the root > : > > > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i > : > > > > think that maybe the root filesystem i 've built is not right. > : > > > > : > > > My script do this: > : > > > > : > > > rm -rf /armdist > : > > > chflags -R 0 /armdist > : > > > rm -rf /armdist > : > > > mkdir /armdist > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution > : > > > > : > > > John > : > > : > John > : > : Stavros Markou > : Senior Software Engineer > : ANTCOR S.A. > : Email: mailto:stma@antcor.com > : Phone: +30 210 52 22 290 > : Fax: +30 210 52 22 254 > : Address: 52 Ag. Konstantinou, Athens 10437, GREECE > : Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE From imp at bsdimp.com Tue Aug 19 14:20:25 2008 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Aug 19 14:20:34 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219154042.6821.27.camel@Hellboy> References: <1219135149.6821.5.camel@Hellboy> <20080819.072438.504234287.imp@bsdimp.com> <1219154042.6821.27.camel@Hellboy> Message-ID: <20080819.081737.-625041569.imp@bsdimp.com> In message: <1219154042.6821.27.camel@Hellboy> Stavros Markou writes: : Hi, : First of all thanks for your help. : I don't have setenv (BTW do you know what package do i have to install : in order to have it) setenv is a builtin for /bin/tcsh. If you are using /bin/sh, then you are correct that you need export. : installed on my freebsd system so i followed your : advice and did : : export TARGET=arm : export TARGET_BIG_ENDIAN=t : export TARGET_CPUTYPE=xscale : (I am using bash shell) : Target Arch is set correctly (arm) and BUILD_ARCH is i386, so i get the : error about cross-build and the TARGET_ARCH set. That is odd. What does your environment look like? : What release are you using for your build? I'm using the head of the FreeBSD development branch (aka FreeBSD-current). I've also done this on 7.x stable at least once. And did it all the time on 6.x for a little endian ARM processor. : If i am building a distro on : an i386 machine for ixp425 (arm) what are the values for TARGET, : TARGET_ARCH BUILD_ARCH and why can't i build the distro with the values : i am setting (TARGET=arm, TARGET_ARCH=arm, TARGET? What does the output of 'sh' say? Do you set any of these variables in /etc/make.conf? Warner : Best Regards, : : Stavros. : : On Tue, 2008-08-19 at 07:24 -0600, M. Warner Losh wrote: : : > In message: <1219135149.6821.5.camel@Hellboy> : > Stavros Markou writes: : > : Hi, : > : Is there anyone form the developers-authors of the Makefile.inc1 file : > : who can explain to me the below : : > : : > : I don't understand the check about BUILD_ARCH and TARGET_ARCH or for : > : that matter MACHINE_ARCH. : > : I think, and let me know if i am wrong, that BUILD_ARCH must be whatever : > : is the ARCH of the Host system. If i am right on this then why there is : > : this check inside Makefile.inc1 : : > : : > : if ${MACHINE_ARCH) != ${BUILD_ARCH} : > : .error To cross-build, set TARGET_ARCH. : > : .endif : > : : > : In my case BUILD_ARCH is i386 and as it is supposed to be (?) : > : TARGET_ARCH=arm. : > : -mbig-endian option does not apply to i386 gcc only to arm cross : > : compiler. : > : > setenv TARGET arm : > setenv TARGET_BIG_ENDIAN t : > : > is all you need. MACHINE_ARCH is the machine you are building on very : > early in the build. It is soon set to TARGET_ARCH. BUILD_ARCH : > retains the initial value of MACHINE_ARCH. This check makes sure that : > you set TARGET correctly (which causes TARGET_ARCH to be set to the : > right value). : > : > You can see my blog for complete instructions that work back on both : > 7.x and -current (except for the NSLU part): : > : > http://bsdimp.blogspot.com/2008/08/nslu2-support-committed-to-freebsdarm.html : > : > This was how I built NFS root for my NSLU2. Earlier posts talk about : > how to build root on a CF. I made one small correction... : > : > Warner : > : > : > : Best Regards, : > : : > : Stavros. : > : : > : On Mon, 2008-08-18 at 17:37 +0200, John Hay wrote: : > : : > : > On Mon, Aug 18, 2008 at 03:54:03PM +0300, Stavros Markou wrote: : > : > > Hi, : > : > > : > : > > You are using this script with which release of FreeBSD ? In order to : > : > > use this script do you set as tools the cross tools or native i386 (or : > : > > any other host arch) ? : > : > : > : > I do not need to set anything else for it to work. I do sometimes : > : > set things like NO_PROFILE, but that is only to speed things up. It : > : > will build the crosstools by itself as needed. You only need a checked : > : > out /usr/src tree. The box(es) I run this on are i386 boxes. : > : > : > : > Just to check, I started the buildworld line (the first one) on my : > : > home box, which is running 7-stable from Aug 17, and it fired up : > : > without a problem... It will take a while to finish though, but I do : > : > not forsee a problem. I'll send you an email if it does not finish. : > : > : > : > > I am using currently 7.0 release p2 and i cannot pass the error with : > : > > cross build (keeps telling me to set TARGET_ARCH but it is already set : > : > > by me as a command-line option of the make) : > : > : > : > I mostly do this on 7-stable, sorry I rarely run releases and never pX : > : > releases. I also often do it on current and it has been a while since : > : > I have done it on 6-stable. : > : > : > : > Thinking about it, maybe you should remove all your env settings, : > : > and then try just that buildworld line of mine. If that does not work, : > : > clean out your /usr/obj and usr/src directories and get a new copy of : > : > /usr/src and try again. If it then still do not work, show us the : > : > error message. : > : > : > : > > On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: : > : > > : > : > > > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: : > : > > > > Hi, : > : > > > > : > : > > > > I am trying to build a root filesystem using the mini guide at : > : > > > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for : > : > > > > IXP425. Just to clarify some things : : > : > > > > : > : > > > > When i am doing a buildworld inside /usr/src all these env variables : > : > > > > inside the mini guide must be exported ? : > : > > > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 : > : > > > > machine so BUILD_ARCH has the i386 value. : > : > > > > : > : > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got : > : > > > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am : > : > > > > setting TARGET_ARCH=arm) : > : > > > > I have build the kernel which is loaded fine but when the root : > : > > > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i : > : > > > > think that maybe the root filesystem i 've built is not right. : > : > > > : > : > > > My script do this: : > : > > > : > : > > > rm -rf /armdist : > : > > > chflags -R 0 /armdist : > : > > > rm -rf /armdist : > : > > > mkdir /armdist : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution : > : > > > : > : > > > John : > : > : > : > John : > : : > : Stavros Markou : > : Senior Software Engineer : > : ANTCOR S.A. : > : Email: mailto:stma@antcor.com : > : Phone: +30 210 52 22 290 : > : Fax: +30 210 52 22 254 : > : Address: 52 Ag. Konstantinou, Athens 10437, GREECE : > : : : Stavros Markou : Senior Software Engineer : ANTCOR S.A. : Email: mailto:stma@antcor.com : Phone: +30 210 52 22 290 : Fax: +30 210 52 22 254 : Address: 52 Ag. Konstantinou, Athens 10437, GREECE : From stma at antcor.com Tue Aug 19 14:33:18 2008 From: stma at antcor.com (Stavros Markou) Date: Tue Aug 19 14:33:25 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <20080819.081737.-625041569.imp@bsdimp.com> References: <1219135149.6821.5.camel@Hellboy> <20080819.072438.504234287.imp@bsdimp.com> <1219154042.6821.27.camel@Hellboy> <20080819.081737.-625041569.imp@bsdimp.com> Message-ID: <1219156386.3791.6.camel@Hellboy> Hi, On Tue, 2008-08-19 at 08:17 -0600, M. Warner Losh wrote: > In message: <1219154042.6821.27.camel@Hellboy> > Stavros Markou writes: > : Hi, > : First of all thanks for your help. > : I don't have setenv (BTW do you know what package do i have to install > : in order to have it) > > setenv is a builtin for /bin/tcsh. If you are using /bin/sh, then you > are correct that you need export. > >>>>> Export does the job as i see it when i give the set command (all variables seem to be well-set). > : installed on my freebsd system so i followed your > : advice and did : > : export TARGET=arm > : export TARGET_BIG_ENDIAN=t > : export TARGET_CPUTYPE=xscale > : (I am using bash shell) > : Target Arch is set correctly (arm) and BUILD_ARCH is i386, so i get the > : error about cross-build and the TARGET_ARCH set. > > That is odd. What does your environment look like? > >>>>> Meaning ? I am working on an a checked out src from freebsd.org cvs : TAG : RELENG_7 > : What release are you using for your build? > > I'm using the head of the FreeBSD development branch (aka > FreeBSD-current). I've also done this on 7.x stable at least once. > And did it all the time on 6.x for a little endian ARM processor. >>> I want to build a filesystem for ixp425 which is big endian processor. What i don't understand is if a cross-compiler must be invoked during the process of the make buildworld or not. If you set the TARGET_BIG_ENDIAN env then i believe and correct me if i am wrong the -mbig-endian which applies only to arm cross-compiler. Is this right ? > > : If i am building a distro on > : an i386 machine for ixp425 (arm) what are the values for TARGET, > : TARGET_ARCH BUILD_ARCH and why can't i build the distro with the values > : i am setting (TARGET=arm, TARGET_ARCH=arm, TARGET? > > What does the output of 'sh' say? Do you set any of these variables > in /etc/make.conf? > >>>>> I have inside this MACHINE=arm, MACHINE_ARCH=arm, TARGET_ARCH=arm > Warner > > > : Best Regards, > : > : Stavros. > : > : On Tue, 2008-08-19 at 07:24 -0600, M. Warner Losh wrote: > : > : > In message: <1219135149.6821.5.camel@Hellboy> > : > Stavros Markou writes: > : > : Hi, > : > : Is there anyone form the developers-authors of the Makefile.inc1 file > : > : who can explain to me the below : > : > : > : > : I don't understand the check about BUILD_ARCH and TARGET_ARCH or for > : > : that matter MACHINE_ARCH. > : > : I think, and let me know if i am wrong, that BUILD_ARCH must be whatever > : > : is the ARCH of the Host system. If i am right on this then why there is > : > : this check inside Makefile.inc1 : > : > : > : > : if ${MACHINE_ARCH) != ${BUILD_ARCH} > : > : .error To cross-build, set TARGET_ARCH. > : > : .endif > : > : > : > : In my case BUILD_ARCH is i386 and as it is supposed to be (?) > : > : TARGET_ARCH=arm. > : > : -mbig-endian option does not apply to i386 gcc only to arm cross > : > : compiler. > : > > : > setenv TARGET arm > : > setenv TARGET_BIG_ENDIAN t > : > > : > is all you need. MACHINE_ARCH is the machine you are building on very > : > early in the build. It is soon set to TARGET_ARCH. BUILD_ARCH > : > retains the initial value of MACHINE_ARCH. This check makes sure that > : > you set TARGET correctly (which causes TARGET_ARCH to be set to the > : > right value). > : > > : > You can see my blog for complete instructions that work back on both > : > 7.x and -current (except for the NSLU part): > : > > : > http://bsdimp.blogspot.com/2008/08/nslu2-support-committed-to-freebsdarm.html > : > > : > This was how I built NFS root for my NSLU2. Earlier posts talk about > : > how to build root on a CF. I made one small correction... > : > > : > Warner > : > > : > > : > : Best Regards, > : > : > : > : Stavros. > : > : > : > : On Mon, 2008-08-18 at 17:37 +0200, John Hay wrote: > : > : > : > : > On Mon, Aug 18, 2008 at 03:54:03PM +0300, Stavros Markou wrote: > : > : > > Hi, > : > : > > > : > : > > You are using this script with which release of FreeBSD ? In order to > : > : > > use this script do you set as tools the cross tools or native i386 (or > : > : > > any other host arch) ? > : > : > > : > : > I do not need to set anything else for it to work. I do sometimes > : > : > set things like NO_PROFILE, but that is only to speed things up. It > : > : > will build the crosstools by itself as needed. You only need a checked > : > : > out /usr/src tree. The box(es) I run this on are i386 boxes. > : > : > > : > : > Just to check, I started the buildworld line (the first one) on my > : > : > home box, which is running 7-stable from Aug 17, and it fired up > : > : > without a problem... It will take a while to finish though, but I do > : > : > not forsee a problem. I'll send you an email if it does not finish. > : > : > > : > : > > I am using currently 7.0 release p2 and i cannot pass the error with > : > : > > cross build (keeps telling me to set TARGET_ARCH but it is already set > : > : > > by me as a command-line option of the make) > : > : > > : > : > I mostly do this on 7-stable, sorry I rarely run releases and never pX > : > : > releases. I also often do it on current and it has been a while since > : > : > I have done it on 6-stable. > : > : > > : > : > Thinking about it, maybe you should remove all your env settings, > : > : > and then try just that buildworld line of mine. If that does not work, > : > : > clean out your /usr/obj and usr/src directories and get a new copy of > : > : > /usr/src and try again. If it then still do not work, show us the > : > : > error message. > : > : > > : > : > > On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: > : > : > > > : > : > > > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: > : > : > > > > Hi, > : > : > > > > > : > : > > > > I am trying to build a root filesystem using the mini guide at > : > : > > > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > : > : > > > > IXP425. Just to clarify some things : > : > : > > > > > : > : > > > > When i am doing a buildworld inside /usr/src all these env variables > : > : > > > > inside the mini guide must be exported ? > : > : > > > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > : > : > > > > machine so BUILD_ARCH has the i386 value. > : > : > > > > > : > : > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got > : > : > > > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am > : > : > > > > setting TARGET_ARCH=arm) > : > : > > > > I have build the kernel which is loaded fine but when the root > : > : > > > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i > : > : > > > > think that maybe the root filesystem i 've built is not right. > : > : > > > > : > : > > > My script do this: > : > : > > > > : > : > > > rm -rf /armdist > : > : > > > chflags -R 0 /armdist > : > : > > > rm -rf /armdist > : > : > > > mkdir /armdist > : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld > : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld > : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution > : > : > > > > : > : > > > John > : > : > > : > : > John > : > : > : > : Stavros Markou > : > : Senior Software Engineer > : > : ANTCOR S.A. > : > : Email: mailto:stma@antcor.com > : > : Phone: +30 210 52 22 290 > : > : Fax: +30 210 52 22 254 > : > : Address: 52 Ag. Konstantinou, Athens 10437, GREECE > : > : > : > : Stavros Markou > : Senior Software Engineer > : ANTCOR S.A. > : Email: mailto:stma@antcor.com > : Phone: +30 210 52 22 290 > : Fax: +30 210 52 22 254 > : Address: 52 Ag. Konstantinou, Athens 10437, GREECE > : Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE From imp at bsdimp.com Tue Aug 19 15:34:41 2008 From: imp at bsdimp.com (Warner Losh) Date: Tue Aug 19 15:34:48 2008 Subject: how to build root filesystem for ixp425 In-Reply-To: <1219156386.3791.6.camel@Hellboy> References: <1219154042.6821.27.camel@Hellboy> <20080819.081737.-625041569.imp@bsdimp.com> <1219156386.3791.6.camel@Hellboy> Message-ID: <20080819.093407.48484448.imp@bsdimp.com> Hey > Hi, > > On Tue, 2008-08-19 at 08:17 -0600, M. Warner Losh wrote: > > > In message: <1219154042.6821.27.camel@Hellboy> > > Stavros Markou writes: > > : Hi, > > : First of all thanks for your help. > > : I don't have setenv (BTW do you know what package do i have to install > > : in order to have it) > > > > setenv is a builtin for /bin/tcsh. If you are using /bin/sh, then you > > are correct that you need export. > > > > >>>>> Export does the job as i see it when i give the set command (all > variables seem to be well-set). Yes. Just a different notation than I documented... > > : installed on my freebsd system so i followed your > > : advice and did : > > : export TARGET=arm > > : export TARGET_BIG_ENDIAN=t > > : export TARGET_CPUTYPE=xscale > > : (I am using bash shell) > > : Target Arch is set correctly (arm) and BUILD_ARCH is i386, so i get the > > : error about cross-build and the TARGET_ARCH set. > > > > That is odd. What does your environment look like? > > > > > >>>>> Meaning ? I am working on an a checked out src from freebsd.org > cvs : TAG : RELENG_7 > > > : What release are you using for your build? > > > > I'm using the head of the FreeBSD development branch (aka > > FreeBSD-current). I've also done this on 7.x stable at least once. > > And did it all the time on 6.x for a little endian ARM processor. > > >>> I want to build a filesystem for ixp425 which is big endian > processor. What i don't understand is if a cross-compiler must be > invoked during the process of the make buildworld or not. > If you set the TARGET_BIG_ENDIAN env then i believe and correct me if i > am wrong the -mbig-endian which applies only to arm cross-compiler. Is > this right ? > > > > > > > : If i am building a distro on > > : an i386 machine for ixp425 (arm) what are the values for TARGET, > > : TARGET_ARCH BUILD_ARCH and why can't i build the distro with the values > > : i am setting (TARGET=arm, TARGET_ARCH=arm, TARGET? > > > > What does the output of 'sh' say? Do you set any of these variables > > in /etc/make.conf? > > > > >>>>> I have inside this MACHINE=arm, MACHINE_ARCH=arm, > > TARGET_ARCH=arm At the very least, remove the first two. I'd even consider removing the TARGET_ARCH and making sure it is set in your enviornment. The first two are causing your problem. Warner > > Warner > > > > > > : Best Regards, > > : > > : Stavros. > > : > > : On Tue, 2008-08-19 at 07:24 -0600, M. Warner Losh wrote: > > : > > : > In message: <1219135149.6821.5.camel@Hellboy> > > : > Stavros Markou writes: > > : > : Hi, > > : > : Is there anyone form the developers-authors of the Makefile.inc1 file > > : > : who can explain to me the below : > > : > : > > : > : I don't understand the check about BUILD_ARCH and TARGET_ARCH or for > > : > : that matter MACHINE_ARCH. > > : > : I think, and let me know if i am wrong, that BUILD_ARCH must be whatever > > : > : is the ARCH of the Host system. If i am right on this then why there is > > : > : this check inside Makefile.inc1 : > > : > : > > : > : if ${MACHINE_ARCH) != ${BUILD_ARCH} > > : > : .error To cross-build, set TARGET_ARCH. > > : > : .endif > > : > : > > : > : In my case BUILD_ARCH is i386 and as it is supposed to be (?) > > : > : TARGET_ARCH=arm. > > : > : -mbig-endian option does not apply to i386 gcc only to arm cross > > : > : compiler. > > : > > > : > setenv TARGET arm > > : > setenv TARGET_BIG_ENDIAN t > > : > > > : > is all you need. MACHINE_ARCH is the machine you are building on very > > : > early in the build. It is soon set to TARGET_ARCH. BUILD_ARCH > > : > retains the initial value of MACHINE_ARCH. This check makes sure that > > : > you set TARGET correctly (which causes TARGET_ARCH to be set to the > > : > right value). > > : > > > : > You can see my blog for complete instructions that work back on both > > : > 7.x and -current (except for the NSLU part): > > : > > > : > http://bsdimp.blogspot.com/2008/08/nslu2-support-committed-to-freebsdarm.html > > : > > > : > This was how I built NFS root for my NSLU2. Earlier posts talk about > > : > how to build root on a CF. I made one small correction... > > : > > > : > Warner > > : > > > : > > > : > : Best Regards, > > : > : > > : > : Stavros. > > : > : > > : > : On Mon, 2008-08-18 at 17:37 +0200, John Hay wrote: > > : > : > > : > : > On Mon, Aug 18, 2008 at 03:54:03PM +0300, Stavros Markou wrote: > > : > : > > Hi, > > : > : > > > > : > : > > You are using this script with which release of FreeBSD ? In order to > > : > : > > use this script do you set as tools the cross tools or native i386 (or > > : > : > > any other host arch) ? > > : > : > > > : > : > I do not need to set anything else for it to work. I do sometimes > > : > : > set things like NO_PROFILE, but that is only to speed things up. It > > : > : > will build the crosstools by itself as needed. You only need a checked > > : > : > out /usr/src tree. The box(es) I run this on are i386 boxes. > > : > : > > > : > : > Just to check, I started the buildworld line (the first one) on my > > : > : > home box, which is running 7-stable from Aug 17, and it fired up > > : > : > without a problem... It will take a while to finish though, but I do > > : > : > not forsee a problem. I'll send you an email if it does not finish. > > : > : > > > : > : > > I am using currently 7.0 release p2 and i cannot pass the error with > > : > : > > cross build (keeps telling me to set TARGET_ARCH but it is already set > > : > : > > by me as a command-line option of the make) > > : > : > > > : > : > I mostly do this on 7-stable, sorry I rarely run releases and never pX > > : > : > releases. I also often do it on current and it has been a while since > > : > : > I have done it on 6-stable. > > : > : > > > : > : > Thinking about it, maybe you should remove all your env settings, > > : > : > and then try just that buildworld line of mine. If that does not work, > > : > : > clean out your /usr/obj and usr/src directories and get a new copy of > > : > : > /usr/src and try again. If it then still do not work, show us the > > : > : > error message. > > : > : > > > : > : > > On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: > > : > : > > > > : > : > > > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: > > : > : > > > > Hi, > > : > : > > > > > > : > : > > > > I am trying to build a root filesystem using the mini guide at > > : > : > > > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > > : > : > > > > IXP425. Just to clarify some things : > > : > : > > > > > > : > : > > > > When i am doing a buildworld inside /usr/src all these env variables > > : > : > > > > inside the mini guide must be exported ? > > : > : > > > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > > : > : > > > > machine so BUILD_ARCH has the i386 value. > > : > : > > > > > > : > : > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got > > : > : > > > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am > > : > : > > > > setting TARGET_ARCH=arm) > > : > : > > > > I have build the kernel which is loaded fine but when the root > > : > : > > > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i > > : > : > > > > think that maybe the root filesystem i 've built is not right. > > : > : > > > > > : > : > > > My script do this: > > : > : > > > > > : > : > > > rm -rf /armdist > > : > : > > > chflags -R 0 /armdist > > : > : > > > rm -rf /armdist > > : > : > > > mkdir /armdist > > : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld > > : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld > > : > : > > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution > > : > : > > > > > : > : > > > John > > : > : > > > : > : > John > > : > : > > : > : Stavros Markou > > : > : Senior Software Engineer > > : > : ANTCOR S.A. > > : > : Email: mailto:stma@antcor.com > > : > : Phone: +30 210 52 22 290 > > : > : Fax: +30 210 52 22 254 > > : > : Address: 52 Ag. Konstantinou, Athens 10437, GREECE > > : > : > > : > > : Stavros Markou > > : Senior Software Engineer > > : ANTCOR S.A. > > : Email: mailto:stma@antcor.com > > : Phone: +30 210 52 22 290 > > : Fax: +30 210 52 22 254 > > : Address: 52 Ag. Konstantinou, Athens 10437, GREECE > > : > > Stavros Markou > Senior Software Engineer > ANTCOR S.A. > Email: mailto:stma@antcor.com > Phone: +30 210 52 22 290 > Fax: +30 210 52 22 254 > Address: 52 Ag. Konstantinou, Athens 10437, GREECE > From tinderbox at freebsd.org Fri Aug 22 17:02:44 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:02:51 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822170241.B511B73039@freebsd-current.sentex.ca> TB --- 2008-08-22 17:00:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:00:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:00:00 - cleaning the object tree TB --- 2008-08-22 17:00:27 - cvsupping the source tree TB --- 2008-08-22 17:00:27 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:00:51 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:00:51 - cd /src TB --- 2008-08-22 17:00:51 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:00:52 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:02:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:02:41 - ERROR: failed to build world TB --- 2008-08-22 17:02:41 - tinderbox aborted TB --- 48.20 user 13.69 system 161.15 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 17:11:17 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:11:34 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822171115.3D05B7303E@freebsd-current.sentex.ca> TB --- 2008-08-22 17:10:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:10:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:10:00 - cleaning the object tree TB --- 2008-08-22 17:10:02 - cvsupping the source tree TB --- 2008-08-22 17:10:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:10:08 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:10:08 - cd /src TB --- 2008-08-22 17:10:08 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:10:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:11:15 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:11:15 - ERROR: failed to build world TB --- 2008-08-22 17:11:15 - tinderbox aborted TB --- 47.27 user 11.22 system 74.59 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 17:16:24 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:16:47 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822171622.9AA9E7303E@freebsd-current.sentex.ca> TB --- 2008-08-22 17:15:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:15:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:15:00 - cleaning the object tree TB --- 2008-08-22 17:15:03 - cvsupping the source tree TB --- 2008-08-22 17:15:03 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:15:10 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:15:10 - cd /src TB --- 2008-08-22 17:15:10 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:15:11 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:16:22 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:16:22 - ERROR: failed to build world TB --- 2008-08-22 17:16:22 - tinderbox aborted TB --- 47.39 user 11.05 system 81.88 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 17:26:17 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:26:43 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822172614.299AD73039@freebsd-current.sentex.ca> TB --- 2008-08-22 17:25:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:25:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:25:00 - cleaning the object tree TB --- 2008-08-22 17:25:03 - cvsupping the source tree TB --- 2008-08-22 17:25:03 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:25:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:25:09 - cd /src TB --- 2008-08-22 17:25:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:25:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:26:14 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:26:14 - ERROR: failed to build world TB --- 2008-08-22 17:26:14 - tinderbox aborted TB --- 46.98 user 11.53 system 73.33 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 17:31:16 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:31:27 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822173114.242BB73039@freebsd-current.sentex.ca> TB --- 2008-08-22 17:30:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:30:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:30:00 - cleaning the object tree TB --- 2008-08-22 17:30:02 - cvsupping the source tree TB --- 2008-08-22 17:30:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:30:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:30:09 - cd /src TB --- 2008-08-22 17:30:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:30:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:31:14 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:31:14 - ERROR: failed to build world TB --- 2008-08-22 17:31:14 - tinderbox aborted TB --- 47.20 user 11.52 system 73.23 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 17:36:15 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:36:31 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822173612.E562C73039@freebsd-current.sentex.ca> TB --- 2008-08-22 17:35:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:35:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:35:00 - cleaning the object tree TB --- 2008-08-22 17:35:03 - cvsupping the source tree TB --- 2008-08-22 17:35:03 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:35:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:35:09 - cd /src TB --- 2008-08-22 17:35:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:35:10 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:36:12 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:36:12 - ERROR: failed to build world TB --- 2008-08-22 17:36:12 - tinderbox aborted TB --- 47.27 user 11.18 system 71.95 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 17:41:17 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:41:28 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822174115.24C5B73039@freebsd-current.sentex.ca> TB --- 2008-08-22 17:40:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:40:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:40:00 - cleaning the object tree TB --- 2008-08-22 17:40:04 - cvsupping the source tree TB --- 2008-08-22 17:40:04 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:40:11 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:40:11 - cd /src TB --- 2008-08-22 17:40:11 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:40:11 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:41:15 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:41:15 - ERROR: failed to build world TB --- 2008-08-22 17:41:15 - tinderbox aborted TB --- 47.37 user 11.25 system 74.11 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 17:46:23 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:46:30 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822174620.DD2DC73039@freebsd-current.sentex.ca> TB --- 2008-08-22 17:45:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:45:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:45:00 - cleaning the object tree TB --- 2008-08-22 17:45:02 - cvsupping the source tree TB --- 2008-08-22 17:45:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:45:08 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:45:08 - cd /src TB --- 2008-08-22 17:45:08 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:45:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:46:20 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:46:20 - ERROR: failed to build world TB --- 2008-08-22 17:46:20 - tinderbox aborted TB --- 47.00 user 11.46 system 80.12 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 17:56:16 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 17:56:50 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822175613.C8B0973039@freebsd-current.sentex.ca> TB --- 2008-08-22 17:55:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 17:55:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 17:55:00 - cleaning the object tree TB --- 2008-08-22 17:55:02 - cvsupping the source tree TB --- 2008-08-22 17:55:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 17:55:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 17:55:09 - cd /src TB --- 2008-08-22 17:55:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 17:55:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 17:56:13 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 17:56:13 - ERROR: failed to build world TB --- 2008-08-22 17:56:13 - tinderbox aborted TB --- 47.02 user 11.60 system 73.00 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 18:01:16 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 18:01:22 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822180113.9A87873039@freebsd-current.sentex.ca> TB --- 2008-08-22 18:00:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 18:00:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 18:00:00 - cleaning the object tree TB --- 2008-08-22 18:00:02 - cvsupping the source tree TB --- 2008-08-22 18:00:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 18:00:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 18:00:09 - cd /src TB --- 2008-08-22 18:00:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 18:00:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 18:01:13 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 18:01:13 - ERROR: failed to build world TB --- 2008-08-22 18:01:13 - tinderbox aborted TB --- 47.41 user 11.18 system 72.72 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 18:06:16 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 18:06:33 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822180613.630EB73039@freebsd-current.sentex.ca> TB --- 2008-08-22 18:05:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 18:05:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 18:05:00 - cleaning the object tree TB --- 2008-08-22 18:05:02 - cvsupping the source tree TB --- 2008-08-22 18:05:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 18:05:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 18:05:09 - cd /src TB --- 2008-08-22 18:05:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 18:05:10 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 18:06:13 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 18:06:13 - ERROR: failed to build world TB --- 2008-08-22 18:06:13 - tinderbox aborted TB --- 47.25 user 11.30 system 72.45 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 18:11:16 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 18:11:27 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822181113.86E9A73039@freebsd-current.sentex.ca> TB --- 2008-08-22 18:10:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 18:10:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 18:10:00 - cleaning the object tree TB --- 2008-08-22 18:10:02 - cvsupping the source tree TB --- 2008-08-22 18:10:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 18:10:08 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 18:10:08 - cd /src TB --- 2008-08-22 18:10:08 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 18:10:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 18:11:13 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 18:11:13 - ERROR: failed to build world TB --- 2008-08-22 18:11:13 - tinderbox aborted TB --- 47.35 user 11.22 system 72.56 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 18:16:22 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 18:16:33 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822181620.19F2A73039@freebsd-current.sentex.ca> TB --- 2008-08-22 18:15:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 18:15:01 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 18:15:01 - cleaning the object tree TB --- 2008-08-22 18:15:02 - cvsupping the source tree TB --- 2008-08-22 18:15:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 18:15:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 18:15:09 - cd /src TB --- 2008-08-22 18:15:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 18:15:10 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 18:16:20 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 18:16:20 - ERROR: failed to build world TB --- 2008-08-22 18:16:20 - tinderbox aborted TB --- 47.38 user 11.11 system 79.05 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 18:26:16 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 18:26:29 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822182613.B82CD7303E@freebsd-current.sentex.ca> TB --- 2008-08-22 18:25:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 18:25:01 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 18:25:01 - cleaning the object tree TB --- 2008-08-22 18:25:02 - cvsupping the source tree TB --- 2008-08-22 18:25:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 18:25:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 18:25:09 - cd /src TB --- 2008-08-22 18:25:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 18:25:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 18:26:13 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 18:26:13 - ERROR: failed to build world TB --- 2008-08-22 18:26:13 - tinderbox aborted TB --- 47.68 user 10.78 system 72.68 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 18:31:15 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 18:31:28 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822183113.B5F7D73039@freebsd-current.sentex.ca> TB --- 2008-08-22 18:30:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 18:30:01 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 18:30:01 - cleaning the object tree TB --- 2008-08-22 18:30:02 - cvsupping the source tree TB --- 2008-08-22 18:30:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 18:30:09 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 18:30:09 - cd /src TB --- 2008-08-22 18:30:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 18:30:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 18:31:13 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 18:31:13 - ERROR: failed to build world TB --- 2008-08-22 18:31:13 - tinderbox aborted TB --- 47.09 user 11.39 system 72.59 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 18:36:14 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 18:36:29 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822183611.DCB2273039@freebsd-current.sentex.ca> TB --- 2008-08-22 18:35:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 18:35:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 18:35:00 - cleaning the object tree TB --- 2008-08-22 18:35:01 - cvsupping the source tree TB --- 2008-08-22 18:35:01 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 18:35:08 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 18:35:08 - cd /src TB --- 2008-08-22 18:35:08 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 18:35:08 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 18:36:11 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 18:36:11 - ERROR: failed to build world TB --- 2008-08-22 18:36:11 - tinderbox aborted TB --- 46.84 user 11.77 system 71.66 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Fri Aug 22 18:41:27 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Fri Aug 22 18:41:53 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080822184114.8F2E27303E@freebsd-current.sentex.ca> TB --- 2008-08-22 18:40:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-22 18:40:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-22 18:40:00 - cleaning the object tree TB --- 2008-08-22 18:40:02 - cvsupping the source tree TB --- 2008-08-22 18:40:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-22 18:40:08 - building world (CFLAGS=-O -pipe) TB --- 2008-08-22 18:40:08 - cd /src TB --- 2008-08-22 18:40:08 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 22 18:40:09 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f nologin nologin.o nologin.5.gz nologin.8.gz nologin.5.cat.gz nologin.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/nscd (cleandir) rm -f nscd agent.o nscd.o nscdcli.o cachelib.o cacheplcs.o debug.o log.o config.o query.o mp_ws_query.o mp_rs_query.o singletons.o protocol.o parser.o passwd.o group.o services.o nscd.conf.5.gz nscd.8.gz nscd.conf.5.cat.gz nscd.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.sbin/ntp (cleandir) ===> usr.sbin/ntp/libopts (cleandir) cd: can't cd to /src/usr.sbin/ntp/libopts *** Error code 2 Stop in /src/usr.sbin/ntp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-22 18:41:14 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-22 18:41:14 - ERROR: failed to build world TB --- 2008-08-22 18:41:14 - tinderbox aborted TB --- 47.21 user 11.32 system 74.34 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Tue Aug 26 02:29:45 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Aug 26 02:29:57 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080826022941.BE0E273039@freebsd-current.sentex.ca> TB --- 2008-08-26 02:00:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-26 02:00:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-26 02:00:00 - cleaning the object tree TB --- 2008-08-26 02:00:26 - cvsupping the source tree TB --- 2008-08-26 02:00:26 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-26 02:00:34 - building world (CFLAGS=-O -pipe) TB --- 2008-08-26 02:00:34 - cd /src TB --- 2008-08-26 02:00:34 - /usr/bin/make -B buildworld >>> World build started on Tue Aug 26 02:00:36 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] building shared library pam_unix.so.4 ===> lib/libpam/libpam (all) ===> lib/libpcap (all) cc -O -pipe -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -DHAVE_NET_PFVAR_H -I/src/lib/libpcap/../../contrib/libpcap -c grammar.c In file included from /src/lib/libpcap/../../contrib/libpcap/pcap-int.h:44, from /src/lib/libpcap/../../contrib/libpcap/grammar.y:53: /src/lib/libpcap/../../contrib/libpcap/pcap.h:268: error: conflicting types for 'bpf_filter' /obj/arm/src/tmp/usr/include/net/bpf.h:880: error: previous declaration of 'bpf_filter' was here *** Error code 1 Stop in /src/lib/libpcap. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-26 02:29:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-26 02:29:41 - ERROR: failed to build world TB --- 2008-08-26 02:29:41 - tinderbox aborted TB --- 1343.41 user 184.07 system 1780.76 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Tue Aug 26 04:49:43 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Aug 26 04:49:49 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080826044940.76A8173039@freebsd-current.sentex.ca> TB --- 2008-08-26 04:20:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-26 04:20:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-26 04:20:00 - cleaning the object tree TB --- 2008-08-26 04:20:19 - cvsupping the source tree TB --- 2008-08-26 04:20:19 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-26 04:20:28 - building world (CFLAGS=-O -pipe) TB --- 2008-08-26 04:20:28 - cd /src TB --- 2008-08-26 04:20:28 - /usr/bin/make -B buildworld >>> World build started on Tue Aug 26 04:20:31 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] building shared library pam_unix.so.4 ===> lib/libpam/libpam (all) ===> lib/libpcap (all) cc -O -pipe -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -DHAVE_NET_PFVAR_H -I/src/lib/libpcap/../../contrib/libpcap -c grammar.c In file included from /src/lib/libpcap/../../contrib/libpcap/pcap-int.h:44, from /src/lib/libpcap/../../contrib/libpcap/grammar.y:53: /src/lib/libpcap/../../contrib/libpcap/pcap.h:268: error: conflicting types for 'bpf_filter' /obj/arm/src/tmp/usr/include/net/bpf.h:880: error: previous declaration of 'bpf_filter' was here *** Error code 1 Stop in /src/lib/libpcap. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-26 04:49:40 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-26 04:49:40 - ERROR: failed to build world TB --- 2008-08-26 04:49:40 - tinderbox aborted TB --- 1344.34 user 181.35 system 1780.20 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Tue Aug 26 07:10:31 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Aug 26 07:10:48 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080826071029.3845F73039@freebsd-current.sentex.ca> TB --- 2008-08-26 06:40:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-26 06:40:01 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-26 06:40:01 - cleaning the object tree TB --- 2008-08-26 06:40:22 - cvsupping the source tree TB --- 2008-08-26 06:40:22 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-26 06:40:29 - building world (CFLAGS=-O -pipe) TB --- 2008-08-26 06:40:29 - cd /src TB --- 2008-08-26 06:40:29 - /usr/bin/make -B buildworld >>> World build started on Tue Aug 26 06:40:31 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] building shared library pam_unix.so.4 ===> lib/libpam/libpam (all) ===> lib/libpcap (all) cc -O -pipe -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -DHAVE_NET_PFVAR_H -I/src/lib/libpcap/../../contrib/libpcap -c grammar.c In file included from /src/lib/libpcap/../../contrib/libpcap/pcap-int.h:44, from /src/lib/libpcap/../../contrib/libpcap/grammar.y:53: /src/lib/libpcap/../../contrib/libpcap/pcap.h:268: error: conflicting types for 'bpf_filter' /obj/arm/src/tmp/usr/include/net/bpf.h:880: error: previous declaration of 'bpf_filter' was here *** Error code 1 Stop in /src/lib/libpcap. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-26 07:10:29 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-26 07:10:29 - ERROR: failed to build world TB --- 2008-08-26 07:10:29 - tinderbox aborted TB --- 1344.59 user 184.31 system 1827.82 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Tue Aug 26 09:29:28 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Aug 26 09:29:47 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080826092921.BC30073039@freebsd-current.sentex.ca> TB --- 2008-08-26 09:00:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-26 09:00:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-26 09:00:00 - cleaning the object tree TB --- 2008-08-26 09:00:12 - cvsupping the source tree TB --- 2008-08-26 09:00:12 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-26 09:00:21 - building world (CFLAGS=-O -pipe) TB --- 2008-08-26 09:00:21 - cd /src TB --- 2008-08-26 09:00:21 - /usr/bin/make -B buildworld >>> World build started on Tue Aug 26 09:00:23 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] building shared library pam_unix.so.4 ===> lib/libpam/libpam (all) ===> lib/libpcap (all) cc -O -pipe -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -DHAVE_NET_PFVAR_H -I/src/lib/libpcap/../../contrib/libpcap -c grammar.c In file included from /src/lib/libpcap/../../contrib/libpcap/pcap-int.h:44, from /src/lib/libpcap/../../contrib/libpcap/grammar.y:53: /src/lib/libpcap/../../contrib/libpcap/pcap.h:268: error: conflicting types for 'bpf_filter' /obj/arm/src/tmp/usr/include/net/bpf.h:880: error: previous declaration of 'bpf_filter' was here *** Error code 1 Stop in /src/lib/libpcap. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-26 09:29:21 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-26 09:29:21 - ERROR: failed to build world TB --- 2008-08-26 09:29:21 - tinderbox aborted TB --- 1342.45 user 183.65 system 1761.32 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Tue Aug 26 11:49:38 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Aug 26 11:49:46 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080826114934.F3EB673039@freebsd-current.sentex.ca> TB --- 2008-08-26 11:20:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-26 11:20:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-26 11:20:00 - cleaning the object tree TB --- 2008-08-26 11:20:18 - cvsupping the source tree TB --- 2008-08-26 11:20:18 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-26 11:20:25 - building world (CFLAGS=-O -pipe) TB --- 2008-08-26 11:20:25 - cd /src TB --- 2008-08-26 11:20:25 - /usr/bin/make -B buildworld >>> World build started on Tue Aug 26 11:20:27 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] building shared library pam_unix.so.4 ===> lib/libpam/libpam (all) ===> lib/libpcap (all) cc -O -pipe -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -DHAVE_NET_PFVAR_H -I/src/lib/libpcap/../../contrib/libpcap -c grammar.c In file included from /src/lib/libpcap/../../contrib/libpcap/pcap-int.h:44, from /src/lib/libpcap/../../contrib/libpcap/grammar.y:53: /src/lib/libpcap/../../contrib/libpcap/pcap.h:268: error: conflicting types for 'bpf_filter' /obj/arm/src/tmp/usr/include/net/bpf.h:880: error: previous declaration of 'bpf_filter' was here *** Error code 1 Stop in /src/lib/libpcap. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-26 11:49:34 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-26 11:49:34 - ERROR: failed to build world TB --- 2008-08-26 11:49:34 - tinderbox aborted TB --- 1342.38 user 183.27 system 1774.42 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Tue Aug 26 14:09:42 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Aug 26 14:10:00 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080826140935.DBDF773039@freebsd-current.sentex.ca> TB --- 2008-08-26 13:40:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-26 13:40:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-26 13:40:00 - cleaning the object tree TB --- 2008-08-26 13:40:17 - cvsupping the source tree TB --- 2008-08-26 13:40:17 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-26 13:40:23 - building world (CFLAGS=-O -pipe) TB --- 2008-08-26 13:40:23 - cd /src TB --- 2008-08-26 13:40:23 - /usr/bin/make -B buildworld >>> World build started on Tue Aug 26 13:40:25 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] building shared library pam_unix.so.4 ===> lib/libpam/libpam (all) ===> lib/libpcap (all) cc -O -pipe -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -DHAVE_NET_PFVAR_H -I/src/lib/libpcap/../../contrib/libpcap -c grammar.c In file included from /src/lib/libpcap/../../contrib/libpcap/pcap-int.h:44, from /src/lib/libpcap/../../contrib/libpcap/grammar.y:53: /src/lib/libpcap/../../contrib/libpcap/pcap.h:268: error: conflicting types for 'bpf_filter' /obj/arm/src/tmp/usr/include/net/bpf.h:880: error: previous declaration of 'bpf_filter' was here *** Error code 1 Stop in /src/lib/libpcap. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-26 14:09:35 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-26 14:09:35 - ERROR: failed to build world TB --- 2008-08-26 14:09:35 - tinderbox aborted TB --- 1343.69 user 182.29 system 1775.55 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Tue Aug 26 16:29:35 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Tue Aug 26 16:29:42 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080826162927.8FE1C73039@freebsd-current.sentex.ca> TB --- 2008-08-26 16:00:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-26 16:00:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-26 16:00:00 - cleaning the object tree TB --- 2008-08-26 16:00:15 - cvsupping the source tree TB --- 2008-08-26 16:00:15 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-26 16:00:21 - building world (CFLAGS=-O -pipe) TB --- 2008-08-26 16:00:21 - cd /src TB --- 2008-08-26 16:00:21 - /usr/bin/make -B buildworld >>> World build started on Tue Aug 26 16:00:23 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] building shared library pam_unix.so.4 ===> lib/libpam/libpam (all) ===> lib/libpcap (all) cc -O -pipe -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -DHAVE_NET_PFVAR_H -I/src/lib/libpcap/../../contrib/libpcap -c grammar.c In file included from /src/lib/libpcap/../../contrib/libpcap/pcap-int.h:44, from /src/lib/libpcap/../../contrib/libpcap/grammar.y:53: /src/lib/libpcap/../../contrib/libpcap/pcap.h:268: error: conflicting types for 'bpf_filter' /obj/arm/src/tmp/usr/include/net/bpf.h:880: error: previous declaration of 'bpf_filter' was here *** Error code 1 Stop in /src/lib/libpcap. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-26 16:29:27 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-26 16:29:27 - ERROR: failed to build world TB --- 2008-08-26 16:29:27 - tinderbox aborted TB --- 1342.79 user 183.34 system 1767.28 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From tinderbox at freebsd.org Thu Aug 28 17:23:56 2008 From: tinderbox at freebsd.org (FreeBSD Tinderbox) Date: Thu Aug 28 17:24:03 2008 Subject: [head tinderbox] failure on arm/arm Message-ID: <20080828172349.8769A73039@freebsd-current.sentex.ca> TB --- 2008-08-28 17:00:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-08-28 17:00:00 - starting HEAD tinderbox run for arm/arm TB --- 2008-08-28 17:00:00 - cleaning the object tree TB --- 2008-08-28 17:00:26 - cvsupping the source tree TB --- 2008-08-28 17:00:26 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2008-08-28 17:00:36 - building world (CFLAGS=-O -pipe) TB --- 2008-08-28 17:00:36 - cd /src TB --- 2008-08-28 17:00:36 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 28 17:00:39 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -O -pipe -I/src/cddl/lib/libzpool/../../../sys/cddl/compat/opensolaris -I/src/cddl/lib/libzpool/../../../cddl/compat/opensolaris/include -I/src/cddl/lib/libzpool/../../../cddl/compat/opensolaris/lib/libumem -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libzpool/common -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/common/zfs -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/head -I/src/cddl/lib/libzpool/../../../cddl/lib/libumem -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libnvpair -Wno-unknown-pragmas -c /src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio_compress.c cc -O -pipe -I/src/cddl/lib/libzpool/../../../sys/cddl/compat/opensolaris -I/src/cddl/lib/libzpool/../../../cddl/compat/opensolaris/include -I/src/cddl/lib/libzpool/../../../cddl/compat/opensolaris/lib/libumem -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libzpool/common -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/common/zfs -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/head -I/src/cddl/lib/libzpool/../../../cddl/lib/libumem -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libnvpair -Wno-unknown-pragmas -c /src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio_inject.c cc -O -pipe -I/src/cddl/lib/libzpool/../../../sys/cddl/compat/opensolaris -I/src/cddl/lib/libzpool/../../../cddl/compat/opensolaris/include -I/src/cddl/lib/libzpool/../../../cddl/compat/opensolaris/lib/libumem -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libzpool/common -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/common/zfs -I/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/head -I/src/cddl/lib/libzpool/../../../cddl/lib/libumem -I/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libnvpair -Wno-unknown-pragmas -c /src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c /src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c:88:35: error: macro "VOP_GETATTR" requires 4 arguments, but only 3 given /src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c: In function 'vdev_file_open': /src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c:88: error: 'VOP_GETATTR' undeclared (first use in this function) /src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c:88: error: (Each undeclared identifier is reported only once /src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c:88: error: for each function it appears in.) *** Error code 1 Stop in /src/cddl/lib/libzpool. *** Error code 1 Stop in /src/cddl/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-08-28 17:23:49 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-08-28 17:23:49 - ERROR: failed to build world TB --- 2008-08-28 17:23:49 - tinderbox aborted TB --- 1060.87 user 148.22 system 1428.51 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From guru at unixarea.de Fri Aug 29 09:18:14 2008 From: guru at unixarea.de (Matthias Apitz) Date: Fri Aug 29 09:18:21 2008 Subject: FreeBSD for the Neo1973 snapshot Message-ID: <20080829090608.GA4595@rebelion.Sisis.de> Hello, In June of this year there was thread in freebsd-arm about the Neo1973; it is the only useful thread showing up in Don Google if you search for the words 'openmoko freebsd' :-( I'm planing to buy a new cellphone and want to go with the new OpenMoko Freerunner. I'm an experienced FreeBSD user and kernel hacker, for example I've installed FreeBSD on the netbook eeePC 900, see http://www.unixarea.de/installEeePC.txt (I only say this to make clear that I know about what adventure I'm talking picking up the OpenMoko :-) ) The OpenMoko comes with an USB device on board and if you connect this to a Linux you can bring up /dev/usb0, ifconfig it and can SSH into the OpenMoko; has some done this as well using FreeBSD to connect to the OpenMoko. This is what I 1st would need, because all my laptops are running FreeBSD, I have no Linux installed at home... Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. From stas at FreeBSD.org Fri Aug 29 11:08:43 2008 From: stas at FreeBSD.org (Stanislav Sedov) Date: Fri Aug 29 11:08:50 2008 Subject: FreeBSD for the Neo1973 snapshot In-Reply-To: <20080829090608.GA4595@rebelion.Sisis.de> References: <20080829090608.GA4595@rebelion.Sisis.de> Message-ID: <20080829142743.e8e70c9d.stas@FreeBSD.org> On Fri, 29 Aug 2008 11:06:08 +0200 Matthias Apitz mentioned: > > The OpenMoko comes with an USB device on board and if you connect this > to a Linux you can bring up /dev/usb0, ifconfig it and can SSH into the > OpenMoko; has some done this as well using FreeBSD to connect to the > OpenMoko. This is what I 1st would need, because all my laptops are > running FreeBSD, I have no Linux installed at home... > As the device is fully open there souldn't be much problems to connect it to FreeBSD. Probably, a matter of writing a simple USB driver. All JTAG software are also available in FreeBSD as well. -- Stanislav Sedov ST4096-RIPE -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20080829/56ca77a8/attachment.pgp From jacques.fourie at gmail.com Fri Aug 29 16:47:15 2008 From: jacques.fourie at gmail.com (Jacques Fourie) Date: Fri Aug 29 16:47:21 2008 Subject: MMC Controller driver for PXA255 Message-ID: Hi, I've written a driver for the MMC controller found on the Intel Xscale PXA255 (as found on the Gumstix Connex). It seems to work OK - I've tested with a range of SD cards. The driver works in PIO mode (still busy to debug some DMA issues) and on my Gumstix Connex I get around 400kB/s. If anyone wants to review the code for inclusion let me know and I'll be happy to provide it. Jacques From stas at FreeBSD.org Fri Aug 29 19:42:28 2008 From: stas at FreeBSD.org (Stanislav Sedov) Date: Fri Aug 29 19:42:34 2008 Subject: MMC Controller driver for PXA255 In-Reply-To: References: Message-ID: <20080829231522.201a591b.stas@FreeBSD.org> On Fri, 29 Aug 2008 18:20:16 +0200 "Jacques Fourie" mentioned: > Hi, > > I've written a driver for the MMC controller found on the Intel Xscale > PXA255 (as found on the Gumstix Connex). It seems to work OK - I've > tested with a range of SD cards. The driver works in PIO mode (still > busy to debug some DMA issues) and on my Gumstix Connex I get around > 400kB/s. If anyone wants to review the code for inclusion let me know > and I'll be happy to provide it. > Great work! Upload it somewhere or post here, so we can take a look. Thanks! -- Stanislav Sedov ST4096-RIPE -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20080829/188616f6/attachment.pgp From jacques.fourie at gmail.com Sat Aug 30 07:37:34 2008 From: jacques.fourie at gmail.com (Jacques Fourie) Date: Sat Aug 30 07:37:41 2008 Subject: MMC Controller driver for PXA255 In-Reply-To: <20080829231522.201a591b.stas@FreeBSD.org> References: <20080829231522.201a591b.stas@FreeBSD.org> Message-ID: > On Fri, 29 Aug 2008 18:20:16 +0200 > "Jacques Fourie" mentioned: > >> Hi, >> >> I've written a driver for the MMC controller found on the Intel Xscale >> PXA255 (as found on the Gumstix Connex). It seems to work OK - I've >> tested with a range of SD cards. The driver works in PIO mode (still >> busy to debug some DMA issues) and on my Gumstix Connex I get around >> 400kB/s. If anyone wants to review the code for inclusion let me know >> and I'll be happy to provide it. >> > > Great work! > Upload it somewhere or post here, so we can take a look. > > Thanks! > -- > Stanislav Sedov > ST4096-RIPE > Hi, I previously sent Warner some mods but forgot to cc the list. Here is a diff against current (svn revision 182470). I also made some minor mods to the mmc stack that I'll post as soon as I've cleaned them up - they contain a lot of extra printf's at the moment. Jacques -------------- next part -------------- diff -x '*svn*' -u -N -d -r fbsd_current_20080830/src/sys/arm/xscale/pxa/files.pxa fbsd_jf_priv/src/sys/arm/xscale/pxa/files.pxa --- fbsd_current_20080830/src/sys/arm/xscale/pxa/files.pxa 2008-08-30 08:43:57.000000000 +0200 +++ fbsd_jf_priv/src/sys/arm/xscale/pxa/files.pxa 2008-08-25 16:31:49.000000000 +0200 @@ -1,4 +1,4 @@ -# $FreeBSD: head/sys/arm/xscale/pxa/files.pxa 179700 2008-06-10 03:44:14Z kevlo $ +# $FreeBSD$ arm/arm/bus_space_generic.c standard arm/arm/cpufunc_asm_xscale.S standard @@ -11,8 +11,12 @@ arm/xscale/pxa/pxa_smi.c standard arm/xscale/pxa/pxa_space.c standard arm/xscale/pxa/pxa_timer.c standard +arm/xscale/pxa/pxa_clk_mgr.c standard +arm/xscale/pxa/pxa_dmac.c standard arm/xscale/pxa/uart_bus_pxa.c optional uart arm/xscale/pxa/uart_cpu_pxa.c optional uart arm/xscale/pxa/if_smc_smi.c optional smc + +arm/xscale/pxa/pxa_mci.c optional pxa_mci diff -x '*svn*' -u -N -d -r fbsd_current_20080830/src/sys/arm/xscale/pxa/pxa_clk_mgr.c fbsd_jf_priv/src/sys/arm/xscale/pxa/pxa_clk_mgr.c --- fbsd_current_20080830/src/sys/arm/xscale/pxa/pxa_clk_mgr.c 1970-01-01 02:00:00.000000000 +0200 +++ fbsd_jf_priv/src/sys/arm/xscale/pxa/pxa_clk_mgr.c 2008-08-25 13:20:43.000000000 +0200 @@ -0,0 +1,157 @@ +/*- + * Copyright (c) 2008 Jacques Fourie. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +struct pxa_clk_mgr_softc { + device_t dev; + struct resource *mem_res; +}; + +static struct pxa_clk_mgr_softc *pxa_clk_mgr_softc = NULL; + +static int pxa_clk_mgr_activate(device_t dev); + +static void pxa_clk_mgr_deactivate(device_t dev); + +static int +pxa_clk_mgr_probe(device_t dev) +{ + + device_set_desc(dev, "PXA clock manager"); + return (0); +} + +static int +pxa_clk_mgr_attach(device_t dev) +{ + struct pxa_clk_mgr_softc *sc = device_get_softc(dev); + int err; + + sc->dev = dev; + pxa_clk_mgr_softc = sc; + err = pxa_clk_mgr_activate(dev); + if (err) + goto out; + + err = bus_generic_attach(dev); +out:; + if (err) + pxa_clk_mgr_deactivate(dev); + return (err); +} + +static int +pxa_clk_mgr_activate(device_t dev) +{ + struct pxa_clk_mgr_softc *sc; + int rid; + + sc = device_get_softc(dev); + rid = 0; + sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, + RF_ACTIVE); + if (sc->mem_res == NULL) + goto errout; + return (0); +errout: + pxa_clk_mgr_deactivate(dev); + return (ENOMEM); +} + +static void +pxa_clk_mgr_deactivate(device_t dev) +{ + struct pxa_clk_mgr_softc *sc; + + sc = device_get_softc(dev); + bus_generic_detach(sc->dev); + if (sc->mem_res) + bus_release_resource(dev, SYS_RES_MEMORY, + rman_get_rid(sc->mem_res), sc->mem_res); + sc->mem_res = 0; + return; +} + +void +pxa_set_cken(uint32_t clock, uint32_t enable) +{ + uint32_t val; + struct pxa_clk_mgr_softc *sc; + + sc = pxa_clk_mgr_softc; + /* Read current value */ + val = bus_read_4(sc->mem_res, CLKMAN_CKEN); + if (enable) + val |= clock; + else + val &= ~clock; + bus_write_4(sc->mem_res, CLKMAN_CKEN, val); +} + +static device_method_t pxa_clk_mgr_methods[] = { + /* device_if */ + DEVMETHOD(device_probe, pxa_clk_mgr_probe), + DEVMETHOD(device_attach, pxa_clk_mgr_attach), + {0, 0}, +}; + +static driver_t pxa_clk_mgr_driver = { + "pxa_clk_mgr", + pxa_clk_mgr_methods, + sizeof(struct pxa_clk_mgr_softc), +}; +static devclass_t pxa_clk_mgr_devclass; + +DRIVER_MODULE(pxa_clk_mgr, pxa, pxa_clk_mgr_driver, pxa_clk_mgr_devclass, 0, 0); diff -x '*svn*' -u -N -d -r fbsd_current_20080830/src/sys/arm/xscale/pxa/pxa_dmac.c fbsd_jf_priv/src/sys/arm/xscale/pxa/pxa_dmac.c --- fbsd_current_20080830/src/sys/arm/xscale/pxa/pxa_dmac.c 1970-01-01 02:00:00.000000000 +0200 +++ fbsd_jf_priv/src/sys/arm/xscale/pxa/pxa_dmac.c 2008-08-28 11:33:39.000000000 +0200 @@ -0,0 +1,345 @@ +/*- + * Copyright (c) 2006 Benno Rice. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +struct dmac_channel { + int dc_id; + int dc_allocated; + int dc_busy; + int dc_error; +}; + +struct pxa_dmac_softc { + struct resource * pd_res[2]; + device_t pd_dev; + bus_space_tag_t pd_bst; + bus_space_handle_t pd_bsh; + struct mtx pd_mtx; + struct dmac_channel pd_channels[DMAC_N_CHANNELS]; +}; + +static struct resource_spec pxa_dmac_spec[] = { + { SYS_RES_MEMORY, 0, RF_ACTIVE }, + { SYS_RES_IRQ, 0, RF_ACTIVE }, + { -1, 0 } +}; + +static struct pxa_dmac_softc *dmac_softc = NULL; + +static int pxa_dmac_probe(device_t); +static int pxa_dmac_attach(device_t); + +static driver_filter_t pxa_dmac_intr; + +static int +pxa_dmac_probe(device_t dev) +{ + + device_set_desc(dev, "DMA Controller"); + return (0); +} + +static int +pxa_dmac_attach(device_t dev) +{ + int error, i; + void *ihl; + struct pxa_dmac_softc *sc; + + sc = (struct pxa_dmac_softc *)device_get_softc(dev); + + if (dmac_softc != NULL) + return (ENXIO); + dmac_softc = sc; + + error = bus_alloc_resources(dev, pxa_dmac_spec, sc->pd_res); + if (error) { + device_printf(dev, "could not allocate resources\n"); + return (ENXIO); + } + + if (bus_setup_intr(dev, sc->pd_res[1], INTR_TYPE_MISC, pxa_dmac_intr, + NULL, NULL, &ihl) != 0) { + bus_release_resources(dev, pxa_dmac_spec, sc->pd_res); + device_printf(dev, "could not set up interrupt\n"); + return (ENXIO); + } + + sc->pd_bst = rman_get_bustag(sc->pd_res[0]); + sc->pd_bsh = rman_get_bushandle(sc->pd_res[0]); + + for (i = 0; i < DMAC_N_CHANNELS; i++) { + sc->pd_channels[i].dc_id = i; + sc->pd_channels[i].dc_allocated = 0; + sc->pd_channels[i].dc_busy = 0; + sc->pd_channels[i].dc_error = 0; + } + + /* + * We use a spin lock so we can lock it in the (fast) interrupt handler. + */ + mtx_init(&sc->pd_mtx, "dmac mutex", NULL, MTX_SPIN); + + sc->pd_dev = dev; + + return (0); +} + +static int +pxa_dmac_intr(void *arg) +{ + uint32_t dint, dcsr; + int i; + struct pxa_dmac_softc *sc; + + (void)arg; + + sc = dmac_softc; + + dint = bus_space_read_4(sc->pd_bst, sc->pd_bsh, DMAC_DINT); + + //printf("DMAC intr : %08X\n", dint); + + for (i = 0; i < DMAC_N_CHANNELS; i++) { + if (dint & (1 << i)) { + dcsr = bus_space_read_4(sc->pd_bst, sc->pd_bsh, + DMAC_DCSR(i)); + mtx_lock_spin(&sc->pd_mtx); + if ((dcsr & DCSR_BUSERRINTR) != 0) { + sc->pd_channels[i].dc_error = 1; + } + sc->pd_channels[i].dc_busy = 0; + mtx_unlock_spin(&sc->pd_mtx); + wakeup_one(&(sc->pd_channels[i])); + bus_space_write_4(sc->pd_bst, sc->pd_bsh, + DMAC_DCSR(i), dcsr); + } + } + + return (FILTER_HANDLED); +} + +static device_method_t pxa_dmac_methods[] = { + DEVMETHOD(device_probe, pxa_dmac_probe), + DEVMETHOD(device_attach, pxa_dmac_attach), + + {0, 0} +}; + +static driver_t pxa_dmac_driver = { + "dmac", + pxa_dmac_methods, + sizeof(struct pxa_dmac_softc), +}; + +static devclass_t pxa_dmac_devclass; + +DRIVER_MODULE(pxadmac, pxa, pxa_dmac_driver, pxa_dmac_devclass, 0, 0); + +int +pxa_dmac_alloc(int priority, struct dmac_channel **channel, int timeout) +{ + int i, start, end; + struct pxa_dmac_softc *sc; + + sc = dmac_softc; + + if (priority < DMAC_PRIORITY_HIGHEST && priority > DMAC_PRIORITY_LOW) { + *channel = NULL; + return (EDOOFUS); + } + + switch (priority) { + case DMAC_PRIORITY_HIGHEST: + start = 0; + end = 3; + break; + + case DMAC_PRIORITY_HIGH: + start = 4; + end = 7; + break; + + case DMAC_PRIORITY_LOW: + default: + start = 8; + end = 15; + break; + } + + mtx_lock_spin(&sc->pd_mtx); + +retry: + for (i = start; i <= end; i++) { + if (sc->pd_channels[i].dc_allocated == 0) { + sc->pd_channels[i].dc_allocated = 1; + mtx_unlock_spin(&sc->pd_mtx); + *channel = &(sc->pd_channels[i]); + return (0); + } + } + + if (timeout) { + msleep(sc, &sc->pd_mtx, 0, "dmaalc", + timeout == -1 ? 0 : timeout); + if (timeout != -1) + timeout = 0; + goto retry; + } + + mtx_unlock_spin(&sc->pd_mtx); + return (ENOSPC); +} + +void +pxa_dmac_release(struct dmac_channel *channel) +{ + struct pxa_dmac_softc *sc; + + sc = dmac_softc; + + mtx_lock_spin(&sc->pd_mtx); + channel->dc_allocated = 0; + mtx_unlock_spin(&sc->pd_mtx); + wakeup_one(sc); +} + +int +pxa_dmac_transfer(struct dmac_channel *channel, bus_addr_t desc) +{ + struct pxa_dmac_softc *sc; + + sc = dmac_softc; + + if ((desc & 0xf) != 0) + return (EINVAL); + if (channel->dc_busy == 1) + return (EBUSY); + + mtx_lock_spin(&sc->pd_mtx); + + channel->dc_error = 0; + + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DDADR(channel->dc_id), + desc); + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DCSR(channel->dc_id), + DCSR_BUSERRINTR|DCSR_ENDINTR|DCSR_RUN); + + channel->dc_busy = 1; + + mtx_unlock_spin(&sc->pd_mtx); + return (0); +} + +int +pxa_dmac_transfer_single(struct dmac_channel *channel, bus_addr_t source, + bus_addr_t target, uint32_t command) +{ + struct pxa_dmac_softc *sc; + uint32_t dcsr; + + sc = dmac_softc; + + if (channel->dc_busy == 1) + return (EBUSY); + + mtx_lock_spin(&sc->pd_mtx); + + channel->dc_error = 0; + + dcsr = bus_space_read_4(sc->pd_bst, sc->pd_bsh, + DMAC_DCSR(channel->dc_id)); + dcsr &= ~DCSR_RUN; + dcsr |= DCSR_NODESCFETCH; + + /* Interrupt when transfer is complete */ + command |= DCMD_ENDIRQEN; + + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DCSR(channel->dc_id), + dcsr); + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DSADR(channel->dc_id), + source); + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DTADR(channel->dc_id), + target); + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DCMD(channel->dc_id), + command); + dcsr |= DCSR_RUN | DCSR_BUSERRINTR | DCSR_ENDINTR; + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DCSR(channel->dc_id), + dcsr); + + channel->dc_busy = 1; + + mtx_unlock_spin(&sc->pd_mtx); + return (0); +} + +void +pxa_dmac_channel_map_valid(struct dmac_channel *channel, uint32_t map_reg) +{ + uint32_t val; + struct pxa_dmac_softc *sc = dmac_softc; + + val = DRCMR_MAPVLD | channel->dc_id; + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DRCMR(map_reg), val); +} + +void +pxa_dmac_channel_map_invalid(struct dmac_channel *channel, uint32_t map_reg) +{ + struct pxa_dmac_softc *sc = dmac_softc; + + bus_space_write_4(sc->pd_bst, sc->pd_bsh, DMAC_DRCMR(map_reg), 0); +} + +int +pxa_dmac_transfer_done(struct dmac_channel *channel) +{ + + return (!channel->dc_busy); +} + +int +pxa_dmac_transfer_failed(struct dmac_channel *channel) +{ + + return (channel->dc_error); +} diff -x '*svn*' -u -N -d -r fbsd_current_20080830/src/sys/arm/xscale/pxa/pxa_mci.c fbsd_jf_priv/src/sys/arm/xscale/pxa/pxa_mci.c --- fbsd_current_20080830/src/sys/arm/xscale/pxa/pxa_mci.c 1970-01-01 02:00:00.000000000 +0200 +++ fbsd_jf_priv/src/sys/arm/xscale/pxa/pxa_mci.c 2008-08-29 18:09:13.000000000 +0200 @@ -0,0 +1,848 @@ +/*- + * Copyright (c) 2008 Jacques Fourie. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "mmcbr_if.h" + +//#define DEBUG + +#ifdef DEBUG +#define DBG(fmt, ...) printf(fmt, ##__VA_ARGS__) +#else +#define DBG(fmt, ...) +#endif + +#define CLOCKRATE_MAX 20000000 +#define CLOCKRATE_MIN 312500 +#define CLOCKRATE CLOCKRATE_MAX +#define BBSZ 512 + +struct pxa_mci_softc { + void *intrhand; + device_t dev; + int flags; +#define CMD_STARTED 1 +#define STOP_STARTED 2 + struct resource *irq_res; + struct resource *mem_res; + struct mtx sc_mtx; + struct mmc_host host; + int bus_busy; + struct mmc_request *req; + struct mmc_command *curcmd; + char bounce_buffer[BBSZ]; + uint32_t clockrate; + uint32_t imask; + uint32_t cmdat; + enum mmc_power_mode power_mode; + uint32_t xferred; +}; + +static inline uint8_t +RD1(struct pxa_mci_softc *sc, bus_size_t off) +{ + return bus_read_1(sc->mem_res, off); +} + +static inline void +WR1(struct pxa_mci_softc *sc, bus_size_t off, uint8_t val) +{ + bus_write_1(sc->mem_res, off, val); +} + +static inline uint32_t +RD4(struct pxa_mci_softc *sc, bus_size_t off) +{ + return bus_read_4(sc->mem_res, off); +} + +static inline void +WR4(struct pxa_mci_softc *sc, bus_size_t off, uint32_t val) +{ + bus_write_4(sc->mem_res, off, val); +} + +/* bus entry points */ +static int pxa_mci_probe(device_t dev); +static int pxa_mci_attach(device_t dev); +static void pxa_mci_intr(void *); + +/* helper routines */ +static int pxa_mci_activate(device_t dev); +static void pxa_mci_deactivate(device_t dev); + +#define PXA_MCI_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) +#define PXA_MCI_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) +#define PXA_MCI_LOCK_INIT(_sc) \ + mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \ + "mci", MTX_DEF) +#define PXA_MCI_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx); +#define PXA_MCI_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED); +#define PXA_MCI_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED); + +static void +pxa_mci_stop_clock(struct pxa_mci_softc *sc) +{ + u_int32_t timeout = 10000; + u_int32_t val; + + if ((val = RD4(sc, MMC_STAT)) & STAT_CLK_EN) { + /* Try to stop clock */ + WR4(sc, MMC_STRPCL, STRPCL_STOP); + /* Poll status with timeout */ + do { + if (((val = RD4(sc, MMC_STAT)) & STAT_CLK_EN) == 0) + break; + DELAY(1); + } while (timeout--); + + if (val & STAT_CLK_EN) + DBG("Failed to stop clock\n"); + } +} + +/* + * Starts the MMC clock. Assumes that sc->clockrate has + * been set. + */ +static void +pxa_mci_start_clock(struct pxa_mci_softc *sc) +{ + uint32_t val; + + val = RD4(sc, MMC_STAT); + if (val & STAT_CLK_EN) + DBG("clock enabled before start!\n"); + + DBG("Start clock, clockrate = %08X\n", sc->clockrate); + WR4(sc, MMC_CLKRT, sc->clockrate); + WR4(sc, MMC_STRPCL, STRPCL_START); +} + +/* + * softc lock must be held when making this call! + */ +static void +pxa_mci_irq_disable(struct pxa_mci_softc *sc, uint32_t mask) +{ + sc->imask |= mask; + WR4(sc, MMC_I_MASK, sc->imask); +} + +/* + * softc lock must be held when making this call! + */ +static void +pxa_mci_irq_enable(struct pxa_mci_softc *sc, uint32_t mask) +{ + sc->imask &= ~mask; + WR4(sc, MMC_I_MASK, sc->imask); +} + +static int +pxa_mci_probe(device_t dev) +{ + + device_set_desc(dev, "MCI mmc/sd host bridge"); + return (0); +} + +static int +pxa_mci_attach(device_t dev) +{ + struct pxa_mci_softc *sc = device_get_softc(dev); + int err; + device_t child; + + /* + * Program GPIO for alternate functions + * used by MMC controller. Is this the + * correct place? + */ + pxa_gpio_set_function(6, GPIO_ALT_FN_1_OUT); + pxa_gpio_set_function(53, GPIO_ALT_FN_1_OUT); + pxa_gpio_set_function(8, GPIO_ALT_FN_1_OUT); + + sc->dev = dev; + sc->imask = MMC_I_MASK_ALL; + + err = pxa_mci_activate(dev); + if (err) + goto out; + + PXA_MCI_LOCK_INIT(sc); + + /* Stop the clock */ + pxa_mci_stop_clock(sc); + /* Init SPI and RESTO */ + WR4(sc, MMC_SPI, 0); + WR4(sc, MMC_RESTO, MMC_RESTO_DEFAULT); + /* Mask all interrupts */ + WR4(sc, MMC_I_MASK, sc->imask); + + /* + * Activate the interrupt + */ + err = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE, + NULL, pxa_mci_intr, sc, &sc->intrhand); + if (err) { + PXA_MCI_LOCK_DESTROY(sc); + goto out; + } + sc->host.f_min = CLOCKRATE_MIN; + sc->host.f_max = CLOCKRATE_MAX; + sc->host.host_ocr = MMC_OCR_320_330 | MMC_OCR_330_340; + //sc->host.caps = MMC_CAP_4_BIT_DATA; + child = device_add_child(dev, "mmc", 0); + device_set_ivars(dev, &sc->host); + err = bus_generic_attach(dev); +out:; + if (err) + pxa_mci_deactivate(dev); + return (err); +} + +static int +pxa_mci_activate(device_t dev) +{ + struct pxa_mci_softc *sc; + int rid; + + sc = device_get_softc(dev); + rid = 0; + sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, + RF_ACTIVE); + if (sc->mem_res == NULL) + goto errout; + rid = 0; + sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, + RF_ACTIVE); + if (sc->irq_res == NULL) + goto errout; + return (0); +errout: + pxa_mci_deactivate(dev); + return (ENOMEM); +} + +static void +pxa_mci_deactivate(device_t dev) +{ + struct pxa_mci_softc *sc; + + sc = device_get_softc(dev); + if (sc->intrhand) + bus_teardown_intr(dev, sc->irq_res, sc->intrhand); + sc->intrhand = 0; + bus_generic_detach(sc->dev); + if (sc->mem_res) + bus_release_resource(dev, SYS_RES_MEMORY, + rman_get_rid(sc->mem_res), sc->mem_res); + sc->mem_res = 0; + if (sc->irq_res) + bus_release_resource(dev, SYS_RES_IRQ, + rman_get_rid(sc->irq_res), sc->irq_res); + sc->irq_res = 0; + return; +} + +static int +pxa_mci_update_ios(device_t brdev, device_t reqdev) +{ + struct pxa_mci_softc *sc; + struct mmc_host *host; + struct mmc_ios *ios; + uint32_t clkdiv; + + sc = device_get_softc(brdev); + host = &sc->host; + ios = &host->ios; + + if (ios->clock == 0) { + DBG("ios->clock == 0\n"); + pxa_mci_stop_clock(sc); + /* Disable MMC clock */ + pxa_set_cken(CKEN_MMC, 0); + } else { + DBG("ios->clock = %d\n", ios->clock); + /* Calculate clock rate. + * Write on next command. + */ + clkdiv = CLOCKRATE / ios->clock; + if (clkdiv > (1<<6)) + clkdiv = (1<<6); + sc->clockrate = fls(clkdiv) - 1; + /* Enable MMC clock */ + pxa_set_cken(CKEN_MMC, 1); + } + + if (sc->power_mode != ios->power_mode) { + sc->power_mode = ios->power_mode; + + if (ios->power_mode == power_on) { + sc->cmdat |= CMDAT_INIT; + DBG("Setting INIT\n"); + } + } + + + return (0); +} + +static int +pxa_mci_setup_data(struct pxa_mci_softc *sc, struct mmc_data *data) +{ + unsigned int numblocks; + struct mmc_request *req; + + req = data->mrq; + + numblocks = (data->len + BBSZ - 1) / BBSZ; + + if (data->flags & MMC_DATA_STREAM) + numblocks = 0xffff; + + WR4(sc, MMC_BLKLEN, BBSZ); + WR4(sc, MMC_NOB, numblocks); + + if (data->flags & MMC_DATA_READ) { + ; + } else { + if (data->len != BBSZ) + panic("Multiblock write support"); + bcopy(data->data, sc->bounce_buffer, data->len); + } + + return 0; +} + +static void +pxa_mci_start_cmd(struct pxa_mci_softc *sc, struct mmc_command *cmd, uint32_t cmdat) +{ + struct mmc_data *data = NULL; + struct mmc_request *req = NULL; + int err; + + sc->curcmd = cmd; + data = cmd->data; + req = sc->req; + /*if (data != NULL) + req = data->mrq; + else + req = cmd->mrq; + */ + + /* Stop the clock */ + pxa_mci_stop_clock(sc); + +#ifdef RSP_TYPE +#undef RSP_TYPE +#endif + +#define RSP_TYPE(x) ((x) & MMC_RSP_MASK & ~(MMC_RSP_BUSY|MMC_RSP_OPCODE)) + + if (cmd->flags & MMC_RSP_BUSY) + cmdat |= CMDAT_BUSY; + if (MMC_RSP(cmd->flags) == MMC_RSP_NONE) + cmdat |= CMDAT_RESPONSE_FORMAT_NO; + switch (RSP_TYPE(cmd->flags)) { + case RSP_TYPE(MMC_RSP_R1): /* r1, r1b, r6, r7 */ + cmdat |= CMDAT_RESPONSE_FORMAT_R1; + break; + case RSP_TYPE(MMC_RSP_R2): + cmdat |= CMDAT_RESPONSE_FORMAT_R2; + break; + case RSP_TYPE(MMC_RSP_R3): + cmdat |= CMDAT_RESPONSE_FORMAT_R3; + break; + default: + break; + } + + DBG("req = %p, data = %p, cmd = %p, opcode = %d\n", req, data, cmd, cmd->opcode); + +#undef RSP_TYPE + + if (data != NULL) { + /* Setup of data transfer */ + if ((err = pxa_mci_setup_data(sc, data)) != 0) { + DBG("Data setup failed : %d, %p, %p\n", err, req, req->cmd); + /* Mark request as done */ + if (req->cmd->flags & STOP_STARTED) + req->stop->error = MMC_ERR_NO_MEMORY; + else + req->cmd->error = MMC_ERR_NO_MEMORY; + sc->req = NULL; + sc->curcmd = NULL; + req->done(req); + return; + } + cmdat &= ~CMDAT_BUSY; + cmdat |= CMDAT_DATA_EN; + if (data->flags & MMC_DATA_WRITE) + cmdat |= CMDAT_WRITE; + if (data->flags & MMC_DATA_STREAM) + cmdat |= CMDAT_STREAM_BLOCK; + } + + DBG("cmdat = %08X opcode = %d\n", cmdat, cmd->opcode); + + WR4(sc, MMC_CMD, cmd->opcode); + WR4(sc, MMC_ARGH, cmd->arg >> 16); + WR4(sc, MMC_ARGL, cmd->arg & 0xffff); + WR4(sc, MMC_CMDAT, cmdat); + pxa_mci_start_clock(sc); + pxa_mci_irq_enable(sc, MMC_I_END_CMD_RES); + return; +} + +static void +pxa_mci_start(struct pxa_mci_softc *sc) +{ + struct mmc_request *req; + uint32_t cmdat; + + req = sc->req; + if (req == NULL) + return; + + cmdat = sc->cmdat; + sc->cmdat &= ~CMDAT_INIT; + + // assert locked + if (!(sc->flags & CMD_STARTED)) { + sc->flags |= CMD_STARTED; + DBG("Starting CMD\n"); + pxa_mci_start_cmd(sc, req->cmd, cmdat); + return; + } + if (!(sc->flags & STOP_STARTED) && req->stop) { + DBG("Starting Stop\n"); + sc->flags |= STOP_STARTED; + pxa_mci_start_cmd(sc, req->stop, cmdat); + return; + } + /* We must be done -- bad idea to do this while locked? */ + sc->req = NULL; + sc->curcmd = NULL; + req->done(req); +} + +static int +pxa_mci_request(device_t brdev, device_t reqdev, struct mmc_request *req) +{ + struct pxa_mci_softc *sc = device_get_softc(brdev); + + DBG("Request : %p\n", req); + + PXA_MCI_LOCK(sc); + // XXX do we want to be able to queue up multiple commands? + // XXX sounds like a good idea, but all protocols are sync, so + // XXX maybe the idea is naive... + if (sc->req != NULL) { + PXA_MCI_UNLOCK(sc); + DBG("sc->req != NULL\n"); + return EBUSY; + } + sc->req = req; + sc->flags = 0; + pxa_mci_start(sc); + PXA_MCI_UNLOCK(sc); + return (0); +} + +static void +pxa_mci_cmd_done(struct pxa_mci_softc *sc, uint32_t stat) +{ + struct mmc_command *cmd; + uint32_t val0, val1, val2; + int i; + static uint32_t prev_opcode = 256; + + if (sc->curcmd == NULL) + return; + + cmd = sc->curcmd; + + pxa_mci_irq_disable(sc, MMC_I_END_CMD_RES); + + /* + * Discard upper 8 bits of first 16-bit word. + */ + DBG("cmd response = "); + val0 = RD4(sc, MMC_RES) & 0xffff; + for (i = 0; i < 4; i++) { + val1 = RD4(sc, MMC_RES) & 0xffff; + val2 = RD4(sc, MMC_RES) & 0xffff; + cmd->resp[i] = val0 << 24 | val1 << 8 | val2 >> 8; + val0 = val2; + DBG("%08X ", cmd->resp[i]); + } + DBG("\n"); + + cmd->error = MMC_ERR_NONE; + + if (stat & STAT_TIMEOUT_RESPONSE) { + cmd->error = MMC_ERR_TIMEOUT; + if (cmd->opcode != 8 && cmd->opcode != 41 && cmd->opcode != 55) { + DBG("Response timeout : opcode = %d, prev = %d\n", + cmd->opcode, prev_opcode); + } + } + else if (stat & STAT_RES_CRC_ERR && cmd->flags & MMC_RSP_CRC) { + cmd->error = MMC_ERR_BADCRC; + DBG("cmd crc error\n"); + } + + prev_opcode = cmd->opcode; + + if (cmd->data && cmd->error == MMC_ERR_NONE) { + if (cmd->data->flags & MMC_DATA_READ) { + sc->xferred = 0; + pxa_mci_irq_enable(sc, MMC_I_RXFIFO_RD_REQ); + } + else if (cmd->data->flags & MMC_DATA_WRITE) { + sc->xferred = 0; + pxa_mci_irq_enable(sc, MMC_I_TXFIFO_WR_REQ); + } + } else { + pxa_mci_start(sc); + } +} + +static void +pxa_mci_data_done(struct pxa_mci_softc *sc, uint32_t stat) +{ + struct mmc_data *data; + struct mmc_command *cmd; + + if (sc->curcmd == NULL || sc->curcmd->data == NULL) + return; + + cmd = sc->curcmd; + data = cmd->data; + + if (stat & STAT_READ_TIME_OUT) + cmd->error = MMC_ERR_TIMEOUT; + else if (stat & (STAT_CRC_READ_ERROR | STAT_CRC_WRITE_ERROR)) { + cmd->error = MMC_ERR_BADCRC; + DBG("CRC error : %08X\n", stat); + } + else if (data->flags & MMC_DATA_READ && + (stat & STAT_RECV_FIFO_FULL)) { + DBG("RX fifo full\n"); + } + else if (data->flags & MMC_DATA_WRITE && + (stat & STAT_XMIT_FIFO_EMPTY)) { + DBG("TX fifo empty\n"); + } + + /* + * From Linux: + * There appears to be a hardware design bug here. There seems to + * be no way to find out how much data was transferred to the card. + * This means that if there was an error on any block, we mark all + * data blocks as being in error. + */ + if (cmd->error != MMC_ERR_NONE) { + DBG("Setting transfer len to 0\n"); + data->xfer_len = 0; + } + + pxa_mci_irq_disable(sc, MMC_I_DATA_TRAN_DONE); + + pxa_mci_start(sc); +} + +static void +pxa_mci_xfer_data(struct pxa_mci_softc *sc, unsigned char write, uint32_t stat) +{ + struct mmc_data *data = NULL; + struct mmc_request *req = NULL; + struct mmc_command *cmd = NULL; + int i; + unsigned char *dest = NULL; + uint32_t sr = 0; + + cmd = sc->curcmd; + data = cmd->data; + req = sc->req; + + sr = RD4(sc, MMC_STAT); + + if (write) { + pxa_mci_irq_disable(sc, MMC_I_TXFIFO_WR_REQ); + for (i = 0; i < 32; i++) + WR1(sc, MMC_TXFIFO, sc->bounce_buffer[i + sc->xferred]); + sc->xferred += 32; + if (sc->xferred < data->len) + pxa_mci_irq_enable(sc, MMC_I_TXFIFO_WR_REQ); + } + else { + pxa_mci_irq_disable(sc, MMC_I_RXFIFO_RD_REQ); + dest = (unsigned char *)(data->data); + for (i = 0; i < 32; i++) + dest[i + sc->xferred] = RD1(sc, MMC_RXFIFO); + sc->xferred += 32; + if (sc->xferred < data->len) + pxa_mci_irq_enable(sc, MMC_I_RXFIFO_RD_REQ); + } + + if (sc->xferred >= data->len) + pxa_mci_irq_enable(sc, MMC_I_DATA_TRAN_DONE); +} + +static void +pxa_mci_intr(void *arg) +{ + struct pxa_mci_softc *sc = (struct pxa_mci_softc*)arg; + uint32_t sr, ir; + struct mmc_data *data = NULL; + struct mmc_request *req = NULL; + struct mmc_command *cmd = NULL; + + PXA_MCI_LOCK(sc); + + ir = RD4(sc, MMC_I_REG); + + cmd = sc->curcmd; + data = cmd->data; + req = sc->req; + + DBG("IR = %08X\n", ir); + + if (ir != 0) { + sr = RD4(sc, MMC_STAT); + + DBG("SR = %08X\n", sr); + + if (ir & MMC_I_END_CMD_RES) + pxa_mci_cmd_done(sc, sr); + if (ir & MMC_I_RXFIFO_RD_REQ) + pxa_mci_xfer_data(sc, 0, sr); + if (ir & MMC_I_TXFIFO_WR_REQ) + pxa_mci_xfer_data(sc, 1, sr); + if (ir & MMC_I_DATA_TRAN_DONE) { + if ((data->flags & MMC_DATA_WRITE) && + !(sr & STAT_PRG_DONE)) { + pxa_mci_irq_disable(sc, MMC_I_DATA_TRAN_DONE); + /* Wait for prg_done */ + pxa_mci_irq_enable(sc, MMC_I_PRG_DONE); + } + else + pxa_mci_data_done(sc, sr); + } + if (ir & MMC_I_PRG_DONE) { + pxa_mci_irq_disable(sc, MMC_I_PRG_DONE); + pxa_mci_data_done(sc, sr); + } + } + + PXA_MCI_UNLOCK(sc); +} + +static int +pxa_mci_get_ro(device_t brdev, device_t reqdev) +{ + return (-1); +} + +static int +pxa_mci_acquire_host(device_t brdev, device_t reqdev) +{ + struct pxa_mci_softc *sc = device_get_softc(brdev); + int err = 0; + + PXA_MCI_LOCK(sc); + while (sc->bus_busy) + msleep(sc, &sc->sc_mtx, PZERO, "mciah", hz / 5); + sc->bus_busy++; + PXA_MCI_UNLOCK(sc); + + return (err); +} + +static int +pxa_mci_release_host(device_t brdev, device_t reqdev) +{ + struct pxa_mci_softc *sc = device_get_softc(brdev); + + PXA_MCI_LOCK(sc); + sc->bus_busy--; + wakeup(sc); + PXA_MCI_UNLOCK(sc); + + return (0); +} + +static int +pxa_mci_read_ivar(device_t bus, device_t child, int which, u_char *result) +{ + struct pxa_mci_softc *sc = device_get_softc(bus); + + + switch (which) { + default: + return (EINVAL); + case MMCBR_IVAR_BUS_MODE: + *(int *)result = sc->host.ios.bus_mode; + break; + case MMCBR_IVAR_BUS_WIDTH: + *(int *)result = sc->host.ios.bus_width; + break; + case MMCBR_IVAR_CHIP_SELECT: + *(int *)result = sc->host.ios.chip_select; + break; + case MMCBR_IVAR_CLOCK: + *(int *)result = sc->host.ios.clock; + break; + case MMCBR_IVAR_F_MIN: + *(int *)result = sc->host.f_min; + break; + case MMCBR_IVAR_F_MAX: + *(int *)result = sc->host.f_max; + break; + case MMCBR_IVAR_HOST_OCR: + *(int *)result = sc->host.host_ocr; + break; + case MMCBR_IVAR_MODE: + *(int *)result = sc->host.mode; + break; + case MMCBR_IVAR_OCR: + *(int *)result = sc->host.ocr; + break; + case MMCBR_IVAR_POWER_MODE: + *(int *)result = sc->host.ios.power_mode; + break; + case MMCBR_IVAR_VDD: + *(int *)result = sc->host.ios.vdd; + break; + } + + return (0); +} + +static int +pxa_mci_write_ivar(device_t bus, device_t child, int which, uintptr_t value) +{ + struct pxa_mci_softc *sc = device_get_softc(bus); + + switch (which) { + default: + return (EINVAL); + case MMCBR_IVAR_BUS_MODE: + sc->host.ios.bus_mode = value; + break; + case MMCBR_IVAR_BUS_WIDTH: + sc->host.ios.bus_width = value; + break; + case MMCBR_IVAR_CHIP_SELECT: + sc->host.ios.chip_select = value; + break; + case MMCBR_IVAR_CLOCK: + sc->host.ios.clock = value; + break; + case MMCBR_IVAR_MODE: + sc->host.mode = value; + break; + case MMCBR_IVAR_OCR: + sc->host.ocr = value; + break; + case MMCBR_IVAR_POWER_MODE: + sc->host.ios.power_mode = value; + break; + case MMCBR_IVAR_VDD: + sc->host.ios.vdd = value; + break; + case MMCBR_IVAR_HOST_OCR: + case MMCBR_IVAR_F_MIN: + case MMCBR_IVAR_F_MAX: + return (EINVAL); + } + return (0); +} + +static device_method_t pxa_mci_methods[] = { + /* device_if */ + DEVMETHOD(device_probe, pxa_mci_probe), + DEVMETHOD(device_attach, pxa_mci_attach), + /*DEVMETHOD(device_detach, pxa_mci_detach),*/ + + /* Bus interface */ + DEVMETHOD(bus_read_ivar, pxa_mci_read_ivar), + DEVMETHOD(bus_write_ivar, pxa_mci_write_ivar), + + /* mmcbr_if */ + DEVMETHOD(mmcbr_update_ios, pxa_mci_update_ios), + DEVMETHOD(mmcbr_request, pxa_mci_request), + DEVMETHOD(mmcbr_get_ro, pxa_mci_get_ro), + DEVMETHOD(mmcbr_acquire_host, pxa_mci_acquire_host), + DEVMETHOD(mmcbr_release_host, pxa_mci_release_host), + + {0, 0}, +}; + +static driver_t pxa_mci_driver = { + "pxa_mci", + pxa_mci_methods, + sizeof(struct pxa_mci_softc), +}; +static devclass_t pxa_mci_devclass; + + +DRIVER_MODULE(pxa_mci, pxa, pxa_mci_driver, pxa_mci_devclass, 0, 0); diff -x '*svn*' -u -N -d -r fbsd_current_20080830/src/sys/arm/xscale/pxa/pxa_obio.c fbsd_jf_priv/src/sys/arm/xscale/pxa/pxa_obio.c --- fbsd_current_20080830/src/sys/arm/xscale/pxa/pxa_obio.c 2008-08-30 08:43:57.000000000 +0200 +++ fbsd_jf_priv/src/sys/arm/xscale/pxa/pxa_obio.c 2008-08-25 13:02:19.000000000 +0200 @@ -23,7 +23,7 @@ */ #include -__FBSDID("$FreeBSD: head/sys/arm/xscale/pxa/pxa_obio.c 179701 2008-06-10 06:06:15Z kevlo $"); +__FBSDID("$FreeBSD$"); #include #include @@ -76,6 +76,8 @@ { "uart", PXA2X0_BTUART_BASE, PXA2X0_BTUART_SIZE, { PXA2X0_INT_BTUART, 0 } }, { "uart", PXA2X0_STUART_BASE, PXA2X0_STUART_SIZE, { PXA2X0_INT_STUART, 0 } }, { "uart", PXA2X0_HWUART_BASE, PXA2X0_HWUART_SIZE, { PXA2X0_INT_HWUART, 0 } }, + { "pxa_clk_mgr", PXA2X0_CLKMAN_BASE, PXA2X0_CLKMAN_SIZE, { 0 } }, + { "pxa_mci", PXA2X0_MMC_BASE, PXA2X0_MMC_SIZE, { PXA2X0_INT_MMC, 0 } }, { "smi", PXA2X0_CS0_START, PXA2X0_CS_SIZE * 6, { 0 } }, { NULL, 0, 0, { 0 } } }; @@ -244,6 +246,10 @@ start, end, count, flags)); return (NULL); } + /* Temp hack */ + if (rle->res != NULL) + return NULL; + if (rle->res != NULL) panic("pxa_alloc_resource: resource is busy"); diff -x '*svn*' -u -N -d -r fbsd_current_20080830/src/sys/arm/xscale/pxa/pxareg.h fbsd_jf_priv/src/sys/arm/xscale/pxa/pxareg.h --- fbsd_current_20080830/src/sys/arm/xscale/pxa/pxareg.h 2008-08-30 08:43:57.000000000 +0200 +++ fbsd_jf_priv/src/sys/arm/xscale/pxa/pxareg.h 2008-08-26 10:48:16.000000000 +0200 @@ -32,7 +32,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $FreeBSD: head/sys/arm/xscale/pxa/pxareg.h 179595 2008-06-06 05:08:09Z benno $ + * $FreeBSD$ */ @@ -210,6 +210,9 @@ #define DCMD_INCTRGADDR (1<<30) /* increment target address */ #define DCMD_INCSRCADDR (1<<31) /* increment source address */ +#define DRCMR_MMC_RX 21 +#define DRCMR_MMC_TX 22 + #ifndef __ASSEMBLER__ /* DMA descriptor */ struct pxa_dma_desc { @@ -582,6 +585,7 @@ #define CMDAT_INIT (1<<6) /* preceede command with 80 clocks */ #define CMDAT_MMC_DMA_EN (1<<7) /* DMA enable */ #define MMC_RESTO 0x14 /* expected response time out */ +#define MMC_RESTO_DEFAULT 0x40 /* default value */ #define MMC_RDTO 0x18 /* expected data read time out */ #define MMC_BLKLEN 0x1c /* block length of data transaction */ #define MMC_NOB 0x20 /* number of blocks (block mode) */ @@ -596,6 +600,7 @@ #define MMC_I_CLK_IS_OFF (1<<4) #define MMC_I_RXFIFO_RD_REQ (1<<5) #define MMC_I_TXFIFO_WR_REQ (1<<6) +#define MMC_I_MASK_ALL ((1<<7) - 1) #define MMC_CMD 0x30 /* index of current command */ #define MMC_ARGH 0x34 /* MSW part of the current command arg */ #define MMC_ARGL 0x38 /* LSW part of the current command arg */ diff -x '*svn*' -u -N -d -r fbsd_current_20080830/src/sys/arm/xscale/pxa/pxavar.h fbsd_jf_priv/src/sys/arm/xscale/pxa/pxavar.h --- fbsd_current_20080830/src/sys/arm/xscale/pxa/pxavar.h 2008-08-30 08:43:57.000000000 +0200 +++ fbsd_jf_priv/src/sys/arm/xscale/pxa/pxavar.h 2008-08-25 16:58:46.000000000 +0200 @@ -34,7 +34,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $FreeBSD: head/sys/arm/xscale/pxa/pxavar.h 179595 2008-06-06 05:08:09Z benno $ + * $FreeBSD$ * */ @@ -87,6 +87,9 @@ int pxa_dmac_transfer_done(struct dmac_channel *); int pxa_dmac_transfer_failed(struct dmac_channel *); +void pxa_dmac_channel_map_valid(struct dmac_channel *channel, uint32_t map_reg); +void pxa_dmac_channel_map_invalid(struct dmac_channel *channel, uint32_t map_reg); + enum pxa_device_ivars { PXA_IVAR_BASE, }; @@ -109,4 +112,7 @@ #undef CSR_ACCESSOR + +void pxa_set_cken(uint32_t clock, uint32_t enable); + #endif /* _PXAVAR_H_ */