OpenVZ Forum


Home » General » Support » *CLOSED* yaird error when apply debian kernel image on sparc machine.
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 messageGo to previous message
zszhu is currently offline  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]


Shocked help Shocked .

Sam


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *CLOSED* CPU limits not working
Next Topic: anyone successfully using openVPS in a VE?
Goto Forum:
  


Current Time: Sun Aug 17 03:58:44 GMT 2025

Total time taken to generate the page: 0.15415 seconds