how to switch the base compiler to gcc 4.4.2

2010-04-04 Thread Saifi Khan
Hi:

How does one switch the base compiler to gcc 4.4.2 ?

Here is some info for my setup:

 . running DragonFly 2.7-DEVELOPMENT v2.7.0.47.g3f16d 
   (HEAD as of April 4, 2010).

 . the HEAD was built with CCVER=gcc44 for
   - buildworld
   - buildkernel
   - installkernel
   - installworld
   - upgrade

 . /usr/libexec/gcc44 directory has
   CC
   c++
   c++filt
   cc
   cc1obj
   cc1plus
   cpp
   g++
   gcc
   gcov


 . have setup the following entries in /etc/make.conf
   CCVER=gcc44
   CC=gcc44
   CXX=g++44
   CPP=cpp44
   CFLAGS+=-mssse3

i donot see any /etc/libmap.conf (as seen in FreeBSD) which 
needs to be tweaked for rtld and ldd.

Any pointers as to how to make gcc 4.4.2 as the base compiler 
for my custom DragonFlyBSD system on AMD64 box ?


--
thanks
Saifi.


bootloader does not load up (erratic behaviour)

2010-04-03 Thread Saifi Khan
Hi:

Installed March 29th snapshot of DragonFlyBSD on AMD64 X64_64 
box with
 [x] boot blocks
 [x] packet mode

On repeated reboots, the boot loader does not load up (erratic 
behaviour) and the following error is seen

'Reboot and Select proper Boot device
or Insert Boot media in selected Boot device and press a Key

As i mention, this behaviour is erratic, so sometimes a 
soft reboot (Ctrl-Alt-Del) helps and sometimes it doesn't.

Any suggestions on what could be the issue here ?


--
thanks
Saifi.


meaning of 'no B_DEVMAGIC (bootdev=0)'

2010-04-03 Thread Saifi Khan
Hi:

While trying to install DragonFlyBSD x86_64 on large partitions 
eg. single 200G partition, the startup shows the following line
 no B_DEVMAGIC (bootdev=0)

What exactly does this line mean ?


--
thanks
Saifi.


Re: disklabel64 failed with return code of 1

2010-04-03 Thread Saifi Khan
On Mon, 29 Mar 2010, Matthew Dillon wrote:

 
 :Hi:
 :
 :Trying to install DragonFlyBSD 29th March snapshot for X86_64 
 :(on a triple boot system with FreeBSD installed) fails out with 
 :the error disklabel64 failed with return code of 1.
 :
 :FreeBSD is installed on the machine on the second partition sans 
 :any boot manager or explicit entry on MBR.
 
 Did it work the second time you tried?  That dd it did should have
 cleaned out any old label but perhaps the kernel did not re-probe
 afterwords.
 
   -Matt
 

Thanks for your reply Matt.

Here are the steps that i followed from command line (after 
logging as root).

# disklabel64 -W ad4s2

# fdisk -B -I ad4

# dd if=/dev/zero of=/dev/ad4s2 bs=512 count=32

# disklabel64 -B -r -w ad4s2 auto

Now, while i donot see the error message mentioned above, but 
on executing each command the following message is seen:

ad4s2: cannot find label (no disk label).
 Exit status: 0

The installer continues ahead, but on reboot, the boot loader 
stalls with the message 'no ufs partition' !


--
thanks
Saifi.


raw partition offset != slice offset

2010-04-02 Thread Saifi Khan
Hi:

installed DragonFlyBSD 2010/03/29 snapshot on AMD64 x86_64 
machine.

On reboot the system stops with the following error
 'Bad Label' 
and reboots.

On powering the system and booting up DragonFlyBSD LiveCD, the 
following lines are seen
 ad4s1  Bad label.  raw partition offset != slice offset

Any suggestions on how to fix this issue ?


--
thanks
Saifi.


Re: PFS mirroring insted of RAID Improved set up - need comments.

2010-04-01 Thread Saifi Khan
On Mon, 29 Mar 2010, Matthew Dillon wrote:

 In terms of booting, if that is a worry then buy a $100 SSD and boot
 from that 

Matt, any specific SSD's that you recommend or have found to 
work well with *BSD ?

For good measure, please feel free to throw in any caveats as 
well.


--
thanks
Saifi.


Re: Working on a security program

2010-04-01 Thread Saifi Khan
On Tue, 30 Mar 2010, Walter wrote:

 Hi, all.  Despite my lack of response (sorry), I've been
 working on a security program.  Right now it uses auth.log
 to identify failed login attempts via telnet, ftp, and (of
 course) ssh.  I'm planning on hard coding this unless
 someone tells me I should look at other log files too.
 
 I'm working on adding a check if the outside IP address
 changing to be able to reload the firewall if it uses it.
 And I'm thinking it'd be good to check if any of the system
 programs are changed - check the date-time stamp and size.
 These sorts of things can be done on a low rate periodic
 interval.
 
 This has become somewhat of a compulsion for me of late,
 partly because I think it's a thing that ought to be, and
 because I'm using it to refresh my programming brain.  I
 would appreciate insights.  Thanks.
 
 Walter
 

Would setting up 'snort' help ?


--
thanks
Saifi.


two annotated tags to replace v2.5.1

2010-03-29 Thread Saifi Khan
Hi:

The git repository has two annotated tags
 v2.6.0
 v2.7.0
which replace v2.5.1 .

The commit log/email for both the tags is identical.

Can the experienced folks share the rationale behind having two 
annotated tags ?

--
thanks
Saifi.


disklabel64 failed with return code of 1

2010-03-29 Thread Saifi Khan
Hi:

Trying to install DragonFlyBSD 29th March snapshot for X86_64 
(on a triple boot system with FreeBSD installed) fails out with 
the error disklabel64 failed with return code of 1.

FreeBSD is installed on the machine on the second partition sans 
any boot manager or explicit entry on MBR.

Here are the screenshots:

error
http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/DSC7-1.jpg

error log
http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/DSC8.jpg

Is there a workaround for this issue ?


--
thanks
Saifi.


installer crash while configuring interface nfe0

2010-03-29 Thread Saifi Khan
Hi:

Using the March 29, DragonFlyBSD snapshot for x86_64.

The installer crashes while trying to configure 'nfe0' interface 
using DHCP. All the user settings are destroyed

Additionally, a restart of the installer, crashes out since port 
 is in use and hence 'couldn't connect to frontend on '.

Please see screeshot here:

error seg-fault
http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/DSC3.jpg

error installer crash
http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/dfly-installer-crash.jpg

Is there a way to restart the installer and get going with the 
installation ?


--
thanks
Saifi.


page fault while installer exits setup and umounts

2010-03-29 Thread Saifi Khan
Hi:

A page fault is encountered when the installer exits the setup 
and umounts.

This scenario is encountered with March 29 snapshot of 
DragonFlyBSD for X86_64.

Here are the screen shots:

page fault
http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/installer-umount-pg-fault01.jpg

fatal trap 9: general protection fault
http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/installer-umount-pg-fault-02.jpg



--
thanks
Saifi.


Re: DragonFlyBSD install issue on quad-core AMD64

2010-03-17 Thread Saifi Khan
On Wed, 17 Mar 2010, Saifi Khan wrote:

 On Wed, 17 Mar 2010, Saifi Khan wrote:
 
  Hi:
  
  DragonFlyBSD 2.4.1 CD image for AMD64 is being used for 
  installation on a quad-core AMD64 Athlon II X4 630 C2 with a 
  single 500GB SATA disk and 4GB DDR3 RAM.
  
  The boot loader comes up fine and in selecting either of the two 
  options, ie. boot with ACPI disabled or otherwise, the same 
  error iso_mountroot: can't find rootvp !
  
  Please see the photo here:
  http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/DSC00066.jpg
  
  Is there a workaround to this issue ?
  
  --
  thanks
  Saifi.
  
 
 The issue above is also seen with the DragonFlyBSD Feb 24, 2010 
 snapshot !
 
 

FreeBSD 9-CURRENT 201002 feb snapshot for AMD64 installs 
absolutely fine on the quad-core machine. So do OpenSolaris 
nevada build and OpenSuSe 11.2 !


--
thanks
Saifi.


Re: DragonFly main rsync mirror (chlamydia) DOWN

2010-03-17 Thread Saifi Khan
On Wed, 17 Mar 2010, Matthias Schmidt wrote:

 Hi,
 
 if you operate a DragonFly BSD mirror and if you mirror from
 chlamydia.fs.ei.tum.de, please read this mail closely!
 
 chlamydia is dead now, so you have to mirror from another machine.
 Please rsync from
 
   avalon.dragonflybsd.org
 
 The machine is located in the US.
 
 I already send an announcement to all known mirror operators, but I do
 not have all email addresses ...  Please contact me if you operate a
 mirror.
 
 If you have questions do not hesitate to contact me off-list.
 
 Cheers
 
   Matthias
 

Guess the following page needs updating
http://en.wikipedia.org/wiki/DragonFly_BSD

The last line under 'Development and Distribution' section
...
Daily snapshots are available from Simon 'corecode' Schubert via 
FTP[] and HTTP[] for those who want to install the most recent 
versions of DragonFly without building from source.
...


--
thanks
Saifi.


DragonFlyBSD snapshot images for X86_64/AMD64

2010-03-16 Thread Saifi Khan
Hi:

Is there a site to download the latest DragonFlyBSD snapshot 
images for X86_64/AMD64 platform ?

The one available for AMD64 is 2.4.1, whereas chlamydia hosts 
only i386 images.


--
thanks
Saifi.


Re: Fwd: DragonFlyBSD snapshot images for X86_64/AMD64

2010-03-16 Thread Saifi Khan
On Tue, 16 Mar 2010, Antonio Huete Jimenez wrote:

 Hi Saifi,
 
 Here you are: 
 http://island.quantumachine.net/pub/DragonFlyBSD/snapshots/x86_64/
 
 island is in sync with avalon, which is the main mirror site. Take in
 account that latest snapshot is around 1 month old because x64 release
 build is currently broken due a m4 problem.
 
 I will try to workaround this until the PR filed in NBSD bug tracked
 is considered.
 
 Cheers,
 Antonio Huete
 
 2010/3/16 Saifi Khan saifi.k...@datasynergy.org:
  Hi:
 
  Is there a site to download the latest DragonFlyBSD snapshot
  images for X86_64/AMD64 platform ?
 
  The one available for AMD64 is 2.4.1, whereas chlamydia hosts
  only i386 images.
 
 
  --
  thanks
  Saifi.
 
 

Thanks Antonio for the link.

i'm currently downloading the .ISO image and will give it a try 
soon.


--
thanks
Saifi.


DragonFlyBSD 2.4.1 install issue on quad-core AMD64

2010-03-16 Thread Saifi Khan
Hi:

DragonFlyBSD 2.4.1 CD image for AMD64 is being used for 
installation on a quad-core AMD64 Athlon II X4 630 C2 with a 
single 500GB SATA disk and 4GB DDR3 RAM.

The boot loader comes up fine and in selecting either of the two 
options, ie. boot with ACPI disabled or otherwise, the same 
error iso_mountroot: can't find rootvp !

Please see the photo here:
http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/DSC00066.jpg

Is there a workaround to this issue ?

--
thanks
Saifi.


Re: DragonFlyBSD install issue on quad-core AMD64

2010-03-16 Thread Saifi Khan
On Wed, 17 Mar 2010, Saifi Khan wrote:

 Hi:
 
 DragonFlyBSD 2.4.1 CD image for AMD64 is being used for 
 installation on a quad-core AMD64 Athlon II X4 630 C2 with a 
 single 500GB SATA disk and 4GB DDR3 RAM.
 
 The boot loader comes up fine and in selecting either of the two 
 options, ie. boot with ACPI disabled or otherwise, the same 
 error iso_mountroot: can't find rootvp !
 
 Please see the photo here:
 http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/DSC00066.jpg
 
 Is there a workaround to this issue ?
 
 --
 thanks
 Saifi.
 

The issue above is also seen with the DragonFlyBSD Feb 24, 2010 
snapshot !


--
thanks
Saifi.


install to USB disk

2010-03-14 Thread Saifi Khan
Hi:

Here is the usecase i'm trying to explore during the 
installation.

I power cycle the laptop and select ATAPI CD/DVD-ROM device. the 
BTX loader and the DragonFlyBSD installer starts.

 . DragonFlyBSD CD in the CD-tray
 . 160GB USB disk attached to laptop
 . Main laptop disk not touched.

Now attempt to install DragonFlyBSD to the attached USB disk and 
*not* the main laptop disk. However, the installer shows only 
the main disk.

Is there a way to install DragonFlyBSD to the USB disk ?
(a manual approach would also be fine). Anybody tried this ?


--
thanks
Saifi.


boot from USB disk

2010-03-13 Thread Saifi Khan
Hi:

DragonFlyBSD was installed on a SATA disk which was part of the 
system. After installation the system booted up fine.

The system was shutdown and the SATA disk was removed and placed 
in a USB disk enclosure.

Now the system was powered on and 'boot from USB boot disk' was 
selected. The BTX loader worked, so did the initial boot up 
sequence until the step of mounting the partition, where it 
panic'd at the 'root mount'.

Is there a workaround to fix this issue ?


 --
thanks
Saifi.


Re: custom boot menu

2010-03-13 Thread Saifi Khan
On Mon, 8 Mar 2010, Sascha Wildner wrote:

 Am 08.03.2010 14:57, schrieb Saifi Khan:
  Since the boot manager displays information on the basis of
  partition ID, DragonFlyBSD is shown as FreeBSD !
 
 In DragonFly's boot0? It must be really old then, since I changed it to
 DF/FBSD back in 2005. Not that this helps you any better but it's all boot0
 can say about the OS type at that moment.
 
 Sascha
 

How do the other *BSD boot-loaders show the string DF/FBSD or 
even GRUB for that matter, as long as the partition ID is same 
as FreeBSD ?


--
thanks
Saifi.


Re: intr2 at 40001/40000 hz, livelocked limit engaged.

2010-03-13 Thread Saifi Khan
On Wed, 3 Mar 2010, Matthew Dillon wrote:

 :Hi:
 :
 :nfe0: watchdog timeout - lost interrupt recovered
 :
 :The network access from this machine or to this machine is at 
 :best sporadic and SSH clients timeout.
 :
 :The box has a NVIDIA nForce 405 Nvidia (n...@pci0:0:7:0).
 :
 :Is there any workaround to fix this issue ?
 :
 :--
 :thanks
 :Saifi.
 
 It sounds like nfe0's interrupt is miswired, you have two choices:
 
 (1) Try running nfs0 in polling mode.
 
   ifconfig nfe0 polling
 
 (2) Compile SMP but without APIC_IO.  This might fix the interrupt
   routing issue too.
 
   -Matt
   Matthew Dillon 
   dil...@backplane.com
 

Thank you for the suggestions Matt.

The option (1) worked fine with the following approach:
 . comment out dhcp enabled line in rc.conf
 . # ifconfig nfe0 polling
 . # dhclient nfe0

On another note, the same issue was noticed with NetBSD 5.x on 
the same box.


--
thanks
Saifi.


intr2 at 40001/40000 hz, livelocked limit engaged.

2010-03-03 Thread Saifi Khan

Hi:

On an AMD64X2 box running 2.5.1-DEVELOPMENT
DragonFly v2.5.1.927.gb527c-DEVELOPMENT
based on X86_64_GENERIC 
with options
 APIC_IO
 SMP

On running any of the commands,
# ping 10.10.10.1
or
# /etc/rc.d/sshd start

The following errors are seen 
intr2 at 17174/2 hz, livelock removed
intr2 at 40001/4 hz, livelocked limit engaged !

nfe0: watchdog timeout - lost interrupt recovered

The network access from this machine or to this machine is at 
best sporadic and SSH clients timeout.

The box has a NVIDIA nForce 405 Nvidia (n...@pci0:0:7:0).

Is there any workaround to fix this issue ?


--
thanks
Saifi.


custom boot menu

2010-02-23 Thread Saifi Khan
Hi:

i've set up a quad boot system with BSD's installed
in the following order
 FreeBSD
 DragonFlyBSD
 OpenBSD
 NetBSD

At boot time, the current display is shown as
 . FreeBSD
 . FreeBSD
 . BSD
 . BSD

i'd like to create a custom boot menu, which shows their 
respective names. Any suggestions or pointers ?


--
thanks
Saifi.


Re: X86_64-VKERNEL

2009-12-01 Thread Saifi Khan
On Fri, 6 Nov 2009, Jordan Gordeev wrote:

 Saifi Khan wrote:
  On Fri, 6 Nov 2009, Jordan Gordeev wrote:
  
   Saifi Khan wrote:
Any pointers / observations about running VKERNEL on X86_64 ?

   There's no support for vkernel on 64-bit kernels.
   I've got unfinished work to add support.
   
  
  Thank you Jordan for your reply.
  
  Do you maintain a private git repo from where i can pull the
  current code ?
  
  
 Part of the work is in my leaf repo
 (git://leaf.dragonflybsd.org/~smtms/dragonfly.git).
 The other, more interesting, part is in a private repo you cannot access.
 I need to update the code to latest master, finish the work, clean it up, and
 figure out a strategy for integrating it.
 
 Greetings,
  Jordan
 

Is there some stuff you want to put out ? 
i could help with testing. 


thanks
Saifi.



Happy Thanksgiving

2009-11-27 Thread Saifi Khan
Hi:

Here is wishing all of our DragonFlyBSD community a happy
Thanksgiving day with their friends and families !

Special thanks to the DragonFlyBSD core team and Matt
for making the vision of DragonFlyBSD project a reality.


best regards
Saifi.



Re: linuxulator update

2009-11-27 Thread Saifi Khan
On Fri, 27 Nov 2009, Alex Hornung wrote:

 Hi,
 
 With our outdated linux emu (linuxulator) we can't run most of the software
 that can run on FreeBSD, such as newer jre/jdk, ... ( see bug report 1141
 [1] for more details).
 

JRE/JDK on FreeBSD donot seem to have linuxulator dependency.

%pkg_info | grep jdk
diablo-jdk-1.6.0.07.02_5 Java Development Kit 1.6.0_07.02

How is the idea of exploring
. Apache Harmony 5.0 M11 for JDK/JRE 5.0 compatibility
. OpenJDK7 b75 for JDK/JRE 7.x compatibility


thanks
Saifi.



some git usage related queries

2009-11-08 Thread Saifi Khan
Hi:

Here are some git usage related newbie queries.

1. i read a notification about a new commit 
   eg. pkgsrc commit 
   
http://gitweb.dragonflybsd.org/pkgsrc.git/commit/4ceab3c0055ed6bdacff399294ff8ef253b99468

   Since i maintain a local git repo for pkgsrc, i'd like to
   know the diff between what i got and what's in the latest
   commit.

   What command do i run locally to see the diff ?


2. i've pulled in latest commits using 'git pull'.
   While working with local repository, i want to
   know the diff between the last commit and the latest commit
   for a given file eg. nrelease/Makefile.

   what i tried doing was:
   # cd /usr/src
   # cd nrelease
   # git diff HEAD^ HEAD ./Makefile
   #

This doesn't work. What is the correct approach here ?


3. after pulling in the changes related to Sascha's commit eg.
   
   when i tried this command:
   # git describe 5623ae32853fcfb747f493ea6af0059a56fb9b56
   v2.5.1-200-g5623ae3

This doesn't show up the details of the commit. What would be
the appropriate command to use ?


4. i apply some patches to a given file
   eg. Stathis' patch for mq*() syscall for MPSAFE

   # cd /usr/src
   # fetch http://leaf.dragonflybsd.org/~beket/mq-mpsafe.diff
   # git apply mq-mpsafe.diff

   Ideally i should have created a branch and then apply the
   patch. However, i applied the patch to the master.
   Some new files are created and some .bak files created.
   When i 'git pull' next, there are issues.

   What is a good practice to adopt here ?

   Is there also something as 'unapply' a patch in git ?


i've readup Pragmatic version control with Git and GitUsage
documentation in the wiki. So, while i can get around with basic
Git commands, i'm still facing issues.  

i'd be grateful, if some of experienced folks on the project can
share their nuggets of wisdom on this. Thanks for any help.


thanks
Saifi.



Re: Makefile upgrade: target for x86_64

2009-11-08 Thread Saifi Khan
On Sat, 7 Nov 2009, Simon 'corecode' Schubert wrote:

 YONETANI Tomokazu wrote:
   
If you're  performing the `approved method of upgrading your
system', you're still running old kernel, which should return
amd64.  
  
  I've just upgraded my amd64 machine as described at the end of build(7)
  with a little arrangement:
  
  env - PATH=/sbin:/bin:/usr/sbin:/usr/bin __MAKE_CONF=/dev/null sh -c '
  make buildworld
  make buildkernel KERNCONF=FOO
  make installkernel KERNCONF=FOO
  make installworld
  MACHINE_ARCH=x86_64 make upgrade
  '
  
  (the first line is to get rid of extra env variables or /etc/make.conf)
  then rebooted, and now make command reports these variables correctly:
  $ cd
  $ env - PATH=$PATH make -V MACHINE_ARCH -V MACHINE -V MACHINE_PLATFORM
  x86_64
  x86_64
  pc64
 
 correct.  just reboot and then perform the make upgrade.
 

Yonetani and Simon, thank you for the details.

The box is now running DragonFly v2.5.1.201.gd6e55-DEVELOPMENT

#  make -V MACHINE_ARCH -V MACHINE -V MACHINE_PLATFORM
x86_64
x86_64
pc64
# 


thanks
Saifi.



Re: tcsh-6 compilation error with gcc44 (buildworld)

2009-11-08 Thread Saifi Khan
On Sat, 7 Nov 2009, Peter Avalos wrote:

 On Sat, Nov 07, 2009 at 09:49:50PM +0530, Saifi Khan wrote:
  Hi:
  
  On a AMD64X2 system running DragonFly v2.5.1.187.gc1543-DEV
  
  i'm trying to 'buildworld' with 'gcc44' as
  
  # CCVER=gcc44 make buildworld
 
 buildworld is not warning-free with gcc44.  You need to also set
 NO_WERROR.
 

Peter thank you for your reply.

Yes, i could successfully do the buildworld+installworld with

CCVER=gcc44 make -DNO_WERROR buildworld


thanks
Saifi.




Re: tcsh-6 compilation error with gcc44 (buildworld)

2009-11-08 Thread Saifi Khan
On Sat, 7 Nov 2009, Sascha Wildner wrote:

 Peter Avalos schrieb:
  On Sat, Nov 07, 2009 at 09:49:50PM +0530, Saifi Khan wrote:
   Hi:
   
   On a AMD64X2 system running DragonFly v2.5.1.187.gc1543-DEV
   
   i'm trying to 'buildworld' with 'gcc44' as
   
   # CCVER=gcc44 make buildworld
  
  buildworld is not warning-free with gcc44.  You need to also set
  NO_WERROR.
  
  --Peter
 
 Same goes for clang. I've committed a fix that restricts -Werror to gcc41 for
 now.
 
 Sascha
 

Sascha, i did a git pull to pull in your commit
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5623ae32853fcfb747f493ea6af0059a56fb9b56

However, i encountered the *same error* while building tcsh-6,
on running this command:

CCVER=gcc44 make buildworld

So, i specified the macro -DNO_WERROR and the ran the command:

CCVER=gcc44 make -DNO_WERROR buildworld

This works absolutely fine.

Pls note that /etc/make.conf doesnot exist on the system.

Is there a possibility that some other .mk file needs to be
reviewed as well ?


thanks
Saifi.



Re: some git usage related queries

2009-11-08 Thread Saifi Khan
On Sat, 7 Nov 2009, Peter Avalos wrote:

 On Sun, Nov 08, 2009 at 02:12:24PM +0530, Saifi Khan wrote:
  Hi:
  
  Here are some git usage related newbie queries.
  
  
 
 Try the manual pages or git help too.
 

Peter and Stathis thank you for the kind help.

While studying the recent commits related to mandoc(1), there
are two very similar commits:

1. Sascha's mandoc(1) commits (Nov 7)
   54 files changed, 1349 insertions(+), 730 deletions(-)
   
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0dd4f1472251d685486367a185d3b9d78062f84d

2. Alexander's mandoc(1) commits (Nov 8)
   54 files changed, 1349 insertions(+), 730 deletions(-)
   
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/32c903ac153404697d03cdf54825a041b54dd714

How do i see what are the changes between the two ?


thanks
Saifi.



Cannot unmount namecache|process references

2009-11-08 Thread Saifi Khan
Hi:

After completing a installation using the 2.4.1 LiveCD, the
system was rebooted.

The screen fills up with
'cannot umount: X namecache|process references

Please see the photo here
http://i818.photobucket.com/albums/zz107/saifikhan/dragonfly/DSC00100.jpg

Seen on both x86_64 box and x86 box.

Has anybody encountered this ?
Is this possibly a bug ?


thanks
Saifi.



Re: some git usage related queries

2009-11-08 Thread Saifi Khan
On Sun, 8 Nov 2009, Peter Avalos wrote:

 On Mon, Nov 09, 2009 at 09:17:58AM +0530, Saifi Khan wrote:
  
  While studying the recent commits related to mandoc(1), there
  are two very similar commits:
  
  1. Sascha's mandoc(1) commits (Nov 7)
 54 files changed, 1349 insertions(+), 730 deletions(-)
 
  http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0dd4f1472251d685486367a185d3b9d78062f84d
  
  2. Alexander's mandoc(1) commits (Nov 8)
 54 files changed, 1349 insertions(+), 730 deletions(-)
 
  http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/32c903ac153404697d03cdf54825a041b54dd714
  
  How do i see what are the changes between the two ?
  
 
 git diff 
 0dd4f1472251d685486367a185d3b9d78062f84d..32c903ac153404697d03cdf54825a041b54dd714
 
 I'm not sure what Alexander did to cause that.  Was there a git push -f
 involved?
 

Thank you Peter for your reply.

Yes, i also ran the same command, but it gives an error 'invalid
revision range'.

Please see the entire log below.

--
Script started on Mon Nov  9 10:54:04 2009

$pwd
/usr/home/saifi/workarea/dragonfly
$ls
COPYRIGHT   bin/cscope.po.out   lib/
sys/
Makefilecontrib/etc/
libexec/tags
Makefile.inc1   crypto/ g.log   
nrelease/   test/
Makefile_upgrade.inccscope.filesgames/  sbin/   
tools/
README  cscope.in.out   gnu/secure/ 
usr.bin/
UPDATINGcscope.out  include/share/  
usr.sbin/

$git pull -v
From git://chlamydia.fs.ei.tum.de/dragonfly
 = [up to date]  DragonFly_RELEASE_1_10 - origin/DragonFly_RELEASE_1_10
 = [up to date]  DragonFly_RELEASE_1_12 - origin/DragonFly_RELEASE_1_12
 = [up to date]  DragonFly_RELEASE_1_2 - origin/DragonFly_RELEASE_1_2
 = [up to date]  DragonFly_RELEASE_1_4 - origin/DragonFly_RELEASE_1_4
 = [up to date]  DragonFly_RELEASE_1_6 - origin/DragonFly_RELEASE_1_6
 = [up to date]  DragonFly_RELEASE_1_8 - origin/DragonFly_RELEASE_1_8
 = [up to date]  DragonFly_RELEASE_2_0 - origin/DragonFly_RELEASE_2_0
 = [up to date]  DragonFly_RELEASE_2_2 - origin/DragonFly_RELEASE_2_2
 = [up to date]  DragonFly_RELEASE_2_4 - origin/DragonFly_RELEASE_2_4
 = [up to date]  doc- origin/doc
 = [up to date]  master - origin/master
 = [up to date]  netmp  - origin/netmp
 = [up to date]  repo/hooks - origin/repo/hooks
 = [up to date]  site   - origin/site
 = [up to date]  vendor/ACPICA-UNIX - origin/vendor/ACPICA-UNIX
 = [up to date]  vendor/ATHEROS - origin/vendor/ATHEROS
 = [up to date]  vendor/AWK - origin/vendor/AWK
 = [up to date]  vendor/BIND - origin/vendor/BIND
 = [up to date]  vendor/BINUTILS - origin/vendor/BINUTILS
 = [up to date]  vendor/BINUTILS220 - origin/vendor/BINUTILS220
 = [up to date]  vendor/BSDINSTALLER - origin/vendor/BSDINSTALLER
 = [up to date]  vendor/BSDTAR - origin/vendor/BSDTAR
 = [up to date]  vendor/BZIP - origin/vendor/BZIP
 = [up to date]  vendor/CVS - origin/vendor/CVS
 = [up to date]  vendor/DHCP - origin/vendor/DHCP
 = [up to date]  vendor/DIFFUTILS - origin/vendor/DIFFUTILS
 = [up to date]  vendor/FILE - origin/vendor/FILE
 = [up to date]  vendor/GCC - origin/vendor/GCC
 = [up to date]  vendor/GCC44 - origin/vendor/GCC44
 = [up to date]  vendor/GDB - origin/vendor/GDB
 = [up to date]  vendor/GDTOA - origin/vendor/GDTOA
 = [up to date]  vendor/GMP - origin/vendor/GMP
 = [up to date]  vendor/GPERF - origin/vendor/GPERF
 = [up to date]  vendor/GROFF - origin/vendor/GROFF
 = [up to date]  vendor/HEIMDAL - origin/vendor/HEIMDAL
 = [up to date]  vendor/HOSTAPD - origin/vendor/HOSTAPD
 = [up to date]  vendor/INTEL_ACPICA - origin/vendor/INTEL_ACPICA
 = [up to date]  vendor/LESS - origin/vendor/LESS
 = [up to date]  vendor/LIBARCHIVE - origin/vendor/LIBARCHIVE
 = [up to date]  vendor/LIBEVENT - origin/vendor/LIBEVENT
 = [up to date]  vendor/LIBPCAP - origin/vendor/LIBPCAP
 = [up to date]  vendor/LIBSTDC++ - origin/vendor/LIBSTDC++
 = [up to date]  vendor/LUKEMFTP - origin/vendor/LUKEMFTP
 = [up to date]  vendor/MPFR - origin/vendor/MPFR
 = [up to date]  vendor/NCURSES - origin/vendor/NCURSES
 = [up to date]  vendor/NETGRAPH - origin/vendor/NETGRAPH
 = [up to date]  vendor/NTPD - origin/vendor/NTPD
 = [up to date]  vendor/OPENPAM - origin/vendor/OPENPAM
 = [up to date]  vendor/OPENSSH - origin/vendor/OPENSSH
 = [up to date]  vendor/OPENSSL - origin/vendor/OPENSSL
 = [up to date]  vendor/PAM_PASSWDQC - origin/vendor/PAM_PASSWDQC
 = [up to date]  vendor/READLINE - origin/vendor/READLINE
 = [up to date]  vendor/SENDMAIL - origin

Re: some git usage related queries

2009-11-08 Thread Saifi Khan
On Sun, 8 Nov 2009, Peter Avalos wrote:

 On Mon, Nov 09, 2009 at 09:17:58AM +0530, Saifi Khan wrote:
  
  While studying the recent commits related to mandoc(1), there
  are two very similar commits:
  
  1. Sascha's mandoc(1) commits (Nov 7)
 54 files changed, 1349 insertions(+), 730 deletions(-)
 
  http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0dd4f1472251d685486367a185d3b9d78062f84d
  
  2. Alexander's mandoc(1) commits (Nov 8)
 54 files changed, 1349 insertions(+), 730 deletions(-)
 
  http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/32c903ac153404697d03cdf54825a041b54dd714
  
  How do i see what are the changes between the two ?
  
 
 git diff 
 0dd4f1472251d685486367a185d3b9d78062f84d..32c903ac153404697d03cdf54825a041b54dd714
 
 I'm not sure what Alexander did to cause that.  Was there a git push -f
 involved?
 

Thank you Peter for your reply.

Yes, i also ran the same command, but it gives an error 'invalid
revision range'.

Please see the entire log below.

--
Script started on Mon Nov  9 10:54:04 2009

$pwd
/usr/home/saifi/workarea/dragonfly
$ls
COPYRIGHT   bin/cscope.po.out   lib/
sys/
Makefilecontrib/etc/
libexec/tags
Makefile.inc1   crypto/ g.log   
nrelease/   test/
Makefile_upgrade.inccscope.filesgames/  sbin/   
tools/
README  cscope.in.out   gnu/secure/ 
usr.bin/
UPDATINGcscope.out  include/share/  
usr.sbin/

$git pull -v
 git://chlamydia.fs.ei.tum.de/dragonfly
 = [up to date]  DragonFly_RELEASE_1_10 - origin/DragonFly_RELEASE_1_10
 = [up to date]  DragonFly_RELEASE_1_12 - origin/DragonFly_RELEASE_1_12
 = [up to date]  DragonFly_RELEASE_1_2 - origin/DragonFly_RELEASE_1_2
 = [up to date]  DragonFly_RELEASE_1_4 - origin/DragonFly_RELEASE_1_4
 = [up to date]  DragonFly_RELEASE_1_6 - origin/DragonFly_RELEASE_1_6
 = [up to date]  DragonFly_RELEASE_1_8 - origin/DragonFly_RELEASE_1_8
 = [up to date]  DragonFly_RELEASE_2_0 - origin/DragonFly_RELEASE_2_0
 = [up to date]  DragonFly_RELEASE_2_2 - origin/DragonFly_RELEASE_2_2
 = [up to date]  DragonFly_RELEASE_2_4 - origin/DragonFly_RELEASE_2_4
 = [up to date]  doc- origin/doc
 = [up to date]  master - origin/master
 = [up to date]  netmp  - origin/netmp
 = [up to date]  repo/hooks - origin/repo/hooks
 = [up to date]  site   - origin/site
 = [up to date]  vendor/ACPICA-UNIX - origin/vendor/ACPICA-UNIX
 = [up to date]  vendor/ATHEROS - origin/vendor/ATHEROS
 = [up to date]  vendor/AWK - origin/vendor/AWK
 = [up to date]  vendor/BIND - origin/vendor/BIND
 = [up to date]  vendor/BINUTILS - origin/vendor/BINUTILS
 = [up to date]  vendor/BINUTILS220 - origin/vendor/BINUTILS220
 = [up to date]  vendor/BSDINSTALLER - origin/vendor/BSDINSTALLER
 = [up to date]  vendor/BSDTAR - origin/vendor/BSDTAR
 = [up to date]  vendor/BZIP - origin/vendor/BZIP
 = [up to date]  vendor/CVS - origin/vendor/CVS
 = [up to date]  vendor/DHCP - origin/vendor/DHCP
 = [up to date]  vendor/DIFFUTILS - origin/vendor/DIFFUTILS
 = [up to date]  vendor/FILE - origin/vendor/FILE
 = [up to date]  vendor/GCC - origin/vendor/GCC
 = [up to date]  vendor/GCC44 - origin/vendor/GCC44
 = [up to date]  vendor/GDB - origin/vendor/GDB
 = [up to date]  vendor/GDTOA - origin/vendor/GDTOA
 = [up to date]  vendor/GMP - origin/vendor/GMP
 = [up to date]  vendor/GPERF - origin/vendor/GPERF
 = [up to date]  vendor/GROFF - origin/vendor/GROFF
 = [up to date]  vendor/HEIMDAL - origin/vendor/HEIMDAL
 = [up to date]  vendor/HOSTAPD - origin/vendor/HOSTAPD
 = [up to date]  vendor/INTEL_ACPICA - origin/vendor/INTEL_ACPICA
 = [up to date]  vendor/LESS - origin/vendor/LESS
 = [up to date]  vendor/LIBARCHIVE - origin/vendor/LIBARCHIVE
 = [up to date]  vendor/LIBEVENT - origin/vendor/LIBEVENT
 = [up to date]  vendor/LIBPCAP - origin/vendor/LIBPCAP
 = [up to date]  vendor/LIBSTDC++ - origin/vendor/LIBSTDC++
 = [up to date]  vendor/LUKEMFTP - origin/vendor/LUKEMFTP
 = [up to date]  vendor/MPFR - origin/vendor/MPFR
 = [up to date]  vendor/NCURSES - origin/vendor/NCURSES
 = [up to date]  vendor/NETGRAPH - origin/vendor/NETGRAPH
 = [up to date]  vendor/NTPD - origin/vendor/NTPD
 = [up to date]  vendor/OPENPAM - origin/vendor/OPENPAM
 = [up to date]  vendor/OPENSSH - origin/vendor/OPENSSH
 = [up to date]  vendor/OPENSSL - origin/vendor/OPENSSL
 = [up to date]  vendor/PAM_PASSWDQC - origin/vendor/PAM_PASSWDQC
 = [up to date]  vendor/READLINE - origin/vendor/READLINE
 = [up to date]  vendor/SENDMAIL - origin/vendor

Re: git: Revert rename amd64 architecture to x86_64

2009-11-07 Thread Saifi Khan
On Fri, 6 Nov 2009, Jordan Gordeev wrote:

 
 commit 3f3709c349e3585274c0e23e09a87f8f75c8ce7d
 Author: Jordan Gordeev jgord...@dir.bg
 Date:   Sat Nov 7 09:30:29 2009 +0200
 
 Revert rename amd64 architecture to x86_64
 
 This reverts commit c1543a890188d397acca9fe7f76bcd982481a763.
 

Hi:

Anybody knows why the checkin was reverted ?

i pulled in changes after Simon's checkin and then successful
built world+kernel.

Currently my AMD64X2 box is running 
DragonFly v2.5.1.187.gc1543-DEVELOPMENT

i have successfully built packages from pkgsrc for X86_64
 . make
 . libtool
 . gettext
 . lua

Any pointers/observations as to what issue caused the checkin to
be reverted ?


thanks
Saifi.


tcsh-6 compilation error with gcc44 (buildworld)

2009-11-07 Thread Saifi Khan
Hi:

On a AMD64X2 system running DragonFly v2.5.1.187.gc1543-DEV

i'm trying to 'buildworld' with 'gcc44' as

# CCVER=gcc44 make buildworld

...
...
=== bin/csh
grep '[FV]_' /usr/src/bin/csh/../../contrib/tcsh-6/ed.defns.c | grep '^#define' 
 ed.defns.h
grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh-6/sh.err.c | grep '^#define'  
sh.err.h
cc -E -O -pipe  -I. -I/usr/src/bin/csh -I/usr/src/bin/csh/../../contrib/tcsh-6 
-D_PATH_TCSHELL='/bin/csh'   -Wsystem-headers -Werror -Wall 
-Wno-uninitialized /usr/src/bin/csh/../../contrib/tcsh-6/tc.const.c 
/usr/src/bin/csh/../../contrib/tcsh-6/sh.char.h /usr/src/bin/csh/config.h 
/usr/src/bin/csh/../../contrib/tcsh-6/config_f.h 
/usr/src/bin/csh/../../contrib/tcsh-6/sh.types.h sh.err.h -D_h_tc_const | grep 
'Char STR' |  sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' |  
sort  tc.const.h
CCVER=gcc44 BINUTILSVER=binutils217 OBJFORMAT_PATH=/ 
PATH=/usr/bin:/bin:/usr/sbin:/sbin cc  -O -pipe -I. -I/usr/src/bin/csh 
-I/usr/src/bin/csh/../../contrib/tcsh-6 -D_PATH_TCSHELL='/bin/csh' 
-Wsystem-headers -Werror -Wall -Wno-uninitialized -static  -static 
/usr/src/bin/csh/../../contrib/tcsh-6/gethost.c   -o gethost.nx
cc1: warnings being treated as errors
/usr/src/bin/csh/../../contrib/tcsh-6/gethost.c: In function 'main':
/usr/src/bin/csh/../../contrib/tcsh-6/gethost.c:234: error: the address of 
'defs' will always evaluate as 'true'
*** Error code 1

Stop in /usr/src/bin/csh.
*** Error code 1

Stop in /usr/src/bin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

--
In the code as can be see here,
http://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/contrib/tcsh-6/gethost.c

...
 char defs[INBUFSIZE];
...
...

 case T_NONE:
if (state != S_CODE  defs  *defs != '\0') {
...
}
...

The expression seems fine to me. 
Any workaround for this ?


thanks
Saifi.



Re: [Fwd: pkgbox64 pkgsrc DragonFly 2.5.1/x86_64 2009-11-05 02:50]

2009-11-05 Thread Saifi Khan
On Thu, 5 Nov 2009, jus...@shiningsilence.com wrote:

 A new set of pkgsrc packages for 2.5/64-bit 2009Q3 DragonFly have been
 built.  It's coming from pkgbox64 behind Matt's connection, so the actual
 packages are probably still uploading to avalon, but the build report is
 here and the logs are here:
 
 http://avalon.dragonflybsd.org/reports/20091105.0250/
 

A newbie query here,

In DragonFly BSD 2.4.1 release, the build triplet for target
system is 'amd64-pc-dragonflybsd'.

However, the build.log for gcc44-4 (pkgsrc report above) shows
the target system as 'x86_64-unknown-dragonflybsd2.5.1'

Usually version numbers are not part of the triplet and unknown
is either pc or some such.

So, is this the build triplet in the interim as the transition
happens to a new moniker ?


thanks
Saifi.


Re: [Fwd: pkgbox64 pkgsrc DragonFly 2.5.1/x86_64 2009-11-05 02:50]

2009-11-05 Thread Saifi Khan
On Thu, 5 Nov 2009, jus...@shiningsilence.com wrote:

 
  In DragonFly BSD 2.4.1 release, the build triplet for target
  system is 'amd64-pc-dragonflybsd'.
 
  However, the build.log for gcc44-4 (pkgsrc report above) shows
  the target system as 'x86_64-unknown-dragonflybsd2.5.1'
 
  Usually version numbers are not part of the triplet and unknown
  is either pc or some such.
 
  So, is this the build triplet in the interim as the transition
  happens to a new moniker ?
 
 Our system says amd64, while pkgsrc says x86-64.  Corecode I think may
 be working to change this...
 

Justin, thank you for your reply.

Yes, Simon mentioned about the change from amd64 - x86_64

What i wanted to highlight was the suffix part !

The system triplet suffix is : dragonflybsd
The pkgsrc triplet suffix is : dragonflybsd2.5.1

Usually version numbers eg. 2.5.1 are not part of the triplet as
they keep changing.


thanks
Saifi.



ACPI version to set in BIOS

2009-11-05 Thread Saifi Khan
Hi:

The BIOS setup utility (v02.58 American Megatrends) provides multiple ACPI 
versions
 . ACPI v1.0
 . ACPI v2.0
 . ACPI v3.0

Currently i've configured ACPI v1.0 while running DragonFly BSD
HEAD, but i'd like to know what is the recommended version to
setup in BIOS while running DragonFly ?


thanks
Saifi.



Re: Analysis on make parallelism for buildworld

2009-11-05 Thread Saifi Khan
On Thu, 5 Nov 2009, Simon 'corecode' Schubert wrote:

 Saifi Khan wrote:
  Please review and let me know if there is any tweak/correction
  that you deem necessary.
 
 Hey!
 
 that is interesting.  Could you run it with 5 jobs as well so that we can see
 whether how much difference this makes?
 
 Also, are those data points multiple runs or just one?
 

Please find attached make-j-runtimes-2.png which is plotted data
with 2 complete run sets with 5 jobs each.


thanks
Saifi.


make-j-runtimes-2.png
Description: Binary data


disklabel or disklabel64 for vkernel on AMD64

2009-11-05 Thread Saifi Khan
Hi:

On my AMD64X2 box, i've buildworld+buildkernel with SMP enabled
and want to setup vkernel.

Referring to the vkernel setup here
http://www.dragonflybsd.org/docs/user/vKernelSetup/

Should disklabel or disklabel64 be used for vkernel image on AMD64 ?


thanks
Saifi.



Re: Xorg configuration

2009-11-04 Thread Saifi Khan
On Wed, 4 Nov 2009, Pierre Abbat wrote:

 I used Xorg -configure. I've seen another way of configuring X, which 
 starts 
 the server, displays a dialog box asking if it's visible, and then exits the 
 server if I don't push a button. Is that program available?
 

Perhaps you are referring to SAX2 utility in openSUSE.

You can use 'xvinfo' to print out X-Video adapter information
and then tailor the xorg.conf file.


thanks
Saifi.



remote branches

2009-11-04 Thread Saifi Khan
Hi:

Subsequent to a fresh DragonFly BSD 2.4.1 installation on AMD64
X2 box, i did the following steps to pull in the source code as
i did not want to use the Makefile.

# cd /usr
# mkdir src
# cd src
# git init
# git remote add origin git://git.dragonflybsd.org/dragonfly.git
# git pull origin HEAD

Is this the recommended approach ?


Additionally, when i try to view the 'remote' branches
# git branch -r
there are none seen.

Is this something to be worried about ?


On another laptop, i pulled in the code (couple of months ago)
using
# git clone -o chlamydia git://chlamydia.fs.ei.tum.de/dragonfly.git

followed by periodic
# git pull

When, i try to view the remote branches, Git shows it as,
# git branch -r

  origin/DragonFly_RELEASE_1_10
  origin/DragonFly_RELEASE_1_12
  origin/DragonFly_RELEASE_1_2
  origin/DragonFly_RELEASE_1_4
  origin/DragonFly_RELEASE_1_6
  origin/DragonFly_RELEASE_1_8
  origin/DragonFly_RELEASE_2_0
  origin/DragonFly_RELEASE_2_2
  origin/DragonFly_RELEASE_2_4
  origin/HEAD - origin/master
  origin/doc
  origin/master
  origin/netmp
  origin/repo/hooks
  origin/site
  origin/vendor/ACPICA-UNIX
  origin/vendor/ATHEROS
  origin/vendor/AWK
  origin/vendor/BIND
  origin/vendor/BINUTILS
  origin/vendor/BINUTILS220
  origin/vendor/BSDINSTALLER
  origin/vendor/BSDTAR
  origin/vendor/BZIP
  origin/vendor/CVS
  origin/vendor/DHCP
  origin/vendor/DIFFUTILS
  origin/vendor/FILE
  origin/vendor/GCC
  origin/vendor/GCC44
  origin/vendor/GDB
  origin/vendor/GDTOA
  origin/vendor/GMP
  origin/vendor/GPERF
  origin/vendor/GROFF
  origin/vendor/HEIMDAL
  origin/vendor/HOSTAPD
  origin/vendor/INTEL_ACPICA
  origin/vendor/LESS
  origin/vendor/LIBARCHIVE
  origin/vendor/LIBEVENT
  origin/vendor/LIBPCAP
  origin/vendor/LIBSTDC++
  origin/vendor/LUKEMFTP
  origin/vendor/MPFR
  origin/vendor/NCURSES
  origin/vendor/NETGRAPH
  origin/vendor/NTPD
  origin/vendor/OPENPAM
  origin/vendor/OPENSSH
  origin/vendor/OPENSSL
  origin/vendor/PAM_PASSWDQC
  origin/vendor/READLINE
  origin/vendor/SENDMAIL
  origin/vendor/TCPDUMP
  origin/vendor/TCSH
  origin/vendor/TEXINFO
  origin/vendor/TNFTP
  origin/vendor/WPA_SUPPLICANT
  origin/vendor/ZLIB

What could i be missing here ?


thanks
Saifi.



intr 2 at 40001/40000 hz, livelock limit engaged

2009-11-04 Thread Saifi Khan
Hi:

Compiled a custom kernel on AMD64 X2 with the following
modifications to the AMD64_GENERIC config.
 options SMP
 options APIC

and application of the patch 
 http://leaf.dragonflybsd.org/~beket/mq-mpsafe.diff


The following lines are seen, with network traffic degraded to
95% packet loss. In short, i can't ssh to the box.

...
intr 2 at 40001/4 hz, livelock limit engaged !
nfe0: watchdog timeout - lost interrupt recovered
nfe0: watchdog timeout - lost interrupt recovered
intr 2 at 14288/2 hz, livelock removed
intr 2 at 40001/4 hz, livelock limit engaged !
intr 2 at 14616/2 hz, livelock removed
intr 2 at 40001/4 hz, livelock limit engaged !
intr 2 at 13510/2 hz, livelock removed
intr 2 at 40001/4 hz, livelock limit engaged !
...

Is there a work around/fix to this issue ?


thanks
Saifi.



Re: SMP users needed to test patch

2009-11-04 Thread Saifi Khan
On Wed, 4 Nov 2009, Stathis Kamperis wrote:

 Hello everyone!
 
 I'd like to mark mq*() syscall as MPSAFE, but before that I need
 someone to test them in an SMP capable machine running SMP kernel. I
 only have UP machines around.
 
 So, if anyone is able and kind enough, here are some directions on how
 to do it. I assume s\he is running HEAD.
 
 cd /usr/src
 fetch http://leaf.dragonflybsd.org/~beket/mq-mpsafe.diff
 git apply mq-mpsafe.diff
 make buildkernel
 make installkernel
 reboot

Reached this far and currently face the issue which has
effectively disabled networking.

 intr 2 at 40001/4 hz, livelock limit engaged

Details posted in a separate thread.


thanks
Saifi.



Re: SMP users needed to test patch

2009-11-04 Thread Saifi Khan
On Wed, 4 Nov 2009, Stathis Kamperis wrote:

 2009/11/4 Saifi Khan saifi.k...@datasynergy.org:
  On Wed, 4 Nov 2009, Stathis Kamperis wrote:
 
  Hello everyone!
 
  I'd like to mark mq*() syscall as MPSAFE, but before that I need
  someone to test them in an SMP capable machine running SMP kernel. I
  only have UP machines around.
 
  So, if anyone is able and kind enough, here are some directions on how
  to do it. I assume s\he is running HEAD.
 
  cd /usr/src
  fetch http://leaf.dragonflybsd.org/~beket/mq-mpsafe.diff
  git apply mq-mpsafe.diff
  make buildkernel
  make installkernel
  reboot
 
  Reached this far and currently face the issue which has
  effectively disabled networking.
 
   intr 2 at 40001/4 hz, livelock limit engaged
 
  Details posted in a separate thread.
 
 
  thanks
  Saifi.
 
 
 
 Thank you Saifi! I very much appreciate the time you've put into this.
 
 Did you by any chance try without my patch and SMP/APIC set in your
 kernel configuration file ?
 

Unfortunately no !

Let me try and revert the patch i applied and rebuild the kernel.
Will post an update on this.


thanks
Saifi.



Re: SMP users needed to test patch

2009-11-04 Thread Saifi Khan
On Wed, 4 Nov 2009, Stathis Kamperis wrote:

 
 Did you by any chance try without my patch and SMP/APIC set in your
 kernel configuration file ?
 
 

Commented out the following option and 'recompiled' the kernel.

### options APIC_IO

Did not see any of the 'livelock' notifications.

So, i ventured out and cloned in the 'pcca-test'.

On running 'make' in the mqueue.h/

 make
gcc -Wall -W -Wformat-nonliteral -Wcast-align -Wpointer-arith  
-Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes  
-Wmissing-declarations -Winline -Wundef -Wnested-externs -Wcast-qual  -Wshadow 
-Wwrite-strings -Wno-unused-parameter -Wfloat-equal  -Wswitch 
-Wbad-function-cast -g -lrt t_mq_ambig.c -o t_mq_ambig
/usr/libexec/binutils217/elf/ld: cannot find -lrt
*** Error code 1

Stop in /home/saifi/dragonflybsd/pcca-tests/mqueue.h.
 

Does this imply that i need to buildworld as well ?

i suppose 'librt' is POSIX real time extensions.

Here is the 'dmesg', (it it helps).

...
Copyright (c) 2003-2009 The DragonFly Project.
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
DragonFly d15a49f-DEVELOPMENT #1: Thu Nov  5 13:21:29 IST 2009
r...@amd64x2.datasynergy.org:/usr/obj/usr/src/sys/AMD64-P-MQ
Calibrating clock(s) ... TSC clock: 2310389259 Hz, i8254 clock: 1193136 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (2310.50-MHz K8-class CPU)
  Origin = AuthenticAMD  Id = 0x60fb1  Stepping = 1
  
Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
  Features2=0x2001SSE3,CX16
  AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!
  AMD Features2=0x11fLAHF,CMP,SVM,ExtAPIC,CR8,Prefetch
  Cores per package: 2
L1 2MB data TLB: 8 entries, fully associative
L1 2MB instruction TLB: 8 entries, fully associative
L1 4KB data TLB: 32 entries, fully associative
L1 4KB instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 2MB unified TLB: 0 entries, disabled/not present
L2 4KB data TLB: 512 entries, 4-way associative
L2 4KB instruction TLB: 512 entries, 4-way associative
L2 unified cache: 512 kbytes, 64 bytes/line, 1 lines/tag, 16-way associative
real memory  = 2013003776 (1965824K bytes)
Physical memory chunk(s):
0x1000 - 0x0009bfff, 634880 bytes (155 pages)
0x01007000 - 0x77fa, 1996132352 bytes (487337 pages)
avail memory = 1879461888 (1835412K bytes)
lapic: divisor index 0, frequency 100455852 Hz
SMP: CPU0 apic_initialize():
 lint0: 0x0700 lint1: 0x00010400 TPR: 0x008f SVR: 0x01ff
DragonFly/MP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  0, version: 0x80050010, at 0xfee0
 cpu1 (AP):  apic id:  1, version: 0x80050010, at 0xfee0
 Warning: APIC I/O disabledAPIC_IO disabled
Finish MP startup
SMP: AP CPU #1 Launched!
SMP: CPU1 apic_initialize():
 lint0: 0x0001 lint1: 0x00010400 TPR: 0x008f SVR: 0x01ff
Active CPU Mask: 0003
objcache(exec-args): too small for ncpus, adjusting cluster_limit 16-32
Preloaded elf kernel /kernel at 0x80fde000.
Preloaded elf obj module /modules/acpi.ko at 0x80fde290.
start scheduler helpers on cpus: 0 1
start dummy scheduler helpers on cpus: 0 1
wlan: 802.11 Link Layer
kbd: new array size 4
kbd1 at kbdmux0
crypto: crypto core
sched_ithd: stray interrupt 7 on cpu 1
md0: Malloc disk
ACPI: RSDP 0xfb840 00014 (v0 ACPIAM)
ACPI: RSDT 0x77fc 00040 (v1 _ASUS_ Notebook 04000730 MSFT 0097)
ACPI: FACP 0x77fc0200 00084 (v2 A_M_I_ OEMFACP  04000730 MSFT 0097)
ACPI: DSDT 0x77fc05c0 04D44 (v1  A0557 A0557000  INTL 20051117)
ACPI: FACS 0x77fce000 00040
ACPI: APIC 0x77fc0390 00070 (v1 A_M_I_ OEMAPIC  04000730 MSFT 0097)
ACPI: MCFG 0x77fc0400 0003C (v1 A_M_I_ OEMMCFG  04000730 MSFT 0097)
ACPI: SLIC 0x77fc0440 00176 (v1 _ASUS_ Notebook 04000730 MSFT 0097)
ACPI: OEMB 0x77fce040 00060 (v1 A_M_I_ AMI_OEM  04000730 MSFT 0097)
ACPI: HPET 0x77fc5310 00038 (v1 A_M_I_ OEMHPET0 04000730 MSFT 0097)
ACPI: SSDT 0x77fc5350 00248 (v1 A_M_I_ POWERNOW 0001 AMD  0001)
acpi0.nexus0.root0
acpi0: _ASUS_ Notebook [tentative] on motherboard
acpi0: Power Button (fixed)
Warning: ACPI is disabling APM's device.  You can't run both
pci_open(1):mode 1 addr port (0x0cf8) is 0x8000c060
pci_open(1a):   mode1res=0x8000 (0x8000)
pci_cfgcheck:   device 0 [class=05] [hdr=00] is there (id=03ea10de)
AcpiOsDerivePciId: bus 0 dev 1 func 0
ACPI timer looks BAD  min = 5, max = 12, width = 7
ACPI timer looks BAD  min = 5, max = 793, width = 788
ACPI timer looks GOOD min = 5, max = 6, width = 1
ACPI timer looks BAD  min 

mandoc + re-using POSIX specs

2009-11-03 Thread Saifi Khan
Hi:

While there is a discussion happening (on another thread) in the
context of usage of mandoc, is it a good idea to review the
'possibility of re-using POSIX specs for manual pages' ?

the original thread is here,
http://leaf.dragonflybsd.org/mailarchive/docs/2004-01/index.html

i've read the entire 'docs' 2003-till date archives and couldn't
figure out how the POSIX related discussion was concluded.

What is the current understanding on this issue ?


thanks
Saifi.



DragonFlyBSD make

2009-11-02 Thread Saifi Khan
Hi:

Couple of newbie queries about DragonFlyBSD make:

Is DragonFlyBSD make a derivative of pmake ?

While using DragonFlyBSD make utility on a source tree 
(without -j option) with a .depend file, 
is a single shell executed for all dependency commands
or is a shell executed per command ?


thanks
Saifi.



Re: DragonFlyBSD make

2009-11-02 Thread Saifi Khan
On Mon, 2 Nov 2009, Matthew Dillon wrote:

 
 :Hi:
 :
 :Couple of newbie queries about DragonFlyBSD make:
 :
 :Is DragonFlyBSD make a derivative of pmake ?
 
 Not that I know of.  From outside the BSD world our
 make is bsdmake.
 
 

Matt, thank you for your reply.

Please see this link
http://leaf.dragonflybsd.org/cgi/web-man?command=makesection=1

There is a section titled,

SEE ALSO
 PMake - A Tutorial.  in /usr/share/doc/psd/12.make


thanks
Saifi.



Re: Xorg configuration (2)

2009-11-01 Thread Saifi Khan
On Sat, 31 Oct 2009, Pierre Abbat wrote:

 I tried to get X up after installing the updated drivers. I now have a 
 xorg.conf.new file, but when I try to start X, I get a blank screen with no 
 cursor. Ctrl-alt-bs exits, as it should. How do I fix it? It was working 
 before I did the software upgrade.
 

In addition to my previous mail, here are some more settings to
look at closely:

1.
Please make the following entry in
/etc/rc.conf
 hald_enable=YES
 dbus_enable=YES


2.
Please make the following entry in
$HOME/.xinitrc
 exec your-wm

where your-wm can be 
 twm
 dwm
 startkde
 /usr/local/bin/startxfce4


3. 
Please make the following entry in 
$HOME/.Xdefaults
  XTerm*background:#00
  XTerm*foreground:#FF
  XTerm*font: -*-andale mono-*-*-monospaced-*-17-*-*-*-*-0-*-*
  XTerm*highlightSelection:true
  !XTerm*jumpScroll:true
  XTerm*saveLines: 
  XTerm*geometry:  64x40


Hope this helps.


thanks
Saifi.



Re: DragonFly ppl (+ Apartment) at CCC Congress 2009

2009-11-01 Thread Saifi Khan
On Thu, 22 Oct 2009, Matthias Schmidt wrote:

 Hi,
 
 as you might know a lot of DragonFly users and developers meet annually
 at the Chaos Computer Club (CCC) Congress [1].  The Congress is in
 Berlin, Germany starting form Dec, 27 to Dec, 30.
 

How was the meetup last year ie. 2008 ?

Are there any slides of the talks or photogallery posted online ?


thanks
Saifi.



Re: Network maintainance on dragonflybsd.org

2009-11-01 Thread Saifi Khan
On Tue, 27 Oct 2009, Matthew Dillon wrote:

 There is going to be some serious restructuring of my subnet some
 time in the next two weeks.  Theoretically I'll be drilled through
 my cable modem while my DSL is down 
 ...
 

and from the IRC log


 08:51  dillon dragonfly network may be sporatic for the next
 hour or two, we're moving it to a tunnel over the cable modem
 so the DSL can be worked on ...


Please accept my apologies as this is a newbie query

. is the requirement of tunnel related to setup of a static
tunnel IP for mail/web over a DSL connection ?

. is the tunnel like GRE or IP/IP ?


thanks
Saifi.



Re: Xorg configuration

2009-11-01 Thread Saifi Khan
On Sun, 1 Nov 2009, Bill Hacker wrote:

 
 Not sure it is germane but 'something' in xorg went at least temporarily
 pear-shaped on the latest FreeBSD step-ups (7.1 - 7.2 as well as 8 RC1) and
 one other *BSD w/r Intel VGA driver vs VESA autoselection and loading.
 
 Symptom was an i9XX that was previously automagically handled w/o need of a
 conf file stalling with 'unable' vs prior art falling back to VESA if all else
 failed.
 
 Taming it with conf file entries quickly became tedious, and was of no
 interest in a constantly-changing workshop of portable storage devices, so
 I've simply backleveled until the Xorg community recover their automagicality.
 
 NB: These are changes in the Xorg 'containership' - not the host OS, have been
 extent for quite a while now, BUT AFAIK not relevant to other-than i8XX / i9xx
 Intel VGA.
 

On one of my laptops, i'm running FreeBSD freebsd
8.0-CURRENT-200906 and it has a Intel 945GM chipset.

Xorg 1.6.x is running absolutely fine !

Tested it with both KDE 3.5.10 and DWM.

There were some xorg.conf changes between Xorg server 1.5.x and
1.6.x

Can you please highlight the specific issues ?


thanks
Saifi.



Re: Xorg configuration

2009-11-01 Thread Saifi Khan
On Sun, 1 Nov 2009, jus...@shiningsilence.com wrote:

 
 I'm seeing the same thing, though I'm trying this with the vesa driver.  I
 tried with prebuilt binaries and from source, and removed glx/dri.  X
 happily starts up, but I only get a black screen.  No errors in the log. 
 I'm out of ideas too.
 

What is the mobo chipset ?

Does the mouse pointer show up at all ?

Does changing the resolution help ? (CTRL+SHFT+-)

Are you able to switch to a normal console ? (eg. CTRL+ALT+F1)


thanks
Saifi.



Re: Xorg configuration

2009-11-01 Thread Saifi Khan
On Sun, 1 Nov 2009, Pierre Abbat wrote:

   I used X -config xorg.conf.new and it came up blank. Should I post the
   conf or
   the log file?
 
 
 Here they are.
 

Can you please review 'DefaultDepth' and 'Modes' in the
'Screen' section ?

eg.

Section Screen
Identifier Screen0
Device Card0
MonitorMonitor0
DefaultDepth 24
SubSection Display
Viewport   0 0
Depth 24
Modes 1280x800 1024x768 800x600
EndSubSection
EndSection


thanks
Saifi.



Re: Editorial guidelines ?

2009-10-27 Thread Saifi Khan
On Tue, 20 Oct 2009, Justin C. Sherrill wrote:

 On Tue, October 20, 2009 9:39 am, Saifi Khan wrote:
 
  . why does local.css have min-width: 726px; instead of the
standard width: 100%; ?
 
 This is min-width, not width, which is why it's not 100%.  It keeps the
 layout from being jumbled by a smaller browser window size.
 
  . why does div #wrap have width: 80% instead of 100% ?
 
 To leave whitespace on the sides of the content; otherwise, the text bumps
 up against the margins.
 
  . is it a good idea to remove from #sidebarlogo ?
border-bottom: solid 1px #ddd;
 
 This is an aesthetic question, really - the reason it's there is to
 provide a visual cue on the width and shape of the side bar without having
 to explicitly outline that area.  It also keeps the logo visually anchored
 in that space.
 
  . the concept of attic in wiki is to move out no longer
relevant content from the current documentation.
 
eg. mercurial is not used at all and the content in an
ordinary wiki would have been moved to the attic.
http://www.dragonflybsd.org/docs/developer/Mercurial/
 
what is the procedure to be followed for dragonFlyBSD.org ?
 
 Delete it.  It'll still be there in git, if it was needed later.
 
  . why does wiki.dragonflybsd.org still exist if relevant content
has been migrated/is available at dragonflybsd.org  ?
 
 Nobody's turned it off yet?  I don't recall a specific reason.
 
 I'm far more interested in seeing more content added than messing with the
 layout at this point - it will benefit all of us to a much greater degree.
 
 

Thank you for your reply.

Just a newbie's two cents:

1. mandoc is nice, but wiki is not.
   A wiki is just a easy way to do sitemap.

2. usability is sometimes important.
   Layout and Navigability are important part of usability.

Since i've documentation to contribute for newbies, i'll make
a small demo and post the link.


thanks
Saifi.



Re: make, bmake and gmake

2009-10-27 Thread Saifi Khan
On Wed, 21 Oct 2009, Simon 'corecode' Schubert wrote:

 Saifi Khan wrote:
Is there a difference between 'make' and 'bmake' on DragonFly
BSD 2.4.1 ?
   
   make is our make utility which belongs to our base. It's the very
   same make utility that is used to build world and kernel or to
   checkout the git src repository when you type 'make src-checkout'
   inside /usr. make(1) can only parse our own Makefiles.
   
  
  One more query i have is that, the 'make' referred to in the
  parallism analysis posted by Simon Shubert is the native
  DragonFly BSD make, is that correct ? 
 
 Yes.  Standard buildworld/buildkernel procedure.
 
  i would like to run the tests on my AMD64 dual core box and
  hopefully can contribute some data for Simon Shubert's analysis.
 
 if I find the time I'll commit a small script which will do all the
 processing.
 
 cheers
   simon
 

Thank you Simon.

Would you like to suggest a link, from where i can download the script ?


thanks
Saifi.



Re: dhclient dependency on bpf ?

2009-10-23 Thread Saifi Khan
On Fri, 23 Oct 2009, Jeremy C. Reed wrote:

 On Fri, 23 Oct 2009, Saifi Khan wrote:
 
  Offcourse, i enabled 'bpf' and i'm keen to know what is the
  reason for 'bpf' dependency ?
 
 Please see
 
 http://ftp.isc.org/www/dhcp/doc/References.html#anchor3
 Search for Berkeley Packet Filter and BPF and read thaty paragraph.
 
 (It should be included in every ISC DHCP distribution as 
 doc/References.html.)
 
 I don't know what the equivalent replacement for BPF (or if there is) 
 for DragonFly.
 

Jeremy, thank you for sharing the excellent link.

The documentation says,
...
dhclient needs the BPF pseudo-device to program a filter, that
brings in only the DHCP packets.
...


thanks
Saifi.



Re: dhclient dependency on bpf ?

2009-10-23 Thread Saifi Khan
On Fri, 23 Oct 2009, Alex wrote:

 probably because it needs to get packets that are directed to
 broadcast and not your machine.
 Just take a look at the source code.
 
 
 Sincerely,
 Alex Hornung
 

Alex Hornung, thank you for the suggestion.

i looked at the code at sbin/dhclient and found the following sequence.


dhclient.cmain()

  |
  V

dispatch.cdispatch()

  |
  V
...
  if ((fds[0].revents  (POLLIN | POLLHUP))) {
  if (ifi-linkstat  ifi  ifi-rfdesc != -1)

  |
  V

dispatch.cgot_one()

  |
  V

bpf.c receive_packet()


i'm a newbie and i hope i got this right.

Though i'm still on the lookout for the code fragment that
specifies the 'DHCP filter' expression.


thanks
Saifi.



make, bmake and gmake

2009-10-21 Thread Saifi Khan
Hi:

Is there a difference between 'make' and 'bmake' on DragonFly
BSD 2.4.1 ?

i noticed that /usr/pkgsrc/ builds require 'bmake' 
eg. to compile /usr/pkgsrc/devel/gmake
while 'make' crashes out with many errors.

Additionally, /usr/src/test/amd64/ system tests require 'gmake'.

A quick check of the man pages shows
make :   make(1)  DragonFly 2.4  March 30, 2005
bmake:   make(1)  DragonFly 2.4  September 7, 2009

Can the more experienced folks, share their perspective on which
make is recommended to be used ?


thanks
Saifi.



Re: make, bmake and gmake

2009-10-21 Thread Saifi Khan
On Wed, 21 Oct 2009, Stathis Kamperis wrote:

 2009/10/21 Saifi Khan saifi.k...@datasynergy.org:
  Hi:
 
  Is there a difference between 'make' and 'bmake' on DragonFly
  BSD 2.4.1 ?
 
 
 make is our make utility which belongs to our base. It's the very
 same make utility that is used to build world and kernel or to
 checkout the git src repository when you type 'make src-checkout'
 inside /usr. make(1) can only parse our own Makefiles.
 

One more query i have is that, the 'make' referred to in the
parallism analysis posted by Simon Shubert is the native
DragonFly BSD make, is that correct ? 

i would like to run the tests on my AMD64 dual core box and
hopefully can contribute some data for Simon Shubert's analysis.


thanks
Saifi.



Re: [Fwd: pkgbox64 pkgsrc DragonFly 2.5.1/x86_64 2009-10-16 21:12]

2009-10-21 Thread Saifi Khan
On Wed, 21 Oct 2009, Justin C. Sherrill wrote:

 Binary package build for DragonFly 2.5.x on amd64 has completed, with a
 greater-than-I-expected number of packages building.
 
 Total number of packages:   8969
   Successfully built:   7475
   Failed to build:   359
   Depending on failed package:   574
   Explicitly broken or masked:   497
   Depending on masked package:64
 

Justin, thats awesome piece of work.

Do you think it is a good idea to weigh
build-fail/broken/masked packages against a usage list like
https://www.osscensus.org/packages-rank-public.php?offset=0limit=778page=0

Using that approach one can showcase certain apps that
work/build exceptionally well on the DragonFlyBSD platform.

Perhaps somebody may have already reflected on this and 
that is something not obvious to a newbie like me. 


thanks
Saifi.


how to apply patches on a system that doesnot have functional network device ?

2009-10-21 Thread Saifi Khan
Hi:

Here is a situation that i'm facing on a Compaq C301TU laptop.

The NIC card (Realtek)   does not work due to driver issue.
The WLAN card (Broadcom) does not work due to driver issue.

Currently, i review the possible patch visually on an identical
laptop (running FreeBSD-8) and then type out the code on the
other laptop in sys/dev/netif/rl/if_rl.c file.

Is there a better way to apply patches on a system that doesnot
have functional network devices ?

i'm leaning towards USB-Ethernet and was wondering if there is a
USB-Ethernet device that is known to work fine with DragonFly
BSD 2.4.1 ?

Please accept my apologies for this newbie query and look
forward to suggestions from the more experienced folks on this
matter.


thanks
Saifi.



qemu-system-x86_.core: not in executable format: File format not recognized

2009-10-21 Thread Saifi Khan
Hi:

On a AMD64 X2 box running DragonFly BSD i'm trying to setup
test/amd64,

amd64x2# uname -a
DragonFly amd64x2 2.4.1-RELEASE DragonFly v2.4.1-RELEASE #7: Wed
Sep 30 18:16:27 PDT 2009
r...@pkgbox64.dragonflybsd.org:/usr/obj/usr/src-misc/sys/AMD64_GENERIC
amd64


After building 'make scratch' for test/amd64 on the AMD64 X2 box
(2GB DDR2, ASUS M2N-MX SE, 320 GB SATA II Seagate, nVidia
Gigabit, nVidia SATA controller), the following message was seen

WARNING: 64 bit loader installed, if it doesn't work
 then use 'sysloader' to install the 32 bit one
cp /boot/loader /root/qemu//root/boot/loader
sync
Run the environment with:
make QEMUDIR=/root/qemu/ run


On running the command,
amd64x2# make QEMUDIR=/root/qemu/ run


Bus error (core dumped)
*** Error code 138
Stop in /usr/src/test/amd64.
amd64x2# 


On attempting to debug,
amd64x2# gdb `qemu-system-x86_64 -curses -hda root.img  -m 128 -no-fd-bootchk` 
qemu-system-x86_.core

We need a terminal output
gdb 6.7.1
This GDB was configured as amd64-dragonfly...
/root/qemu/qemu-system-x86_.core: not in executable format: File format not 
recognized
(gdb) q

amd64x2# file qemu-system-x86_.core 
qemu-system-x86_.core: ELF 64-bit LSB core file x86-64, version 1 (FreeBSD), 
FreeBSD-style, from 'stem-x86_'
amd64x2# 


Have some of the folks experienced with AMD64 observed this issue ?

How do i get gdb to show atleast a stack trace of the generated core file ?


thanks
Saifi.



Re: USB WLAN/USB Ethernet device

2009-10-21 Thread Saifi Khan
On Wed, 21 Oct 2009, Michael Neumann wrote:

 2009/10/21 Saifi Khan saifi.k...@datasynergy.org
 
 
  i'm leaning towards USB-Ethernet and was wondering if there is a
  USB-Ethernet device that is known to work fine with DragonFly
  BSD 2.4.1 ?
 
 
 
 I have an USB WLAN device supported by the ural(4) driver which works fine.
 
 Regards,
   Michael
 

Hi Michael:

Thank you for your reply.

Can you share the USB WLAN device model details ?

Any suggestions on an USB-Ethernet device as well ?


thanks
Saifi.



Re: Realtek NIC issue

2009-10-21 Thread Saifi Khan
On Wed, 21 Oct 2009, Sepherosa Ziehau wrote:

 On Sun, Oct 18, 2009 at 9:12 AM, Saifi Khan saifi.k...@datasynergy.org 
 wrote:
 
  i've a laptop with identical hardware, running FreeBSD
  8-CURRENT-200906 (ie. this one, used to write this mail)
  and the following lines are seen in the driver code
 
  src/sys/pci/if_rl.c
 
  ...
 if (sc-rl_type == 0) {
 device_printf(dev, unknown device ID: %x assuming 8139\n,
 rl_did);
 sc-rl_type = RL_8139;
 /*
  * Read RL_IDR register to get ethernet address as accessing
  * EEPROM may not extract correct address.
  */
 for (i = 0; i  ETHER_ADDR_LEN; i++)
 eaddr[i] = CSR_READ_1(sc, RL_IDR0 + i);
 }
  ...
 
  What do you think ?
 
 Thank you for the submission, please cherry-pick:
 d9893ddff7cb5a3cadf0051f7b80831951499854
 to 2.4 branch and test.
 
 Best Regards,
 sephe
 

Thank you Sephe, the Realtek NIC is working fine now.

i could successfully run some traffic through ping, pkg_radd.


thanks
Saifi.



ACPI Exception: AE_NO_HARDWARE_RESPONSE

2009-10-21 Thread Saifi Khan
Hi:

On Compaq C301TU laptop, the following lines get dumped on
screen everytime there is a change in the power state 
(on-off, off-on).

system power profile changed to 'economy'
ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for 
[EmbeddedControl] 20090521 evregion-531
ACPI Error (psparse-0633): Method parse/execution failed 
[\\_SB_.PCI0.LPCB.EC0_.PCLK] (Node 0xc40694cc), AE_NO_HARDWARE_RESPONSE
ACPI Error (psparse-0633): Method parse/execution failed 
[\\_SB_.PCI0.LPCB.EC0_._Q1D] (Node 0xc406956c), AE_NO_HARDWARE_RESPONSE
system power profile changed to 'performance'
ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for 
[EmbeddedControl] 20090521 evregion-531
ACPI Error (psparse-0633): Method parse/execution failed 
[\\_SB_.PCI0.LPCB.EC0_.PCLK] (Node 0xc40694cc), AE_NO_HARDWARE_RESPONSE
ACPI Error (psparse-0633): Method parse/execution failed 
[\\_SB_.PCI0.LPCB.EC0_._Q1D] (Node 0xc406956c), AE_NO_HARDWARE_RESPONSE
system power profile changed to 'economy'
ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for 
[EmbeddedControl] 20090521 evregion-531
ACPI Error (psparse-0633): Method parse/execution failed 
[\\_SB_.PCI0.LPCB.EC0_.PCLK] (Node 0xc40694cc), AE_NO_HARDWARE_RESPONSE
ACPI Error (psparse-0633): Method parse/execution failed 
[\\_SB_.PCI0.LPCB.EC0_._Q1D] (Node 0xc406956c), AE_NO_HARDWARE_RESPONSE
system power profile changed to 'performance'


The power profile change notification is expected,
but the ACPI Error|Exception notification is surprising as i
don't see this on an identical laptop running FreeBSD-8.

The 'dmesg extract' below show information specific to ACPI.


Copyright (c) 2003-2009 The DragonFly Project.
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
DragonFly 2.4.1-RELEASE #2: Thu Oct 22 03:37:54 UTC 2009
r...@laptop.datasynergy.org:/usr/obj/usr/src/sys/DF241-P-SZ-RL-OS
TSC clock: 1596044328 Hz, i8254 clock: 1193215 Hz
CPU: Intel(R) Celeron(R) M CPU420  @ 1.60GHz (1596.01-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6e8  Stepping = 8
  
Features=0xafe9fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE
  Features2=0xc109SSE3,MON,TM2,xTPR,PDCM
real memory  = 2137522176 (2087424K bytes)
avail memory = 2063863808 (2015492K bytes)
kbd1 at kbdmux0
Pentium Pro MTRR support enabled
fildesc_drvinit() building stdin, stdout, stderr: 
md0: Malloc disk

ACPI: RSDP 0xf6510 00014 (v0 PTLTD )
ACPI: RSDT 0x7f68cbda 0004C (v1 HPQOEM SLIC-MPC 0604  LTP )
ACPI: FACP 0x7f693c86 00074 (v1 HP NISSAN   0604 LOHR 005A)
ACPI: DSDT 0x7f68d506 06780 (v1 HP NISSAN   0604 INTL 20060608)
ACPI: FACS 0x7f694fc0 00040
ACPI: APIC 0x7f693cfa 00068 (v1 HP NISSAN   0604 LOHR 005A)
ACPI: HPET 0x7f693d62 00038 (v1 HP NISSAN   0604 LOHR 005A)
ACPI: MCFG 0x7f693d9a 0003C (v1 HP NISSAN   0604 LOHR 005A)
ACPI: BOOT 0x7f693fd8 00028 (v1 PTLTD  $SBFTBL$ 0604  LTP 0001)
ACPI: SLIC 0x7f693e08 00176 (v1 HPQOEM SLIC-MPC 0604 LOHR )
ACPI: APIC 0x7f693f7e 0005A (v1 PTLTDAPIC   0604  LTP )
ACPI: SSDT 0x7f68d2f8 0020A (v1 SataRe SataAhci 1000 INTL 20060217)
ACPI: SSDT 0x7f68d11c 001DC (v1  PmRef  Cpu0Cst 3001 INTL 20060217)
ACPI: SSDT 0x7f68cc26 004F6 (v1  PmRefCpuPm 3000 INTL 20060217)

npx0: math processor on motherboard
npx0: INT 16 interface
Using XMM optimized bcopy/copyin/copyout
acpi0: HPQOEM SLIC-MPC on motherboard
acpi0: Power Button (fixed)
ACPI Error: Could not enable SleepButton event 20090521 evxfevnt-298
ACPI Warning: Could not enable fixed event 3 20090521 evxface-235
acpi0: Sleep Button (fixed)
Warning: ACPI is disabling APM's device.  You can't run both
acpi_ec0: Embedded Controller: GPE 0x19 port 0x66,0x62 on acpi0
acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0
cpu0: ACPI CPU on acpi0
cpu_cst0: ACPI CPU C-State on cpu0
acpi_tz0: Thermal Zone on acpi0
acpi_tz1: Thermal Zone on acpi0
acpi_lid0: Control Method Lid Switch on acpi0
acpi_button0: Power Button on acpi0
battery0: ACPI Control Method Battery on acpi0
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0

How do I fix the ... ACPI Exception: AE_NO_HARDWARE_RESPONSE ...
notification lines ?


thanks
Saifi.



USB-serial setup

2009-10-21 Thread Saifi Khan
Hi:

A USB-serial adapter has been connected to my Compaq C301TU
laptop. the other end connects to my AMD64 X2 box. 

Both the systems are running DragonFly BSD 2.4.1.

On the laptop, the USB-serial device is detected as
ugen0: Prolific Technology Inc. USB-Serial Controller, class
0/0, rev 1.10/3.00, addr 2 on uhub0


The entries in the /dev directory look like

crw-r--r--  1 root  operator   27, 0x Oct 22 09:33 /dev/ugen0
crw-r--r--  1 root  operator   27, 0x0001 Oct 22 09:33 /dev/ugen0.1
crw-r--r--  1 root  operator   27, 0x0002 Oct 22 09:33 /dev/ugen0.2
crw-r--r--  1 root  operator   27, 0x0003 Oct 22 09:33 /dev/ugen0.3


The output of the usbdevs -d -v command is

Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x), rev 1.00
  uhub0
 port 1 addr 2: full speed, power 100 mA, config 1, USB-Serial 
Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00
   ugen0
 port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x), rev 1.00
  uhub1
 port 1 powered
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x), rev 1.00
  uhub2
 port 1 powered
 port 2 powered


The generic 'ucom' driver has been loaded using

laptop# kldload -v ucom
Loaded ucom, id=5


My query is:
i donot see any cua0, ttyS0, ttyUSB0,
so, what is the virtual serial device to be specified while running cu ?
ie.
 #  cu -s 19200 -l /dev/device


thanks
Saifi.



Re: Editorial guidelines ?

2009-10-20 Thread Saifi Khan
On Mon, 19 Oct 2009, Justin C. Sherrill wrote:

 On Mon, October 19, 2009 12:15 pm, Saifi Khan wrote:
 
  Some of the queries i had/have are as follows:
 
 
 To sum up: GIFs OK, don't bother with the rest.  Why would you need iframes?
 
  2. Content related
 
 Technical content written from a DragonFlyBSD promotional angle doesn't
 make sense.  Use links, not iframes.  Code/config stuff, if you're writing
 in Markdown (which you should), is prefixed with 4 spaces for correct
 formatting.  It's a wiki that uses git as a backend - it's all in history
 automatically, so no need for an attic.
 

Justin, thank you for your reply.

. why does local.css have min-width: 726px; instead of the
  standard width: 100%; ?

. why does div #wrap have width: 80% instead of 100% ?

. is it a good idea to remove from #sidebarlogo ?
  border-bottom: solid 1px #ddd;

. the concept of attic in wiki is to move out no longer
  relevant content from the current documentation.  
 
  eg. mercurial is not used at all and the content in an
  ordinary wiki would have been moved to the attic.
  http://www.dragonflybsd.org/docs/developer/Mercurial/
  
  what is the procedure to be followed for dragonFlyBSD.org ?

. why does wiki.dragonflybsd.org still exist if relevant content
  has been migrated/is available at dragonflybsd.org  ?

  Thank you for your time ?
  
  
 thanks 
 Saifi.



Re: Editorial guidelines ?

2009-10-20 Thread Saifi Khan
On Tue, 20 Oct 2009, Niklas Rosencrantz wrote:

 Are binaries the only allowed attachments? After tried attaching text file
 output from pciconf, uname, df, from laptops eg
 uname -a  uname.txt
 textfiles disapproved since they're not binaries. Enabling text files
 attchments improves for reasons obvious. Or misunderstood and it's already
 enabled.
 

Hi Niklas:

It may be a good idea to copy-paste the output of
 - pciconf
 - uname
 - df
 - uname -a 
 etc directly in the content itself.

A good example can be seen here
http://www.dragonflybsd.org/docs/user/asuseee900/


thanks
Saifi.



Re: http://www.dragonflybsd.org/ is hacked??

2009-10-19 Thread Saifi Khan
On Mon, 19 Oct 2009, lhmwzy wrote:

 http://www.dragonflybsd.org/
 
 DragonFly BSD
 

No i don't think so !

if i understand correctly (iiuc) then it's a wiki and somebody
may have spammed the front page.

In the IRC log, it appears that corecode|polachok observed this
and fixed the front page.


thanks
Saifi.



Re: http://www.dragonflybsd.org/ is hacked??

2009-10-19 Thread Saifi Khan
On Mon, 19 Oct 2009, Simon 'corecode' Schubert wrote:

 Saifi Khan wrote:
  On Mon, 19 Oct 2009, lhmwzy wrote:
  
   http://www.dragonflybsd.org/
   
   DragonFly BSD
 
 Thanks for the notice!
 
  No i don't think so !
  
  if i understand correctly (iiuc) then it's a wiki and somebody
  may have spammed the front page.
  
  In the IRC log, it appears that corecode|polachok observed this
  and fixed the front page.
 
 It was a defacement through an exploit in ikiwiki, because the markup had not
 been changed.  We're looking into it.
 
 cheers
   simon
 

Hi Simon:

In most cases the wiki software does not need to run as root.

You mention the possibility of an exploit, the stuff documented at 
http://ikiwiki.info/security/ talks about a 'pending git backend audit'.


thanks
Saifi.



Re: DragonFly 2.4.1 Released!

2009-10-19 Thread Saifi Khan
On Fri, 9 Oct 2009, Niklas Rosencrantz wrote:

 2009/10/9 Saifi Khan saifi.k...@datasynergy.org
 
  On Thu, 1 Oct 2009, Erik Wikstr?m wrote:
 
   My proposal is that instead of releasing the code as X.Y.0 first make a
   X.Y.0 RC (Release Candidate). While the RC might not see as much usage
 
  you make a valid point.
 
  Now for the same users, it may be a good idea to make the tag
  more search friendly as well.
 
  Perhaps something like
   x.y-rc
 
  and thus a .0 release has a clean tag 2.4.0 for example and
  search engine results are cleaner, since they are not littered
  with 2.4.0-RC and 2.4.0-RC2 etc.
 
  What do you think ?
 
 
 Trivial: the less numbers and more natural toward user the better. dev
 test and prod are natural + POSIX time is very easy and natural to
 understand and standard. 1 scriptsyncbuild conveniently mnemoniced (eg
 autorenew) to adjust whole thing, autorenew or likewise get latest
 version from preferred order hg,git,svn,cvs. now don't now how to make
 git-clone bit in the dark still super stable.
 
 

Thats nice, in that case the releases can be given a codename like:
 Claremont
 Merriwood
 Sibley
 Huckleberry
 Wildcat
 Tilden
 Layafette
 Chabot
 Devaney
 Garin
 Coyote

Btw, the above are all reserve parks and there should be plenty
of DragonFly's around :-)


thanks
Saifi.



Re: how to add v2.4.1 tag to .git/ dir

2009-10-19 Thread Saifi Khan
On Sat, 17 Oct 2009, Matthew Dillon wrote:

 
 :Thanks Peter for your reply.
 :
 :What is the purpose of the .git/ directory in /usr/src at the
 :time the user installs DragonFlyBSD from the DVD ?
 
 It should provide a preloaded git repo which you can then just do
 a 'git fetch' to bring it up-to-date from the internet.  So
 instead of having to download the entire repo over the net
 you only have to download an incremental update.
 
 I don't quite recall if I created local branches in that repo
 but a couple of git commands will checkout the master branch
 or the DragonFly_RELEASE_2_4 branch.
 
   -Matt
 

Matt, thank you for providing the perspective on 'preloaded git
repo'.


thanks
Saifi.



Re: Editorial guidelines ?

2009-10-19 Thread Saifi Khan
On Sat, 17 Oct 2009, Justin C. Sherrill wrote:

 On Sat, October 17, 2009 9:43 pm, Saifi Khan wrote:
  Hi:
 
  Can somebody more experienced, point to me the editorial
  guidelines for editing articles on http://dragonflybsd.org/ ?
 
  1. editing existing articles
  2. prior to submitting the article, how to get it reviewed
 
 There's this:
 
 http://www.dragonflybsd.org/docs/howtos/how_to_edit_this_site/
 
 It's mostly about the physical process.  Style concerns are limited to
 title formatting and making sure new articles are linked in the right
 sections, so we don't have orphans.
 
 If there's style issues or any other problem, I or someone else will clean
 up.  It's a wiki - the worst thing is to not contribute.  :)
 
 

Justin, thank you for reply.

Yes, i had earlier read the link above to check if
dragonflybsd.org was using markdown.

A website is the one of the most important platform that any
project can utilize to reach out to the potential community
members.

Some of the queries i had/have are as follows:

1. Format / layout related

. is a .GIF file accepted as a image file or does one need to
  strictly adhere to .PNG/.JPG format ?

. are IFRAME allowed to be inserted in the pages ?

. are video DIV allowed to be used directly in the pages ?
  (the user sees a youtube like video screen and can click to
  see the video)

. are modifications allowed to the local.css CSS file ?

. are page style template changes allowed ?


2. Content related

. can the technical content be written from a DragonFlyBSD
  promotional angle ?

. what is the recommended div tag class for code/configuration
  snippets ?

. when referring to source code in DragonFlyBSD repository,
  should a hyperlink be placed for the file or can the code be
  loaded in an IFRAME ?

. is there a attic to move the old/expired content ? 


3. Widget/Link related

. is it allowed to associate service widgets like
  - sharethis / bookmark this widget
  
. are links to DragonFlyBSD groups on Facebook, twitter
  timelines allowed on website ?

. subdomain cleanup (eg. wiki.) policy.

Thank you for your time.


thanks
Saifi.



Acer Aspire One D150 ffs_mountroot: can't find rootvp

2009-10-18 Thread Saifi Khan
Hi:

Downloaded LATEST-i386-master.img and then wrote it to USB pen
drive using the command 
# dd if=LATEST-i386-master.img of=/dev/da0 bs=1m

The Acer Aspire One D150 Netbook (currently running Gentoo) was
booted from the USB pen drive.

Hardware specs of the netbook device are at
http://twincling.org/node/451 

The DragonFlyBSD installer screen was presented and on selecting
either
 'Verbose logging'
 or
 'disable ACPI'
 or
 'Safe mode'

had the following issue.

Mounting root from ufs:da8s1a
tryroot da8s1a
no disknamed 'da8s1a'
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6

Manual root filesystem specification:

...
mountroot ?
possibly valid devices for root FS:
 md0 sg0 da0 da0s1 da0s2 da0s3

...


Any suggestions on how i can bring up this device ?


thanks
Saifi.



Dell Latitude D620 boot, hangs at isa_probe_children : probing PnP devices

2009-10-18 Thread Saifi Khan
Hi:

Booting a Dell Latitude D620 with LATEST-i386-master.img from a
USB pen drive boots up fine with the selection screen and it
runs till it reaches the following line

...
isa_probe_children : probing PnP devices
...

The boot process  seems to then hang at this point.

Th system specs are:
Dell Latitude D620
BIOS version A05
Intel Core Duo processor
Dual Core = Yes / 1.66 GHz
DDR2 SDRAM 1280 MB
Intel 945GM Graphics
Intel Pro Wireless
60GB WD HDD

The laptop is more than 3 yrs old and i was hoping that
DragonFlyBSD should boot up fine on this device.

Q: Is there a work around to this issue ? 

An additional observation here is:

if the device is booted with 'ACPI disabled' the root mount
fails. This is identical to what i reported for Acer Aspire One.

Q: Can some of the experienced folks share their insight as to
   why disabling ACPI causes ffs_mountroot to fail ?


thanks
Saifi.



Re: Acer Aspire One D150 ffs_mountroot: can't find rootvp (SOLVED)

2009-10-18 Thread Saifi Khan
On Sun, 18 Oct 2009, Alexander Polakov wrote:

 2009/10/18, Saifi Khan saifi.k...@datasynergy.org:
  The DragonFlyBSD installer screen was presented and on selecting
 Try 7. Escape to loader prompt, then
 load ehci
 boot
  Any suggestions on how i can bring up this device ?
 
 

Thank you Alexander Polakov.

It is really very nice to get DragonFlyBSD up and running on
Acer Aspire One netbook.

Q: Is there a possibility of Atheros wireless working on this
   device ?

For the benefit of other users who want to install DragonFlyBSD
on Acer Aspire One D150.

Here is the 'pciconf -l -v' info.

hos...@pci0:0:0:0:  class=0x06 card=0x019c1025 chip=0x27ac8086 rev=0x03 
hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GME Express Processor to DRAM Controller'
class  = bridge
subclass   = HOST-PCI
vgap...@pci0:0:2:0: class=0x03 card=0x019c1025 chip=0x27ae8086 rev=0x03 
hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945 Express Chipset Family'
class  = display
subclass   = VGA
vgap...@pci0:0:2:1: class=0x038000 card=0x019c1025 chip=0x27a68086 rev=0x03 
hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class  = display
no...@pci0:0:27:0:  class=0x040300 card=0x019c1025 chip=0x27d88086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) High Definition Audio'
class  = multimedia
subclass   = HDA
pc...@pci0:0:28:0:  class=0x060400 card=0x019c1025 chip=0x27d08086 rev=0x02 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class  = bridge
subclass   = PCI-PCI
pc...@pci0:0:28:1:  class=0x060400 card=0x019c1025 chip=0x27d28086 rev=0x02 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class  = bridge
subclass   = PCI-PCI
pc...@pci0:0:28:2:  class=0x060400 card=0x019c1025 chip=0x27d48086 rev=0x02 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class  = bridge
subclass   = PCI-PCI
uh...@pci0:0:29:0:  class=0x0c0300 card=0x019c1025 chip=0x27c88086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:1:  class=0x0c0300 card=0x019c1025 chip=0x27c98086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:2:  class=0x0c0300 card=0x019c1025 chip=0x27ca8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:3:  class=0x0c0300 card=0x019c1025 chip=0x27cb8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class  = serial bus
subclass   = USB
eh...@pci0:0:29:7:  class=0x0c0320 card=0x019c1025 chip=0x27cc8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB 2.0 Enhanced Host Controller'
class  = serial bus
subclass   = USB
pc...@pci0:0:30:0:  class=0x060401 card=0x019c1025 chip=0x24488086 rev=0xe2 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801 Family (ICH2/3/4/5/6/7/8/9-M) Hub Interface to PCI 
Bridge'
class  = bridge
subclass   = PCI-PCI
is...@pci0:0:31:0:  class=0x060100 card=0x019c1025 chip=0x27b98086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801GBM (ICH7-M) LPC Interface Controller'
class  = bridge
subclass   = PCI-ISA
atap...@pci0:0:31:1:class=0x01018a card=0x019c1025 chip=0x27df8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) Ultra ATA Storage Controller'
class  = mass storage
subclass   = ATA
ah...@pci0:0:31:2:  class=0x010601 card=0x019c1025 chip=0x27c58086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801GB Mobile I/O Controller Hub SATA cc=AHCI'
class  = mass storage
subclass   = SATA
no...@pci0:0:31:3:  class=0x0c0500 card=0x019c1025 chip=0x27da8086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) SMBus Controller'
class  = serial bus
subclass   = SMBus
no...@pci0:1:0:0:   class=0x02 card=0xe008105b chip=0x001c168c rev=0x01 
hdr=0x00
vendor = 'Atheros Communications Inc.'
device = 'USB\VID_08FFPID_1600\53AEE5BD703 
HDAUDIO\FUNC_01VEN_14F1DEV_5051SUBSYS_103C3608REV_1000'
class  = network
subclass   = ethernet
a...@pci0:3:0:0

Re: Realtek NIC issue

2009-10-17 Thread Saifi Khan
On Thu, 10 Sep 2009, Sepherosa Ziehau wrote:

 On Wed, Sep 9, 2009 at 1:23 AM, Saifi Khan saifi.k...@datasynergy.org wrote:
  Hi all:
 
  Installed DragonFlyBSD 2.3.2.750.g517f2e-DEVELOPMENT (Sep 2
  snapshot) on my Compaq 301TU laptop.
 
  The Realtek NIC card does not seem to be working,
  although the following lines are seen in dmesg output
 
  rl0: Realtek 8139 10/100BaseTX port 0x2000-0x20ff mem
  0xd010-0xd01000ff irq 11 at device 8.0 at pci8
  rl0: unknown device ID: fff
  device_probe_and_attach: rl0 attach returned 6
 
 Does the attached patch work for you?
 
 Best Regards,
 sephe
 

Hi Sephe:

Thanks for sending in the patch. i applied the patch to 2.4.1
src/sys/dev/netif/if_rl.c .

After compiling the native kernel, the device is detected and
attached.

The dmesg log shows the following lines:

rl0.pci8.pcib3.pci0.pcib0.legacy0.nexus0.root0
rl0: RealTek 8139 10/100BaseTX [tentative] port 0x2000-0x20ff
mem 0xd010-0xd01000ff irq 11 at device 8.0 on pci8
rl0: Reserved 0x100 bytes for rid 0x10 type 4 at 0x2000
miibus0.rl0.pci8.pcib3.pci0.pcib0.legacy0.nexus0.root0
miibus0: MII bus [tentative] on rl0
rlphy0.miibus0.rl0.pci8.pcib3.pci0.pcib0.legacy0.nexus0.root0
miibus0: MII bus [attached!] on rl0
rl0: bpf attached
rl0: MAC address: ff:ff:ff:ff:ff:ff
rl0: RealTek 8139 10/100BaseTX [attached!] port 0x2000-0x20ff
mem 0xd010-0xd01000ff irq 11 at device 8.0 on pci8

This looks promising and so i try to run a DHCP client.

# dhclient rl0
and an IP address 10.10.10.7 is assigned
bound to 10.10.10.7 -- renewal in 43200 seconds

#ifconfig rl0 
shows the ether as ff:ff:ff:ff:ff:ff and inet as 10.10.10.7

Now, if i run the DHCP client again,

#dhclient rl0
another DHCP offer is received and a new IP address 10.10.10.8
is assigned

To summarize, everytime i run 'dhclient rl0' a new DHCP IP
address is assigned but no traffic is seen while pinging the
dateway.. 

This looks like a bug in the driver code.

Perhaps the fact that the ether MAC continues to be
ff:ff:ff:ff:ff:ff suggests that we may need to extract the
ethernet address as well.

i've a laptop with identical hardware, running FreeBSD
8-CURRENT-200906 (ie. this one, used to write this mail)
and the following lines are seen in the driver code 

src/sys/pci/if_rl.c

...
if (sc-rl_type == 0) { 
device_printf(dev, unknown device ID: %x assuming 8139\n,
rl_did);
sc-rl_type = RL_8139;
/*
 * Read RL_IDR register to get ethernet address as accessing
 * EEPROM may not extract correct address.
 */
for (i = 0; i  ETHER_ADDR_LEN; i++) 
eaddr[i] = CSR_READ_1(sc, RL_IDR0 + i);
}
...

What do you think ?


thanks
Saifi.



Re: how to add v2.4.1 tag to .git/ dir

2009-10-17 Thread Saifi Khan
On Wed, 14 Oct 2009, Peter Avalos wrote:

 On Thu, Oct 15, 2009 at 09:30:02AM +0530, Saifi Khan wrote:
  Hi:
  
  On installing DragonFly 2.4.1 from the DVD, there is a .git/
  directory that is created in /usr/src.
  
  Running the command 'git tag' does not show 'v2.4.1'
  
  v2.0.1
  v2.1.1
  v2.2.0
  v2.2.1
  v2.3.0
  v2.3.1
  v2.4.0
  
  how do i add 'v2.4.1' tag to .git/ 
  so that i can later do a 'git pull' ?
  
 
 I think you're confused about what a tag is in git.  Basically it is
 just an alias for a specific state of the repository.  When you do a
 'git pull', it will update all the tags for you.  I think want you're
 getting at is wanting a specific branch.  The DragonFly_RELEASE_2_4
 branch will get you the latest 2.4 code.
 
 --Peter
 

Thanks Peter for your reply.

What is the purpose of the .git/ directory in /usr/src at the
time the user installs DragonFlyBSD from the DVD ?

This artifact is not seen in the DragonFlyBSD CD i386 or AMD64.

If the user needs the source code, (s)he can very well follow

approach 1:
 as outlined at
 http://www.dragonflybsd.org/docs/developer/TypicalGitUsage/
or
approach 2:
 run the Makefile (in /usr directory) and target 'src-create'



thanks
Saifi.



Editorial guidelines ?

2009-10-17 Thread Saifi Khan
Hi:

Can somebody more experienced, point to me the editorial
guidelines for editing articles on http://dragonflybsd.org/ ?

1. editing existing articles
2. prior to submitting the article, how to get it reviewed

Thanks in advance.


thanks
Saifi.



how to add v2.4.1 tag to .git/ dir

2009-10-14 Thread Saifi Khan
Hi:

On installing DragonFly 2.4.1 from the DVD, there is a .git/
directory that is created in /usr/src.

Running the command 'git tag' does not show 'v2.4.1'

v2.0.1
v2.1.1
v2.2.0
v2.2.1
v2.3.0
v2.3.1
v2.4.0

how do i add 'v2.4.1' tag to .git/ 
so that i can later do a 'git pull' ?

or

is the following approach recommended ?

cd /usr
rm -rf src
make src-create
(however i suspect DragonFly_RELEASE_2_4 would get pulled in
which is not 2.4.1).

Perhaps the purpose of leaving a .git/ directory was that the
user can add the new tags and then pull in code corresponding to
the tag eg. v2.4.1 as needed.

Can somebody share the perspective on this ?


thanks
Saifi.



Re: you must buildworld before you buildkernel. why ?

2009-10-13 Thread Saifi Khan
On Mon, 12 Oct 2009, Robert Luciani wrote:

  # make buildkernel KERNCONF=SYNERGY
  You must buildworld before buildkernel.  If you wish
  to build a kernel using native tools, config it manually
  or use the nativekernel target if you are in a rush
  *** Error code 1
 
 The answer is staring you in the face:
 If you wish to build a custom kernel with native build tools (in other
 words the versions installed on your system as opposed to the versions
 in the source tree you've synced to) you can do it by using the
 nativekernel target.
 
 # make KERNCONF=SYNERGY nativekernel
 
 ~Robert
 

Bob, thanks for pointing that out.

The line You must buildworld before buildkernel ... is
technically correct, but doesn't suggest what the user should do
if (s)he just has src-sys.tgz !

As i looked around (prior to your reply), the Handbook had a
section which mentioned,


When only the kernel source is installed, you need to change
step 2, above, to this:

# make nativekernel KERNCONF=MYKERNEL



thanks
Saifi.



Re: you must buildworld before you buildkernel. why ?

2009-10-13 Thread Saifi Khan
On Mon, 12 Oct 2009, Daniel Bond wrote:

 Hi,
 
 build of world and kernel are coupled. If you had done a full rebuild of
 DragonFly previously (ie, upgraded from a previous version),
 your world would allready be built, and you could just build a custom kernel.
 
 The important part, is that the same source (in /usr/src) is used for building
 both world and userland.
 
 See build(7) for more information (man 7 build).
 
 
 Best regards,
 
 Daniel Bond.
 
 
 On Oct 12, 2009, at 12:04 PM, Saifi Khan wrote:
 
  Hi:
  
  i'm trying to compile a custom kernel on my AMD64 X2 box, and in
  encouter the notification shown below.
  
  
  # make buildkernel KERNCONF=SYNERGY
  You must buildworld before buildkernel.  If you wish
  to build a kernel using native tools, config it manually
  or use the nativekernel target if you are in a rush
  *** Error code 1
  
  Stop in /usr/src.
  *** Error code 1
  
  Stop in /usr/src.
  #
  
  
  As i'm a newbie, can some of the more experienced folks share
  the reason for the requirement to 'buildworld' before
  'buildkernel' ?
  
  Additionally, there doesn't seem to be this requirement when
  compiling a custom kernel on FreeBSD. Any pointers ?
  
  Thanks in advance.
  
  
  thanks
  Saifi.
  
 
 

Daniel, thanks for build(7) info.

Yes, the build of world and kernel are coupled, as you rightly mention.

The DragonFlyBSD CD ship with src-sys.tgz which is the kernel
sources and as i learnt, i need to build a 'nativekernel' to
compile a custom kernel.


thanks
Saifi.



Re: pkgsrc builds for 2009Q3/i386 started

2009-10-13 Thread Saifi Khan
On Mon, 12 Oct 2009, Justin C. Sherrill wrote:

 On Sun, October 11, 2009 1:34 pm, Saifi Khan wrote:
 
  If one is working with a daily snapshot version, what is the
  recommended way to pull in binary packages eg. editor, debugger,
  irc client etc ?
 
  or is it like,
  lets say i'm using 20091015 snapshot and since 2.4.1 was
  released on 20090930, hence one can use binary packages for 2.4
  ?
 
  i'm leaning towards asking if there is something like a
  'current' binary pkgsrc build envisaged or one should pull in
  the pkgsrc-2009Q3 meta package (FreeBSD ports of Gentoo portage
  like) and compile out the stuff one needs.
 
 If you look at avalon.dragonflybsd.org, you will see there's directories
 by architecture (i386 or amd64) and version (DragonFly-2.2, DragonFly-2.4,
 etc.)  In general, you can use the number you see from uname -r as a
 guide.  What you have installed should say something like 2.4 or 2.4.0, so
 the 2.4 packages will work.  2.4.1 packages are also acceptable.
 
 Packages will generally work, even if it was built for a different
 release.  Occasionally there are version differences that will affect
 that, like between 2.3.0 and 2.3.1, but those are an exception rather than
 the rule.  Some of the material on avalon is actually built for other
 versions, and the separate directories are just linked together.
 
 pkg_radd will automatically go to the right directory and download the
 appropriate software for you.  e.g. 'pkg_radd vim'.  You may get a warning
 that the software was built for 2.4.1 and you are on 2.4.0 or something
 similar, but it's a harmless warning.
 
 The 'stable' link in each directory goes to the newest set of quarterly
 packages available; I'm not building pkgsrc-current right now.  I (or
 someone) may in the future; quarterly releases usually have the most
 working packages so those are the best first targets.
 
 

Justin thank you for taking out time to highlight that quarterly
pkgsrc binary build have the best chance of compatibility and stability.

Your mail would be a great reference for many a newbie like me,
who are migrating from portage, pacman or ports.


thanks
Saifi.



Re: dfly2.4.1 nativekernel build error: -mpreferred-stack-boundary=2 is not between 4 and 12

2009-10-13 Thread Saifi Khan
On Tue, 13 Oct 2009, YONETANI Tomokazu wrote:

 On Mon, Oct 12, 2009 at 03:46:15PM +0530, Saifi Khan wrote:
  --
   Kernel build for SYNERGY started on Mon Oct 12 21:26:19 IST 2009
  --
   :
  /usr/src/sys/platform/pc32/i386/genassym.c:1: error: 
  -mpreferred-stack-boundary=2 is not between 4 and 12
   :
  hw.machine: amd64
  hw.model: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
  hw.ncpu: 1
  hw.machine_arch: amd64
 
 So you've installed 64-bit version of DragonFly on your system.
 Is your kernel config file SYNERGY based on AMD64_GENERIC, not GENERIC?
 
 Cheers.
 

Ah ! Thanks Yonetani.

Indeed, the kernel config file was based on GENERIC and i was
wondering why the machine and platform are not amd64.


thanks
Saifi.



Re: NetBSD's veriexec port

2009-10-13 Thread Saifi Khan
On Mon, 12 Oct 2009, Stathis Kamperis wrote:

 Hello everyone!
 
 Veriexec (from verify executable) is an in-kernel, file system
 agnostic, signatures-based, file integrity subsystem for NetBSD[1].
 I was wondering if people are or would be interested in it. If there
 is enough interest, I could *try* to port it.
 
 
 Best regards,
 Stathis
 
 [1]   http://www.netbsd.org/docs/guide/en/chap-veriexec.html
 

i was trying to learn more about veriexec and stumbled upon this link
http://kerneltrap.org/mailarchive/netbsd-tech-kern/2005/12/2/291741

Would looking at veriexec help further the goals of DragonFlyBSD project ?

Technically veriexec looks interesting and a unique contribution
could be to use it to position DragonFlyBSD capabilities in a
way that the market can appreciate. 
 eg. security feature with strong performance profile ?
 eg. how would a feature help a auditor ?
 eg. taken together with feature f1 and f2 and f3, can we
 position this as ITILv3 compliance capability ?

Please accept my apologies as i'm too new to project and trying
to learn more about things.


thanks
Saifi.



you must buildworld before you buildkernel. why ?

2009-10-12 Thread Saifi Khan
Hi:

i'm trying to compile a custom kernel on my AMD64 X2 box, and in
encouter the notification shown below.


# make buildkernel KERNCONF=SYNERGY
You must buildworld before buildkernel.  If you wish
to build a kernel using native tools, config it manually
or use the nativekernel target if you are in a rush
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
# 


As i'm a newbie, can some of the more experienced folks share
the reason for the requirement to 'buildworld' before
'buildkernel' ?

Additionally, there doesn't seem to be this requirement when
compiling a custom kernel on FreeBSD. Any pointers ?

Thanks in advance.


thanks
Saifi.



dfly2.4.1 nativekernel build error: -mpreferred-stack-boundary=2 is not between 4 and 12

2009-10-12 Thread Saifi Khan
Hi:

i'm trying to do a 'nativekernel' build of DragonFlyBSD 2.4.1 on
AMD64 X2 system and the build error is


/usr/src/sys/platform/pc32/i386/genassym.c:1: error: 
-mpreferred-stack-boundary=2 is not between 4 and 12



The complete build log till the error is below,

Script started on Mon Oct 12 21:26:23 2009
# ls
MakefileMakefile.inc1   sys typescript
# exit
exit

Script done on Mon Oct 12 21:26:27 2009

--
 Kernel build for SYNERGY started on Mon Oct 12 21:26:19 IST 2009
--
=== SYNERGY
rm -rf /usr/obj/usr/src/sys/SYNERGY
mkdir -p /usr/obj/usr/src/sys
cd /usr/src/sys/config;  config  -d /usr/obj/usr/src/sys/SYNERGY  
/usr/src/sys/config/SYNERGY
Kernel build directory is /usr/obj/usr/src/sys/SYNERGY
touch /usr/obj/usr/src/sys/SYNERGY/.nativekernel_run
cd /usr/obj/usr/src/sys/SYNERGY;  
MAKESRCPATH=/usr/src/sys/dev/disk/aic7xxx/aicasm  make -DBOOTSTRAPPING -f 
/usr/src/sys/dev/disk/aic7xxx/aicasm/Makefile
Warning: Object directory not changed from original /usr/obj/usr/src/sys/SYNERGY
CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc  -O -pipe 
-nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY 
-I/usr/src/sys/dev/disk/aic7xxx/aicasm -c 
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm.c -o aicasm.no
CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc  -O -pipe 
-nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY 
-I/usr/src/sys/dev/disk/aic7xxx/aicasm -c 
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_symbol.c -o aicasm_symbol.no
yacc -b aicasm_gram  -d -o aicasm_gram.c 
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_gram.y
CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc  -O -pipe 
-nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY 
-I/usr/src/sys/dev/disk/aic7xxx/aicasm -c aicasm_gram.c -o aicasm_gram.no
yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c 
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_gram.y
CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc  -O -pipe 
-nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY 
-I/usr/src/sys/dev/disk/aic7xxx/aicasm -c aicasm_macro_gram.c -o 
aicasm_macro_gram.no
lex -t   /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_scan.l  aicasm_scan.c
CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc  -O -pipe 
-nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY 
-I/usr/src/sys/dev/disk/aic7xxx/aicasm -c aicasm_scan.c -o aicasm_scan.no
lex -t  -Pmm /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_scan.l  
aicasm_macro_scan.c
CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc  -O -pipe 
-nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY 
-I/usr/src/sys/dev/disk/aic7xxx/aicasm -c aicasm_macro_scan.c -o 
aicasm_macro_scan.no
CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc -O -pipe 
-nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY 
-I/usr/src/sys/dev/disk/aic7xxx/aicasm -static  -o aicasm.nx aicasm.no 
aicasm_symbol.no aicasm_gram.no aicasm_macro_gram.no aicasm_scan.no 
aicasm_macro_scan.no -ll
cd /usr/obj/usr/src/sys/SYNERGY;  make KERNEL=kernel depend
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/asm.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/asmacros.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/atomic.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/bus_at386.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/bus_dma.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/coredump.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/cpu.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/cpufunc.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/cputypes.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/db_machdep.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/elf.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/endian.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/exec.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/float.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/floatingpoint.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/frame.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/ieee.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/ieeefp.h
creating machine/ forwarding header 
/usr/obj/usr/src/sys/SYNERGY/include/machine/int_const.h

Re: pkgsrc builds for 2009Q3/i386 started

2009-10-11 Thread Saifi Khan
On Sun, 11 Oct 2009, Justin C. Sherrill wrote:

 I have pkgsrc bulk builds for pkgsrc-2009Q3 started on avalon and
 df.v12.su, which should result in binary packages for 2.4 and 2.5 (on
 i386) showing up in the appropriate directories on
 http://avalon.dragonflybsd.org/packages in about a week.
 
 Going by Hasso's requests for changes, reports from the builds should be
 uploaded to http://avalon.dragonflybsd.org/reports too.  I don't have
 signing set up yet, but I will do that as soon as I know reports are being
 reliably created and uploaded.
 

Hi Justin:

Thats an awesome initiative from your side. 

If one is working with a daily snapshot version, what is the
recommended way to pull in binary packages eg. editor, debugger,
irc client etc ?

or is it like,
lets say i'm using 20091015 snapshot and since 2.4.1 was
released on 20090930, hence one can use binary packages for 2.4
?

i'm leaning towards asking if there is something like a
'current' binary pkgsrc build envisaged or one should pull in
the pkgsrc-2009Q3 meta package (FreeBSD ports of Gentoo portage
like) and compile out the stuff one needs.


thanks
Saifi.



dfly-gui DVD mount issue : incorrect superblock

2009-10-10 Thread Saifi Khan
Hi:

i downloaded the dfly-gui-2.4.1_REL DVD and burnt a DVD using
growisofs on my FreeBSD system.

On booting up on Compaq C301TU laptop, the DVD is not mounted
and the system falls to the FreeBSD boot prompt.

So, i downloaded the 2.4.1 CD and burnt a CD. this one loads up
absolutely fine and i could install DragonFlyBSD 2.4.1 OS.

Offcourse, the Realtek NIC issue i mentioned earlier is still
there (but thats for another thread).

Now, i tried to mount the dfly 2.4.1 DVD again and the following
error is seen.

mount: /dev/acd0 on /mnt: incorrect super block

I downloaded the .ISO image once again and burnt another DVD
with the help of a friend using ImgBurn and i still get the same
error.

Can some of the experienced folks share, what could i be missing
here ?


thanks
Saifi.



how install only the base system from the DVD

2009-10-10 Thread Saifi Khan
Hi:

Is there a way to install only the base system from the DVD ?

By base system i mean
 . kernel
 . userland shell
 . basic tools
and 
 . source code to support 'make buildworld'.
 
Currently, using the CD, it is impossible to 'make buildworld'
in case the NIC card is not detected.

Any suggestions ?


thanks
Saifi.



Re: mercurial not responding

2009-10-10 Thread Saifi Khan
On Sat, 10 Oct 2009, Niklas Rosencrantz wrote:

 I always vote hg and can respond or mirror it via 2 fixed virtual
 always on, then svn then git or launchpad and mutiny toward the Linus
 dictatorship. tried 3 (fortunaty, tum,
 hg clone -r HEAD http://anoncvs.estpak.ee/hg/dragonfly-src src
 abort: HTTP Error 404: Not Found
 hg clone -U http://anoncvs.estpak.ee/hg/dragonfly-src /home/dsrc.hg
 hg clone -U http://ftp.fortunaty.net/DragonFly/dragonfly-src.hg /home/dsrc.hg
 abort: HTTP Error 404: Not Found
 May be my ISP or some beachbuggy with best regards with sincerely
 thanks according to
 http://www.dragonflybsd.org/docs/howtos/HowToMercurial/
 http://www.dragonflybsd.org/docs/developer/Mercurial/
 (none above worked from here)
 Niklas R
 

i think that the entire DragonFlyBSD repository is currently based on Git.

Please see
http://leaf.dragonflybsd.org/mailarchive/hammer/2009-03/msg2.html


thanks
Saifi.


installer crashes while configuring DHCP interface on AMD64 / nfe0

2009-10-09 Thread Saifi Khan
Hi:

The DragonflyBSD installer crashes while configuring DHCP
interface on AMD64 X2 box with nfe0 interface.

Here is the stack trace,

--
Script started on Fri Oct  9 16:45:02 2009

# gdb dfuibe_installer.core `whereis -q dfuibe_installer` dfuibe_installer.core
gdb 6.7.1
This GDB was configured as amd64-dragonfly...
(no debugging symbols found)
Reading symbols from /usr/lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.7
Reading symbols from /usr/libexec/ld-elf.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/libexec/ld-elf.so.2

Core was generated by `dfuibe_installer'.
Program terminated with signal 11, Segmentation fault.
#0  0x0008006ff8b2 in __vfprintf () from /usr/lib/libc.so.7
(gdb) bt
#0  0x0008006ff8b2 in __vfprintf () from /usr/lib/libc.so.7
#1  0x0008006f4fe3 in vasprintf () from /usr/lib/libc.so.7
#2  0x0040fc82 in ?? ()
#3  0x004053c7 in ?? ()
#4  0x004086b5 in ?? ()
#5  0x004051b7 in ?? ()
#6  0x0040245d in ?? ()
#7  0x0040e71f in ?? ()
#8  0x00402360 in ?? ()
#9  0x000800554000 in ?? ()
#10 0x in ?? ()
(gdb) q
# exit
exit

Script done on Fri Oct  9 16:45:45 2009
--

This happens only when i'm trying to configure a DHCP interface.

Apparently, the interface seems to get configured as evidenced
by the output from the ifconfig command.

Is there a workaround to this ?

thanks
Saifi.



Re: DragonFly 2.4.1 Released!

2009-10-09 Thread Saifi Khan
On Thu, 1 Oct 2009, Erik Wikstr?m wrote:

 My proposal is that instead of releasing the code as X.Y.0 first make a
 X.Y.0 RC (Release Candidate). While the RC might not see as much usage

you make a valid point.

Now for the same users, it may be a good idea to make the tag
more search friendly as well.

Perhaps something like
  x.y-rc

and thus a .0 release has a clean tag 2.4.0 for example and
search engine results are cleaner, since they are not littered
with 2.4.0-RC and 2.4.0-RC2 etc.

What do you think ?


thanks
Saifi.

Ps. special thanks to the DragonFlyBSD team for making the AMD64
release.


Re: Ruby 1.9 -whats happening here?

2009-10-07 Thread Saifi Khan
On Tue, 6 Oct 2009, elekktrett...@exemail.com.au wrote:

 Hi guys,
 
 I may have had perhaps a wishful thinking that pkgsrc contains Ruby 1.9,
 which I found that it doesnt.
 
 So i went and compiled it from source manually. Compile went ok but when I
 try to install the rmagick gem, I get this error:
 
 ==
 Mon 05Oct09 23:07:21
 This installation of RMagick 2.12.0 is configured for
 Ruby 1.9.1 (i386-dragonfly2.4.1) and ImageMagick 6.5.5 Q16
 ==
 
 
 
 make
 gcc -I. -I/usr/local/include/ruby-1.9.1/i386-dragonfly2.4.1
 -I/usr/local/include/ruby-1.9.1/ruby/backward
 -I/usr/local/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\extconf.h\ 
 -I/usr/pkg/include/ImageMagick -fPIC  -I/usr/pkg/include/ImageMagick
 -ormmontage.o -c rmmontage.c
 In file included from /usr/local/include/ruby-1.9.1/ruby/ruby.h:1125,
  from /usr/local/include/ruby-1.9.1/ruby.h:32,
  from rmagick.h:27,
  from rmmontage.c:9:
 /usr/local/include/ruby-1.9.1/ruby/missing.h:109: error: expected
 identifier or '(' before 'sizeof'
 /usr/local/include/ruby-1.9.1/ruby/missing.h:109: error: expected ')'
 before '?' token
 
 The code in missing.h is:
 
 #ifndef HAVE_ISNAN
 RUBY_EXTERN int isnan(double);
 #endif
 
 Im not a C programmer, but can I get some clues on how to fix this?
 
 By the way, any ideas why Ruby 1.9 isnt yet in pkgsrc nor in pkgsrc-wip?
 Its in FreeBSD ports and works very well. I searched through netbsd
 mailing lists and couldnt find an answer. Ruby 1.9.1 is production ready.
 
 Thanks,
 Petr
 

RMagick 2.x requires Ruby 1.8.x at a minimum.

Please see
http://pkgsrc.se/graphics/ruby-RMagick


thanks
Saifi.



Realtek NIC issue

2009-09-08 Thread Saifi Khan
Hi all:

Installed DragonFlyBSD 2.3.2.750.g517f2e-DEVELOPMENT (Sep 2
snapshot) on my Compaq 301TU laptop.

The Realtek NIC card does not seem to be working,
although the following lines are seen in dmesg output

rl0: Realtek 8139 10/100BaseTX port 0x2000-0x20ff mem
0xd010-0xd01000ff irq 11 at device 8.0 at pci8
rl0: unknown device ID: fff
device_probe_and_attach: rl0 attach returned 6

This is a quad boot machine
 p1: OpenSolaris
 p2: DragonFlyBSD
 p3: NetBSD
 p4: FreeBSD
and the rest three OS are able to detect the same NIC card and
its functional as well (just in case this info helps).

i've an identical 'another' laptop running FreeBSD 8-CURRENT
exclusively and here is the 'pciconf -l -v' output.


hos...@pci0:0:0:0:  class=0x06 card=0x30a5103c chip=0x27a08086 rev=0x03 
hdr=0x00
vendor = 'Intel Corporation'
device = '955XM/945GM/PM/GMS/940GML Express Processor to DRAM 
Controller'
class  = bridge
subclass   = HOST-PCI
vgap...@pci0:0:2:0: class=0x03 card=0x30a5103c chip=0x27a28086 rev=0x03 
hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class  = display
subclass   = VGA
vgap...@pci0:0:2:1: class=0x038000 card=0x30a5103c chip=0x27a68086 rev=0x03 
hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class  = display
no...@pci0:0:27:0:  class=0x040300 card=0x30a5103c chip=0x27d88086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) High Definition Audio'
class  = multimedia
subclass   = HDA
pc...@pci0:0:28:0:  class=0x060400 card=0x30a5103c chip=0x27d08086 rev=0x01 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class  = bridge
subclass   = PCI-PCI
pc...@pci0:0:28:1:  class=0x060400 card=0x30a5103c chip=0x27d28086 rev=0x01 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class  = bridge
subclass   = PCI-PCI
pc...@pci0:0:28:2:  class=0x060400 card=0x30a5103c chip=0x27d48086 rev=0x01 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class  = bridge
subclass   = PCI-PCI
uh...@pci0:0:29:0:  class=0x0c0300 card=0x30a5103c chip=0x27c88086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:1:  class=0x0c0300 card=0x30a5103c chip=0x27c98086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:2:  class=0x0c0300 card=0x30a5103c chip=0x27ca8086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class  = serial bus
subclass   = USB
uh...@pci0:0:29:3:  class=0x0c0300 card=0x30a5103c chip=0x27cb8086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class  = serial bus
subclass   = USB
eh...@pci0:0:29:7:  class=0x0c0320 card=0x30a5103c chip=0x27cc8086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB 2.0 Enhanced Host Controller'
class  = serial bus
subclass   = USB
pc...@pci0:0:30:0:  class=0x060401 card=0x30a5103c chip=0x24488086 rev=0xe1 
hdr=0x01
vendor = 'Intel Corporation'
device = '82801 Family (ICH2/3/4/5/6/7/8/9-M) Hub Interface to PCI 
Bridge'
class  = bridge
subclass   = PCI-PCI
is...@pci0:0:31:0:  class=0x060100 card=0x30a5103c chip=0x27b98086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801GBM (ICH7-M) LPC Interface Controller'
class  = bridge
subclass   = PCI-ISA
atap...@pci0:0:31:1:class=0x01018a card=0x30a5103c chip=0x27df8086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) Ultra ATA Storage Controller'
class  = mass storage
subclass   = ATA
atap...@pci0:0:31:2:class=0x010601 card=0x30a5103c chip=0x27c58086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801GB Mobile I/O Controller Hub SATA cc=AHCI'
class  = mass storage
subclass   = SATA
no...@pci0:0:31:3:  class=0x0c0500 card=0x30a5103c chip=0x27da8086 rev=0x01 
hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) SMBus Controller'
class  = serial bus
subclass   = SMBus
no...@pci0:6:0:0:   class=0x028000 card=0x1364103c chip=0x431114e4 rev=0x01 
hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Broadcom 

namei.h query

2009-09-01 Thread Saifi Khan
Hi all:

Here is a newbie query regarding the code in namei.h

In DragonflyBSD, sys/sys/namei.h

struct componentname
{
 ...
 ...
 long cn_consume; /* chars to consume in lookup */
 ...
};

and

in FreeBSD RELENG_4, sys/sys/namei.h

struct componentname
{
 ...
 ...
 char *cn_pnbuf; /* pathname buffer */
 ...
 ...
};


What is the advantage of the DragonflyBSD approach in this case ?


thanks
Saifi.



DragonflyBSD partition ID ?

2009-08-27 Thread Saifi Khan
Hi:

Does anybody know what is the partition ID to be specified for
DragonflyBSD ?

i've been using the entire disk for DragonflyBSD and this just
stumped me as i tried to help another friend setup DragonflyBSD
on a 40GB partition.

The Linux fdisk does not seem to any entry for DragonflyBSD
partition type. Any pointers ?


thanks
Saifi.



  1   2   >