Posts

Showing posts with the label linux

Tired of ttySx and ttyOx

Recently linux-omap integrated omap-serial patches. Now we dont use ttyS2 anymore but use ttyO2. tired of switching kernel versions and fixing my getty, wrote the following In my busybox /etc/init.d/rcS file: proc=`mount|grep "proc"` if [ -z "proc" ]; then mount -t procfs none /proc fi if [ -f /proc/cmdline ]; then # grab console from cmdline and use it.. tty=`cat /proc/cmdline|sed -e "s/ /\n/g"|grep console|cut -d '=' -f2|cut -d ',' -f1` if [ -z "tty" ]; then echo `cat /proc/cmdline` "does'nt have console?" else # remove my previous one if it exists rm -f /dev/tty-bd ln -s /dev/$tty /dev/tty-bd echo "/dev/$tty linked to /dev/tty-bd - using as console" fi else echo "cmdline not found - no console?" fi In my inittab: tty-bd::askfirst:-/bin/sh

my kernel does'nt boot: the magic of EARLY_PRINTK

I am subscribed to TI's e2e portal and this post peeked my interest. Since sometime in mainline kernel we've had issues with kernel not booting up due to some weird bugs. As a kernel developer, I have screwed up multiple times preventing kernel boot from happening. Typical build results in: ## Booting kernel from Legacy Image at c0700000 ... Image Name: Linux-2.6.32-rc6 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1939152 Bytes = 1.8 MB Load Address: c0008000 Entry Point: c0008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... And that's it - no useful messages for the kernel geeks to figure out where the boot sequence crashed, no real debug information at all! So the first question: why the kernel silence? The boot messages can only be printed once you have the serial port enabled. Now, serial port enablement itself could be pretty much later in the kernel boot sequence, if the system crashes(oops/data abort e...

linux on C64 DSP!

Thanks to rkw, heard of this: http://linux-c6x.org/wiki/index.php/Main_Page it is based on 2.6.34 - pretty much closer to .36-rc5 ;) and needs some more work I guess.. mostly, it would be a great thing to get this running on beagleboard ! I cant think why not.. ;)

Cool your laptop - linux governor

Check this script out: for i in /sys/devices/system/cpu/cpu[0-9]; do echo $i `cat $i/cpufreq/scaling_governor`; done and see here for a description and this for a bit of history

Changes in Linux OMAP

Tony Lindgren, Linux OMAP maintainer announced that source.mvista.com linux omap copy would not be used anymore.. It has been more than three years since the discussion on hosting the kernel tree at mvista site .. Thank you mvista for hosting all our pulls to date.. from now on look here (actually it was there since 2006, though I will miss doing " linux omap git " on google).

Dreamer Dream on....

Imagine spending time b/w 11pm and 3 am dreaming about embedded computing (as opposed to mobile computing) - technology and hardware is available today I was given a http://beagleboard.org/ and am now spending time dreaming about using the tiny computing powerpack and unable to sleep.. kinda wierd.. but then.. imagine this: linux+android(?) running over s-video on a http://www.i-glassesstore.com/ and a headset to give commands, my GPS +USB wlan+ webcam plugged over USB - if i can get http://cmusphinx.sourceforge.net/html/cmusphinx.php to work on omap3430, the possibilities are awesome... no more cellphones! i can even think of stereoscopic vision(using the additional dvi output). pure open source and free - covering sight, hearing (I cant do much about touch,smell and taste ;) ). but that should account for a pseudo virtual-real world embedded human-machine combination.. i guess i am truely rambling on.. but i am going to give it a shot and see how far i can get..

next cheap omap board...??

keep a watch... next story on the cheap omap boards... ?? - the page is still in progress.. i'd keep a watch on the rss

Anderson has put up daily OMAP build logs

http://opensource.indt.org/omapbuilds/ -> this is good thing.. something finally to give a bird's eye view of things.. mebbe a tiny perl script will manage to do a daily bootlog.. gotta figure that one out..

More android news - videos ZOOOM 3430 platform - Sub 1K??!!

http://www.phonemag.com/e28-show-working-android-cellphone-video-from-mwc-02950.php with OMAP730 (gosh that is old...) The real stuff with OMAP3430: http://www.phonemag.com/texas-instruments-touchscreen-android-video-demo-02998.php there is youtube videos in both one can enjoy the same.. Here is the KICKER: as predicted -> the OMAP3430 platform in the demo is a SUB 1k USD platform.. See here: http://www.logicpd.com/products/devkit/ti/zoom_mobile_development_kit for development and ordering info... it also has a crappy icon which looks familiar from the video folks... Two useful links from the Site: opensource.ti.com openomap.org (Additions: http://androidzaurus.seesaa.net/article/74237419.html zaurus android) Must have: android internals list: http://groups.google.com/group/android-internals/ wiki: http://en.wikipedia.org/wiki/Android_(mobile_phone_platform ) the Android Site: http://code.google.com/android/

IwlWifi on Intel 3945 Works better than ipw3945

Hmm.. after a long line of trial and errors (and blunders) i am posting this off my wifi connection on my linux boot.. :) on my way in kicking Vista offff my laptop.. anyway, since i plan on doing this all over again, here are the steps: get the binaries of iwlwifi (http://intellinuxwireless.org/) iwlwifi-1.2.25.tgz mac80211-10.0.4.tgz (did not need this) iwlwifi-3945-ucode-2.14.1.5.tgz Get the kernel source: sudo apt-get install kernel-source-2.6.22 unziped the kernel, had to play a bit of stupid tricks such as sudo ln -s /usr/src/linux-source-2.6.22/ /lib/modules/2.6.22-14-generic/source + copy the .config and build files from kernel-header-generic in /usr/src/... to the source directory.. then buidl iwlwifi: a simple "sudo make", copy the firmware: cp iwlwifi-4965-ucode-4.44.1.20/iwlwifi-4965-1.ucode /lib/firmware/ and the same for 3945 sudo make install blacklisting the ipw3945 driver: /etc/modprobe.d/blacklist add the line: blacklist ipw3945 edited my /etc/network/inter...