IP frag need

2004-05-19 Thread Dmitry A. Bondareff
Hello hackers!

I have two office in the Internet.
And now I trying to make VPN between it.

I using mpd for it.


Client --- (mtu=1500) FreeBSD (mtu=1024) == VPN over Internet
== (mtu=1024)FreeBSD (mtu=1500)--- WindowsNT

Client trying to use mounted disk from WindowsNT

11.8.24.25 - WindowsNT
11.8.11.1 - FreeBSD

tcpdump info:
17:26:55.100097 11.8.24.25.139  11.8.11.1.1049: tcp 1460 (DF)
17:26:55.100175 11.8.11.1  11.8.24.25: icmp: 11.8.11.1 unreachable - need
to frag (mtu 1024) (DF)
17:26:57.287737 11.8.24.25.139  11.8.11.1.1049: tcp 1460 (DF)
17:26:57.287813 11.8.11.1  11.8.24.25: icmp: 11.8.11.1 unreachable - need
to frag (mtu 1024) (DF)

As you can see IP frag needed, but WindowsNT don't want to do it.

What I cat do on FreeBSD box to solve the problem ??

Dmitry.
(Sorry for my English)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IP frag need

2004-05-19 Thread Peter Pentchev
On Wed, May 19, 2004 at 12:22:41PM +0600, Dmitry A. Bondareff wrote:
 Hello hackers!
 
 I have two office in the Internet.
 And now I trying to make VPN between it.
 
 I using mpd for it.
 
 
 Client --- (mtu=1500) FreeBSD (mtu=1024) == VPN over Internet
 == (mtu=1024)FreeBSD (mtu=1500)--- WindowsNT
 
 Client trying to use mounted disk from WindowsNT
 
 11.8.24.25 - WindowsNT
 11.8.11.1 - FreeBSD
 
 tcpdump info:
 17:26:55.100097 11.8.24.25.139  11.8.11.1.1049: tcp 1460 (DF)
 17:26:55.100175 11.8.11.1  11.8.24.25: icmp: 11.8.11.1 unreachable - need
 to frag (mtu 1024) (DF)
 17:26:57.287737 11.8.24.25.139  11.8.11.1.1049: tcp 1460 (DF)
 17:26:57.287813 11.8.11.1  11.8.24.25: icmp: 11.8.11.1 unreachable - need
 to frag (mtu 1024) (DF)
 
 As you can see IP frag needed, but WindowsNT don't want to do it.
 
 What I cat do on FreeBSD box to solve the problem ??

If you are using a recent version of mpd, try putting the following line:
  set iface enable tcpmssfix
in your bundle definition in mpd.conf.

G'luck,
Peter

-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
No language can express every thought unambiguously, least of all this one.


pgpuxcUFWAXcZ.pgp
Description: PGP signature


Re: IP frag need

2004-05-19 Thread William M. Grim
Dmitry A. Bondareff wrote:
Hello hackers!
I have two office in the Internet.
And now I trying to make VPN between it.
I using mpd for it.
Client --- (mtu=1500) FreeBSD (mtu=1024) == VPN over Internet
== (mtu=1024)FreeBSD (mtu=1500)--- WindowsNT
Client trying to use mounted disk from WindowsNT
11.8.24.25 - WindowsNT
11.8.11.1 - FreeBSD
tcpdump info:
17:26:55.100097 11.8.24.25.139  11.8.11.1.1049: tcp 1460 (DF)
17:26:55.100175 11.8.11.1  11.8.24.25: icmp: 11.8.11.1 unreachable - need
to frag (mtu 1024) (DF)
17:26:57.287737 11.8.24.25.139  11.8.11.1.1049: tcp 1460 (DF)
17:26:57.287813 11.8.11.1  11.8.24.25: icmp: 11.8.11.1 unreachable - need
to frag (mtu 1024) (DF)
As you can see IP frag needed, but WindowsNT don't want to do it.
What I cat do on FreeBSD box to solve the problem ??
Dmitry.
(Sorry for my English)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]
 

Please send these types of questions to [EMAIL PROTECTED]  
I'm not an admin here, but I think that place would be more appropriate.

--
William Michael Grim
Student, Southern Illinois University at Edwardsville
Unix Network Administrator, SIUE, Computer Science dept.
Phone: (217) 341-6552
Email: [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Grub and FreeBSD 4.9

2004-05-19 Thread db
Hi all

I'm trying to get grub working on my FreeBSD 4.9 test-box. So far I've done:
cd /usr/ports/sysutils/grub
make install clean
mkdir /boot/grub
cp /usr/local/share/grub-0.94/i386-freebsd/* /boot/grub/
In /boot/grub I created a fil called menu.lst and wrote this in it:
default 0   # By default, boot the first entry.
timeout 5   # Boot automatically after 30 secs.

title FreeBSD
root   (hd0,0)
kernel /boot/loader

My box is just a test box with one harddisk, so I've made one huge / and then
given about 256 mb to swap.

I've read that the safest way to install grub is by making a bootdisk, boot
and run setup, so I made the disk:
 # cd /boot/grub
 # dd if=stage1 of=/dev/afd0 bs=512 count=1
 1+0 records in
 1+0 records out
 # dd if=stage2 of=/dev/afd0 bs=512 seek=1
 153+1 records in
 153+1 records out
And I booted on it just fine, but I can't install grub because it by default
dones't support ffs drives. I know there is a ffs_stage1_5 in /boot/grub, but
how do I use it?

Anyway I rebooted in FreeBSD and ran grub and made the install
 successfully, but then booting the system again I get an error 18. So how
 do I fix it?

I've also tried getting network support built into grub, but I can't figure
out which driver to use (FreeBSD use de0), any ideas?

Best regards
db
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub and FreeBSD 4.9

2004-05-19 Thread Steven Hartland
chainloader is your friend here I found as u correctly state it doesn't
seem to support ffs drives even though the devs seem to say it does.

Steve
- Original Message - 
From: db [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 11:41 AM
Subject: Grub and FreeBSD 4.9


 Hi all
 
 I'm trying to get grub working on my FreeBSD 4.9 test-box. So far I've done:
 cd /usr/ports/sysutils/grub
 make install clean
 mkdir /boot/grub
 cp /usr/local/share/grub-0.94/i386-freebsd/* /boot/grub/
 In /boot/grub I created a fil called menu.lst and wrote this in it:
 default 0  # By default, boot the first entry.
 timeout 5 # Boot automatically after 30 secs.
 
 title FreeBSD
 root   (hd0,0)
   kernel /boot/loader
 
 My box is just a test box with one harddisk, so I've made one huge / and then
 given about 256 mb to swap.
 
 I've read that the safest way to install grub is by making a bootdisk, boot
 and run setup, so I made the disk:
  # cd /boot/grub
  # dd if=stage1 of=/dev/afd0 bs=512 count=1
  1+0 records in
  1+0 records out
  # dd if=stage2 of=/dev/afd0 bs=512 seek=1
  153+1 records in
  153+1 records out
 And I booted on it just fine, but I can't install grub because it by default
 dones't support ffs drives. I know there is a ffs_stage1_5 in /boot/grub, but
 how do I use it?
 
 Anyway I rebooted in FreeBSD and ran grub and made the install
  successfully, but then booting the system again I get an error 18. So how
  do I fix it?
 
 I've also tried getting network support built into grub, but I can't figure
 out which driver to use (FreeBSD use de0), any ideas?
 
 Best regards
 db
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 



This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or 
entity to whom it is addressed. In the event of misdirection, the recipient is 
prohibited from using, copying, printing or otherwise disseminating it or any 
information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone 
(023) 8024 3137
or return the E.mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub and FreeBSD 4.9

2004-05-19 Thread db
On Wednesday 19 May 2004 12:43, you wrote:
 chainloader is your friend here I found as u correctly state it doesn't
 seem to support ffs drives even though the devs seem to say it does.

If I boot with the bootdisk I can loade FreeBSD (with the chainloader), but if 
I'm using grub on the disk I get:

--
GRUB loading stage1.5.


GRUB loading, pelase wait...
Error 18
--

I've edited the menu.lst to make sure FreeBSD is loaded with the chainloader, 
but I don't think that is the problem. Stage1.5 is not on the floppy, so 
maybe it is having problems finding it? If yes, do I have to reinstall 
FreeBSD and place /boot differently in order to make it work?

br
db
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub and FreeBSD 4.9

2004-05-19 Thread Stanislav Grozev
On Wed, May 19, 2004 at 12:47:34PM +0100, Steven Hartland wrote:
 Oh quite possibly I have the grub install on a linux partition.
 just creating a small boot partition of a format that grub can load
 should be good enough though. If someone else can find out
 how to get grub to load read an ffs partition I'd be certainly
 interested as well.

mine works fine. i am with 5-current (UFS2, but it works with UFS1 also)
install the grub port

# mkdir /boot/grub
# cp /usr/local/share/grub/i386-freebsd/* /boot/grub

make a /boot/grub/menu.lst:

---begin menu.lst---
default=0
timeout=10

title FreeBSD
root (hd0,1,a)
kernel /boot/loader
---end menu.lst---

(adjust the root directive accordingly - mine is first hard disk,
second slice, partition 'a')


format a msdos diskette

then install grub on it:

# mount -t msdos /dev/fd0 /mnt
# mkdir /mnt/grub
# cp /boot/grub/* /mnt/grub/
# umount /mnt
# grub

grub root (fd0)
grub setup (fd0)
grub quit

reboot from the diskette:

grub root (hd0,1,a) # again, adjust accordingly
grub setup (hd0) # install in MBR

then reboot and you should be all set

PS. I'm typing this from memory, but this is pretty much how I install it

-tacho
-- 
  0x44fc3339 || [02b5 798b 4bd1 97fb f8db 72e4 dca4 be03 44fc 3339]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


copyin() EFAULT

2004-05-19 Thread Tomas Pluskal

Hello,

I would like to ask you for help or explanation - why do I get EFAULT when
invoking copyin() or fubyte() etc. I am writing a kernel module, and I
need to read all process memory (e.g. to do something like a coredump).
I have copied the __elfN(coredump)(td, vp, limit) function from
/sys/kern/imgact_elf.c, but it doesn't work, I get EFAULT on some memory
blocks (but different blocks every time!).

I have prepared a simple module, which demonstrates the situation. You can
see it here: http://plusik.pohoda.cz/pokus.tgz

It is using callout...() to run the perform_pokus() function every second,
and this function tries to read all memory blocks of a certain process
(the process PID is found in kern.pokuspid sysctl variable).

When I load the module and set the kern.pokuspid to e.g. 359, I get on
console:

copying process 359 [sh]
copyin 0x8061000 err 0
copyin 0x8064000 err 14
copyin 0x2807f000 err 0
copyin 0x2808 err 0
copyin 0x28084000 err 14
copyin 0x280a9000 err 0
copyin 0x280c3000 err 0
copyin 0x2818a000 err 14
copyin 0x2818f000 err 14
copyin 0x281d8000 err 14
copyin 0x281e err 14
copyin 0xbfbe err 14

So copying of some blocks was OK, and on some blocks it returned EFAULT.
Why?

My system is FreeBSD 5.2-CURRENT #5: Wed Apr 28 16:03:52 CEST 2004.

Thanks,

Tomas Pluskal


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub and FreeBSD 4.9

2004-05-19 Thread Steven Hartland
Oh quite possibly I have the grub install on a linux partition.
just creating a small boot partition of a format that grub can load
should be good enough though. If someone else can find out
how to get grub to load read an ffs partition I'd be certainly
interested as well.

Steve / K
- Original Message - 
From: db [EMAIL PROTECTED]
To: Steven Hartland [EMAIL PROTECTED]
 If I boot with the bootdisk I can loade FreeBSD (with the chainloader), but if 
 I'm using grub on the disk I get:



This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or 
entity to whom it is addressed. In the event of misdirection, the recipient is 
prohibited from using, copying, printing or otherwise disseminating it or any 
information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone 
(023) 8024 3137
or return the E.mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


api for sharing memory from kernel to userspace?

2004-05-19 Thread Alfred Perlstein
I need to share about 100megs of memory between kernel and userspace.

The memory can not be paged and should appear contig in the process's
address space.  Any suggestions?

I need a way to either:
map user memory into the kernel's address space.
map kernel memory into the user's address space.

I was looking at pmap_qenter() but it didn't see attractive because
it's for short term mappings, this mapping will exist for quite a
while.

-- 
- Alfred Perlstein
- Research Engineering Development Inc.
- email: [EMAIL PROTECTED] cell: 408-480-4684
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


obtaining a kernel crash dump

2004-05-19 Thread Nick Strebkov
Hi there.

I can't obtain a crash dump.

% cat /sys/i386/conf/DEVEL | grep makeoptions
makeoptions DEBUG=-g
% cat /etc/rc.conf| grep dump
dumpdev=/dev/ar0s1b
dumpdir=/var/crash

I'm testing my kernel patch and the following is what I see in
/var/log/messages:

May 19 16:17:00 devel /kernel: Fatal trap 12: page fault while in kernel mode
May 19 16:17:00 devel /kernel: fault virtual address= 0x20a4e920
May 19 16:17:00 devel /kernel: fault code   = supervisor write, page not 
present
May 19 16:17:00 devel /kernel: instruction pointer  = 0x8:0xc01920d3
May 19 16:17:00 devel /kernel: stack pointer= 0x10:0xe7951e80
May 19 16:17:00 devel /kernel: frame pointer= 0x10:0xe7951ea4
May 19 16:17:00 devel /kernel: code segment = base 0x0, limit 0xf, 
type 0x1b
May 19 16:17:00 devel /kernel: = DPL 0, pres 1, def32 1, gran 1
May 19 16:17:00 devel /kernel: processor eflags = interrupt enabled, resume, IOPL = 0
May 19 16:17:00 devel /kernel: current process  = 637 (rtpslave)
May 19 16:17:00 devel /kernel: interrupt mask   = net 
May 19 16:17:00 devel /kernel: trap number  = 12
May 19 16:17:00 devel /kernel: panic: page fault
May 19 16:17:00 devel /kernel: 
May 19 16:17:00 devel /kernel: syncing disks... 60 3 2 

[dd boot kernel messages]

May 19 16:17:00 devel savecore: no core dump

Thanks in advance.

-- 
Nick Strebkov
Public key: http://humgat.org/~nick/pubkey.txt
fpr: 552C 88D6 895B 6E64 F277 D367 8A70 8132 47F5 C1B6
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: obtaining a kernel crash dump

2004-05-19 Thread Peter Pentchev
On Wed, May 19, 2004 at 04:34:42PM +0300, Nick Strebkov wrote:
 Hi there.
 
 I can't obtain a crash dump.
 
 % cat /sys/i386/conf/DEVEL | grep makeoptions
 makeoptions DEBUG=-g
 % cat /etc/rc.conf| grep dump
 dumpdev=/dev/ar0s1b
 dumpdir=/var/crash
 
 I'm testing my kernel patch and the following is what I see in
 /var/log/messages:

Can you force the kernel to dump by using DDB?  Place 'options DDB' in
your kernel config, then, when the system is quiescent, hit Ctrl-Alt-Esc
and type 'panic' at the DDB prompt.

If this works, and you get a crash dump, then the problem might be that
with your kernel patch, the kernel is panicking in a low-level layer,
like memory management or disk drivers or something like that, and it
simply cannot make a crash dump, since that would mean invoking code
that depends on bad data or something.

G'luck,
Peter

-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Hey, out there - is it *you* reading me, or is it someone else?


pgpx3Sb7VsHMD.pgp
Description: PGP signature


Re: api for sharing memory from kernel to userspace?

2004-05-19 Thread Pawel Jakub Dawidek
On Wed, May 19, 2004 at 05:29:07AM -0700, Alfred Perlstein wrote:
+ I need to share about 100megs of memory between kernel and userspace.
+ 
+ The memory can not be paged and should appear contig in the process's
+ address space.  Any suggestions?
+ 
+ I need a way to either:
+ map user memory into the kernel's address space.
+ map kernel memory into the user's address space.
+ 
+ I was looking at pmap_qenter() but it didn't see attractive because
+ it's for short term mappings, this mapping will exist for quite a
+ while.

In mapping kernel memory into user's address space I am interested as well
for GEOM Gate and other evil projects.

-- 
Pawel Jakub Dawidek   http://www.FreeBSD.org
[EMAIL PROTECTED]   http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!


pgpuGPDqfSSPA.pgp
Description: PGP signature


Re: Grub and FreeBSD 4.9

2004-05-19 Thread Cyrille Lefevre
db [EMAIL PROTECTED] wrote:
 
 I'm trying to get grub working on my FreeBSD 4.9 test-box. So far I've done:
 cd /usr/ports/sysutils/grub
 make install clean
 mkdir /boot/grub
 cp /usr/local/share/grub-0.94/i386-freebsd/* /boot/grub/
 In /boot/grub I created a fil called menu.lst and wrote this in it:
 default 0  # By default, boot the first entry.
 timeout 5 # Boot automatically after 30 secs.
 
 title FreeBSD
 root   (hd0,0)

root(hd0,0,a) would be better :)

   kernel /boot/loader


Cyrille Lefevre.
-- 
home: mailto:[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub and FreeBSD 4.9

2004-05-19 Thread Cyrille Lefevre
Steven Hartland [EMAIL PROTECTED] wrote:

 chainloader is your friend here I found as u correctly state it doesn't
 seem to support ffs drives even though the devs seem to say it does.


chainloader +1 is for windows friends :P

some samples :

title  FreeBSD (primary - SCSI)
root   (hd4,0,a)
kernel /boot/loader

title  FreeBSD (secondary - SCSI)
root   (hd7,0,a)
kernel /boot/loader

title  FreeBSD 4.x (primary - IDE)
root   (hd0,2,a)
kernel /boot/loader

title Windows (primary)
rootnoverify (hd0,0)
chainloader  +1
# For loading DOS if Windows NT/2K is installed
# chainload /bootsect.dos

title Windows (secondary)
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader  +1

title  FreeBSD (floppy)
root   (fd0,a)
kernel /boot/loader

title Install GRUB (primary - SCSI)
root(hd4,0,a)
setup   (hd4,0)

title Install GRUB (secondary - SCSI)
root(hd7,0,a)
setup   (hd7,0)

title Install GRUB (primary - IDE)
root(hd0,2,a)
setup   (hd0,2)

title Install GRUB (floppy)
root(fd0)
setup   (fd0)

Cyrille Lefevre.
-- 
home: mailto:[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub and FreeBSD 4.9

2004-05-19 Thread Steven Hartland
Just plain doesn't work here moans that it cant mount the FS
where as chainloader works fine.

Steve
- Original Message - 
From: Cyrille Lefevre
 chainloader +1 is for windows friends :P
 
 some samples :
 
 title  FreeBSD (primary - SCSI)
 root   (hd4,0,a)
 kernel /boot/loader
 
 title  FreeBSD (secondary - SCSI)
 root   (hd7,0,a)
 kernel /boot/loader
 
 title  FreeBSD 4.x (primary - IDE)
 root   (hd0,2,a)
 kernel /boot/loader
 
 title Windows (primary)
 rootnoverify (hd0,0)
 chainloader  +1
 # For loading DOS if Windows NT/2K is installed
 # chainload /bootsect.dos
 
 title Windows (secondary)
 map (hd0) (hd1)
 map (hd1) (hd0)
 rootnoverify (hd1,0)
 chainloader  +1
 
 title  FreeBSD (floppy)
 root   (fd0,a)
 kernel /boot/loader
 
 title Install GRUB (primary - SCSI)
 root(hd4,0,a)
 setup   (hd4,0)
 
 title Install GRUB (secondary - SCSI)
 root(hd7,0,a)
 setup   (hd7,0)
 
 title Install GRUB (primary - IDE)
 root(hd0,2,a)
 setup   (hd0,2)
 
 title Install GRUB (floppy)
 root(fd0)
 setup   (fd0)
 
 Cyrille Lefevre.
 -- 
 home: mailto:[EMAIL PROTECTED]
 
 



This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or 
entity to whom it is addressed. In the event of misdirection, the recipient is 
prohibited from using, copying, printing or otherwise disseminating it or any 
information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone 
(023) 8024 3137
or return the E.mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub and FreeBSD 4.9

2004-05-19 Thread George Hartzell
db writes:
  Hi all
  
  I'm trying to get grub working on my FreeBSD 4.9 test-box.
  [...]

Here's a description of how I did it, from the freebsd-current list in
late Februrary 2003.  It was part of an ongoing thread that you might
find useful.

g.


George Hartzell writes:
  Andrew Boothman writes:
[...]
OK Guys, I think I'm still a little confused here.

I've just had a few botched installs of GRUB so I think I need a little more
direction, if you could :)

I've got GRUB on a floppy and it boots fine. If I type :
rootnoverify (hd0,0)
makeactive
chainloader +1
boot

I get Win2k booted no problem!

So, following the instructions in the Grub Manual, I typed
root(fd0)
setup(hd0)

I remove the floppy from the drive and reboot

On boot I get Loading GRUB... Please Wait... but after that I get GRUB
Error 17 which according to the manual means that GRUB doesn't know how to
load the selected partition. Even though when I boot from the floppy it
starts no problem and I can type commands to get it to boot Win2k
  
  That told it to install GRUB into the beginning of (hd0) [e.g. the
  Master Boot record], but configured it to use (fd0) as the root of the
  place to find stuff.  Since the floppy wasn't in when you booted, it
  didn't do anything useful.
  
  There are some grub things that need to be on the disk that you give
  the root designation too, e.g. stage1, etc...
  
  I don't know how/where to install those files into an NTFS partition,
  I assume that GRUB can read NTFS filesystems, and you could tuck them
  there, but I don't know for sure.
  
  Here's what I'd do.
  
  Get yourself booted into freebsd any way that you can.
  
  PRINT OUT THE INFORMATION ABOUT YOUR BIOS PARTITION TABLE AND YOUR
  FREEBSD DISKLABEL, AND SAVE IT.  fdisk -s and disklabel -r
  diskname are your friends
  
  Build grub from the ports tree and install it.  It installs all of the
  juicy bits into some directory in
  /usr/local/share/grub/i386-freebsd/..., which doesn't seem to be a
  place where grub can find it.  I make a directory called /boot/grub
  and copy all of them there.
  
  Start grub (e.g. boot from your grub floppy).  Under the 5.0 systems,
  GEOM is picky about letting you doink with disks that you have
  mounted, so you either need the let me shoot myself in the foot
  sysctl patch
  (ftp://ftp.jurai.net/users/winter/patches/geom-foot.patch) or boot
  from something else (e.g. floppy, live cdrom, ...)
  
  Make sure that grub can see it's various interesting bits:
  
  grub find /boot/grub/stage1
  
  and it should say:
  
   (hd0,1,a)
  
  assuming that you have Something Else (e.g. windows) in the first
  primary BIOS partition/slice, a set of FreeBSD slices in the second
  primary BIOS partition/slice, and the /boot/grub stuff is in the first
  (a) BSD_DISKLABEL/slice.
  
  If you have the grub bits living in a Linux filesystem in the third
  primary BIOS partition, it'd say (hd0,2).  If you had them in a Linux
  filesystem living in the first extended partition, it'd say (hd0,4),
  etc
  
  That's the drive that you want to declare as your root, which just
  configures the low level grub code that setup installs so that it
  knows where to look for it's various useful bits.
  
  e.g. 
  
  grub root (hd0,1,a)
  
  Then you need to install grub onto somewhere where the computer will
  trip over it and boot it.
  
  One possibility is to install it into the master boot record, which
  would be:
  
  grub setup (hd0)
  
  Here you boot process would be 
  
power on-bios-load the MBR which is really GRUB-grub loads its stage1,...
  
  Or you could leave a normal MBR at the beginning of the disk and
  install GRUB into the beginning of the FreeBSD BIOS partition
  (assuming that FreeBSD is in the second primary parition):
  
  grub setup (hd0,1)
  
  If that's all that you do, thing's won't quite boot.  You'll need to
  also mark that partition active, so that the stock MBR code will jump
  to it.  I always do that by getting to this point, booting by hook or
  by crook (e.g. a grub boot floppy, a bootable freebsd CD, a bootable
  linux CD) and using some utility (e.g. partition magic from windows,
  fdisk from windows, fdisk from freebsd, fdisk or cfdisk from linux) to
  mark the partition active.  I prefer partition magic because I believe
  that it has the most robust partition table integrity checks, but
  whatever you trust
  
  Now, your boot process will look like:
  
power on-bios-real MBR which jumps to the active parition - (next line)

... - GRUB at the beginning of active partition - GRUB stage1,...
  
  When grub get's up and running, it'll look for a file called menu.lst
  (unless you override the name when you setup) which contains the
  info for the boot menu.  Here's mine (notice that there are a bunch of
  mutually exclusive things that I've tucked into the 3rd BIOS 

Re: obtaining a kernel crash dump

2004-05-19 Thread Mark Santcroos
On Wed, May 19, 2004 at 04:34:42PM +0300, Nick Strebkov wrote:
 I can't obtain a crash dump.

Can you, on a clean -current, break into DDB and force a panic by simply
typing panic ?
Please report whether the kernel dumps core in this case.

Some systems have problems with ATA that prevents them from dumping.

Mark
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: api for sharing memory from kernel to userspace?

2004-05-19 Thread Steve Watt
In article [EMAIL PROTECTED] you write:

On Wed, May 19, 2004 at 05:29:07AM -0700, Alfred Perlstein wrote:
+ I need to share about 100megs of memory between kernel and userspace.
+
+ The memory can not be paged and should appear contig in the process's
+ address space.  Any suggestions?
+
+ I need a way to either:
+ map user memory into the kernel's address space.
+ map kernel memory into the user's address space.
+
+ I was looking at pmap_qenter() but it didn't see attractive because
+ it's for short term mappings, this mapping will exist for quite a
+ while.

In mapping kernel memory into user's address space I am interested as well
for GEOM Gate and other evil projects.

The way we accomplished this in some other operating system was to
create a shared memory segment with an implementation-reserved
name, and then have the application shm_open the name and mmap it in.

Shouldn't be hard with a device driver.

-- 
Steve Watt KD6GGD  PP-ASEL-IA  ICBM: 121W 56' 57.8 / 37N 20' 14.9
 Internet: steve @ Watt.COM Whois: SW32
   Free time?  There's no such thing.  It just comes in varying prices...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub and FreeBSD 4.9

2004-05-19 Thread Cyrille Lefevre
Steven Hartland [EMAIL PROTECTED] wrote:
 Just plain doesn't work here moans that it cant mount the FS
 where as chainloader works fine.


do you add ,a in root (hd0,0,a) ?

Cyrille Lefevre.
-- 
mailto:[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]