Re: 11.0 and tw_cli fail

2017-06-02 Thread Eugene Grosbein
31.05.2017 4:19, CBL пишет:
> Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
> Now the tw_cli utility is now throwing "Bad system call (core dumped).
> 
> Anybody have any suggestions?  Was working fine on 10.3.

Perhaps, you use custom kernel (not GENERIC) and forgot to add
options COMPAT_FREEBSD10 into its configuration file while upgrading?


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: 11.0 and tw_cli fail

2017-05-30 Thread Larry Rosenman
On Tue, May 30, 2017 at 11:40:48PM +0100, Gary Palmer wrote:
> 
> % file tw_cli
> tw_cli: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically 
> linked, for FreeBSD 5.4, stripped
> 
> Try COMPAT_FREEBSD5
> 
> Regards,
> 
> Gary
> 

Out of curiousity, how much code (binary) do the COMPAT_FREEBSD* bits add to 
the kernel/modules?


-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 11.0 and tw_cli fail

2017-05-30 Thread Gary Palmer

% file tw_cli
tw_cli: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically 
linked, for FreeBSD 5.4, stripped

Try COMPAT_FREEBSD5

Regards,

Gary

On Tue, May 30, 2017 at 03:55:03PM -0600, CBL wrote:
> Yeah, I have a custom kernel with COMPAT_FREEBSD10 already in it and no
> joy. However, I checked GENERIC and it works. Then I tried COMPAT_FREEBSD9
> too and no go.. guess I'll keep playing.
> 
> On Tue, May 30, 2017 at 3:33 PM, Alan Somers  wrote:
> 
> > Was the tw_cli utility built for FreeBSD 10?  If so, you need to
> > either rebuilt it, or build your kernel with COMPAT_FREEBSD10 in the
> > config file.  It's in the GENERIC config file, so you'll have it if
> > you don't use a custom kernel.
> > -Alan
> >
> > On Tue, May 30, 2017 at 3:19 PM, CBL  wrote:
> > > Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
> > > Now the tw_cli utility is now throwing "Bad system call (core dumped).
> > >
> > > Anybody have any suggestions?  Was working fine on 10.3.
> > >
> > > Thanks
> > > ___
> > > freebsd-stable@freebsd.org mailing list
> > > https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> > > To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org
> > "
> >
> ___
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
> 
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 11.0 and tw_cli fail

2017-05-30 Thread Martin MATO
 

From my experience;

 

I posess one 9650se card 12 ports with a computer build with freeBSD 

with a custom kernel build.

i haved this particular error one day (it uses old mmap calls, which have 
removed  some time ago)

 

you can see why it fails by invoking the tw_cli after the truss(1) command

 

# truss tw_cli
readlink("/etc/malloc.conf",0x7fffea50,63)   ERR#2 'No such file or 
directory'
issetugid()  = 0 (0x0)
compat6.mmap(0x0,0x1000,0x3,0x1002,0x,0x0,0x0) = 34366898176 
(0x8006d4000)
break(0x78f000)  = 0 (0x0)
break(0x79)  = 0 (0x0)
break(0x791000)  = 0 (0x0)
sysarch(AMD64_SET_FSBASE,0x7fffeb10) = 0 (0x0)
snip

 

the tw_cli utility worked again  with COMPAT_FREEBSD6 compiled in the kernel

and the compat libraries from the same version also installed...

 

this two things solved this very particular problem; for me at least.

 

hope  it helps you.

 

Regards.

 

> Message du 30/05/17 23:34
> De : "Alan Somers" 
> A : "CBL" 
> Copie à : "FreeBSD" 
> Objet : Re: 11.0 and tw_cli fail
> 
> Was the tw_cli utility built for FreeBSD 10? If so, you need to
> either rebuilt it, or build your kernel with COMPAT_FREEBSD10 in the
> config file. It's in the GENERIC config file, so you'll have it if
> you don't use a custom kernel.
> -Alan
> 
> On Tue, May 30, 2017 at 3:19 PM, CBL  wrote:
> > Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
> > Now the tw_cli utility is now throwing "Bad system call (core dumped).
> >
> > Anybody have any suggestions? Was working fine on 10.3.
> >
> > Thanks
> > ___
> > freebsd-stable@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> > To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
> ___
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: 11.0 and tw_cli fail

2017-05-30 Thread Michael Sinatra
I am pretty sure you're going to need to go all the way back to 
COMPAT_FREEBSD5 for that.  Or just do what GENERIC does and go all the 
way back to COMPAT_FREEBSD32 (and everything in between).


michael

On 5/30/17 2:55 PM, CBL wrote:

Yeah, I have a custom kernel with COMPAT_FREEBSD10 already in it and no
joy. However, I checked GENERIC and it works. Then I tried COMPAT_FREEBSD9
too and no go.. guess I'll keep playing.

On Tue, May 30, 2017 at 3:33 PM, Alan Somers  wrote:


Was the tw_cli utility built for FreeBSD 10?  If so, you need to
either rebuilt it, or build your kernel with COMPAT_FREEBSD10 in the
config file.  It's in the GENERIC config file, so you'll have it if
you don't use a custom kernel.
-Alan

On Tue, May 30, 2017 at 3:19 PM, CBL  wrote:

Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
Now the tw_cli utility is now throwing "Bad system call (core dumped).

Anybody have any suggestions?  Was working fine on 10.3.

Thanks
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org

"


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"



___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 11.0 and tw_cli fail

2017-05-30 Thread CBL
For those curious, COMPAT_FREEBSD6 and COMPAT_FREEBSD7 were the ticket to
get tw_cli working on FreeBSD 11.0. Wish Broadcom would roll a new binary.

On Tue, May 30, 2017 at 3:55 PM, CBL  wrote:

> Yeah, I have a custom kernel with COMPAT_FREEBSD10 already in it and no
> joy. However, I checked GENERIC and it works. Then I tried COMPAT_FREEBSD9
> too and no go.. guess I'll keep playing.
>
> On Tue, May 30, 2017 at 3:33 PM, Alan Somers  wrote:
>
>> Was the tw_cli utility built for FreeBSD 10?  If so, you need to
>> either rebuilt it, or build your kernel with COMPAT_FREEBSD10 in the
>> config file.  It's in the GENERIC config file, so you'll have it if
>> you don't use a custom kernel.
>> -Alan
>>
>> On Tue, May 30, 2017 at 3:19 PM, CBL  wrote:
>> > Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
>> > Now the tw_cli utility is now throwing "Bad system call (core dumped).
>> >
>> > Anybody have any suggestions?  Was working fine on 10.3.
>> >
>> > Thanks
>> > ___
>> > freebsd-stable@freebsd.org mailing list
>> > https://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@fr
>> eebsd.org"
>>
>
>
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 11.0 and tw_cli fail

2017-05-30 Thread CBL
Yeah, I have a custom kernel with COMPAT_FREEBSD10 already in it and no
joy. However, I checked GENERIC and it works. Then I tried COMPAT_FREEBSD9
too and no go.. guess I'll keep playing.

On Tue, May 30, 2017 at 3:33 PM, Alan Somers  wrote:

> Was the tw_cli utility built for FreeBSD 10?  If so, you need to
> either rebuilt it, or build your kernel with COMPAT_FREEBSD10 in the
> config file.  It's in the GENERIC config file, so you'll have it if
> you don't use a custom kernel.
> -Alan
>
> On Tue, May 30, 2017 at 3:19 PM, CBL  wrote:
> > Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
> > Now the tw_cli utility is now throwing "Bad system call (core dumped).
> >
> > Anybody have any suggestions?  Was working fine on 10.3.
> >
> > Thanks
> > ___
> > freebsd-stable@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> > To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org
> "
>
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 11.0 and tw_cli fail

2017-05-30 Thread Alan Somers
Was the tw_cli utility built for FreeBSD 10?  If so, you need to
either rebuilt it, or build your kernel with COMPAT_FREEBSD10 in the
config file.  It's in the GENERIC config file, so you'll have it if
you don't use a custom kernel.
-Alan

On Tue, May 30, 2017 at 3:19 PM, CBL  wrote:
> Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
> Now the tw_cli utility is now throwing "Bad system call (core dumped).
>
> Anybody have any suggestions?  Was working fine on 10.3.
>
> Thanks
> ___
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


11.0 and tw_cli fail

2017-05-30 Thread CBL
Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
Now the tw_cli utility is now throwing "Bad system call (core dumped).

Anybody have any suggestions?  Was working fine on 10.3.

Thanks
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"