Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
9Activity
×
0 of .
Results for:
No results containing your search query
P. 1
Set VPN Windows Xp

Set VPN Windows Xp

Ratings: (0)|Views: 270|Likes:
Published by achmadzulkarnaen

More info:

Published by: achmadzulkarnaen on Apr 05, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, DOCX, TXT or read online from Scribd
See More
See less

11/19/2012

pdf

text

original

 
Skip to main content. »The Guide|Manual pages|Mailing listsandArchives|CVS repository|Reportor querya  bug |Software Packages
 
Search L:http://www.Ne NetBSD.org www.NetBSD.oSearch
  Navigation:Home|About|Gallery|Download|Documentation|Support|Community| Ports 
NetBSD Documentation: Kernel
Frequently Asked Kernel Questions
y
 
W
here to download the kernel source 
y
 
How to build a kernel 
y
 
W
hat exactly is a GENERIC kernel? 
y
 
W
hat does mclpool limit reached: increase NMBCLUSTERS mean? 
y
 
W
hat does
W
ARNING: SPL NOT LO
W
ERED ON SYSCALL EXIT mean? 
y
 
W
hat does Stray interrupt on IRQ 7 mean? 
y
 
W
hy are kernels compiled with -msoft-float 
y
 
ernel compiles on low memory machine seem very slow 
y
 
Problems compiling a -current kernel 
y
 
Debugging a kernel crash dump 
y
 
Getting backtraces when debugging a kernel crash dump 
y
 
W
hat is DDB and what can I do in it? 
y
 
Generating a kernel crash dump 
y
 
Adding a kernel to a boot floppy 
y
 
I'm having trouble mounting the SCSI device for a new partition I've just created.
W
hat'sup with this device-numbering scheme? 
Frequently Asked Hardware Questions
y
 
W
hat does device not configured mean? 
y
 
Debugging ATAPI or ATA (IDE) devices 
y
 
Debugging USB devices 
y
 
Recognising a new PnP device 
y
 
Recognising a new PCMCIA device 
y
 
Is PLIP (Parallel Line IP) supported 
y
 
W
hat is UBC? 
Further reading
 
y
 
 NetBSD specific documentation 
y
 
Other online documentation 
Frequently Asked Kernel Questions
Where to download the kernel source (top)
Official release source
To compile a custom kernel for the same release as you already have installed you only need thekernel
syssrc.tgz
file. For a given release this is held in the gzipped tarfile'source/sets/syssrc.tgz' under the main directory for that release. For example NetBSD 3.1 kernelsource is in the file/pub/NetBSD/NetBSD-3.1/source/sets/syssrc.tgz.If you have a NetBSD CD-Rom, the 'source/syssrc.tgz' file should be included. The source can be extracted anywhere, though the traditional location is inside /usr/src. To extract use "
cd / ;tar xvzpf <FILENAME> 
".
'
Bleeding edge
'
-current source, for the adventurous only!
The latest kernel sources are available from ftp.NetBSD.org or one of the mirrors in the directory/pub/NetBSD/NetBSD-current/src/sys/. To compile a kernel you should download the followingfrom/pub/NetBSD/NetBSD-current/tar_files/src:
y
 
config.tar.gz(Source for theconfig(8)program)
y
 
sys.tar.gz(Complete kernel source for all architectures)You should first build and install the 'config' program, in case it has changed since the versionyou are running. Since -current is on the active edge of NetBSD development, there can be problems compiling a -current kernel. You are recommended to use source from anOfficialReleaseuntil you are familiar with the configuration process.
Downloading the kernel source from a certain date
You might need to do this if you have installed a snapshot on your machine and need to rebuildthe kernel (and the -current kernel is too recent). Follow the directions on how toTrack NetBSD-current with anoncvs.
How to build a kernel (top)
The procedure below applies only if you are compiling the kernel of the same version of NetBSDthat you have already installed. Updating to a newer kernel of the same major version should bealso fine using this procedure, but if you update a -current kernel, or want to update to a newer major release, compiling a new toolchain first is required. Follow the description of building thetoolchain and new kernel with the
build
.sh
script in the documentation about tracking -current:
 
y
 
Updating an existing system(only the
build
.sh too
l
s
and
build
.sh kerne
l
steps areneeded)
y
 
Crosscompiling NetBSD with build.sh 
y
 
Building the kernel using build.sh The steps to build a kernel are:1.
 
Ensure you have installed the Compilers (
comp.tgz
) set that came with your base system.2.
 
Download and extract the kernel source (see
W
here to download kernel source).3.
 
"
c
d
/
u
sr/src/sys/arch/<ARCH>/conf
", where <ARCH> is your machine'sarchitecture such as 'i386', 'sparc', 'mac68k'.4.
 
"
cp GENERIC <MYCONF>
", where <MYCONF> is your name for this configuration. Youcould use your hostname, the machine type, or even your first name.
eep to letters,numbers, and _ characters.5.
 
E
dit <MYCONF>
. Initially you can skip this stage. You can remove drivers for CPUtypes, hardware, and devices you do not have or use, or even enable options, such as oni386 commenting out the 'pc0' line and enabling the 'vt0' to gain virtual consoles. A goodstart to determining what hardware drivers you definitely need to keep is to read theoutput of "
dmesg
" or "
d
mesg | grep ' at '
". For every line containing '<XXX> at<YYY>' you need to keep the entries for both <XXX> and <YYY>. You should alsoread
options(4)
for information on the different kernel configuration options.6.
 
run ³
conf
i
g <MYCONF>
´
, which will generate the kernel build directory for <MYCONF>.7.
 
"
c
d
../comp
il
e/<MYCONF>
" changes to the kernel build directory.8.
 
"
make
d
epen
d
" generates a '.depend' file that enables the make program to see whatneeds to be rebuilt (at this point it will be everything!).9.
 
"
make
" will compile the kernel. If all goes well you will be left with a 'netbsd' kernel.This may take some significant time if you are on a VAX, some time on a big Alpha, andsomewhere in-between for the rest of us.10.
 
"
mv /net
b
s
d
/net
b
s
d
.o
ld
; mv/
u
sr/src/sys/arch/<ARCH>/comp
il
e/<MYCONF>/net
b
s
d
/
" saves your current kernel,(
very
important), and moves the new kernel ready to be booted.11.
 
"
re
b
oot
" should reboot using your new kernel - the boot messages should contain a lineof the form: 'NetBSD <VERSION> (<MYCONF>) #0: <COMPILE_DATE>'12.
 
I
f you have any problems:
You should boot your 'netbsd.old' kernel in single user mode.The procedure varies from port to port depending on the boot procedure, but on i386 itwould be:a.
 
P
ress
SP
 ACE
when the first NetBSD message appears
  b.
 
"
 boo
t net
 b
sd.
ol
d -s
"Then swap your kernel back:c.
 
"
fsck /
"d.
 
"
 m 
ou
nt /
"e.
 
"
 mv net
 b
sd.
ol
d net
 b
sd 
"f.
 
"
exit
"

Activity (9)

You've already reviewed this. Edit your review.
1 hundred reads
yogeshdhuri22 liked this
ysaiasv liked this
Idris Khan liked this
harumanjaya liked this
malendra liked this
malendra liked this
maromach liked this
kalyan340 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->