LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-10-2007, 01:58 PM   #1
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Cross Compiling 2.4.34 to run on a Pentium R (II) 266 MHz


Hello,

I need to compile the Linux Kernel 2.4.34 so that I can generate a bzImage that I can boot on a Pentium R (II) box.

My work platform is supporting an x86_64 architecture with gcc 3.2.3. Below is the initial excerpt from the configuration that I am attempting to use:

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

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# 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=y
# CONFIG_M686 is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 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_MVIAC3_2 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
...

I have attempted to compile the kernel using the following steps:


$ make mrproper ARCH=i386
$ make oldconfig ARCH=i386
$ make dep ARCH=i386
$ make ARCH=i386


This yields the following error:

gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
scripts/split-include: include/linux/autoconf.h: Invalid argument
make: *** [include/config/MARKER] Error 1

What if anything am I doing wrong? Btw, if I do not specify ARCH=i386, then the Makefile sets ARCH to x86_64. Why is it doing this? Why doesn't the Makefile run a script to deduce that correct architecture based upon the setting within the configuration file?

Last edited by dwhitney67; 04-10-2007 at 02:01 PM.
 
Old 02-24-2008, 03:22 PM   #2
Ricio
Member
 
Registered: Sep 2003
Location: Colombia
Distribution: Debian
Posts: 220

Rep: Reputation: 30
Question Hello dwhitney

Hi ... You reply to a post of mine about autoconfig and I read you were supporting a project kinda like mine... bootable cdr that installs and auto makes partitions... I was wondering if I could add you to my mail list for direct support and further questions to the related topic ... please contact me here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Distro for PentiumPro MMX 266 mhz, 64mb RAM? siliconpie Linux - Distributions 3 04-02-2006 03:38 PM
MythTV and Pentium II (500 MHz) BarfBag Linux - Software 1 01-01-2006 09:27 PM
pentium 2 - 400 mhz piva.francesco Linux - Hardware 2 04-16-2005 06:34 AM
Hardware scan problems on Pentium 266 system yapp SUSE / openSUSE 1 03-11-2005 11:07 AM
266 MHz, which distro? anna466 Linux - Newbie 14 10-30-2004 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration