Results 1 to 2 of 2
Hi!
I have successfully reinstalled & updated CentOS and have gotten the correct kernel this time.
However, as I was trying to make wireless work, everything was going quite good ...
- 02-03-2010 #1
CentOS Wireless, 2nd try.
Hi!
I have successfully reinstalled & updated CentOS and have gotten the correct kernel this time.
However, as I was trying to make wireless work, everything was going quite good until the third part of the guide ( HowTos/Laptops/Wireless/Broadcom - CentOS Wiki) where it talks about typedefs.h which is quite new to me and honestly, seems a bit advance for my level
.
May I request for some help again please? I am posting my output up to the third part where I hit the bump. Thanks in advance!
Code:[jun@localhost ~]$ /sbin/lspci | grep Broadcom 06:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01) 07:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express (rev 02) [jun@localhost ~]$ su - Password: [root@localhost ~]# yum install kernel-headers kernel-devel gcc Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.web.com.ph * base: mirror.web.com.ph * extras: mirror.web.com.ph * updates: mirror.web.com.ph Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package gcc.i386 0:4.1.2-46.el5_4.2 set to be updated --> Processing Dependency: libgomp >= 4.1.2-46.el5_4.2 for package: gcc --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc ---> Package kernel-devel.i686 0:2.6.18-164.11.1.el5 set to be installed ---> Package kernel-headers.i386 0:2.6.18-164.11.1.el5 set to be updated --> Running transaction check ---> Package glibc-devel.i386 0:2.5-42.el5_4.3 set to be updated --> Processing Dependency: glibc-headers = 2.5-42.el5_4.3 for package: glibc-devel --> Processing Dependency: glibc-headers for package: glibc-devel ---> Package libgomp.i386 0:4.4.0-6.el5 set to be updated --> Running transaction check ---> Package glibc-headers.i386 0:2.5-42.el5_4.3 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: gcc i386 4.1.2-46.el5_4.2 updates 5.2 M kernel-devel i686 2.6.18-164.11.1.el5 updates 5.3 M kernel-headers i386 2.6.18-164.11.1.el5 updates 1.0 M Installing for dependencies: glibc-devel i386 2.5-42.el5_4.3 updates 2.0 M glibc-headers i386 2.5-42.el5_4.3 updates 601 k libgomp i386 4.4.0-6.el5 base 70 k Transaction Summary ================================================================================ Install 6 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 14 M Is this ok [y/N]: y Downloading Packages: (1/6): libgomp-4.4.0-6.el5.i386.rpm | 70 kB 00:01 (2/6): glibc-headers-2.5-42.el5_4.3.i386.rpm | 601 kB 00:16 (3/6): kernel-headers-2.6.18-164.11.1.el5.i386.rpm | 1.0 MB 00:20 (4/6): glibc-devel-2.5-42.el5_4.3.i386.rpm | 2.0 MB 01:18 http://mirror.web.com.ph/centos/5.4/updates/i386/RPMS/glibc-devel-2.5-42.el5_4.3.i386.rpm: [Errno 4] Socket Error: timed out Trying other mirror. (4/6): glibc-devel-2.5-42.el5_4.3.i386.rpm | 2.0 MB 00:01 (5/6): gcc-4.1.2-46.el5_4.2.i386.rpm | 5.2 MB 02:01 (6/6): kernel-devel-2.6.18-164.11.1.el5.i686.rpm | 5.3 MB 02:02 -------------------------------------------------------------------------------- Total 39 kB/s | 14 MB 06:06 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : kernel-headers 1/6 Installing : glibc-headers 2/6 Installing : glibc-devel 3/6 Installing : kernel-devel 4/6 Installing : libgomp 5/6 Installing : gcc 6/6 Installed: gcc.i386 0:4.1.2-46.el5_4.2 kernel-devel.i686 0:2.6.18-164.11.1.el5 kernel-headers.i386 0:2.6.18-164.11.1.el5 Dependency Installed: glibc-devel.i386 0:2.5-42.el5_4.3 glibc-headers.i386 0:2.5-42.el5_4.3 libgomp.i386 0:4.4.0-6.el5 Complete! [root@localhost ~]# mkdir -p /usr/local/src/hybrid-wl [root@localhost ~]# cd /usr/local/src/hybrid-wl [root@localhost hybrid-wl]# tar xvfz /path/to/the/tarball/hybrid-portsrc-x86_64-v5.10.91.9.3.tar.gz tar: /path/to/the/tarball/hybrid-portsrc-x86_64-v5.10.91.9.3.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors [root@localhost hybrid-wl]# '/home/jun/Desktop/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz' -bash: /home/jun/Desktop/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz: Permission denied [root@localhost hybrid-wl]# tar xvfz '/home/jun/Desktop/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz' Makefile lib/ lib/wlc_hybrid.o_shipped lib/LICENSE.txt src/ src/include/ src/include/epivers.h src/include/bcmdefs.h src/include/bcmendian.h src/include/bcmutils.h src/include/bcmwifi.h src/include/linux_osl.h src/include/linuxver.h src/include/osl.h src/include/pcicfg.h src/include/typedefs.h src/include/proto/ src/include/proto/802.11.h src/include/proto/802.1d.h src/include/proto/bcmeth.h src/include/proto/bcmevent.h src/include/proto/ethernet.h src/include/proto/wpa.h src/include/wlioctl.h src/shared/ src/shared/linux_osl.c src/wl/ src/wl/sys/ src/wl/sys/wl_dbg.h src/wl/sys/wl_export.h src/wl/sys/wl_iw.c src/wl/sys/wl_iw.h src/wl/sys/wl_linux.c src/wl/sys/wl_linux.h src/wl/sys/wlc_key.h src/wl/sys/wlc_pub.h [root@localhost hybrid-wl]# chown -R someuser.somegroup /usr/local/src/hybrid-wl chown: `someuser.somegroup': invalid user [root@localhost hybrid-wl]# chown -R jun.jun /usr/local/src/hybrid-wl[root@localhost hybrid-wl]# exit logout [jun@localhost ~]$ make -C /lib/modules/`uname -r`/build/ M=`pwd` make: Entering directory `/usr/src/kernels/2.6.18-164.11.1.el5-i686' scripts/Makefile.build:17: /home/jun/Makefile: No such file or directory make[1]: *** No rule to make target `/home/jun/Makefile'. Stop. make: *** [_module_/home/jun] Error 2 make: Leaving directory `/usr/src/kernels/2.6.18-164.11.1.el5-i686' [jun@localhost ~]$ su - Password: [root@localhost ~]# define TYPEDF_BOOL -bash: define: command not found [root@localhost ~]# nano typdefs.h [root@localhost ~]# cat typdefs.h cat: typdefs.h: No such file or directory [root@localhost ~]# uname -r 2.6.18-164.11.1.el5 [root@localhost ~]# typedefs.h -bash: typedefs.h: command not found [root@localhost ~]#
nujinini
Linux User #489667
- 02-03-2010 #2Here is your error. When you did exit, you left the working directory. You need to change back and then run the make command.[root@localhost hybrid-wl]# chown -R jun.jun /usr/local/src/hybrid-wl
[root@localhost hybrid-wl]# exit
logout
[jun@localhost ~]$ make -C /lib/modules/`uname -r`/build/ M=`pwd`
And then, assuming the error crops up, and I build the module on my Arch box without an error, you just need to edit typedefs.h like any other file. It should be in /usr/local/src/hybrid-wl/src/includeCode:[root@localhost hybrid-wl]# chown -R jun.jun /usr/local/src/hybrid-wl[root@localhost hybrid-wl]# exit logout cd /usr/local/src/hybrid-wl make -C /lib/modules/`uname -r`/build/ M=`pwd`
EDIT: This should be run as root.Code:nano -c /usr/local/src/hybrid-wl/src/include/typedefs.h
The -c option with nano will show you the line number in the status bar. Navigate to the line number shown in the error and comment out the offending lines as shown by the guide.


Reply With Quote