Archive for the ‘FreeBSD’ Category

Cassio Fiva’s screen dead

Posted on December 2nd, 2008 by "warner losh" from "Warner's Random Hacking Blog"

I was very fortunate enough to get a Casio Fiva MCP-205 given to me in 2000. I've used this laptop for years. I built Mozilla on it once, and melted the frame around the LCD! This resulted in a new warning in the Mozilla build instructions. Since Casio is a Japanese company, and I got this as the result of

(Read more...)

Marvell ARM support in svn

Posted on October 13th, 2008 by "warner losh" from "Warner's Random Hacking Blog"

Rafal Jaworowski just committed support for a number of Marvell Processors. There are a number of commits going into the tree. He's just completed the first of these:
Introduce low-level support for new Marvell core CPUs: 88FR131, 88FR571.

From an earlier email message, we know that Rafal is working on support for Marvell 88F5182, 88F5281, 88F6281, and MV78100 SoCs.

The

(Read more...)

FreeBSD: Nginx FastCGI PHP Configuration

Posted on October 9th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. How do I configure PHP as FastCGI under FreeBSD Nginx webserver?

gxemul update

Posted on October 4th, 2008 by "warner losh" from "Warner's Random Hacking Blog"

Oleksandr Tymoshenko posted a patch to gxemul that allows FreeBSD/mips to boot on it.

I've committed it to the gxemul port. So now if you have gxemul 0.4.6.5_1 or later, you can run FreeBSD/mips, the MALTA kernel. I'll post a howto and a pointer to a image in a few days.

UNIX Shell: Find Out Real Path Of File ( Directory )

Posted on October 3rd, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. Some of my programs and scripts needs a real path and not a a symbolic link. How to I determine a real path of any directory under Linux / UNIX operating systems? How do I remove references to /./, /../ and extra '/' character in path?

FreeBSD: Mount /usr/ports Inside Jail

Posted on October 3rd, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. I'd like to save disk space for my FreeBSD 7 ISP server. We run webserver, nameserver from various jails under powerful HP RAID 10 server. How do I export /usr/ports from host to each jail hosted on /jail/ volume such as /jail/www, /jail/ns, /jail/sql etc?

SD/MMC work

Posted on October 1st, 2008 by "warner losh" from "Warner's Random Hacking Blog"

Recently, I've pushed many bug fixes from Alexander Motin to the SD/MMC stack. He's submitted a driver for the SD Assocaition's standard SD Host Controller, and fixed many of these minor issues as part of doing that. I've tested these improvements on my AT91RM9200 system that boots off an SD card.

There should be more support for MMC cards, as

(Read more...)

FreeBSD: Apache httpready filter – Failed to enable the ‘httpready’ Accept Filter

Posted on September 19th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. I've installed Apache 2.2 from FreeBSD 7.0 ports and when I try to start I get following warning on screen:
Performing sanity check on apache22 configuration: Syntax OK Starting apache22. [Wed Sep 17 22:01:58 2008] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter

How do I fix this error?

FreeBSD/mips updated

Posted on September 19th, 2008 by "warner losh" from "Warner's Random Hacking Blog"

Here's an update in status to the FreeBSD/mips tree. David O'Brien has been working through issues one at a time to get things building, primarily getting gcc support merged in. After learning from David that more patches were needed than were in my blog, I spent some time collapsing changes from p4 into the main tree. I've updated my patches,

(Read more...)

FreeBSD: Cannot load /usr/local/libexec/apache22/mod_security2.so into server: /usr/local/libexec/apache22/mod_security2.so

Posted on September 17th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. I've installed Apache2 and mod_security21 under FreeBSD. Whenever I try to restart apach22 process I get following error:

Cannot load /usr/local/libexec/apache22/mod_security2.so into server: /usr/local/libexec/apache22/mod_security2.so


How do I fix this problem?

BSD PF Firewall: Displays Active Packetfilter States And Rules

Posted on September 9th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. How do I view active connections with PF firewall under FreeBSD / OpenBSD UNIX operating system?

FreeBSD embedded (mips, powerpc, arm) update

Posted on September 4th, 2008 by "warner losh" from "Warner's Random Hacking Blog"

The last week or so has show a spike up in FreeBSD embedded platform work. Fixes for mips and powerpc have gone into the tree. Support for a new ARM platform is getting ready to be committed. FreeBSD/mips is almost self-hosting in the svn tree (it has been in the p4 tree for some time). FreeBSD/powerpc and FreeBSD/arm continue to

(Read more...)

FreeBSD: How To Add A Second Hard Disk

Posted on August 27th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. How do I add a second hard disk to my FreeBSD server? How do I partition, label and mount a new hard disk under FreeBSD for backup or additional data?

Summer tree cleaning

Posted on August 26th, 2008 by "warner losh" from "Warner's Random Hacking Blog"

As you may know, I'm a user of the p4 side repository to do large code development. With the switch to svn, I wasn't sure I'd still need to do that, so I let my trees there go for a while. It is clear to me that I'll need to use p4 a little while longer. So, I cleaned up

(Read more...)

T-Mobile Dash experiment

Posted on August 25th, 2008 by "warner losh" from "Warner's Random Hacking Blog"

I have two cell phones. One of this is my iPhone, made by Apple and running Apple's version of FreeBSD. The other is the T-Mobile Dash. I usually use my iPhone, but this weekend I was using the Dash to see how well it worked. It was no better or worse than the iPhone in the one area that I'd

(Read more...)

Quick device_get_children cleanup

Posted on August 23rd, 2008 by "warner losh" from "Warner's Random Hacking Blog"

Hans Petter Selasky submitted a bug against the rather poor error handling of device_get_children a while ago. When the usb4bsd stuff he's trying to get into the tree was posted for review, one of the issues was with device_get_children() as it related to device_delete_children().

This reminded me of original issue. I've gone through the tree and done an audit of

(Read more...)

Mid august mips status update

Posted on August 23rd, 2008 by "warner losh" from "Warner's Random Hacking Blog"

Just wanted to jot out a quick status update on FreeBSD/mips.

A few weeks ago, diffs were sent out for review. The 6 patches are now down to three. gcc.diff, binutils.diff and pam.diff remain uncommitted.

pam.diff (now pam3.diff) has been receiving feedback from DES and others and is getting close. The first iteration was really far away from being commit

(Read more...)

Slimming down the NSLU kernel

Posted on August 20th, 2008 by "warner losh" from "Warner's Random Hacking Blog"

A few days ago, I wrote about the NSLU kernel config file being committed to FreeBSD's svn tree. The default compressed kernel is about 1.6MB, but the size of the partition of the NSLU2's flash is 1.25MB, a gap of just under 300kB. With some hacking, I've been able to reduce the size of the kernel to fit.

The default

(Read more...)

FreeBSD Find Out Network Card / Port Speed

Posted on August 12th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. Under Linux I can use Ethtool and mii-tool, but they are not available under FreeBSD. How do I tell the port speed of the nic under FreeBSD operating system?

FreeBSD/avr32 spotted in the wild

Posted on August 10th, 2008 by "warner losh" from "Warner's Random Hacking Blog"

A very preliminary port to the AVR32 has been spotted in the wild. Arnar Mar Sig posted a dmesg of FreeBSD/avr32. You can find his post through this link.

For those of you unfamiliar with the AVR32 architecture, it is an architecture that is used primarily in embedded applications. AVR may be initials familiar to many readers as microcontrollers.

(Read more...)