Monday, January 30, 2006

omap2430SDP code is out (contains new audio architecture)

http://linux.omap.com/pub/kernel/2430sdp/source/ contains the source now.. :) the 2.6.10 code contains the new audio architecture. it works on SDP2430 and H4 (2420) too..
I guess I need to spend a bit of time to put it together for h3,h2,osk before pushing for it... :( and ofcourse.. lotsa fight coming up for the new dma apis for chaining...

Sunday, January 22, 2006

hwdep

to get hwdep running.
SND_HWDEP does not get enabled in the kernel.. the reason is sound/core/Kconfig does not have a string with the tristate option. for a hack, i put in "hw dep"
that explains why the following happend when i tried to compile btsco
Building modules, stage 2.
MODPOST
*** Warning: "snd_hwdep_new" [/root/kernel-build/btsco-0.41/kernel/snd-bt-sco.ko] undefined!
CC /root/kernel-build/btsco-0.41/kernel/snd-bt-sco.mod.o
LD [M] /root/kernel-build/btsco-0.41/kernel/snd-bt-sco.ko

most of my drivers are modules.. dunnot if it makes sense to load them up as staticly linked drivers???? just musing..i kind of get edgy thinking of installing the kernel again (i lost track of the number of re-compiles i have done so far :D)..

restarting again....

bluetooth trial 1

Ref: http://www.teaparty.net/technotes/blue-gprs.html
I have a Dell Wireless 350 Bluetooth Module
Marvin:~/kernel-build/linux-2.6.15-rc6# lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 004: ID 413c:8103 Dell Computer Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
bluez-utils:
added:

deb http://bluez.sourceforge.net/download/debian/ ./
deb-src http://bluez.sourceforge.net/download/debian/ ./

to /etc/apt/source.list, apt-get update
apt-get install bluez-utils
#hciconfig
hci0: Type: USB
BD Address: 00:10:C6:7E:4E:80 ACL MTU: 384:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:522 acl:0 sco:0 events:41 errors:0
TX bytes:1156 acl:0 sco:0 commands:35 errors:0

i put my logitech into scan mode (flashing red and blue after arnd 7 sec of pressing the switch), and then ran hcitool scan
Got:
00:0D:44:01:4B:6E Logitech HS01

now to figure out how to plug into this..


check this out: http://sourceforge.net/projects/bluetooth-alsa/
mainly this: http://ubuntuforums.org/archive/index.php/t-75978.html

more to add - for kde-bluetooth
# KDE-Bluetooth
deb http://fred.hexbox.de/debian ./

I can have the kdebluetooth detecting my headset, but still need to get the bluetoothalsa working!! arrgh..

getting webcam up

http://www.exploits.org/v4l/
i had to recompile the kernel (sigh again) with v4l enabled.
Then i compiled spcaview-20051212(http://mxhaard.free.fr/download.html) since i had a creative webcam live
once that was done a reboot later, i ran camorama and xawtv. both worked like a charm... geee.. this is good..

now i got a couple of issues. gnomemeeting does not seem to be able to open /dev/sound/dsp since kde is already controlling it.. mebbe try to get my bluetooth working??

Monday, January 02, 2006

keyboard and mouse also work now

mouse problem: evdev was compiled as a module(CONFIG_INPUT_EVDEV=m in my .config) .
add:

InputDevice "ALPS Touchpad"
#InputDevice "Configured Mouse"

in ServerLayout
and now either make "CONFIG_INPUT_EVDEV=y" and recompile kernel OR modprobe evdev needs to run before kdm ran, and for this i hacked the /etc/rc5.d/S99kdm and added (lsmodgrep evdev)(modprobe evdev)
This works...

http://rtr.ca/dell_i9300/ has more details on kubuntu setup.
the class is this:
To get the Front-Panel media buttons working, it is necessary to map them to the standard XF86-Audio button symbols on X11 startup. A script to do that is here. To have it run automatically in KDE, place it (or a symlink to it) into your ~/.kde/Autostart/ directory. The volume up, down, and mute buttons are handled internally by kmilo (which you might need to install: apt-get install kmilo). To have xmms use the play, pause, prev, next, and stop buttons, I had to download and install the appropriate package: apt-get install xmms-xf86audio and then enable it in the xmms preferences.
weee... the volume control also works now...

debian partly up

Bloddy well miss semagic!!

One more of the Inspiron 9300 installation stories.. installed windows xp home edition first. then started with debian..

IMPORTANT: http://fluffi.info/inspiron9300/single/ gives a lot of info.. i'd try and fill the missing links..

I got the sarge dvds (both of them ) and installed a basic install -
I just got a shell prompt with *no* audio/video/anyotherthing..
here is the saga so far:

hmm.. anyways.. I have my debian useable level at least..
some interesting things:

apt-get commands and learnings: http://homepage.mac.com/sao1/fink/commands.html

I got the nvidia drivers, the ipw2200 drivers , interestingly these are valid for 2.6 kernel and above.

Debian's Sarge installation is with 2.4.27 kernel!! this is painful. so the thing i did was to download 2.6.15-rc6, applied a patch to it,
here is how to compile the kernel and create a .deb package - pretty nice to do a dpkg -i and apt-get remove package_name and play around..
libata patch: http://www.kernel.org/pub/linux/kernel/people/jgarzik/libata/2.6.15-rc6-libata1.patch.gz
matching kernel: http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.15-rc6.tar.bz2
Here is my .config: http://www.geocities.com/crecmca98/Linux/dot_config_inspiron9300_2.6.15_rc6.txt

Two things here:
read the ipw2200 requirements+ the ata requirements too..+ what ever u'd like to add..
I have also applied the libata patch for 2.6.15-rc6
make menuconfig (with all the required stuff)
make-kpkg clean
fakeroot make-kpkg --revision=custom.1.0 kernel_image
cd ../
dpkg -i kernel-image-2.4.23_custom.1.0_i386.deb


Things are not done now, U need to edit the grub file /boot/grub/menu.lst and ensure that u set it up for hda2/sda.. as required for the root partition. the reason for this is that compared to 2.4 kernel, the 2.6 kernel got itself a nice problem with scsi detecting it for sda and the default grub config gives a dumbo kernel panic.

Now, to get nvidia and ipw2200 to work, u can use module-assistant - this is the easiest way out.

apt-get install module-assistant

module-assistant

and follow the instructions.. hah - just remember that once u select it, u need to build and install it too.. :) wont tell u more than that.. sweat a bit dude...

OR:
apt-get install nvidia-kernel-source
Compile the module to a deb file... lotsa place to search for this - google it..
dpkg -i nvidia-kernel-custom
depmod
modprobe nvidia
apt-get install nvidia-settings nvidia-glx


for working with ipw2200, u better disable the default ieee80211 drivers (as they are already obsolete!!), update from the ipw2200 site - and with lots of .config restrictions.. U get the driver here: http://ipw2200.sourceforge.net/

This is where I had to recompile the kernel (since no one had told me to look here before compiling the kernel first hand...

then u need to update ur lil synaptic touchpad driver - failed bad here.. dunno still why this does not work, but the normal ps2 or compatible mouse still works!!

Once ur install is all ok... bit of hacking into /etc/X11/XF86Config-4 is required.. read http://fluffi.info/inspiron9300/single/ the mousy part failed..

#BACKUP --- OLD SETTINGS --
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Panel"
InputDevice "Generic Keyboard"
#InputDevice "ALPS Touchpad"
InputDevice "Configured Mouse"

InputDevice "USB Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection



The ALPS Touchpad never worked for me!!

Then I kicked out xdm and put kdm in place (apt-get install again).

edited /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
iface eth0 inet dhcp

#Wireless Lan
auto eth1
iface eth1 inet dhcp
wireless_mode managed
wireless_channel 1
wireless_essid ARCHANID
wlan_ng_authtype open
wireless_key 2G:EM:70:DE:5F:B3:BD:AA:57:FB:0D:FF:F0

My 802.11 G type Netgear router is set with SSID ARCHANID is set for open WEP 128 Bit and Key Index 1, and the key is stated, I changed the default channel from 11 to 1.

I usually work from my bedroom and would never like the ethernet to start off on its own, hence the "auto eth0" is commented out.

I got gaim working, gaim-1.5.0 - but install libssl before u ./configure and install, since msn and google chat requires this.. now, am connected to google,yahoo and msn from linux.. heh heh..

gmplayer is also working - albiet with lotsa choppy audio/video on it not worth it.. check the mentioned site on dvdcss etc.. but the best part is mpg123 which is my loved mp3 player - it is still up and running..
dvd works out of the box..

one lil thing on kdm: edit /etc/kde3/kdm/backgroundrc to set the background image to what u like..
I love this:Wallpaper=linux_addict.jpg
physical file: /usr/share/wallpapers/linux_addict.jpg

things i love abt debian -
apt-get and kpackage when i feel guish..
better integration in KDE3.3

hate:
kinda not out of the box feeling (well.. thats why i dumped kubuntu and tried it anyways).
bad artsdsp - choppy audio,lousy multimedia (esp video) esperience.

PM needs a big cleanup - windows seems way ahead here..

but compared to 1999 when i last had a linux desktop to play with.. things are a hell lot easier today (mebbe I learnt a bit working on omap kernel which i could use here I guess).. stilll i dont feel the ease of working I do have in windows.. mebbe let me review this a week later...

Adios... weekend... and Appy New Year everyone..