New USB implementation committed
[ikiwiki.git] / docs / developer / NewkernelBoot.mdwn
1 Describe Development/NewkernelBoot here.
2
3
4
5 ----
6
7  **Installing multiple kernels on VMware** 
8
9
10
11 This information is helpful if you have DragonFly BSD installed on your machine using the bootable CD. Now you have modified the kernel and want to use this modified kernel to boot the machine. This is a pretty straight forward way to install:
12
13
14
15
16 * In the virtual machine settings "Add another hard disk to your currently installed machine".
17
18
19 * Load the Bootable CD in VMware and you should boot from the CD.
20
21
22 * Boot the virtual machine and login as "installer" as you did during the first time you install DragonFly on virtual machine.
23
24
25 * Enter "install DragonFly BSD" option. It will ask for a partition and you should see one for the newly added disk space, normally its is "ad1". Remember this name it required later for mounting the disk.
26
27
28 * Select that partition and go ahead with formatting that disk.
29
30
31 * Once the formatting is done it will ask whether you want to go ahead with installation, Press Esc to quit installation.
32
33
34 * Now you have a formatted disk on which you can install your own kernel.
35
36
37 * Reboot the machine ***not from the CD*** and you should see two options for booting, only one will work now. Select the "default" and now login as root.
38
39
40 * Now we need to mount the new partition.
41
42
43 * If during formatting the name was "ad1" then ***"disklabel ad1s1" ***will show you all the partitions created.
44
45
46 * mount /dev/ad1s1a /mnt
47
48
49 * mkdir /mnt/var
50
51
52 * mkdir /mnt/usr
53
54
55 * mkdir /mnt/tmp
56
57
58 * mkdir /mnt/home
59
60
61 * mount /dev/ad1s1d /mnt/var
62
63
64 * mount /dev/ad1s1e /mnt/usr
65
66
67 * mount /dev/ad1s1f /mnt/tmp
68
69
70 * mount /dev/ad1s1g /mnt/home
71
72
73 * Now we are ready to install DragonFly on this partition.
74
75
76 * cd /usr/src  or wherever your source code is.
77
78
79 * make world DESTDIR=/mnt
80
81
82 * cd etc
83
84
85 * make distribution DESTDIR=/mnt
86
87
88 * cp /etc/fstab /mnt/etc
89
90
91 * make buildkernel KERNCONF=GENERIC
92
93
94 * make installkernel KERNCONF=GENERIC DESTDIR=/mnt
95
96
97 * You have installed your kernel on this new partition.
98
99
100 * reboot your system.
101
102
103 * Now select the other option by default its " Drive 1" and you should see the your kernel booting.
104
105
106
107 ----
108