Results 1 to 6 of 6
alright,
basically i gave up on my sata drive as being my main drive
it seems like if for any reason your linux partition or grub/lilo gets corrupted, there's absolutely ...
- 07-06-2006 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 32
need help building kernel
alright,
basically i gave up on my sata drive as being my main drive
it seems like if for any reason your linux partition or grub/lilo gets corrupted, there's absolutely no way to recover your linux on a sata drive
i tried using a livecd and running chroot /mnt/sata whatever and trying to do a grub-install hd0
IT DOESNT WORK ON SATA DRIVES, at least not for me....
i tried using debian with kernel 2.4 but its extremely buggy and my pc freezes a lot with my sata drive
after that i tried to update my 2.4 kernel and i wiped out my grub so i could boot and use my backup lilo booter and the backup was messed up too, so i completely gave up on sata
ill just use my sata drive as storage drive now
now here's my issue:
the debian sarge kernel 2.6 doesnt have builtin ntfs or sata support
so i was wondering if i could just update my 2.6.8 kernel to the latest 2.6.17 from www.kernel.org
and while i was updating it:
i had to install qt dev files and tk/tcl dev files and everything was going fine till i ran make xconfig
and it gave me this error:
nekrepc:/usr/include# rm -rf asm linux scsi
nekrepc:/usr/include# ln -s /usr/src/linux/include/asm-i386 asm
nekrepc:/usr/include# ln -s /usr/src/linux/include/linux linux
nekrepc:/usr/include# ln -s /usr/src/linux/include/scsi scsi
nekrepc:/usr/include# cd /usr/src/linux
nekrepc:/usr/src/linux# make mrproper
nekrepc:/usr/src/linux# make xconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
CHECK qt
HOSTCC scripts/kconfig/conf.o
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
HOSTCC scripts/kconfig/kconfig_load.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
In file included from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:24,
from /usr/include/sys/ioctl.h:27,
from scripts/kconfig/mconf.c:11:
/usr/include/asm/ioctl.h:1:31: asm-generic/ioctl.h: No such file or directory
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [xconfig] Error 2
nekrepc:/usr/src/linux#
nekrepc:/usr/src/linux#
it says i dont have assembly generic
any idea how i can get asm generic?
i seriously prefer using kernel 2.6 since its much more stable on than kernel 2.4 on my pc, but i want to enable ntfs and sata support on it...
please anyone?
ive been at this for almost over five days now trying to get my sata drive and pc all perfect....
- 07-06-2006 #2Just Joined!
- Join Date
- Jun 2006
- Posts
- 32
guys, i decided not to use the latest kernel release for debian
since trying to use latest kernel would mean id have to upgrade all my dependancies
and im too lazy to do that
so im just going to use the debian kernel 2.6.8
im loading my pc with 2.6.8
and only thing i want to do is enable old school sata since my sata controller is 1st generation (ya i just found out) under ide options
so basically:
i unpack the kernel-source 2.6.8 from debian.org
fix the symlinks in /usr/include
make mrproper
make xconfig and i just used the config from /boot from debian
enable old school sata
save and quit
do a make dep, but it says make dep is not necessary now
make bzImage
make modules_install
mkinitrd -o new_image
set up my grub manually
restart pc using new configurations and kernel/initrd
when its loading the new kernel
it says it cant find modules dependancies
or modules.dep
anyone know what im doing wrong?
when am i supposed to run make dep?
also btw:
is the debian kernerl-source 2.6.8 same thing as the kernel they use in their 2.6.8.2-386 kernel?
or is it slightly older? would it be better if i just download 2.6.8.2 from kernel.org?
does debian use their own modules/files in their kernel source that are not available in the kernel.org kernels?
- 07-07-2006 #3Just Joined!
- Join Date
- Jun 2006
- Posts
- 32
guys anyone?? please?
i seriously need help with this...
i noticed you dont have to do the old symlinks in /usr/include anymore...
again what im doing:
unpack source files into /usr/src/linux
make mrproper
make xconfig
make
make dep (2.4.32)
make bzImage
make modules
make modules_install
mkinitrd -o /usr/src/initrd.img
copy bzimage/initrd.img to /boot
as vmlinuz-2.6.8, initrd.img-2.6.8
update-grub
reboot
choose new kernel
kernel stops/gives failure at
modprobe: ... modules.dep not found
says sbin/init not found either etc
source files im using:
2.6.8 and 2.4.32
im having same probs with both of them
- 07-07-2006 #4
Why not use the kernel-package utility?
Like that :
http://www.linuxforums.org/forum/lin...ile-error.html
And take a look a the Debian Reference manual :
http://www.debian.org/doc/manuals/re...kernel.en.html
Works very well on SATA drives, just don't forget the --initrd parameter. Also, using a 2.6 kernel is the way to go with SATA."To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
- 07-07-2006 #5Just Joined!
- Join Date
- Jun 2006
- Posts
- 32
sweet
the classic compile method didnt work for me at all, but after using the kernel-packager it did all the trick.
now i can finally port my linux 2.6 partition to my sata drive.
thank you very much! really appreciate it!
one question though:
the kernel package utility, its only specific or unique to debian systems isnt it?
or can you use it on other distros as well?
- 07-07-2006 #6Yup, only on Debian and Debian-based distributions.
Originally Posted by kfizzle "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee


Reply With Quote
