RE: Kernel Compilation Trouble

2002-10-09 Thread Bruce Best (CRO)
Now you've got a feel for it, try installing "kernel-packge" and use
make-kpkg to compile your kernel. This makes a custom .deb file containing
your custom kernel and modules, which can be installed using dpkg, and saves
you having to manually do much of the work. 

Bruce

>-Original Message-
>From: Anders E. Andersen [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 08, 2002 6:32 PM
>To: debian-laptop
>Subject: Re: Kernel Compilation Trouble
>
>
>Hey All!
>
>I just succesfully compiled and ran my first linux kernel.
>
>



RE: Kernel Compilation Trouble

2002-10-09 Thread Bruce Best (CRO)

Now you've got a feel for it, try installing "kernel-packge" and use
make-kpkg to compile your kernel. This makes a custom .deb file containing
your custom kernel and modules, which can be installed using dpkg, and saves
you having to manually do much of the work. 

Bruce

>-Original Message-
>From: Anders E. Andersen [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, October 08, 2002 6:32 PM
>To: debian-laptop
>Subject: Re: Kernel Compilation Trouble
>
>
>Hey All!
>
>I just succesfully compiled and ran my first linux kernel.
>
>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

Hey All!

I just succesfully compiled and ran my first linux kernel.

Thanks goes to Vincent and yoann!

Both your clues helped tremendously.

Kind Regards

Anders E. Andersen



Re: Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

Hey All!

I just succesfully compiled and ran my first linux kernel.

Thanks goes to Vincent and yoann!

Both your clues helped tremendously.

Kind Regards

Anders E. Andersen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Kernel Compilation Trouble

2002-10-08 Thread yoann

Hi all,

I had a similary problem, I have a laptop Gericom with a chip SiS630
so if it's not done, you have to download the drivers for you video card 
from http://www.winischhofer.net/linuxsis630.shtml and follow the 
instruction :


for the kernel you have to download the file sisfb_srs_160209-1.tar.gz ( 
http://www.webit.at/~twinny/sis/sisfb_src_160902-1.tar.gz ) but check on 
the web site if it's the right file.


and after :

~/sisfb_src_160902-1 $ cat README
Installation instructions:

Copy all *.c and *.h files EXCEPT sisfb.h over the existing ones
in [kernel-tree]/drivers/video/sis.

Copy sisfb.h to /usr/src/linux/include/linux and over
eventual other copies of this file.

If you experience compile errors, you have missed sisfb.h.

Further, please use my Makefile (or patch your's accordingly) otherwise
the acceleration code will not be linked (which results in errors, of 
course)


For kernel 2.5.34 and later:

1) You need to change the Makefile in /drivers/video/ in line 90 like this:
obj-$(CONFIG_FB_SIS)  += sis/ cfbimgblt.o
2) For hardware accelerated 2D, set the kernel option 
"CONFIG_FBCON_ACCEL" ("Hardware acceleration" in menuconfig)


/Thomas

in fact, me, I forgot to copy the Makefile from the source 
sisfb_src_160902.tar.gz in [kernel-tree]/drivers/video/sis

so if I had just copy the makefile and everythin was ok

for more information, I give you an advice to follow what is write on 
the web site


yoann

Anders E. Andersen a écrit:

I was trying to compile Kernel 2.4.19 (from sid/unstable) on my ASUS 
A1 laptop (Sis chipset) but in the end I got this:


gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   
-nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include 
-DKBUILD_BASENAME=strstr  -c -o strstr.o strstr.c

rm -f lib.a
ar  rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o 
memcpy.o strstr.o

make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
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 init/do_mounts.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 \
 drivers/char/char.o drivers/block/block.o drivers/misc/misc.o 
drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o 
drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o 
drivers/sound/sounddrivers.o drivers/pci/driver.o 
drivers/pcmcia/pcmcia.o drivers/pnp/pnp.o drivers/video/video.o \

net/network.o \
/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
drivers/char/drm/drm.o: In function `sis_fb_alloc':
drivers/char/drm/drm.o(.text+0x6986): undefined reference to `sis_malloc'
drivers/char/drm/drm.o(.text+0x69cd): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_fb_free':
drivers/char/drm/drm.o(.text+0x6b12): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_final_context':
drivers/char/drm/drm.o(.text+0x6fc6): undefined reference to `sis_free'
make: *** [vmlinux] Error 1


So does anybody have any clue on what to do?

- Cheers Anders






__
Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant



Re: Kernel Compilation Trouble

2002-10-08 Thread yoann

Hi all,

I had a similary problem, I have a laptop Gericom with a chip SiS630
so if it's not done, you have to download the drivers for you video card 
from http://www.winischhofer.net/linuxsis630.shtml and follow the 
instruction :

for the kernel you have to download the file sisfb_srs_160209-1.tar.gz ( 
http://www.webit.at/~twinny/sis/sisfb_src_160902-1.tar.gz ) but check on 
the web site if it's the right file.

and after :

~/sisfb_src_160902-1 $ cat README
Installation instructions:

Copy all *.c and *.h files EXCEPT sisfb.h over the existing ones
in [kernel-tree]/drivers/video/sis.

Copy sisfb.h to /usr/src/linux/include/linux and over
eventual other copies of this file.

If you experience compile errors, you have missed sisfb.h.

Further, please use my Makefile (or patch your's accordingly) otherwise
the acceleration code will not be linked (which results in errors, of 
course)

For kernel 2.5.34 and later:

1) You need to change the Makefile in /drivers/video/ in line 90 like this:
obj-$(CONFIG_FB_SIS)  += sis/ cfbimgblt.o
2) For hardware accelerated 2D, set the kernel option 
"CONFIG_FBCON_ACCEL" ("Hardware acceleration" in menuconfig)

/Thomas

in fact, me, I forgot to copy the Makefile from the source 
sisfb_src_160902.tar.gz in [kernel-tree]/drivers/video/sis
so if I had just copy the makefile and everythin was ok

for more information, I give you an advice to follow what is write on 
the web site

yoann

Anders E. Andersen a écrit:

> I was trying to compile Kernel 2.4.19 (from sid/unstable) on my ASUS 
> A1 laptop (Sis chipset) but in the end I got this:
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes 
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   
> -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include 
> -DKBUILD_BASENAME=strstr  -c -o strstr.o strstr.c
> rm -f lib.a
> ar  rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o 
> memcpy.o strstr.o
> make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
> make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
> 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 init/do_mounts.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 \
>  drivers/char/char.o drivers/block/block.o drivers/misc/misc.o 
> drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o 
> drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o 
> drivers/sound/sounddrivers.o drivers/pci/driver.o 
> drivers/pcmcia/pcmcia.o drivers/pnp/pnp.o drivers/video/video.o \
> net/network.o \
> /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
> drivers/char/drm/drm.o: In function `sis_fb_alloc':
> drivers/char/drm/drm.o(.text+0x6986): undefined reference to `sis_malloc'
> drivers/char/drm/drm.o(.text+0x69cd): undefined reference to `sis_free'
> drivers/char/drm/drm.o: In function `sis_fb_free':
> drivers/char/drm/drm.o(.text+0x6b12): undefined reference to `sis_free'
> drivers/char/drm/drm.o: In function `sis_final_context':
> drivers/char/drm/drm.o(.text+0x6fc6): undefined reference to `sis_free'
> make: *** [vmlinux] Error 1
>
>
> So does anybody have any clue on what to do?
>
> - Cheers Anders
>
>



__
Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: Kernel Compilation Trouble

2002-10-08 Thread DEFFONTAINES Vincent
You need other options selected:

Code Maturity Level Options -> Say YES to "Prompt for development and/or
incomplete code/drivers"

This gives you access to the following:

Console Drivers -> Frame-Buffer support -> Support for frame buffer devices
= YES
Below : SIS acceleration = YES

Plus possibly the two ones below, depending on your hardware config.

This gets your kernel config to compile on my box correctly.


(I found that with a google search that drove me to linux kernel mailing
list archive)
See http://www.uwsg.iu.edu/hypermail/linux/kernel/0202.2/0652.html

Vincent


> -Original Message-
> From: Anders E. Andersen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday 8 October 2002 11:14
> To: debian-laptop
> Subject: Re: Kernel Compilation Trouble
> 
> 
> DEFFONTAINES Vincent wrote:
> 
> > Looks like you may be forgetting an important option every 
> time you set up a
> > kernel.
> > Try posting your .config and I'll have a look at it if you want.
> 
> Should be attached.
> 
> I was just looking at it. When a variable is unset does that 
> mean it is 
> set to =n?
> 
> I saw a post about unsetting the CONFIG_X86_UP_APIC setting 
> because it 
> might cause X lockups with certain APM bioses. I have certainly 
> experienced trouble like that and it is one of the main 
> reasons I'd like 
> to recompile.
> 
> Thanks for the help.
> 
> Anders
> 



RE: Kernel Compilation Trouble

2002-10-08 Thread DEFFONTAINES Vincent

You need other options selected:

Code Maturity Level Options -> Say YES to "Prompt for development and/or
incomplete code/drivers"

This gives you access to the following:

Console Drivers -> Frame-Buffer support -> Support for frame buffer devices
= YES
Below : SIS acceleration = YES

Plus possibly the two ones below, depending on your hardware config.

This gets your kernel config to compile on my box correctly.


(I found that with a google search that drove me to linux kernel mailing
list archive)
See http://www.uwsg.iu.edu/hypermail/linux/kernel/0202.2/0652.html

Vincent


> -Original Message-
> From: Anders E. Andersen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday 8 October 2002 11:14
> To: debian-laptop
> Subject: Re: Kernel Compilation Trouble
> 
> 
> DEFFONTAINES Vincent wrote:
> 
> > Looks like you may be forgetting an important option every 
> time you set up a
> > kernel.
> > Try posting your .config and I'll have a look at it if you want.
> 
> Should be attached.
> 
> I was just looking at it. When a variable is unset does that 
> mean it is 
> set to =n?
> 
> I saw a post about unsetting the CONFIG_X86_UP_APIC setting 
> because it 
> might cause X lockups with certain APM bioses. I have certainly 
> experienced trouble like that and it is one of the main 
> reasons I'd like 
> to recompile.
> 
> Thanks for the help.
> 
> Anders
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

DEFFONTAINES Vincent wrote:


Looks like you may be forgetting an important option every time you set up a
kernel.
Try posting your .config and I'll have a look at it if you want.


Should be attached.

I was just looking at it. When a variable is unset does that mean it is 
set to =n?


I saw a post about unsetting the CONFIG_X86_UP_APIC setting because it 
might cause X lockups with certain APM bioses. I have certainly 
experienced trouble like that and it is one of the main reasons I'd like 
to recompile.


Thanks for the help.

Anders
#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
CONFIG_ISA=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
CONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_MCE=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
# CONFIG_BIGPHYS_AREA is not set
# CONFIG_SMP is not set
# Might wanna set this to no
# CONFIG_X86_UP_APIC is not set
# CONFIG_X86_UP_IOAPIC is not set

#
# General setup
#
CONFIG_NET=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y

#
# PCMCIA/CardBus support
#
CONFIG_PCMCIA=y
CONFIG_CARDBUS=y
# CONFIG_TCIC is not set
# CONFIG_I82092 is not set
# CONFIG_I82365 is not set

#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_PM=y
CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Plug and Play configuration
#
CONFIG_PNP=y
CONFIG_ISAPNP=y

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_CISS_SCSI_TAPE is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_BLK_DEV_LVM is not set

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
# CONFIG_NETLINK_DEV is not set
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set

#
# Appletalk devices
#
# CONFIG_DEV_APPLETALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set
# CONFIG_PHONE_IXJ is not set
# CONFIG_PHONE_IXJ_PCMCIA is not set

#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is not s

RE: Kernel Compilation Trouble

2002-10-08 Thread DEFFONTAINES Vincent
As far as I know, it shouldn't be a problem.

> 
> It actually gives this right at the end when I do make dep, is this a 
> problem?
> 
> make[1]: Entering directory `/usr/src/linux'
> /usr/src/linux/include/linux/modversions.h was not updated
> make[1]: Leaving directory `/usr/src/linux'
> 
> 
> Anders there...
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 



Re: Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

DEFFONTAINES Vincent wrote:

Here is the most basic hint I can think of:

Are you sure you ran "make dep" after changing your kernel options and
before running "make modules"?


It actually gives this right at the end when I do make dep, is this a 
problem?


make[1]: Entering directory `/usr/src/linux'
/usr/src/linux/include/linux/modversions.h was not updated
make[1]: Leaving directory `/usr/src/linux'


Anders there...



RE: Kernel Compilation Trouble

2002-10-08 Thread DEFFONTAINES Vincent
> For the record I have not been able to compile the kernel 
> ever on any of 
> my machines. I always get weird errors like these.

Looks like you may be forgetting an important option every time you set up a
kernel.
Try posting your .config and I'll have a look at it if you want.



> 
> Anders :)
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 



Re: Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

DEFFONTAINES Vincent wrote:

Here is the most basic hint I can think of:

Are you sure you ran "make dep" after changing your kernel options and
before running "make modules"?


Absolutely.

>make deb

No problems

>make bzImage

Lots of stuff.. Got this at the end.

For the record I have not been able to compile the kernel ever on any of 
my machines. I always get weird errors like these.


Anders :)



RE: Kernel Compilation Trouble

2002-10-08 Thread DEFFONTAINES Vincent
Here is the most basic hint I can think of:

Are you sure you ran "make dep" after changing your kernel options and
before running "make modules"?

Vincent

> -Original Message-
> From: Anders E. Andersen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday 8 October 2002 10:16
> To: debian-laptop
> Subject: Kernel Compilation Trouble
> 
> 
> I was trying to compile Kernel 2.4.19 (from sid/unstable) on 
> my ASUS A1 
> laptop (Sis chipset) but in the end I got this:
> 
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes 
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
> -fomit-frame-pointer 
> -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -I 
> /usr/lib/gcc-lib/i386-linux/2.95.4/include 
> -DKBUILD_BASENAME=strstr  -c 
> -o strstr.o strstr.c
> rm -f lib.a
> ar  rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o 
> memcpy.o strstr.o
> make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
> make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
> 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 init/do_mounts.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 \
>   drivers/char/char.o drivers/block/block.o 
> drivers/misc/misc.o 
> drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o 
> drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o 
> drivers/sound/sounddrivers.o drivers/pci/driver.o 
> drivers/pcmcia/pcmcia.o drivers/pnp/pnp.o drivers/video/video.o \
>  net/network.o \
>  /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
> drivers/char/drm/drm.o: In function `sis_fb_alloc':
> drivers/char/drm/drm.o(.text+0x6986): undefined reference to 
> `sis_malloc'
> drivers/char/drm/drm.o(.text+0x69cd): undefined reference to 
> `sis_free'
> drivers/char/drm/drm.o: In function `sis_fb_free':
> drivers/char/drm/drm.o(.text+0x6b12): undefined reference to 
> `sis_free'
> drivers/char/drm/drm.o: In function `sis_final_context':
> drivers/char/drm/drm.o(.text+0x6fc6): undefined reference to 
> `sis_free'
> make: *** [vmlinux] Error 1
> 
> 
> So does anybody have any clue on what to do?
> 
> - Cheers Anders
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 



Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen
I was trying to compile Kernel 2.4.19 (from sid/unstable) on my ASUS A1 
laptop (Sis chipset) but in the end I got this:


gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer 
-pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -I 
/usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=strstr  -c 
-o strstr.o strstr.c

rm -f lib.a
ar  rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o 
memcpy.o strstr.o

make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
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 init/do_mounts.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 \
 drivers/char/char.o drivers/block/block.o drivers/misc/misc.o 
drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o 
drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o 
drivers/sound/sounddrivers.o drivers/pci/driver.o 
drivers/pcmcia/pcmcia.o drivers/pnp/pnp.o drivers/video/video.o \

net/network.o \
/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
drivers/char/drm/drm.o: In function `sis_fb_alloc':
drivers/char/drm/drm.o(.text+0x6986): undefined reference to `sis_malloc'
drivers/char/drm/drm.o(.text+0x69cd): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_fb_free':
drivers/char/drm/drm.o(.text+0x6b12): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_final_context':
drivers/char/drm/drm.o(.text+0x6fc6): undefined reference to `sis_free'
make: *** [vmlinux] Error 1


So does anybody have any clue on what to do?

- Cheers Anders



Re: Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

DEFFONTAINES Vincent wrote:

> Looks like you may be forgetting an important option every time you set up a
> kernel.
> Try posting your .config and I'll have a look at it if you want.

Should be attached.

I was just looking at it. When a variable is unset does that mean it is 
set to =n?

I saw a post about unsetting the CONFIG_X86_UP_APIC setting because it 
might cause X lockups with certain APM bioses. I have certainly 
experienced trouble like that and it is one of the main reasons I'd like 
to recompile.

Thanks for the help.

Anders


#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
CONFIG_ISA=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
CONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_MCE=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
# CONFIG_BIGPHYS_AREA is not set
# CONFIG_SMP is not set
# Might wanna set this to no
# CONFIG_X86_UP_APIC is not set
# CONFIG_X86_UP_IOAPIC is not set

#
# General setup
#
CONFIG_NET=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y

#
# PCMCIA/CardBus support
#
CONFIG_PCMCIA=y
CONFIG_CARDBUS=y
# CONFIG_TCIC is not set
# CONFIG_I82092 is not set
# CONFIG_I82365 is not set

#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_PM=y
CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Plug and Play configuration
#
CONFIG_PNP=y
CONFIG_ISAPNP=y

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_CISS_SCSI_TAPE is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_BLK_DEV_LVM is not set

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
# CONFIG_NETLINK_DEV is not set
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set

#
# Appletalk devices
#
# CONFIG_DEV_APPLETALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set
# CONFIG_PHONE_IXJ is not set
# CONFIG_PHONE_IXJ_PCMCIA is not set

#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is n

RE: Kernel Compilation Trouble

2002-10-08 Thread DEFFONTAINES Vincent

As far as I know, it shouldn't be a problem.

> 
> It actually gives this right at the end when I do make dep, is this a 
> problem?
> 
> make[1]: Entering directory `/usr/src/linux'
> /usr/src/linux/include/linux/modversions.h was not updated
> make[1]: Leaving directory `/usr/src/linux'
> 
> 
> Anders there...
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

DEFFONTAINES Vincent wrote:
> Here is the most basic hint I can think of:
> 
> Are you sure you ran "make dep" after changing your kernel options and
> before running "make modules"?

It actually gives this right at the end when I do make dep, is this a 
problem?

make[1]: Entering directory `/usr/src/linux'
/usr/src/linux/include/linux/modversions.h was not updated
make[1]: Leaving directory `/usr/src/linux'


Anders there...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: Kernel Compilation Trouble

2002-10-08 Thread DEFFONTAINES Vincent

> For the record I have not been able to compile the kernel 
> ever on any of 
> my machines. I always get weird errors like these.

Looks like you may be forgetting an important option every time you set up a
kernel.
Try posting your .config and I'll have a look at it if you want.



> 
> Anders :)
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

DEFFONTAINES Vincent wrote:
> Here is the most basic hint I can think of:
> 
> Are you sure you ran "make dep" after changing your kernel options and
> before running "make modules"?

Absolutely.

 >make deb

No problems

 >make bzImage

Lots of stuff.. Got this at the end.

For the record I have not been able to compile the kernel ever on any of 
my machines. I always get weird errors like these.

Anders :)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: Kernel Compilation Trouble

2002-10-08 Thread DEFFONTAINES Vincent

Here is the most basic hint I can think of:

Are you sure you ran "make dep" after changing your kernel options and
before running "make modules"?

Vincent

> -Original Message-
> From: Anders E. Andersen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday 8 October 2002 10:16
> To: debian-laptop
> Subject: Kernel Compilation Trouble
> 
> 
> I was trying to compile Kernel 2.4.19 (from sid/unstable) on 
> my ASUS A1 
> laptop (Sis chipset) but in the end I got this:
> 
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes 
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
> -fomit-frame-pointer 
> -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -I 
> /usr/lib/gcc-lib/i386-linux/2.95.4/include 
> -DKBUILD_BASENAME=strstr  -c 
> -o strstr.o strstr.c
> rm -f lib.a
> ar  rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o 
> memcpy.o strstr.o
> make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
> make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
> 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 init/do_mounts.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 \
>   drivers/char/char.o drivers/block/block.o 
> drivers/misc/misc.o 
> drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o 
> drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o 
> drivers/sound/sounddrivers.o drivers/pci/driver.o 
> drivers/pcmcia/pcmcia.o drivers/pnp/pnp.o drivers/video/video.o \
>  net/network.o \
>  /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
> drivers/char/drm/drm.o: In function `sis_fb_alloc':
> drivers/char/drm/drm.o(.text+0x6986): undefined reference to 
> `sis_malloc'
> drivers/char/drm/drm.o(.text+0x69cd): undefined reference to 
> `sis_free'
> drivers/char/drm/drm.o: In function `sis_fb_free':
> drivers/char/drm/drm.o(.text+0x6b12): undefined reference to 
> `sis_free'
> drivers/char/drm/drm.o: In function `sis_final_context':
> drivers/char/drm/drm.o(.text+0x6fc6): undefined reference to 
> `sis_free'
> make: *** [vmlinux] Error 1
> 
> 
> So does anybody have any clue on what to do?
> 
> - Cheers Anders
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Kernel Compilation Trouble

2002-10-08 Thread Anders E. Andersen

I was trying to compile Kernel 2.4.19 (from sid/unstable) on my ASUS A1 
laptop (Sis chipset) but in the end I got this:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer 
-pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -I 
/usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=strstr  -c 
-o strstr.o strstr.c
rm -f lib.a
ar  rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o 
memcpy.o strstr.o
make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
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 init/do_mounts.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 \
  drivers/char/char.o drivers/block/block.o drivers/misc/misc.o 
drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o 
drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o 
drivers/sound/sounddrivers.o drivers/pci/driver.o 
drivers/pcmcia/pcmcia.o drivers/pnp/pnp.o drivers/video/video.o \
 net/network.o \
 /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
drivers/char/drm/drm.o: In function `sis_fb_alloc':
drivers/char/drm/drm.o(.text+0x6986): undefined reference to `sis_malloc'
drivers/char/drm/drm.o(.text+0x69cd): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_fb_free':
drivers/char/drm/drm.o(.text+0x6b12): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_final_context':
drivers/char/drm/drm.o(.text+0x6fc6): undefined reference to `sis_free'
make: *** [vmlinux] Error 1


So does anybody have any clue on what to do?

- Cheers Anders


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]