hns - 日記自動生成システム - Version 2.19.9

先月 2008年11月 来月
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2008年11月15日() 旧暦 [n年日記] [更新:"2008/11/15 21:26:59"]

#1 [NetBSD] 4.99.72 + modular-xorg

一とおり、meta-pkg/modular-xorg* と x11/modular-xorg-server で make package した。 その後、xorgconfig を起動して、/etc/X11/xorg.conf を用意してから、startx とか xdm とかやっているが: var/log/Xorg.0.log より:
(WW) xf86EnableIO 5
(II) xf86EnableIO: ffffffff
(WW) Can't map IO space!
xorg-server-1.4.2/hw/xfree86/os-support/bsd/ppc_video.c:
144 Bool xf86EnableIO()
145 {
146         int fd = xf86Info.screenFd;
147
148         xf86MsgVerb(X_WARNING, 3, "xf86EnableIO %d\n", fd);
149         if (ioBase == MAP_FAILED)
150         {
151                 ioBase=mmap(NULL, 0x10000, PROT_READ|PROT_WRITE, MAP_SHARED, fd,
152                     0xf2000000);
153                 xf86MsgVerb(X_INFO, 3, "xf86EnableIO: %08x\n", ioBase);
154                 if (ioBase == MAP_FAILED) {
155                         xf86MsgVerb(X_WARNING, 3, "Can't map IO space!\n");
156                         return FALSE;
157                 }
158         }
159         return TRUE;

xsrc/xfree の中では
-                ioBase=mmap(NULL, 0x10000, PROT_READ|PROT_WRITE, MAP_SHARED, fd,
-                    0xf2000000);
+               ioBase=mmap(NULL, 0x10000, PROT_READ|PROT_WRITE, MAP_SHARED, fd,
+                   PCI_MAGIC_IO_RANGE);
と変更されているが、 これでいい ような気がする。
Basically - look at genfb_pci.c, grep it for PCI_MAGIC_IO_RANGE, pick an offset that's safe on your hardware ( it may or may not correspond to the real bus address of the PCI IO space but X and genfb need to agree about it and no PCI BARs should EVER be mapped there ). Put
#define PCI_MAGIC_IO_RANGE 0xwhatever
into param.h and rebuild both X and the kernel. If 0xf2000000 is safe just use it and you can use macppc's binaries.
(WW) Can't map IO space!
と言っているのは、それほど重要ではない、その次が問題 ? (という訳でもなく)



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)