Bug 175151

Summary: Loader fails to load modules on PPC64
Product: Base System Reporter: gmbroome
Component: powerpcAssignee: Andreas Tobler <andreast>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 9.1-RELEASE   
Hardware: Any   
OS: Any   

Description gmbroome 2013-01-09 01:30:00 UTC
When attempting to load modules before kernel execution, the following error message is given (example module name used):

---(BEGIN LOADER OUTPUT)---

/boot/kernel/if_tap.ko text=0x176 data=0x121+0x212 syms=[0x8+0xed+0x8+0xa2d]
loading required module ''
can't find ''

---(END LOADER OUTPUT)---

The requested module fails to load, and shown by lsmod (in loader) and kldstat (post-boot), and the functionality is not available in the booted system.

The problems occurs regardless of whether or not a proper linker.hints is present; loader behavior does not change either way.

All tested modules are affected.  Each modules loads and functions normally post-boot.

Fix: 

No fix known at this time; attempted stock 9.1R loader / kernel / modules, as well as custom-built variants.  All produce the same error.
How-To-Repeat: System:
  Power Mac G5 dual-CPU
  4GB RAM
  FreeBSD 9.1 installed to local HDD, using standard APM maps and UFS partitions.

Attempt to load a module at boot.  The load fails.
Comment 1 Andreas Tobler freebsd_committer freebsd_triage 2013-01-09 05:24:21 UTC
Hi,

you should be able to load modules with a 9.1-STABLE tree.

I committed a fix for this with r240249. You might also want r240782
which resolves module dependency resolution.

http://svn.freebsd.org/changeset/base/240249
http://svn.freebsd.org/changeset/base/240782

Syncing the loader source and rebuilding the loader should be suffcient.

Andreas
Comment 2 Andreas Tobler freebsd_committer freebsd_triage 2013-11-09 21:50:45 UTC
Responsible Changed
From-To: freebsd-ppc->andreast

I'll take it.
Comment 3 Andreas Tobler freebsd_committer freebsd_triage 2013-11-09 21:52:44 UTC
State Changed
From-To: open->closed

Code is in 9.2 and up. Works here. Close, Thanks!