Re: Failure to build FreeBSD 9.2

2013-10-05 Thread Juris Kaminskis
i recompiled my kernel with more verbose output and I see following errors
before it stops:

procfs registered
panic: No usable event timer found!
cpuid=0
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a 
panic() at panic+0x1d8/frame 
initclocks() 
mi_startup() 
btext() ...
KDB: enter: panic
[thread pid 0 tid 10]
Stopped at kdb_enter+0x3b: moxq

can someone help me to explain what this means and what to do next?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Failure to build FreeBSD 9.2

2013-10-05 Thread Juris Kaminskis
2013/10/5 Polytropon free...@edvax.de

 On Sat, 5 Oct 2013 09:40:31 +0300, Juris Kaminskis wrote:
  i recompiled my kernel with more verbose output and I see following
 errors
  before it stops:
 
  procfs registered
  panic: No usable event timer found!
  cpuid=0
  KDB: stack backtrace:
  db_trace_self_wrapper() at db_trace_self_wrapper+0x2a 
  panic() at panic+0x1d8/frame 
  initclocks() 
  mi_startup() 
  btext() ...
  KDB: enter: panic
  [thread pid 0 tid 10]
  Stopped at kdb_enter+0x3b: moxq
 
  can someone help me to explain what this means and what to do next?

 In many cases, this indicates a problem introduced by the
 computer's BIOS settings or ACPI. Make sure ACPI is enabled
 and the BIOS is configured properly (e. g. no timer settings
 modified or features deactivated). You could also check if
 a newer version of the BIOS is available.


Update to new BIOS did the trick!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Failure to build FreeBSD 9.2

2013-10-04 Thread Juris Kaminskis
Hello,

I am desperate trying to build FreeBSD 9.2. The same happens with
FreeBSD-Current. When I build 9.1 kernel without building world everything
is ok.

My svn info

Path: .

Working Copy Root Path: /usr/src

URL: http://svn0.eu.freebsd.org/base/release/9.2.0

Repository Root: http://svn0.eu.freebsd.org/base

Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

Revision: 255954

Node Kind: directory

Schedule: normal

Last Changed Author: gjb

Last Changed Rev: 255898

Last Changed Date: 2013-09-26 21:28:11 +0300 (Thu, 26 Sep 2013)


When I do standard process:
make buildworld
make buildkernel
make installkernel
reboot

my kernel hangs up and does not respond. I have tried a lot of things but
nothing works.

my new kernel hangs right after:

pci1: ACPI PCI bus on pcib1

my uname -a

   FreeBSD station 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4
09:23:10 UTC 2012

r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


and my dmesg output:

Copyright (c) 1992-2012 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 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012

   r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (2211.11-MHz K8-class
CPU)

 Origin = AuthenticAMD  Id = 0x40fb2  Family = f  Model = 4b  Stepping = 2

 
Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT

 Features2=0x2001SSE3,CX16

 AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!

 AMD Features2=0x1fLAHF,CMP,SVM,ExtAPIC,CR8

real memory  = 2147483648 (2048 MB)

avail memory = 2045505536 (1950 MB)

Event timer LAPIC quality 400

ACPI APIC Table: A M I  OEMAPIC 

FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs

FreeBSD/SMP: 1 package(s) x 2 core(s)

cpu0 (BSP): APIC ID:  0

cpu1 (AP): APIC ID:  1

ioapic0 Version 2.1 irqs 0-23 on motherboard

kbd1 at kbdmux0

acpi0: A M I OEMRSDT on motherboard

acpi0: Power Button (fixed)

unknown: memory range not supported

unknown: memory range not supported

unknown: memory range not supported

acpi0: reservation of 0, a (3) failed

acpi0: reservation of 10, 7ff0 (3) failed

cpu0: ACPI CPU on acpi0

cpu1: ACPI CPU on acpi0

attimer0: AT timer port 0x40-0x43 irq 0 on acpi0

Timecounter i8254 frequency 1193182 Hz quality 0

Event timer i8254 frequency 1193182 Hz quality 100

atrtc0: AT realtime clock port 0x70-0x71 irq 8 on acpi0

Event timer RTC frequency 32768 Hz quality 0

hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0

Timecounter HPET frequency 14318180 Hz quality 950

Timecounter ACPI-fast frequency 3579545 Hz quality 900

acpi_timer0: 32-bit timer at 3.579545MHz port 0x808-0x80b on acpi0

pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0

pci0: ACPI PCI bus on pcib0

pcib1: ACPI PCI-PCI bridge at device 3.0 on pci0

pcib1: failed to allocate initial memory window: 0xffb0-0xffbf

pci1: ACPI PCI bus on pcib1

vgapci0: VGA-compatible display port 0x9800-0x98ff mem
0xc000-0xcfff irq 19 at device 0.0 on pci1

hdac0: ATI RV630 HDA Controller irq 16 at device 0.1 on pci1

pcib2: ACPI PCI-PCI bridge at device 6.0 on pci0

pci2: ACPI PCI bus on pcib2

re0: RealTek 8168/8111 B/C/CP/D/DP/E/F PCIe Gigabit Ethernet port
0xa800-0xa8ff mem 0xffcff000-0xffcf irq 18 at device 0.0 on pci2

re0: Using 1 MSI message

re0: Chip rev. 0x3800

re0: MAC rev. 0x

miibus0: MII bus on re0

rgephy0: RTL8169S/8110S/8211 1000BASE-T media interface PHY 1 on miibus0

rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX,
100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master,
1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow,
1000baseT-FDX-flow-master, auto, auto-flow

re0: Ethernet address: 00:19:db:f6:72:d0

ahci0: ATI IXP600 AHCI SATA controller port
0xe800-0xe807,0xe400-0xe403,0xe000-0xe007,0xdc00-0xdc03,0xd800-0xd80f mem
0xffeffc00-0xffef irq 22 at device 18.0 on pci0

ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier supported

ahcich0: AHCI channel at channel 0 on ahci0

ahcich1: AHCI channel at channel 1 on ahci0

ahcich2: AHCI channel at channel 2 on ahci0

ahcich3: AHCI channel at channel 3 on ahci0

ohci0: OHCI (generic) USB controller mem 0xffefe000-0xffefefff irq 16 at
device 19.0 on pci0

usbus0 on ohci0

ohci1: OHCI (generic) USB controller mem 0xffefd000-0xffefdfff irq 17 at
device 19.1 on pci0

usbus1 on ohci1

ohci2: OHCI (generic) USB controller mem 0xffefc000-0xffefcfff irq 18 at
device 19.2 on pci0

usbus2 on ohci2

ohci3: OHCI (generic) USB controller mem 0xffefb000-0xffefbfff irq 17 at
device 19.3 on pci0

usbus3 on ohci3

ohci4: OHCI (generic) USB controller mem 0xffefa000-0xffefafff irq 18 at
device 19.4 on pci0

usbus4 on ohci4


ATB.: Freebsd-current kernel freezes

2013-09-28 Thread Juris Kaminskis


Juris Kaminskis juris.kamins...@gmail.com rakstīja:

Hi,

Yesterday i made:
Svn update
Make buildworld
Make buildkernel
Make installkernel

But when I reboot kernel freezes with last line pci1

I can only boot my previous freebsd9.2 kernel, already tried several times, so 
can you help me how to troubleshoot?
Tks
Juris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Freebsd-current kernel freezes

2013-09-27 Thread Juris Kaminskis
Hi,

Yesterday i made:
Svn update
Make buildworld
Make buildkernel
Make installkernel

But when I reboot kernel freezes with last line pci1

I can only boot my previous freebsd9.2 kernel, already tried several times, so 
can you help me how to troubleshoot?
Tks
Juris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-22 Thread Juris Kaminskis
finally my printer responds with this command:

nc 192.168.1.105 9100  output.xqx

but I have no idea how to get it running through the normal LPD spooling
system. output.xqx file I generate first with the foo2xqx-wrapper filter
and it accepts only postscript

i tried this printcap entry:

HP|lp|Printer:\
:lp=9100@192.168.1.105:\
:sh:\
:mx#0:\
:sd=/var/spool/hp:\
:if=/usr/bin/foo2xqx-wrapper:\
:lf=/var/log/lpd-errs:

but in the Status file i have:  waiting for 9100@192.168.1.105 to come up

btw: gsed package was not mentioned as dependency for foo2xqx-wrapper in
the Installation Notes
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-22 Thread Juris Kaminskis
 I can't imagine that LPD port 515 is not supported by the printer; what

 telnet 192.168.1.105 515

 gives?


telnet 192.168.1.105 515
Trying 192.168.1.105...
Connected to NPI2B483C.
Escape character is '^]'.

port 515 is not accepting file directly, when I tried the output.xqx to
this port nothing happened, only 9100 accepts


 If this is timing out, I would rather think in firewall issue;

 if you really need to print raw to port 9100, with CUPS you would
 just configure it through CUPS' web inteface as


How in CUPS i will be able to use foo2xqx-wrapper, plus I am planning to
add smart apsfilter from ports on top . I would like that all print jobs
are converted first by apsfilter into postscript, then foo2xqx-wrapper
makes them compatible for HP and finally I ship this data over network to
my printer

generally i would prefer to stick with the native freebsd printing system
which is LPD
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-22 Thread Juris Kaminskis
not sure what exactly did the trick either restart of LPD, or removing
Hplip and CUPS packages, but now my printer responds via:

lpr test.ps

Success! Thank you very much to everyone!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-19 Thread Juris Kaminskis
ok I realised the problem was that i sent plain text to filter instead a
postscript.

when I run now:

lpr test.ps

no error messages appear anymore except that in the /var/spool/hp which is
my spooling directory in the status file I have Sending to 192.168.1.105
and printer is silent



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-18 Thread Juris Kaminskis
as suggested i tried now foo2xqx filter. My printcap entry:
---
HP:\
:lp=:\
:sh:\
:mx#0:\
:rm=192.168.1.105:\
:rp=raw:\
:sd=/var/spool/hp:\
:if=/usr/bin/foo2xqx-wrapper:\
:lf=/var/log/lpd-errs:\
---

Now I get following errors in log file:

---
Aug 18 21:16:17 laptops lpd[11798]: lpd startup: logging=0
Aug 18 21:16:17 laptops foo2xqx-wrapper: foo2xqx-wrapper -w132 -l66 -i0 -n
root
Aug 18 21:16:18 laptops lpd[11799]: restarting HP
Aug 18 21:16:18 laptops foo2xqx-wrapper: foo2xqx-wrapper -w132 -l66 -i0 -n
root
Aug 18 21:16:19 laptops lpd[11799]: restarting HP
Aug 18 21:16:19 laptops foo2xqx-wrapper: foo2xqx-wrapper -w132 -l66 -i0 -n
root
Aug 18 21:16:19 laptops lpd[11799]: restarting HP
Aug 18 21:16:19 laptops foo2xqx-wrapper: foo2xqx-wrapper -w132 -l66 -i0 -n
root
Aug 18 21:16:19 laptops lpd[11799]: restarting HP
Aug 18 21:16:19 laptops foo2xqx-wrapper: foo2xqx-wrapper -w132 -l66 -i0 -n
root
Aug 18 21:16:19 laptops lpd[11799]: HP: job could not be sent to remote
host (cf
Aug 18 21:16:20 laptops lpd[11799]: mail sent to user root about job
unknown o
---

why foo2xqx-wrapper is forcing restart for the printer?



2013/8/6 Juris Kaminskis juris.kamins...@gmail.com


 after several trials and errors and reading through FreeBSD handbook I am
 at dead end on how to proceed further, hope someone can guide me.

 my /etc/printcap entry:
 ---
 HP:\
 :rm=192.168.1.105:sd=/var/spool/hp:lf=/var/log/lpd-errs:\
 :if=/usr/local/libexec/hp-network:
 ---

 my /usr/local/libexec/hp-network entry:
 ---
 #!/bin/sh
 #
 # hp-network - Text filter for HP printer `NPI2B483C' listening
 # on port 9100. Installed in /usr/local/libexec/hp-network
 #
 exec /usr/libexec/lpr/lpf $@ | /usr/local/libexec/netprint 192.168.1.105
 9100
 ---

 my /usr/local/libexec/netprint entry:
 ---
 !/usr/bin/perl -w
 #
 # netprint - Text filter for printer attached to network
 # Installed in /usr/local/libexec/netprint
 #

 $#ARGV eq 1 || die Usage: $0 printer-hostname port-number;

 $printer_host = $ARGV[0];
 $printer_port = $ARGV[1];
 use Socket;

 $protocol = getprotobyname('tcp');
 $address = inet_aton(192.168.1.105);
 $sockaddr = sockaddr_in($printer_port, $address);

 socket(PRINTER, PF_INET, SOCK_STREAM, $protocol)
   || die Can't create TCP/IP stream socket: $!;
 connect(PRINTER, $sockaddr) || die Can't contact $printer_host: $!;

 while (STDIN) { print PRINTER; } exit 0;
 ---

 Now my /var/log/lpd-errs is empty and in spool directory I have following
 after running command lptest 20 5 | lpr -P HP :

 content of /var/spool/hp
 total 16
 -rw-r--r-- 1 root juris 4 Aug 6 21:55 .seq
 -rw-rw 1 daemon juris 70 Aug 6 21:55 cfA014laptops
 -rw-rw 1 root juris 605 Aug 6 21:55 dfA014laptops
 -rw-rw-r-- 1 root juris 0 Aug 6 21:55 errs.ukc0YLC
 -rw-rw-r-- 1 root juris 5 Aug 6 21:55 lock

 My printer is not responding in any way, it keeps on flashing Ready. it is
 on the internal network having ip 192.168.1.105

 thanks
 Juris


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-18 Thread Juris Kaminskis
Yes indeed, i corrected, but i have still the problem
2013. gada 18. aug. 22:01 Chris Hill ch...@monochrome.org rakstīja:

 On Sun, 18 Aug 2013, Juris Kaminskis wrote:

  as suggested i tried now foo2xqx filter. My printcap entry:
 ---
 HP:\
 :lp=:\
 :sh:\
 :mx#0:\
 :rm=192.168.1.105:\
 :rp=raw:\
 :sd=/var/spool/hp:\
 :if=/usr/bin/foo2xqx-wrapper:\
 :lf=/var/log/lpd-errs:\
 ---

 ^
 That backslash needs to go, for one thing. The backslash indicates
 continuation on the next line, but I don't know what would happen if there
 is no next line. In other words, the last line should NOT end with a
 backslash.

 HTH.

 --
 Chris Hill   ch...@monochrome.org
 ** [ Busy Expunging / ]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Setup HP Laserjet 1120m over network with LPD

2013-08-06 Thread Juris Kaminskis
after several trials and errors and reading through FreeBSD handbook I am
at dead end on how to proceed further, hope someone can guide me.

my /etc/printcap entry:
---
HP:\
:rm=192.168.1.105:sd=/var/spool/hp:lf=/var/log/lpd-errs:\
:if=/usr/local/libexec/hp-network:
---

my /usr/local/libexec/hp-network entry:
---
#!/bin/sh
#
# hp-network - Text filter for HP printer `NPI2B483C' listening
# on port 9100. Installed in /usr/local/libexec/hp-network
#
exec /usr/libexec/lpr/lpf $@ | /usr/local/libexec/netprint 192.168.1.105
9100
---

my /usr/local/libexec/netprint entry:
---
!/usr/bin/perl -w
#
# netprint - Text filter for printer attached to network
# Installed in /usr/local/libexec/netprint
#

$#ARGV eq 1 || die Usage: $0 printer-hostname port-number;

$printer_host = $ARGV[0];
$printer_port = $ARGV[1];
use Socket;

$protocol = getprotobyname('tcp');
$address = inet_aton(192.168.1.105);
$sockaddr = sockaddr_in($printer_port, $address);

socket(PRINTER, PF_INET, SOCK_STREAM, $protocol)
  || die Can't create TCP/IP stream socket: $!;
connect(PRINTER, $sockaddr) || die Can't contact $printer_host: $!;

while (STDIN) { print PRINTER; } exit 0;
---

Now my /var/log/lpd-errs is empty and in spool directory I have following
after running command lptest 20 5 | lpr -P HP :

content of /var/spool/hp
total 16
-rw-r--r-- 1 root juris 4 Aug 6 21:55 .seq
-rw-rw 1 daemon juris 70 Aug 6 21:55 cfA014laptops
-rw-rw 1 root juris 605 Aug 6 21:55 dfA014laptops
-rw-rw-r-- 1 root juris 0 Aug 6 21:55 errs.ukc0YLC
-rw-rw-r-- 1 root juris 5 Aug 6 21:55 lock

My printer is not responding in any way, it keeps on flashing Ready. it is
on the internal network having ip 192.168.1.105

thanks
Juris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-06 Thread Juris Kaminskis
Model number: HP LaserJet M1120n MFP

I try your how-to in few days as it seems I need to redo whole config. I
will post my results, thanks
2013. gada 6. aug. 23:17 Warren Block wbl...@wonkity.com rakstīja:

 On Tue, 6 Aug 2013, Juris Kaminskis wrote:

  after several trials and errors and reading through FreeBSD handbook I am
 at dead end on how to proceed further, hope someone can guide me.


 Are you sure about that model number?  I can't find specs for a Laserjet
 1120M.  There is a Laserjet M1120.  It's a Winprinter.

 The file entries are confusing and use some non-base programs.  You may be
 mixing the base system's lpr/lpd with the CUPS versions of the same names
 from ports.

 For plain lpr/lpd, I have this article:
 http://www.wonkity.com/~**wblock/docs/html/lpdprinting.**htmlhttp://www.wonkity.com/~wblock/docs/html/lpdprinting.html

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org