Re: mg: make-directory
On Thu, Nov 15, 2012 at 05:01:50PM +0100, Jasper Lievisse Adriaanse wrote: > Hi, > > One of the things lacking in mg was support M-x make-directory, which comes > quite handy. This diff mimics the rather silent behaviour of Emacs: there's > basically no feedback in case creating the directory failed for whatever > reason. Should we be more verbose about it, or just stay in line with Emacs? Here is a slightly updated diff which uses getbufcwd() and (in line with Emacs), returns a permission denied message, as spotted by lum@. Index: def.h === RCS file: /cvs/src/usr.bin/mg/def.h,v retrieving revision 1.129 diff -p -u -r1.129 def.h --- def.h 6 Nov 2012 18:04:10 - 1.129 +++ def.h 16 Nov 2012 22:09:16 - @@ -335,6 +335,7 @@ void dirinit(void); int changedir(int, int); int showcwdir(int, int); int getcwdir(char *, size_t); +int makedir(int, int); /* dired.c */ struct buffer *dired_(char *); Index: dir.c === RCS file: /cvs/src/usr.bin/mg/dir.c,v retrieving revision 1.19 diff -p -u -r1.19 dir.c --- dir.c 13 Jun 2008 20:07:40 - 1.19 +++ dir.c 16 Nov 2012 22:09:16 - @@ -9,6 +9,8 @@ * Modified for MG 2a by Mic Kaczmarczik 03-Aug-1987 */ +#include + #include "def.h" static char mgcwd[NFILEN]; @@ -73,5 +75,69 @@ getcwdir(char *buf, size_t len) if (strlcpy(buf, mgcwd, len) >= len) return (FALSE); + return (TRUE); +} + +/* Create the directory and it's parents. */ +/* ARGSUSED */ +int +makedir(int f, int n) +{ + struct stat sb; + int finished, ishere; + mode_t dir_mode, mode, oumask; + char bufc[NFILEN], *path, *slash; + + if (getbufcwd(bufc, sizeof(bufc)) != TRUE) + return (ABORT); + if ((path = eread("Make directory: ", bufc, NFILEN, + EFDEF | EFNEW | EFCR | EFFILE)) == NULL) + return (ABORT); + else if (path[0] == '\0') + return (FALSE); + + slash = path; + oumask = umask(0); + mode = 0777 & ~oumask; + dir_mode = mode | S_IWUSR | S_IXUSR; + + for (;;) { + slash += strspn(slash, "/"); + slash += strcspn(slash, "/"); + + finished = (*slash == '\0'); + *slash = '\0'; + + ishere = !stat(path, &sb); + if (!finished && ishere && S_ISDIR(sb.st_mode)) { + *slash = '/'; + continue; + } + + if (mkdir(path, finished ? mode : dir_mode) == 0) { + if (mode > 0777 && chmod(path, mode) < 0) { + umask(oumask); + return (ABORT); + } + } else { + if (!ishere || !S_ISDIR(sb.st_mode)) { + if (!ishere) + ewprintf("Creating directory: permission denied, %s", path); + else + eerase(); + + umask(oumask); + return (FALSE); + } + } + + if (finished) + break; + + *slash = '/'; + } + + eerase(); + umask(oumask); return (TRUE); } Index: file.c === RCS file: /cvs/src/usr.bin/mg/file.c,v retrieving revision 1.84 diff -p -u -r1.84 file.c --- file.c 30 Aug 2012 21:36:48 - 1.84 +++ file.c 16 Nov 2012 22:09:16 - @@ -258,13 +258,14 @@ readin(char *fname) dp = dirname(fname); if (stat(dp, &statbuf) == -1 && errno == ENOENT) { /* no read-only; like emacs */ - ewprintf("Parent directory missing"); + ewprintf("Use M-x make-directory RET RET to " + "create the directory and it's parents"); } else if (access(dp, W_OK) == -1 && errno == EACCES) { ewprintf("File not found and directory" " write-protected"); ro = TRUE; - } + } } } if (ro == TRUE) Index: funmap.c === RCS file: /cvs/src/usr.bin/mg/funmap.c,v retrieving revision 1.41 diff -p -u -r1.41 funmap.c --- funmap.c12 Oct 2012 21:13:46 - 1.41 +++ funmap.c16 Nov 2012 22:09:16 - @@ -198
alt signal stack fixes
The diff below changes the alt sig stack logic to dynamically determine whether the thread is currently on the alt stack, by comparing the stack pointer against the altstack base and size, so that you get the correct answer if you longjmp out of the signal handler, as tested by regress/sys/kern/stackjmp/ Also changed: the logic on vax for deciding whether to switch stacks was completely broken, such that it would never switch. This updates it to match the other platforms, which should make it happier. Tested on amd64, sparc64, and i386; needs testing on the other platforms at the least. I'm not sure if the PROC_STACK() macro is the best API. In particular, my current implementation on alpha will only work on curproc, which is all that it's currently needed for. The obvious change to make it just always operate on curproc is less than idea, as curproc isn't cheap on all platforms and the caller in this case at least will always have it handy... Philip Guenther Index: sys/arch/alpha/alpha/machdep.c === RCS file: /cvs/src/sys/arch/alpha/alpha/machdep.c,v retrieving revision 1.139 diff -u -p -r1.139 machdep.c --- sys/arch/alpha/alpha/machdep.c 1 Nov 2012 21:09:17 - 1.139 +++ sys/arch/alpha/alpha/machdep.c 16 Nov 2012 17:58:58 - @@ -1431,11 +1431,12 @@ sendsig(catcher, sig, mask, code, type, struct fpreg *fpregs = (struct fpreg *)&ksc.sc_fpregs; struct trapframe *frame; struct sigacts *psp = p->p_sigacts; - int oonstack, fsize, rndfsize, kscsize; + unsigned long oldsp; + int fsize, rndfsize, kscsize; siginfo_t *sip, ksi; + oldsp = alpha_pal_rdusp(); frame = p->p_md.md_tf; - oonstack = p->p_sigstk.ss_flags & SS_ONSTACK; fsize = sizeof ksc; rndfsize = ((fsize + 15) / 16) * 16; kscsize = rndfsize; @@ -1451,25 +1452,24 @@ sendsig(catcher, sig, mask, code, type, * will fail if the process has not already allocated * the space with a `brk'. */ - if ((p->p_sigstk.ss_flags & SS_DISABLE) == 0 && !oonstack && - (psp->ps_sigonstack & sigmask(sig))) { + if ((p->p_sigstk.ss_flags & SS_DISABLE) == 0 && + !sigonstack(oldsp) && (psp->ps_sigonstack & sigmask(sig))) scp = (struct sigcontext *)(p->p_sigstk.ss_sp + p->p_sigstk.ss_size - rndfsize); - p->p_sigstk.ss_flags |= SS_ONSTACK; - } else - scp = (struct sigcontext *)(alpha_pal_rdusp() - rndfsize); + else + scp = (struct sigcontext *)(oldsp - rndfsize); if ((u_long)scp <= USRSTACK - ptoa(p->p_vmspace->vm_ssize)) (void)uvm_grow(p, (u_long)scp); #ifdef DEBUG if ((sigdebug & SDB_KSTACK) && p->p_pid == sigpid) printf("sendsig(%d): sig %d ssp %p usp %p\n", p->p_pid, - sig, &oonstack, scp); + sig, &ksc, scp); #endif /* * Build the signal context to be used by sigreturn. */ - ksc.sc_onstack = oonstack; + bzero(&ksc, sizeof(ksc)); ksc.sc_mask = mask; ksc.sc_pc = frame->tf_regs[FRAME_PC]; ksc.sc_ps = frame->tf_regs[FRAME_PS]; @@ -1477,7 +1477,7 @@ sendsig(catcher, sig, mask, code, type, /* copy the registers. */ frametoreg(frame, (struct reg *)ksc.sc_regs); ksc.sc_regs[R_ZERO] = 0xACEDBADE; /* magic number */ - ksc.sc_regs[R_SP] = alpha_pal_rdusp(); + ksc.sc_regs[R_SP] = oldsp; /* save the floating-point state, if necessary, then copy it. */ if (p->p_addr->u_pcb.pcb_fpcpu != NULL) @@ -1588,10 +1588,6 @@ sys_sigreturn(p, v, retval) /* * Restore the user-supplied information */ - if (ksc.sc_onstack) - p->p_sigstk.ss_flags |= SS_ONSTACK; - else - p->p_sigstk.ss_flags &= ~SS_ONSTACK; p->p_sigmask = ksc.sc_mask &~ sigcantmask; p->p_md.md_tf->tf_regs[FRAME_PC] = ksc.sc_pc; Index: sys/arch/alpha/include/cpu.h === RCS file: /cvs/src/sys/arch/alpha/include/cpu.h,v retrieving revision 1.45 diff -u -p -r1.45 cpu.h --- sys/arch/alpha/include/cpu.h1 Nov 2012 21:09:17 - 1.45 +++ sys/arch/alpha/include/cpu.h16 Nov 2012 17:58:58 - @@ -275,6 +275,7 @@ struct clockframe { * This is used during profiling to integrate system time. */ #definePROC_PC(p) ((p)->p_md.md_tf->tf_regs[FRAME_PC]) +#definePROC_STACK(p) (alpha_pal_rdusp()) /*XXX only works for curproc */ /* * Preempt the current process if in interrupt from user mode, Index: sys/arch/alpha/include/signal.h === RCS file: /cvs/src/sys/arch/alpha/include/signal.h,v retrieving revision 1.7 diff -u -p -r1.7 signal
Re: UVM Page Fault with Ralink wlan and Best login/net fs config?
On Fri, Nov 16, 2012 at 18:44 +, sbienddr...@googlemail.com wrote: > As requested. > > ddb{0}> uvm_fault(0xd0a50760, 0x0, 0, 1) -> e > kernel: page fault trap, code=0 > Stopped atdb_read_bytes+0x14:movzbl0(%esi,%ecx,1),%eax > ddb{0}> ddb{0}> db_read_bytes(0,1,f58ded94,0,2) at db_read_bytes+0x14 > db_get_value(0,1,0,0,f58dee84) at db_get_value+0x2e > db_disasm(0,0,d03fa3f0,0,f58def10) at db_disasm+0x31 > db_print_loc_and_inst(0,f58dee6c,f58dee74,d03b8bdd,d0b0c5c0) at > db_print_loc_and_inst+0x3e > db_trap(6,0,58,0,f58deeb0) at db_trap+0x83 > kdb_trap(6,0,f58def10,1,e) at kdb_trap+0x107 > trap() at trap+0x2e7 > --- trap (number -772428976) --- > Bad frame pointer: 0xd1f59000 > 0: > ddb{0}> ddb{0}> syncing disks... > could you please obtain the trace once again with the diff below. Index: sys/ddb/db_access.c === RCS file: /home/cvs/src/sys/ddb/db_access.c,v retrieving revision 1.10 diff -u -p -r1.10 db_access.c --- sys/ddb/db_access.c 15 Mar 2007 17:10:22 - 1.10 +++ sys/ddb/db_access.c 30 Sep 2011 08:09:15 - @@ -51,6 +51,9 @@ db_get_value(db_addr_t addr, size_t size db_expr_t value, extend; int i; + if (addr == 0) + return (0); + #ifdef DIAGNOSTIC if (size > sizeof data) size = sizeof data;
Re: UVM Page Fault with Ralink wlan and Best login/net fs config?
As requested. ddb{0}> uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped atdb_read_bytes+0x14:movzbl0(%esi,%ecx,1),%eax ddb{0}> ddb{0}> db_read_bytes(0,1,f58ded94,0,2) at db_read_bytes+0x14 db_get_value(0,1,0,0,f58dee84) at db_get_value+0x2e db_disasm(0,0,d03fa3f0,0,f58def10) at db_disasm+0x31 db_print_loc_and_inst(0,f58dee6c,f58dee74,d03b8bdd,d0b0c5c0) at db_print_loc_and_inst+0x3e db_trap(6,0,58,0,f58deeb0) at db_trap+0x83 kdb_trap(6,0,f58def10,1,e) at kdb_trap+0x107 trap() at trap+0x2e7 --- trap (number -772428976) --- Bad frame pointer: 0xd1f59000 0: ddb{0}> ddb{0}> syncing disks... M On 11/16/12 18:19, Mike Larkin wrote: On Fri, Nov 16, 2012 at 06:16:12PM +, sbienddr...@googlemail.com wrote: Hi Mike, run0 is a external edimax usb device. Page fault occurs when netstart/dhclient is being processed. Boot up without this network device installed, insert device and manually sh /etc/netstart throws out a page fault. This can happen 2/3 times then finally, whilst performing the above process, I am able to successfully bring up the device. Reading uvm man page on a Friday night, I should have a beer instead ... How about a ddb trace? -ml Regards, M PS - if it helps, I hate Lenovo - 2 dead keyboards, 2 dead disks, a BCM4315 and a poor bios On 11/16/12 18:02, Mike Larkin wrote: On Fri, Nov 16, 2012 at 10:13:19AM +, sbienddr...@googlemail.com wrote: 1. Just a quick note, has anyone else experienced a page fault when using a Ralink adapter at either bootup or when running netstat? Seems to be temperamental. 2. Throwing it out to the masses, what's the best login and net fs provision? (No-to NFS!!!) :) What makes you think this has anything to do at all with Ralink? -ml uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at0:uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped atdb_read_bytes+0x14:movzbl0(%esi,%ecx,1),%eax ddb{0}> syncing disks... OpenBSD 5.2-current (GENERIC.MP) #98: Tue Nov 13 13:18:33 MST 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP RTC BIOS diagnostic error 80 cpu0: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF real mem = 1062227968 (1013MB) avail mem = 1033895936 (986MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/24/09, SMBIOS rev. 2.4 @ 0xea780 (31 entries) bios0: vendor LENOVO version "1ACN22WW(V1.13)" date 11/24/2009 bios0: LENOVO 2957 acpi0 at bios0: rev 2 acpi0: sleep states S3 S4 S5 acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIX BOOT acpi0: wakeup devices LID0(S3) P32_(S0) UHC1(S3) UHC4(S3) ECHI(S3) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 4 acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 5 (P32_) acpiprt2 at acpi0: bus 1 (EXP1) acpiprt3 at acpi0: bus 2 (EXP2) acpiprt4 at acpi0: bus 3 (EXP3) acpiprt5 at acpi0: bus 4 (EXP4) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature is 102 degC acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID0 acpibtn2 at acpi0: SLPB acpibat0 at acpi0: BAT0 model "GC86508SAT0 " type LION oem "SANYO " acpiac0 at acpi0: AC unit online acpivideo0 at acpi0: OVGA acpivout0 at acpivideo0: LCD_ bios0: ROM list: 0xc/0xec00! 0xcf000/0x1000 cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1333, 1066, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0x4000, size 0x1000 inteldrm0 at vga1: apic 4 int 16 drm0 at inteldrm0 "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi azalia0: codecs: Realtek ALC272 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16 pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 functio
Re: UVM Page Fault with Ralink wlan and Best login/net fs config?
On it's way next bounce. M On 11/16/12 18:19, Mike Larkin wrote: On Fri, Nov 16, 2012 at 06:16:12PM +, sbienddr...@googlemail.com wrote: Hi Mike, run0 is a external edimax usb device. Page fault occurs when netstart/dhclient is being processed. Boot up without this network device installed, insert device and manually sh /etc/netstart throws out a page fault. This can happen 2/3 times then finally, whilst performing the above process, I am able to successfully bring up the device. Reading uvm man page on a Friday night, I should have a beer instead ... How about a ddb trace? -ml Regards, M PS - if it helps, I hate Lenovo - 2 dead keyboards, 2 dead disks, a BCM4315 and a poor bios On 11/16/12 18:02, Mike Larkin wrote: On Fri, Nov 16, 2012 at 10:13:19AM +, sbienddr...@googlemail.com wrote: 1. Just a quick note, has anyone else experienced a page fault when using a Ralink adapter at either bootup or when running netstat? Seems to be temperamental. 2. Throwing it out to the masses, what's the best login and net fs provision? (No-to NFS!!!) :) What makes you think this has anything to do at all with Ralink? -ml uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at0:uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped atdb_read_bytes+0x14:movzbl0(%esi,%ecx,1),%eax ddb{0}> syncing disks... OpenBSD 5.2-current (GENERIC.MP) #98: Tue Nov 13 13:18:33 MST 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP RTC BIOS diagnostic error 80 cpu0: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF real mem = 1062227968 (1013MB) avail mem = 1033895936 (986MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/24/09, SMBIOS rev. 2.4 @ 0xea780 (31 entries) bios0: vendor LENOVO version "1ACN22WW(V1.13)" date 11/24/2009 bios0: LENOVO 2957 acpi0 at bios0: rev 2 acpi0: sleep states S3 S4 S5 acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIX BOOT acpi0: wakeup devices LID0(S3) P32_(S0) UHC1(S3) UHC4(S3) ECHI(S3) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 4 acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 5 (P32_) acpiprt2 at acpi0: bus 1 (EXP1) acpiprt3 at acpi0: bus 2 (EXP2) acpiprt4 at acpi0: bus 3 (EXP3) acpiprt5 at acpi0: bus 4 (EXP4) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature is 102 degC acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID0 acpibtn2 at acpi0: SLPB acpibat0 at acpi0: BAT0 model "GC86508SAT0 " type LION oem "SANYO " acpiac0 at acpi0: AC unit online acpivideo0 at acpi0: OVGA acpivout0 at acpivideo0: LCD_ bios0: ROM list: 0xc/0xec00! 0xcf000/0x1000 cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1333, 1066, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0x4000, size 0x1000 inteldrm0 at vga1: apic 4 int 16 drm0 at inteldrm0 "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi azalia0: codecs: Realtek ALC272 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16 pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 4 int 17 pci2 at ppb1 bus 2 "Broadcom BCM4315" rev 0x01 at pci2 dev 0 function 0 not configured ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 4 int 18 pci3 at ppb2 bus 3 re0 at pci3 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102EL (0x2480), apic 4 int 18, address 00:01:02:03:04:06 rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 4 int 19 pci4 at ppb3 bus 4 uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 16 uhci1 at pci0 dev 29 function 1 "Intel 82801G
Re: UVM Page Fault with Ralink wlan and Best login/net fs config?
On Fri, Nov 16, 2012 at 06:16:12PM +, sbienddr...@googlemail.com wrote: > Hi Mike, > > run0 is a external edimax usb device. Page fault occurs when > netstart/dhclient is being processed. Boot up without this network > device installed, insert device and manually sh /etc/netstart throws > out a page fault. > > This can happen 2/3 times then finally, whilst performing the above > process, I am able to successfully bring up the device. > > Reading uvm man page on a Friday night, I should have a beer instead ... > How about a ddb trace? -ml > Regards, > M > > PS - if it helps, I hate Lenovo - 2 dead keyboards, 2 dead disks, a > BCM4315 and a poor bios > > On 11/16/12 18:02, Mike Larkin wrote: > >On Fri, Nov 16, 2012 at 10:13:19AM +, sbienddr...@googlemail.com wrote: > >>1. Just a quick note, has anyone else experienced a page fault when > >>using a Ralink adapter at either bootup or when running netstat? > >>Seems to be temperamental. > >> > >>2. Throwing it out to the masses, what's the best login and net fs > >>provision? (No-to NFS!!!) > >> > >>:) > >> > >What makes you think this has anything to do at all with Ralink? > > > >-ml > > > >>uvm_fault(0xd0a50760, 0x0, 0, 1) -> e > >>kernel: page fault trap, code=0 > >>Stopped at0:uvm_fault(0xd0a50760, 0x0, 0, 1) -> e > >>kernel: page fault trap, code=0 > >>Stopped atdb_read_bytes+0x14:movzbl0(%esi,%ecx,1),%eax > >>ddb{0}> syncing disks... > >> > >>OpenBSD 5.2-current (GENERIC.MP) #98: Tue Nov 13 13:18:33 MST 2012 > >>dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP > >>RTC BIOS diagnostic error 80 > >>cpu0: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" > >>686-class) 1.67 GHz > >>cpu0: > >>FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF > >>real mem = 1062227968 (1013MB) > >>avail mem = 1033895936 (986MB) > >>mainbus0 at root > >>bios0 at mainbus0: AT/286+ BIOS, date 11/24/09, SMBIOS rev. 2.4 @ > >>0xea780 (31 entries) > >>bios0: vendor LENOVO version "1ACN22WW(V1.13)" date 11/24/2009 > >>bios0: LENOVO 2957 > >>acpi0 at bios0: rev 2 > >>acpi0: sleep states S3 S4 S5 > >>acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIX BOOT > >>acpi0: wakeup devices LID0(S3) P32_(S0) UHC1(S3) UHC4(S3) ECHI(S3) > >>EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0) > >>acpitimer0 at acpi0: 3579545 Hz, 24 bits > >>acpihpet0 at acpi0: 14318179 Hz > >>acpimadt0 at acpi0 addr 0xfee0: PC-AT compat > >>cpu0 at mainbus0: apid 0 (boot processor) > >>cpu0: apic clock running at 166MHz > >>cpu1 at mainbus0: apid 1 (application processor) > >>cpu1: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" > >>686-class) 1.67 GHz > >>cpu1: > >>FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF > >>ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins > >>ioapic0: misconfigured as apic 0, remapped to apid 4 > >>acpimcfg0 at acpi0 addr 0xe000, bus 0-255 > >>acpiprt0 at acpi0: bus 0 (PCI0) > >>acpiprt1 at acpi0: bus 5 (P32_) > >>acpiprt2 at acpi0: bus 1 (EXP1) > >>acpiprt3 at acpi0: bus 2 (EXP2) > >>acpiprt4 at acpi0: bus 3 (EXP3) > >>acpiprt5 at acpi0: bus 4 (EXP4) > >>acpiec0 at acpi0 > >>acpicpu0 at acpi0: C3, C2, C1, PSS > >>acpicpu1 at acpi0: C3, C2, C1, PSS > >>acpitz0 at acpi0: critical temperature is 102 degC > >>acpibtn0 at acpi0: PWRB > >>acpibtn1 at acpi0: LID0 > >>acpibtn2 at acpi0: SLPB > >>acpibat0 at acpi0: BAT0 model "GC86508SAT0 " type LION oem "SANYO " > >>acpiac0 at acpi0: AC unit online > >>acpivideo0 at acpi0: OVGA > >>acpivout0 at acpivideo0: LCD_ > >>bios0: ROM list: 0xc/0xec00! 0xcf000/0x1000 > >>cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1333, 1066, 800 MHz > >>pci0 at mainbus0 bus 0: configuration mode 1 (bios) > >>pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03 > >>vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03 > >>wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > >>wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > >>intagp0 at vga1 > >>agp0 at intagp0: aperture at 0x4000, size 0x1000 > >>inteldrm0 at vga1: apic 4 int 16 > >>drm0 at inteldrm0 > >>"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured > >>azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi > >>azalia0: codecs: Realtek ALC272 > >>audio0 at azalia0 > >>ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16 > >>pci1 at ppb0 bus 1 > >>ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 4 int 17 > >>pci2 at ppb1 bus 2 > >>"Broadcom BCM4315" rev 0x01 at pci2 dev 0 function 0 not configured > >>ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 4 int 18 > >>pci3 at ppb2 bus 3 > >>re0 at pci3 dev 0 function 0 "Realtek 8101E" rev 0
Re: UVM Page Fault with Ralink wlan and Best login/net fs config?
Hi Mike, run0 is a external edimax usb device. Page fault occurs when netstart/dhclient is being processed. Boot up without this network device installed, insert device and manually sh /etc/netstart throws out a page fault. This can happen 2/3 times then finally, whilst performing the above process, I am able to successfully bring up the device. Reading uvm man page on a Friday night, I should have a beer instead ... Regards, M PS - if it helps, I hate Lenovo - 2 dead keyboards, 2 dead disks, a BCM4315 and a poor bios On 11/16/12 18:02, Mike Larkin wrote: On Fri, Nov 16, 2012 at 10:13:19AM +, sbienddr...@googlemail.com wrote: 1. Just a quick note, has anyone else experienced a page fault when using a Ralink adapter at either bootup or when running netstat? Seems to be temperamental. 2. Throwing it out to the masses, what's the best login and net fs provision? (No-to NFS!!!) :) What makes you think this has anything to do at all with Ralink? -ml uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at0:uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped atdb_read_bytes+0x14:movzbl0(%esi,%ecx,1),%eax ddb{0}> syncing disks... OpenBSD 5.2-current (GENERIC.MP) #98: Tue Nov 13 13:18:33 MST 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP RTC BIOS diagnostic error 80 cpu0: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF real mem = 1062227968 (1013MB) avail mem = 1033895936 (986MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/24/09, SMBIOS rev. 2.4 @ 0xea780 (31 entries) bios0: vendor LENOVO version "1ACN22WW(V1.13)" date 11/24/2009 bios0: LENOVO 2957 acpi0 at bios0: rev 2 acpi0: sleep states S3 S4 S5 acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIX BOOT acpi0: wakeup devices LID0(S3) P32_(S0) UHC1(S3) UHC4(S3) ECHI(S3) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 4 acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 5 (P32_) acpiprt2 at acpi0: bus 1 (EXP1) acpiprt3 at acpi0: bus 2 (EXP2) acpiprt4 at acpi0: bus 3 (EXP3) acpiprt5 at acpi0: bus 4 (EXP4) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature is 102 degC acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID0 acpibtn2 at acpi0: SLPB acpibat0 at acpi0: BAT0 model "GC86508SAT0 " type LION oem "SANYO " acpiac0 at acpi0: AC unit online acpivideo0 at acpi0: OVGA acpivout0 at acpivideo0: LCD_ bios0: ROM list: 0xc/0xec00! 0xcf000/0x1000 cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1333, 1066, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0x4000, size 0x1000 inteldrm0 at vga1: apic 4 int 16 drm0 at inteldrm0 "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi azalia0: codecs: Realtek ALC272 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16 pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 4 int 17 pci2 at ppb1 bus 2 "Broadcom BCM4315" rev 0x01 at pci2 dev 0 function 0 not configured ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 4 int 18 pci3 at ppb2 bus 3 re0 at pci3 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102EL (0x2480), apic 4 int 18, address 00:01:02:03:04:06 rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 4 int 19 pci4 at ppb3 bus 4 uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 16 uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 int 17 uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 int 18 uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02
Re: ##@!#@# gnu tools
On Thursday 15 November 2012, Reyk Floeter wrote: > On Thu, Nov 15, 2012 at 5:11 PM, Marc Espie wrote: > > external people regularly ask "but why you don't want to use > > GNU/m4 GNU/make GNU/whatever ?" > > External people seem to ask weird questions. > > I just had to dig into autoconf/auto* because it seems to be a > "must have" for a "portable" project. Yuck! That's all a matter of perspective. If you work on sane platforms like Linux and BSDs, you always think what do I need this autotools/libtool crap for, it would be much easier without them. But once you work on really weird platforms like AIX and do non-trivial tasks (like building shared libraries :-o ), autotools/libtool are sent from heaven and are really *so* much easier to use than what is available natively. I guess another example is Mac OS with its "universal binaries" that may contain both 32 and 64 bit, and both intel and powerpc code in the same file. Also, for non-trivial projects, the advice "don't write portable make files, use a portable make instead" is very much true. Posix compatible make lacks even the most basic features. Stefan
Re: ##@!#@# gnu tools
On Thu, Nov 15, 2012 at 05:53:52PM +0100, Reyk Floeter wrote: > On Thu, Nov 15, 2012 at 5:11 PM, Marc Espie wrote: > > external people regularly ask "but why you don't want to use GNU/m4 > > GNU/make > > GNU/whatever ?" > > > > External people seem to ask weird questions. > > I just had to dig into autoconf/auto* because it seems to be a "must > have" for a "portable" project. You'll loose less time if you write a nice and small ./configure shell script by hand. I've such a script for few portable projects; it respects the "gnu standards" and just works. Drop me a line if you need examples/hints. -- Alexandre
UVM Page Fault with Ralink wlan and Best login/net fs config?
1. Just a quick note, has anyone else experienced a page fault when using a Ralink adapter at either bootup or when running netstat? Seems to be temperamental. 2. Throwing it out to the masses, what's the best login and net fs provision? (No-to NFS!!!) :) uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at0:uvm_fault(0xd0a50760, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped atdb_read_bytes+0x14:movzbl0(%esi,%ecx,1),%eax ddb{0}> syncing disks... OpenBSD 5.2-current (GENERIC.MP) #98: Tue Nov 13 13:18:33 MST 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP RTC BIOS diagnostic error 80 cpu0: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF real mem = 1062227968 (1013MB) avail mem = 1033895936 (986MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/24/09, SMBIOS rev. 2.4 @ 0xea780 (31 entries) bios0: vendor LENOVO version "1ACN22WW(V1.13)" date 11/24/2009 bios0: LENOVO 2957 acpi0 at bios0: rev 2 acpi0: sleep states S3 S4 S5 acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIX BOOT acpi0: wakeup devices LID0(S3) P32_(S0) UHC1(S3) UHC4(S3) ECHI(S3) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 4 acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 5 (P32_) acpiprt2 at acpi0: bus 1 (EXP1) acpiprt3 at acpi0: bus 2 (EXP2) acpiprt4 at acpi0: bus 3 (EXP3) acpiprt5 at acpi0: bus 4 (EXP4) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature is 102 degC acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID0 acpibtn2 at acpi0: SLPB acpibat0 at acpi0: BAT0 model "GC86508SAT0 " type LION oem "SANYO " acpiac0 at acpi0: AC unit online acpivideo0 at acpi0: OVGA acpivout0 at acpivideo0: LCD_ bios0: ROM list: 0xc/0xec00! 0xcf000/0x1000 cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1333, 1066, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0x4000, size 0x1000 inteldrm0 at vga1: apic 4 int 16 drm0 at inteldrm0 "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi azalia0: codecs: Realtek ALC272 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16 pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 4 int 17 pci2 at ppb1 bus 2 "Broadcom BCM4315" rev 0x01 at pci2 dev 0 function 0 not configured ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 4 int 18 pci3 at ppb2 bus 3 re0 at pci3 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102EL (0x2480), apic 4 int 18, address 00:01:02:03:04:06 rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 4 int 19 pci4 at ppb3 bus 4 uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 16 uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 int 17 uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 int 18 uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 4 int 19 ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 4 int 16 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2 pci5 at ppb4 bus 5 ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility pciide0: channel 0 disabled (no drives) pciide0: channel 1 ignored (disabled) ahci0 at pci0 dev 31 function 2 "Intel 82801GBM AHCI" rev 0x02: msi, AHCI 1.1 scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: