`
paofan
  • 浏览: 389414 次
社区版块
存档分类
最新评论

How to build own kernel for CoLinux?

阅读更多
Q19. How do I build my own kernel for CoLinux?

The kernel included with CoLinux should work for most people, but some people mi
ght need to roll their own. Here is a quick overview of how to make a Linux-2.4.
27 kernel that works with CoLinux. I'm running Gentoo, and I'm building from wit
hin my coLinux environment, but the general idea should work for everybody.

Set up a development environment with GCC 3.3.3 (or earlier). The 2.4.27 and ear
lier kernel sources won't compile with GCC 3.4.1. Under Gentoo, you can install
GCC 3.3.3 with "emerge '=gcc-3.3.3'", and then you can switch between GCC 3.4.1
and 3.3.3 with gcc-config.

Get 2.4 kernel sources and extract them to /usr/src. CoLinux 0.6.1 was released
against 2.4.26, so that is the safest version, but I've been using 2.4.27 for a
while now with no problems. Under Gentoo, use "emerge vanilla-sources".

Get the coLinux-0.6.1 source tarball. Extract it on your development platform.

Patch the kernel with the coLinux patch:

cd /usr/src/linux

patch -p1 < (extraction-point)/colinux-20040529/patch/linux

Fix anything that didn't patch correctly. On my machine, /Makefile didn't patch
(just edit Makefile and add "-co-0.6.1" at the end of the "EXTRAVERSION = " line
), and drivers/block/Makefile didn't patch (add "obj-$(CONFIG_BLK_DEV_PBD) += co
bd.o" somewhere).

Copy the default config from the coLinux sources:

cd /usr/src/linux

cp (extraction-point)/colinux-20040529/conf/linux-config .config

Configure your kernel as needed with menuconfig ("make menuconfig").

You probably don't want to mess with Processor Type - coLinux can crash if the k
ernel tries to use processor features that coLinux isn't expecting the kernel to
mess with. You can enable /dev/cpu/*/cpuid, but I suggest not messing with anyt
hing else. Make sure to leave COPIC Support enabled.

Under General Setup, don't enable PCI, ISA, EISA, MCA, etc., unless you want coL
inux and Windows to fight over hardware. Do leave Cooperative Mode enabled.

Under Block Devices, leave coLinux block device support enabled.

Under Network Device Support, leave Coooperative Virtual Ethernet driver support
enabled.

Under Console Drivers, leave coLinux Pseudo-VGA text console enabled.

For Gentoo, make sure to enable /proc, /dev, automatically mount /dev, and disab
le /dev/pts.

Apply any other patches as needed. I applied the CIFS VFS patch to replace the d
ated SMBFS module.

make dep && make vmlinux modules modules_install

Back up the vmlinux that was installed with coLinux.

Copy /usr/src/linux/vmlinux to your Windows coLinux directory (overwrite the ori
ginal vmlinux that was installed with coLinux).

Restart coLinux.

http://www.linuxfans.org/bbs/viewthread.php?tid=119238
分享到:
评论

相关推荐

    coLinux 0.7.9 DEVTMPFS

    I tried to find one but failed, I had to build one myself. Share with you. HangUp Screen: http://zhidao.baidu.com/question/536924335.html --- Release Notes --- Purpose: Linux 2.6.33.7 CONFIG_...

    Colinux代码简单分析

    Colinux,全称为Cooperative Linux,是一个开源项目,允许用户在Windows系统上运行Linux操作系统内核。它通过在用户空间模拟Linux内核的部分功能来实现这一目标,而不是像虚拟机那样在完整隔离的环境中运行。这里...

    使用colinux在windows上虚拟linux

    标题“使用colinux在Windows上虚拟Linux”指向的是一个教程,旨在教用户如何在Windows操作系统中利用CoLinux(协同Linux)来创建一个虚拟的Linux环境。CoLinux是一种独特的解决方案,它允许用户在不借助像VMware或...

    colinux安装包(安装说明)

    **科隆Linux(CoLinux)** 是一个独特的开源项目,它允许用户在Windows操作系统上运行Linux内核,而无需虚拟机。这个系统是通过在Windows系统内部层与Linux内核进行交互来实现的,使得用户可以在同一台电脑上同时...

    coLinux for windows

    coLinux编译工具...................................

    扩大colinux虚拟机硬盘大小的方法

    在IT领域,虚拟化技术是不可或缺的一部分,而CoLinux(协同Linux)则是一种允许用户在Windows系统上运行Linux内核的工具。CoLinux通过在Windows系统中创建虚拟硬盘(image文件)来模拟Linux分区,因此当虚拟机的硬盘...

    coLinux-0.7.3程序的源代码(700k)

    colinux的源代码,anlinux这个程序实现的基础就是colinux,好像andlinux也就是在colinux的基础上增加了一些插件和进行了一些优化而已,colinux是一个不错的程序,尤其是对于我们程序员来讲,它实现了linux和windows操作...

    coLinux-0.7.9

    CoLinux(Cooperative Linux 的缩写)是第一种免费使用和开源的解决方案,它让Linux更好的运行在Microsoft Windows 本机系统下。通常的, colinux是Linux内核使自己友好的和其它操作系统共同运行在一台机器上的一条...

    Colinux架设

    详细说明了Colinux系统在WINXP上的安装及配置,是学习Colinux环境搭建的不可多得的说明档

    coLinux-0.7.5.exe

    coLinux-0.7.5.exe,colinux是windows下的一个短小精悍的linux虚拟机

    coLinux-0.7.9压缩的EXE文件

    CoLinux(Cooperative Linux 的缩写)是第一种免费使用和开源的解决方案,它让Linux更好的运行在Microsoft Windows 本机系统下。通常的, colinux是Linux内核使自己友好的和其它操作系统共同运行在一台机器上的一条...

    coLinux-0.7.7.exe

    An optimized virtual Linux system for Windows

    coLinux-0.7.3

    CoLinux(Cooperative Linux 的缩写)是一种免费使用和开源的解决方案,它让Linux更好的运行在Microsoft Windows 本机系统下。

    colinux0.7.4 最快的虚拟机

    可以引导启动LINUX镜像系统,也可启动本地的LINUX系统 速度比VMWARE快很多

    colinux安装指南

    ### Colinux安装指南详解 #### 一、引言 随着嵌入式开发需求的增加,开发者需要一个高效、稳定的Linux开发环境。Colinux作为一种轻量级的解决方案,可以在Windows平台上快速构建一个完整的Linux开发环境。本文将...

    colinux虚拟环境安装——在windows系统下怎么安装linux

    标题 "colinux虚拟环境安装——在windows系统下怎么安装linux" 涉及的知识点是使用CoLinux在Windows操作系统上创建一个Linux虚拟环境。CoLinux(协同Linux)是一种特殊的Linux发行版,它允许用户在不借助传统虚拟机...

    Fedora coLinux-开源

    Fedora coLinux是功能齐全的coLinux发行版。 与coLinux官方站点上提供的许多软件包不同,它提供了与Fedora core 6捆绑在一起的coLinux,具有完整的网络功能,并且易于安装。

    Colinux_FAQ

    colinux的faq资料合集,关于colinux的配置问题、安装问题

Global site tag (gtag.js) - Google Analytics