hello dear list,

I tried to compile a kernel of my own (2.2.13), and it crashed.
What I did:

make xconfig (I read every help when the option was unclear)

make dep

make clean

make bzImage

the end of the output message says error 2 (see attachement). I'm using
mandrake 6.1 on a K6-2 350 (used Pentium as proc class), with 2.2.13 and
gcc 2.95.1. (dmesg in attachement too).

Where am I wrong? TIA

Charlie
make -C  arch/i386/lib
make[1]: Entering directory `/usr/src/linux/arch/i386/lib'
make all_targets
make[2]: Entering directory `/usr/src/linux/arch/i386/lib'
gcc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__  -traditional -c checksum.S 
-o checksum.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586   -c -o old-checksum.o 
old-checksum.c
gcc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__  -traditional -c semaphore.S 
-o semaphore.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586   -c -o delay.o delay.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586   -c -o usercopy.o 
usercopy.c
gcc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__  -traditional -c getuser.S -o 
getuser.o
gcc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__  -traditional -c putuser.S -o 
putuser.o
rm -f lib.a
ar  rcs lib.a  checksum.o old-checksum.o semaphore.o delay.o usercopy.o getuser.o 
putuser.o
make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
gcc -E -C -P -I/usr/src/linux/include -imacros 
/usr/src/linux/include/asm-i386/page_offset.h -Ui386 arch/i386/vmlinux.lds.S 
>arch/i386/vmlinux.lds
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext 
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o 
ipc/ipc.o \
        fs/filesystems.a \
        net/network.a \
        drivers/block/block.a drivers/char/char.a drivers/misc/misc.a 
drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a drivers/sound/sound.a 
drivers/pci/pci.a drivers/pnp/pnp.a drivers/video/video.a \
        /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a 
/usr/src/linux/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aU] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' 
| sort > System.map
make[1]: Entering directory `/usr/src/linux/arch/i386/boot'
gcc -D__KERNEL__ -I/usr/src/linux/include -E -D__BIG_KERNEL__ -traditional 
-DSVGA_MODE=NORMAL_VGA  bootsect.S -o bbootsect.s
as86 -0 -a -o bbootsect.o bbootsect.s
make[1]: as86: Command not found
make[1]: *** [bbootsect.o] Error 127
make[1]: Leaving directory `/usr/src/linux/arch/i386/boot'
make: *** [bzImage] Error 2         
[root@Neo linux]# ls /usr/src/linux/arch/i386/boot/
Makefile  bbootsect.s  bootsect.S  compressed  install.sh  setup.S  tools  video.S    

[root@Neo /root]# dmesg

Linux version 2.2.13-7mdk ([EMAIL PROTECTED]) (gcc version 2.95.1 19990816 
(release)) #1 Wed Sep 15 18:02:18 CEST 1999
Detected 350791872 Hz processor.
Console: colour VGA+ 80x50
Calibrating delay loop... 699.60 BogoMIPS
Memory: 63060k/65472k available (1044k kernel code, 416k reserved, 892k data, 60k init)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: AMD AMD-K6(tm) 3D processor stepping 0c
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.35a (19990819) Richard Gooch ([EMAIL PROTECTED])
PCI: PCI BIOS revision 2.10 entry at 0xf0720
PCI: Using configuration type 1
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
Initializing RT netlink socket
Starting kswapd v 1.5 
Detected PS/2 Mouse Port.
Serial driver version 4.27 with MANY_PORTS MULTIPORT SHARE_IRQ enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.9)
Real Time Clock Driver v1.09
RAM disk driver initialized:  16 RAM disks of 4096K size
PCI_IDE: unknown IDE controller on PCI bus 00 device 78, VID=10b9, DID=5229
PCI_IDE: not 100% native mode: will probe irqs later
PCI_IDE: simplex device:  DMA disabled
ide0: PCI_IDE Bus-Master DMA disabled (BIOS)
PCI_IDE: simplex device:  DMA disabled
ide1: PCI_IDE Bus-Master DMA disabled (BIOS)
hda: IBM-DJNA-371350, ATA DISK drive
hdb: WDC AC26400B, ATA DISK drive
hdc: SAMSUNG SHD-3122A (APOLLO), ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: IBM-DJNA-371350, 12949MB w/1966kB Cache, CHS=1650/255/63
hdb: WDC AC26400B, 6149MB w/512kB Cache, CHS=784/255/63
hdc: SAMSUNG SHD-3122A (APOLLO), 240MB w/64kB Cache, CHS=937/15/35
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md driver 0.36.6 MAX_MD_DEV=4, MAX_REAL=8
scsi : 0 hosts.
scsi : detected total.
Partition check:
 hda: hda1 hda2 < hda5 hda6 hda7 > hda3
 hdb: hdb1 hdb2 hdb4
 hdc: hdc1
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 60k freed
Adding Swap: 104384k swap-space (priority -1)
es1371: version v0.13 time 18:19:49 Sep 15 1999
es1371: found adapter at io 0xb400 irq 5
es1371: features: joystick 0x0
es1371: codec vendor TRA revision 3
es1371: codec features none
es1371: stereo enhancement: no 3D stereo enhancement
VFS: Disk change detected on device fd(2,0)

Reply via email to