Re: Sound on Thinkpad and Networking questions

2005-09-13 Thread Karel Miklav
Lars Lindblad wrote:
> New problems with FreeBSD 5.4 on my IBM Thinkpad 600E:

For questions regarding notebooks consider subscribing to
the freebsd-mobile list. In the archives of the mobile
list you can find some questions on TP 600E already
answered.

> 1. I try to get the sound to work, but I never manage
> to make! I have tried to recompile the kernel, as described
> in the FreeBSD Handbook I chapter 8. First I found a website
> dedicated to Thinkpad600E and FreeBSD 4.7, but the lines
> presented there didn't work.

Check out my kernel configuration (attached), it's for 5.4.
Soundcard is enabled by these two lines at the end:

device  sound
device  snd_mss

You must also have your hardware configured (hint: PS2).

-- 

Regards,
Karel Miklav
# TP600E - IBM ThinkPad 600E kernel configuration file
# Lino, 24. oktober 2004 2:32
#
# cd /sys/i386/conf/
# config TP600E
# cd ../compile/TP600E
# make depend
# make
# make install
#
# or
#
# cd /usr/src
# make buildkernel KERNCONF=TP600E
# make installkernel KERNCONF=TP600E

machine i386
#cpuI486_CPU
#cpuI586_CPU
cpu I686_CPU
ident   TP600E

# To statically compile in device wiring instead of /boot/device.hints
#hints  "GENERIC.hints" # Default places to look for devices.

options SCHED_4BSD  # 4BSD scheduler
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options SCSI_DELAY=15000# Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
#optionsVESA# To include support for VGA VESA video modes

device  apic# I/O APIC

# Bus support.  Do not remove isa, even if you have no isa slots
device  isa
device  eisa
device  pci

# Floppy drives
#device fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
#device ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

## SCSI Controllers
#device ahb # EISA AHA1742 family
#device ahc # AHA2940 and onboard AIC7xxx devices
#device ahd # AHA39320/29320 and onboard AIC79xx devices
#device amd # AMD 53C974 (Tekram DC-390(T))
#device isp # Qlogic family
#device mpt # LSI-Logic MPT-Fusion
##devicencr # NCR/Symbios Logic
#device sym # NCR/Symbios Logic (newer chipsets + those of 
`ncr')
#device trm # Tekram DC395U/UW/F DC315U adapters
#
#device adv # Advansys SCSI adapters
#device adw # Advansys wide SCSI adapters
#device aha # Adaptec 154x SCSI adapters
#device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
#device bt  # Buslogic/Mylex Mult

Re: Sound on Thinkpad and Networking questions

2005-09-13 Thread Roland Smith
On Tue, Sep 13, 2005 at 10:59:34AM +0200, Lars Lindblad wrote:
> New problems with FreeBSD 5.4 on my IBM Thinkpad 600E:
> 
> 1. I try to get the sound to work, but I never manage
> to make! I have tried to recompile the kernel, as described 
> in the FreeBSD Handbook I chapter 8. First I found a website 
> dedicated to Thinkpad600E and FreeBSD 4.7, but the lines 
> presented there didn't work. Instead I went to chapter 7 in 
> the handbook where it describes how I will change the kernel 
> to work with a Crystal 4232 Soundcard, so I guess I got the 
> right lines for the kernel. But when it comes to building 
> the kernel it says that it doesn't know devices with the 
> names pcm or csa. So, I am kind of stuck... HELP!

How do you know it doesn't work? Because you don't hear anything?

1) Make sure you have a sound driver loaded. To see if ou have a sound
driver loaded, try 'cat /dev/sndstat'. If that returns 'No such file or
directory' there is indeed no sound driver loaded.

I'm not sure is the 4232 is supported. Grepping through the sound driver
sources, I see the following CS chips: CS4281, CS4610/CS4611,
CS4280/CS4614/CS4622/CS4624/CS4630, CS4615

No 4232 to be found.

2) IIRC, the output volume is set to 0 when you first load a sound
driver. You can change that with the 'mixer' program, e.g. 'mixer vol 50'.


> 3. The network I try to build is just a small LAN at home, 
> with computers 192.168.0.1 (my 2.2GHz) and .2 (my 600E) 
> involved. Could I give them other names? Could I be use 
> Terminal or Konqueror to reach them from each other?

You can give them names by setting the hostnames on each in
/etc/rc.conf. Add the IP addresses with the corresponding hostnames to
/etc/hosts on both machines, and check that /etc/nsswitch.conf contains
a line 'hosts: files dns', so that the names can be resolved to IP
addresses.

To chare files between the two PCs, set up an NFS share on the desktop
that you can mount on the laptop.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpizPlEvFseG.pgp
Description: PGP signature


Re: Sound on Thinkpad and Networking questions

2005-09-13 Thread Fabian Keil
Lars Lindblad <[EMAIL PROTECTED]> wrote:

> New problems with FreeBSD 5.4 on my IBM Thinkpad 600E:
> 
> 1. I try to get the sound to work, but I never manage
> to make! I have tried to recompile the kernel, as described 
> in the FreeBSD Handbook I chapter 8. First I found a website 
> dedicated to Thinkpad600E and FreeBSD 4.7, but the lines 
> presented there didn't work. Instead I went to chapter 7 in 
> the handbook where it describes how I will change the kernel 
> to work with a Crystal 4232 Soundcard, so I guess I got the 
> right lines for the kernel. But when it comes to building 
> the kernel it says that it doesn't know devices with the 
> names pcm or csa. So, I am kind of stuck... HELP!

You don't have to rebuild the kernel to get sound working.
kldloading the right module should be enough.

You can find the available modules with

[EMAIL PROTECTED] ~ $ls /boot/kernel/snd_*
/boot/kernel/snd_ad1816.ko/boot/kernel/snd_maestro3.ko
/boot/kernel/snd_als4000.ko   /boot/kernel/snd_mss.ko
/boot/kernel/snd_cmi.ko   /boot/kernel/snd_neomagic.ko
/boot/kernel/snd_cs4281.ko/boot/kernel/snd_sb16.ko
/boot/kernel/snd_csa.ko   /boot/kernel/snd_sb8.ko
/boot/kernel/snd_driver.ko/boot/kernel/snd_sbc.ko
/boot/kernel/snd_ds1.ko   /boot/kernel/snd_solo.ko
/boot/kernel/snd_emu10k1.ko   /boot/kernel/snd_t4dwave.ko
/boot/kernel/snd_es137x.ko/boot/kernel/snd_uaudio.ko
/boot/kernel/snd_ess.ko   /boot/kernel/snd_via8233.ko
/boot/kernel/snd_fm801.ko /boot/kernel/snd_via82c686.ko
/boot/kernel/snd_ich.ko   /boot/kernel/snd_vibes.ko
/boot/kernel/snd_maestro.ko

I don't know your laptop and therefore don't know which
module you need, but dmesg could give you a clue.

kldload snd_driver will load all sound modules,
hopefully one of them will attach.

> 2. To learn networking I have connected the Thinkpad to my
> 2.2Ghz Intel-machine, but I must admit that still has too
> less knowledge about networking. I have configured the network
> cards so I can now ping both computers, but I need to know 
> more - does anyone have any suggestions about essential 
> reading (books, websites, other) about networking 
> FreeBSD/Linux/Windows? 

"TCP/IP Network Administration" and "The Complete FreeBSD"
both from O'Reilly are good.
I wouldn't call them essential, but reading them won't hurt.

I suppose you already know about the FreeBSD handbook.
 
> 3. The network I try to build is just a small LAN at home, 
> with computers 192.168.0.1 (my 2.2GHz) and .2 (my 600E) 
> involved. Could I give them other names? Could I be use 
> Terminal or Konqueror to reach them from each other?

What do you mean by reaching and what names are you talking
about, host names?

Fabian
-- 
http://www.fabiankeil.de/


pgpPrhcr8xjES.pgp
Description: PGP signature


Sound on Thinkpad and Networking questions

2005-09-13 Thread Lars Lindblad

Hi, the newbie Lars here again - still working on 
NOT being a newbie soon...! ;)

New problems with FreeBSD 5.4 on my IBM Thinkpad 600E:

1. I try to get the sound to work, but I never manage
to make! I have tried to recompile the kernel, as described 
in the FreeBSD Handbook I chapter 8. First I found a website 
dedicated to Thinkpad600E and FreeBSD 4.7, but the lines 
presented there didn't work. Instead I went to chapter 7 in 
the handbook where it describes how I will change the kernel 
to work with a Crystal 4232 Soundcard, so I guess I got the 
right lines for the kernel. But when it comes to building 
the kernel it says that it doesn't know devices with the 
names pcm or csa. So, I am kind of stuck... HELP!

2. To learn networking I have connected the Thinkpad to my
2.2Ghz Intel-machine, but I must admit that still has too
less knowledge about networking. I have configured the network
cards so I can now ping both computers, but I need to know 
more - does anyone have any suggestions about essential 
reading (books, websites, other) about networking 
FreeBSD/Linux/Windows? 

3. The network I try to build is just a small LAN at home, 
with computers 192.168.0.1 (my 2.2GHz) and .2 (my 600E) 
involved. Could I give them other names? Could I be use 
Terminal or Konqueror to reach them from each other?

Thanks in advance,

Lars




-- 
Lars Lindblad <[EMAIL PROTECTED]>

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"