On 09/01/2011 12:33, Luigi Rizzo wrote:
> On Sun, Jan 09, 2011 at 12:39:28AM -0600, Tom Judge wrote:
>> Hi,
>>
>> Today I ran into an issue where setting the default slice with boot0cfg
>> -s is broken.
> a few questions inline:
>
Output inline, full script log attached.

If you need more info let me know.

<snip>
>> Update the active slice to 2:
>> ===
>> # boot0cfg -s 2 -v ad0
>> #   flag     start chs   type       end chs       offset         size
>> 1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
>> 2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
>> 3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024
>>
>> version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
>> options=packet,update,nosetdrv
>> volume serial ID 9090-9090
>> default_selection=F2 (Slice 2)
>> ===
> what do you get here if you re-run
>
>       boot0cfg -v ad0
>
> before rebooting ? It seems that boot0cfg does not re-read
> data from disk so if the write for some reason fails
> (e.g. kern.geom.debugflags=0) you don't see the actual configuration
> of the boot sector.
> Looking at the code there should be an error message if writing
> to disk fails, but maybe the error reporting oes not work well...
>
>
Fresh transcript:
# boot0cfg -v ad0
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F1 (Slice 1)
# boot0cfg -s 2 -v ad0
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F2 (Slice 2)
# boot0cfg -v ad0    
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F2 (Slice 2)
#

>> Reboot and let boot0 time out and boot default slice 2:
>> ===
>> # boot0cfg -v ad0
>> #   flag     start chs   type       end chs       offset         size
>> 1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
>> 2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
>> 3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024
>>
>> version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
>> options=packet,update,nosetdrv
>> volume serial ID 9090-9090
>> default_selection=F2 (Slice 2)
>> ===
>> The system actually booted into slice 1 here.
> What does the system show as Default when it reboots ? F1 or F2 ?
> This is just to check if the update actually went to disk.
>
>
# boot0cfg -v ad0    
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F2 (Slice 2)
# shutdown -r now
Shutdown NOW!
shutdown: [pid 1104]
#                                                                               

<shutdown log snipped>
Rebooting...

1  FreeBSD
2  FreeBSD

F6 PXE
Boot:  2

-- Let time out, snip loader/beastie hit 6 at the menu --
OK show loaddev
disk0s1a:
OK
--boot system and login --
# boot0cfg -v ad0
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F2 (Slice 2)
# mount
/dev/label/nanobsd1 on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/md0 on /etc (ufs, local)
/dev/md1 on /var (ufs, local)
# glabel status |grep nanobsd
label/nanobsd1     N/A  ad0s1a
label/nanobsd2     N/A  ad0s2a
#


>> This was verified by dropping to the loader prompt and using show to grab:
>> loaddev=disk0s1a:
>>
>> Reboot and hit 2 at the boot0 prompt:
>> ===
>> # boot0cfg -v ad0
>> #   flag     start chs   type       end chs       offset         size
>> 1   0x00      0:  1: 1   0xa5    494: 15:63           63       498897
>> 2   0x80    495:  1: 1   0xa5    989: 15:63       499023       498897
>> 3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024
>>
>> version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
>> options=packet,update,nosetdrv
>> volume serial ID 9090-9090
>> default_selection=F2 (Slice 2)
>> ===
>>
>> This time we really boot into slice 2.
>>
>> The attached patch backs out the relevant part of r186598.
>>
>> There was a post on the embedded list that suggested this work around:
>>     echo 'a 2' | fdisk -f /dev/stdin ad0
>>     boot0cfg -s 2 ad0
>>
>> There are 2 issues with this:
>> 1) It can't be done without setting kern.geom.debugflags to 0x10.
>> 2) It resulted in most/all commands resulting in the error message
>> "Device not configured" including the second command and 'shutdown -r now'.
>>
>> Both of which leave this really work around fairly broken.
>>
>>

Thanks

Tom
Script started on Sun Jan  9 18:47:17 2011
]0;t...@alix-builder: 
/usr/local/nanobsdroot[33;1...@alix-builder 
'18:47:17' '/usr/local/nanobsd'
> # qemu -nographic -drive 
file=/usr/obj/nanobsd.DEV-QEMU//_.disk.full type=raw -net nic,model=e1000 -net 
tap,name=tap0,script=no

1  FreeBSD
2  FreeBSD

F6 PXE
Boot:  1 
/boot.config: -h
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/Consoles: 
serial port  
BIOS drive C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\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\]
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/     
______    |  ____| __ ___  ___     | |__ | '__/ _ \/ _ \   
 |  __|| | |  __/  __/    | |   | | |    |    |    |_|   |_|  
\___|\___|     ____   _____ _____    |  _ \ / ____|  __ 
\    | |_) | (___ | |  | |    |  _ < \___ \| |  | |    
| |_) |____) | |__| |    |     |      |      |    
|____/|_____/|_____/³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÚÀ¿ÙWelcome
 to FreeBSD!1 . Boot FreeBSD [default]2 . Boot 
FreeBSD with ACPI disabled3 . Boot FreeBSD in Safe Mode4 
. Boot FreeBSD in single user mode5 . Boot FreeBSD with 
verbose logging6 . Escape to loader prompt7 . 
RebootSelect option, [Enter] for defaultor [Space] to pause timer 
   10 10 9 9 8 8 8 
7 7 6 6 5 5 4 4 
3 3 2 2 1 1 0 0 
-\|/-\|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: Sat Jan  8 00:22:50 UTC 2011
    
t...@alix-builder.home.tomjudge.com:/usr/obj/nanobsd.DEV-QEMU/usr/src/sys/GENERIC
 i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: QEMU Virtual CPU version 0.13.0 (2499.09-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x633  Family = 6  Model = 3  Stepping = 3
  
Features=0x781abf9<FPU,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,PGE,CMOV,PAT,MMX,FXSR,SSE,SSE2>
  Features2=0x80800001<SSE3,POPCNT,<b31>>
real memory  = 134217728 (128 MB)
avail memory = 116576256 (111 MB)
ACPI APIC Table: <BOCHS  BXPCAPIC>
pnpbios: Bad PnP BIOS data checksum
ioapic0: Changing APIC ID to 1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <BOCHS BXPCRSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 100000000 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pci0: <bridge> at device 1.3 (no driver attached)
vgapci0: <VGA-compatible display> mem 
0xf0000000-0xf1ffffff,0xf2000000-0xf2000fff at device 2.0 on pci0
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.1> port 0xc040-0xc07f mem 
0xf2020000-0xf203ffff irq 11 at device 3.0 on pci0
em0: Memory Access and/or Bus Master bits were not set!
em0: [FILTER]
em0: Ethernet address: 52:54:00:12:34:56
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse Explorer, device ID 4
fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppc0: [ITHREAD]
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
plip0: [ITHREAD]
lpt0: <Printer> on ppbus0
lpt0: [ITHREAD]
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
uart0: console (9600,n,8,1)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc9000-0xc97ff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2499094723 Hz quality 800
Timecounters tick every 10.000 msec
em0: link state changed to UP
ad0: 488MB <QEMU HARDDISK 0.13.0> at ata0-master WDMA2 
acd0: CDROM <QEMU DVD-ROM/0.13.0> at ata1-master WDMA2 
Trying to mount root from ufs:/dev/label/nanobsd1
Setting hostuuid: 0283d1a9-1c21-11e0-9739-525400123456.
Setting hostid: 0x4217687c.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Starting file system checks:
/dev/label/nanobsd1: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/label/nanobsd1: clean, 219904 free (1536 frags, 27296 blocks, 0.3% 
fragmentation)
/dev/label/cfg: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/label/cfg: clean, 2828 free (28 frags, 350 blocks, 1.0% fragmentation)
Mounting local file systems:.
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
Starting Network: lo0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1 prefixlen 64 scopeid 0x3 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
ip6addrctl: not found
ip6addrctl: not found
ip6addrctl: not found
ip6addrctl: not found
ip6addrctl: not found
ip6addrctl: not found
Starting devd.
Generating host.conf.
Creating and/or trimming log files.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib
a.out ldconfig path: /usr/lib/aout
ldconfig: /usr/lib/aout: No such file or directory
Clearing /tmp (X related).
Updating motd:.
Configuring syscons: blanktime.
Starting cron.
cron: tabs: No such file or directory
cron: tabs: created
Starting background file system checks in 60 seconds.

Sun Jan  9 18:48:33 UTC 2011

FreeBSD/i386 (Amnesiac) (ttyu0)

login: root
Jan  9 18:48:57  login: ROOT LOGIN (root) ON ttyu0
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 8.1-RELEASE-p1 (GENERIC) #0: Sat Jan  8 00:22:50 UTC 2011

Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.

o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.

If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questi...@freebsd.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.

You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.

# boot0cfg -v ad0
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F1 (Slice 1)
# boot0cfg -s 2 -v ad0
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F2 (Slice 2)
# boot0cfg -s 2 -v ad0v ad0     
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F2 (Slice 2)
# shutdown -r now
Shutdown NOW!
shutdown: [pid 1101]
#                                                                               
 
*** FINAL System shutdown message from root@ ***                             
System going down IMMEDIATELY                                                  
                                                                               
                                                                               
Jan  9 18:49:25  shutdown: reboot by root: 

System shutdown time has arrived
Stopping cron.
Stopping devd.
Writing entropy file:.
Terminated
.
Jan  9 18:49:38  syslogd: exiting on signal 15
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 0 0 0 0 0 done
All buffers synced.
Uptime: 1m47s
Rebooting...

1  FreeBSD
2  FreeBSD

F6 PXE
Boot:  2 
/boot.config: -h
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/Consoles: 
serial port  
BIOS drive C: is disk0
BIOS 637kB/130036kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(t...@alix-builder.home.tomjudge.com, Fri Jan  7 23:41:11 UTC 2011)
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-Loading 
/boot/defaults/loader.conf 
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-/boot/kernel/kernel
 text=0x8c9a23 
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|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-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\+0x4+0xd0405|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\]
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/     
______    |  ____| __ ___  ___     | |__ | '__/ _ \/ _ \   
 |  __|| | |  __/  __/    | |   | | |    |    |    |_|   |_|  
\___|\___|     ____   _____ _____    |  _ \ / ____|  __ 
\    | |_) | (___ | |  | |    |  _ < \___ \| |  | |    
| |_) |____) | |__| |    |     |      |      |    
|____/|_____/|_____/³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÚÀ¿ÙWelcome
 to FreeBSD!1 . Boot FreeBSD [default]2 . Boot 
FreeBSD with ACPI disabled3 . Boot FreeBSD in Safe Mode4 
. Boot FreeBSD in single user mode5 . Boot FreeBSD with 
verbose logging6 . Escape to loader prompt7 . 
RebootSelect option, [Enter] for defaultor [Space] to pause timer 
   10 9 9 

Type '?' for a list of commands, 'help' for more detailed help.
OK show loaddev
disk0s1a:
OK boot
-\|/-\|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: Sat Jan  8 00:22:50 UTC 2011
    
t...@alix-builder.home.tomjudge.com:/usr/obj/nanobsd.DEV-QEMU/usr/src/sys/GENERIC
 i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: QEMU Virtual CPU version 0.13.0 (2582.62-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x633  Family = 6  Model = 3  Stepping = 3
  
Features=0x781abf9<FPU,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,PGE,CMOV,PAT,MMX,FXSR,SSE,SSE2>
  Features2=0x80800001<SSE3,POPCNT,<b31>>
real memory  = 134217728 (128 MB)
avail memory = 116576256 (111 MB)
ACPI APIC Table: <BOCHS  BXPCAPIC>
pnpbios: Bad PnP BIOS data checksum
ioapic0: Changing APIC ID to 1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <BOCHS BXPCRSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 100000000 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pci0: <bridge> at device 1.3 (no driver attached)
vgapci0: <VGA-compatible display> mem 
0xf0000000-0xf1ffffff,0xf2000000-0xf2000fff at device 2.0 on pci0
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.1> port 0xc040-0xc07f mem 
0xf2020000-0xf203ffff irq 11 at device 3.0 on pci0
em0: Memory Access and/or Bus Master bits were not set!
em0: [FILTER]
em0: Ethernet address: 52:54:00:12:34:56
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse Explorer, device ID 4
fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppc0: [ITHREAD]
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
plip0: [ITHREAD]
lpt0: <Printer> on ppbus0
lpt0: [ITHREAD]
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
uart0: console (9600,n,8,1)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc9000-0xc97ff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2582620532 Hz quality 800
Timecounters tick every 10.000 msec
em0: link state changed to UP
ad0: 488MB <QEMU HARDDISK 0.13.0> at ata0-master WDMA2 
acd0: CDROM <QEMU DVD-ROM/0.13.0> at ata1-master WDMA2 
Trying to mount root from ufs:/dev/label/nanobsd1
Setting hostuuid: 5a160696-1c21-11e0-a892-525400123456.
Setting hostid: 0xacb1cc36.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Starting file system checks:
/dev/label/nanobsd1: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/label/nanobsd1: clean, 219904 free (1536 frags, 27296 blocks, 0.3% 
fragmentation)
/dev/label/cfg: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/label/cfg: clean, 2828 free (28 frags, 350 blocks, 1.0% fragmentation)
Mounting local file systems:.
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
Starting Network: lo0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1 prefixlen 64 scopeid 0x3 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
ip6addrctl: not found
ip6addrctl: not found
ip6addrctl: not found
ip6addrctl: not found
ip6addrctl: not found
ip6addrctl: not found
Starting devd.
Generating host.conf.
Creating and/or trimming log files.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib
a.out ldconfig path: /usr/lib/aout
ldconfig: /usr/lib/aout: No such file or directory
Clearing /tmp (X related).
Updating motd:.
Configuring syscons: blanktime.
Starting cron.
cron: tabs: No such file or directory
cron: tabs: created
Starting background file system checks in 60 seconds.

Sun Jan  9 18:51:00 UTC 2011

FreeBSD/i386 (Amnesiac) (ttyu0)

login: root
Jan  9 18:51:04  login: ROOT LOGIN (root) ON ttyu0
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 8.1-RELEASE-p1 (GENERIC) #0: Sat Jan  8 00:22:50 UTC 2011

Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.

o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.

If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questi...@freebsd.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.

You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.

# boot0 cfg -a v am d0
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5    494: 15:63           63       498897
2   0x00    495:  1: 1   0xa5    989: 15:63       499023       498897
3   0x00    990:  0: 1   0xa5    992: 15:63       997920         3024

version=2.0  drive=0x80  mask=0x3  ticks=182  bell=# (0x23)
options=packet,update,nosetdrv
volume serial ID 9090-9090
default_selection=F2 (Slice 2)
# mount
/dev/label/nanobsd1 on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/md0 on /etc (ufs, local)
/dev/md1 on /var (ufs, local)
# glabel status
          Name  Status  Components
     label/cfg     N/A  ad0s3
label/nanobsd1     N/A  ad0s1a
label/nanobsd2     N/A  ad0s2a
# shutdown -p now
Shutdown NOW!
shutdown: [pid 1101]
#                                                                               
 
*** FINAL System shutdown message from root@ ***                             
System going down IMMEDIATELY                                                  
                                                                               
                                                                               
Jan  9 18:52:08  shutdown: power-down by root: 

System shutdown time has arrived
Stopping cron.
Stopping devd.
Writing entropy file:.
Terminated
.
Jan  9 18:52:21  syslogd: exiting on signal 15
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 0 0 0 0 0 done
All buffers synced.
Uptime: 2m1s
acpi0: Powering system off
]0;t...@alix-builder: 
/usr/local/nanobsdroot[33;1...@alix-builder 
'18:52:44' '/usr/local/nanobsd'
> # exit

Script done on Sun Jan  9 18:52:46 2011

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to