e128 [Solved] 9.1 RC3: Custom Kernel Build Error 1 - 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 December 9th, 2012, 18:30
decsis decsis is offline
Junior Member
 
Join Date: Oct 2012
Posts: 24
Thanks: 6
Thanked 0 Times in 0 Posts
Default 9.1 RC3: Custom Kernel Build Error 1

Hello,
I tried making my first own Kernel, but unfortunately, it fails during make buildkernel:

Here is my Kernel config:
http://pastebin.com/dyRes4gi

The problem is, I don't see what's wrong:

Code:
ar9280.c:(.text+0x144): undefined reference to `ath_hal_free'
ar9280.o: In function `ar9280WriteRegs':
ar9280.c:(.text+0x11d): undefined reference to `ath_hal_ini_write'
ar9287.o: In function `ar9287RfAttach':
ar9287.c:(.text+0x73): undefined reference to `ath_hal_malloc'
ar9287.o: In function `ar9287RfDetach':
ar9287.c:(.text+0x144): undefined reference to `ath_hal_free'
ar9287.o: In function `ar9287SetChannel':
ar9287.c:(.text+0x49f): undefined reference to `ath_hal_ini_write'
ar9287.o: In function `ar9287WriteRegs':
ar9287.c:(.text+0x11d): undefined reference to `ath_hal_ini_write'
sample.o: In function `calc_usecs_unicast_packet':
sample.c:(.text+0x605): undefined reference to `ath_hal_pkt_txtime'
sample.c:(.text+0x6e9): undefined reference to `ath_hal_pkt_txtime'
*** [kernel] Error code 1

Stop in /usr/obj/usr/src/sys/MYKERNEL.
*** [buildkernel] Error code 1

Stop in /usr/src.
*** [buildkernel] Error code 1

Stop in /usr/src.

Last edited by decsis; December 11th, 2012 at 16:38.
Reply With Quote
  #2  
Old December 10th, 2012, 10:53
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,722
Thanks: 215
Thanked 142 Times in 88 Posts
Default

On your kernel config you have commented
Code:
device         ath             # Atheros NIC's
device         ath_pci         # Atheros pci/cardbus glue
Uncomment them and try again
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
The Following User Says Thank You to sk8harddiefast For This Useful Post:
decsis (December 11th, 2012)
  #3  
Old December 10th, 2012, 11:05
decsis decsis is offline
Junior Member
 
Join Date: Oct 2012
Posts: 24
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by sk8harddiefast View Post
On your kernel config you have commented
Code:
device         ath             # Atheros NIC's
device         ath_pci         # Atheros pci/cardbus glue
Uncomment them and try again
Thanks a lot, I will try it out!
Reply With Quote
  #4  
Old December 11th, 2012, 15:59
morbit morbit is offline
Member
 
Join Date: Jan 2009
Location: Poland
Posts: 176
Thanks: 18
Thanked 17 Times in 16 Posts
Default

The real problem is, you have commented some ath stuff, but not all of it. What you have left depends on stuff you've already commented out. Make your mind about what you want to achieve, and proceed accordingly.

Last edited by morbit; December 11th, 2012 at 17:32.
Reply With Quote
The Following User Says Thank You to morbit For This Useful Post:
decsis (December 11th, 2012)
  #5  
Old December 11th, 2012, 16:37
decsis decsis is offline
Junior Member
 
Join Date: Oct 2012
Posts: 24
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Thanks, the problem is solved. I just wasn't sure if I can remove all these ath modules...doing this solved the problem.
Reply With Quote
  #6  
Old December 11th, 2012, 17:43
morbit morbit is offline
Member
 
Join Date: Jan 2009
Location: Poland
Posts: 176
Thanks: 18
Thanked 17 Times in 16 Posts
Default

Well, as I've said that depends on what you want to achieve, precisely if you already have or plan to use ath hardware, especially if you are not building related modules too (this is only in-kernel config, by default most drivers are also built as modules, and available in /boot/kernel/directory as *ko files to load on boot (editing /boot/loader.conf) or run-time (using kldload). If you want only few modules to bundle in /boot/kernel/ directory, you must define them in MODULES_OVERRIDE=.

Oh, and most probably, you don't have AC'97 as well as Intel HD, AC'97 is earlier generation of integrated Intel sound, choose what's appropriate in your case, similar with Intel NICs, do you have 3 different ones? See what drivers(s) attach, and comment out not needed ones.
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
Minimum Modules To Build For Custom ZFS Kernel? dave Installing & Upgrading 5 March 3rd, 2012 22:18
Custom kernel doesn't build lefta Installing & Upgrading 6 February 24th, 2011 16:17
[Solved] Custom kernel build for 8.2-RC3 Kris Installing & Upgrading 30 February 18th, 2011 01:11
[Solved] Cannot build custom kernel after upgrading to 8.1 davidbliss Installing & Upgrading 2 July 24th, 2010 17:18
Custom kernel build bloodhound Peripheral Hardware 20 December 23rd, 2009 06:24


All times are GMT +1. The time now is 15:16.


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