mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Is printing broke on sparc ?
@ 2001-04-17  0:54 Mr. James W. Laferriere
  2001-04-17 12:42 ` Tim Waugh
  0 siblings, 1 reply; 11+ messages in thread
From: Mr. James W. Laferriere @ 2001-04-17  0:54 UTC (permalink / raw)
  To: Linux Kernel Maillist


	Hello All , On Linux-Sparc I can send data to the /dev/par0 &
	/dev/lp0 but the data appears to be garbled .

	Sending the below printcap to either of the above ports ...
<begin printcap>
# /etc/printcap
#
# Please don't edit this file directly unless you know what you are doing!
# Be warned that the control-panel printtool requires a very strict format!
# Look at the printcap(5) man page for more info.
#
# This file can be edited with the printtool in the control-panel.

##PRINTTOOL3## LOCAL POSTSCRIPT 300x300 letter {} PostScript Default {}
lp:\
	:sd=/var/spool/lpd/lp:\
	:mx#0:\
	:sh:\
	:lp=/dev/lp0:\
	:if=/var/spool/lpd/lp/filter:
<end printcap>

	.. ie:  cat /etc/printcap > /dev/lp0    (or /dev/par0)
	gets me :

/c#eodiecnyotai rhernili s to rpaemn
                                    s eehpo o-.ROLPR0 roif{\=sl:x
                                                                 	/p:ao/lr
	which is where it rolls off the paper .
	printer is a DECLaser 2200  .  I have the PostScript option card
	for it , but when it is installed -notthing- gets output so I
	tried the above experiment without it installed .  With the option
	installed the display shows 'PS Waiting' Then shortly 'PS
	Processing' then 'PS Ready' .  This happens whether I cat .ps
	files or not .  I beleive that something is garbling the data
	being sent .

	I did have this running quite well off of a i386 running linux
	not to long ago .  So I have to be doing something wrong .

	ANy help appreciated .  Tia ,  JimL

	Options turned on in the .config

CONFIG_PARPORT=y
# CONFIG_PARPORT_PC is not set
# CONFIG_PARPORT_AMIGA is not set
# CONFIG_PARPORT_MFC3 is not set
# CONFIG_PARPORT_ATARI is not set
CONFIG_PARPORT_SUNBPP=y
# CONFIG_PARPORT_OTHER is not set
CONFIG_PARPORT_1284=y

CONFIG_PRINTER=y

	# dmesg | grep -b1 par

1135-Starting kswapd v1.8
1156:parport0: sunbpp at 0x1ffec800000
1190:parport0: cpp_mux: aa55f00f52ad51(18)
1228:parport0: cpp_daisy: aa5500ff(18)
1262:parport0: assign_addrs: aa5500ff(18)
1299:parport0: cpp_mux: aa55f00f52ad51(98)
1337:parport0: cpp_daisy: aa5500ff(98)
1371:parport0: assign_addrs: aa5500ff(98)
1408-Console: switching to colour frame buffer device 128x54
--
1527-pty: 256 Unix98 ptys configured
1559:lp0: using parport0 (interrupt-driven).
1599-block: queued sectors max/low 203466kB/72394kB, 640 slots per queue



       +----------------------------------------------------------------+
       | James   W.   Laferriere | System  Techniques | Give me VMS     |
       | Network        Engineer | 25416      22nd So |  Give me Linux  |
       | babydr@baby-dragons.com | DesMoines WA 98198 |   only  on  AXP |
       +----------------------------------------------------------------+



^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: kernel2.2.x to kernel2.4.x
@ 2001-05-16  4:08 Dunlap, Randy
  0 siblings, 0 replies; 11+ messages in thread
From: Dunlap, Randy @ 2001-05-16  4:08 UTC (permalink / raw)
  To: 'jalaja devi', Linux Kernel Maillist

> From: jalaja devi [mailto:jala_74@yahoo.com]
> 
> I tried porting a network driver from kernel2.2.x to
> 2.4. When i tried loading the driver, it shows the
> unresolved symbols for
> copy_to_user_ret
> outs
> __bad_udelay
> 
> Could anyone please tell me the corresponding fxns in 2.4.

You need to "unroll" copy_to_user_ret().  There is no
corresponding macro.  Just test the condition and return
-EFAULT (?; not looking at the source code) if it's invalid.

Don't know about "outs".

__bad_udelay means that some module used a too-large-parameter-value
to udelay().  Linker should be telling you which module.

~Randy


^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: kernel2.2.x to kernel2.4.x
@ 2001-05-17 19:19 Dunlap, Randy
  0 siblings, 0 replies; 11+ messages in thread
From: Dunlap, Randy @ 2001-05-17 19:19 UTC (permalink / raw)
  To: 'jalaja devi', Alan Cox; +Cc: Linux Kernel Maillist

see http://www.firstfloor.org/~andi/softnet/

~Randy


> -----Original Message-----
> From: jalaja devi [mailto:jala_74@yahoo.com]
> 
> How can I handle this from kernel2.2 to kernel2.4
> 
> Can I replace like this??
> 
> if (test_and_set_bit (0, (void *)&dev->tbusy)){ return
> EBUSY;} ========== with  netif_stop_queue (dev);
> 
> clear_bit ((void *)&dev->tbusy); ===== with
> netif_start_queue(dev);
> 
> Thanks
> Jalaja
> 
> --- Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > > I tried porting a network driver from kernel2.2.x
> > to
> > > 2.4. When i tried loading the driver, it shows the
> > > unresolved symbols for
> > > copy_to_user_ret
> > 
> > 	if(copy_to_user(...))
> > 		return -EFAULT
> > 
> > > outs
> > 
> > 	Has not gone away, your includes are wrong
> > 
> > > __bad_udelay
> > 
> > 	You are using too large a udelay use mdelay
> > -
> > To unsubscribe from this list: send the line
> > "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at 
> > http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-05-17 19:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-17  0:54 Is printing broke on sparc ? Mr. James W. Laferriere
2001-04-17 12:42 ` Tim Waugh
2001-04-18  0:10   ` Mr. James W. Laferriere
2001-04-18  0:28     ` Mr. James W. Laferriere
2001-04-18  8:20       ` Tim Waugh
2001-05-16  0:14     ` Mr. James W. Laferriere
2001-05-16  0:27       ` kernel2.2.x to kernel2.4.x jalaja devi
2001-05-16 20:40         ` Alan Cox
2001-05-17 18:20           ` jalaja devi
2001-05-16  4:08 Dunlap, Randy
2001-05-17 19:19 Dunlap, Randy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®