starting kernel from non zero physical address

2010-03-03 Thread Naeem Afzal
Hi, I am trying to figure out best way to boot FreeBSD8 kernel when physical memory is not starting at zero address. Is using physfree address in hammer_time() argument is the one which sets start of physical memory address? Any input would be appreciated. thanks naeem

fsck_ffs DIOCGINFO ioctl?

2009-11-21 Thread Naeem Afzal
I am not sure how this ioctl (DIOCGDINFO) in fsck_ffs/setup.c is returned from kernel. Seems like there is only one place in sys/geom/geom_bsd.c, I have enabled GEOM_BSD option in config file, but not able to see it. Could someone point out how this ioctl is returned from kernel? I see it is

filesystem size after newfs

2009-08-10 Thread Naeem Afzal
I created this small partition of 512K bytes on disk, I am noticing about 24% is used up before system can be mounted and used. My assumption was about 4% is supposed to be used if minfree is set to 0. #newfs -U -l -m 0 -n -o space /dev/ad1d /dev/ad1d: 0.5MB (1024 sectors) block

echo in sh calls write function repeatedly in kernel driver?

2009-06-24 Thread Naeem Afzal
I used this sample echo driver listed here: http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-char.html and used Example 9-2 for 5.X FreeBSD. Modifed and added a printline in write function to display Count value: I am using 7.1 FreeBSD version. I compiled the driver and ran the