LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: tfkdmwmqtr

为爱本编译系统 ( CLFS && CBLFS ^ x86_64-Multilib ^ )

[复制链接]
 楼主| 发表于 2007-9-29 15:04:57 | 显示全部楼层
又重编译过内核,还是不行!
我不会把它们全选上的,那样不符合 LFS 的精神。
从LiveCD光盘启动看了一下:

# lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
04:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)



# udevtest /block/hdb
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

parse_file: reading '/etc/udev/rules.d/05-udev-early.rules' as rules file
parse_file: reading '/etc/udev/rules.d/25-lfs.rules' as rules file
parse_file: reading '/etc/udev/rules.d/26-modprobe.rules' as rules file
parse_file: reading '/etc/udev/rules.d/27-firmware.rules' as rules file
parse_file: reading '/etc/udev/rules.d/30-video.rules' as rules file
parse_file: reading '/etc/udev/rules.d/60-cdrom_id.rules' as rules file
parse_file: reading '/etc/udev/rules.d/60-pcmcia.rules' as rules file
parse_file: reading '/etc/udev/rules.d/60-persistent-input.rules' as rules file
parse_file: reading '/etc/udev/rules.d/60-persistent-storage.rules' as rules file
parse_file: reading '/etc/udev/rules.d/70-persistent-cd.rules' as rules file
parse_file: reading '/etc/udev/rules.d/70-persistent-net.rules' as rules file
parse_file: reading '/etc/udev/rules.d/75-cd-aliases-generator.rules' as rules file
parse_file: reading '/etc/udev/rules.d/75-persistent-net-generator.rules' as rules file
parse_file: reading '/etc/udev/rules.d/76-network.rules' as rules file
parse_file: reading '/etc/udev/rules.d/81-cdrom.rules' as rules file
parse_file: reading '/etc/udev/rules.d/95-udev-late.rules' as rules file
parse_file: reading '/etc/udev/rules.d/99-fuse.rules' as rules file
main: looking at device '/block/hdb' from subsystem 'block'
run_program: 'cdrom_id --export /dev/.tmp-3-64'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_CD_R=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_CD_RW=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_DVD=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_DVD_R=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_DVD_RAM=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_MRW=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_MRW_W=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_RAM=1'
run_program: '/lib/udev/cdrom_id' returned with status 0
match_rule: set ENV 'DEVTYPE=disk'
run_program: 'ata_id --export /dev/.tmp-3-64'
run_program: '/lib/udev/ata_id' (stdout) 'ID_TYPE=cd'
run_program: '/lib/udev/ata_id' (stdout) 'ID_MODEL=MATSHITADVD-RAM_UJ-850S'
run_program: '/lib/udev/ata_id' (stdout) 'ID_SERIAL=HB55_026423'
run_program: '/lib/udev/ata_id' (stdout) 'ID_REVISION=1.20'
run_program: '/lib/udev/ata_id' (stdout) 'ID_BUS=ata'
run_program: '/lib/udev/ata_id' returned with status 0
udev_rules_get_name: add symlink 'disk/by-id/ata-MATSHITADVD-RAM_UJ-850S_HB55_026423'
run_program: 'path_id /block/hdb'
run_program: '/lib/udev/path_id' (stdout) 'ID_PATH=pci-0000:00:1f.1-ide-0:1'
run_program: '/lib/udev/path_id' returned with status 0
udev_rules_get_name: add symlink 'disk/by-path/pci-0000:00:1f.1-ide-0:1'
match_rule: set ENV 'GENERATED=1'
udev_rules_get_name: add symlink 'cdrom'
match_rule: set ENV 'GENERATED=1'
udev_rules_get_name: add symlink 'cdrw'
match_rule: set ENV 'GENERATED=1'
udev_rules_get_name: add symlink 'dvd'
match_rule: set ENV 'GENERATED=1'
udev_rules_get_name: add symlink 'dvdrw'
udev_rules_get_name: no node name set, will use kernel name 'hdb'
udev_device_event: device '/block/hdb' already in database, cleanup
udev_node_add: creating device node '/dev/hdb', major=3, minor=64, mode=0660, uid=0, gid=15
udev_node_update_symlinks: update symlink 'disk/by-id/ata-MATSHITADVD-RAM_UJ-850S_HB55_026423' of '/block/hdb'
udev_db_get_devices_by_name: found index directory '/dev/.udev/names/disk\x2fby-id\x2fata-MATSHITADVD-RAM_UJ-850S_HB55_026423'
update_link: found 1 devices with name 'disk/by-id/ata-MATSHITADVD-RAM_UJ-850S_HB55_026423'
update_link: found '/block/hdb' for 'disk/by-id/ata-MATSHITADVD-RAM_UJ-850S_HB55_026423'
update_link: compare (our own) priority of '/block/hdb' 0 >= 0
update_link: 'disk/by-id/ata-MATSHITADVD-RAM_UJ-850S_HB55_026423' with target 'hdb' has the highest priority 0, create it
udev_node_update_symlinks: update symlink 'disk/by-path/pci-0000:00:1f.1-ide-0:1' of '/block/hdb'
udev_db_get_devices_by_name: found index directory '/dev/.udev/names/disk\x2fby-path\x2fpci-0000:00:1f.1-ide-0:1'
update_link: found 1 devices with name 'disk/by-path/pci-0000:00:1f.1-ide-0:1'
update_link: found '/block/hdb' for 'disk/by-path/pci-0000:00:1f.1-ide-0:1'
update_link: compare (our own) priority of '/block/hdb' 0 >= 0
update_link: 'disk/by-path/pci-0000:00:1f.1-ide-0:1' with target 'hdb' has the highest priority 0, create it
udev_node_update_symlinks: update symlink 'cdrom' of '/block/hdb'
udev_db_get_devices_by_name: found index directory '/dev/.udev/names/cdrom'
update_link: found 1 devices with name 'cdrom'
update_link: found '/block/hdb' for 'cdrom'
update_link: compare (our own) priority of '/block/hdb' 0 >= 0
update_link: 'cdrom' with target 'hdb' has the highest priority 0, create it
udev_node_update_symlinks: update symlink 'cdrw' of '/block/hdb'
udev_db_get_devices_by_name: found index directory '/dev/.udev/names/cdrw'
update_link: found 1 devices with name 'cdrw'
update_link: found '/block/hdb' for 'cdrw'
update_link: compare (our own) priority of '/block/hdb' 0 >= 0
update_link: 'cdrw' with target 'hdb' has the highest priority 0, create it
udev_node_update_symlinks: update symlink 'dvd' of '/block/hdb'
udev_db_get_devices_by_name: found index directory '/dev/.udev/names/dvd'
update_link: found 1 devices with name 'dvd'
update_link: found '/block/hdb' for 'dvd'
update_link: compare (our own) priority of '/block/hdb' 0 >= 0
update_link: 'dvd' with target 'hdb' has the highest priority 0, create it
udev_node_update_symlinks: update symlink 'dvdrw' of '/block/hdb'
udev_db_get_devices_by_name: found index directory '/dev/.udev/names/dvdrw'
update_link: found 1 devices with name 'dvdrw'
update_link: found '/block/hdb' for 'dvdrw'
update_link: compare (our own) priority of '/block/hdb' 0 >= 0
update_link: 'dvdrw' with target 'hdb' has the highest priority 0, create it
main: run: 'socket:/org/kernel/udev/monitor'
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-2 01:20:00 | 显示全部楼层
Pure64
gcc-4.2.1 编译 Xorg-7.3 已成功 。 x86_64 暂未……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-18 00:00:56 | 显示全部楼层
关于找不到 /dev/dsp 设备的问题:

这里使用 Slackware 的脚本放到 /etc/rc.d/init.d/ 目录下,并且在 /etc/rc.d/rc{0,1,2,3,4,5,6}.d/ 中做链接。 就可以了。
看这里:
http://www.linuxsir.cn/bbs/showt ... p;highlight=dev+dsp

脚本文件:
  1. #!/bin/sh
  2. # Load the mixer settings and OSS compatibility for ALSA.
  3. # (the Advanced Linux Sound Architecture)
  4. # A function to load the ALSA mixer settings:
  5. load_alsa_mixer() {
  6.   if [ -r /etc/asound.state ]; then
  7.     echo "Loading ALSA mixer settings:  /usr/sbin/alsactl restore"
  8.     /usr/sbin/alsactl restore
  9.   else
  10.     echo "ALSA warning:  No mixer settings found in /etc/asound.state."
  11.     echo "  Sound may be muted.  Use 'alsamixer' to unmute your sound card,"
  12.     echo "  and then 'alsactl store' to save the default ALSA mixer settings"
  13.     echo "  to be loaded at boot."
  14.   fi
  15. }
  16. # A function to load the ALSA OSS compat modules:
  17. load_alsa_oss_modules() {
  18.   if ! cat /proc/modules | grep -w snd-pcm-oss 1> /dev/null 2> /dev/null ; then
  19.     echo "Loading OSS compatibility modules for ALSA."
  20.     modprobe snd-pcm-oss
  21.     modprobe snd-mixer-oss
  22.   fi
  23. }
  24. # If hotplug or something else has loaded the ALSA modules, then
  25. # simply load the mixer settings and make sure the OSS compat
  26. # modules are loaded:
  27. if [ -d /proc/asound ]; then
  28.   load_alsa_mixer
  29.   load_alsa_oss_modules
  30. else
  31.   # If there are ALSA modules defined in /etc/modules.conf, but
  32.   # ALSA is not yet loaded, then load the modules now:
  33.   DRIVERS=`modprobe -c | grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | awk '{ print $3 }'`
  34.   if [ ! "$DRIVERS" = "" ]; then
  35.     echo "Loading ALSA kernel modules."
  36.     for module in $DRIVERS; do
  37.       modprobe $module
  38.     done
  39.   fi
  40.   # If ALSA is now up, then load the mixer settings and OSS modules:
  41.   if [ -d /proc/asound ]; then
  42.     load_alsa_mixer
  43.     load_alsa_oss_modules
  44.   fi
  45. fi
复制代码
将此文件复制一份到 /etc/rc.d/init.d/ALSA
chmod +x  /etc/rc.d/init.d/ALSA

然后做链接就可以了:
  1. ln -sv ../init.d/ALSA /etc/rc.d/rc0.d/K35ALSA
  2. ln -sv ../init.d/ALSA /etc/rc.d/rc1.d/S35ALSA
  3. ln -sv ../initrd/ALSA /etc/rc.d/rc2.d/S35ALSA
  4. ln -sv ../initrd/ALSA /etc/rc.d/rc3.d/S35ALSA
  5. ln -sv ../initrd/ALSA /etc/rc.d/rc4.d/S35ALSA
  6. ln -sv ../initrd/ALSA /etc/rc.d/rc5.d/S35ALSA
  7. ln -sv ../initrd/ALSA /etc/rc.d/rc6.d/K35ALSA
复制代码
回复 支持 反对

使用道具 举报

发表于 2007-10-18 13:03:36 | 显示全部楼层
Post by tfkdmwmqtr
Pure64
gcc-4.2.1 编译 Xorg-7.3 已成功 。 x86_64 暂未……


内存多大的?

那个/dev/dsp现在已经用处不大了吧,都用alsa驱动了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-18 13:15:49 | 显示全部楼层
gcc-4.2.1
笔记本 1GB DDRII
台式机 512M DDR400
均 可。

GCC-4.2 编译 Xserver 不通过,如同"黑洞"一般的大量吞蚀内存。在我的AMD64 2800+ ,512内存 + 1GB swap 的台式机上,出现物理内存占用 500多空闲小于5,swap 占用600多的现象多次。在笔记本intel酷睿2双核 T5250  1.5GHz , 1GB 物理内存 + 2GB swap 的机器上试过一次,仍然是失败的,具体记不清了。

GCC-4.2.1 没有问题。
回复 支持 反对

使用道具 举报

发表于 2007-10-18 13:51:18 | 显示全部楼层
哦,我用gcc-4.2.2编译过XFree86-4.7.0,内存1G,失败。
没编译过xorg-xserver,回去试一下。
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30052
这里显示这个bug还没有修复。
回复 支持 反对

使用道具 举报

发表于 2009-11-23 02:17:07 | 显示全部楼层
正需要这方面的资料
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表