c218 [Solved] Source for FreeBSD-9.0-CURRENT-201002-i386 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old March 6th, 2010, 13:08
quakerdoomer quakerdoomer is offline
Junior Member
 
Join Date: Apr 2009
Location: Bombay, India
Posts: 61
Thanks: 12
Thanked 1 Time in 1 Post
Default Source for FreeBSD-9.0-CURRENT-201002-i386

On FreeBSD-9.0-CURRENT while trying ndisgen the following
files got created:
bus_if.h
device_if.h
windrv.h
and windrv.o and ndisgen echoed an error

Code:
Generating Makefile... done
Building kernel module.. "/usr/share/mk/bsd.kmod.mk", line 12: "can't
find kernel source tree"
build failed. Exiting.
It didn't generate the .ko file

I tried compiling source for a driver and I again get the above error.

Just wanted to know if this error is because 9.0 kernel is still under
development or am I missing th source tree ? is there a pk_add package to install the CURRENT 9.0 source Tree ?

Last edited by DutchDaemon; March 6th, 2010 at 17:58. Reason: use [code] tags!
Reply With Quote
  #2  
Old March 6th, 2010, 13:48
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

You are missing source tree. It is always available on disc1 iso, at least.
Also you can fetch source via csup, cvs, svn and git.
Reply With Quote
  #3  
Old March 6th, 2010, 18:59
quakerdoomer quakerdoomer is offline
Junior Member
 
Join Date: Apr 2009
Location: Bombay, India
Posts: 61
Thanks: 12
Thanked 1 Time in 1 Post
Default

1] The size of disc1.iso is < dvd1 and memstick.
Does the source mean everything inside /usr/src or is there more to it ?

2] The bsd.kmod.mk says :
Code:
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
    !exists(${SYSDIR}/conf/kmod.mk)
.error "can't find kernel source tree"
.endif
Is $SYSDIR /usr/src/sys or /sys or something else ?

3] Also, Interesting is http://lists.freebsd.org/pipermail/f...ch/009031.html
which relates to our problem dated exactly one year back.
Can I use "csup, cvs, svn and git", get the source and set the SYSDIR path manually to force bsd.kmod.mk recognise the path ?
Reply With Quote
  #4  
Old March 7th, 2010, 12:06
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

You are free to download whatever you want, just do not download live one because it definetely doesent have source.

You do not need to set SYSDIR at all, just mount cd iso extract source - or use sysinstall to installsource.

With mount_nullfs you can point /usr/src to whatever you want.
Reply With Quote
The Following User Says Thank You to richardpl For This Useful Post:
quakerdoomer (March 8th, 2010)
  #5  
Old March 8th, 2010, 16:54
quakerdoomer quakerdoomer is offline
Junior Member
 
Join Date: Apr 2009
Location: Bombay, India
Posts: 61
Thanks: 12
Thanked 1 Time in 1 Post
Default

Thanks. I reinstalled from the img file and this time it extracted the src properly. 9.0-CURRENT is now supporting compiling of sources now, thanks to the presence of source, although my VirtualBOX 3.1.2 is still broken, but that's different tale altogether. Thanks richardpl.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to download complete FreeBSD kernel source with SVN? nickcheng FreeBSD Development 7 May 25th, 2010 07:24
FreeBSD 8.0 built from source Seeker Installing & Upgrading 4 February 24th, 2010 12:25
Which one is better FreeBSD AMD 64 or i386 mfaridi Installing & Upgrading 13 February 8th, 2010 22:44
Open Source Mail Server Solution for FreeBSD: iRedMail ZhangHuangbin Web & Network Services 2 December 23rd, 2009 19:32
[Solved] Source Upgrade to FreeBSD-8 Killed My ZFS Mounts Weaseal Installing & Upgrading 5 December 1st, 2009 02:20


All times are GMT +1. The time now is 09:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0