2009年8月31日 星期一

murmur

沒什麼,太久沒寫文章,發個聲,証明自已還活著。

今年是一個充滿挑戰的一年,從籌備到成立 0xlab,接受各式各樣的挑戰,同時面對各方面的問題。和一群優秀的人一起工作,做一堆沒人做過的事,真是刺激極了。

這幾個月的目標是建立一個大家可以一同工作的平台,從設備到開發流程的建立。在大家的努力之下,慢慢的把一些東西建立了起來。對內做了相當多的實驗,對外則是提出了一個可以和大家一同工作的軟體平台。第一次的 code drop 之中,把 beagle-cupcake 調到可以玩,可以快速共同開發,容易整合。準備把心中的 item 慢慢一個一個完成。

把基礎打好了,真正的挑戰才要開始。給自已加油,也為大家加油。

這幾個月中之,發現到自已體力上的極限。刻意的放慢自已的腳步,我們是要做長做久的,不可以一下子就把自已燒掉。小心小心切記切記。對於自已一些 FOSS 的案子,真是對使用者感到抱歉,只要有時間和體力,我就會回來看的。 XD

在 lab 進入軌道後,接下來最重要的目標反而是調整好自已:管理好自已的情緒,讓自已更快樂、給自已更多時間,早點下班,多運動,讓自已更健康、訓練自已的表達能力,讓自已更能夠清楚的表達出想法。

希望能給大家和自已一個更好的 Tick. XD

2009年4月27日 星期一

0xlab is opening

0xlab looks very like 0x'1'ab and 0x1ab is 427. Therefore we choose this day to announce our lab. :)
http://0xlab.org

We are a group of software engineers who have strong passion in Free Open Source Software. We believe the power of knowledge and creativity, and we think we can do something very interesting and valuable.

2009年3月29日 星期日

Beagleboard demo

Demo for the last four days developement.






[beagleboard hacking note] HDMI monitor

I tried to use my LG TV as the monitor of beagleboard for three days, after some turning it works fine with Angstrom distribution. However, not in Android.
I tried to hacked around the driver/video/omap/lcd_omap3beagle.c but without successful. Just cannot see the Android screenshot. :(
After a long try, I almost sure every setting in my kernel is correct.And by checking the log, Android run very well. I thought it may be a problem from my TV, therefore I bring my beagle board to a 3C market and ask for testing a new HDMI monitor. It worked like a charm!! Oh my god, the LG TV waste a lot of my time. :( I bought that monitor without second though immediately.

Finally, I can play Android with my beagleboard. :-)
From beagleboard


But it seem need some other hack to simulate the touch panel events. I am considering write a fake device and sending touch panel event to kernel. (Is that a good idea? I doubt. Any Idea?)

A tiny program read signal from rs232, and translate message to positions and write to a device, and that device triggers input event report of touch panel. XD Hmm.... It's a pure dirty hack. Any suggestion? I don't want to buy another touch panel. I already bought too many stuff. Orz...

murmuring

2009年3月28日 星期六

[beagleboard hacking note] OE references

OE: openembedded a very powerful and complex build system.
beagleboard google code beagleboard info and download center.
Angstrom Distribution a good embedded distribution maintained by Koen, and that is what I am mainly used, and hacking on.

DSS reference a very good document to control the omap fbs


my local.conf of building beagleboard demo image

Filename: local.conf

MACHINE = "beagleboard"
DISTRO = "angstrom-2008.1"
BUILD_ARCH = "x86_64"
#INHERIT += "rm_work"
PARALLEL_MAKE = "-j 3"
BB_NUMBER_THREADS = "1"
TMPDIR = "/home/tick/OE/build/tmp"
BBFILES := "/home/tick/OE/openembedded/recipes/*/*.bb"


> bitbake beagleboard-demo-image
and have fun

[beagleboard hacking note] Bluetooth network

Because of using USB OTG mode, connecting beagleboard with keyboard and mouse. I cannot use usb0 as ethernet card. Therefore, I can use bluetooth dongle to simulate ethernet card.

1. modify the kernel configure, to allow usb bluetooth dongle works.
@@ -455,7 +455,7 @@ CONFIG_BT_HIDP=y
#
# Bluetooth device drivers
#
-# CONFIG_BT_HCIBTUSB is not set
+CONFIG_BT_HCIBTUSB=y
CONFIG_BT_HCIBTSDIO=y
# CONFIG_BT_HCIUART is not set
CONFIG_BT_HCIBCM203X=y

2. After boot, plug the dongle.
determin if bluetooth device detected or not.
> hcitool dev
scan surrounding bluetooth devices
> hcitool scan
If everything goes fine, we can try to connect bluetooth devices (e.g. mouse)

3. make your laptop a network access point (NAP) a very good document you should check
On your laptop with bluetooth RF on
a. turn off /etc/init.d/bluetooth
> /etc/init.d/bluetooth stop
b. modprobe bnep
c. pand -s -r NAP
On beagleboard:
a. finding the baddr of your laptop
> hcitool scan
b.connect to your laptop
>pand -c XX:XX:XX:XX:XX:XX:XX
c. Setup your beagleboard network
> ifconfig bnep0 192.168.0.202
> route add default gw 192.168.0.200
d. On your laptop set, let your laptop becomes an NAT gateway:
> ifconfig bnep0 192.168.0.200
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
Enjoy the wireless network :-)

[beagleboard hacking note] USB OTG line

Beagleboard supports USB OTG mode, however beagleboard cannot run OTG mode with normal 5 pin mini USB lines.

It needs to short pin 4 and 5. and so that you can play with OTG mode. Therefore I bought a B type mini usb line and remove the cover and short pin 4 and 5, and I can play with OTG mode happily.

From beagleboard


From beagleboard

BTW, beagleboard can play as client with normal mini usb to USB A line as ethernet card. (USB0)