Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Kernel update, 2.4.26 -> 2.4.31< Next Oldest | Next Newest >
axel Offline





Group: Members
Posts: 11
Joined: April 2006
Posted: April 04 2006,15:26 QUOTE

I installed dsl on my hard disk and tried to compile the newest kernel on my own. These are the steps that i have followed. However i get the error you can see. Any ideas on how to solve it? ???


1) Install gcc1.dsl

2) Install kernelsource.dsl. This will create /usr/src file tree.

3) Download linux-2.4.31.tar.gz and linux-2.4.31.tar.gz.md5.txt

4) Check sum: #md5sum -c linux-2.4.31.tar.gz.md5.txt

5) Install tcltk8.3.dsl in order make xconfig to work.

6) Download dsl.config

7) Run #make xconfig and load dsl.config file

8) Do the appropriate changes. Save the configuration to a config file for further use. Press save and exit.

9) Run #make dep clean

10) Run #make bzImage
Code Sample

root@box:/usr/src/linux-2.4.31# make bzImage
gcc -Wall -Wstrict-prototypes -02 -fomit-frame-pointer -o scripts/split-include
scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D -I/usr/src/linux-2.4.31/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586    -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.

{standard input}: Assembler messages:
{standard input}:0: Warning: end of file not at end of line; newline inserted
make: *** [init/main.o] Error 1
{standard input}:990: Error: no such instruction: `c'
Back to top
Profile PM 
axel Offline





Group: Members
Posts: 11
Joined: April 2006
Posted: April 04 2006,17:44 QUOTE

Solved

The problem occured because i hadn't create a swap space and gcc run out of memory.

An easy way to create a swap file in /tmp is the following:

dd if=/dev/zero of=/tmp/swap bs=1024k count=64
mkswap /tmp/swap
swapon /tmp/swap

This creates a 64 MB swap file in the tmp directory. The last command has to be run in every boot.
Back to top
Profile PM 
axel Offline





Group: Members
Posts: 11
Joined: April 2006
Posted: April 04 2006,19:17 QUOTE

Compiled continued but ended again with the following error. Any solution for this? ??? :(
make[2]: Leaving directory `/usr/src/linux-2.4.31/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.31/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux-2.4.31/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/acpi/acpi.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o drivers/net/fc/fc.o drivers/net/tokenring/tr.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o drivers/media/media.o drivers/md/mddev.o crypto/crypto.o \
       net/network.o \
       /usr/src/linux-2.4.31/arch/i386/lib/lib.a /usr/src/linux-2.4.31/lib/lib.a /usr/src/linux-2.4.31/arch/i386/lib/lib.a \
       --end-group \
       -o vmlinux
arch/i386/kernel/head.o(.text+0x18d): In function `is386':
: undefined reference to `start_kernel'
init/do_mounts.o(.text+0xd2): In function `do_linuxrc':
: undefined reference to `envp_init'
arch/i386/kernel/kernel.o(.text.init+0x1c69): In function `check_cx686_slop':
: undefined reference to `calibrate_delay'
arch/i386/kernel/kernel.o(.text.init+0x1c73): In function `check_cx686_slop':
: undefined reference to `loops_per_jiffy'
arch/i386/kernel/kernel.o(.text.init+0x2a22): In function `identify_cpu':
: undefined reference to `loops_per_jiffy'
kernel/kernel.o(.text+0x10b6): In function `reparent_to_init':
: undefined reference to `child_reaper'
kernel/kernel.o(.text+0x10c1): In function `reparent_to_init':
: undefined reference to `child_reaper'
kernel/kernel.o(.text+0x573b): In function `exit_notify':
: undefined reference to `child_reaper'
kernel/kernel.o(.text.init+0x3a): In function `init_idle':
: undefined reference to `wait_init_idle'
kernel/kernel.o(__ksymtab+0xbd8): undefined reference to `loops_per_jiffy'
make: *** [vmlinux] Error 1
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: April 05 2006,04:20 QUOTE

Did you install gnu-utils.dsl or choose "Upgrade to GNU Utilities"?  Maybe the stripped down Busybox commands are giving you problems.
Back to top
Profile PM 
axel Offline





Group: Members
Posts: 11
Joined: April 2006
Posted: April 05 2006,09:46 QUOTE

I tried to use the newest vanilla kernel 2.4.32 from kernel.org. #make bzImage went all the way right but then a problem with gzip occured while i was doing #make modules. gzip missed the -n parameter. I installed gnu-utils and right now #make modules is running (till the next problem...). :)
Back to top
Profile PM 
6 replies since April 04 2006,15:26 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Kernel update

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code