All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6] make the bcm1250 work
@ 2004-09-09 20:50 Peter Buckingham
  2004-09-09 20:56 ` Peter Buckingham
  2004-09-10  7:56 ` Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Buckingham @ 2004-09-09 20:50 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

Hi Ralf,

I have been playing with a bcm1250 from broadcom. These are patches I 
needed to get things to compile correctly. After applying the to patches 
above I can build fine.

thanks,

peter

Signed-off-by: Peter Buckingham <peter@pantasys.com>

[-- Attachment #2: p --]
[-- Type: text/plain, Size: 1431 bytes --]

Index: arch/mips/sibyte/sb1250/prom.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/sibyte/sb1250/prom.c,v
retrieving revision 1.9
diff -p -u -r1.9 prom.c
--- arch/mips/sibyte/sb1250/prom.c	28 Jan 2004 22:16:39 -0000	1.9
+++ arch/mips/sibyte/sb1250/prom.c	9 Sep 2004 18:42:13 -0000
@@ -29,6 +29,7 @@
 
 #ifdef CONFIG_EMBEDDED_RAMDISK
 /* These are symbols defined by the ramdisk linker script */
+extern unsigned long initrd_start, initrd_end;
 extern unsigned char __rd_start;
 extern unsigned char __rd_end;
 #endif
Index: arch/mips/sibyte/swarm/setup.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/sibyte/swarm/setup.c,v
retrieving revision 1.31
diff -p -u -r1.31 setup.c
--- arch/mips/sibyte/swarm/setup.c	26 Aug 2004 20:18:00 -0000	1.31
+++ arch/mips/sibyte/swarm/setup.c	9 Sep 2004 18:42:13 -0000
@@ -27,6 +27,7 @@
 #include <linux/bootmem.h>
 #include <linux/blkdev.h>
 #include <linux/init.h>
+#include <linux/tty.h>
 
 #include <asm/irq.h>
 #include <asm/io.h>
@@ -50,6 +51,11 @@ extern int m41t81_probe(void);
 extern int m41t81_set_time(unsigned long);
 extern unsigned long m41t81_get_time(void);
 
+#ifdef CONFIG_BLK_DEV_INITRD
+extern unsigned long initrd_start, initrd_end;
+extern void * __rd_start, * __rd_end;
+#endif
+
 const char *get_system_type(void)
 {
 	return "SiByte " SIBYTE_BOARD_NAME;

[-- Attachment #3: p1 --]
[-- Type: text/plain, Size: 488 bytes --]

Index: arch/mips/pci/pci-sb1250.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/pci/pci-sb1250.c,v
retrieving revision 1.9
diff -p -u -r1.9 pci-sb1250.c
--- arch/mips/pci/pci-sb1250.c	26 Aug 2004 20:18:00 -0000	1.9
+++ arch/mips/pci/pci-sb1250.c	9 Sep 2004 18:45:11 -0000
@@ -37,6 +37,7 @@
 #include <linux/init.h>
 #include <linux/mm.h>
 #include <linux/console.h>
+#include <linux/tty.h> //pmb 20040824
 
 #include <asm/io.h>
 

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

* Re: [PATCH 2.6] make the bcm1250 work
  2004-09-09 20:50 [PATCH 2.6] make the bcm1250 work Peter Buckingham
@ 2004-09-09 20:56 ` Peter Buckingham
  2004-09-10  7:56 ` Christoph Hellwig
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Buckingham @ 2004-09-09 20:56 UTC (permalink / raw)
  To: Peter Buckingham; +Cc: Ralf Baechle, linux-mips

[-- Attachment #1: Type: text/plain, Size: 159 bytes --]

Hi Ralf,

the second patch has some cruft in it. could you apply the
following instead.

thanks,

peter

Signed-off-by: Peter Buckingham <peter@pantasys.com>


[-- Attachment #2: p1 --]
[-- Type: text/plain, Size: 473 bytes --]

Index: arch/mips/pci/pci-sb1250.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/pci/pci-sb1250.c,v
retrieving revision 1.9
diff -p -u -r1.9 pci-sb1250.c
--- arch/mips/pci/pci-sb1250.c	26 Aug 2004 20:18:00 -0000	1.9
+++ arch/mips/pci/pci-sb1250.c	9 Sep 2004 20:55:20 -0000
@@ -37,6 +37,7 @@
 #include <linux/init.h>
 #include <linux/mm.h>
 #include <linux/console.h>
+#include <linux/tty.h>
 
 #include <asm/io.h>
 

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

* Re: [PATCH 2.6] make the bcm1250 work
  2004-09-09 20:50 [PATCH 2.6] make the bcm1250 work Peter Buckingham
  2004-09-09 20:56 ` Peter Buckingham
@ 2004-09-10  7:56 ` Christoph Hellwig
  2004-09-10 16:48   ` Peter Buckingham
  1 sibling, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2004-09-10  7:56 UTC (permalink / raw)
  To: Peter Buckingham; +Cc: Ralf Baechle, linux-mips

>  #ifdef CONFIG_EMBEDDED_RAMDISK
>  /* These are symbols defined by the ramdisk linker script */
> +extern unsigned long initrd_start, initrd_end;
>  extern unsigned char __rd_start;
>  extern unsigned char __rd_end;

Please use the appropinquate header for these.

> +#ifdef CONFIG_BLK_DEV_INITRD
> +extern unsigned long initrd_start, initrd_end;
> +extern void * __rd_start, * __rd_end;
> +#endif

dito.

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

* Re: [PATCH 2.6] make the bcm1250 work
  2004-09-10  7:56 ` Christoph Hellwig
@ 2004-09-10 16:48   ` Peter Buckingham
  2004-09-10 17:52     ` Ralf Baechle
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Buckingham @ 2004-09-10 16:48 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Ralf Baechle, linux-mips

Hi Christoph,

Christoph Hellwig wrote:
>> #ifdef CONFIG_EMBEDDED_RAMDISK
>> /* These are symbols defined by the ramdisk linker script */
>>+extern unsigned long initrd_start, initrd_end;
>> extern unsigned char __rd_start;
>> extern unsigned char __rd_end;
> 
> 
> Please use the appropinquate header for these.

I'd love to use the appropriate header for these, but can't find one. 
cscope doesn't seem to show that these are defined usefully in a header 
file.

Can you point me to where these are defined?

thanks,

peter

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

* Re: [PATCH 2.6] make the bcm1250 work
  2004-09-10 16:48   ` Peter Buckingham
@ 2004-09-10 17:52     ` Ralf Baechle
  2004-09-10 18:04       ` Peter Buckingham
  0 siblings, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2004-09-10 17:52 UTC (permalink / raw)
  To: Peter Buckingham; +Cc: Christoph Hellwig, linux-mips

On Fri, Sep 10, 2004 at 09:48:22AM -0700, Peter Buckingham wrote:

> >>/* These are symbols defined by the ramdisk linker script */
> >>+extern unsigned long initrd_start, initrd_end;
> >>extern unsigned char __rd_start;
> >>extern unsigned char __rd_end;
> >
> >
> >Please use the appropinquate header for these.
> 
> I'd love to use the appropriate header for these, but can't find one. 
> cscope doesn't seem to show that these are defined usefully in a header 
> file.

Winners use grep(1) ;-)

> Can you point me to where these are defined?

Include/linux/initrd.h.

  Ralf

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

* Re: [PATCH 2.6] make the bcm1250 work
  2004-09-10 17:52     ` Ralf Baechle
@ 2004-09-10 18:04       ` Peter Buckingham
  2004-09-10 18:15         ` David Daney
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Buckingham @ 2004-09-10 18:04 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Christoph Hellwig, linux-mips

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

Ralf Baechle wrote:
> Winners use grep(1) ;-)

guess the old tools still work the best ;-)

> Include/linux/initrd.h.

okay, i've attached a new version of the patch. just a few questions. 
would it make sense to lift __rd_start, __rd_end into initrd.h? also 
would it make sense to add:

#ifdef __INITRD_H

etc stuff to the initrd.h?

peter

[-- Attachment #2: p --]
[-- Type: text/plain, Size: 1788 bytes --]

Index: arch/mips/pci/pci-sb1250.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/pci/pci-sb1250.c,v
retrieving revision 1.9
diff -u -r1.9 pci-sb1250.c
--- arch/mips/pci/pci-sb1250.c	26 Aug 2004 20:18:00 -0000	1.9
+++ arch/mips/pci/pci-sb1250.c	10 Sep 2004 18:01:29 -0000
@@ -37,6 +37,7 @@
 #include <linux/init.h>
 #include <linux/mm.h>
 #include <linux/console.h>
+#include <linux/tty.h>
 
 #include <asm/io.h>
 
Index: arch/mips/sibyte/sb1250/prom.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/sibyte/sb1250/prom.c,v
retrieving revision 1.9
diff -u -r1.9 prom.c
--- arch/mips/sibyte/sb1250/prom.c	28 Jan 2004 22:16:39 -0000	1.9
+++ arch/mips/sibyte/sb1250/prom.c	10 Sep 2004 18:01:29 -0000
@@ -23,6 +23,7 @@
 #include <linux/blkdev.h>
 #include <linux/bootmem.h>
 #include <linux/smp.h>
+#include <linux/initrd.h>
 
 #include <asm/bootinfo.h>
 #include <asm/reboot.h>
Index: arch/mips/sibyte/swarm/setup.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/sibyte/swarm/setup.c,v
retrieving revision 1.31
diff -u -r1.31 setup.c
--- arch/mips/sibyte/swarm/setup.c	26 Aug 2004 20:18:00 -0000	1.31
+++ arch/mips/sibyte/swarm/setup.c	10 Sep 2004 18:01:29 -0000
@@ -27,6 +27,8 @@
 #include <linux/bootmem.h>
 #include <linux/blkdev.h>
 #include <linux/init.h>
+#include <linux/tty.h>
+#include <linux/initrd.h>
 
 #include <asm/irq.h>
 #include <asm/io.h>
@@ -50,6 +52,10 @@
 extern int m41t81_set_time(unsigned long);
 extern unsigned long m41t81_get_time(void);
 
+#ifdef CONFIG_BLK_DEV_INITRD
+extern void * __rd_start, * __rd_end;
+#endif
+
 const char *get_system_type(void)
 {
 	return "SiByte " SIBYTE_BOARD_NAME;

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

* Re: [PATCH 2.6] make the bcm1250 work
  2004-09-10 18:04       ` Peter Buckingham
@ 2004-09-10 18:15         ` David Daney
  0 siblings, 0 replies; 7+ messages in thread
From: David Daney @ 2004-09-10 18:15 UTC (permalink / raw)
  To: Peter Buckingham; +Cc: Ralf Baechle, Christoph Hellwig, linux-mips

Peter Buckingham wrote:
> Ralf Baechle wrote:
> 
>>Winners use grep(1) ;-)
> 
> 
> guess the old tools still work the best ;-)
> 
> 
>>Include/linux/initrd.h.
> 
> 
> okay, i've attached a new version of the patch. just a few questions. 
> would it make sense to lift __rd_start, __rd_end into initrd.h? also 
> would it make sense to add:
> 
Those are architecture dependent, and must be coordinated with the
linker script.  They probably should not be in linux/initrd.h.

David Daney.

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

end of thread, other threads:[~2004-09-10 18:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 20:50 [PATCH 2.6] make the bcm1250 work Peter Buckingham
2004-09-09 20:56 ` Peter Buckingham
2004-09-10  7:56 ` Christoph Hellwig
2004-09-10 16:48   ` Peter Buckingham
2004-09-10 17:52     ` Ralf Baechle
2004-09-10 18:04       ` Peter Buckingham
2004-09-10 18:15         ` David Daney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.