[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#721191: linux: patch for parisc/hppa architecture



Package: linux
Version: 3.10
Severity: wishlist
Tags: patch

Dear Debian kernel maintainers,

could you please apply the attached trivial patch, which enables support for C8000 PARISC workstation with your latest 3.10 (and higher) unstable kernel.

Basically this patch just adds some more Linux kernel config options for the built-in SCSI- (FUSION_SPI), IDE- (SIIMAGE), NIC- (Intel E1000) and graphics card (ATI Radeon FireGL x1/x3). Without those options, the built kernel will not boot on this workstation, since the necessary drivers are not included in the debian kernel package.

The C8000 workstation only supports 64bit Linux kernels, which is why I only modified the config-parisc64 and config-parisc64-smp files.

In addition, I've switched the "defines" file so that on parisc now the gcc-4.7 compiler will be used. All your other arches already use the gcc-4.7 compiler (with exception of m68k?), so this should be fine for you as well (I hope). 

I've successfully built and bootstrapped all kernels myself on various machines (including C8000, C3000 and 715/64[32bit]).

It would be nice, if you could apply this patch to your linux source code tree.

In the file "debian/installer/hppa/modules/hppa/pata-modules" I added an entry for the "siimage" module (for the IDE CDROM). Maybe it would be better, if this entry could be moved to the generic "pata-modules" file instead? But I leave this decision up to you...

Thanks a lot in advance,
Helge Deller
(PARISC (upstream) Linux kernel maintainer).


PS: PARISC debian "unstable" packages are *NOT* available on http://www.debian-ports.org/, instead we are currently maintaining our packages at http://ftp.parisc-linux.org/debian-ports/ where we currently host more than 8600 up-to-date debian unstable packages.

PPS: A switch to gcc-4.8 should be possible soon as well for the parisc kernel.... we are working on that at this moment....

PPPS: CONFIG_MLONGCALLS=y is necessary since the built kernel otherwise gets too big so that jumps can't be reached.
diff -up ./debian/config/hppa/config.parisc64-smp.org ./debian/config/hppa/config.parisc64-smp
--- ./debian/config/hppa/config.parisc64-smp.org	2013-05-04 04:44:45.000000000 +0200
+++ ./debian/config/hppa/config.parisc64-smp	2013-08-26 22:50:12.000000000 +0200
@@ -8,6 +8,7 @@ CONFIG_PA8X00=y
 CONFIG_64BIT=y
 CONFIG_SMP=y
 CONFIG_NR_CPUS=8
+CONFIG_MLONGCALLS=y
 
 ##
 ## file: mm/Kconfig
@@ -16,3 +17,24 @@ CONFIG_NR_CPUS=8
 # CONFIG_FLATMEM_MANUAL is not set
 ## end choice
 
+# For the IDE CDROM in C8000 workstation
+CONFIG_IDE=m
+CONFIG_BLK_DEV_SIIMAGE=m
+
+# For the built-in SCSI controller in C8000 workstation
+CONFIG_FUSION=y
+CONFIG_FUSION_SPI=m
+
+# Built-in NIC in C8000 workstation
+CONFIG_E1000=m
+
+# and for ATI FireGL DRM in C8000 workstation
+CONFIG_DRM_RADEON=m
+CONFIG_AGP=y
+CONFIG_AGP_PARISC=y
+CONFIG_VGA_ARB=y
+CONFIG_VGA_ARB_MAX_GPUS=16
+CONFIG_DRM=y
+CONFIG_DRM_KMS_HELPER=y
+CONFIG_DRM_TTM=y
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
diff -up ./debian/config/hppa/config.parisc64.org ./debian/config/hppa/config.parisc64
--- ./debian/config/hppa/config.parisc64.org	2013-05-30 04:45:35.000000000 +0200
+++ ./debian/config/hppa/config.parisc64	2013-08-26 22:50:09.000000000 +0200
@@ -19,3 +19,24 @@ CONFIG_64BIT=y
 # CONFIG_FLATMEM_MANUAL is not set
 ## end choice
 
+# For the IDE CDROM in C8000 workstation
+CONFIG_IDE=m
+CONFIG_BLK_DEV_SIIMAGE=m
+
+# For the built-in SCSI controller in C8000 workstation
+CONFIG_FUSION=y
+CONFIG_FUSION_SPI=m
+
+# Built-in NIC in C8000 workstation
+CONFIG_E1000=m
+
+# and for ATI FireGL DRM in C8000 workstation
+CONFIG_DRM_RADEON=m
+CONFIG_AGP=y
+CONFIG_AGP_PARISC=y
+CONFIG_VGA_ARB=y
+CONFIG_VGA_ARB_MAX_GPUS=16
+CONFIG_DRM=y
+CONFIG_DRM_KMS_HELPER=y
+CONFIG_DRM_TTM=y
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
diff -up ./debian/config/hppa/defines.org ./debian/config/hppa/defines
--- ./debian/config/hppa/defines.org	2013-07-30 00:25:26.000000000 +0200
+++ ./debian/config/hppa/defines	2013-08-27 16:57:01.000000000 +0200
@@ -5,7 +5,7 @@ flavours:
  parisc64
  parisc64-smp
 kernel-arch: parisc
-compiler: gcc-4.4
+compiler: gcc-4.7
 
 [image]
 suggests: palo
@@ -31,5 +31,5 @@ override-host-type: hppa64-linux-gnu
 hardware: multiprocessor 64-bit PA-RISC
 
 [relations]
-gcc-4.4: gcc-4.4, binutils-hppa64, gcc-4.4-hppa64
+gcc-4.7: gcc-4.7, binutils-hppa64, gcc-4.7-hppa64
 
diff -up ./debian/installer/hppa/modules/hppa/pata-modules.org ./debian/installer/hppa/modules/hppa/pata-modules
--- ./debian/installer/hppa/modules/hppa/pata-modules.org	2013-05-19 01:36:34.000000000 +0200
+++ ./debian/installer/hppa/modules/hppa/pata-modules	2013-08-26 22:13:33.000000000 +0200
@@ -1,2 +1,3 @@
+siimage ?
 #include <pata-modules>
 
diff -up ./debian/installer/hppa/modules/hppa/scsi-modules.org ./debian/installer/hppa/modules/hppa/scsi-modules
--- ./debian/installer/hppa/modules/hppa/scsi-modules.org	2013-05-19 01:36:34.000000000 +0200
+++ ./debian/installer/hppa/modules/hppa/scsi-modules	2013-08-27 21:51:42.000000000 +0200
@@ -10,3 +10,9 @@ megaraid
 qlogicfas408
 mptbase
 mptspi
+mptctl
+mptbase
+mptscsih
+mptfc
+mptsas
+

Reply to: