Wednesday, December 28, 2005

OMAP2 SPI : David Brownells Framework

OMAP2 SPI Driver update:
------------------------

* I have started writing the OMAP2 SPI (Serial Peripheral Interface) driver using David Brownell's Simple SPI Framework.

* I am writing this driver as bit fancy, means "interrupt based transfers" in first phase and later with "dma based transfers".

* If interrupt based transfers works, then my plan is to move this driver using Bitbang interface also, to be useful while testing new OMAP2 series processors and custom boards based on the same too.

Today is 28th December, Time for for Tony to comeback from Vacation. Let's hope for fireworks !!!

Sunday, December 25, 2005

Submitting OMAP drivers to upstream

Tony,

How about starting to submit OMAP drivers to respective maintainers in
upstream [A]?

As discussed on linux-arm-kernel mailing list about "clock framework"
changes, we can think of submitting drivers to upstream after resolving
"clock fwk" issue.

[1]
I am sure you guys, must have put thought on that, but by doing this we
might not have to do some trivial changes to all the drivers, if any
driver model gets changes. e.g struct device_driver to platform_driver.

[1.1] We will get close reviews outside OMAP community.

[1.2] This might increase the acceptance time of patches by resp.
maintainer.

[2]
Yes, if we submit all the drivers to upstream, then our linux-omap-git
tree becomes obsolete, _or_ initially we have to follow two-step process
for submission.

[2.1] Submit new drivers/bugs fixes to linux-omap tree.
[2.2] Then to resp. maintainer in upstream.

But, if someone(a new user) picks up kernel from the upstream(with
drivers, whose bugs are fixed in linux-omap tree, but yet not submitted
to upstream), then it will be a big problem initially.

[A]
As of my knowledge, right now only OMAP nor flash mapping driver is in
upstream.

---Komal Shah
PS: This e-mail is still in my "draft" folder. I will wait for conclusion of "clock fwk".

Thursday, December 22, 2005

Komal Shah

Komal Shah: "TODO:
1. IrDA: See, if workqueues can be seemlessly integrated for GPIO Exapander access on H3 and H4. I will wait for few suggestions from Tony and other members."

Solutions, keeping board-specific data out of driver:

* transceiver_mode(struct omap_irda *si, int mode)
- Passing private omap irda structure to transceiver_mode function.
- but for this, we need to move "struct omap_irda" from our driver file to include/asm-arm/arch-omap/irda.h ? It may not look as clean interface.

* Ugly way: Pass work_struct as transceiver_mode() argument. No applicable to all the platform, so ruled out.

* Add "struct work" in irda platform_data.

Tuesday, December 20, 2005

OMAP-L: TODO

DONE:
* Watchdog fix submitted and accepted.
* IrDA testing on H4 board. - Discovery testing done.
* Submitted updated patch for IrDA to list.
* Submitted 2.6.9-TI based SPI commo. hack and touchscreen patch to the list. I am not going to work on this anymore.

TODO:
1. IrDA: See, if workqueues can be seemlessly integrated for GPIO Exapander access on H3 and H4. I will wait for few suggestions from Tony and other members.
* I need ARM cross-compiled "irdadump" utiltiy. Anyone?

2. NAND:
* I tried hard for different switch positons, but no success. Send your experiements to corresponding developers to test. I have kept this work aside for a while.

3. RTC
* I don't know how we will accomodate Menelaus RTC framework in existing 2.6.9-TI tree with git-omap2 tree.

4. SPI
* Start using David Brownells framework. Atleast experiments first polling based method with this framework and in second phase move to Interrupt and DMA support.

5. Video
* Work suspended until Imre Deak responds back.

Saturday, December 17, 2005

OMAP-L Dev. Update

Patches submitted to linux-omap-open-source mailing list:

1. IrDA Patch
- Cleanup of H2/H3 support, and moved platform specifc information to board-*.c files.
- Added support for 24xx.

Update:
- Patch was having few errors, which I have now resolved, but I am still not getting the interrupt and discovery test failes. But
#ifconfig irda0 up/down commands works on 24xx.

2. Video Out patch

- I have just cleanup of video out patch for git-omap tree and submitted for Imre Deak and Tony to review it.
- There were quite conflict in the development method and usage of vout along with existing git-omap2-fb driver. Need to resolve. It seems that Imre will reply only after x'-mas.

3. 24xx NAND patch
- It is not yet released, but it sitting under my tree. Submitted to Jian for review

- I got confused about flashing x-loader and u-boot for Nand flashing on 2420. Thanx Jian and team for giving me direction. I will try that on Monday it seems. I feel that PATCH will work straight away, and will publish it to list soon.

Bug fixing: TODO:
o Watchdog
- driver name should be changed from "omap-wdt" to "omap_wdt", as _probe function is not working in the current tree. I will submit that patch soon.

o RTC
- I don't know how we will accomodate Menelaus RTC framework in existing 2.6.9-TI tree with git-omap2 tree.

Sunday, December 04, 2005

OMAP Linux Update

o Submitted remaining platform_driver usage patches to list.
o Working on SPI Controller driver. - Understanding David's framework in detail.
o Will be also looking at Video out and IVA bridge support too.

TI Dev Conf, was good, lot's of presentations/talks. Da Vinci Rocks. The companies I remember showing demos were (most of them were on DM642/320/270 series).

o Ittiam Systems, Bangalore - H.264 codec 3-way conference.
- Custom made boards on DM320/642.
- Their video conferencing phone was on display.
- Custom made PMP was there too.

o EPIGON - Audio codecs guys.
- Not concentrated much on the demo.

o ADMIYA - Wireless capabilities demo.

o SlingMedia - SlingBox - A cool use of DMXXX series of chip for TV on your laptop.

o HalloSoft - VoIP suite on OMAP1710 and some DM series.

o Intervideo - Again Audio Codecs guys - OMAP310/DM320 with Micro C Linux. Not open-sourced, so I hate them.

o Mistral - Their LCD module for OMAP5912 - Their marketting guys told me pricing at about 799$ plus taxes. :-).

o Emuzed - Only company showing OMAP2420 demos. Amazing performance of their codecs on OMAP2. They were using Open Source Linux (not MV ...Yo...) I was happy seeing that. Pointed them to latest development on linux-omap-open-source series too.

Tuesday, November 29, 2005

TI dev conf

Going to TI India dev conf. tomorrow.

http://tii.developerconference.ext.ti.com/

So, platform_driver cleanup patches will be submitted either in the evening tomorrow or on Thursday.

o RTC and oss/omap-audio patches are ready.
o alsa/omap-audio-aic23 will be ready too.

Will be working on
o Touchscreen
o camera driver
o and RNG driver

Then I will be review omap1610-ir.c too, as I believe it can have more cleanup too _or_ omap-nand-flash driver cleanups, if Ladis don't have time to do that. Let's complete all the cleanup by these weekends, so all the remaining drivers are cleaned-up for OMAP2.

Monday, October 31, 2005

Vacation: Reliance WebWorld

Ok, Finally I was able to reach Ahmedabad Airport at 1:30 AM. Waited for Air Deccand - BOMBAY to AHMEDABAD flight for seven hours :( . Totally non-productive 7 hours of my life.

Ok, Finally Sunday started as usual ...got up very late 10:30 AM :-). No e-mails on sunday.

Today first time I had opened the accound in Reliance Webworld. Their PCs are running Windows XP. Very slow...registration process. You need to restart the machine to make your new id take effect. Anyway lady here knew that in advance :-).

Fine...their Broadband connection works ok...but not cool. Today I will start my journey to explore the places in Gujarat again...It's very hot here in Afternoon and very cold in Night...So need to take care of my health due to everchanging weather conditions. Ofcourse I miss Bangalore and it's parks.

Let's go...check e-mails today....

Saturday, October 29, 2005

Vacation: Reached to Bombay

I am typing this from Bombay Airport Terminal 1B. I started from Bangalore (Flight Air Deccan - DN 606). This flight was on time. It started at sharp 2:20 PM and reached to Bombay at 4:00 PM.

I had to wait 30Minutes to get the baggage. And the sad news is in the store that next flight leaving to Ahmedabad (State: Gujarat) is delayed by 7 hours :( . So, you can think of how I am utilizing this time at cybercafe having burger on the surfing point.

This surfing seems to nice and having name "Skyber cafe", serves good food.

Ok..then back to surfing....Hoping that flight is on time and I get it at 10:20 PM. I will reach to Ahmedabad at 11:30 PM.

Tony has pushed 24xx cpu detection code done by Imre. And people started asking about GStreamer on maemo mailing list, which seems to be hot topic, but never got so much response from the original developers on dsp plugins.

Lot depends on this, as I want to get maemo (some interface atleast) on 24xx. I am hoping for the best ...once I come back from the vacation....Enjoy !!!!...Happy Diwali !!!

Friday, October 28, 2005

Vacation

Diwali(Festival of Light) Vacation

Going on vacation for 2wks. 29th Oct to 13th Nov. Feeling
sick these days, hoping that I will recover soon and enjoy
the vacation.

Hoping to see 24xx-git tree with few more drivers when I will come back.

Komal Shah

Komal Shah

Test

Saturday, August 27, 2005

DebConf2005

This is a un-official report I have created to just write down what I have seen/discussed/learned during the first ever Debian Conference(DebConf - 2005) in Bangalore. This is a kind of blogged entry...

o I am living in Bangalore since last 2 years, but first time I have dared to go Electronics City,Phase-1 to attend the DebConf hosted by students from the Indian Institute of Information Technology, Bangalore (IIITB). As everyone know, this school is governed by big IT guys.

o I had asked few securities guys and students to direct me to Registration counter for DebConf.Well, volunteers had prepared the list of persons those who have registered online. But they were not able to find my name ...because names were not alphabetically sorted :-). Anyways, I was able to find my name at the 3rd page. There were approximately 138 online registered participants.

o I entered the conf. hall at around 2:25 PM (Actually timing for conf was 2:30 PM to 6:30 PM). Conf. hall was cool having 6 projectors and good audio arrangements. Alok (seems to be from HP) started the video of the presentation given by Jaldhar Vyas, somewhere in US on Debian.

o I had enjoyed that presentation from 2:30 to 3:00 and then finally IIITB prof. S. Sadagopan started his speech ...He had ignited the fire within the students to not just talk about that we are using Open Source and GNU/Linux, but to really open...the...source and contribute :-). He encouraged weekend hacking and use of Internet effectively to promote and increase the contribution in OSS
community.

o On a funny side, in India we have _only_ 2 registered Debian developers from south.
o Ramki (from TI) and o Ganesan (Don't know, may be from cisco/novell ).

o Ramki and Ganesan explained how they started using Debian from its early releases and the problems they have faced while waiting in NM (New Maintainer) queue for Debian. They explained Social Contract and how Debian is filtering the packages for inclusion in the release with its cycle. Few points were stressed upon increasing the contribution on Debian-Indian project (Maintained by Jaldhar Vyas) and various projects forked by it for Indic Languages. In short, it was very helpful for participants to see how Debian works.

o Then Chirag Kanthuria (Juniper Networks) started his short presentation on how he started using Debian and work he did on "netterm" and oops analysis tool across the network.

o Ramakrishan (IndLinux Project) came with Apple i-book for the presentation, and had difficulties in setting up slides (properitery stuff bugged him :-)). We were not able to view it properly. He had explained the project status and various features.

o After this few participants shared the difficulties faced by them in using Debian and Ramki and Ganeshan promised to mentor them for the new projects and set the goal for having 20 registered debian devlopers in one year from India (Next Debconf will be on 19th August, 2006).

o Only 2 women attended the conference (very less).

o There was some discussion on Embedded-Debian and I have cheerfully registered my name to mentor students on Embedded Linux project.

24xx GIT development

Aug. 7th, 2005 04:37 pm 24xx GIT development

Quick and Dirty Guide to start development using
latest kernel from GIT tree of omap-linux.

a. Read OMAP_GIT readme from http://www.muru.com
b. Then read this...

1. Download pre-built arm-linux toolchain from codesourcery.com
Link: http://www.codesourcery.com/gnu_toolchains/arm/

Host Platform:
Please select IA32 GNU/Linux, if you are using the RH _or_ any
other distribution for host.

Target Platform:
Please select GNU/Linux

2. Click on download :-)

3. Go to your home directory. "Don't login as root..Please".

#cd ~/
#mkdir -p toolchains/cs/q12005

Copy the toolchain to above directory.
#cd toolchains/cs/q12005
#tar -xvjf ./ {It is very big name :-)}

Export the path to bin
{update your .bashrc or related file with
your shell}

export PATH=/your/home/toolchains/cs/q12005/bin:$PATH

restart the shell.
#which arm-none-gnueabi-gcc
It should show
/your/home/toolchains/cs/q12005/bin/arm-none-gnueabi-gcc

That's it, you are set for cross-compilation.
You can write your "hello, world" "c" program and test it, like this.

#arm-none-gnueabi-gcc -o test test.c
#file ./test


Check shared libraries. [on host]
#arm-none-gnueabi-readelf -a ./test | grep "Shared"
...


4. Compile the kernel.

Please change the CROSS in top makefile.
It should look like this.
CROSS_COMPILE ?= arm-none-linux-gnueabi-

And go ahead with compilation...It will work...I have tested.

5. Filesystem
You have to create filesystem with the libraries supplied
with toolchain. So earlier filesytem won't work.
Not generated filesystem yet...


Caution:
========

Above steps for compilation are done for latest GIT tree
for linux-omap only, which is linux-2.6.13-rc4-omap1 +
24xx patch + omap_h4_2420_defconfig only.

Don't Don't try to compile your MontaVista kernel (2.4.x)
_or_ earlier 2.6.x series. I don't know, about it's
working...

If you developing test program in "c++" then please
use "arm-none-gnueabi-g++" and don't include
use .
3 comments - Leave a comment

Jul. 31st, 2005 08:00 pm SPI

Ok, Linux Symposium is over. I have lot's of things to read. As the client for whom, I am working, was not interested to sponsor me to attend the event :(.

Anyways, worked on lot's of things. Soon, I will be going back to 2.4.x world !!!. It is concluded now that I need a new PC for my 2.4.x work.

And Finally, 24xx activities on linux-omap-open-source list is started. I am very happy.
Submitted first git-patch to the list. It is nothing but defconfig file :-).

Kernel boot-sequence shows McBSP and USB failing for linux-omap-24xx boot-sequence, need to investigate...
---------snip----------------
Initializing OMAP McBSP system
mcbsp: could not acquire dsp_ck handle.
omapdsp: unsupported omap architecture.
USB: No board-specific platform config found
---------snip----------------

Hey, I have disabled the USB from tree..don't know yet, why it shows up.

Notes for new cogito user with linux-omap tree.
(This is not mentioned in the quick and dirty readme of on muru.com)

- o Always get synced with cogito tree.
- o Last week, cogito-git http was broken (rsync was to rescue).
- o Use cg-admin-uncommit in your temporary commit tree, if you feel that something is missing.
- o Use cg-mkpatch to generate the patch from commit tree to the original tree.

I will try to import my current work tree (oh..it is 2.6.9-omap-24xx) to git.

SPI

Jul. 31st, 2005 08:00 pm SPI

Ok, Linux Symposium is over. I have lot's of things to read. As the client for whom, I am working, was not interested to sponsor me to attend the event :(.

Anyways, worked on lot's of things. Soon, I will be going back to 2.4.x world !!!. It is concluded now that I need a new PC for my 2.4.x work.

And Finally, 24xx activities on linux-omap-open-source list is started. I am very happy.Submitted first git-patch to the list. It is nothing but defconfig file :-).

Kernel boot-sequence shows McBSP and USB failing for linux-omap-24xx boot-sequence, need to investigate...
---------snip----------------
Initializing OMAP McBSP system
mcbsp: could not acquire dsp_ck handle.
omapdsp: unsupported omap architecture.
USB: No board-specific platform config found
---------snip----------------

Hey, I have disabled the USB from tree..don't know yet, why it shows up.

Notes for new cogito user with linux-omap tree.
(This is not mentioned in the quick and dirty readme of on muru.com)

- o Always get synced with cogito tree.
- o Last week, cogito-git http was broken (rsync was to rescue).
- o Use cg-admin-uncommit in your temporary commit tree, if you feel that something is missing.
- o Use cg-mkpatch to generate the patch from commit tree to the original tree.

I will try to import my current work tree (oh..it is 2.6.9-omap-24xx) to git.

git and sparse

Apr. 10th, 2005 06:33 pm git and sparse

It is weekend coding session :-). But Linus gave us a gift of git this week. So I just wanted to go through the little bit of code. I have tried BitKeeper, CVS, Clearcase (Ah, Prop. solution), Microsoft Visual Source Safe and many more version control tools.

So, it is my love to check the code of git - patch manager. Right now I need to CVS for no reason. I am wondering around lots of 2.6.x trees on my PC right now. Hoping to control them all over through CVS, and in future with better SCM tool (ofcourse, open-source only).

Personally I liked Bitkeeper's disributed version control system, it kept me very near to the linux source. As I am living in a region where frequent downloads of huge patch tarballs cost me much. But the situation is improving at my side.

ok...let's look at the code of git...
Apr. 9th, 2005 07:05 pm Life starts here...

Ok, I came to office on Saturday to just do my hacking stuff :-).

Hacked few ARM11 cache functions, to see that selective
cache flushing is happening or not.

well, 2.6.9 TI drop seems to be working fine with
flush_cache_range function. But I still see some
cache flushing problems, with my test :-).

I will dig into more, with my own hacked coherent cache
range function.

Move from Live Journal to Blogger.com

Ok, I have now completely determined to move my blog entries from liverjournal.com to blogger.com. Here we go....!!!