From owner-freebsd-embedded@FreeBSD.ORG Mon May 7 11:08:22 2007 Return-Path: X-Original-To: freebsd-embedded@FreeBSD.org Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A33C516A473 for ; Mon, 7 May 2007 11:08:22 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 921F413C459 for ; Mon, 7 May 2007 11:08:22 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l47B8MIZ078602 for ; Mon, 7 May 2007 11:08:22 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l47B8LHu078598 for freebsd-embedded@FreeBSD.org; Mon, 7 May 2007 11:08:21 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 7 May 2007 11:08:21 GMT Message-Id: <200705071108.l47B8LHu078598@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 11:08:22 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/15876 embedded [picobsd] PicoBSD message of the day problems o misc/28255 embedded [picobsd] picobsd documentation still references old . o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c f misc/52255 embedded [picobsd] picobsd build script fails under FreeBSD 5.0 o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub 6 problems total. From owner-freebsd-embedded@FreeBSD.ORG Tue May 8 20:48:20 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B79216A400 for ; Tue, 8 May 2007 20:48:20 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 4430E13C458 for ; Tue, 8 May 2007 20:48:20 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id A3AE66199BA for ; Tue, 8 May 2007 13:15:57 -0700 (PDT) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11972-05 for ; Tue, 8 May 2007 13:15:56 -0700 (PDT) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id 729A96199B8 for ; Tue, 8 May 2007 13:15:56 -0700 (PDT) Message-ID: <4640DA7C.3090508@miralink.com> Date: Tue, 08 May 2007 13:15:56 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue May 8 13:15:57 2007 X-DSPAM-Confidence: 0.6164 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4640da7d97955715714951 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, AWL=-0.000, BAYES_00=-2.599, DSPAM_HAM=-0.1, UPPERCASE_25_50=0] X-Spam-Score: -4.499 X-Spam-Level: Subject: [nanobsd] Build failure on RELENG_6 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2007 20:48:20 -0000 While attempting to build nanobsd on RELENG_6, I am getting a build failure in install_world that doesn't occur outside of nanobsd. Any ideas? ===> usr.bin/lex/lib (install) install -C -o root -g wheel -m 444 libln_p.a /var/tmp/obj/_.w/usr/lib /var/tmp/obj/_.w/usr/lib/libl.a -> /var/tmp/obj/_.w/usr/lib/libln.a ln: /var/tmp/obj/_.w/usr/lib/libln.a: No such file or directory *** Error code 1 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 The buildworld seems to be fine for the libs: ===> usr.bin/lex/lib (all) cc -O2 -fno-strict-aliasing -pipe -D_ACPI_ASL_COMPILER -I. -D_USE_BERKELEY_YACC -I/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.sbin/acpi/iasl/../../.. /sys -I/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica -I/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr .sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler -c /home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpic a/compiler/asltree.c cc -pg -O2 -fno-strict-aliasing -pipe -c /home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.bin/lex/lib/libmain.c -o libmain.po cc -pg -O2 -fno-strict-aliasing -pipe -c /home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.bin/lex/lib/libyywrap.c -o libyywrap.po building profiled ln library ranlib libln_p.a Here's my nanobsd configuration file: NANO_NAME=custom NANO_SRC=/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src NANO_OBJ=/var/tmp/obj NANO_KERNEL=MYKERNEL NANO_IMAGES=2 CONF_BUILD=' NO_KLDLOAD=YES NO_NETGRAPH=YES NO_PAM=YES ' CONF_INSTALL=' NO_ACPI=YES NO_BLUETOOTH=YES NO_CVS=YES NO_FORTRAN=YES NO_HTML=YES NO_LPR=YES NO_MAN=YES NO_SENDMAIL=YES NO_SHAREDOCS=YES NO_EXAMPLES=YES NO_INSTALLLIB=YES NO_CALENDAR=YES NO_MISC=YES NO_SHARE=YES ' CONF_WORLD=' NO_BIND=YES NO_MODULES=YES NO_KERBEROS=YES NO_GAMES=YES NO_RESCUE=YES NO_LOCALES=YES NO_SYSCONS=YES NO_INFO=YES ' FlashDevice SanDisk 512mb customize_cmd cust_comconsole customize_cmd cust_install_files customize_cmd cust_allow_ssh_root From owner-freebsd-embedded@FreeBSD.ORG Thu May 10 01:12:44 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A7A8116A407 for ; Thu, 10 May 2007 01:12:44 +0000 (UTC) (envelope-from crwhipp@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by mx1.freebsd.org (Postfix) with ESMTP id 6722313C48A for ; Thu, 10 May 2007 01:12:44 +0000 (UTC) (envelope-from crwhipp@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so389700wxc for ; Wed, 09 May 2007 18:12:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=OFrqimNtE5QBc6A7fHk9HfylRDk7S+ZA0KAm38lgKi3BVb+yf2wo641IluQGkvTQI4Uqi73rnILeSBfkgCZC3GVzajTjvnExoxAVHZ2l/lx7XeED7yWGK3ZTkyo9cq8mMhv+14maEUesvj8Nf9RotGgHcVOiDgX+ZmHkh7x5qzM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=eCEs6OtWEA5zcGvaHNTRBGucGUW4EqqjtKGGqvyUvnROqqReGJgGyGKz0pXA8Dy7NOdVmaT1lqBOjdSARYFjEOM38Vem4U895IfYPrMFcP+25ATj8lu0w4Zuo7wqL5XXZQfwhmtfHT0EOfzBJ3UZ8koBzVtciJ79csG8+1kIuhk= Received: by 10.90.74.1 with SMTP id w1mr1087504aga.1178757813317; Wed, 09 May 2007 17:43:33 -0700 (PDT) Received: from ?192.168.1.100? ( [130.13.177.162]) by mx.google.com with ESMTP id 4sm10456247aga.2007.05.09.17.43.31; Wed, 09 May 2007 17:43:32 -0700 (PDT) In-Reply-To: <4640DA7C.3090508@miralink.com> References: <4640DA7C.3090508@miralink.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1CEF0166-31F5-46AF-A8B7-032145F53A46@gmail.com> Content-Transfer-Encoding: 7bit From: Craig Whipp Date: Wed, 9 May 2007 17:43:42 -0700 To: Sean Bruno X-Mailer: Apple Mail (2.752.2) Cc: freebsd-embedded@freebsd.org Subject: Re: [nanobsd] Build failure on RELENG_6 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 01:12:44 -0000 I came across this issue before, also using the example configuration. I found this solution on a forum. Try removing "NO_INSTALLLIB=YES" from the CONF_INSTALL section. I admit to not knowing what this option does, though. - Craig On May 8, 2007, at 1:15 PM, Sean Bruno wrote: > While attempting to build nanobsd on RELENG_6, I am getting a build > failure in install_world that doesn't occur outside of nanobsd. > Any ideas? > > ===> usr.bin/lex/lib (install) > install -C -o root -g wheel -m 444 libln_p.a /var/tmp/obj/_.w/usr/ > lib > /var/tmp/obj/_.w/usr/lib/libl.a -> /var/tmp/obj/_.w/usr/lib/libln.a > ln: /var/tmp/obj/_.w/usr/lib/libln.a: No such file or directory > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > > > The buildworld seems to be fine for the libs: > > ===> usr.bin/lex/lib (all) > cc -O2 -fno-strict-aliasing -pipe -D_ACPI_ASL_COMPILER -I. - > D_USE_BERKELEY_YACC -I/home/sbruno/work/FreeBSD_RELENG_6_13APR07/ > src/usr.sbin/acpi/iasl/../../.. > /sys -I/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.sbin/acpi/ > iasl/../../../sys/contrib/dev/acpica -I/home/sbruno/work/ > FreeBSD_RELENG_6_13APR07/src/usr > .sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler -c /home/ > sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.sbin/acpi/ > iasl/../../../sys/contrib/dev/acpic > a/compiler/asltree.c > cc -pg -O2 -fno-strict-aliasing -pipe -c /home/sbruno/work/ > FreeBSD_RELENG_6_13APR07/src/usr.bin/lex/lib/libmain.c -o libmain.po > cc -pg -O2 -fno-strict-aliasing -pipe -c /home/sbruno/work/ > FreeBSD_RELENG_6_13APR07/src/usr.bin/lex/lib/libyywrap.c -o > libyywrap.po > building profiled ln library > ranlib libln_p.a > > > Here's my nanobsd configuration file: > > NANO_NAME=custom > NANO_SRC=/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src > NANO_OBJ=/var/tmp/obj > NANO_KERNEL=MYKERNEL > NANO_IMAGES=2 > > CONF_BUILD=' > NO_KLDLOAD=YES > NO_NETGRAPH=YES > NO_PAM=YES > ' > > CONF_INSTALL=' > NO_ACPI=YES > NO_BLUETOOTH=YES > NO_CVS=YES > NO_FORTRAN=YES > NO_HTML=YES > NO_LPR=YES > NO_MAN=YES > NO_SENDMAIL=YES > NO_SHAREDOCS=YES > NO_EXAMPLES=YES > NO_INSTALLLIB=YES > NO_CALENDAR=YES > NO_MISC=YES > NO_SHARE=YES > ' > > CONF_WORLD=' > NO_BIND=YES > NO_MODULES=YES > NO_KERBEROS=YES > NO_GAMES=YES > NO_RESCUE=YES > NO_LOCALES=YES > NO_SYSCONS=YES > NO_INFO=YES > ' > > FlashDevice SanDisk 512mb > customize_cmd cust_comconsole > customize_cmd cust_install_files > customize_cmd cust_allow_ssh_root > > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded- > unsubscribe@freebsd.org" From owner-freebsd-embedded@FreeBSD.ORG Thu May 10 02:36:00 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A39116A400 for ; Thu, 10 May 2007 02:36:00 +0000 (UTC) (envelope-from irfanzia@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx1.freebsd.org (Postfix) with ESMTP id 2997A13C43E for ; Thu, 10 May 2007 02:36:00 +0000 (UTC) (envelope-from irfanzia@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so432813wra for ; Wed, 09 May 2007 19:35:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=V3JwSh7Vv0Cabg9/EYMD+9SJcGIP68rSwmqnjImGpbhjJ0IUuGJcAxqbP1ycq0LR1hzT0Nz0JQ2T2TnbezkKKraI0qXp8t+kSxd7YMWBTwpZdV0QxXBYpdNBpfTVZzuVL2EO0XBHt/Ac1oceTc55neI5NWWdKeQPyUpSIo1+4xs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WHR7hoENdq5ZXFlSQehbzO28ytcaTMgGunEyy96Kr6zcWNO5Xm22Wgx2zLnRRT1yrhojaGfbC//fUCVR4rEeFFcNsnxiY9J5cFK10uxxdrReITWzIISHASa9BX5NOMWw83AboLmoSJMfS5hS1tcmgREG4eCRCyPHdgkReRulpNU= Received: by 10.114.205.1 with SMTP id c1mr308113wag.1178763063093; Wed, 09 May 2007 19:11:03 -0700 (PDT) Received: by 10.114.209.16 with HTTP; Wed, 9 May 2007 19:11:03 -0700 (PDT) Message-ID: <7b353d790705091911i64b4ae07icf7032fcb81b8c7a@mail.gmail.com> Date: Wed, 9 May 2007 19:11:03 -0700 From: "Irfan Zia" To: "Oleksandr Tymoshenko" In-Reply-To: <460D96D0.8010700@univ.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <460D96D0.8010700@univ.kiev.ua> Cc: freebsd-embedded@freebsd.org, freebsd-mips@freebsd.org Subject: Re: FreeBSD/MIPS project status update X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 02:36:00 -0000 Hi Gonzo, all I plan to work on a FreeBSD R7K Mips port in Big-endian mode. The other catch is that I want to do my development on Linux. I have looked at the makefiles and am fairly confident that they can be worked out with pmake on Linux (Fedora). My real problem is how do I force the built objects/binaries into a Big-Endian UFS file-system. I don't have a BE machine. Is it possible, to somehow use files/dirs built on a an LE system to be bundled into a BE UFS filesystem ? Any tools/hints. thanks! -Irfan On 3/30/07, Oleksandr Tymoshenko wrote: > On behalf of FreeBSD/MIPS team I'm proud to announce that > project has reached single-user stage. On the moment FreeBSD/MIPS > runs only in malta board emulation mode of GXemul though adm5120 > support is on it's way and people with real MIPS-based hardware > can start playing with latest repo snapshot bringing FreeBSD on it. > > Many thanks to all who contributed with their time, efforts and > experience. Especially to #bsdmips crowd for patience to newbies :) > > Attached mips.txt is a "recording" of sample GXemul session. > Current p4 repo snapshot: http://kanar.ci0.org/mips2.tar.gz > Check http://wiki.freebsd.org/FreeBSD/mips for sample build script > P4 URL: > http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/projects/mips2/... > > -- > gonzo > > > GXemul 0.4.1 Copyright (C) 2003-2006 Anders Gavare > Read the source code and/or documentation for other Copyright messages. > > Simple setup... > net: simulating 10.0.0.0/8 (max outgoing: TCP=100, UDP=100) > simulated gateway: 10.0.0.254 (60:50:40:30:20:10) > using nameserver 192.168.0.1 > machine "default": > memory: 64 MB > cpu0: 4Kc (I+D = 16+16 KB) > machine: MALTA (evbmips, little endian) > bootstring: kernel > diskimage: /usr/home/gonzo/FreeBSD/mips.img > IDE DISK id 0, read/write, 512 MB (1048576 sectors) > loading /tftpboot/kernel > starting cpu0 at 0x80127420 (gp=0x8033e180) > ------------------------------------------------------------------------------- > > GXemul> c > entry: mips_init() > picache_stride = 4096 > picache_loopcount = 4 > pdcache_stride = 4096 > pdcache_loopcount = 4 > mips_cache_ops.mco_pdcache_wbinv_all == 0x802dcdb0 > Exception vector at 80000000 almost out of space > Kernel page table maps 16384 4K pages and is 511K > KDB: debugger backends: ddb > KDB: current backend: ddb > cp: (null) > cannot determine clock frequency, defaulting to 10MHz > Copyright (c) 1992-2006 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 7.0-CURRENT #65: Fri Mar 30 19:03:48 EEST 2007 > gonzo@jeeves.bluezbox.com:/home/gonzo/FreeBSD/mips.build/mips/home/gonzo/FreeBSD/p4/mips2/src/sys/MALTA > cpu0: MIPS Technologies processor v1.128 > MMU: Standard TLB, 16 entries > L1 i-cache: 2 ways of 512 sets, 16 bytes per line > L1 d-cache: 2 ways of 512 sets, 16 bytes per line > clock0: on motherboard > clock0: [FAST] > gt0: on motherboard > pcib0: on gt0 > [ 8259: TODO: Level triggered (MCA bus) ] > [ 8259: WARNING: Bit 2 set ] > [ 8259: TODO: Level triggered (MCA bus) ] > [ 8259: WARNING: Bit 2 set ] > pcib0: [FAST] > pci0: on pcib0 > uart0: <8250 or 16450 or compatible> on obio0 > uart0: [FAST] > uart0: console (115200,n,8,1) > pci0: at device 9.0 (no driver attached) > atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376 at device 9.1 on pci0 > ata0: on atapci0 > ata0: WARNING - DMA allocation failed, disabling DMA > ata1: on atapci0 > ata1: WARNING - DMA allocation failed, disabling DMA > Timecounter "MIPS32" frequency 10000000 Hz quality 800 > Timecounters tick every 10.000 msec > ad0: 514MB at ata0-master PIO4 > Trying to mount root from ufs:ad0s1a > warning: no time-of-day clock registered, system time will not be set accurately > Enter full pathname of shell or RETURN for /bin/sh: > # mount -o rw / > # hostname mips.bluezbox.com > # uname -a > FreeBSD mips.bluezbox.com 7.0-CURRENT FreeBSD 7.0-CURRENT #65: Fri Mar 30 19:03:48 EEST 2007 gonzo@jeeves.bluezbox.com:/home/gonzo/FreeBSD/mips.build/mips/home/gonzo/FreeBSD/p4/mips2/src/sys/MALTA mips > # cd /root > # ls > .cshrc .profile args.c hello.c > .login Makefile hello signal.c > # cat Makefile > CFLAGS=-msoft-float -G0 -mabicalls -EL -Wl,-EL -static -march=mips32 > CC=cc > > all: hello signal args > > hello: hello.c > $(CC) $(CFLAGS) -o hello hello.c > > signal: signal.c > $(CC) $(CFLAGS) -o signal signal.c > > args: args.c > $(CC) $(CFLAGS) -o args args.c > > clean: > rm -f signal hello args > # cat hello.c > #include > > int main(int argc, char * argv[]) > { > printf("Hello world\n"); > } > # cat args.c > #include > > int main(int argc, char * argv[]) > { > int i ; > > printf("Arguments: %d\n", argc); > for(i = 0; i < argc; i++) { > printf("#%d == '%s'\n", i, argv[i]); > } > } > # cat signal.c > #include > #include > > void sig_int(int signum) > { > printf("Interrupted!\n"); > exit(0); > } > > void sig_general(int signum) > { > printf("Signal: %d!\n", signum); > } > > int main(int argc, char * argv[]) > { > int i = 0; > signal(SIGINT, sig_int); > signal(SIGUSR1, sig_general); > signal(SIGUSR2, sig_general); > while(i < 10) { > sleep(1); > if(i % 2) > kill(getpid(), SIGUSR1); > else > kill(getpid(), SIGUSR2); > printf(">> %d\n", i++); > } > kill(getpid(), SIGINT); > i = 0; > while(i < 10) { > printf(">> %d\n", i++); > sleep(1); > } > } > # make > cc -msoft-float -G0 -mabicalls -EL -Wl,-EL -static -march=mips32 -o signal signal.c > cc -msoft-float -G0 -mabicalls -EL -Wl,-EL -static -march=mips32 -o args args.c > # make clean > rm -f signal hello args > # make > cc -msoft-float -G0 -mabicalls -EL -Wl,-EL -static -march=mips32 -o hello hello.c > cc -msoft-float -G0 -mabicalls -EL -Wl,-EL -static -march=mips32 -o signal signal.c > cc -msoft-float -G0 -mabicalls -EL -Wl,-EL -static -march=mips32 -o args args.c > # ls -la > total 2340 > drwxr-xr-x 2 root wheel 512 Mar 30 19:41 . > drwxr-xr-x 18 root wheel 512 Mar 27 13:27 .. > -rw-r--r-- 2 root wheel 801 Mar 27 13:27 .cshrc > -rw-r--r-- 1 root wheel 293 Mar 27 13:27 .login > -rw-r--r-- 2 root wheel 251 Mar 27 13:27 .profile > -rw-r--r-- 1 root wheel 283 Mar 30 16:09 Makefile > -rwxr-xr-x 1 root wheel 367585 Mar 30 19:40 args > -rw-r--r-- 1 root wheel 173 Mar 30 19:14 args.c > -rwxr-xr-x 1 root wheel 367586 Mar 30 19:40 hello > -rw-r--r-- 1 root wheel 91 Mar 27 18:17 hello.c > -rwxr-xr-x 1 root wheel 372613 Mar 30 19:40 signal > -rw-r--r-- 1 root wheel 552 Mar 27 17:42 signal.c > # file hello args signal > hello: ELF 32-bit LSB executable, MIPS, version 1 (FreeBSD), for FreeBSD 7.0 (700018), statically linked, for FreeBSD 7.0 (700018), not stripped > args: ELF 32-bit LSB executable, MIPS, version 1 (FreeBSD), for FreeBSD 7.0 (700018), statically linked, for FreeBSD 7.0 (700018), not stripped > signal: ELF 32-bit LSB executable, MIPS, version 1 (FreeBSD), for FreeBSD 7.0 (700018), statically linked, for FreeBSD 7.0 (700018), not stripped > # ./hello > Hello world > # ./args this is a test > Arguments: 5 > #0 == './args' > #1 == 'this' > #2 == 'is' > #3 == 'a' > #4 == 'test' > # ./signal > Signal: 31! > >> 0 > Signal: 30! > >> 1 > Signal: 31! > >> 2 > Signal: 30! > >> 3 > Signal: 31! > >> 4 > Signal: 30! > >> 5 > Signal: 31! > >> 6 > Signal: 30! > >> 7 > Signal: 31! > >> 8 > Signal: 30! > >> 9 > Interrupted! > # who am i > who: /var/run/utmp: No such file or directory > # id > uid=0(root) gid=0(wheel) groups=0(wheel) > # ifconfig -a > lo0: flags=8008 mtu 16384 > # ifconfig lo0 127.0.0.1 > # ifconfig -a > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > # ping -c 10 127.0.0.1 > PING 127.0.0.1 (127.0.0.1): 56 data bytes > 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=2.470 ms > 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=1.646 ms > 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=1.645 ms > 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=1.643 ms > 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=1.645 ms > 64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=1.641 ms > 64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=1.646 ms > 64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=1.643 ms > 64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=1.643 ms > 64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=1.645 ms > > --- 127.0.0.1 ping statistics --- > 10 packets transmitted, 10 packets received, 0% packet loss > round-trip min/avg/max/stddev = 1.641/1.727/2.470/0.248 ms > # halt -p > Waiting (max 60 seconds) for system process `vnlru' to stop...done > Waiting (max 60 seconds) for system process `bufdaemon' to stop...done > Waiting (max 60 seconds) for system process `syncer' to stop... > Syncing disks, vnodes remaining...0 > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > > From owner-freebsd-embedded@FreeBSD.ORG Thu May 10 02:50:50 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5131B16A400; Thu, 10 May 2007 02:50:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 10D6D13C44C; Thu, 10 May 2007 02:50:49 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l4A2nqWL065161; Wed, 9 May 2007 20:49:53 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 09 May 2007 20:49:57 -0600 (MDT) Message-Id: <20070509.204957.-1337019341.imp@bsdimp.com> To: irfanzia@gmail.com From: "M. Warner Losh" In-Reply-To: <7b353d790705091911i64b4ae07icf7032fcb81b8c7a@mail.gmail.com> References: <460D96D0.8010700@univ.kiev.ua> <7b353d790705091911i64b4ae07icf7032fcb81b8c7a@mail.gmail.com> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 09 May 2007 20:49:53 -0600 (MDT) Cc: gonzo@univ.kiev.ua, freebsd-embedded@freebsd.org, freebsd-mips@freebsd.org Subject: Re: FreeBSD/MIPS project status update X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 02:50:50 -0000 In message: <7b353d790705091911i64b4ae07icf7032fcb81b8c7a@mail.gmail.com> "Irfan Zia" writes: : Hi Gonzo, all : : I plan to work on a FreeBSD R7K Mips port in Big-endian mode. The : other catch is that I want to do my development on Linux. I have : looked at the makefiles and am fairly confident that they can be : worked out with pmake on Linux (Fedora). Cool! : My real problem is how do I force the built objects/binaries into : a Big-Endian UFS file-system. I don't have a BE machine. Is it : possible, to somehow use files/dirs built on a an LE system to be : bundled into a BE UFS filesystem ? Any tools/hints. Consider /usr/ports/sysutils/makefs. It can make a UFS image, and you can specify endianness, I believe. Warner From owner-freebsd-embedded@FreeBSD.ORG Thu May 10 19:00:34 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 94A0716A400 for ; Thu, 10 May 2007 19:00:34 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 6704F13C447 for ; Thu, 10 May 2007 19:00:34 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 374756199BA; Thu, 10 May 2007 12:00:34 -0700 (PDT) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15745-07; Thu, 10 May 2007 12:00:33 -0700 (PDT) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id E92A8619618; Thu, 10 May 2007 12:00:32 -0700 (PDT) Message-ID: <46436BD0.9040005@miralink.com> Date: Thu, 10 May 2007 12:00:32 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Craig Whipp References: <4640DA7C.3090508@miralink.com> <1CEF0166-31F5-46AF-A8B7-032145F53A46@gmail.com> In-Reply-To: <1CEF0166-31F5-46AF-A8B7-032145F53A46@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Thu May 10 12:00:33 2007 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 46436bd1156771804284693 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, AWL=-0.000, BAYES_00=-2.599, DSPAM_HAM=-0.1, UPPERCASE_25_50=0] X-Spam-Score: -4.499 X-Spam-Level: Cc: freebsd-embedded@freebsd.org Subject: Re: [nanobsd] Build failure on RELENG_6 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 19:00:34 -0000 Craig Whipp wrote: > I came across this issue before, also using the example > configuration. I found this solution on a forum. Try removing > "NO_INSTALLLIB=YES" from the CONF_INSTALL section. I admit to not > knowing what this option does, though. > > - Craig > > > On May 8, 2007, at 1:15 PM, Sean Bruno wrote: > >> While attempting to build nanobsd on RELENG_6, I am getting a build >> failure in install_world that doesn't occur outside of nanobsd. Any >> ideas? >> >> ===> usr.bin/lex/lib (install) >> install -C -o root -g wheel -m 444 libln_p.a /var/tmp/obj/_.w/usr/lib >> /var/tmp/obj/_.w/usr/lib/libl.a -> /var/tmp/obj/_.w/usr/lib/libln.a >> ln: /var/tmp/obj/_.w/usr/lib/libln.a: No such file or directory >> *** Error code 1 >> 1 error >> *** Error code 2 >> 1 error >> *** Error code 2 >> 1 error >> *** Error code 2 >> 1 error >> *** Error code 2 >> 1 error >> *** Error code 2 >> 1 error >> *** Error code 2 >> >> >> The buildworld seems to be fine for the libs: >> >> ===> usr.bin/lex/lib (all) >> cc -O2 -fno-strict-aliasing -pipe -D_ACPI_ASL_COMPILER -I. >> -D_USE_BERKELEY_YACC >> -I/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.sbin/acpi/iasl/../../.. >> >> /sys >> -I/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica >> -I/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr >> .sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler -c >> /home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpic >> >> a/compiler/asltree.c >> cc -pg -O2 -fno-strict-aliasing -pipe -c >> /home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.bin/lex/lib/libmain.c >> -o libmain.po >> cc -pg -O2 -fno-strict-aliasing -pipe -c >> /home/sbruno/work/FreeBSD_RELENG_6_13APR07/src/usr.bin/lex/lib/libyywrap.c >> -o libyywrap.po >> building profiled ln library >> ranlib libln_p.a >> >> >> Here's my nanobsd configuration file: >> >> NANO_NAME=custom >> NANO_SRC=/home/sbruno/work/FreeBSD_RELENG_6_13APR07/src >> NANO_OBJ=/var/tmp/obj >> NANO_KERNEL=MYKERNEL >> NANO_IMAGES=2 >> >> CONF_BUILD=' >> NO_KLDLOAD=YES >> NO_NETGRAPH=YES >> NO_PAM=YES >> ' >> >> CONF_INSTALL=' >> NO_ACPI=YES >> NO_BLUETOOTH=YES >> NO_CVS=YES >> NO_FORTRAN=YES >> NO_HTML=YES >> NO_LPR=YES >> NO_MAN=YES >> NO_SENDMAIL=YES >> NO_SHAREDOCS=YES >> NO_EXAMPLES=YES >> NO_INSTALLLIB=YES >> NO_CALENDAR=YES >> NO_MISC=YES >> NO_SHARE=YES >> ' >> >> CONF_WORLD=' >> NO_BIND=YES >> NO_MODULES=YES >> NO_KERBEROS=YES >> NO_GAMES=YES >> NO_RESCUE=YES >> NO_LOCALES=YES >> NO_SYSCONS=YES >> NO_INFO=YES >> ' >> >> FlashDevice SanDisk 512mb >> customize_cmd cust_comconsole >> customize_cmd cust_install_files >> customize_cmd cust_allow_ssh_root >> >> _______________________________________________ >> freebsd-embedded@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> To unsubscribe, send any mail to >> "freebsd-embedded-unsubscribe@freebsd.org" > Yepper, that works for me. Now to test the image on my CF card and see what happens. Sean