*CLOSED* yaird error when apply debian kernel image on sparc machine. [message #10057] |
Tue, 06 February 2007 20:07 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
zszhu
Messages: 13 Registered: February 2007
|
Junior Member |
|
|
part of error message:
Running depmod.
Finding valid ramdisk creators.
Using mkinitrd.yaird to build the ramdisk.
yaird error: bad value in /boot/config-2.6.18-openvz-sparc64-smp: CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" (fatal)
mkinitrd.yaird failed to create initrd image.
Failed to create initrd image.
dpkg: error processing linux-image-2.6.18-openvz-sparc64-smp (--install):
subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
linux-image-2.6.18-openvz-sparc64-smp
The HN is runnig ubuntu 6.0.6 , current kernel is 2.6.15-26-sparc64-smp
Any suggestion?
Sam Zhu
[Updated on: Tue, 20 February 2007 08:35] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
Re: yaird error when apply debian kernel image on sparc machine. [message #10084 is a reply to message #10082] |
Wed, 07 February 2007 19:22 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
zszhu
Messages: 13 Registered: February 2007
|
Junior Member |
|
|
it is not defined in config file
`grep CONFIG_DEFCONFIG_LIST /boot/config-2.6.15-26-sparc64-smp` returns nothing.
but `grep CONFIG_DEFCONFIG_LIST /boot/config-2.6.18-openvz-sparc64-smp` returns
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
2.6.18-openvz-sparc64-smp is that kernel image failed installation.
right now, under /lib/modules/, in both "2.6.15-26-sparc64-smp" and "2.6.18-openvz-sparc64-smp" directories, no .config file exists.
Sam
[Updated on: Wed, 07 February 2007 19:33] Report message to a moderator
|
|
|
|
Re: yaird error when apply debian kernel image on sparc machine. [message #10120 is a reply to message #10097] |
Thu, 08 February 2007 16:10 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
zszhu
Messages: 13 Registered: February 2007
|
Junior Member |
|
|
I copied both .config-XXXXXX file from /boot to /lib/modules, undeer their corresponding directories. Then I cam back to `dpkg -i` that kernel image, same error.
To compile to kernel, I downloaded "kernel-patch-openvz (028test007.1d2)" and "inux-source-2.6.18 (2.6.18-7)" from packages.debian.org. when applied the patch, error message is
../kernel-patches/all/apply/openvz
START applying openvz patch (OpenVZ kernel patch for virtual server support)
Testing whether "OpenVZ kernel patch for virtual server support" patch for 2.6.18 applies (dry run):
1 out of 7 hunks FAILED -- saving rejects to file mm/fremap.c.rej
5 out of 44 hunks FAILED -- saving rejects to file mm/memory.c.rej
1 out of 6 hunks FAILED -- saving rejects to file mm/mprotect.c.rej
6 out of 29 hunks FAILED -- saving rejects to file net/ipv4/netfilter/ip_tables.c.rej
1 out of 8 hunks FAILED -- saving rejects to file net/ipv6/udp.c.rej
"OpenVZ kernel patch for virtual server support" patch for 2.6.18 does not apply cleanly
And according to this post : http://www.mail-archive.com/debian-bugs-dist@lists.debian.or g/msg295307.html
patch 028test007.1 should apply against 2.6.18-8 or
patch 028test006.1. should applies against 2.6.18-7
But I only have patch 028test007.1 and kernel 2.6.18-7. I could download neither patch 028test006.1 nor kernel 2.6.18-8 , from debian.org or kernel.org or openvz.org. What a dilemma.
Can you help me find the right kernel release or patch release, or kernel/ patch release that matches(release 2.6.x, x>=15 is ok, for SPARC64 of course) ?
Thanks
Sam
[Updated on: Thu, 08 February 2007 16:17] Report message to a moderator
|
|
|
|
|
|
|
Re: yaird error when apply debian kernel image on sparc machine. [message #10126 is a reply to message #10125] |
Thu, 08 February 2007 17:48 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
|
After patching the source please check the source directory ,there will be a directory named "configs/ " in which you can see the config files as follows,
------------
ll /usr/src/linux-2.6.16/configs/
total 108
-rw-r--r-- 1 root root 36742 Dec 19 13:47 kernel-2.6.16-026test018-i686.config.ovz
-rw-r--r-- 1 root root 36736 Dec 19 13:47 kernel-2.6.16-026test018-i686-enterprise.config.ovz
-rw-r--r-- 1 root root 36804 Dec 19 13:47 kernel-2.6.16-026test018-i686-smp.config.ovz
------------------
Now copy this config to the parent source folder as .config
Sherinmon A,
[Updated on: Thu, 08 February 2007 17:49] Report message to a moderator
|
|
|
Re: yaird error when apply debian kernel image on sparc machine. [message #10128 is a reply to message #10126] |
Thu, 08 February 2007 18:40 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
zszhu
Messages: 13 Registered: February 2007
|
Junior Member |
|
|
mastersherin wrote on Thu, 08 February 2007 12:48 | After patching the source please check the source directory ,there will be a directory named "configs/ " in which you can see the config files as follows,
------------
ll /usr/src/linux-2.6.16/configs/
total 108
-rw-r--r-- 1 root root 36742 Dec 19 13:47 kernel-2.6.16-026test018-i686.config.ovz
-rw-r--r-- 1 root root 36736 Dec 19 13:47 kernel-2.6.16-026test018-i686-enterprise.config.ovz
-rw-r--r-- 1 root root 36804 Dec 19 13:47 kernel-2.6.16-026test018-i686-smp.config.ovz
------------------
Now copy this config to the parent source folder as .config
|
But, that is the config for i686, not for SPARC.
Anyway, I followed you, copied it instead of it is for i686, and did finish the "make menuconfig". then "make all" , error message like:
# make all
CHK include/linux/version.h
UPD include/linux/version.h
CC init/main.o
In file included from include/linux/fs.h:214,
from include/linux/proc_fs.h:6,
from init/main.c:17:
include/linux/dcache.h: In function âdgetâ:
include/linux/dcache.h:315: error: âub_dentry_onâ undeclared (first use in this function)
include/linux/dcache.h:315: error: (Each undeclared identifier is reported only once
include/linux/dcache.h:315: error: for each function it appears in.)
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
Any suggestion?
Sam
[Updated on: Thu, 08 February 2007 18:43] Report message to a moderator
|
|
|
|
|
|
Re: yaird error when apply debian kernel image on sparc machine. [message #10146 is a reply to message #10135] |
Fri, 09 February 2007 16:20 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
zszhu
Messages: 13 Registered: February 2007
|
Junior Member |
|
|
dev wrote on Fri, 09 February 2007 03:33 | yes. just open .config file in any editor and make sure the following OVZ options have these values:
#
# OpenVZ
#
CONFIG_VE=y
CONFIG_VE_CALLS=m
CONFIG_VZ_GENCALLS=y
CONFIG_VE_NETDEV=m
CONFIG_VE_ETHDEV=m
CONFIG_VZ_DEV=m
CONFIG_VE_IPTABLES=y
CONFIG_VZ_WDOG=m
CONFIG_SIM_FS=m
CONFIG_VZ_QUOTA=m
# CONFIG_VZ_QUOTA_UNLOAD is not set
CONFIG_VZ_QUOTA_UGID=y
#
# User resources
#
CONFIG_USER_RESOURCE=y
CONFIG_USER_RSS_ACCOUNTING=y
# CONFIG_UBC_IO_ACCT is not set
CONFIG_USER_SWAP_ACCOUNTING=y
CONFIG_USER_RESOURCE_PROC=y
CONFIG_UBC_DEBUG=y
# CONFIG_UBC_DEBUG_IO is not set
# CONFIG_UBC_DEBUG_VMRSS is not set
CONFIG_UBC_DEBUG_KMEM=y
# CONFIG_UBC_KEEP_UNUSED is not set
# CONFIG_UBC_DEBUG_ITEMS is not set
# CONFIG_UBC_UNLIMITED is not set
after that issue make oldconfig and make again
|
Now the topic seems changed to "how to make a kernel for sparc debian".
I strictly followed your suggestion. briefly:
1: get the 2.6.16 source code and put it in /usr/src
2: get the 2.6.16 patch then apply it,
3: copy the .config from /boot/config-2.6.18-openvz-sparc64-smp,
it is similar to what you mentioned before, only CONFIG_UBC_DEBUG not defined.
then I `make oldconfig`, after which all of these parameters deleted from .config, only left ones are:
#grep -i CONFIG_vz .config
CONFIG_VZ_QUOTA=m
# CONFIG_VZ_QUOTA_UNLOAD is not set
CONFIG_VZ_QUOTA_UGID=y
Then the `make all` give out the same ugly error messages:
[I] CC init/main.o
In file included from include/linux/sched.h:12,
from include/linux/module.h:10,
from init/main.c:16:
include/linux/jiffies.h: In function âclock_t_to_jiffiesâ:
include/linux/jiffies.h:397: warning: ISO C90 forbids mixed declarations and code
In file included from include/linux/fs.h:214,
from include/linux/proc_fs.h:6,
from init/main.c:17:
include/linux/dcache.h: In function âdgetâ:
include/linux/dcache.h:315: error: âub_dentry_onâ undeclared (first use in this function)
include/linux/dcache.h:315: error: (Each undeclared identifier is reported only once
include/linux/dcache.h:315: error: for each function it appears in.)
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2[/I]
help .
Sam
|
|
|
|
|
|
Re: yaird error when apply debian kernel image on sparc machine. [message #10384 is a reply to message #10364] |
Fri, 16 February 2007 20:39 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
zszhu
Messages: 13 Registered: February 2007
|
Junior Member |
|
|
mastersherin wrote on Thu, 15 February 2007 22:42 | Hi Sam,
So now everything is fine ,I will add the "lib64ncurses5-dev" to the documentation soon . I think it only needs for spark64.
Thank you
|
I downloaded the kernel patch http://download.openvz.org/kernel/devel/028test010.1/patches /patch-ovz028test010.1-combined.gz and kernel source http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar .bz2
every thing ok, patching, menuconfig, making deb package(header and image), installing deb packages(header and image) , good, modules installed, then
reboot, boom !!! I got error message
"kernel panic -- not syncing, irrecoverable deferred error trap"
what is the problem?
I could not access silo yet.
Sam
[Updated on: Fri, 16 February 2007 20:40] Report message to a moderator
|
|
|
|
|
|