Created
October 23, 2011 08:06
-
-
Save shamun/1307036 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Kernel Fedora transplantation]@normal surgery | |
; target: 3 files ; | |
$ cd /boot; ls | |
initramfs-2.6.40.6-0.fc15.i686.img << bring it from Fedora | |
vmlinuz-2.6.40.6-0.fc15.i686 << bring it from fedora | |
; last file ; | |
$ cp /etc/mkinitcpio.d/linux.preset fedora.preset | |
$ cd /etc/mkinitcpio.d; ls | |
example.preset fedora.preset kernel26-lts.kver kernel26-lts.preset linux.preset | |
; file tuning ; | |
$ cat fedora.preset | |
# mkinitcpio preset file for the 'linux' package | |
ALL_config="/etc/mkinitcpio.conf" | |
ALL_kver="/boot/vmlinuz-2.6.40.6-0.fc15.i686" | |
PRESETS=('default' 'fallback') | |
#default_config="/etc/mkinitcpio.conf" | |
default_image="/boot/initramfs-2.6.40.6-0.fc15.i686.img" | |
#default_options="" | |
#fallback_config="/etc/mkinitcpio.conf" | |
fallback_image="/boot/initramfs-linux-fallback.img" | |
fallback_options="-S autodetect" | |
; Grub setup ; | |
$ vim /boot/grub/menu.lst | |
# (0) Arch Linux | |
title Arch Linux | |
root (hd0,0) | |
#kernel /vmlinuz-linux root=/dev/disk/by-uuid/15bd099c-22aa-4fa9-998e-964f5e3fedd8 ro vga=773 quiet splash | |
#initrd /initramfs-linux.img | |
#kernel /vmlinuz26-lts root=/dev/disk/by-uuid/15bd099c-22aa-4fa9-998e-964f5e3fedd8 ro vga=773 quiet | |
#initrd /kernel26-lts.img | |
kernel /vmlinuz-2.6.40.6-0.fc15.i686 root=/dev/disk/by-uuid/15bd099c-22aa-4fa9-998e-964f5e3fedd8 ro vga=773 quiet | |
initrd /initramfs-linux-fallback.img | |
; Grub apply ; | |
[root@myhost ~]# mkinitcpio -p fedora | |
==> Building image from preset: 'default' | |
-> -k /boot/vmlinuz-2.6.40.6-0.fc15.i686 -c /etc/mkinitcpio.conf -g /boot/initramfs-2.6.40.6-0.fc15.i686.img | |
==> Starting build: 2.6.40.6-0.fc15.i686 | |
-> Parsing hook: [base] | |
-> Parsing hook: [udev] | |
-> Parsing hook: [autodetect] | |
-> Parsing hook: [plymouth] | |
-> Parsing hook: [pata] | |
-> Parsing hook: [scsi] | |
-> Parsing hook: [sata] | |
-> Parsing hook: [filesystems] | |
-> Parsing hook: [usbinput] | |
==> Generating module dependencies | |
==> Creating gzip initcpio image: /boot/initramfs-2.6.40.6-0.fc15.i686.img | |
==> Image generation successful | |
==> Building image from preset: 'fallback' | |
-> -k /boot/vmlinuz-2.6.40.6-0.fc15.i686 -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect | |
==> Starting build: 2.6.40.6-0.fc15.i686 | |
-> Parsing hook: [base] | |
-> Parsing hook: [udev] | |
-> Parsing hook: [plymouth] | |
-> Parsing hook: [pata] | |
-> Parsing hook: [scsi] | |
-> Parsing hook: [sata] | |
-> Parsing hook: [filesystems] | |
-> Parsing hook: [usbinput] | |
==> Generating module dependencies | |
==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img | |
==> Image generation successful | |
[VGA2USB]@tested in Fedora 15 | |
Step 1: download http://www.epiphan.com/downloads/linux/vga2usb-3.26.0.25-2.6.40-4.fc15.i686.tbz | |
Step 2: ls | |
Config.mak drvwrapper.o vga2usb-3.26.0.25-2.6.40-4.fc15.i686.tbz | |
drvwrapper.c Makefile vga2usb_bins.o drvwrapper.h modules.order | |
vga2usb.ko drvwrapper_lib.c Module.symvers vga2usb.mod.c | |
drvwrapper_lib.h README vga2usb.mod.o drvwrapper_lib.o v2u_id.h | |
vga2usb.o | |
Step 3: make; make install | |
Step 4: cp -R vga2usb.ko /lib/modules/2.6.40.6-0.fc15.i686/ | |
Step 5: depmod -a | |
Step 6: modprobe vga2usb | |
Step 7: dmesg | |
[47260.759480] Epiphan Systems frame grabber driver version 3.26.0.25 loaded | |
[47260.780910] VGA2USB is now attached to vga2usb-192 | |
[47260.780949] usbcore: registered new interface driver vga2usb | |
[47260.782555] usb 1-3: USB disconnect, device number 5 | |
[47260.782615] vga2usb: Disconnect | |
[47262.504079] usb 1-3: new high speed USB device number 6 using ehci_hcd | |
[47262.619009] usb 1-3: New USB device found, idVendor=5555, idProduct=1110 | |
[47262.619052] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | |
[47262.619061] usb 1-3: Product: VGA to USB | |
[47262.619068] usb 1-3: Manufacturer: Epiphan | |
[47262.619079] usb 1-3: SerialNumber: V2U107759 | |
[47262.620308] VGA2USB is now attached to vga2usb-192 | |
Step 8: ll /dev/vide<tab> video0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment