Re: kern_linker.c rev. 1.75 and newer cause loading problem

2002-03-10 Thread Crist J. Clark

On Sat, Mar 09, 2002 at 10:13:25AM -0800, Steve Kargl wrote:
 Well, I finally have narrowed the problem down to
 
 Revision 1.75 Fri Feb 22 04:14:49 2002 UTC (2 weeks, 1 day ago) by arr 
 Branch: MAIN 
 Changes since 1.74: +1295 -1271 lines
 Diff to previous 1.74 (colored)
 
 - Massive style fixup.
 
 Reviewed by: mike
 Approved by: dfr
 
 
 
 To recap:
 
 root[202] cat /boot/loader.conf
 miibus_load=YES
 if_rl_load=YES
 snd_pcm_load=YES
 snd_maestro3_load=YES
 linux_load=YES
 agp_load=YES
 hint.acpi.0.disable=1
 root[203] kldstat
 Id Refs AddressSize Name
  1   12 0xc010 262e40   kernel
  21 0xc0363000 18330linux.ko
 ^
  32 0xc037c000 15480miibus.ko
  41 0xc0392000 7798 if_rl.ko
  52 0xc039a000 1a14csnd_pcm.ko
  61 0xc03b5000 9538 snd_maestro3.ko
  71 0xc03bf000 c860 agp.ko
  81 0xcb052000 2000 blank_saver.ko
 root[204] kldload linprocfs
 kldload: can't load linprocfs: Exec format error
 root[206] tail -1 /var/log/messages
 Mar  9 10:00:27 kernel: KLD linprocfs.ko: depends on \
 linux - not available
 
 root[209] kldunload linux
 root[210] kldload linux
 root[211] kldload linprocfs
 root[213] kldstat
 Id Refs AddressSize Name
  1   15 0xc010 262e40   kernel
  32 0xc037c000 15480miibus.ko
  41 0xc0392000 7798 if_rl.ko
  52 0xc039a000 1a14csnd_pcm.ko
  61 0xc03b5000 9538 snd_maestro3.ko
  71 0xc03bf000 c860 agp.ko
  81 0xcb052000 2000 blank_saver.ko
  92 0xcb425000 14000linux.ko
 ^
 101 0xcab88000 5000 linprocfs.ko

Are you sure the same module is being loaded?

  $ find -x / -name linux.ko
-- 
Crist J. Clark | [EMAIL PROTECTED]
   | [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/| [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: kern_linker.c rev. 1.75 and newer cause loading problem

2002-03-10 Thread Steve Kargl

On Sun, Mar 10, 2002 at 12:35:28AM -0800, Crist J. Clark wrote:
 On Sat, Mar 09, 2002 at 10:13:25AM -0800, Steve Kargl wrote:

[snip]

  root[203] kldstat
  Id Refs AddressSize Name
   1   12 0xc010 262e40   kernel
   21 0xc0363000 18330linux.ko
  ^
   92 0xcb425000 14000linux.ko
  ^
 
 Are you sure the same module is being loaded?
 
   $ find -x / -name linux.ko

Yes, I am sure.

kargl[204] kldconfig -r
/boot/kernel;/boot/kernel;/boot/modules;/modules
kargl[205] ls /boot/modules/
kargl[206] ls /modules/
ls: /modules/: No such file or directory
kargl[208] ls -l /boot/kernel/lin*
-rw---  1 root  wheel  15432 Mar  9 09:50 /boot/kernel/linker.hints
-r-xr-xr-x  1 root  wheel  19581 Mar  9 09:50 /boot/kernel/linprocfs.ko*
-r-xr-xr-x  1 root  wheel  97319 Mar  9 09:50 /boot/kernel/linux.ko*
kargl[213] find /boot -name linux\*
/boot/kernel/linux.ko -- Built at same time as 1.75
/boot/kernel.old/linux.ko -- Built at same time as 1.74
/boot/sgk/linux.ko-- not relevant see search path
/boot/kargl/linux.ko  -- not relevant see search path
kargl[214] cmp /boot/kernel/linux.ko /boot/kernel.old/linux.ko
kargl[215] cmp /boot/kernel/linprocfs.ko /boot/kernel.old/linprocfs.ko

As I said, if I backup to revision 1.74 of kern_linker.c,
then everything works.   If I use revision 1.75 or newer,
then you see the above problem.  I haven't found the actual
problem in kern_linker.c because it is a huge diff.

kargl[220] diff -u /root/kern_linker.c-1.74 /root/kern_linker.c-1.75 |wc
2956   12329  102757

-- 
Steve

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: kern_linker.c rev. 1.75 and newer cause loading problem

2002-03-10 Thread Maxim Sobolev

Should be fixed in rev.1.78.

-Maxim

On Sun, 2002-03-10 at 10:35, Crist J. Clark wrote:
 On Sat, Mar 09, 2002 at 10:13:25AM -0800, Steve Kargl wrote:
  Well, I finally have narrowed the problem down to
  
  Revision 1.75 Fri Feb 22 04:14:49 2002 UTC (2 weeks, 1 day ago) by arr 
  Branch: MAIN 
  Changes since 1.74: +1295 -1271 lines
  Diff to previous 1.74 (colored)
  
  - Massive style fixup.
  
  Reviewed by: mike
  Approved by: dfr
  
  
  
  To recap:
  
  root[202] cat /boot/loader.conf
  miibus_load=YES
  if_rl_load=YES
  snd_pcm_load=YES
  snd_maestro3_load=YES
  linux_load=YES
  agp_load=YES
  hint.acpi.0.disable=1
  root[203] kldstat
  Id Refs AddressSize Name
   1   12 0xc010 262e40   kernel
   21 0xc0363000 18330linux.ko
  ^
   32 0xc037c000 15480miibus.ko
   41 0xc0392000 7798 if_rl.ko
   52 0xc039a000 1a14csnd_pcm.ko
   61 0xc03b5000 9538 snd_maestro3.ko
   71 0xc03bf000 c860 agp.ko
   81 0xcb052000 2000 blank_saver.ko
  root[204] kldload linprocfs
  kldload: can't load linprocfs: Exec format error
  root[206] tail -1 /var/log/messages
  Mar  9 10:00:27 kernel: KLD linprocfs.ko: depends on \
  linux - not available
  
  root[209] kldunload linux
  root[210] kldload linux
  root[211] kldload linprocfs
  root[213] kldstat
  Id Refs AddressSize Name
   1   15 0xc010 262e40   kernel
   32 0xc037c000 15480miibus.ko
   41 0xc0392000 7798 if_rl.ko
   52 0xc039a000 1a14csnd_pcm.ko
   61 0xc03b5000 9538 snd_maestro3.ko
   71 0xc03bf000 c860 agp.ko
   81 0xcb052000 2000 blank_saver.ko
   92 0xcb425000 14000linux.ko
  ^
  101 0xcab88000 5000 linprocfs.ko
 
 Are you sure the same module is being loaded?
 
   $ find -x / -name linux.ko
 -- 
 Crist J. Clark | [EMAIL PROTECTED]
| [EMAIL PROTECTED]
 http://people.freebsd.org/~cjc/| [EMAIL PROTECTED]
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-current in the body of the message
 
 




signature.asc
Description: This is a digitally signed message part


kern_linker.c rev. 1.75 and newer cause loading problem

2002-03-09 Thread Steve Kargl

Well, I finally have narrowed the problem down to

Revision 1.75 Fri Feb 22 04:14:49 2002 UTC (2 weeks, 1 day ago) by arr 
Branch: MAIN 
Changes since 1.74: +1295 -1271 lines
Diff to previous 1.74 (colored)

- Massive style fixup.

Reviewed by: mike
Approved by: dfr



To recap:

root[202] cat /boot/loader.conf
miibus_load=YES
if_rl_load=YES
snd_pcm_load=YES
snd_maestro3_load=YES
linux_load=YES
agp_load=YES
hint.acpi.0.disable=1
root[203] kldstat
Id Refs AddressSize Name
 1   12 0xc010 262e40   kernel
 21 0xc0363000 18330linux.ko
 32 0xc037c000 15480miibus.ko
 41 0xc0392000 7798 if_rl.ko
 52 0xc039a000 1a14csnd_pcm.ko
 61 0xc03b5000 9538 snd_maestro3.ko
 71 0xc03bf000 c860 agp.ko
 81 0xcb052000 2000 blank_saver.ko
root[204] kldload linprocfs
kldload: can't load linprocfs: Exec format error
root[206] tail -1 /var/log/messages
Mar  9 10:00:27 kernel: KLD linprocfs.ko: depends on \
linux - not available

root[209] kldunload linux
root[210] kldload linux
root[211] kldload linprocfs
root[213] kldstat
Id Refs AddressSize Name
 1   15 0xc010 262e40   kernel
 32 0xc037c000 15480miibus.ko
 41 0xc0392000 7798 if_rl.ko
 52 0xc039a000 1a14csnd_pcm.ko
 61 0xc03b5000 9538 snd_maestro3.ko
 71 0xc03bf000 c860 agp.ko
 81 0xcb052000 2000 blank_saver.ko
 92 0xcb425000 14000linux.ko
101 0xcab88000 5000 linprocfs.ko

If I back up to revision 1.74 of kern_linker.c, then
this problem of Exec format error and KLD linprocfs.ko:
depends on linux - not available goes away.


As the commit message for revision 1.75 states Massive
style fixup, I suspect a typo slipped in.  However,
this is a +1200 line diff and I haven't been able to
find it.

-- 
Steve

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message