Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] Kernel compilation for J5600
@ 2003-06-30  6:13 Mark Mestdagh
  2003-06-30  6:30 ` Randolph Chung
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Mestdagh @ 2003-06-30  6:13 UTC (permalink / raw)
  To: parisc-linux

Hi all

I'm trying to enable an usb mouse/keyboard on a J5600. I followed the 
instructions described on the parisc-linux website but was unable to get them 
working. I suspect there are some special options to enable for USB but which 
ones? As this is a SMP system I cannot use the prebuild kernels. So if someone 
can outline the options to enable usb, that would be great ;)

Regards
Mark Mestdagh

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

* Re: [parisc-linux] Kernel compilation for J5600
  2003-06-30  6:13 [parisc-linux] Kernel compilation for J5600 Mark Mestdagh
@ 2003-06-30  6:30 ` Randolph Chung
  2003-06-30 16:50   ` Grant Grundler
  0 siblings, 1 reply; 10+ messages in thread
From: Randolph Chung @ 2003-06-30  6:30 UTC (permalink / raw)
  To: Mark Mestdagh; +Cc: parisc-linux

> I'm trying to enable an usb mouse/keyboard on a J5600. I followed the 
> instructions described on the parisc-linux website but was unable to get them 
> working. I suspect there are some special options to enable for USB but which 
> ones? As this is a SMP system I cannot use the prebuild kernels. So if someone 
> can outline the options to enable usb, that would be great ;)

Why can't you use the prebuilt kernels? kernel-image-2.4.20-32-smp
supports SMP (and the corresponding 64-bit version too...)

parisc machines use the OHCI driver, which is enabled by default in the
debian kernels.

CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_OHCI=y
CONFIG_USB_STORAGE=m
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

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

* Re: [parisc-linux] Kernel compilation for J5600
  2003-06-30  6:30 ` Randolph Chung
@ 2003-06-30 16:50   ` Grant Grundler
  2003-07-01  8:10     ` Mark Mestdagh
  0 siblings, 1 reply; 10+ messages in thread
From: Grant Grundler @ 2003-06-30 16:50 UTC (permalink / raw)
  To: Mark Mestdagh; +Cc: parisc-linux

On Sun, Jun 29, 2003 at 11:30:26PM -0700, Randolph Chung wrote:
> Why can't you use the prebuilt kernels? kernel-image-2.4.20-32-smp
> supports SMP (and the corresponding 64-bit version too...)

just a reminder...64-bit SMP is not stable yet.
32-bit SMP seems to work fine.

And I park a few "custom" kernels on ftp.parisc-linux.org/kernels/
which include the .config files used to build the kernels.
You want to look at c3000 kernels.

grant

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

* RE: [parisc-linux] Kernel compilation for J5600
  2003-06-30 16:50   ` Grant Grundler
@ 2003-07-01  8:10     ` Mark Mestdagh
  2003-07-01 13:21       ` Matthew Wilcox
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Mestdagh @ 2003-07-01  8:10 UTC (permalink / raw)
  To: parisc-linux

Grant & others

thanks already for the support. One little problem though is setting up the
CDROM. I followed the settings like the c3000 kernel but still I get a
problem while compiling:

ld: arch/parisc/kernel/kernel.o(.text.show_trace+0x58): fixing
R_PARISC_DPREL21L
drivers/ide/idedriver.o: In function `.L1588':
drivers/ide/idedriver.o(.text.probe_hwif+0xfc): undefined reference to
`local_irq_set'
drivers/ide/idedriver.o: In function `ide_wait_stat':
drivers/ide/idedriver.o(.text.ide_wait_stat+0xe0): undefined reference to
`local_irq_set'
drivers/ide/idedriver.o: In function `ide_config_drive_speed':
drivers/ide/idedriver.o(.text.ide_config_drive_speed+0x1c0): undefined
reference to `local_irq_set'
drivers/ide/idedriver.o: In function `taskfile_dump_status':
drivers/ide/idedriver.o(.text.taskfile_dump_status+0x40): undefined
reference to `local_irq_set'
drivers/ide/idedriver.o: In function `ide_dump_status':
drivers/ide/idedriver.o(.text.ide_dump_status+0x40): undefined reference to
`local_irq_set'
drivers/ide/idedriver.o(.text.ide_spin_wait_hwgroup+0x74): more undefined
references to `local_irq_set' follow
make: *** [vmlinux] Error 1

local_irq_set missing? ;) Hints & tips appriciated.

Thx
Mark


-----Original Message-----
From: parisc-linux-admin@lists.parisc-linux.org
[mailto:parisc-linux-admin@lists.parisc-linux.org]On Behalf Of Grant
Grundler
Sent: maandag 30 juni 2003 18:51
To: Mark Mestdagh
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Kernel compilation for J5600


On Sun, Jun 29, 2003 at 11:30:26PM -0700, Randolph Chung wrote:
> Why can't you use the prebuilt kernels? kernel-image-2.4.20-32-smp
> supports SMP (and the corresponding 64-bit version too...)

just a reminder...64-bit SMP is not stable yet.
32-bit SMP seems to work fine.

And I park a few "custom" kernels on ftp.parisc-linux.org/kernels/
which include the .config files used to build the kernels.
You want to look at c3000 kernels.

grant
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* Re: [parisc-linux] Kernel compilation for J5600
  2003-07-01  8:10     ` Mark Mestdagh
@ 2003-07-01 13:21       ` Matthew Wilcox
  2003-07-01 14:00         ` Mark Mestdagh
                           ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Matthew Wilcox @ 2003-07-01 13:21 UTC (permalink / raw)
  To: Mark Mestdagh; +Cc: parisc-linux

On Tue, Jul 01, 2003 at 10:10:24AM +0200, Mark Mestdagh wrote:
> Grant & others
> 
> thanks already for the support. One little problem though is setting up the
> CDROM. I followed the settings like the c3000 kernel but still I get a
> problem while compiling:
> 
> drivers/ide/idedriver.o(.text.probe_hwif+0xfc): undefined reference to
> `local_irq_set'

This is 2.4.21-pa1?

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

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

* RE: [parisc-linux] Kernel compilation for J5600
  2003-07-01 13:21       ` Matthew Wilcox
@ 2003-07-01 14:00         ` Mark Mestdagh
  2003-07-01 14:03         ` Joel Soete
  2003-07-04 10:01         ` [parisc-linux] Kernel compilation for B2000 Mark Mestdagh
  2 siblings, 0 replies; 10+ messages in thread
From: Mark Mestdagh @ 2003-07-01 14:00 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: parisc-linux

Hi Matthew

it was 2.4.21-pa0, but I cvs'ed to 2.4.21-pa1 and now it's fixed :)

Thanks

Mark

-----Original Message-----
From: willy@www.linux.org.uk [mailto:willy@www.linux.org.uk]On Behalf Of
Matthew Wilcox
Sent: dinsdag 1 juli 2003 15:22
To: Mark Mestdagh
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Kernel compilation for J5600


On Tue, Jul 01, 2003 at 10:10:24AM +0200, Mark Mestdagh wrote:
> Grant & others
>
> thanks already for the support. One little problem though is setting up
the
> CDROM. I followed the settings like the c3000 kernel but still I get a
> problem while compiling:
>
> drivers/ide/idedriver.o(.text.probe_hwif+0xfc): undefined reference to
> `local_irq_set'

This is 2.4.21-pa1?

--
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead
bodies.
Do you think I want to have an academic debate on this subject?" -- Robert
Fisk

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

* Re: [parisc-linux] Kernel compilation for J5600
  2003-07-01 13:21       ` Matthew Wilcox
  2003-07-01 14:00         ` Mark Mestdagh
@ 2003-07-01 14:03         ` Joel Soete
  2003-07-05  3:20           ` Grant Grundler
  2003-07-04 10:01         ` [parisc-linux] Kernel compilation for B2000 Mark Mestdagh
  2 siblings, 1 reply; 10+ messages in thread
From: Joel Soete @ 2003-07-01 14:03 UTC (permalink / raw)
  To: Matthew Wilcox, Mark Mestdagh; +Cc: parisc-linux

Hi all,
 
> > drivers/ide/idedriver.o(.text.probe_hwif+0xfc): undefined reference to
> > `local_irq_set'

> This is 2.4.21-pa1?

Hmm not yet and my patch to Grant is definitely incomplete (Sorry, my bad).

In fact I am hesitate:

For many other paltform we can found:
(in system_irqsave.h)
[...]
/* For spinlocks etc */
#define local_irq_save(x)  __save_and_cli(x)
#define local_irq_set(x)   __save_and_sti(x)

#define local_irq_restore(x) __restore_flags(x)
#define local_irq_disable() __cli()
[...]

OTC for parisc:
[...]
#define local_irq_save(x) \
	__asm__ __volatile__("rsm %1,%0" : "=r" (x) :"i" (PSW_I) : "memory" )
#define local_irq_restore(x) \
	__asm__ __volatile__("mtsm %0" : : "r" (x) : "memory" )

[...]

So can we here simply add:
#define local_irq_set(x)   __save_and_sti(x)

Or do we actualy need a specific local_irq_set(x)?

Thanks in advance for advise,
    Joel


---------------------------------
Tiscali ADSL: 19,50 euros/mois...abonnez-vous sur www.tiscali.be

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

* [parisc-linux] Kernel compilation for B2000
  2003-07-01 13:21       ` Matthew Wilcox
  2003-07-01 14:00         ` Mark Mestdagh
  2003-07-01 14:03         ` Joel Soete
@ 2003-07-04 10:01         ` Mark Mestdagh
  2003-07-04 13:56           ` Joel Soete
  2 siblings, 1 reply; 10+ messages in thread
From: Mark Mestdagh @ 2003-07-04 10:01 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: parisc-linux

Hi

Seems I have the same problem on a B2000 with the latest cvs'ed version
(2.4.21-pa1)

What am I doing wrong :s??

Regs
Mark


drivers/ide/idedriver.o: In function `init_irq':
drivers/ide/idedriver.o(.text.init_irq+0x44): undefined reference to
`__save_and_cli'
drivers/ide/idedriver.o: In function `ide_wait_stat':
drivers/ide/idedriver.o(.text.ide_wait_stat+0xe0): undefined reference to
`local_irq_set'
drivers/ide/idedriver.o: In function `ide_config_drive_speed':
drivers/ide/idedriver.o(.text.ide_config_drive_speed+0x1c0): undefined
reference to `local_irq_set'
drivers/ide/idedriver.o: In function `taskfile_dump_status':
drivers/ide/idedriver.o(.text.taskfile_dump_status+0x40): undefined
reference to `local_irq_set'
drivers/ide/idedriver.o: In function `ide_dump_status':
drivers/ide/idedriver.o(.text.ide_dump_status+0x40): undefined reference to
`local_irq_set'
drivers/ide/idedriver.o: In function `ide_spin_wait_hwgroup':
drivers/ide/idedriver.o(.text.ide_spin_wait_hwgroup+0x4c): undefined
reference to `local_irq_set'
drivers/ide/idedriver.o(.text.ide_cdrom_dump_status+0x38): more undefined
references to `local_irq_set' follow
make: *** [vmlinux] Error 1

-----Original Message-----
From: parisc-linux-admin@lists.parisc-linux.org
[mailto:parisc-linux-admin@lists.parisc-linux.org]On Behalf Of Matthew
Wilcox
Sent: dinsdag 1 juli 2003 15:22
To: Mark Mestdagh
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Kernel compilation for J5600


On Tue, Jul 01, 2003 at 10:10:24AM +0200, Mark Mestdagh wrote:
> Grant & others
>
> thanks already for the support. One little problem though is setting up
the
> CDROM. I followed the settings like the c3000 kernel but still I get a
> problem while compiling:
>
> drivers/ide/idedriver.o(.text.probe_hwif+0xfc): undefined reference to
> `local_irq_set'

This is 2.4.21-pa1?

--
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead
bodies.
Do you think I want to have an academic debate on this subject?" -- Robert
Fisk
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* RE: [parisc-linux] Kernel compilation for B2000
  2003-07-04 10:01         ` [parisc-linux] Kernel compilation for B2000 Mark Mestdagh
@ 2003-07-04 13:56           ` Joel Soete
  0 siblings, 0 replies; 10+ messages in thread
From: Joel Soete @ 2003-07-04 13:56 UTC (permalink / raw)
  To: Mark Mestdagh, Matthew Wilcox; +Cc: parisc-linux

Hi Mark,

> Seems I have the same problem on a B2000 with the latest cvs'ed version
> (2.4.21-pa1)

The problem is not with b2k but well with 2.4.21-pa1 which is refreshed very
recently. But I proposed a fix to Grant who would be able to ci soon.
In the mean time (if you do not need actualy ide support for cd-rom) you
can un-select this temporarely this from your config.

Now for 64bits kernel it works (b2k allows 32 & 64 bits kernels ;-) ).
But for 32bits otc you will need also to wait that Grant ci another patch
(or reverse pa1 patch to come back to pa0).

hth,
    Joel



------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003.
On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr 

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

* Re: [parisc-linux] Kernel compilation for J5600
  2003-07-01 14:03         ` Joel Soete
@ 2003-07-05  3:20           ` Grant Grundler
  0 siblings, 0 replies; 10+ messages in thread
From: Grant Grundler @ 2003-07-05  3:20 UTC (permalink / raw)
  To: Joel Soete; +Cc: parisc-linux

On Tue, Jul 01, 2003 at 04:03:27PM +0200, Joel Soete wrote:
> Or do we actualy need a specific local_irq_set(x)?

We do.
#define local_irq_save(x) \
        __asm__ __volatile__("rsm %1,%0" : "=r" (x) :"i" (PSW_I) : "memory" )
#define local_irq_set(x) \
	__asm__ __volatile__("ssm %1,%0" : "=r" (x) : "i" (PSW_I) : "memory" )

I'll add that as well in my next commit.
Still looking over some of your other changes.

thanks,
grant

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

end of thread, other threads:[~2003-07-05  3:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-30  6:13 [parisc-linux] Kernel compilation for J5600 Mark Mestdagh
2003-06-30  6:30 ` Randolph Chung
2003-06-30 16:50   ` Grant Grundler
2003-07-01  8:10     ` Mark Mestdagh
2003-07-01 13:21       ` Matthew Wilcox
2003-07-01 14:00         ` Mark Mestdagh
2003-07-01 14:03         ` Joel Soete
2003-07-05  3:20           ` Grant Grundler
2003-07-04 10:01         ` [parisc-linux] Kernel compilation for B2000 Mark Mestdagh
2003-07-04 13:56           ` Joel Soete

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