About me

我的相片
I'm a web and software developer from Kaohsiung, Taiwan.
I design and implement user interfaces, also contribute to open source projects.
http://penkia.net/portfolio

2008年11月11日 星期二

Old School bootsplash Patch

做一下筆記. XD

Patch

為了在 Ubuntu Hardy 實作, 我找的檔名叫 bootsplash-3.1.6-2.6.24.diff. applied 之後 kernel config 記得該開的要開, 這部份網路上很多就不詳述了.

Picture

在某些 netbook 的面板上 framebuffer 只能開到 800x600, 但是圖片又會被拉寬, 解決方法就是將你的圖片垂直放大 1.25 倍. (髒)


Configuration

最簡單的設定檔, 假設叫做 xpud.cfg:
# xpud.cfg
version=3
state=1

# for text fore/background
fgcolor=7
bgcolor=0

# coordinates of text window
tx=20
ty=50
tw=760
th=530

# path to picture file
jpeg=bootsplash.jpg
silentjpeg=bootsplash.jpg
其他可用參數還很多, 比如說實作百分比條之類的我就沒研究了.

initrd

bootsplash 會從 initrd 最後 2MB 的地方找圖片來顯示, 所以要用 splash 指令將資料添加上去, 我是從某 pkg.tgz 拆出來的.

如果用的是 gz 或 cpio 格式, 參數如下:
splash -s -f xpud.cfg >> initrd.gz

如果本來沒有使用 initrd, 一樣也可以產生一個空的然後指給 kernel 畫圖.

Kernel Parameter

kernel  /vmlinuz vga=788 splash=silent
initrd /initrd.gz

Notes

搭配 915resolution 使用會造成 console 花掉. 聽說有 vesafb patch 可以解. 另外還不確定把 initramfs 包進 kernel 的時候圖片要加在哪裡. XD

2008年11月3日 星期一

本日書籤 11/03/2008

30 Seconds to Boot Up? That's 29 Too Many

http://www.nytimes.com/2008/11/02/business/02digi.html

在 Linux 上架� Screenshot Service

http://blog.xdite.net/?p=765

[Rails] Rails 2.2 的 i18n �做

http://blog.xdite.net/?p=785

Linux Kernel Patch: Suspend/Resume 以後�法 Restart

http://fred-zone.blogspot.com/2008/10/linux-kernel-patch-suspendresume.html

Freedom 硬�工程�研�� - FHEC

http://fred-zone.blogspot.com/2008/10/freedom-fhec.html

conference 感想

http://hlb.yichi.org/blog/2008/10/27/280

YSEO(You Suck Elimination Optimization)

http://hlb.yichi.org/blog/2008/11/01/287

�易�量 X round-trip time

http://blog.linux.org.tw/~jserv/archives/002072.html

Opera iPhone 版不能推出?

http://www.macgrass.com/permalink/2358

Openmoko FreeRunner � Google Android: ���想法

http://www.jollen.org/blog/2008/10/openmoko_freerunner_google_android.html

英特����部合推MID�源��展中心

http://www.zdnet.com.tw/news/ce/0,2000085674,20134005,00.htm

MacBook Air太��?

http://www.zdnet.com.tw/news/ce/0,2000085674,20134069,00.htm

�端策略:不要小看微�的逆��力

http://www.zdnet.com.tw/news/software/0,2000085678,20134074,00.htm

Google修�Android安全漏洞

http://www.zdnet.com.tw/news/comm/0,2000085675,20134075,00.htm

小�� (TrackPoint) 在 Ubuntu 8.10 的�定方法

http://yurinfore.blogspot.com/2008/11/trackpoint-ubuntu-810.html

vim + google code search!

http://yurinfore.blogspot.com/2008/11/vim-google-code-search.html

Rawstudio - gtk Batch Raw-Image Converter

http://0rz.tw/9e52w

「考量到自由��授�的��系��� -- 如何借力使力�避���」��上�

http://blog.linux.org.tw/~jserv/archives/002071.html

Google's browser engine running on ARM

http://www.eetimes.com/showArticle.jhtml?articleID=210300117

比被�「�台」�糟

http://fred.ipod.to/blog/?post;1720

Black and white

http://torvalds-family.blogspot.com/2008/11/black-and-white.html

新版 MacBook Air �箱照、首�到手��初步心得

http://0rz.tw/854WK

MacBook / MacBook Pro ��

http://chinese.engadget.com/2008/10/29/macbook-and-macbook-pro-reviews/

HP推出MINI 1000和MIE Linux

http://0rz.tw/0050N

Travis - Ode To J. Smith

http://pulp.bluecircus.net/archives/012914.html

Mogwai - The Hawk Is Howling

http://pulp.bluecircus.net/archives/012920.html

甜梅�十�年��(上)

http://pulp.bluecircus.net/archives/012923.html

黑潮血�:福音、�魂、放客及其��

http://blog.roodo.com/honeypie/archives/7454965.html

7 Top Tips and Resources for Google Chrome

http://ostatic.com/176004-blog/7-top-tips-and-resources-for-google-chrome

Get Your Local TV Listings From The Bash Command Line

http://0rz.tw/3c50T

Torvalds on Linux Kernel 2.6.28-rc1: More Drivers Than Ever

http://0rz.tw/564Vp

GNOME usability hackfest

http://www.markshuttleworth.com/archives/223

LK2008: Embedded and Mobile Linux

http://lwn.net/Articles/302889/

Innovating Up the Mobile Linux Stack

http://www.linuxinsider.com/rsstory/64953.html

A Closer Look At Red Hat's Plymouth

http://www.phoronix.com/scan.php?page=article&item=fedora_plymouth&num=1

Graphical Remote Control Desktops for Linux

http://www.linuxplanet.com/linuxplanet/tutorials/6567/1/

Fedora and long term support

http://lwn.net/Articles/303441/

Battle of the Thumb Drive Linux Systems

http://osnews.com/story/20438/Battle_of_the_Thumb_Drive_Linux_Systems

Ubuntu 7.04 to 8.10 Benchmarks: Is Ubuntu Getting Slower?

http://0rz.tw/5f516

Torvalds: Real Quality Means Taking it Personally

http://osnews.com/story/20451/Torvalds_Real_Quality_Means_Taking_it_Personally

Clutter is Good for Intel's Moblin Linux

http://osnews.com/story/20454/Clutter_is_Good_for_Intel_s_Moblin_Linux

Could Zoomable User Interfaces Be the Future?

http://osnews.com/story/20479/Could_Zoomable_User_Interfaces_Be_the_Future_

DistroWatch Weekly, Issue 276

http://distrowatch.com/?newsid=05157

Network Wizard Oct 29

http://puppylinux.com/blog/?viewDetailed=00463

Puppy 4.1.1 released

http://puppylinux.com/blog/?viewDetailed=00472

Perl-5-to-6

http://perlgeek.de/blog-en/perl-5-to-6/00-intro.writeback

Dist::Zilla eases management of your CPAN distributions

http://0rz.tw/8b506

How We Prepare a Demo

http://particletree.com/features/how-we-prepare-a-demo/

『搖滾是一種折磨以前自省以後的喜悅』


打掉時間的孩子,
腦袋再也不孕,
壞死的都是童心的毛囊.

詩在心底擺久了,
沾染太多意象,
苦不堪言無法出口成髒.

2008年10月27日 星期一

本日書籤 10/27/2008

移植 Android 到 Neo1973 � Neo FreeRunner

http://www.jollen.org/blog/2008/10/porting_android_to_free_runner.html

ㄜ�ㄝ都��到��拼音 e 的��

http://lukhnos.org/blog/zh/archives/676

�品命名的好例子:Suica

http://lukhnos.org/blog/zh/archives/693

批iPhone事件 英特�向�果低�

http://www.zdnet.com.tw/news/comm/0,2000085675,20133861,00.htm

【昨天的帝���】�德��逐�的前世今生(下)

http://sophist4ever.pixnet.net/blog/post/22212896

再�了,Woz的�名��

http://fred.ipod.to/blog/?post;1710

�需要�抱的媒�一��抱

http://fred.ipod.to/blog/?post;1712

碳有足��?

http://fred.ipod.to/blog/?post;1713

穿越雪梨�的吉他船

http://chinese.engadget.com/2008/10/26/guitar-boat-Josh-Pyke/

True multitouch:在��上翻橡皮筋

http://chinese.engadget.com/2008/10/26/true-multitouch/

WysiHat: 37 Signals discuss new open source WYSIWYG editor

http://0rz.tw/df4Vo

Round the Web: Vector Graphics

http://ajaxian.com/archives/round-the-web-vector-graphics

老妹新�作:One of the stories (video by D90)

http://0rz.tw/3750n

New Xfce beta focuses on usability

http://www.linux.com/feature/151211

Ubuntu's Live USB Disk Creator

http://www.phoronix.com/scan.php?page=article&item=ubuntu_usb_creator&num=1

Linux 2.6.28-rc1 Kernel Released

http://www.phoronix.com/scan.php?page=news_item&px=NjgxMQ

Support grows for Intel's mobile Linux despite slip

http://www.theregister.co.uk/2008/10/24/gos_netbook_moblin/

If No One Sees It, Is It an Invention?

http://www.nytimes.com/2008/10/26/business/26proto.html

Perl 6 isn't exactly vaporware

http://perlbuzz.com/2008/10/perl-6-isnt-exactly-vaporware.html

Fedora 10 - A Detailed Discussion on 13 Prime Features

http://0rz.tw/a34X5

Development Release: Ubuntu 8.10 RC

http://distrowatch.com/?newsid=05155

�情生活 vs. ��混音�

http://pulp.bluecircus.net/archives/012910.html

��ICON

http://pulp.bluecircus.net/archives/012913.html

Confirmed: Kids like Sugar better than XP

http://www.engadget.com/2008/10/24/confirmed-kids-like-sugar-better-than-xp/

Microsoft signals some improvements in Windows Vista SP2, still not
moist and chewy

http://0rz.tw/874ZE

2008年10月23日 星期四

本日書籤 10/23/2008

Intel 指 iPhone 之不足在其 ARM CPU

http://www.macgrass.com/permalink/2356

在��欣� BIOS �的 ACPI Description Table

http://fred-zone.blogspot.com/2008/10/bios-acpi-description-table.html

Android� iPhone:南�北�的��理念

http://www.zdnet.com.tw/news/comm/0,2000085675,20133836,00.htm

�察:�名iPhone 英特��何要��果�堪?

http://www.zdnet.com.tw/news/hardware/0,2000085676,20133840,00.htm

Google 用的 Code Review 系�

http://blog.ijliao.info/archives/2008/10/23/3672/

iPhone:新的�人���端

http://fred.ipod.to/blog/?post;1709

Microsoft Web Application Installer

http://zonble.twbbs.org/archives/2008_10/1052.php

�品音�敦南�Reopen��

http://pulp.bluecircus.net/archives/012906.html

音�祭的建�神�:重�Woodstock

http://blog.roodo.com/honeypie/archives/7407009.html

�科�:宇宙的��是什�?

http://chinese.engadget.com/2008/10/22/what-is-at-the-end-of-the-universe/

�果 Q408 ��出�!同�加映老� Q&A

http://0rz.tw/964WA

VirtualBox � tuntap interface

http://palatis.blogspot.com/2008/10/virtualbox-tuntap-interface.html

DistroWatch Weekly, Issue 275, 20 October 2008

http://distrowatch.com/weekly.php?issue=20081020

Distribution Release: Linux Mint 5 "Fluxbox"

http://distrowatch.com/?newsid=05151

Development Release: Dreamlinux 3.5 RC4

http://distrowatch.com/?newsid=05154

Greasemonkey, Chrome Edition

http://ajaxian.com/archives/greasemonkey-chrome-edition

(SP1) Network Wizard fixes

http://puppylinux.com/blog/?viewDetailed=00447

(SP1) BootManager add-modules bugfix

http://puppylinux.com/blog/?viewDetailed=00448

Beautiful Code Roundup

http://particletree.com/notebook/beautiful-code-roundup/

Fennec: Mobile Browser from Mozilla

http://osnews.com/story/20411/Fennec_Mobile_Browser_from_Mozilla

Google Open Sources Android

http://osnews.com/story/20419/Google_Open_Sources_Android

Live-CD Demonstration of the Genode OS Framework

http://osnews.com/story/20422/Live-CD_Demonstration_of_the_Genode_OS_Framework

Jobs on Cheap Computers, Netbooks

http://osnews.com/story/20424/Jobs_on_Cheap_Computers_Netbooks

Intel SSDs RAIDed up for blinding speed

http://www.engadget.com/2008/10/20/intel-ssds-raided-up-for-blinding-speed/

Keyboard "eavesdropping" just got way easier, thanks to electromagnetic
emanations

http://0rz.tw/654W5

DARPA contract shines light on real-time video spying initiatives

http://0rz.tw/814WL

MacBook and MacBook Pro review

http://www.engadget.com/2008/10/21/macbook-and-macbook-pro-review/

Plugging into GCC

http://lwn.net/Articles/301135/

Linux Wi-Fi Manager Roundup

http://www.linuxplanet.com/linuxplanet/reviews/6561/1/

2008年10月20日 星期一

xPUD on Fennec

Since Mozilla team just release the alpha of Fennec, the mobile version of Firefox, it's a good time to do some test.



The result is quite good and interesting, because Fennec implemented its own fullscreen rendering feature. Let's see how can we integrate it into xPUD. ;-)

ko2config.pl 和後續

幾個月前我寫了一隻 write once, run once 的 perl script, 用來把系統中的 kernel module 轉成 config 檔.
#!/usr/bin/perl
# ko2config.pl - convert *.ko to CONFIG

# set your kernel and source path here
chomp($path = "/lib/modules/".`uname -r`);
$k_path = "linux-source-2.6.24";

# get modules list from system
my @list = `find $path/kernel | grep ko`;

for (@list) {
# obtain file name
chomp($a = (split/\//, $_)[-1]);
print "$a = ";

# find CONFIG_* via Makefile
$a =~ s/\.ko$/.o/;
$lconfig = `grep '+= $a' -R $k_path`;
$config = "CONFIG_$1" if $lconfig =~ /CONFIG_(.*)[)] \+=/;

print $config, "\n";}

剛剛看到 LKML 上一篇 Script to build-in used modules, based on streamline_config.pl 在做類似的事情.
The aim of this is to provide a semi-automatic method to produce a custom kernel that has everything needed for your hardware built in, so you don't need an initrd.
非常有趣. 只能說 Linux kernel 的 Makefile 博大精深, 沒有這麼簡單阿. XD