e128
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#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. |
|
#2
|
||||
|
||||
|
On your kernel config you have commented
Code:
device ath # Atheros NIC's device ath_pci # Atheros pci/cardbus glue
__________________
==================================== | -------> 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 |
| The Following User Says Thank You to sk8harddiefast For This Useful Post: | ||
decsis (December 11th, 2012) | ||
|
#3
|
|||
|
|||
|
Thanks a lot, I will try it out!
|
|
#4
|
|||
|
|||
|
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. |
| The Following User Says Thank You to morbit For This Useful Post: | ||
decsis (December 11th, 2012) | ||
|
#5
|
|||
|
|||
|
Thanks, the problem is solved. I just wasn't sure if I can remove all these ath modules...doing this solved the problem.
|
|
#6
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |