<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/css" href="./clientscript/vbulletin_css/rsstyle.css"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>LinuxSir.Org - Linux 发行版 LFS 讨论区</title>
		<link>http://www.linuxsir.org/bbs</link>
		<description><![CDATA[Linux 进阶。设计自己的发行版，Linux 系统订做平台。     [本版精华] [LFS 中文用户]]]></description>
		<language>zh</language>
		<lastBuildDate>Fri, 10 Sep 2010 18:21:22 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.linuxsir.org/bbs/images/misc/rss.jpg</url>
			<title>LinuxSir.Org - Linux 发行版 LFS 讨论区</title>
			<link>http://www.linuxsir.org/bbs</link>
		</image>
		<item>
			<title>GLIBC2.11.1错误</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=372095&amp;goto=newpost</link>
			<pubDate>Thu, 09 Sep 2010 03:58:27 GMT</pubDate>
			<description><![CDATA[深度LINUX10。6编译LFS6.6第一遍
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)
/[^
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...
make[1]: *** No rule to make target `/mnt/lfs/sources/glibc-build/Versions.all', needed by `/mnt/lfs/sources/glibc-build/abi-versions.h'.  Stop.
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1'
make: *** [all] Error 2]]></description>
			<content:encoded><![CDATA[<div>深度LINUX10。6编译LFS6.6第一遍<br />
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)<br />
/[^<br />
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]<br />
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, &quot;&quot;, subd ...<br />
make[1]: *** No rule to make target `/mnt/lfs/sources/glibc-build/Versions.all', needed by `/mnt/lfs/sources/glibc-build/abi-versions.h'.  Stop.<br />
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1'<br />
make: *** [all] Error 2</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>3jteusg0</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=372095</guid>
		</item>
		<item>
			<title>启动脚本/etc/rcS打印的信息在显示器终端没有打印？</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=372066&amp;goto=newpost</link>
			<pubDate>Wed, 08 Sep 2010 02:54:10 GMT</pubDate>
			<description>各位大侠好：
我用busybox做了一个根文件系统，自己裁剪了内核。用grub引导。由于开始没有显示器，所以最开始就以串口做控制台。修改grub 

#boot=/dev/sda
default=0
timeout=2
hiddenmenu
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=1 serial console

title linux-dom (2.6.2)
	root (hd0,0)
	kernel /boot/bzImage ro root=/dev/hda1 console=tty0 console=ttyS0,115200n8 
和/etc/inittab文件
::respawn:/sbin/getty -L 115200 ttyS0 vt100
在系统启动以前正常，内核启动信息和我在/etc/rcS的打印信息都在串口上有打印，并且在串口上创建了控制台。但是最后我不接串口，接显示器，内核信息能在显示器上打印，而/etc/rcS却不能？当然此时显示器上没有控制台。因为在/etc/inittab中没有添加。我的问题是为什么接显示器/etc/rcS打印没有在显示器显示？</description>
			<content:encoded><![CDATA[<div>各位大侠好：<br />
我用busybox做了一个根文件系统，自己裁剪了内核。用grub引导。由于开始没有显示器，所以最开始就以串口做控制台。修改grub <br />
<br />
#boot=/dev/sda<br />
default=0<br />
timeout=2<br />
hiddenmenu<br />
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1<br />
terminal --timeout=1 serial console<br />
<br />
title linux-dom (2.6.2)<br />
	root (hd0,0)<br />
	kernel /boot/bzImage ro root=/dev/hda1 console=tty0 console=ttyS0,115200n8 <br />
和/etc/inittab文件<br />
::respawn:/sbin/getty -L 115200 ttyS0 vt100<br />
在系统启动以前正常，内核启动信息和我在/etc/rcS的打印信息都在串口上有打印，并且在串口上创建了控制台。但是最后我不接串口，接显示器，内核信息能在显示器上打印，而/etc/rcS却不能？当然此时显示器上没有控制台。因为在/etc/inittab中没有添加。我的问题是为什么接显示器/etc/rcS打印没有在显示器显示？</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>xs3c</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=372066</guid>
		</item>
		<item>
			<title>制作交叉工具链？</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=372065&amp;goto=newpost</link>
			<pubDate>Wed, 08 Sep 2010 02:41:04 GMT</pubDate>
			<description>最近打算制作交叉工具，看了youbest大侠写的CLFS原理分析，有两点想不通。
第一：在第二次编译了GCC后为什么不修改GCC的specs，来改变动态加载器？
第二：GCC怎么确定在连接的时使用的ld是，我们最新编译的binutis的ld呢？</description>
			<content:encoded><![CDATA[<div>最近打算制作交叉工具，看了youbest大侠写的CLFS原理分析，有两点想不通。<br />
第一：在第二次编译了GCC后为什么不修改GCC的specs，来改变动态加载器？<br />
第二：GCC怎么确定在连接的时使用的ld是，我们最新编译的binutis的ld呢？</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>xs3c</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=372065</guid>
		</item>
		<item>
			<title>glibc-2.11.1编译出错</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=372059&amp;goto=newpost</link>
			<pubDate>Tue, 07 Sep 2010 11:13:59 GMT</pubDate>
			<description><![CDATA[在ARCH中编译LFS6.6第一遍出错
In file included from /tools/include/linux/posix_types.h:4,
                 from /tools/include/linux/types.h:14,
                 from /tools/include/asm/sigcontext.h:5,
                 from ../sysdeps/unix/sysv/linux/bits/sigcontext.h:28,
                 from ../signal/signal.h:339,
                 from ../include/signal.h:5,
                 from sigjmp.c:21:
/tools/include/linux/stddef.h:4:28: error: linux/compiler.h: No such file or directory
make[2]: *** [/mnt/lfs/sources/glibc-build/setjmp/sigjmp.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/setjmp'
make[1]: *** [setjmp/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1'
make: *** [all] Error 2
[lfs@myhost glibc-build]$]]></description>
			<content:encoded><![CDATA[<div>在ARCH中编译LFS6.6第一遍出错<br />
In file included from /tools/include/linux/posix_types.h:4,<br />
                 from /tools/include/linux/types.h:14,<br />
                 from /tools/include/asm/sigcontext.h:5,<br />
                 from ../sysdeps/unix/sysv/linux/bits/sigcontext.h:28,<br />
                 from ../signal/signal.h:339,<br />
                 from ../include/signal.h:5,<br />
                 from sigjmp.c:21:<br />
/tools/include/linux/stddef.h:4:28: error: linux/compiler.h: No such file or directory<br />
make[2]: *** [/mnt/lfs/sources/glibc-build/setjmp/sigjmp.o] Error 1<br />
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/setjmp'<br />
make[1]: *** [setjmp/subdir_lib] Error 2<br />
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1'<br />
make: *** [all] Error 2<br />
[lfs@myhost glibc-build]$</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>3jteusg0</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=372059</guid>
		</item>
		<item>
			<title>新人求助：LFS工具链完成，继续到binutils时出现的问题</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=372045&amp;goto=newpost</link>
			<pubDate>Mon, 06 Sep 2010 20:12:25 GMT</pubDate>
			<description><![CDATA[在进行LFS6.3的时候，第六章
编译 binutils2.17

tar xvf $LFS/binutils-2.17.tar.bz2
mkdir binutils-build
cd binutils-build
../binutils-2.17/configure --prefix=/usr --enable-shared
make tooldir=/usr

在make tooldir=/usr  出现错误，显示如下：
checking whether the C compiler works... configure: error:cannot run C compiled programs.
If you meant to cross compile, use '--host'
See 'config.log' for more details.
make: ***[configure-libiberty] Error 1

之前都通过了的。不过在之前调整工具链的时候出现
grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
 没有输出
后来重新运行
5.12. Binutils-2.16.1 就通过了。

请教下各位如何处理？折腾LFS很多次了，这次再不成功就没有信心了。麻烦各位]]></description>
			<content:encoded><![CDATA[<div>在进行LFS6.3的时候，第六章<br />
编译 binutils2.17<br />
<br />
tar xvf $LFS/binutils-2.17.tar.bz2<br />
mkdir binutils-build<br />
cd binutils-build<br />
../binutils-2.17/configure --prefix=/usr --enable-shared<br />
make tooldir=/usr<br />
<br />
在make tooldir=/usr  出现错误，显示如下：<br />
checking whether the C compiler works... configure: error:cannot run C compiled programs.<br />
If you meant to cross compile, use '--host'<br />
See 'config.log' for more details.<br />
make: ***[configure-libiberty] Error 1<br />
<br />
之前都通过了的。不过在之前调整工具链的时候出现<br />
grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'<br />
 没有输出<br />
后来重新运行<br />
5.12. Binutils-2.16.1 就通过了。<br />
<br />
请教下各位如何处理？折腾LFS很多次了，这次再不成功就没有信心了。麻烦各位</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>xyz5816231</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=372045</guid>
		</item>
		<item>
			<title>xorg 搞定 赶紧show一下</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=372029&amp;goto=newpost</link>
			<pubDate>Mon, 06 Sep 2010 06:39:35 GMT</pubDate>
			<description>看图  粗糙了一点</description>
			<content:encoded><![CDATA[<div>看图  粗糙了一点</div>


	<br />
	<div style="padding:4px">
	
	

	
	
	
		<fieldset class="fieldset">
			<legend>上传的图像</legend>
			<table cellpadding="0" cellspacing="1" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.linuxsir.org/bbs/images/attach/png.gif" alt="文件类型: png" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
 <!-- PHPForce - Joey修改附件隐藏 -->
 	
 	<td><a href="http://www.linuxsir.org/bbs/attachment.php?attachmentid=56021&amp;d=1283755134" target="_blank">X.PNG</a> (35.0 KB, 无 次查看)

</td>
 	
 <!-- /PHPForce - Joey修改附件隐藏 -->


 </tr>
			</table>
			</fieldset>
	
	
	
	
	</div>
]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>xinglp</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=372029</guid>
		</item>
		<item>
			<title>为什么我装完gentoo 感觉打开gnome速度很慢啊</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371991&amp;goto=newpost</link>
			<pubDate>Sat, 04 Sep 2010 01:25:41 GMT</pubDate>
			<description>为什么我装完gentoo 感觉打开gnome速度很慢啊

以前装centos 的时候装完后打开gnome里的firefox

也是慢的 不过好像比gentoo  要快一点

我现在就是想问一下 

是我电脑的问题吗 

可是我用win xp的感觉速度还可以的

我想装个LFS不知道速度会快些不

罗嗦了这么多 望大家说说建议

谢谢！！</description>
			<content:encoded><![CDATA[<div>为什么我装完gentoo 感觉打开gnome速度很慢啊<br />
<br />
以前装centos 的时候装完后打开gnome里的firefox<br />
<br />
也是慢的 不过好像比gentoo  要快一点<br />
<br />
我现在就是想问一下 <br />
<br />
是我电脑的问题吗 <br />
<br />
可是我用win xp的感觉速度还可以的<br />
<br />
我想装个LFS不知道速度会快些不<br />
<br />
罗嗦了这么多 望大家说说建议<br />
<br />
谢谢！！</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>qkvb</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371991</guid>
		</item>
		<item>
			<title>安装openshh后，如何配置sshd_config使得ssh客户端可以以keyboard interactive方式登录呢？</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371960&amp;goto=newpost</link>
			<pubDate>Thu, 02 Sep 2010 13:52:44 GMT</pubDate>
			<description>安装openshh后，如何配置sshd_config使得ssh客户端可以以keyboard interactive方式登录呢？

目前已经在sshd_config中打开了
ChallengeResponseAuthentication yes

但是始终还是无法以keyboard interactive认证方式登录

目前只能让客户端以password authentication认证方式登录

一直没有找到问题所在，还请大虾来指点一二，先行谢过了~~</description>
			<content:encoded><![CDATA[<div>安装openshh后，如何配置sshd_config使得ssh客户端可以以keyboard interactive方式登录呢？<br />
<br />
目前已经在sshd_config中打开了<br />
ChallengeResponseAuthentication yes<br />
<br />
但是始终还是无法以keyboard interactive认证方式登录<br />
<br />
目前只能让客户端以password authentication认证方式登录<br />
<br />
一直没有找到问题所在，还请大虾来指点一二，先行谢过了~~</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>lofeng</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371960</guid>
		</item>
		<item>
			<title>LFS6.6_x86_64制作 完 成</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371955&amp;goto=newpost</link>
			<pubDate>Thu, 02 Sep 2010 10:11:29 GMT</pubDate>
			<description><![CDATA[宿主 用 的 Ubuntu1004.1_x86-64
过程 还 算 顺利, 
只是 在 编译 內核时出现 问 题,
第一 遍编译 ,用 时69分 种,把 lfs 所在 分 区7 G全部用 完 ,系通竟然 没 崩溃,config可能 全 选 了 
把 内 核源码删掉 ,编译 了 第二遍使用 宿主 的 config,进 行 make localmodconfig
这 次 很 快 15分 种完 成 ,感觉应该行 了 ,高 高 兴兴的 关机重启,结国果出 现 
Please append a correct "root=" boot option
kernel panic-not syncing: VFS:Unable to mount root fs on unknow-block(0,0)
在 网上 搜 索了 几个 小 时,终于 弄明白是 硬盘驱动  编译 成 模 块所 致,第三 次 编译 内 核成 功.]]></description>
			<content:encoded><![CDATA[<div>宿主 用 的 Ubuntu1004.1_x86-64<br />
过程 还 算 顺利, <br />
只是 在 编译 內核时出现 问 题,<br />
第一 遍编译 ,用 时69分 种,把 lfs 所在 分 区7 G全部用 完 ,系通竟然 没 崩溃,config可能 全 选 了 <br />
把 内 核源码删掉 ,编译 了 第二遍使用 宿主 的 config,进 行 make localmodconfig<br />
这 次 很 快 15分 种完 成 ,感觉应该行 了 ,高 高 兴兴的 关机重启,结国果出 现 <br />
Please append a correct &quot;root=&quot; boot option<br />
kernel panic-not syncing: VFS:Unable to mount root fs on unknow-block(0,0)<br />
在 网上 搜 索了 几个 小 时,终于 弄明白是 硬盘驱动  编译 成 模 块所 致,第三 次 编译 内 核成 功.</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>raine</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371955</guid>
		</item>
		<item>
			<title>编译Glibc出现错误(2.11.1)</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371926&amp;goto=newpost</link>
			<pubDate>Tue, 31 Aug 2010 13:04:52 GMT</pubDate>
			<description><![CDATA[我在编译Glibc 2.11.1的时候出现错误，用的LFS Book6.6
错误如下：

make -r PARALLELMFLAGS="" CVSOPTS="" -C /mnt/lfs/sources/glibc-2.11.1 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.11.1'
mawk -f scripts/gen-sorted.awk \
	       -v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow gshadow po argp crypt nss localedata timezone rt conform debug libidn dlfcn elf' \
	       -v srcpfx='' \
	       nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend > /mnt/lfs/sources/build/glibc-build/sysd-sorted-tmp
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)
/[^
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...
make[1]: *** No rule to make target `/mnt/lfs/sources/build/glibc-build/Versions.all', needed by `/mnt/lfs/sources/build/glibc-build/abi-versions.h'.  Stop.
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1'
make: *** [all] Error 2

不知道是怎么回事，求教，万分感谢]]></description>
			<content:encoded><![CDATA[<div>我在编译Glibc 2.11.1的时候出现错误，用的LFS Book6.6<br />
错误如下：<br />
<br />
make -r PARALLELMFLAGS=&quot;&quot; CVSOPTS=&quot;&quot; -C /mnt/lfs/sources/glibc-2.11.1 objdir=`pwd` all<br />
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.11.1'<br />
mawk -f scripts/gen-sorted.awk \<br />
	       -v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow gshadow po argp crypt nss localedata timezone rt conform debug libidn dlfcn elf' \<br />
	       -v srcpfx='' \<br />
	       nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend &gt; /mnt/lfs/sources/build/glibc-build/sysd-sorted-tmp<br />
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)<br />
/[^<br />
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]<br />
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, &quot;&quot;, subd ...<br />
make[1]: *** No rule to make target `/mnt/lfs/sources/build/glibc-build/Versions.all', needed by `/mnt/lfs/sources/build/glibc-build/abi-versions.h'.  Stop.<br />
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1'<br />
make: *** [all] Error 2<br />
<br />
不知道是怎么回事，求教，万分感谢</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>doom119</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371926</guid>
		</item>
		<item>
			<title>工具链制作的过程中断后如何恢复？</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371925&amp;goto=newpost</link>
			<pubDate>Tue, 31 Aug 2010 12:48:54 GMT</pubDate>
			<description>前两天做完了N32工具链的第二次GCC，并测试通过了（我保证我的编译安装没有问题，而且GCC，G++等程序都是正常工作的，我使用它们测试过了），随后我关了当时的ssh窗口，可是现在重新使用ssh连上时，使用默认的环境变量后，发现以前编译的GCC工具链都无法使用了，出错的提示是:

Illegal instruction

非法指令。

我想可能是环境变量的设置出错，我重新指定了库文件的路径为/tools/lib也没有用，请教一下大家是什么原因，我要如何才能恢复。

宿主系统是N32系统，平台是龙芯2F的NAS机器，宿主系统glibc为2.11，工具链是eglibc-2.12。</description>
			<content:encoded><![CDATA[<div>前两天做完了N32工具链的第二次GCC，并测试通过了（我保证我的编译安装没有问题，而且GCC，G++等程序都是正常工作的，我使用它们测试过了），随后我关了当时的ssh窗口，可是现在重新使用ssh连上时，使用默认的环境变量后，发现以前编译的GCC工具链都无法使用了，出错的提示是:<br />
<br />
Illegal instruction<br />
<br />
非法指令。<br />
<br />
我想可能是环境变量的设置出错，我重新指定了库文件的路径为/tools/lib也没有用，请教一下大家是什么原因，我要如何才能恢复。<br />
<br />
宿主系统是N32系统，平台是龙芯2F的NAS机器，宿主系统glibc为2.11，工具链是eglibc-2.12。</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>echo</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371925</guid>
		</item>
		<item>
			<title>成功搞定AP2496的ALSA驱动</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371887&amp;goto=newpost</link>
			<pubDate>Sun, 29 Aug 2010 15:54:24 GMT</pubDate>
			<description><![CDATA[一时发烧新入AP2496,装机进入LINUX，模块加载一切正常，就是播放时用ALSA输出死活不出声，只得暂时用OSS替代。今晚仔细翻阅ALSA的WIKI，找到解决之道。
问题如下：
mplayer -ao alsa:device=hw=0.0 *.mp3

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO_ALSA] Format s16le is not supported by hardware, trying default.
[AO_ALSA] Unable to set format: Invalid argument
Failed to initialize audio driver 'alsa:device=default'
Could not open/initialize audio device -> no sound.

更改如下：
mplayer -ao alsa:device=plughw=0.0 *.ape
MPlayer SVN-r30166-4.3.0 (C) 2000-2009 MPlayer Team
136 audio & 285 video codecs
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick

Playing 叶振棠 - 万里长城永不倒.ape.
libavformat file format detected.
[ape @ 0x90fe370]Estimating duration from bitrate, this may be inaccurate
[lavf] Audio stream found, -aid 0
Clip info:
 Artist: 叶振棠
 Title: 万里长城永不倒
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
Selected audio codec: [ffape] afm: ffmpeg (FFmpeg Monkey's Audio decoder)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   3.3 (03.3) of 175.8 (02:55.8)  8.7% $<50>
Exiting... (Quit)]]></description>
			<content:encoded><![CDATA[<div>一时发烧新入AP2496,装机进入LINUX，模块加载一切正常，就是播放时用ALSA输出死活不出声，只得暂时用OSS替代。今晚仔细翻阅ALSA的WIKI，找到解决之道。<br />
问题如下：<br />
mplayer -ao alsa:device=hw=0.0 *.mp3<br />
<br />
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3<br />
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000-&gt;176400)<br />
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)<br />
==========================================================================<br />
[AO_ALSA] Format s16le is not supported by hardware, trying default.<br />
[AO_ALSA] Unable to set format: Invalid argument<br />
Failed to initialize audio driver 'alsa:device=default'<br />
Could not open/initialize audio device -&gt; no sound.<br />
<br />
更改如下：<br />
mplayer -ao alsa:device=plughw=0.0 *.ape<br />
MPlayer SVN-r30166-4.3.0 (C) 2000-2009 MPlayer Team<br />
136 audio &amp; 285 video codecs<br />
Can't open joystick device /dev/input/js0: No such file or directory<br />
Can't init input joystick<br />
<br />
Playing 叶振棠 - 万里长城永不倒.ape.<br />
libavformat file format detected.<br />
[ape @ 0x90fe370]Estimating duration from bitrate, this may be inaccurate<br />
[lavf] Audio stream found, -aid 0<br />
Clip info:<br />
 Artist: 叶振棠<br />
 Title: 万里长城永不倒<br />
==========================================================================<br />
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders<br />
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0-&gt;176400)<br />
Selected audio codec: [ffape] afm: ffmpeg (FFmpeg Monkey's Audio decoder)<br />
==========================================================================<br />
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)<br />
Video: no video<br />
Starting playback...<br />
A:   3.3 (03.3) of 175.8 (02:55.8)  8.7% $&lt;50&gt;<br />
Exiting... (Quit)</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>pinkme005</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371887</guid>
		</item>
		<item>
			<title>非 FHS 兼容系统 与 app bundle</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371886&amp;goto=newpost</link>
			<pubDate>Sun, 29 Aug 2010 14:43:08 GMT</pubDate>
			<description>*非 FHS 兼容系统*

LFS/CLFS 目标之一是构建 FHS 兼容基本系统。
FHS 是 *nix-like 系统标准，满足标准可达到最大兼容性，用着舒服。
http://www.pathname.com/fhs/
http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

不过 FHS 也带来一些问题，无法把两套系统 无缝、舒服得 结合在一起。
如 x86_64 主机上 i686-pc-linux-gnu x86_64-pc-linux-gnu 两套系统：
要么构建 multilib 系统，有讨厌的 /lib32 或 /lib64，
要么构建两套独立系统，使用 chroot 方式，无法方便同时访问两套系统。

如果抛开 FHS，其实解法很简单：
用类似 LFS/CLFS-1.x.x 临时系统方式构建整个系统，安装系统到非 FHS 兼容目录，使用非标准动态连接器，如 /tools/lib/ld-xxx.so。

其它可供参考资源：
Gentoo prefix： 使用宿主系统 动态连接器 /lib/ld-xxx.so，如其名，目录结构为 FHS 基础上加上前缀，与宿主系统有效隔离。
android x86： 系统目录为 /system/，/ 下建立 FHS 兼容目录、软链接。
syllable OS： 系统目录为 /system/，安装软件包时要建立一大堆软链接。

具体点，假设我们系统安装到 /myos/ 下，我们需要解决不少麻烦问题，好在只需要解决一次。
0、/sbin/init 
可用 initrd 解决，否则需内核启动参数 init=/myos/sbin/init。
1、目录结构 
FHS 基础上加前缀方式，易实现。
可简单用一 sed 命令行给所有软件包源码做路径替换，加上路径前缀 /myos/ 或 使用相对路径。
为了运行第三方软件，需要建立 FHS 兼容目录 或 目录软链接。
2、动态连接器
加前缀，使用 /myos/lib/ld-xxx.so 或 使用相对路径。
可参考 CLFS-1.x.x 对 gcc binutils 做修正。
为了运行第三方软件，需要建立 FHS 兼容软链接 /lib/ld-xxx.so 指向 /myos/lib/ld-xxx.so。
3、可选
再进一步，上面系统能满足重定位会更方便。
/myos/ 下系统构建好后，把 /myos/ 修改成 /newpath/ 系统仍能正常运行。
显然为达到此要求，系统必须使用相对路径，软件包也许需要额外修补使其满足重定位要求。

如此，可在 x86_64 主机上同一个 / 下分别构建两套系统：
i686-pc-linux-gnu 系统 /myos_i686/，
x86_64-pc-linux-gnu 系统  /myos_x86_64/。
使用开启 IA32 兼容模式 x86_64 内核，可无缝运行 /myos_i686/ /myos_x86_64/ 系统。

同时，上面描述系统 和 发行版 也可以无缝结合到一起，只要内核好用。


*app bundle

*正常 *nix-like 系统中不常见 app bundle 方式：一个软件包，一个目录 或 文件。
http://en.wikipedia.org/wiki/Application_Bundle
http://en.wikipedia.org/wiki/Application_Directory

*nix-like 系统一般只有一个 bundle，即系统本身，所有软件包文件在 FHS 指引下放在一起。
各种包管理器要解决的主要问题之一，是记录每个软件包所提供文件。

app bundle 优势是方便，缺点是体积。
常常要打包进去很多动态库文件，如 firefox skype googleearth 预编译包。

app bundle 可作为基本系统补充，如果系统中软件包以 app bundle 形式存在基本系统除外，升级系统工作量可明显降低，主要升级基本系统即可。

linux 环境下 app bundle 形式好多种，暂时未见胜出者。
其中 http://portablelinuxapps.org/ 提供方法比较令人费解：
下载单文件，设置执行权限，运行即可，运行时需要 fuse，
此文件是 iso9660 文件系统映像，同时也是可执行文件。
另外，http://people.gnome.org/~alexl/glick/ 实现方式非常 bt。

个人倾向原始的一软件包一目录方式。


*杂项*
http://en.wikipedia.org/wiki/Fat_binary
http://icculus.org/fatelf/
两种架构可执行文件、库文件可合并到一起。</description>
			<content:encoded><![CDATA[<div><b>非 FHS 兼容系统</b><br />
<br />
LFS/CLFS 目标之一是构建 FHS 兼容基本系统。<br />
FHS 是 *nix-like 系统标准，满足标准可达到最大兼容性，用着舒服。<br />
<a href="http://www.pathname.com/fhs/" target="_blank">http://www.pathname.com/fhs/</a><br />
<a href="http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard" target="_blank">http://en.wikipedia.org/wiki/Filesys...archy_Standard</a><br />
<br />
不过 FHS 也带来一些问题，无法把两套系统 无缝、舒服得 结合在一起。<br />
如 x86_64 主机上 i686-pc-linux-gnu x86_64-pc-linux-gnu 两套系统：<br />
要么构建 multilib 系统，有讨厌的 /lib32 或 /lib64，<br />
要么构建两套独立系统，使用 chroot 方式，无法方便同时访问两套系统。<br />
<br />
如果抛开 FHS，其实解法很简单：<br />
用类似 LFS/CLFS-1.x.x 临时系统方式构建整个系统，安装系统到非 FHS 兼容目录，使用非标准动态连接器，如 /tools/lib/ld-xxx.so。<br />
<br />
其它可供参考资源：<br />
Gentoo prefix： 使用宿主系统 动态连接器 /lib/ld-xxx.so，如其名，目录结构为 FHS 基础上加上前缀，与宿主系统有效隔离。<br />
android x86： 系统目录为 /system/，/ 下建立 FHS 兼容目录、软链接。<br />
syllable OS： 系统目录为 /system/，安装软件包时要建立一大堆软链接。<br />
<br />
具体点，假设我们系统安装到 /myos/ 下，我们需要解决不少麻烦问题，好在只需要解决一次。<br />
0、/sbin/init <br />
可用 initrd 解决，否则需内核启动参数 init=/myos/sbin/init。<br />
1、目录结构 <br />
FHS 基础上加前缀方式，易实现。<br />
可简单用一 sed 命令行给所有软件包源码做路径替换，加上路径前缀 /myos/ 或 使用相对路径。<br />
为了运行第三方软件，需要建立 FHS 兼容目录 或 目录软链接。<br />
2、动态连接器<br />
加前缀，使用 /myos/lib/ld-xxx.so 或 使用相对路径。<br />
可参考 CLFS-1.x.x 对 gcc binutils 做修正。<br />
为了运行第三方软件，需要建立 FHS 兼容软链接 /lib/ld-xxx.so 指向 /myos/lib/ld-xxx.so。<br />
3、可选<br />
再进一步，上面系统能满足重定位会更方便。<br />
/myos/ 下系统构建好后，把 /myos/ 修改成 /newpath/ 系统仍能正常运行。<br />
显然为达到此要求，系统必须使用相对路径，软件包也许需要额外修补使其满足重定位要求。<br />
<br />
如此，可在 x86_64 主机上同一个 / 下分别构建两套系统：<br />
i686-pc-linux-gnu 系统 /myos_i686/，<br />
x86_64-pc-linux-gnu 系统  /myos_x86_64/。<br />
使用开启 IA32 兼容模式 x86_64 内核，可无缝运行 /myos_i686/ /myos_x86_64/ 系统。<br />
<br />
同时，上面描述系统 和 发行版 也可以无缝结合到一起，只要内核好用。<br />
<br />
<br />
<b>app bundle<br />
<br />
</b>正常 *nix-like 系统中不常见 app bundle 方式：一个软件包，一个目录 或 文件。<br />
<a href="http://en.wikipedia.org/wiki/Application_Bundle" target="_blank">http://en.wikipedia.org/wiki/Application_Bundle</a><br />
<a href="http://en.wikipedia.org/wiki/Application_Directory" target="_blank">http://en.wikipedia.org/wiki/Application_Directory</a><br />
<br />
*nix-like 系统一般只有一个 bundle，即系统本身，所有软件包文件在 FHS 指引下放在一起。<br />
各种包管理器要解决的主要问题之一，是记录每个软件包所提供文件。<br />
<br />
app bundle 优势是方便，缺点是体积。<br />
常常要打包进去很多动态库文件，如 firefox skype googleearth 预编译包。<br />
<br />
app bundle 可作为基本系统补充，如果系统中软件包以 app bundle 形式存在基本系统除外，升级系统工作量可明显降低，主要升级基本系统即可。<br />
<br />
linux 环境下 app bundle 形式好多种，暂时未见胜出者。<br />
其中 <a href="http://portablelinuxapps.org/" target="_blank">http://portablelinuxapps.org/</a> 提供方法比较令人费解：<br />
下载单文件，设置执行权限，运行即可，运行时需要 fuse，<br />
此文件是 iso9660 文件系统映像，同时也是可执行文件。<br />
另外，<a href="http://people.gnome.org/~alexl/glick/" target="_blank">http://people.gnome.org/~alexl/glick/</a> 实现方式非常 bt。<br />
<br />
个人倾向原始的一软件包一目录方式。<br />
<br />
<br />
<b>杂项</b><br />
<a href="http://en.wikipedia.org/wiki/Fat_binary" target="_blank">http://en.wikipedia.org/wiki/Fat_binary</a><br />
<a href="http://icculus.org/fatelf/" target="_blank">http://icculus.org/fatelf/</a><br />
两种架构可执行文件、库文件可合并到一起。</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>聚焦深空</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371886</guid>
		</item>
		<item>
			<title>安装zhcon 需要那些库</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371858&amp;goto=newpost</link>
			<pubDate>Fri, 27 Aug 2010 17:01:31 GMT</pubDate>
			<description>zhcon 依赖关系是什么情况?

就想在console下面听歌上网写程序, 然后就无欲无求了, 不想整复杂了

=============================================

顺便问一下: 关于udev又什么资料吗? 就知道是消息驱动 具体什么情况,有资料吗?

网卡不也是外设, 咋就不需要设置规则, 只要配置下 ip gateway dns 就好了,为啥?</description>
			<content:encoded><![CDATA[<div>zhcon 依赖关系是什么情况?<br />
<br />
就想在console下面听歌上网写程序, 然后就无欲无求了, 不想整复杂了<br />
<br />
=============================================<br />
<br />
顺便问一下: 关于udev又什么资料吗? 就知道是消息驱动 具体什么情况,有资料吗?<br />
<br />
网卡不也是外设, 咋就不需要设置规则, 只要配置下 ip gateway dns 就好了,为啥?</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>gygl09</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371858</guid>
		</item>
		<item>
			<title>console怎么屏蔽系统消息</title>
			<link>http://www.linuxsir.org/bbs/showthread.php?t=371847&amp;goto=newpost</link>
			<pubDate>Fri, 27 Aug 2010 10:18:29 GMT</pubDate>
			<description>console怎么屏蔽系统消息

譬如你正在用vim写东西的时候, 你随便做什么动作(譬如,拔一下网线或者晃动鼠标) 然后它就会产生一些系统消息, 并且会在屏幕上打印出来(譬如会打印出网卡怎么怎么样了....或者 鼠标怎么怎么活动了)

怎么屏蔽这类消息?</description>
			<content:encoded><![CDATA[<div>console怎么屏蔽系统消息<br />
<br />
譬如你正在用vim写东西的时候, 你随便做什么动作(譬如,拔一下网线或者晃动鼠标) 然后它就会产生一些系统消息, 并且会在屏幕上打印出来(譬如会打印出网卡怎么怎么样了....或者 鼠标怎么怎么活动了)<br />
<br />
怎么屏蔽这类消息?</div>

]]></content:encoded>
			<category domain="http://www.linuxsir.org/bbs/forumdisplay.php?f=58">Linux 发行版 LFS 讨论区</category>
			<dc:creator>gygl09</dc:creator>
			<guid isPermaLink="true">http://www.linuxsir.org/bbs/showthread.php?t=371847</guid>
		</item>
	</channel>
</rss>
