* redwood-5 compile fixes for linuxppc-2.5
@ 2003-06-13 12:10 Felix von Leitner
2003-06-13 16:31 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Felix von Leitner @ 2003-06-13 12:10 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 185 bytes --]
Here is a small diff that makes the kernel compile for me. Can't say
whether it works, but at least it compiles ;-)
If anyone is working with such a board, please contact me!
Felix
[-- Attachment #2: ppc-diff --]
[-- Type: text/plain, Size: 3011 bytes --]
--- linuxppc-2.5/drivers/net/Kconfig 2003-06-12 15:22:51.000000000 +0200
+++ linuxppc-2.5-fefe/drivers/net/Kconfig 2003-06-13 10:34:59.000000000 +0200
@@ -868,6 +868,25 @@
module, say M here and read <file:Documentation/modules.txt> as well
as <file:Documentation/networking/net-modules.txt>.
+config SMC91111
+ tristate "SMC 91111 support"
+
+config SMC91111_ADVANCED
+ bool " Advanced configuration options for SMC91111"
+ depends on SMC91111
+
+config SMC91111_BYTE_SWAP
+ bool " Byte swap device accesses"
+ depends on SMC91111
+
+config SMC91111_USE_8_BIT
+ bool " Allow 8 bit device accesses"
+ depends on SMC91111
+
+config SMC91111_USE_32_BIT
+ bool " Allow 32 bit device accesses"
+ depends on SMC91111
+
config NET_VENDOR_RACAL
bool "Racal-Interlan (Micom) NI cards"
depends on NET_ETHERNET && ISA
--- linuxppc-2.5/drivers/net/Makefile 2003-06-12 15:21:54.000000000 +0200
+++ linuxppc-2.5-fefe/drivers/net/Makefile 2003-06-13 10:35:18.000000000 +0200
@@ -76,6 +76,7 @@
obj-$(CONFIG_SK_G16) += sk_g16.o
obj-$(CONFIG_HP100) += hp100.o
obj-$(CONFIG_SMC9194) += smc9194.o
+obj-$(CONFIG_SMC91111) += smc91111.o
obj-$(CONFIG_FEC) += fec.o
obj-$(CONFIG_68360_ENET) += 68360enet.o
obj-$(CONFIG_ARM_ETHERH) += 8390.o
--- linuxppc-2.5/include/linux/pci.h 2003-06-12 15:22:13.000000000 +0200
+++ linuxppc-2.5-fefe/include/linux/pci.h 2003-06-13 10:56:42.000000000 +0200
@@ -806,9 +806,11 @@
* configuration space.
*/
+#ifdef CONFIG_PCI
#ifndef CONFIG_PCI_DOMAINS
static inline int pci_domain_nr(struct pci_bus *bus) { return 0; }
#endif
+#endif
#endif /* __KERNEL__ */
#endif /* LINUX_PCI_H */
--- linuxppc-2.5/arch/ppc/kernel/ppc_ksyms.c 2003-06-12 15:22:53.000000000 +0200
+++ linuxppc-2.5-fefe/arch/ppc/kernel/ppc_ksyms.c 2003-06-13 11:10:07.000000000 +0200
@@ -273,8 +273,10 @@
#ifdef CONFIG_NVRAM
EXPORT_SYMBOL(nvram_read_byte);
EXPORT_SYMBOL(nvram_write_byte);
+#ifdef CONFIG_PMAC
EXPORT_SYMBOL(pmac_xpram_read);
EXPORT_SYMBOL(pmac_xpram_write);
+#endif
#endif /* CONFIG_NVRAM */
EXPORT_SYMBOL(to_tm);
--- linuxppc-2.5/arch/ppc/kernel/misc.S 2003-06-12 15:22:54.000000000 +0200
+++ linuxppc-2.5-fefe/arch/ppc/kernel/misc.S 2003-06-13 11:14:36.000000000 +0200
@@ -1324,9 +1324,15 @@
.long sys_stat64 /* 195 */
.long sys_lstat64
.long sys_fstat64
+#ifdef CONFIG_PCI
.long sys_pciconfig_read
.long sys_pciconfig_write
.long sys_pciconfig_iobase /* 200 */
+#else
+ .long sys_ni_syscall
+ .long sys_ni_syscall
+ .long sys_ni_syscall
+#endif
.long sys_ni_syscall /* 201 - reserved - MacOnLinux - new */
.long sys_getdents64
.long sys_pivot_root
--- linuxppc-2.5/arch/ppc/boot/simple/misc-embedded.c 2003-06-12 15:21:49.000000000 +0200
+++ linuxppc-2.5-fefe/arch/ppc/boot/simple/misc-embedded.c 2003-06-13 11:16:37.000000000 +0200
@@ -262,7 +262,9 @@
rec = (struct bi_record *)((unsigned long)rec + rec->size);
}
puts("Now booting the kernel\n");
+#if 0
serial_close(com_port);
+#endif
return (unsigned long)hold_residual;
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: redwood-5 compile fixes for linuxppc-2.5
2003-06-13 12:10 redwood-5 compile fixes for linuxppc-2.5 Felix von Leitner
@ 2003-06-13 16:31 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2003-06-13 16:31 UTC (permalink / raw)
To: Felix von Leitner; +Cc: linuxppc-dev
On Fri, Jun 13, 2003 at 02:10:06PM +0200, Felix von Leitner wrote:
> Here is a small diff that makes the kernel compile for me. Can't say
> whether it works, but at least it compiles ;-)
That's probably not a good idea. Loudly broken > Silently broken.
And:
> --- linuxppc-2.5/drivers/net/Kconfig 2003-06-12 15:22:51.000000000 +0200
> +++ linuxppc-2.5-fefe/drivers/net/Kconfig 2003-06-13 10:34:59.000000000 +0200
[snip]
> --- linuxppc-2.5/drivers/net/Makefile 2003-06-12 15:21:54.000000000 +0200
> +++ linuxppc-2.5-fefe/drivers/net/Makefile 2003-06-13 10:35:18.000000000 +0200
[snip]
Looks alright, but I've seen / heard rumblings of a better net driver
for that family of chipsets, I think...
> --- linuxppc-2.5/include/linux/pci.h 2003-06-12 15:22:13.000000000 +0200
> +++ linuxppc-2.5-fefe/include/linux/pci.h 2003-06-13 10:56:42.000000000 +0200
> @@ -806,9 +806,11 @@
> * configuration space.
> */
>
> +#ifdef CONFIG_PCI
> #ifndef CONFIG_PCI_DOMAINS
> static inline int pci_domain_nr(struct pci_bus *bus) { return 0; }
> #endif
> +#endif
>
> #endif /* __KERNEL__ */
> #endif /* LINUX_PCI_H */
Er, why is this needed?
> --- linuxppc-2.5/arch/ppc/kernel/ppc_ksyms.c 2003-06-12 15:22:53.000000000 +0200
> +++ linuxppc-2.5-fefe/arch/ppc/kernel/ppc_ksyms.c 2003-06-13 11:10:07.000000000 +0200
> @@ -273,8 +273,10 @@
> #ifdef CONFIG_NVRAM
> EXPORT_SYMBOL(nvram_read_byte);
> EXPORT_SYMBOL(nvram_write_byte);
> +#ifdef CONFIG_PMAC
> EXPORT_SYMBOL(pmac_xpram_read);
> EXPORT_SYMBOL(pmac_xpram_write);
> +#endif
> #endif /* CONFIG_NVRAM */
> EXPORT_SYMBOL(to_tm);
It's CONFIG_PPC_PMAC, and I'll look into this one, thanks.
> --- linuxppc-2.5/arch/ppc/kernel/misc.S 2003-06-12 15:22:54.000000000 +0200
> +++ linuxppc-2.5-fefe/arch/ppc/kernel/misc.S 2003-06-13 11:14:36.000000000 +0200
> @@ -1324,9 +1324,15 @@
> .long sys_stat64 /* 195 */
> .long sys_lstat64
> .long sys_fstat64
> +#ifdef CONFIG_PCI
> .long sys_pciconfig_read
> .long sys_pciconfig_write
> .long sys_pciconfig_iobase /* 200 */
> +#else
> + .long sys_ni_syscall
> + .long sys_ni_syscall
> + .long sys_ni_syscall
> +#endif
> .long sys_ni_syscall /* 201 - reserved - MacOnLinux - new */
> .long sys_getdents64
> .long sys_pivot_root
There should be a conditional_syscall thingy to take care of this..
> --- linuxppc-2.5/arch/ppc/boot/simple/misc-embedded.c 2003-06-12 15:21:49.000000000 +0200
> +++ linuxppc-2.5-fefe/arch/ppc/boot/simple/misc-embedded.c 2003-06-13 11:16:37.000000000 +0200
> @@ -262,7 +262,9 @@
> rec = (struct bi_record *)((unsigned long)rec + rec->size);
> }
> puts("Now booting the kernel\n");
> +#if 0
> serial_close(com_port);
> +#endif
>
> return (unsigned long)hold_residual;
> }
This shouldn't be needed either.
--
Tom Rini
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-13 16:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-13 12:10 redwood-5 compile fixes for linuxppc-2.5 Felix von Leitner
2003-06-13 16:31 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).