OpenVZ Forum - RDF feed
type: channel
items: *CLOSED* yaird error when apply debian kernel image on sparc machine.
items: Re: yaird error when apply debian kernel image on sparc machine.
items: Re: *CLOSED* yaird error when apply debian kernel image on sparc machine.

*CLOSED* yaird error when apply debian kernel image on sparc machine.
type: item
description: 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
creator: zszhu
date: 2007-02-06T20:07:11-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: mmm, what exact command do you use to build/install and create initrd ramdisk? have you done # make install before creating initrd?
creator: dev
date: 2007-02-07T15:09:00-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: I first installed yaird deb package using dpkg command. When installing yaird, there is a error message showed conflict with lvm2, lvm-common packages. I removed these two lvm-related packages and got yaird installed. Then I downloaded debian image from http://download.openvz.org/kernel/debian/etch/linux-headers- 2.6.18-openvz-sparc64-smp_028test007.1d1-1_sparc.deb and http://download.openvz.org/kernel/debian/etch/linux-image-2. 6.18-openvz-sparc64-smp_028test007.1d1-1_sparc.deb . when using dpkg to install this kernel image. this is the part of the error message poped up. Thanks. Sam
creator: zszhu
date: 2007-02-07T15:26:34-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: Is it a 32bit server or 64bit server. You are using sparc64 .Please check the server configuration
creator: mastersherin
date: 2007-02-07T17:10:52-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: uname -m result: sparc64. It is a sunblade 1000 machine. HN kernel version 2.6.15-26-sparc64-smp so I think this is a 64 bit machine. Sam
creator: zszhu
date: 2007-02-07T17:26:11-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: mmmm... is it possible to get an access to take a look? (via PM or email only!). if not... let's check what value has CONFIG_DEFCONFIG_LIST in your current kernel configuration. For this, find the corresponding /boot/config-<kernel-uname> file and check the parameter.
creator: dev
date: 2007-02-07T17:45:33-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: 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
creator: zszhu
date: 2007-02-07T19:22:22-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: zszhu wrote on Wed, 07 February 2007 22:22 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. zszhu wrote on Wed, 07 February 2007 22:22 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. maybe that's the problem :/ can you try to copy /boot/config-2.6.18-openvz-sparc64-smp to /lib/modules/2.6.18-openvz-sparc64-smp/.config ? if it doesn't help, can you try recompiling kernel yourself?
creator: dev
date: 2007-02-08T08:18:54-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: 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
creator: zszhu
date: 2007-02-08T16:10:47-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: Can you recompile the kernel insted of using rpm . I think the following link will be helpful http://sherin.110mb.com/vps/
creator: mastersherin
date: 2007-02-08T16:23:05-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: Uhh... I asked debian guys, but in case it doesn't matter for you, I can guide you through the process of distro-independant procedure (I'm not a debian user ). Sure, I will post their answer to you here. Check our wiki page on HOWTO build a kernel: http://wiki.openvz.org/Kernel_build#Rebuilding_kernel_from_s ources
creator: dev
date: 2007-02-08T16:29:34-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: I read it carefully. I can download the kernel 2.6.16 from kernel.org, and the corresponding patch from openvz, but no *.config.ovz for SPARC64 available on openvz. I do not have a .config available. I tried to use the old config for 2.6.15 instead, not working. Can you find a *.config.ovz for SPARC64 on openvz.org? Thanks. Sam
creator: zszhu
date: 2007-02-08T16:54:10-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: dev wrote on Thu, 08 February 2007 11:29 Uhh... I asked debian guys, but in case it doesn't matter for you, I can guide you through the process of distro-independant procedure (I'm not a debian user ). Sure, I will post their answer to you here. That would be cool. I really appreciate it. dev wrote on Thu, 08 February 2007 11:29 Check our wiki page on HOWTO build a kernel: http://wiki.openvz.org/Kernel_build#Rebuilding_kernel_from_s ources But there is no sample config (*.config.ovz) for sparc64 available on openvz.org, how could I `make menuconfig` then . Now only debian image package available. Thanks Sam
creator: zszhu
date: 2007-02-08T16:59:15-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: 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
creator: mastersherin
date: 2007-02-08T17:48:54-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: 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
creator: zszhu
date: 2007-02-08T18:40:36-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: Hi Sam Zhu, you can get a vaild OpenVZ sparc64 kernel-config file from your linux-image-2.6.18-openvz-sparc64-smp_028test007.1d1-1_sparc .deb copy it to your linux-kernel-tree # cp /boot/config-2.6.18-openvz-sparc64-smp /usr/src/<openvz-kernel-tree>/.config Modify your config # make menuconfig and build new sparc64-kernel ...
creator: curx
date: 2007-02-08T19:00:17-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: yes, I followed you, copied the one /boot/config-2.6.18-openvz-sparc64-smp , and did finish the "make menuconfig". then "make all" , same 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 seems some code error in dcache.h file, Any suggestion? thanks Sam
creator: zszhu
date: 2007-02-08T19:18:04-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: 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
creator: dev
date: 2007-02-09T08:33:48-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: 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 r…
creator: zszhu
date: 2007-02-09T16:20:33-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: wait, I don't suggest you to take 2.6.16 kernel! 2.6.18!!! 2.6.16 never supported SPARC! can you provide me login to your machine? I can make it quickly we also provided sparc64 machine to debian-openvz maintainer, so I hope it will be fixed in official repository also.
creator: dev
date: 2007-02-09T16:49:04-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: dev wrote on Fri, 09 February 2007 11:49 wait, I don't suggest you to take 2.6.16 kernel! 2.6.18!!! 2.6.16 never supported SPARC! can you provide me login to your machine? I can make it quickly we also provided sparc64 machine to debian-openvz maintainer, so I hope it will be fixed in official repository also. Thanks. Can you just give me the link to download the 1: kernel source code 2: matching patch source code 3: matching .config file. all these 3 should be matching. the ones I downloaded from openvz.org or kernel.org simply do not match. From the links on that page http://openvz.org/download/kernel/devel/, I download the kernel patch http://download.openvz.org/kernel/devel/028test015.1/patches /patch-ovz028test015.1-combined.gz and kernel source http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar .bz2 after apply the patch using 'gzip -dc patch-ovz028test015.1-combined.gz |patch -p1' I got error when 'make menuconfig' error message: ..... ..... scripts/kconfig/lxdialog/checklist.c:290: error: âKEY_LEFTâ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:291: error: âKEY_RIGHTâ undeclared (first use in this function) make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1 make[1]: *** [menuconfig] Error 2 make: *** [menuconfig] Error 2 My machine is an sparc64 sunblade 1000. Thanks. wait -- it works, you need to install package lib64ncurses5-dev . hehe . This needs to be added in the documentation !!! Sam
creator: zszhu
date: 2007-02-15T15:36:09-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: 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
creator: mastersherin
date: 2007-02-16T03:42:57-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: 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
creator: zszhu
date: 2007-02-16T20:39:24-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: will recheck it today. can you send plz your .config file you used to compile the kernel?
creator: dev
date: 2007-02-19T09:08:07-00:00

Re: yaird error when apply debian kernel image on sparc machine.
type: item
description: As this thread started to be really huge, I created a new thread http://forum.openvz.org/index.php?t=tree&goto=10455& #msg_10455 and added new information there. Please, answer on my questions there. Thanks.
creator: Vasily Tarasov
date: 2007-02-19T13:17:43-00:00

Re: *CLOSED* yaird error when apply debian kernel image on sparc machine.
type: item
description: Hi The issue reported is a bug in yaird. It was fixed in version 0.0.12-15. See the following links for more information: http://lists.alioth.debian.org/pipermail/yaird-devel/2006-Ju ne/000466.html http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375813 It is a result of the -mm patch that is likely to have been incorporated into the kernel by now. Regards, // Ola
creator: opalsys
date: 2007-02-25T20:36:48-00:00