Re: FreeBSD vs. Linux
Dag-Erling Smorgrav [EMAIL PROTECTED] wrote: James Housley [EMAIL PROTECTED] writes: I believe a correct and true statement is "FreeBSD is a direct decendant of Unix(TM). Based on the BSD sources" I don't think there's all that much left of the original BSD sources... at least not in the kernel. Large bits of errno.h haven't changed since 1982 :-) Tony. -- en oeccget g mtcaaf.a.n.finch v spdlkishrhtewe y[EMAIL PROTECTED] eatp o v eiti i d.[EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: burncd utility for atapi burners
It seems Terry Lambert wrote: I would like to communicate the proposed changes to the author but I did not find his address. Could somebody provide his email to me? [ ... ] This is going to be a problem in getting your changes accepted: +/*- + * t.h. changes copyright (c) 2000 Tomas Hruz + * All rights reserved. + */ Since that includes the right to integrate and distribute. Yups, I'll look at it though, since burncd is my baby :) -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Cache Questions
Hello All, We're working on a driver for a PCI card, we're currently running into a problem that's symptomatic of a cache coherency problem. We have a area of memory that we manipulate and pass a physical address to our card. In other OS's (Linux, NT), before we manipulate this memory area, we mark the area as non-cachable. Are there similar operations/system calls we can use in FreeBSD? Are there any FAQ's, Docs or man-pages that explain memory usage/attributes? Thanks very much! Chris To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Cache Questions
At Mon, 23 Oct 2000 08:33:04 EDT, "Christopher Harrer" wrote: Hello All, We're working on a driver for a PCI card, we're currently running into a problem that's symptomatic of a cache coherency problem. We have a area of memory that we manipulate and pass a physical address to our card. In other OS's (Linux, NT), before we manipulate this memory area, we mark the area as non-cachable. Are there similar operations/system calls we can use in FreeBSD? Are there any FAQ's, Docs or man-pages that explain memory usage/attributes? See (in 4-Stabel and current) /usr/include/sys/memrange.h which has functions for setting memory regions uncachable. /Johan K To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: smbfs-1.3.0 released
When is this going to be brought into -current? Boris Popov wrote: Hello, At first, I'm want to say 'thank you' for everybody who provided me with feedback on my work. So, here is a records from the HISTORY file for last two releases: 20.10.2000 1.3.0 - Network IO engine significantly reworked. Now it uses kernel threads to implement 'smbiod' process which handles network traffic for each VC. Previous model were incapable to serve large number of mount points and didn't work well with intensive IO operations performed on a different files on the same mount point. Special care was taken on better usage of MP systems. Unfortunately, kernel threads aren't supported by FreeBSD 3.X and for now it is excluded from the list of supported systems. - Reduce overhead caused by using single hash table for each mount point. 26.09.2000 1.2.8 (never released) - More SMP related bugs are fixed. - Make smbfs compatible with the Linux emulator. - smbfs now known to work with IBM LanManager (special thanks to Eugen Averin) - Fix problem with files bigger than 2GB (reported by Lee McKenna) - Please note that smbfs may not work properly with FreeBSD 3.X. New version can be downloaded from: ftp://ftp.butya.kz/pub/smbfs/smbfs.tar.gz -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message -- Joseph Scott [EMAIL PROTECTED] The Office Of Water Programs - CSU Sacramento To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD vs. Linux
At 05:25 PM 10/21/2000, Sergey Babkin wrote: Frederik Meerwaldt wrote: We need this information in order to determine which of these two OS to choose from to drive our website. Choose FreeBSD. It's faster. Also if some things don't work or work strangely or are poorly documented, finding sources for them is MUCH easier in FreeBSD. Linux is a patchwork of independent packages, and tracking down what came from where and was patched by what is usually not easy. Also commercial distributions of Linux sometimes tend to "lose" parts of sources, so that you will not always be able to re-compile the stuff at all. There's been a short period when I worked on building a Linux distribution and that was a quite special experience. What he's trying to say is that the linux kernel is an abortion. They keep redesigning it and its continuously unstable. Many of the kernel "features" are experimental and large chunks of it simply dont work. Then, IF you can get everything you need working, virtually all of the ethernet drivers lock up under load. There is no static buffer pool so the memory system will fail under heavy network load. So-called "local" panics can disable the network sub-system without a reboot making it unusable in unattended environments Need I go on? Dennis To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Boot off USB SanDisk?
On Sun, Oct 22, 2000 at 10:11:09PM -0600, Warner Losh wrote: In message [EMAIL PROTECTED] David Miller writes: : SanDisk makes a IDE-like flash card one could plug into a $30 USB : flashcard reader. : : Would FreeBSD have any idea how to boot off such a beast? Alternatively, : anyone know of an ISA/PCI adapter with enough bios on it to boot off a : similar flash? You can use a IDE - CF adapter to boot off this device. You can't boot it off via the USB device however. As a matter of curiosity: what does such an adapter cost (roughly) ? -- Wilko Bulte Arnhem, the Netherlands [EMAIL PROTECTED] http://www.freebsd.org http://www.nlfug.nl To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Understanding what happens on open() within the kernel
Hi, i'm currently working on understanding the FreeBSD kernel. Therefore I read the book "The design and implementation of the 4.4BSD OS". As I know that most of the things described in this book are probably no longer up to date, I think that the basics should be the same. As I would like to experiment a bit with the serial port I have a question conerning the open() call. Perhabs you could tell me if I understood the open-procedure correctly: On opening i.e. /dev/cuaa0 the kernel sees that this is a tty device. It then calls ttyopen(). Ttyopen() knows which driver is responsible by analyzing the minor device number. It calls the real open() function from the driver responsible for that device and then fills in the tty structure. Now you can change settings by using ioctl() or the termios functions. What would I have to do to get the filled in tty_structure directly, without using ioctl to get the settings of a tty? Or is there perhabs an ioctl() call to get the tty_structure? Greetings, Alex PS: Please answer directly to me as I'm not on the list. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Cache Questions
Hello All, We're working on a driver for a PCI card, we're currently running into a problem that's symptomatic of a cache coherency problem. We have a area of memory that we manipulate and pass a physical address to our card. In other OS's (Linux, NT), before we manipulate this memory area, we mark the area as non-cachable. Are there similar operations/system calls we can use in FreeBSD? Are there any FAQ's, Docs or man-pages that explain memory usage/attributes? Take a look at sys/memrange.h, and particularly mem_range_attr_set(). *However*, since the PC architecture is strongly cache coherent, you probably have a problem with the design or implementation of your driver:adapter protocol. Marking an entire region of memory as uncacheable is *very* inefficient; there are much better ways of maintaining synchronisation without doing this. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
gateway on different subnet
Summary of the problem: Can't assign cable modem gateway (10.17.56.12) to interface ed0 with assigned IP (208.59.162.242) - "network unreachable". I called RCN (my cable provider) and asked them to give me a gateway on the same subnet; they said they "don't do that". Part of solution: I set an alias for ed0 to 10.17.0.1 and it accepted the cable modem gateway as is. BUT, the packets are sent out with source address (10.17.0.1) responses to which, I suspect, gateway doesn't know how to route. Question: how can I have an alias of 10.17.0.1 and send out all packets with source address set to 208.59.162.242 (the IP that is actually assigned to the interface - not alias). Thanks for any help you can give. Marko P.S. Alternately, how can I force the system to allow a gateway that is on a different subnet (like windows allows that). Who can I turn to for help ? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: DMA in drivers?
"This register is used to establish the PCI address for data moving from the the Host Computer Memory to the card. It consists of a 30 bit counter with the low-order 2 bits hardwired as zeros. The address stored may be any nonzero byte length that is a multiple of 8, since 8 bytes are required to make up a DES encryption block. The Source Address Register is continually updated during the transfer process and will always be pointing to the next unwritten location." What do I need to do to get a memory address for the source and destination data for the DMA transfers? It sounds as if these memory addresses must have the last three bits zeros, will this happen automatically? Right now I am stuck on how this DMA stuff is working and any help would be appreciated. Oh yeah, I am targeting this driver for a FreeBSD 3.x system. sounds to be that it wants the buffers to be long-word aligned (multiple of 4 bytes) and not greater than 1 GB (address 0x3ffc). the source data must be null padded so that the length is a multiple of 8 bytes. other gotchas, the addresses you specified must be the PHYSICAL address, not the kernel virtual address. use the vtophys(mtr-bigbuf) routine to get the physical address. The physical page should be wired down, so it does not get paged out to swap between the time you set up the DMA and the DMA finish. be sure the data does not cross into another physical page unless the two pages are contiguous. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: gateway on different subnet
Hm -- how about using proxy-arp style routing? If their router has has proxy-arp support turned on, then you can set yourself (ie your own IP) as the default and will arp for _all_ addreeses of _all_ remote boxes you try to connect to. Then their router sends a response to the arp-request and your box gets an apr table entry of the router (within the local ethernet-broacast realm) and will send stuff for whatever remote IP address you have. It's not the cleanest solution, but I've used it under windows, linux and hpux to get around the foolishness of a network architecture I couldn't change... I used this at an old job where I had non-contiguous IP networks in the same ethernet-broacast domain so that all the machines would find each other on the local network, and the router handled all the off-segment connections via proxy-arp. I have NOT tried this under FreeBSD as I thankfully dont work there any more (was converted to the FreeBSD religion after I left...). Alternatively, you could use an exceptionally permissive netmask so that the local box _thought_ the other IP was in the same 'network' as yours. Pretty much both achieve the same effect of putting the remote router on the 'same network' as you. Good luck. Fred Can't assign cable modem gateway (10.17.56.12) to interface ed0 with assigned IP (208.59.162.242) - "network unreachable". I called RCN (my cable provider) and asked them to give me a gateway on the same subnet; they said they "don't do that". ... P.S. Alternately, how can I force the system to allow a gateway that is on a different subnet (like windows allows that). Who can I turn to for help ? -- Fred Clift - [EMAIL PROTECTED] -- Remember: If brute force doesn't work, you're just not using enough. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: gateway on different subnet
Hm -- how about using proxy-arp style routing? Here's what I've done in the past: 1. Have a friend out in the net ping your address 208.59.162.242 2. Run tcpdump and look for someone ARPing for you. That someone will very likely be your default gateway as seen from your site. If that router is in your subnet, set your default to it and you're done. If not, continue at the next step. 3. Pick an IP Address in your cable subnet that feels like a really good router address to you. Make something up. 208.59.162.1 perhaps? 4. Use "arp -s 208.59.162.1 xx:xx:xx:xx:xx:xx" to install an arp entry in your route table for this made-up address. That will keep you from ARPing for 208.59.162.1 and discovering the device that really owns that address. 5. Set your default gateway to 208.59.162.1. Good luck, -Les -- Les Biffle Community Service... Just Say NO! (480) 778-0177[EMAIL PROTECTED] http://www.networksafety.com/ Network Safety, 7802 E Gray Rd Ste 500, Scottsdale, AZ 85260 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: gateway on different subnet
On Mon, 23 Oct 2000, Les Biffle wrote: Hm -- how about using proxy-arp style routing? Here's what I've done in the past: 1. Have a friend out in the net ping your address 208.59.162.242 2. Run tcpdump and look for someone ARPing for you. That someone will very likely be your default gateway as seen from your site. If that router is in your subnet, set your default to it and you're done. If not, continue at the next step. 3. Pick an IP Address in your cable subnet that feels like a really good router address to you. Make something up. 208.59.162.1 perhaps? 4. Use "arp -s 208.59.162.1 xx:xx:xx:xx:xx:xx" to install an arp entry in your route table for this made-up address. That will keep you from ARPing for 208.59.162.1 and discovering the device that really owns that address. 5. Set your default gateway to 208.59.162.1. If that doesn't work (it should), you could also look into the ipfw fwd option. I would like to know when you get it to work... Nick Rogness - Drive defensively. Buy a tank. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: gateway on different subnet
On Mon, 23 Oct 2000, Mike Smith wrote: Summary of the problem: Can't assign cable modem gateway (10.17.56.12) to interface ed0 with assigned IP (208.59.162.242) - "network unreachable". I called RCN (my cable provider) and asked them to give me a gateway on the same subnet; they said they "don't do that". Your gateway *must* be on a reachable subnet. That's all there is to it. RCN has recently pulled a crack smoking move and made the gateways 10.x ip addresses on their cable modems. It caught me by surprise since I had just put up a new box and it refused to get on the internet. Anywho, the easiest way to fix it is to alias 10.254.254.1 (or some other bogus ip) to your public interface with a netmask of 0xff00 and then set your default gateway as normal. % ifconfig ed0 ed0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 216.164.35.237 netmask 0xff00 broadcast 216.164.35.255 inet 10.254.254.1 netmask 0xff00 broadcast 10.255.255.255 ether 00:50:4e:00:cc:ff When I get home I'm probably going to switch to DSL, my sanity is worth more than low cost bandwidth. -= Kherry Zamore -=- (757) 683-7386 =- -= Resident Computer and Network geek/god =- -= Rogers Hall Main Room 324 -=- www.dknj.org =- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
How to install BootEasy?
Hi, Apologies for this, I'm sure I've seen the answer recently but I'm *^%ed if I can find it in the archives[1]. I have an installed FreeBSD hard disk that I want to use as the second drive on a machine with other stuff on the first drive. How do I install BootEasy on the first drive? TIA [1] Sort by date on the archive search would be a worthwhile improvement. -- Bob Bishop (0118) 977 4017 international code +44 118 [EMAIL PROTECTED]fax (0118) 989 4254 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message