Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192437 - Unable to compile kernel on MIPS (IP30), bug in file arch/mips/Kconfig
Summary: Unable to compile kernel on MIPS (IP30), bug in file arch/mips/Kconfig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High major (vote)
Assignee: MIPS Porters
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-13 16:52 UTC by Stefan Onderka
Modified: 2010-12-05 07:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Onderka 2007-09-13 16:52:29 UTC
quote forum user "hanc":

Kernel compilation crashed with unresolved references to prom_meminit() and prom_free_prom_memory() on my Octane machine. I found that the problem was not enabling CONFIG_ARC_MEMORY option so arch/mips/arc/memory.c didn't compile. I got around the issue by adding IP30 to the config ARC_MEMORY section of arch/mips/Kconfig.
I haven't yet tested my kernel properly. I can only report that it compiled and booted.
I'd like to know if the CONFIG_ARC_MEMORY on IP30 was omited intentionaly or if it is a bug.
----

user hanc used:

   mips-sources-2.6.20.14 on IP30

I used: 

   mips-sources-2.6.20.18-20070902.ip30

Reproducible: Always

Steps to Reproduce:
USE="ip30", compile mips-sources
Actual Results:  
Sorry, no unmodified sources to show; summary: 

Kernel compilation crashes with unresolved references to prom_meminit() and prom_free_prom_memory()

Expected Results:  
clean compiler run

Adding "IP30" to IP30 to "..config ARC_MEMORY..." section of file arch/mips/Kconfig helps, obviously forgotten.

My 'emerge --info':

Portage 2.1.2.12 (default-linux/mips/2007.0/ip30/o32, gcc-4.1.1, glibc-2.3.6-r5, 2.6.20.18-mipsgit-20070902 mips64)
=================================================================
System uname: 2.6.20.18-mipsgit-20070902 mips64 R10000 V3.4 FPU V0.0
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 13 Sep 2007 11:30:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.14.4
ACCEPT_KEYWORDS="mips"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -march=mips4 -pipe -mabi=32"
CHOST="mips-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=mips4 -pipe -mabi=32"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.frenco.local/gentoo-portage/"
USE="X alsa berkdb bitmap-fonts bzip2 cli cracklib fortran gdbm gpm gtk iconv ip30 isdnlog jpeg libwww midi mips mudflap nls opengl openmp pam pcre perl png pppd python readline reflection sdl session spl svg tcpd tiff truetype truetype-fonts type1-fonts unicode xml xorg xscreensaver zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="impact"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Joshua Kinard gentoo-dev 2007-09-30 06:09:13 UTC
Attach your kernel config that reproduced the breakage.  I just tested said 2.6.20.18, but using a config from 2.6.22, and it builds fine.  Thus I need your config, and your commands leading up to the actual compile phase.  That might highlight where the problem is at.
Comment 2 flameman 2008-06-02 22:32:50 UTC
(In reply to comment #1)
> Attach your kernel config that reproduced the breakage.  I just tested said
> 2.6.20.18, but using a config from 2.6.22, and it builds fine.  Thus I need
> your config, and your commands leading up to the actual compile phase.  That
> might highlight where the problem is at.
> 


i have a bit of issue here trying to compile new kernels

here it is the status of kernel 
2.6.17.14.ip30: hardly tested and solid rock working (used to build the 2008 stage3, and his world: 10days uptime) 
2.6.20.18.ip30: it boots but is is reporting a lot of bad debugging info 
2.6.22.6.ip30: it doesn't boot, PROM WRITE ERROR ON CACHELINE 0x1fcba700 at PC=0x203f302c 
2.6.23.*.ip30: it is marked as ~mips, i have to give it a try

i am able to compile the 2.6.22.6, all goes well during the compilation, but it fails during the arc boot.
have you tested it on a real IP30 hw ?

also .. about 2.6.20.18 ... i have a SMP 2xR12K here, it is working well with 2.6.17.14 but it is reporting a ton of debugging bad info using 2.6.20.18 ... i will provide them later

let me know about your progress
Comment 3 Matt Turner gentoo-dev 2010-12-05 07:07:46 UTC
Since mips-sources-2.6.20 isn't in the tree anymore, I'm going to close this bug. Please reopen it if this is still a bug with newer versions.