From owner-freebsd-embedded@FreeBSD.ORG Sun Nov 21 22:17:43 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB2D9106564A for ; Sun, 21 Nov 2010 22:17:43 +0000 (UTC) (envelope-from micke.sommar@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 156FF8FC12 for ; Sun, 21 Nov 2010 22:17:42 +0000 (UTC) Received: by ewy3 with SMTP id 3so3527266ewy.13 for ; Sun, 21 Nov 2010 14:17:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=5o7dHJUygyhe+ryN6YsRBCYH/kyVYWJp0bM1p9Z804E=; b=Wb8GK51SN42Pwda7qFzlCyYHGfYAeKlHv6vOmfhc1XVSOZ1031ytfjA7+zqMZM7c25 lshwLfmZ8j7cm0rIUoGyGBMCv/qQoiN3abAtrC+8IDMQuXa5N5Je5EYcITkhMR6ggMwo Y21iM3eWS6WUoTykZWTZoq4TLlufb5kGOKaOs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=kaFJx7ZZu+ObdMRt/2CKDSPWaZYim8F50Qbzact7Oq2GLdehTMhb+h6wIhXMQxAfNy vedYF83x05lghsJHQYcWHGFRGXS8A/IVpsvzrb2LS//+X5QvRi9Dxr9uWJloCj6Nmoe/ JK1EzgZqOKziDp2Q6nrSQDyIV/1LiAk2UUPfA= Received: by 10.213.14.148 with SMTP id g20mr3705406eba.66.1290376344843; Sun, 21 Nov 2010 13:52:24 -0800 (PST) Received: from [192.168.1.65] (c83-250-140-20.bredband.comhem.se [83.250.140.20]) by mx.google.com with ESMTPS id v51sm4028315eeh.22.2010.11.21.13.52.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Nov 2010 13:52:24 -0800 (PST) From: Micke Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Sun, 21 Nov 2010 22:52:22 +0100 Message-Id: <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com> To: freebsd-embedded@freebsd.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) Subject: Add extra logfiles to /var/log/ 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: Sun, 21 Nov 2010 22:17:43 -0000 Hi I'm trying to install lighttpd with ports on a = "default"-tinybsd-template. Lighttpd don't create the logfiles necessary. I have tried to mount the tinybsd.bin file and created the logfiles, but = they don't exist then i start the image. Thats because the /var is loaded to memorydisk (md). Does anyone know where to store the log-files so they vill appear at the = /var/log directory ? Best regards Micke= From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 22 01:38:48 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7F191065670 for ; Mon, 22 Nov 2010 01:38:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 8B6D98FC08 for ; Mon, 22 Nov 2010 01:38:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oAM1ZmV9020432 for ; Sun, 21 Nov 2010 18:35:49 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4CE9C8F4.8060807@bsdimp.com> Date: Sun, 21 Nov 2010 18:35:48 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-embedded@freebsd.org References: <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com> In-Reply-To: <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Add extra logfiles to /var/log/ 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, 22 Nov 2010 01:38:48 -0000 On 11/21/2010 14:52, Micke wrote: > Hi > > I'm trying to install lighttpd with ports on a "default"-tinybsd-template. > Lighttpd don't create the logfiles necessary. > > I have tried to mount the tinybsd.bin file and created the logfiles, but they don't exist then i start the image. > Thats because the /var is loaded to memorydisk (md). > > Does anyone know where to store the log-files so they vill appear at the /var/log directory ? /conf/base/var/log Warner > Best regards Micke_______________________________________________ > 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 Mon Nov 22 02:49:18 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B75C106564A for ; Mon, 22 Nov 2010 02:49:18 +0000 (UTC) (envelope-from rand@meridian-enviro.com) Received: from zimbra.meridian-enviro.com (zimbra.meridian-enviro.com [12.192.92.32]) by mx1.freebsd.org (Postfix) with ESMTP id D2B5C8FC16 for ; Mon, 22 Nov 2010 02:49:17 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.meridian-enviro.com (Postfix) with ESMTP id ABF3430701CA for ; Sun, 21 Nov 2010 20:34:00 -0600 (CST) X-Virus-Scanned: amavisd-new at meridian-enviro.com Received: from zimbra.meridian-enviro.com ([127.0.0.1]) by localhost (zimbra.meridian-enviro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zy1ihpdfn2Sa for ; Sun, 21 Nov 2010 20:33:59 -0600 (CST) Received: from untrusted-100.meridian-enviro.com (unknown [10.255.0.22]) by zimbra.meridian-enviro.com (Postfix) with ESMTP id 9542730701C7 for ; Sun, 21 Nov 2010 20:33:58 -0600 (CST) Date: Sun, 21 Nov 2010 20:33:57 -0600 Message-ID: From: Douglas K. Rand To: freebsd-embedded@freebsd.org User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.0.95 (i386-apple-darwin8.9.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: Nanobsd & /boot/loader 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, 22 Nov 2010 02:49:18 -0000 I'm having problems getting a 8.1 nanobsd image to boot on a Soekris 5501. It is perhaps easiest to show what happens when I power on the 5510 with the compact flas installed: POST: 012345689bcefghips1234ajklnopqr,,,tvwxy comBIOS ver. 1.33 20070103 Copyright (C) 2000-2007 Soekris Engineering. net5501 0512 Mbyte Memory CPU Geode LX 500 Mhz Pri Mas SanDisk SDCFH-002G LBA Xlt 974-64-63 1964 Mbyte Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1 Base2 Int ------------------------------------------------------------------- 0:01:2 1022 2082 10100000 0006 0220 08 00 00 A0000000 00000000 10 0:06:0 1106 3053 02000096 0117 0210 08 40 00 0000E101 A0004000 11 0:07:0 1106 3053 02000096 0117 0210 08 40 00 0000E201 A0004100 05 0:08:0 1106 3053 02000096 0117 0210 08 40 00 0000E301 A0004200 09 0:09:0 1106 3053 02000096 0117 0210 08 40 00 0000E401 A0004300 12 0:20:0 1022 2090 06010003 0009 02A0 08 40 80 00006001 00006101 0:20:2 1022 209A 01018001 0005 02A0 08 00 00 00000000 00000000 0:21:0 1022 2094 0C031002 0006 0230 08 00 80 A0005000 00000000 15 0:21:1 1022 2095 0C032002 0006 0230 08 00 00 A0006000 00000000 15 1 Seconds to automatic boot. Press Ctrl-P for entering Monitor. /boot.config: -h Consoles: serial port BIOS drive C: is disk0 BIOS 639kB/523264kB available memory FreeBSD/i386 bootstrap loader, Revision 1.1 (rand@bygland.randomlights.org, Wed Nov 17 21:01:10 CST 2010) > \ \: unknown command - /boot/kernel/kernel text=0x8c9a23 data=0xde2b4+0xa3fb0 syms=[0x4+0x98450+0x4+0xd0405] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 8 seconds... Type '?' for a list of commands, 'help' for more detailed help. OK boot -s \ And then here it simply hangs. I've let it sit for hours and it never does anything. One thing I noticed is that /boot/loader on the nanobsd image is different from /boot/loader on my workstation. If I copy /boot/loader from my FreeBSD 8.1 workstaiton onto the CF nanobsd image then I get alot further. Clearly NanoBSD is building the loader differently, mostly because before I never got the beastie loader menu, and now I do. But I also get the kernel to actually start, or at least emit messages as it starts: POST: 012345689bcefghips1234ajklnopqr,,,tvwxy comBIOS ver. 1.33 20070103 Copyright (C) 2000-2007 Soekris Engineering. net5501 0512 Mbyte Memory CPU Geode LX 500 Mhz Pri Mas SanDisk SDCFH-002G LBA Xlt 974-64-63 1964 Mbyte ??????????????????????????????????????????? ? ? ? ? ______ ? ? | ____| __ ___ ___ ? Welcome to FreeBSD! ? | |__ | '__/ _ \/ _ \ ? ? | __|| | | __/ __/ ? ? | | | | | | | ? 1. Boot FreeBSD [default] ? |_| |_| \___|\___| ? 2. Boot FreeBSD with ACPI enabled ? ____ _____ _____ ? 3. Boot FreeBSD in Safe Mode ? | _ \ / ____| __ \ ? 4. Boot FreeBSD in single user mode ? | |_) | (___ | | | | ? 5. Boot FreeBSD with verbose logging ? | _ < \___ \| | | | ? 6. Escape to loader prompt ? | |_) |____) | |__| | ? 7. Reboot ? | | | | ? ? |____/|_____/|_____/ ? ? ? ? ? ? ? Select option, [Enter] for default ? ? or [Space] to pause timer 6 ? ??????????????????????????????????????????? Copyright (c) 1992-2010 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 8.1-RELEASE-p1 #0: Wed Nov 17 21:12:13 CST 2010 rand@bygland.randomlights.org:/project/obj/usr/src/sys/GENERIC i386 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Geode(TM) Integrated Processor by AMD PCS (499.90-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x5a2 Family = 5 Model = a Stepping = 2 Features=0x88a93d AMD Features=0xc0400000 real memory = 536870912 (512 MB) avail memory = 510734336 (487 MB) kbd1 at kbdmux0 K6-family MTRR support enabled (2 registers) ACPI Error: A valid RSDP was not found (20100331/tbxfroot-309) ACPI: Table initialisation failed: AE_NOT_FOUND ACPI: Try disabling either ACPI or apic support. pcib0: pcibus 0 on motherboard pci0: on pcib0 pci0: at device 1.2 (no driver attached) vr0: port 0xe100-0xe1ff mem 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0 vr0: Quirks: 0x2 vr0: Revision: 0x96 miibus0: on vr0 ukphy0: PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:00:24:cd:7d:04 vr0: [ITHREAD] vr1: port 0xe200-0xe2ff mem 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0 vr1: Quirks: 0x2 vr1: Revision: 0x96 miibus1: on vr1 ukphy1: PHY 1 on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr1: Ethernet address: 00:00:24:cd:7d:05 vr1: [ITHREAD] vr2: port 0xe300-0xe3ff mem 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0 vr2: Quirks: 0x2 vr2: Revision: 0x96 miibus2: on vr2 ukphy2: PHY 1 on miibus2 ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr2: Ethernet address: 00:00:24:cd:7d:06 vr2: [ITHREAD] vr3: port 0xe400-0xe4ff mem 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0 vr3: Quirks: 0x2 vr3: Revision: 0x96 miibus3: on vr3 ukphy3: PHY 1 on miibus3 ukphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr3: Ethernet address: 00:00:24:cd:7d:07 vr3: [ITHREAD] isab0: at device 20.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] ohci0: mem 0xa0005000-0xa0005fff irq 15 at device 21.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ehci0: mem 0xa0006000-0xa0006fff irq 15 at device 21.1 on pci0 ehci0: [ITHREAD] usbus1: EHCI version 1.0 usbus1: on ehci0 cpu0 on motherboard pmtimer0 on isa0 orm0: at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] atrtc0: at port 0x70 irq 8 on isa0 ppc0: parallel port not found. uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 uart0: [FILTER] uart0: console (9600,n,8,1) uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 uart1: [FILTER] Timecounter "TSC" frequency 499904784 Hz quality 800 Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ad0: 1918MB at ata0-master WDMA2 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 Root mount waiting for: usbus1 usbus0 uhub0: 4 ports with 4 removable, self powered Root mount waiting for: usbus1 uhub1: 4 ports with 4 removable, self powered Trying to mount root from ufs:/dev/ad1s1a ROOT MOUNT ERROR: If you have invalid mount options, reboot, and first try the following from the loader prompt: set vfs.root.mountfrom.options=rw and then remove invalid mount options from /etc/fstab. Loader variables: vfs.root.mountfrom=ufs:/dev/ad1s1a vfs.root.mountfrom.options=ro Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0s1a eg. cd9660:/dev/acd0 This is equivalent to: mount -t cd9660 /dev/acd0 / ? List valid disk boot devices Abort manual input I looked around and didn't find in nanobsd.sh any obvious knobs that changed how /boot/loader was built. I was wondering if anybody had any insights. From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 22 04:00:47 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCE98106564A for ; Mon, 22 Nov 2010 04:00:47 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 552138FC08 for ; Mon, 22 Nov 2010 04:00:46 +0000 (UTC) Received: by wyb35 with SMTP id 35so5791523wyb.13 for ; Sun, 21 Nov 2010 20:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=sJC8EtMUAQk02iYox02oGLMvAKVHMobQVuBAmKLW3ko=; b=ZHrUuDVXbBYd7wF4UDfLcp4WrkqRb4vumAOHuV868wGvxOXaZO6NnhzfaPeba9x8H1 XeBj+H6GQbZ3UkkL5MMeTbseBoHM52lifqsNYHCnWWaiZ8yM3x3wr/Xe4mviObxE6zsq M3EVj24PrqFsBKG4BvdW0nHIk18Ut2h3ixaI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Ri4hjeuT8bnrbWO7DpZ/2FCyzsZZjh26jRhLDvdO+V2nxBlodEGq2ak4qrdknitt0r wbOAAtbLxNXeNr6OKqK/Ri1tsRxeJ4BvH8FqKhxFFZMNXofWcnyFq6ufS4U4MrJAxarr agHVVyMXx9Up4qpoLZXvqcpm067TGeFsk7XwY= MIME-Version: 1.0 Received: by 10.216.26.194 with SMTP id c44mr4285218wea.104.1290397071144; Sun, 21 Nov 2010 19:37:51 -0800 (PST) Received: by 10.216.12.80 with HTTP; Sun, 21 Nov 2010 19:37:51 -0800 (PST) In-Reply-To: References: Date: Sun, 21 Nov 2010 21:37:51 -0600 Message-ID: From: Brandon Gooch To: "Douglas K. Rand" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: Nanobsd & /boot/loader 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, 22 Nov 2010 04:00:47 -0000 On Sun, Nov 21, 2010 at 8:33 PM, Douglas K. Rand wrote: > I'm having problems getting a 8.1 nanobsd image to boot on a Soekris > 5501. It is perhaps easiest to show what happens when I power on the > 5510 with the compact flas installed: > > POST: 012345689bcefghips1234ajklnopqr,,,tvwxy > > comBIOS ver. 1.33 =A020070103 =A0Copyright (C) 2000-2007 Soekris Engineer= ing. > > net5501 > > 0512 Mbyte Memory =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CPU Geod= e LX 500 Mhz > > Pri Mas =A0SanDisk SDCFH-002G =A0 =A0 =A0 =A0 =A0 =A0 =A0LBA Xlt 974-64-6= 3 =A01964 Mbyte > > Slot =A0 Vend Dev =A0ClassRev Cmd =A0Stat CL LT HT =A0Base1 =A0 =A0Base2 = =A0 Int > ------------------------------------------------------------------- > 0:01:2 1022 2082 10100000 0006 0220 08 00 00 A0000000 00000000 10 > 0:06:0 1106 3053 02000096 0117 0210 08 40 00 0000E101 A0004000 11 > 0:07:0 1106 3053 02000096 0117 0210 08 40 00 0000E201 A0004100 05 > 0:08:0 1106 3053 02000096 0117 0210 08 40 00 0000E301 A0004200 09 > 0:09:0 1106 3053 02000096 0117 0210 08 40 00 0000E401 A0004300 12 > 0:20:0 1022 2090 06010003 0009 02A0 08 40 80 00006001 00006101 > 0:20:2 1022 209A 01018001 0005 02A0 08 00 00 00000000 00000000 > 0:21:0 1022 2094 0C031002 0006 0230 08 00 80 A0005000 00000000 15 > 0:21:1 1022 2095 0C032002 0006 0230 08 00 00 A0006000 00000000 15 > > =A01 Seconds to automatic boot. =A0 Press Ctrl-P for entering Monitor. > /boot.config: =A0-h > Consoles: serial port > BIOS drive C: is disk0 > BIOS 639kB/523264kB available memory > > FreeBSD/i386 bootstrap loader, Revision 1.1 > (rand@bygland.randomlights.org, Wed Nov 17 21:01:10 CST 2010) >> \ > \: unknown command > - > /boot/kernel/kernel text=3D0x8c9a23 data=3D0xde2b4+0xa3fb0 syms=3D[0x4+0x= 98450+0x4+0xd0405] > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel] in 8 seconds... > > Type '?' for a list of commands, 'help' for more detailed help. > OK boot -s > \ > > And then here it simply hangs. I've let it sit for hours and it never > does anything. > > One thing I noticed is that /boot/loader on the nanobsd image is > different from /boot/loader on my workstation. If I copy /boot/loader > from my FreeBSD 8.1 workstaiton onto the CF nanobsd image then I get > alot further. Clearly NanoBSD is building the loader differently, > mostly because before I never got the beastie loader menu, and now I > do. But I also get the kernel to actually start, or at least emit > messages as it starts: > > POST: 012345689bcefghips1234ajklnopqr,,,tvwxy > > comBIOS ver. 1.33 =A020070103 =A0Copyright (C) 2000-2007 Soekris Engineer= ing. > > net5501 > > 0512 Mbyte Memory =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CPU Geod= e LX 500 Mhz > > Pri Mas =A0SanDisk SDCFH-002G =A0 =A0 =A0 =A0 =A0 =A0 =A0LBA Xlt 974-64-6= 3 =A01964 Mbyte > > > =A0??????????????????????????????????????????? > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? =A0 =A0 =A0______ > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? =A0 =A0 | =A0____| __ ___ =A0___ > =A0? =A0 =A0 =A0 =A0 =A0Welcome to FreeBSD! =A0 =A0 =A0 =A0 =A0 =A0? =A0 = =A0 | |__ | '__/ _ \/ _ \ > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? =A0 =A0 | =A0__|| | | =A0__/ =A0__/ > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? =A0 =A0 | | =A0 | | | =A0 =A0| =A0 =A0| > =A0? =A01. Boot FreeBSD [default] =A0 =A0 =A0 =A0 =A0 =A0 =A0? =A0 =A0 |_= | =A0 |_| =A0\___|\___| > =A0? =A02. Boot FreeBSD with ACPI enabled =A0 =A0 =A0? =A0 =A0 =A0____ = =A0 _____ _____ > =A0? =A03. Boot FreeBSD in Safe Mode =A0 =A0 =A0 =A0 =A0 ? =A0 =A0 | =A0_= \ / ____| =A0__ \ > =A0? =A04. Boot FreeBSD in single user mode =A0 =A0? =A0 =A0 | |_) | (___= | | =A0| | > =A0? =A05. Boot FreeBSD with verbose logging =A0 ? =A0 =A0 | =A0_ < \___ = \| | =A0| | > =A0? =A06. Escape to loader prompt =A0 =A0 =A0 =A0 =A0 =A0 ? =A0 =A0 | |_= ) |____) | |__| | > =A0? =A07. Reboot =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0? =A0 =A0 | =A0 =A0 | =A0 =A0 =A0| =A0 =A0 =A0| > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? =A0 =A0 |____/|_____/|_____/ > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ? > =A0? =A0Select option, [Enter] for default =A0 =A0 ? > =A0? =A0or [Space] to pause timer =A06 =A0 =A0 =A0 =A0 =A0 ? > =A0??????????????????????????????????????????? > > Copyright (c) 1992-2010 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > =A0 =A0 =A0 =A0The Regents of the University of California. All rights re= served. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.1-RELEASE-p1 #0: Wed Nov 17 21:12:13 CST 2010 > =A0 =A0rand@bygland.randomlights.org:/project/obj/usr/src/sys/GENERIC i38= 6 > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Geode(TM) Integrated Processor by AMD PCS (499.90-MHz 586-class CPU) > =A0Origin =3D "AuthenticAMD" =A0Id =3D 0x5a2 =A0Family =3D 5 =A0Model =3D= a =A0Stepping =3D 2 > =A0Features=3D0x88a93d > =A0AMD Features=3D0xc0400000 > real memory =A0=3D 536870912 (512 MB) > avail memory =3D 510734336 (487 MB) > kbd1 at kbdmux0 > K6-family MTRR support enabled (2 registers) > ACPI Error: A valid RSDP was not found (20100331/tbxfroot-309) > ACPI: Table initialisation failed: AE_NOT_FOUND > ACPI: Try disabling either ACPI or apic support. > pcib0: pcibus 0 on motherboard > pci0: on pcib0 > pci0: at device 1.2 (no driver at= tached) > vr0: port 0xe100-0xe1ff mem 0xa00040= 00-0xa00040ff irq 11 at device 6.0 on pci0 > vr0: Quirks: 0x2 > vr0: Revision: 0x96 > miibus0: on vr0 > ukphy0: PHY 1 on miibus0 > ukphy0: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > vr0: Ethernet address: 00:00:24:cd:7d:04 > vr0: [ITHREAD] > vr1: port 0xe200-0xe2ff mem 0xa00041= 00-0xa00041ff irq 5 at device 7.0 on pci0 > vr1: Quirks: 0x2 > vr1: Revision: 0x96 > miibus1: on vr1 > ukphy1: PHY 1 on miibus1 > ukphy1: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > vr1: Ethernet address: 00:00:24:cd:7d:05 > vr1: [ITHREAD] > vr2: port 0xe300-0xe3ff mem 0xa00042= 00-0xa00042ff irq 9 at device 8.0 on pci0 > vr2: Quirks: 0x2 > vr2: Revision: 0x96 > miibus2: on vr2 > ukphy2: PHY 1 on miibus2 > ukphy2: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > vr2: Ethernet address: 00:00:24:cd:7d:06 > vr2: [ITHREAD] > vr3: port 0xe400-0xe4ff mem 0xa00043= 00-0xa00043ff irq 12 at device 9.0 on pci0 > vr3: Quirks: 0x2 > vr3: Revision: 0x96 > miibus3: on vr3 > ukphy3: PHY 1 on miibus3 > ukphy3: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > vr3: Ethernet address: 00:00:24:cd:7d:07 > vr3: [ITHREAD] > isab0: at device 20.0 on pci0 > isa0: on isab0 > atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x1= 77,0x376,0xe000-0xe00f at device 20.2 on pci0 > ata0: on atapci0 > ata0: [ITHREAD] > ata1: on atapci0 > ata1: [ITHREAD] > ohci0: mem 0xa0005000-0xa0005fff irq 15 a= t device 21.0 on pci0 > ohci0: [ITHREAD] > usbus0: on ohci0 > ehci0: mem 0xa0006000-0xa0006fff = irq 15 at device 21.1 on pci0 > ehci0: [ITHREAD] > usbus1: EHCI version 1.0 > usbus1: on ehci0 > cpu0 on motherboard > pmtimer0 on isa0 > orm0: at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > atrtc0: at port 0x70 irq 8 on isa0 > ppc0: parallel port not found. > uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > uart0: [FILTER] > uart0: console (9600,n,8,1) > uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 > uart1: [FILTER] > Timecounter "TSC" frequency 499904784 Hz quality 800 > Timecounters tick every 1.000 msec > usbus0: 12Mbps Full Speed USB v1.0 > usbus1: 480Mbps High Speed USB v2.0 > ad0: 1918MB at ata0-master WDMA2 > ugen0.1: at usbus0 > uhub0: on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > Root mount waiting for: usbus1 usbus0 > uhub0: 4 ports with 4 removable, self powered > Root mount waiting for: usbus1 > uhub1: 4 ports with 4 removable, self powered > Trying to mount root from ufs:/dev/ad1s1a > ROOT MOUNT ERROR: > If you have invalid mount options, reboot, and first try the following fr= om > the loader prompt: > > =A0 =A0 set vfs.root.mountfrom.options=3Drw > > and then remove invalid mount options from /etc/fstab. > > Loader variables: > vfs.root.mountfrom=3Dufs:/dev/ad1s1a > vfs.root.mountfrom.options=3Dro > > Manual root filesystem specification: > =A0: =A0Mount using filesystem > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 eg. ufs:/dev/da0s1a > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 eg. cd9660:/dev/acd0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 This is equivalent to: mount = -t cd9660 /dev/acd0 / > > =A0? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0List valid disk boot devices > =A0 =A0 =A0 =A0 Abort manual input > It seems your /etc/fstab is pointing to /dev/ad1s1a for your root filesyste= m: vfs.root.mountfrom=3Dufs:/dev/ad1s1a ...but according to the dmesg output, the only disk detected is /dev/ad0: ad0: 1918MB at ata0-master WDMA2 >From the prompt try entering 'ufs:/dev/ad0s1a' and see if it will boot. If so, after the system is up, change the entry in your /etc/fstab for the root filesystem mount from /dev/ad1s1a to /dev/ad0s1a. Others may have more insight into the particulars of using FreeBSD in this sort of environment, so I'll leave it open for discussion regarding stuff disk labeling and such... -Brandon From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 22 04:08:51 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D06A106564A for ; Mon, 22 Nov 2010 04:08:51 +0000 (UTC) (envelope-from rand@meridian-enviro.com) Received: from zimbra.meridian-enviro.com (zimbra.meridian-enviro.com [12.192.92.32]) by mx1.freebsd.org (Postfix) with ESMTP id F3A988FC08 for ; Mon, 22 Nov 2010 04:08:50 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.meridian-enviro.com (Postfix) with ESMTP id 0A81230701C9; Sun, 21 Nov 2010 22:08:50 -0600 (CST) X-Virus-Scanned: amavisd-new at meridian-enviro.com Received: from zimbra.meridian-enviro.com ([127.0.0.1]) by localhost (zimbra.meridian-enviro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3bYs1cTXb1ZJ; Sun, 21 Nov 2010 22:08:49 -0600 (CST) Received: from bygland.randomlights.org (unknown [10.255.0.26]) by zimbra.meridian-enviro.com (Postfix) with ESMTP id E20F130701C7; Sun, 21 Nov 2010 22:08:48 -0600 (CST) Date: Sun, 21 Nov 2010 22:08:48 -0600 Message-ID: <87hbfavw33.wl%rand@meridian-enviro.com> From: Douglas K. Rand To: Brandon Gooch In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (i386-portbld-freebsd8.0) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: Nanobsd & /boot/loader 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, 22 Nov 2010 04:08:51 -0000 Brandon> It seems your /etc/fstab is pointing to /dev/ad1s1a for your Brandon> root filesystem: Right. But the problem I'm trying to figure out is why nanobsd.sh builds a /boot/loader that doesn't seem to work: Doug> /boot.config: =A0-h Doug> Consoles: serial port Doug> BIOS drive C: is disk0 Doug> BIOS 639kB/523264kB available memory Doug> FreeBSD/i386 bootstrap loader, Revision 1.1 Doug> (rand@bygland.randomlights.org, Wed Nov 17 21:01:10 CST 2010) Doug> \ Doug> \: unknown command Doug> - Doug> /boot/kernel/kernel text=3D0x8c9a23 data=3D0xde2b4+0xa3fb0 syms=3D[0x= 4+0x98450+0x4+0xd0405] Doug> Hit [Enter] to boot immediately, or any other key for command prompt. Doug> Booting [/boot/kernel/kernel] in 8 seconds... Doug> Type '?' for a list of commands, 'help' for more detailed help. Doug> OK boot -s Doug> \ Doug> And then here it simply hangs. I've let it sit for hours and it never Doug> does anything. Its the hanging here that I'm trying to fix. And interestingly it seems that my problem is direclty related to these lines: Doug> FreeBSD/i386 bootstrap loader, Revision 1.1 Doug> (rand@bygland.randomlights.org, Wed Nov 17 21:01:10 CST 2010) Doug> \ Doug> \: unknown command Doug> - It seems that the /boot/loader that nanobsd.sh creates has some problem that causes device.hints to not be loaded, and then with out those hints the kernel can't continue. Specifically the hint.uart.0 knobs. Oh, and fixing /etc/fstab on the CF image still has the same problem as doing ufs:/dev/da0s1a at the mountroot> prompt: Trying to mount root from ufs:/dev/da0s1a ROOT MOUNT ERROR:=20 If you have invalid mount options, reboot, and first try the following from the loader prompt: set vfs.root.mountfrom.options=3Drw and then remove invalid mount options from /etc/fstab. Loader variables: vfs.root.mountfrom=3Dufs:/dev/da0s1a vfs.root.mountfrom.options=3Dro From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 22 11:07:02 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C56F1065675 for ; Mon, 22 Nov 2010 11:07:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 78B0C8FC1C for ; Mon, 22 Nov 2010 11:07:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAMB72Du051635 for ; Mon, 22 Nov 2010 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAMB71cE051629 for freebsd-embedded@FreeBSD.org; Mon, 22 Nov 2010 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Nov 2010 11:07:01 GMT Message-Id: <201011221107.oAMB71cE051629@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org 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, 22 Nov 2010 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- p misc/151696 embedded [nanobsd] [patch] nanobsd.sh doesn't run "make_conf_bu o misc/151695 embedded [nanobsd] [patch] Enhance tools/nanobsd/fill_pkg.sh o misc/136889 embedded [nanobsd] [patch] nanobsd error reporting and other re o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 5 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 22 11:11:08 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43A89106570F for ; Mon, 22 Nov 2010 11:11:08 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id A599B8FC19 for ; Mon, 22 Nov 2010 11:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= beta; bh=6VA3iOQ0Fw+kFlRcsnb33D5lKJRb7+VZAFuv4jJwB5M=; b=X3hySbr FtPrSwjAOWPX93PNSKXXuc3hrc3Vd4snqZf0YesFrQHkpIifXKnYwJBJSOY92Di7 RbiWrFXnN+7ERRzlYpNp1iASrnKlciPgnpl+e+rxMtMH8VZ4IQM0g2KjDQYHdUoa hmgpIUyPe6H1XLD0dC8Ck7g2hmBk+638/VRs= Received: (qmail 23747 invoked from network); 22 Nov 2010 11:44:24 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@109.192.134.219) by mail.ud03.udmedia.de with ESMTPA; 22 Nov 2010 11:44:24 +0100 In-Reply-To: <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com> References: <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <71EF7CE9-09F6-4903-9D08-EAB7A12AB3F4@jump-ing.de> Content-Transfer-Encoding: 7bit From: Markus Hitter Date: Mon, 22 Nov 2010 11:45:41 +0100 To: Micke X-Mailer: Apple Mail (2.753.1) Cc: freebsd-embedded@freebsd.org Subject: Re: Add extra logfiles to /var/log/ 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, 22 Nov 2010 11:11:10 -0000 Am 21.11.2010 um 22:52 schrieb Micke: > Does anyone know where to store the log-files so they vill appear > at the /var/log directory ? You want /var to be writeable. Either make the whole root disk writeable, or add a writeable entry into /etc/fstab. For the later, here's what I've done: Put this into /etc/fstab: tmpfs /var tmpfs rw,size=20971520 0 0 Additionally, put a link from tmp to var/tmp into the directory of files picked up by tinybsd and your needs for writeable directories should be satisfied. The link is broken in the source directory but will resolve fine when the tinybsd image is in use. Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. (FH) Markus Hitter http://www.jump-ing.de/ From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 22 12:40:53 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03D8F1065672 for ; Mon, 22 Nov 2010 12:40:53 +0000 (UTC) (envelope-from micke.sommar@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8B7DC8FC0C for ; Mon, 22 Nov 2010 12:40:52 +0000 (UTC) Received: by wwd20 with SMTP id 20so7039068wwd.31 for ; Mon, 22 Nov 2010 04:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Z6ToZZKp5rqOVqnQgF+OfV7gAScNt6Z4uZLYtBYA0k4=; b=EzK44VLHY8krToz9c/27lgROEHcDpU7+vCs7arGvf13T89hq5v+vhYTAwzVMQ45Fdq HQZWqSU2S9+tfmTNL/hOmGKC6JOGdDn4+MQFjZQShok/6Oy8siJj5QSsUmVOJ+wtJ8VL tEy72haq9Fbw6VvEfMKYSoIYKh/DIYp8awIqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=nBdTub+Jp3URd/Tl0DY+BTRGxUy/GvgaFOA1kWNElKOSf0XGfhtyUeDVgxrus26CwW 4180UM028/9w7OqJSF/U0QfoAWKRz/fd16dRfL7CmAzvZivt2JBRUmoRsGn0tc2+3r70 CInWQdmrl6xtPrG9vSIkKOzSaZ46ncOrKGJdw= MIME-Version: 1.0 Received: by 10.216.157.132 with SMTP id o4mr4044604wek.7.1290429650430; Mon, 22 Nov 2010 04:40:50 -0800 (PST) Received: by 10.216.20.75 with HTTP; Mon, 22 Nov 2010 04:40:50 -0800 (PST) In-Reply-To: <71EF7CE9-09F6-4903-9D08-EAB7A12AB3F4@jump-ing.de> References: <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com> <71EF7CE9-09F6-4903-9D08-EAB7A12AB3F4@jump-ing.de> Date: Mon, 22 Nov 2010 13:40:50 +0100 Message-ID: From: Micke Sommar To: Markus Hitter Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-embedded@freebsd.org Subject: Re: Add extra logfiles to /var/log/ 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, 22 Nov 2010 12:40:53 -0000 Hi The problem is not that /var/log is write protected, its not. The problem is, all the changes made to /var/log is cleaned then I reboot the machine. I want to have the option to store some extra logfiles att startup. I tried to create the logfiles in /etc/rc.local , but rc.local is executed to late. Lighttpd need two logfiles to startup, one option is to move them away from /var/log, but thats wrong. Where do tinyBSD store/create the logfiles that is loaded in to /var/log ? I want to add two extra logfiles that should be loaded att startup. My TinyBSD options in rc.conf is: varmfs="YES" populate_var="YES" varsize="8192" tmpmfs="YES" Best regards Micke On 22 November 2010 11:45, Markus Hitter wrote: > > Am 21.11.2010 um 22:52 schrieb Micke: > > > Does anyone know where to store the log-files so they vill appear at the >> /var/log directory ? >> > > You want /var to be writeable. Either make the whole root disk writeable, > or add a writeable entry into /etc/fstab. For the later, here's what I've > done: > > Put this into /etc/fstab: > > tmpfs /var tmpfs rw,size=20971520 0 0 > > Additionally, put a link from tmp to var/tmp into the directory of files > picked up by tinybsd and your needs for writeable directories should be > satisfied. The link is broken in the source directory but will resolve fine > when the tinybsd image is in use. > > > Markus > > - - - - - - - - - - - - - - - - - - - > Dipl. Ing. (FH) Markus Hitter > http://www.jump-ing.de/ > > > > > >