Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: KingBongo on March 03, 2011, 04:43:54 AM

Title: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 03, 2011, 04:43:54 AM
Hi. I am new to TinyCore and loving it already! This is what I call "trimming off the fat" :) I am having some problems though. Hope this is the right forum.

Background -

The computer I am playing with is an old Pentium 1 (i586), 200MHz, 128Mb RAM. It works great, despite the fact that barely nothing can be installed or booted on it. When you finally manage to install something on it, it runs slooooooow for the most part. That is why I tried TinyCore in the first place. TC seems to make this thing totally fly!

I am running TinyCore 3.5.

Problems -

1. I managed to figure out how to configure the serial mouse during boot. That was not very hard, "tinycore xsetup" at the boot prompt does the trick. But when I try to set the mouse to a left-handed one (Control Panel -> Mouse Tool -> Left Button - Apply) it doesn't work. The mouse remains right-handed. How to fix that?

2. I cannot connect to the network. When I want to install apps and connect (Apps -> Connect) it says "Connection error, check network or mirror.". Then, when trying to configure the network (Control Panel -> Network -> Use DHCP Broadcast "yes" -> Apply) nothing happens. I still get the same error message when I try to install apps. Am I doing something wrong or do I have incompatible hardware?

Please help me with the problems mentioned above. I plan to install TC to hard drive later together with a music player.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: Juanito on March 03, 2011, 05:03:21 AM
I cannot connect to the network. When I want to install apps and connect (Apps -> Connect) it says "Connection error, check network or mirror.". Then, when trying to configure the network (Control Panel -> Network -> Use DHCP Broadcast "yes" -> Apply) nothing happens. I still get the same error message when I try to install apps. Am I doing something wrong or do I have incompatible hardware?

Is your network hardware wired or wireless?

What specific hardware do you have (manufacturer, model, etc)?
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 03, 2011, 05:34:27 AM
Juanito:
Thank you! It is a wired card, Realtek RTL-8139/8139C/8139C+. Will it work? I have another one I could try, model unknown at this point.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: Juanito on March 03, 2011, 06:05:36 AM
After searching these forums, it seems several uses have had problems with realtek harware..

Does "lsmod" show that the realtek driver is loaded? Does "dmesg | grep realtek" show anything?

If the driver is not loaded, you could try "sudo modprobe realtek"
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 03, 2011, 06:23:58 AM
Juanito:

- "lsmod" gives (among others)

8139too (used by 0)
8139cp (used by 0)

so I guess they are loaded then, or?

- "dmesg | grep realtek" doesn't give anything.

- "sudo modprobe realtek" and then again "lsmod" gives (among others)

libphy (used by 1 realtek)
8139too (used by 0)
8139cp (used by 0)

I don't know what it all means, but there seem to be some stuff related to realtek.

Edit: I tried my other network card as well. It seems to work even less :) But I knew that before I even tried. It is some kind of 3Com card that is much bigger and (judging by the looks of it) much older than the Realtek card.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: curaga on March 03, 2011, 06:55:07 AM
Please post last ~15 lines of dmesg, once for both cards.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 03, 2011, 08:10:17 AM
curaga:
Are you crazy? I will have to write everything manually ;) Ok, here goes

Realtek card -

hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
hdc: possibly failed opcode: 0xa0
end_request: I/O error, dev hdc logical block 5570
Buffer I/O error on device hdc, logical block 5570
EXT4-fs (hda1): mounted filesystem with ordered data mode
EXT4-fs (hda2): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda2): mounted filesystem with ordered data mode
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
EXT4-fs (hda1): mounted filesystem with ordered data mode
EXT4-fs (hda2): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda2): mounted filesystem with ordered data mode
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
eth0: link down

I don't know, but the last line says "eth0 : link down". I already knew that ;) Just kidding. The rest seems related to the hard drives only, and (maybe more important) hdc which you already know is the CD drive :P

I have to go now. I will post for the other card later.

Edit: The posting for "dmesg" above is incorrect since network cable wasn't plugged in.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: gerald_clark on March 03, 2011, 08:12:28 AM
Output to a file, copy to a USB drive, and send it from the machine you are typing on.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: curaga on March 03, 2011, 10:39:46 AM
With the cable connected, of course ;)
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 03, 2011, 11:41:14 AM
gerald_clark:
USB? You gotta be kidding me :P Do you think I am on something modern here, lol? All I can write to is a floppy, but I don't have a floppy drive on anything else so...

curaga:
Hahaha. Please don't tell anyone about this ;) Ok, here it comes, this time with the cable connected!

Realtek card -

hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
hdc: possibly failed opcode: 0xa0
end_request: I/O error, dev hdc, sector 22280
Buffer I/O error on device hdc, logical block 5570
Adding 489972k swap on /dev/hdb3. Priority:-2 extents:1 across:489972k
EXT4-fs (hda1): mounted filesystem with ordered data mode
EXT4-fs (hda2): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda2): mounted filesystem with ordered data mode
EXT4-fs (hdb1): warning: mounting fs with errors, running e2fsck is recommended
EXT4-fs (hdb1): mounted filesystem with ordered data mode
EXT4-fs (hdb2): mounted filesystem with ordered data mode
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
EXT4-fs (hda1): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda1): mounted filesystem with ordered data mode
EXT4-fs (hda2): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda2): mounted filesystem with ordered data mode
EXT4-fs (hdb1): warning: mounting fs with errors, running e2fsck is recommended
EXT4-fs (hdb1): mounted filesystem with ordered data mode
EXT4-fs (hdb2): mounted filesystem with ordered data mode
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

3Com card -

hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
hdc: possibly failed opcode: 0xa0
end_request: I/O error, dev hdc, sector 22280
Buffer I/O error on device hdc, logical block 5570
Adding 489972k swap on /dev/hdb3. Priority:-2 extents:1 across:489972k
EXT4-fs (hda1): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda1): mounted filesystem with ordered data mode
EXT4-fs (hda2): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda2): mounted filesystem with ordered data mode
EXT4-fs (hdb1): warning: mounting fs with errors, running e2fsck is recommended
EXT4-fs (hdb1): mounted filesystem with ordered data mode
EXT4-fs (hdb2): mounted filesystem with ordered data mode
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
EXT4-fs (hda1): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda1): mounted filesystem with ordered data mode
EXT4-fs (hda2): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (hda2): mounted filesystem with ordered data mode
EXT4-fs (hdb1): warning: mounting fs with errors, running e2fsck is recommended
EXT4-fs (hdb1): mounted filesystem with ordered data mode
EXT4-fs (hdb2): mounted filesystem with ordered data mode
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
eth0: setting full-duplex.

Pretty much the same as for the Realtek card, except the last line. The problems with hdc cannot be good, or?
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: curaga on March 03, 2011, 11:43:59 PM
Yes, your cd drive is clearly failing. Should also fsck the partitions ;)

Both of your network cards appear to work perfectly, so the issue is in the network.

Please post the output of "ifconfig eth0" "cat /etc/resolv.conf", and "ping -c3 google.com".
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 04, 2011, 01:16:56 AM
The CD drive is still loading stuff so it will stay until it dies :P After that I have another one. Doesn't TC perform "fsck" automatically now and then or is that something only more bloated distros do?

Ok, will do. But no other distro I have tried has had any problems with the network before, so something must be fishy here. Here it comes, but (for now) only for the Realtek card,

Realtek card -

"ifconfig eth0" -

eth0        Link encap:Ethernet HWaddr 00:50:BF:E4:43:AC
              UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
              RX packets:77 errors:0 dropped:0 overruns:0 frame:0
              TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:18144 (17.7 KiB) TX bytes:16023 (15.6 KiB)
              Interrupt:9 Base address:0xcf00

"cat /etc/resolv.conf" - no output

"ping -c3 google.com" - ping: bad address 'google.com'

"ping -c3 http://www.google.com" - ping: bad port spec 'http://www.google.com'

"ping -c3 http://www.google.com/" - ping: bad port spec 'http://www.google.com/'

The first "ping" yielded a result that didn't seem right so I tried two more :) Hmmm, "bad port spec" seems suspect. Something port related? I have to mention that this computer is directly hard-wired to a Mac Mini via the Ethernet port. And yes, the ports in Mac/OS X are open. This has been working out of the box on other distros so.

EDIT: I don't know if it is of any use but here are the results for the 3Com card,

3Com card -

"ifconfig eth0" -

eth0        Link encap:Ethernet HWaddr 00:50:04:4F:36:68
              UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
              RX packets:9 errors:0 dropped:0 overruns:0 frame:0
              TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2213 (2.1 KiB) TX bytes:2943 (2.8 KiB)
              Interrupt:9 Base address:0x2f80

"ping -c3 google.com" - ping: bad address 'google.com'

"ping -c3 http://www.google.com" - ping: bad port spec 'http://www.google.com'

"ping -c3 http://www.google.com/" - ping: bad port spec 'http://www.google.com/'

It seems to have the same issues as the Realtek card.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: curaga on March 04, 2011, 04:58:25 AM
No, TC doesn't fsck automatically. Looks like you're not getting an IP nor a DNS server, are you sure there's a DHCP server properly running on the Mac?
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 04, 2011, 11:36:26 PM
curaga:
There should be a DHCP server properly running on the Mac. How do I check?

What I know is that I get a proper connection at once if I put Debian 5, Ubuntu 8.04, Knoppix, and a few Puppy versions in there. At least they claim (Debian, Ubuntu, Puppy) they are connecting automatically via DHCP. I am sure Knoppix does too but I don't remember how that was done. That has to imply a proper DHCP server, doesn't it?

PS. Thank you soooo much for helping me out! This issue is all that is keeping me from getting something useful out of this ages old computer again :)
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: curaga on March 05, 2011, 01:31:58 AM
Maybe there's some incompatibility with busybox udhcpc and the mac dhcp server. You could check what IP settings and DNS servers are given in other distros, and set those manually in TC. ("ifconfig eth0" output, and the /etc/resolv.conf file).
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: tinypoodle on March 05, 2011, 05:54:01 AM
There is no guarantee of what would work or not when having such boot media read errors.

what happens upon "udhcpc -i eth0' ?
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 07, 2011, 08:49:34 AM
curaga:
Thank you. But I still don't get it to work :( I think I got the right data from Puppy Linux 2.14X-Top6.

I don't know if I do it correctly though: Control Panel -> Network -> IP Address: xxx & Name Servers: yyy. Nothing happens except it now takes a bit longer before I get the error message.

tinypoodle:
Ohhh. Sorry, I did not notice we are now on the second page. This is what I get

"sudo udhcpc -i eth0" -

udhcpc (v1.18.3) started
Sending discover...
Sending discover...
...

a.s.o. forever. What does it mean?

EDIT: This is really frustrating. Do I really have to move the computer in order to bypass the Mac? :(
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: curaga on March 07, 2011, 10:31:51 AM
http://hints.macworld.com/article.php?story=20071223001432304

Maybe helps, maybe not. But if neither ps3 or xbox360 get a dhcp reply from a Mac with the net sharing on, the fix for that might just help busybox's client too.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: tinypoodle on March 07, 2011, 11:24:49 AM
"sudo udhcpc -i eth0" -

udhcpc (v1.18.3) started
Sending discover...
Sending discover...
...

a.s.o. forever. What does it mean?


It means that there is no response from any dhcp server.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: limeblack on March 07, 2011, 01:37:19 PM
I really hope you guys figure this out!   ;D I have also had issues with realtek cards.  I used the built in one in my computer for 2 weeks and then it went out.  All it does is shine yellow.  I installed another pci realtek card and same issue after a month.  I'm going to try a get the log files latter  ;D
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 08, 2011, 12:57:11 AM
curaga:
Thank you! The OS X trick works like a charm! :D :D I think I'm in love! Are you married? Just kidding, hahaha.

Can somebody explain what just happened? Did I change "Dynamic DHCP" to "Static DHCP" in the mac now or what? That was just a wild and most certainly stupid guess from my side :P I hope I did not open any security holes to the outside world, but I think not. 

Ok, now to the left-handed mouse issue. I guess it is not implemented yet. Can I change it manually in some file?

PS. I have some delicious questions coming up for the installation of TC onto hard drive, just wait and see ;)
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: curaga on March 08, 2011, 03:09:09 AM
You made the Mac's dhcp server accept legal clients it previously ignored. No security loss.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: KingBongo on March 08, 2011, 07:46:05 AM
curaga:
Thank you! Very informative :) But why did it neglect them before that? "Stupid" is the word.
Title: Re: Cannot change to left-handed mouse. Cannot connect to network.
Post by: curaga on March 08, 2011, 08:34:07 AM
Ask Apple :P