LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-06-2011, 10:55 AM   #16
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94

Thx...

I changed the comment thing, but now another thing pops up...

Quote:
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$ gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$ which gcc
/usr/bin/gcc
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$ nano ../inf.c
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$ make ndiscvt
/usr/sfw/bin/gcc -c ../err.c -o err.o
../err.c:42:19: cdefs.h: No such file or directory
../err.c:105: error: conflicting types for 'verrc'
../err.c:81: error: previous implicit declaration of 'verrc' was here
../err.c:175: error: conflicting types for 'vwarnc'
../err.c:152: error: previous implicit declaration of 'vwarnc' was here
make: *** [err.o] Error 1
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$ which gcc
/usr/bin/gcc
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$ echo $PATH
/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$

And i have SUNWfleexlex and SUNWonbld packages installed...

I resorted to q quick hack... :

Quote:
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$ su root
Password:
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64# find / -name cdefs.h
/export/home/alex/Downloads/ndis-1.2.5/include/cdefs.h
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64# ln -s /export/home/alex/Downloads/ndis-1.2.5/include/cdefs.h /usr/include/cdefs.h
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64# ls /usr/include | grep cdefs
cdefs.h
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64# su alex
alex@opensolaris:~/Downloads/ndis-1.2.5/amd64$ make ndiscvt
/usr/sfw/bin/gcc -I../include -O -m64 -c ../err.c -o err.o
/usr/sfw/bin/gcc -I../include -O -m64 -c ../inf.c -o inf.o
../inf.c: In function `dump_pci_id':
../inf.c:241: warning: assignment makes pointer from integer without a cast
../inf.c:247: warning: assignment makes pointer from integer without a cast
../inf.c:255: warning: assignment makes pointer from integer without a cast
/usr/sfw/bin/gcc -I../include -O -m64 -c ../ndiscvt.c -o ndiscvt.o
/usr/sfw/bin/gcc -I../include -O -m64 -c ../subr_pe.c -o subr_pe.o
/usr/ccs/bin/yacc -d -v ../inf-parse.y

conflicts: 1 reduce/reduce
mv y.tab.c inf-parse.c
/usr/sfw/bin/gcc -I../include -O -m64 -c inf-parse.c -o inf-parse.o
rm -f inf-token.c
/usr/sfw/bin/flex -t ../inf-token.l > inf-token.c
/usr/sfw/bin/gcc -I../include -O -m64 -c inf-token.c -o inf-token.o
/usr/sfw/bin/gcc -I../include -O -m64 -o ndiscvt err.o inf.o ndiscvt.o subr_pe.o inf-token.o inf-parse.o
Undefined first referenced
symbol in file
strcasestr inf.o
ld: fatal: symbol referencing errors. No output written to ndiscvt
collect2: ld returned 1 exit status
*** Error code 1
but now i'm stuck...

Any ideas...?

BRGDS

Alex


EDIT:

I tried all this in a Solaris 11 Express VM

I Build ndiscvt in an OpenSolaris VM... seems that there is no probl with strcasestr there...

I have run the whole drill in my Osol VM...

Now i will try the same in my real install...

The problem is that my real install is an Solaris 11 Express... where i found that problem with the strcasestr thing...

I will be back at my Solaris 11 Express VM in a few hours...

Last edited by Alexvader; 03-06-2011 at 01:40 PM.
 
Old 03-06-2011, 03:02 PM   #17
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi again...

I am typing from my Solaris 11 Express VM ( same OS as my installed System in another box )

I have tried to build ndiscvt, following the same scheme i used in a OpenSolaris 0906 VM

I get this error... :

Quote:
alex@solaris:~$ cd /home/alex/Downloads/ndis-1.2.5/i386
alex@solaris:~/Downloads/ndis-1.2.5/i386$ ls
bcmwl5.inf bcmwl5.sys Makefile
alex@solaris:~/Downloads/ndis-1.2.5/i386$ nano ../inf.c
alex@solaris:~/Downloads/ndis-1.2.5/i386$ echo $PATH
/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin
alex@solaris:~/Downloads/ndis-1.2.5/i386$ ls
bcmwl5.inf bcmwl5.sys Makefile
alex@solaris:~/Downloads/ndis-1.2.5/i386$ make ndiscvt
/usr/sfw/bin/gcc -c ../err.c -o err.o
../err.c:42:19: cdefs.h: No such file or directory
../err.c:105: error: conflicting types for 'verrc'
../err.c:81: error: previous implicit declaration of 'verrc' was here
../err.c:175: error: conflicting types for 'vwarnc'
../err.c:152: error: previous implicit declaration of 'vwarnc' was here
make: *** [err.o] Error 1
alex@solaris:~/Downloads/ndis-1.2.5/i386$ ls ../include
bsd2solaris.h cfg_var.h hal_var.h inet ndis_var.h net80211_impl.h pe_var.h README sys
cdefs.h err.h if_ndisvar.h inf.h net ntoskrnl_var.h queue.h resource_var.h
alex@solaris:~/Downloads/ndis-1.2.5/i386$ su ln -s ~/Downloads/ndis-1.2.5/i386/../include/cdefs.h /usr/include/cdefs.h
su: Unknown id: ln
alex@solaris:~/Downloads/ndis-1.2.5/i386$ sudo ln -s ~/Downloads/ndis-1.2.5/i386/../include/cdefs.h /usr/include/cdefs.h

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
alex@solaris:~/Downloads/ndis-1.2.5/i386$ make
/usr/ccs/bin/yacc -d -v ../inf-parse.y

conflicts: 1 reduce/reduce
mv y.tab.c inf-parse.c
/usr/sfw/bin/gcc -c inf-parse.c -o inf-parse.o
../inf-parse.y:43:19: queue.h: No such file or directory
../inf-parse.y:45:17: inf.h: No such file or directory
make: *** [inf-parse.o] Error 1
alex@solaris:~/Downloads/ndis-1.2.5/i386$ ls ../include
bsd2solaris.h cfg_var.h hal_var.h inet ndis_var.h net80211_impl.h pe_var.h README sys
cdefs.h err.h if_ndisvar.h inf.h net ntoskrnl_var.h queue.h resource_var.h
alex@solaris:~/Downloads/ndis-1.2.5/i386$ sudo ln -s ~/Downloads/ndis-1.2.5/i386/../include/queue.h /usr/include/queue.h
alex@solaris:~/Downloads/ndis-1.2.5/i386$ sudo ln -s ~/Downloads/ndis-1.2.5/i386/../include/inf.h /usr/include/inf.h
alex@solaris:~/Downloads/ndis-1.2.5/i386$ make ndiscvt
/usr/sfw/bin/gcc -c ../err.c -o err.o
../err.c:105: error: conflicting types for 'verrc'
../err.c:81: error: previous implicit declaration of 'verrc' was here
../err.c:175: error: conflicting types for 'vwarnc'
../err.c:152: error: previous implicit declaration of 'vwarnc' was here
make: *** [err.o] Error 1
alex@solaris:~/Downloads/ndis-1.2.5/i386$ ls ../include/sys
dld_ioc.h dld.h dls_mgmt.h dls.h mac_client.h mac_flow.h mac_provider.h mac_wifi.h mac.h net80211_crypto.h net80211_ht.h net80211_proto.h net80211.h
alex@solaris:~/Downloads/ndis-1.2.5/i386$ nano ../include/cdefs.h
alex@solaris:~/Downloads/ndis-1.2.5/i386$ nano ../include/cdefs.h
alex@solaris:~/Downloads/ndis-1.2.5/i386$
Any ideas...?

BRGDS

Alex
 
Old 03-09-2011, 05:38 PM   #18
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
I Finally built the driver, and tried to load it...

no avail...

I built it for 64 bits architecture ( using the 64 bits FW ) but according to this webpage http://hub.opensolaris.org/bin/view/...up+laptop/ndis, the thing only works
Quote:
under solaris 32bit kernel with HP Official Release Windows@ driver Download![new](../new.gif)
and i have a 64 bits install...

no matter how i tried to
Quote:
add_drv -i '"pci14e4,4315"' bcmndis
and bring the interface up with ifconfig... no avail...

Well... I guess this is the end of the line for Solaris in this PC...

Drivers built with 32 bits FW won't load, will they...?

BRGDS

Alex
 
Old 03-10-2011, 08:17 AM   #19
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Alexvader View Post
and i have a 64 bits install...
You have both 32 and 64 bit actually. Although not an ideal workaround, you can still boot a 32 bit kernel with Solaris 11 Express. Just create a new grub boot menu entry with "/$ISADIR" removed from the lines where it appears.

Last edited by jlliagre; 03-10-2011 at 08:22 AM.
 
Old 03-10-2011, 09:25 AM   #20
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Quote:
# add_drv -i '"pci14e4,4320"' bcmndis
If i entered a mistaken device id, like 4315 instead of 4320 how do i unset the driver is it

Quote:
# rem_drv -i bcmndis
?

If the driver is successfully loaded, how do i bring the interface up..?

is it

ifconfig bcmndis0 up ?

I know this was not loaded because running ifconfig -a listed nothing vaguely similar to bcm or ndis...


BRGDS

Alex
 
Old 03-10-2011, 10:38 AM   #21
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Alexvader View Post
If i entered a mistaken device id, like 4315 instead of 4320 how do i unset the driver is it
?
You can simply edit the /etc/driver_aliases file and remove the faulty line.
Quote:
If the driver is successfully loaded, how do i bring the interface up..?

is it

ifconfig bcmndis0 up ?
Before bringing an interface up, you need to "plumb" it, it's done with
Code:
ifconfig bcmndis0 plumb
 
Old 03-10-2011, 06:06 PM   #22
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Now the external USB HDD where i was trying this Solaris 11 Express installation won't boot anymore...

throws a kernel panic and reboots, can i fix this with the liveCD...?

last things i performed on it were copying the ndis and ndisapi to its target folders...
 
Old 03-11-2011, 02:41 AM   #23
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You mean to OS panics even when booting in 64 bit mode ?
You can boot in verbose/debug mode to see where the panic do happen.

In the grub menu, remove the splashimage line and, in the kernel line, replace
Code:
console=graphics
with
Code:
console=text -kv -m verbose
 
1 members found this post helpful.
Old 03-13-2011, 03:22 PM   #24
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi...

I did this...

There's a lot of text scroll... hard to remember everything...

last thing i recall though is some hexadecimal giberish, something about a kernel (!?) dump, and a counter that goes to 100%... then it drops to some grub shell...
 
Old 09-20-2011, 06:48 PM   #25
timerce
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
same problem on dell d630 : after getting ndis to load : kernel panic

I commented the strcasestr, compiled, and did the add_drv command as per the instruction above
on solaris 11 express snv_151a 32bit kernel, with ndis 1.2.5 on a dell latitute d630 laptop having the
broadcom same chipset.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! I want to install Linux on my HP Pavilion dv5-1125nr laptop mad34 Linux - General 4 04-18-2010 02:37 PM
Can not turn on WiFi card in Ubuntu 8.10 in my hp dv5 laptop kasunbg Linux - Laptop and Netbook 5 09-04-2009 07:14 PM
no sound on my HP dv5-1235dx laptop andyfish Linux - Newbie 5 08-27-2009 01:51 PM
Unable to install Ubuntu 9.04 in HP dv5 1110ee AMD laptop gopi.d Linux - Laptop and Netbook 2 05-28-2009 01:47 PM
[SOLVED] How to install Slackware on my new HP dv5-1002nr Laptop bsurfin Slackware - Installation 7 08-18-2008 01:42 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration