Upgrade trouble: pl12 --> pl13

Upgrade trouble: pl12 --> pl13

Post by Gregory K. Mai » Thu, 30 Dec 1993 12:13:06



Hello,

I am having trouble upgrading my Linux kernel from 0.99.pl12 to
0.99.pl13.  This upgrade will enable me to run XFree86-2.0 using
my (brand spanking new) Number 9 GXE L10 graphics board!

Alas, I cannot get past the "make dep" stage of the upgrade
following these steps:
1. Install full sources of linux-0.99.13.tar into /usr/src
2. Created the symlinks in the /usr/include/linux directory.
3. "make mrproper"
4. "make config"
5. "make dep"

Here's what "make dep" produces:
---------------------------------------------------------
touch tools/version.h
for i in init/*.c;do echo -n "init/";gcc -D__KERNEL__ -E -M $i;done > .depend~
for i in tools/*.c;do echo -n "tools/";gcc -D__KERNEL__ -E -M $i;done >> .depend~
for i in kernel mm fs net ipc ibcs lib; do (cd $i && make dep) || exit; done
gcc -D__KERNEL__ -E -M *.c > .depend
for i in chr_drv blk_drv FPU-emu; do (cd $i && make dep) || exit; done
gcc -D__KERNEL__ -E -M *.c > .depend
for i in sound; do (cd $i && make dep) || exit; done
gcc -D__KERNEL__ -E -M *.c > .depend
gcc -D__KERNEL__ -E -M *.c > .depend
In file included from loop.c:27:
blk.h:193: #error "unknown blk device"
In file included from sbpcd.c:175:
blk.h:193: #error "unknown blk device"
make[2]: *** [dep] Error 1
make[1]: *** [dep] Error 1
make: *** [dep] Error 1
----------------------------------------------------------------

The file loop.c is using NR_MAJOR 14, which is NOT defined in blk.h.
The file sbpcd.c is using NR_MAJOR 25, which is also NOT defined in blk.h.

Thanks in advance for any help!

Greg M

P.S. Here's my .config file, if that helps:
#
# Automatically generated make config: don't edit
#
#
# General setup
#
CONFIG_MATH_EMULATION = CONFIG_MATH_EMULATION
CONFIG_BLK_DEV_HD = CONFIG_BLK_DEV_HD
# CONFIG_BLK_DEV_XD is not set
CONFIG_INET = CONFIG_INET
# CONFIG_MAX_16M is not set
CONFIG_SYSVIPC = CONFIG_SYSVIPC
CONFIG_M486 = CONFIG_M486
#
# Program binary formats
#
# CONFIG_BINFMT_ELF is not set
#
# SCSI support
#
# CONFIG_SCSI is not set
#
# Network device support
#
# CONFIG_ETHERCARDS is not set
#
# CONFIG_CDU31A is not set
# CONFIG_MCD is not set
#
# Filesystems
#
CONFIG_MINIX_FS = CONFIG_MINIX_FS
# CONFIG_EXT_FS is not set
CONFIG_EXT2_FS = CONFIG_EXT2_FS
# CONFIG_XIA_FS is not set
CONFIG_MSDOS_FS = CONFIG_MSDOS_FS
CONFIG_PROC_FS = CONFIG_PROC_FS
# CONFIG_NFS_FS is not set
# CONFIG_ISO9660_FS is not set
#
# character devices
#
# CONFIG_KBD_META is not set
CONFIG_KBD_NUML = CONFIG_KBD_NUML
# CONFIG_BUSMOUSE is not set
# CONFIG_QUICKPORT_MOUSE is not set
# CONFIG_PSMOUSE is not set
# CONFIG_MS_BUSMOUSE is not set
# CONFIG_ATIXL_BUSMOUSE is not set
CONFIG_SELECTION = CONFIG_SELECTION
# CONFIG_TAPE_QIC02 is not set
#
# Sound
#
CONFIG_SOUND = CONFIG_SOUND
#
# Kernel hacking
#
# CONFIG_DEBUG_MALLOC is not set
# CONFIG_PROFILE is not set

 
 
 

Upgrade trouble: pl12 --> pl13

Post by Mario Cam » Sat, 01 Jan 1994 09:14:46



: Hello,
:
: I am having trouble upgrading my Linux kernel from 0.99.pl12 to
: 0.99.pl13.
:
: [ Make process deleted ]
:
: In file included from loop.c:27:
: blk.h:193: #error "unknown blk device"
: In file included from sbpcd.c:175:
: blk.h:193: #error "unknown blk device"
: ----------------------------------------------------------------
:
: The file loop.c is using NR_MAJOR 14, which is NOT defined in blk.h.
: The file sbpcd.c is using NR_MAJOR 25, which is also NOT defined in blk.h.

I had that same problem, I just edited blk.h and added the following:

(right before #elif (MAJOR_NR == 15)

#elif (MAJOR_NR == 14)
#define DEVICE_NAME "loop device"
#define DEVICE_REQUEST do_lo_request
#define DEVICE_NR(device) (MINOR(device))
#define DEVICE_ON(device)
#define DEVICE_OFF(device)

(and this before the #else)

#elif (MAJOR_NR == 25)
#define DEVICE_NAME "SB Pro CD-ROM"
#define DEVICE_REQUEST do_sbpcd_request
#define DEVICE_NR(device) (MINOR(device))
#define DEVICE_ON(device)
#define DEVICE_OFF(device)

That way I could get the kernel to compile. I haven't had any problems
since, but I don't have an SBPro in my Linux machine so I don't know if
this works correctly. Any of the kernel hackers out there got an idea?

Happy New Year,
--
Mario Camou / EDS Mexico Client-Server Integration Team
From Mexico City, the smog capital of the world
------------------------------------------------------------------------------
My opinions are only mine, mine, MINE!

 
 
 

1. pl12 and pl13 make depend problems * Not FAQ *

    Using MCC PL10+ and gcc 2.4.5 "make dep" fails on kernel ....
exit.c fork.c ldt.c sched.c
"macro 'set_ldt_desc' used with too many (3) args
make (1) *** (dep) Error 1
make leaving directory '/usr/src/linux/kernel'
               ****
  Used pl12 patched  and pl13 unpatched, also pl13 patched for ftape096
and Wine0.2.4 and 0.4.2.
Help please!
Regards
Sid ** G3VBV ** Amdahl (UK) **

2. Slackware Bootdisk w/ AIC7xxx driver...

3. pl12 and <Meta>-<Shift>-<Key>

4. RedHat FTP install still failed

5. Ethernet HOWTO reference to "pl12" and "pl13"

6. Installation Problems

7. Upgrade from SLS 1.02 -> pl12?

8. Printcap entry for Panasonic KX-2023

9. upgrade (pl13->14) and probs with man (groff)

10. trouble compiling pl12 --> linux/linkage.h (no such file)

11. Help upgrading 0.99pl9 to pl13 ----- Have I waited too long??

12. >>> System hangs after upgrading to kernel 2.0 <<<

13. Trouble with PL12 compile...