2007年11月27日星期二

忘记


有的时候,以为自己已经忘记的东西,却又会出现在梦里。
有的时候,必须强迫自己改变,是为了保护自己和别人。
有的事,只能逃避,逃避听到的,逃避看到的,逃避想到的。
有的事就像是一场梦,已经醒了,还以为是在梦中。

有的时候,真的没有其他选择。


选择


要做出选择,真的很难。
有时候觉得自己的一生都还没有过冒险地去做过一件事,一直安安稳稳的,没有颜色。
也许是该迈出第一步了,去选择另一种生活,选择一个未知的生活。
也许我一直都在逃避,逃避真正的自我。
一直在追求,追求一个不真实的自我。


2007年11月14日星期三

用skyeye模拟运行uclinux


1,安装uclinux和其工具链arm-elf-tools,编译uclinux
安装uclinux和其工具链,编译uclinux的过程完全按照Getting Familiar with uClinux/ARM 2.6(http://opensrc.sec.samsung.com/document/Getting_Familiar_with_uClinuxARM2_6.html)(http://www.21ic.com/news/n6708c79.aspx 中文),版本等都是用的一样的。需要注意的是安装arm-elf-tools-20040427.sh时,会出现错误,用如下方法:
用vi 打开arm-elf-tools-20040427.sh
这是由于脚本中的tail没写对,必须加一个 -n 参数。
将第39行的代码:
tail +${SKIP} ${SCRIPT} | gunzip | tar xvf -
改成如下:
tail -n +${SKIP} ${SCRIPT} | gunzip | tar xvf -
再有就是注意,解压文件等时不要用root账户,只有在安装的时候su到root账户,否则在普通账户下编译会出现很多错误,因为使用root账户解压的是属于root的文件,普通账户没有权限。


2,安装skyeye最新版本skyeye_1_2_3_Rel.tar.bz2(www.skyeye.org)
按照安装说明,编译在binary下生成二进制文件skyeye,此文件便是可执行文件,把该文件的目录地址加入到环境变量PATH里,方法是用户在家目录下的.bashrc 中加入一行
export PATH=$PATH:DIR
或者直接添加链接
ln -s DIR/skyeye /usr/local/bin/skyeye
而/usr/local/bin路径必须存在于PATH环境变量里。
DIR为skyeye的目录路径。


3,模拟运行uclinux


创建skyeye的配置文件:
cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00300000
mem_bank: map=M, type=RW, addr=0x01300000, size=0x00100000, file=./romfs.img
mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000


注意因为在编译uclinux时,传递给内核的命令参数为"root=/dev/ram0 initrd=0x01300000,800K keepinitrd "
表示initrd的位置在0x01300000处,所以file=./romfs.img要放到0x01300000地址处,而且root=/dev/ram0,因为如果使用initrd,
默认的initrd就是/dev/ram0,所以意思就是initrd就挂载为最终的根文件系统。
注:initrd详细的解释见uclinux-dist/document/initrd.txt


这样就可以了:


[yu@yu-MagicLinux skyeye]$ ./run
big_endian is false.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8063a70
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm7100 mmu ops
Loaded RAM ./boot.rom
exec file "../uClinux-dist/linux-2.6.x/linux"'s format is elf32-little.
load section .init: addr = 0x01000000 size = 0x0000b000.
load section .text: addr = 0x0100b000 size = 0x000a17b8.
load section __ex_table: addr = 0x010ac7c0 size = 0x000006f8.
not load section __ksymtab: addr = 0x010aceb8 size = 0x00000000 .
not load section __ksymtab_gpl: addr = 0x010aceb8 size = 0x00000000 .
not load section __kcrctab: addr = 0x010aceb8 size = 0x00000000 .
not load section __kcrctab_gpl: addr = 0x010aceb8 size = 0x00000000 .
load section .data: addr = 0x010ae000 size = 0x00008ef8.
not load section .bss: addr = 0x010b6f00 size = 0x0000beb8 .
not load section .debug_abbrev: addr = 0x00000000 size = 0x0002dd8a .
not load section .debug_info: addr = 0x00000000 size = 0x00c904b6 .
not load section .debug_line: addr = 0x00000000 size = 0x0012a62f .
not load section .debug_pubnames: addr = 0x00000000 size = 0x0000a05a .
not load section .debug_aranges: addr = 0x00000000 size = 0x00001f08 .
start addr is set to 0x01000000 by exec file.
Linux version 2.6.5-hsc1 (yu@yu-MagicLinux) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #4 Fri Nov 9 12:17:37 CST 2007
CPU: Atmel-AT91M40xxx [14000040] revision 0 (ARMvundefined/unknown)
Machine: ATMEL EB01
On node 0 totalpages: 1024
DMA zone: 0 pages, LIFO batch:1
Normal zone: 1024 pages, LIFO batch:1
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=/dev/ram0 initrd=0x01300000,800K keepinitrd
PID hash table entries: 32 (order 5: 256 bytes)
Memory: 4MB = 4MB total
Memory: 2448KB available (645K code, 89K data, 44K init)
Calibrating delay loop... 15.87 BogoMIPS
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (ungzip failed); looks like an initrd
POSIX conformance testing by UNIFIX
Linux NoNET1.0 for Linux 2.6
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
RAMDISK: romfs filesystem found at block 0
RAMDISK: Loading 771 blocks [1 disk] into ram disk... done.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 44K
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram1 /var
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: cat /etc/motd
Welcome to
____ _ _
/ __| ||_|
_ _| | | | _ ____ _ _ _ _
| | | | | | || | _ \| | | |\ \/ /
| |_| | |__| || | | | | |_| |/ \
| ___\____|_||_|_| |_|\____|\_/\_/
| |
|_|


GDB/ARMulator support by <davidm@snapgear.com>
For further information check:
http://www.uclinux.org/


Execution Finished, Exiting


Sash command shell (version 1.1.1)
/>
Sash command shell (version 1.1.1)
/>





Technorati :

2007年11月9日星期五

NO CS


NO CS FOR THREE WEEKS, I SWEAR TO ...


2007年11月7日星期三

uclinux的几个资源


http://www.uclinux.org/pub/uClinux/dist/ 官方uclinux的最新源代码,还有最新的编译工具的下载地址。当前最新的是uClinux-dist-20070130.tar.gz,有接近300兆,解压了怎么也得一两个G。好在支持2.6.19 kernel。编译工具最新是arm-linux-tools-20051123.tar.gz有228M,源代码,太大了!


http://opensrc.sec.samsung.com The uClinux/ARM 2.6 project 有最新的内核补丁下载


http://opensrc.sec.samsung.com/document/Getting_Familiar_with_uClinuxARM2_6.html



最新的源代码是在是太大了,俺的硬盘太小,只能使用上篇文章内的各个组件的版本了。起码还是个2.6内核的,而且"Hyok S. Choi writes "GCC 2.95.3 with linux 2.6 patch and binutil 2.14 based ARM-ELF toolchain which is made based linux 2.6.5-hsc2 is available for kernel and userland applications compile. arm-elf-tools-20040427.sh is in the download section. It compiles the 2.4 kernel and the applications, as well.""俺的magiclinux的gcc好像就是GCC 2.95.3的。


2007年11月4日星期日

When I sit down


When I sit down in front of my computer in the morning, I should think about the world, the human beings, the nature, the purpose of the life, and so on, not something struggled in myself. I must freeze it for a time, and then running.




Technorati :

2007年11月3日星期六

bakefile使用出错


练习使用bakefile生成autoconf的makefile文件
编译http://www.bakefile.org/doc/ch02.html#id781875197996的helloworld例子时出错


症状:执行命令$ bakefilize --copy && aclocal && autoconf 时,提示
[yu@yu-MagicLinux hello]$ ls
autoconf_inc.m4 configure.ac configure.ac~ hello.bkl hello.bkl~ hello.c Makefile.in
[yu@yu-MagicLinux hello]$ bakefilize --copy && aclocal && autoconf
/usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/gpg-error.m4:7: warning: underquoted definition of AM_PATH_GPG_ERROR
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
/usr/share/aclocal/aalib.m4:12: warning: underquoted definition of AM_PATH_AALIB
configure.ac:5: error: possibly undefined macro: AC_BAKEFILE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:5: error: possibly undefined macro: m4_include
[yu@yu-MagicLinux hello]$ ls
autoconf_inc.m4 config.guess configure configure.ac~ hello.bkl~ INSTALL Makefile.in
autom4te.cache config.sub configure.ac hello.bkl hello.c install-sh


经过痛苦的网上搜索和调试,原因是(http://osdir.com/ml/sysutils.bakefile.devel/2005-08/msg00010.html):
This is the error which is causing all your problems, I think.


AC_BAKEFILE is a macro installed by bakefile in $PREFIX/share/aclocal as bakefile.m4; probably your installed bakefile using the prefix /usr/local and your aclocal (like mine ;)) does not look in /usr/local/share/aclocal. Copying the file from /usr/local/share/aclocal to /usr/share/aclocal will solve the problem. Another way is to install bakefile using the /usr prefix.


After doing that copy, rerun aclocal & autoconf and that error should have gone.


另外,使用AutoMake轻松生成Makefile 参阅http://www.ccw.com.cn/htm/app/linux/develop/01_7_25_7.asp




Technorati :

2007年11月2日星期五

linux下换显卡后无法进入XWindows问题的解决


操作系统为:magiclinux2.0
原来的显卡:板载sis650-740
新换显卡:NVDIA GeForce2 MX/MX 400


症状:无法进入XWindows
提示:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/yu-MagicLinux:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6


X Window System Version 6.9.0 (MagicLinux 2.0: 6.9.0-7mgc)
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: Linux 2.6.15.3 i686 [ELF]
Current Operating System: Linux yu-MagicLinux 2.6.15.3 #1 Fri Feb 10 01:51:55 CST 2006 i686
Build Date: 09 February 2006
Build Host: MagicLinux

Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
等等


使用命令xorgconfig重新设置了一遍,还是不行(可能是由于mouse设置错了,我的鼠标是usb接口的,对应的设备应该是
/dev/input/mice,开始是用的默认设置 /dev/mouse。)


只好上了http://www.nvidia.com/Download/index.aspx?lang=en-us下载了最新的驱动程序(NVIDIA-Linux-x86-96.43.01-pkg1.run),
安装,有时可能需要连到网上下载对应于你的内核的文件,如果没有会自动编译。最后会询问是否更新到xorg.conf,选择是即可


这样就可以了,进入xWindows之后,可以使用nvidia-xconfig设置分辨率等参数。




Technorati :

When Harry Met Sally


今天看了When Harry Met Sally,很久前就看过的一部影片。当时也感觉很不错,但是只记得大体的情节。
算是又重新温习了一遍。很喜欢 Meg Ryan的爱情题材的影片,特别是与TOM hanks合作的影片,像 sleepless
in seatle , you've got a mail。。。都是很经典的爱情片。
男主角如果是hanks的话,感觉效果会更好。
Meg Ryan很小的样子,很可爱。
Harry最后经典的台词:
"I love that you get cold when it's seventy one degrees out,
I love that it takes you an hour and a half to order a sandwich,
I love that you get a little crinkle above your nose when you're looking at me like I'm nuts,
I love that after I spend a day with you I can still smell your perfume on my clothes and
I love that you are the last person I want to talk to before I go to sleep at night.
And it's not because I'm lonely, and it's not because it's New Years Eve.
I came here tonight because when you realise you want to spend the rest of your life
with somebody, you want the rest of the life to start as soon as possible."
"我爱你在71度时还得了感冒;我爱你花掉一个半小时就为点一份三明治;
我爱你紧缩眉头看着我就像我是一个疯子;我爱与你消磨一天后,还能在我衣服上闻到你的香水味;
我爱你是我每天晚上入睡前最后一个跟我聊天的人。而这并不是因为我寂寞,也不是因为现在是除夕夜。
我今晚之所以过来,是因为当你意识到要与某人共度余生的时候,你希望那后半生尽快开始!"


有种想哭的感觉,可是没有哭出来。因为没有真正的静下心来看吧。


"有一种爱情很纯粹 陪在谁的身边 不求索取 给谁的爱就像是早晨起床后的一句问候那么简单 等对方习惯并沉溺 就误会这也许只是一段普通的感情 。"


有时候,心里总会有一些触动,却不知为何会触动




Technorati :

2007年11月1日星期四

2007年10月的最后一天


2007年10月的最后一天,标记一下,不能再放纵自己了,是该奋起了!run!


快乐地过每一天!


I can feel.I can see.enough.


那只斑鸠,那只栗色马?


丢失了吗?


who knows now?


If you show someone their future,they have no future。


If you take away the mystery, you take away hope.


明天该死的移动又要扣我的血汗钱了!



痛苦,没有什么东西可以救助,只能通过食物,来填补心里那个大大的伤口。吃的时候,不需要思考,不需要胡思乱想,注意力只集中在吃上,集中在味觉上,体验那种让胃充满的感觉。


也可以看电影,让自己沉浸在电影中虚构的情节之中,暂时忘却了痛苦,忘却了一切。睡觉的时候还能伴着电影的情节进入梦想,挤出另一些东西。


或许这是一种麻醉、放纵。


有些东西越思考越没有答案,因为本来就没有答案


每个人都有一个深渊,能否跨越?


看了 心灵捕手


匆匆看完了 心灵捕手 (http://www.douban.com/subject/1292656/),很久没有看到这样能对心灵有些触动的影片了。心灵、生活、友情、爱情,都是这一段时间经常思考和需要思考的东西。特别是sean对will说的一段话:

(爱情)


So if I asked you about art, you'd probably give me the skinny on ever art book ever written. Michelangelo, you know a lot about him, life's work, political aspirations, him and the pope, sexual orientations, the whole works, right? I bet you can't tell me what smells like in the Sistine Chapel. You never actually stood there and looked up at that beautiful ceiling.Seeing that. 尚恩:我若跟你谈美术,你只能引用美术专著空谈理论,例如米开朗基罗Michelangelo。你对他知之甚详吧?他毕生忠于艺术,满腔政治热诚,与教皇相交莫逆,性倾向,你一定对他很了解吧,但你连梵蒂冈的气味都没有闻过。你从来没有试过站在那儿,昂首眺望天花板上的名画吧。仔细的品味。
If I ask you about women, you probably give a syllabus of your personal favorites. You may have even been laid a few times. But you can't tell me what it feels like to wake up next to a woman and feel truly happy. 如果我想你谈及女人,你大可以向我如数家珍你可能get laid次数不太少。但你没法说出单你在一个你深爱的女人身边醒来时,那份内心的真正幸福感!


You are a tough kid. I ask you about war, you'd probably throw Shakespeare at me, right? "Once more into the breach, dear friends." But you've never been near one. You've never held your best friend's head in your lap and watch him gasp his last breath looking to you for help. 你年轻飘悍,如果我想和你谈及战争,你会向我引用莎士比亚,朗诵莎翁描述战争的名句对白"Once more into the breach, dear friends."。可是你从未亲临战阵,未试过把挚友的头拥入怀里,看着他喘着最后一口气,凝望着你,向你求助。


If I ask you about love, you'd probably quote me a sonnet, but you've never looked at a woman and been totally vulnerable, known someone that could level you with her eyes, feeling like God put an angel on Earth just for you, who could rescue you from the depths of hell. And you wouldn't know what it's like to be her angel, to have that love for her be there forever, through anything, through cancer. 我问你何谓爱情,你可能只会吟风弄月,说上几句14行诗,但你从未试过全情投入真心变得脆弱,四目交投时彼此了解对方的心,就好比上帝安排天使下凡只献给你一样,把你从地狱深渊里拯救出来。你也未试过对她百般关怀的感受,你也未试过对她情深款款矢志厮守,明知她患了绝症也在所不惜。


You wouldn't know about sleeping sitting
up in a hospital room for two months
holding her hand and not leaving because
the doctors could see in your eyes
that the term "visiting hours" didn't
apply to you. And you wouldn't know
about real loss, because that only
occurs when you lose something you
love more than yourself, and you've
never dared to love anything that much.
I look at you and I don't see an
intelligent confident man, I don't see
a peer, and I don't see my equal. I
see a boy.

还有:
(友情)
Ben Afflec对Matt Damon说的:
"Everytime I came by your house and pick you up,we go out, we have a few drinks and a few laughs and it's great. Know what the best part of my day is? The 10seconds from when I pull up to when I get to your door. I think may be I'll get up there, knock on the door and you won't be there. No"Goodbye", no "See you later", no nothing. You just go."

爱对方胜过爱自己

有很多话想写,却不知道从哪里开始,可能主要是因为自己不擅长将心里所想的说出来,有不能静下心来思考以及其他的原因吧。但是这里的(http: //www.douban.com/subject/1292656/)一些评论有一些说出了一些我想说的的,特别是thisyear,10号等的评论。

还喜欢这个(http://www.douban.com/subject/discussion/1080227/)。喜欢那样的简简单单。