摘要: [转]修复ubutnu12.04+win7的grub2引导原文位置:http://wenku.baidu.com/view/b6b7c9926bec0975f465e2f8.htmlps:我使用的是ubuntu12.04+win7操作系统,但是在重装win7后,ubuntu已经被隐藏了。因此需修复grub2。依据原文进行修改。使用liveCD,进入tryubuntu,然后等待系统初始完成。打开虚拟终端,输入如下内容:#sudo-i#fdisk-l可在此处找到到一个linux的分区,如果你不清楚自己的ubuntu安装在哪个分区位置,这个就可以看到。#mount/dev/sda7/mnt我的ubu 阅读全文
posted @ 2013-10-17 16:44 jeremyatchina 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 前提:已裝好Fedora 6 core 2.6.18 ,在Fedora 6 中compile linux kernel。1.下載 Fedora 6 core 2.6.18 http://www.kernel.org/ ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz22.解壓縮linux-2.6.18.tar.bz2 ,進入解壓縮的目錄make cleancp /usr/src/kernels/2.6.18-1.2798.fc6-i586/.config .make oldconfigmake -j4 ... 阅读全文
posted @ 2013-10-17 12:08 jeremyatchina 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 初探linux中断系统(2)中断系统初始化的过程用来初始化中断系统的函数位于arch/x86/kernel/irqinit.c,定义如下void __init init_IRQ(void){ int i; /* * On cpu 0, Assign IRQ0_VECTOR..IRQ15_VECTOR's to IRQ 0..15. * If these IRQ's are handled by legacy interrupt-controllers like PIC, * then this configuration will likely be sta... 阅读全文
posted @ 2013-10-17 10:20 jeremyatchina 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 1. 重要接口LDD上说,“内核维护了一个中断信号线的注册表,该注册表类似于I/O端口的注册表。模块在使用中断前要先请求一个中断通道(或者中断请求IRQ),然后在使用后释放该通道。”撇开系统如何遍历各个设备进行初始化,上面两句话说的实际上就是指两个接口函数:externint __must_check request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, constchar*name, void*dev); externvoid free_irq(unsigned int, void*);顾名思义,以 阅读全文
posted @ 2013-10-17 10:19 jeremyatchina 阅读(402) 评论(0) 推荐(0) 编辑