LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2004, 12:19 AM   #1
otama
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
problems with kernel 2.6.3 and bcm4400 module


Hello, Im new here, and i have a little problem; firs of all, sorry for my english.

Ive recently installed Gentoo 2004.0, but i've had some problems.

I installed kernel 2.4.22 and almost everything worked great.
I cant make the ethernet work. In the installation cd i can use it, and conect to the internet, but not when i restart the So.

also, theres a problem mounting a ntfs and a fat32 partitions ("wrong fs ty, bad option, bad superblock on hda1" and "hdb1")

so i decied to try kernel 2.6.3. i configured it, and compiled it. but when i restart, and i select the new option in grub (3 options: linux with 2.4.22, linux with 2.6.3, and windows), it starts to boot but it gets stuck in a few seconds, just after loading the ntfs driver (with read and write suport)

Please, someone could help me?

Thanks!
 
Old 03-22-2004, 12:25 AM   #2
vexer
Member
 
Registered: Jan 2003
Location: Sudbury Ontario, Canada
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Change the type of support for ntfs.. Instead of builtin, go modules and vis versa. If all else fails, remove ntfs support.
 
Old 03-22-2004, 12:29 AM   #3
otama
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Actually, I do need ntfs suport, I need to read (even it wold be great to write) to a ntfs partition... since its my "primary" partition and is where almost everything its located...

maybe just removing write suport or changin it to modules could work?

thanks again

Last edited by otama; 03-22-2004 at 01:33 AM.
 
Old 03-22-2004, 12:45 AM   #4
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Regarding the bcm44 modules, they're dodgy as all hell. You can try downloading the ones frmo the broadcom site, they're a little better, although still goddam awful.

As to the 2.6 kernel series, make sure you have module-init-tools installed if you want to use modules! You don't need this for the 2.4 / 2.5 series, but using 2.6.x, unless you have module-init-tools you can't insert modules... And recompiling the whole goddamn kernel each time you wanna change config is just a ...
 
Old 03-22-2004, 01:17 AM   #5
otama
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
well, im not much skilled in linux, so i must do it the way i know

i marked the ntfs suport as module and now all works, but i keep having the same error mounting and with ethernet.

I supose the mount problem is because i mut have something bad in the fstab, so here it is:

-------------------------------------------------
/dev/cdroms/cdrom0 /mnt/cdrom auto auto,ro,user 0 0
/dev/cdroms/cdrom1 /mnt/cdrom2 auto auto,ro,user 0 0

/dev/hda1 /mnt/c ntfs rw,user 0 0
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 noauto,noatime 1 1
/dev/hdb1 /mnt/d vfat rw,user 0 0

/dev/fd0 /mnt/floppy auto noauto,user 0 0

none /proc proc defaults 0 0

none /dev/shm tmpfs defaults 0 0
-------------------------------------------------

and about the bcm44. why it works fine in the instalaltion cd but not when I boot the system?
here is the error :

-------------------------------------------------
(...)
* Bringing eth0 up... [OK]
* Bringing eth1 up...
SIOCSIFARDDR : no such device.
eth1, unknown interface: no such device.
SIOCSIFBRDADDR : no such device.
eth1, unknown interface: no such device.
SIOCSIFNETMASK : no such device.
* Failed to bring eth1 up.
(...)
-------------------------------------------------

Well, the eth0 is another ethernet card, and it seems to work just fine, but my internet is throught that broadcom onbord, so i must make it work.

Thanks again for all.

Last edited by otama; 03-22-2004 at 01:18 AM.
 
Old 03-22-2004, 01:32 AM   #6
otama
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I've resolved the mounting problem but I still need help with the ethernet ...

I've downloadede the bcm4401 driver for linux from the broadcom website, and ive installed it using make, insmod bcm4400.o, and make install.
Everything seemded to go fine in the compilation, but after rebooting there was the same error again.

I've even used emerge bcm4400 and everything gone fine. but the error again!

thxs for helping me again....

Last edited by otama; 03-22-2004 at 01:55 AM.
 
Old 03-22-2004, 03:05 PM   #7
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
OK, it sounds like you're almost there. To make sure a module gets inserted every time you boot, add the module name to the file /etc/modules. Anything listed there the kernel will try to load at start up; hopefully you're all good after this.

Also worth noting it that it's generally best practice to use modprobe, rather than insmod. Modprobe looks in /lib/modules/<kernel version>/ to find the correct module and inserts it, while insmod has to find the file from the path specified. Modprobe also loads all the modules that the module you're trying to load depends on. BUT, don't worry too much about that stuff, it's the first paragraph you need!
 
Old 03-27-2004, 09:18 AM   #8
otama
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
yes, finally ive done it... but everytime I boot i have to load the module using modpobe, then using ifconfig eth1 ip netmask ip up to bring it up and then add a gateway usin route add default gateway.

I tryed to use a script in /etc/init.d and configure it to load via rc-update, but i dont know why, it fails. i have to do it manually
 
Old 03-27-2004, 07:40 PM   #9
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
If you edit the /etc/network/interfaces file and put in something like

auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254

substituting appropriate values. If you're getting your address via dhcp, then you can just have

auto eth0
iface eth0 inet dhcp

'ifup eth0 ' should then bring the interface up, and it should happen automatically on boot.
 
Old 03-28-2004, 01:16 PM   #10
otama
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
hum... now i have another problem, now i even cant use iternet.
Sudently, i cant use the route comand, the ifconfig sais both eth0 and eth1 are up and running, here is the error:

bash-2.05b# modprobe bcm4400
bash-2.05b# ifconfig eth1 213.xxx.xxx.xxx netmask 255.255.255.192
bash-2.05b# route add default gw 213.96.166.1
SIOCADDRT: Network is unreachable

Last edited by otama; 03-28-2004 at 01:40 PM.
 
Old 03-28-2004, 01:45 PM   #11
otama
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
hum... now i have another problem, now i even cant use iternet.
Sudently, i cant use the route comand, the ifconfig sais both eth0 and eth1 are up and running, here is the error:

bash-2.05b# modprobe bcm4400
bash-2.05b# ifconfig eth1 213.xxx.xxx.xxx netmask 255.255.255.192
bash-2.05b# route add default gw 213.96.166.1 up
SIOCADDRT: Network is unreachable

-------------------------------------------

"If you edit the /etc/network/interfaces file and put in something like"

I dont have such file. I even have the /etc/network folder...
should I create it?

Last edited by otama; 03-28-2004 at 08:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 04:35 PM
BCM4400 problems in Slackware 10.0 Awatto Linux - Newbie 4 09-29-2004 10:25 PM
kernel 2.6.1 module compilation problems Zamolxis Linux - Software 3 01-16-2004 11:27 AM
kernel module problems palanisaravanan Linux - General 1 11-23-2003 09:23 AM
module problems after kernel install? aveach Linux - Newbie 1 08-23-2003 03:30 PM


All times are GMT -5. The time now is 09:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration