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

先月 2015年03月 来月
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 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2015年03月27日(金) 旧暦 [n年日記] [更新:"2015/03/27 14:14:30"]

#1 [NetBSD] Dual Displays by xrandr

徳田さんの 「NetBSDとEee PCで外部ディスプレイを使う」 も大変参考にしながら、机上機を dual display にして見た。
Looking at Tokuda's (Japanese diary) my desktop was converted to Dual displays.
Machine: HP ML115/G1
Graphic Card
 (--) RADEON(0): Chipset: "ATI Radeon HD 3450" (ChipID = 0x95c5)
OS NetBSD/amd64 6.1.4
X11R7 installed
Displays 表示部分:
For VGA ananlog:  FlexScan L565 43cm (17 inch)
For DVI Digital:  I/O DATA     50cm (19 inch)
いつもは xdm を起動していて、/etc/X11/xorg.conf は存在しない そのままで xrandr にいくつか引数を付けて起動すると、
My machine does not have /etc/X11/xorg.conf. It was OK for single. If I tried xrandr setup, it claims like:
xrandr: specified screen 1600x1200 not large enough
   for output DVI-0 (1200x1600+1280+0)
「画面が小さくて、二画面は置けない」
と言われる。それで「二画面が置けるような大きさを指定」するべく Virtual の文字が必要になるが、入れるべき xorg.conf がない。
そこで /var/log/Xorg.0.log を見て、それらしい文字を取出すが、どうも足りない。 結局、今使っているのは、次のもの。

So I need to put Virtual setup at xorg.conf to fit large two displays, but no xorg.conf yet.
By looking at /var/log/Xorg.0.log, picked up the strings, but some lines may be missing. After all, I'm using following lines for now.
modena@makoto 15:08:34/150327(~)% cat /etc/X11/xorg.conf

Section "Device"
        Identifier      "Builtin Default ati Device 0"
        Driver  "ati"
EndSection
Section "Screen"
        Identifier      "Builtin Default ati Screen 0"
        Device  "Builtin Default ati Device 0"
        Monitor "Monitor0"
        Subsection "Display"
        Virtual 2880 1200
        EndSubsection
EndSection
Section "Monitor"
        Identifier "Monitor0"
EndSection
Section "ServerLayout"
        Identifier      "Builtin Default Layout"
        Screen  "Builtin Default ati Screen 0"
EndSection
こうしておいて、xrandr を引数なしで起動して名前などを確認してから
With this setup, first issues xrandr without argument to know displays name, and then,
xrandr --fb 2880x1200 \
 --output DVI-0 --auto --rotate normal --pos  0x0  \
 --output VGA-0 --auto --rotate normal --left-of DVI-0
のように入力すると、二画面が分れて使えるようになった。
時々、何かの具合で、Focus しない、つまり入力が出来ないことがある。 その時には、fvwm のメニューも、VGA 側にしか出ない。
(もしかして fvwm を VGA 側で起動すると、そうなるのかな)
そのような時には xdm からやり直し。 この状態で xrandr を引数無で起動すると、次のようになる。

Above xrandr command places dual displays now. In some case, Focusing are missing, say, unable to input letters in DVI side. In that situation, menus of fvwm with mouse-1 always appears the VGA side. Seems fvwm invocation on VGA side may give such situation. (But not confirmed yet).

modena@makoto 15:15:19/150327(~)% xrandr

Screen 0: minimum 320 x 200, current 2880 x 1200, maximum 2880 x 1200
VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 337mm x 270mm
   1280x1024      60.0*+   75.0
   1280x960       75.0     60.0  
   1152x864       75.0  
   1024x768       75.0     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     72.8     66.7     59.9  
   720x400        70.1  
DVI-0 connected 1600x1200+1280+0 (normal left inverted right x axis y axis) 408mm x 306mm
   1600x1200      60.0*+
   1280x1024      75.0     60.0  
   1280x960       60.0  
   1024x768       75.0     72.0     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     72.8     66.7     59.9  
   720x400        70.1  

Vertical:

Tried different layout, say,
For VGA is horizontal, but for DVI rotated
The different number is placed for /etc/X11/xorg.conf, to allow height to be 1600.
        Virtual 2880 1600
And issues as:
 xrandr --fb 2880x1600 \
        --output DVI-0 --auto --rotate right  --pos  0x0  \
        --output VGA-0 --auto --rotate normal --left-of DVI-0
By the way, cvt command may help to know mode lines parameter if necessary.
modena@makoto 23:04:51/150327(~)% cvt 1280 1024
# 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz
Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync


2015年03月26日(木) 旧暦 [n年日記] [更新:"2015/04/03 02:05:18"]

#1 [NetBSD] DRMKMS kernel problem on Let's Note CF-R4 (kern/49751)

PR kern/49751
Riastradh@ に教えてもらったことなのだが、次のような patch を当てておくと
Index: sys/arch/x86/x86/bus_space.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/bus_space.c,v
retrieving revision 1.38
diff -p -u -r1.38 bus_space.c
--- sys/arch/x86/x86/bus_space.c	27 Jan 2012 18:53:07 -0000	1.38
+++ sys/arch/x86/x86/bus_space.c	18 Mar 2015 13:20:58 -0000
@@ -153,6 +153,8 @@ x86_bus_space_mallocok(void)
 	ioport_malloc_safe = 1;
 }
 
+#include <ddb/ddb.h>
+
 int
 bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size,
 		int flags, bus_space_handle_t *bshp)
@@ -161,6 +163,12 @@ bus_space_map(bus_space_tag_t t, bus_add
 	bus_space_tag_t it;
 	int error;
 
+	if (bpa <= 0xc0000 && 0xc0000 - bpa < size) {
+		printf("%s: mapping vga rom\n", __func__);
+		db_stack_trace_print((db_expr_t)(intptr_t)
+		    __builtin_frame_address(0), true, 65536, "", printf);
+	}
+
 	if ((t->bst_exists & BUS_SPACE_OVERRIDE_MAP) == 0)
 		;	/* skip override */
 	else for (it = t; it != NULL; it = it->bst_super) {
dmesg has following back trace lines: (Please note another dmesg with DRM debug is below)
bus_space_map: mapping vga rom

intel_parse_bios
(c2e58c4c,2,54,800004,3,6,c2e58a38,c12ceae0, c0b8024b,c2cdff30)
  at netbsd:intel_parse_bios+0x1758

i915_driver_load
(c2e58c4c,c0c38c40,c12cecc0,c2e58c4c,c2e5ec48, c12cec00,c0307750,c2e58c4c,c0c38c40,5)
  at netbsd:i915_driver_load+0xbae

drm_dev_register
(c2e58c4c,c0c38c40,5,c2e5ec54,c2e5ec48,c2e5ec4c,c2e5ec54,c2e58c4c,24,c3231388)
  at netbsd:drm_dev_register+0x7f

drm_pci_attach(c3231388,c12cecc0,c2d1001c,c1072040,c0c38c40,
  c2d10018,c2e354e0,c0c38c40,c12cecc0,c1059578)
  at netbsd:drm_pci_attach+0x30b

i915drmkms_attach(c3231808,c3231388,c12cecc0,c12cecb8,c12cecc0,
  c3231388,c326caf0,0,c326c000,c12ced08)
  at netbsd:i915drmkms_attach+0xc0

config_attach_loc(c3231808,c1057fe8,c12cecb8,c12cecc0,c0809044,
  c09950e6,c326cb5c,3000003,25928086,8086)
  at netbsd:config_attach_loc+0x181

pci_probe_device(c326c000,80001000,0,0,0,c12ced4e,2,0,0,0) 
  at netbsd:pci_probe_device+0x437

pci_enumerate_bus(c326c000,c0d9a148,0,0,10,c12cee64,10,c326c000,
  c12cedd4,c080a2ec)
  at netbsd:pci_enumerate_bus+0x1a7

pcirescan(c3231808,c0e210c5,c0d9a148,c1114164,2,4,c3231808,
  c1059578,c3231808,c0e210c5)
  at netbsd:pcirescan+0x51

pciattach(c2e3cd88,c3231808,c12cee64,0,c12cee64,c3231808,0,c0e210c9,
  c0e210c9,c12cee20)
  at netbsd:pciattach+0x17d

config_attach_loc(c2e3cd88,c1057538,0,c12cee64,c08125c4,0,c12cee4c,
  c0767078,c2e3cd88,c0e00c80)
  at netbsd:config_attach_loc+0x181

config_found_ia(c2e3cd88,c0e00c80,c12cee64,c08125c4,c2e34008,0,c0e00c80,
  c2d06238,c2e3cd88,c12ceea0)
  at netbsd:config_found_ia+0x36

mp_pci_scan(c2e3cd88,c12cee64,c08125c4,0,c106af60,c106af60,c106af40,
  c10cf280,0,0)
  at netbsd:mp_pci_scan+0x84

mainbus_rescan(c2e3cd88,c0e00c80,0,c2e3cd88,2,c2e35dc0,c2e39d70,
  c0e39d3a,c2e39d70,c2e35dc0)
  at netbsd:mainbus_rescan+0x23b

mainbus_attach(0,c2e3cd88,0,0,c1057520,c2e3cd88,0,c0dffe4e,
   12d5000,c12cef48)
  at netbsd:mainbus_attach+0xfc

config_attach_loc(0,c1057520,0,0,0,1314c,16800000,c12cef5c,c02134b6,c0dffe4e)
  at netbsd:config_attach_loc+0x181

config_rootfound(c0dffe4e,0,1314c,c12cefa0,c0b7d368,c0e672d8,6,3,0,0)
  at netbsd:config_rootfound+0x4a

cpu_configure(c0e672d8,6,3,0,0,0,0,0,0,0) at netbsd:cpu_configure+0x2a

main(0,0,0,0,0,0,0,0,0,0) at netbsd:main+0x2c8
i915_load_modeset_init
1355  static int i915_load_modeset_init(struct drm_device *dev)
1356  {
1357          struct drm_i915_private *dev_priv = dev->dev_private;
1358          int ret;
1359  
1360          ret = intel_parse_bios(dev);
1361          if (ret)
1362                  DRM_INFO("failed to find VBIOS tables\n");
intel_parse_bios

drm_debug = 4;:

I have
set drm_debug = 4;
and getting dmesg Following are suspicious lines:
DRM debug in intel_modeset_init: 2 display pipes available.

DRM debug in intel_crtc_init: swapping pipes & planes for FBC
DRM debug in intel_modeset_init: pipe A sprite A init failed: -19

DRM debug in intel_crtc_init: swapping pipes & planes for FBC
DRM debug in intel_modeset_init: pipe B sprite B init failed: -19

DRM debug in gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 r(1)
DRM debug in drm_do_probe_ddc_edid: drm: skipping non-existent adapter i915 gmbus panel
DRM debug in intel_lvds_init: No LVDS modes found, disabling.
intel_modeset_init
-> intel_crtc_init
-> -> intel_plane_init (why calls with false ?)
-> -> -> drm_plane_init
-> -> -> -> drm_universal_plane_init
driver -> .load
i915_driver_load
intel_setup_gmbus
-> -> -> -> gmbus_algorithm
gmbus_xfer
drm_do_probe_ddc_edid
intel_lvds_init
PR kern/49254


2015年03月21日() 旧暦 [n年日記] [更新:"2015/03/21 14:53:54"]

#1 [NetBSD][pkgsrc] Sound and flash player with FireFox

(関連日記)
2014/05/01 (audio status)
2014/10/24 (gnuradio)
NetBSD/amd64 だと、FireFox の上で動画が数秒で止ってしまう、 という問題がある(らしい)というので 筒井さんの
PR pkg/49705
を wip に入れて見た。7.99.7 で試している
NetBSD h81.i.ki.nu 7.99.7 NetBSD 7.99.7
(GENERIC.201503200520Z) #0: Fri Mar 20 06:15:06 UTC 2015
snj@b45.netbsd.org:/home/builds/ab/HEAD/amd64/201503200520Z-obj
   /home/source/ab/HEAD/src/sys/arch/amd64/compile/GENERIC
amd64
pkg は、比較的、何も入っていない。次のものだけ。 茶色 ● で示しているのが今回の関係のもの。
h81@makoto 10:10:58/150321(~)% pkg_info -u
sudo-1.7.10p9       Allow others to run commands as root
zsh-5.0.7nb1        The Z shell
screen-4.2.1nb1     Multi-screen window manager
pulseaudio-6.0      Sound server for POSIX and Win32 systems ●
firefox-36.0        Web browser with support for extensions (version 36) ●
fvwm-2.6.5nb5       Newer version of X11 Virtual window manager
rsync-3.1.1         Network file distribution/synchronisation utility
adobe-flash-plugin-11.2.202.451 Adobe Flash Player Browser plugin ●
umefont-ttf-0.480   Ume 18 Japanese fonts (Mincho and Gothic) ●
pkglint-4.153       Verifier for NetBSD packages
(ただし) adobe-flash-plugin を作る時には、次の行を /etc/mk.conf に書いている
PKG_OPTIONS.adobe-flash-plugin+= pulseaudio

依存で入っているはずの dbus を起動:

pkg_info -D dbus 
を見て、
sudo cp -p  /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/dbus
sudo /etc/rc.d/dbus onestart
をしている

pulseaudio:

また pulseaudio を使うために、まず /dev/audio が使えるか次のようにして音が出ることを 確認した後
h81@makoto 10:32:36/150321(..wip/nspluginwrapper)% audioplay -d /dev/audio ~/goldberg.wav 
audioplay: failed to open /dev/audio: Invalid argument
h81@makoto 10:38:28/150321(..wip/nspluginwrapper)% audioplay -d /dev/audio ~/goldberg.wav 
2014/05/01 に書いたように、次の設定を変更している
h81@makoto 10:32:27/150321(..wip/nspluginwrapper)% diff -u  /usr/pkg/share/examples/pulseaudio/default.pa{.orig,}
--- /usr/pkg/share/examples/pulseaudio/default.pa.orig  2015-03-01 01:40:22.000000000 +0900
+++ /usr/pkg/share/examples/pulseaudio/default.pa       2015-03-21 08:40:50.000000000 +0900
@@ -43,15 +43,15 @@
 ### Load audio drivers statically
 ### (it's probably better to not load these drivers manually, but instead
 ### use module-udev-detect -- see below -- for doing this automatically)
-#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
+load-module module-oss device="/dev/audio" sink_name=output source_name=input
 #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
 #load-module module-null-sink
 #load-module module-pipe-sink
 
 ### Automatically load driver modules depending on the hardware available
-.ifexists module-detect.so
+.ifexists module-udev-detect.so
 ### Use the static hardware detection module (for systems that lack udev support)
-load-module module-detect
+load-module module-udev-detect
 .endif
 
 ### Automatically connect sink and source if JACK server is present
(というのは本当なのだが、何と、これは example 側だ。効いていないと思う。 変だなぁ)。次のものは変更していない。
h81@makoto 10:38:45/150321(~)% lslt /usr/pkg/etc/pulse/
total 28
-rw-r--r--  1 root  wheel  2008 Mar  1 01:40 system.pa
-rw-r--r--  1 root  wheel  5368 Mar  1 01:40 default.pa
-rw-r--r--  1 root  wheel  2270 Mar  1 01:40 daemon.conf
-rw-r--r--  1 root  wheel  1205 Mar  1 01:40 client.conf
そうしておいて (?)手で、
pulseaudio --verbose
を起動して、問題なく起動することを確認している。
これで You Tube で音と動画が出る。 (ただしものによっては動画の方が少しおかしい) ← DRMKMS Intel Graphics のせい。
[  1376.644] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics

(都合で、きょうはここまで)


2015年03月20日(金) 旧暦 [n年日記] [更新:"2015/03/20 09:54:46"]

#1 [Emacs] as of 2015-03-20

219       val = tbl->contents[idx];
(gdb) bt

#0 0x000000000049760f in sub_char_table_ref (table=19877893,
 c=16558592, is_uniprop=false) at chartab.c:219
#1 0x00000000004981e3 in char_table_ref
 (table=table@entry=18372277, c=c@entry=16558592) at  chartab.c:243
#2  0x0000000000519413 in CHAR_TABLE_REF (idx=16558592, ct=18372277) at lisp.h:1656
#3  char_table_translate (ch=16558592, obj=18372277) at character.h:680
#4  re_match_2_internal (bufp=bufp@entry=0xb6d910, 

#2 [diff] wdiff と cwdiff を使う

wdiff は単語単位で、内容の比較をしてくれる。その出力を赤と緑で色を付けて見るには、 cwdiff を使う。いづれも pkgsrc/ textproc にある。
wdiff A B | cwdiff -f
これが僕の普通の使い方。A と B を比べて、単語単位で差分を色を付けて表示する。 pkgsrc/licenses の下にあるものと、任意の LICENSE.txt を較べたりする時に便利。
これを less で見ようとすると、そのままでは色が消えてしまうが、-R を付ければ、 上と同じ色が見られる。更に、空白の違いを無視し、文字コードも行単位で変換するなど とするには、次のような方法がある。 特に今回の場合は、mlterm を次のように起動しておいて、
env LANG=ja_JP.eucJP   mlterm --fontsize=12 -name mlterm-EUC
その窓の中で、次のように入力した
diff -w -u FILE_A FILE_B |\
 | wdiff -d |  cwdiff -f | nkf | less -R


2015年03月16日(月) 旧暦 [n年日記] [更新:"2015/03/18 06:33:17"]

#1 [pkgsrc] cross-compile

記憶で書いて見る

cross tool を ./build.sh で作る:

例えば
   $ cd /usr/src
   $ ./build.sh -m evbppc tools
   $ ./build.sh -m evbppc distribution
作ったものは CC_FOR_BUILD で指定する

destdir に実行側の /usr/lib /usr/include を置く:

(英語なら populate と言う)
この方法としては一応二通り。./build.sh を使って作るか INSTALL binary を展開するか

BUILD_DEPENDS を分ける必要がある:

DEPENDS実行時に必要
BUILD_DEPENDSpackage を build する時に必要
TOOL_DEPENDSpackgage を build する時に、host 側で実行する必要がある

問題:

  • 当然 package 毎の事情があり、(何も考えなくても) 簡単に出来るものや、 なかなか出来ないものがある
  • 実はまだ pbulk が対応していない
  • perl と python は大変
  • libtool も大変


2015年03月14日() 旧暦 [n年日記] [更新:"2015/03/16 06:03:38"]

#1 [NetBSD] Lets Note CF-R4 screen gets stripe/gradient/strange (7.99.2 or later)

Movie on You Tube

enabling dbug and dmesg:


List of Files to check
sys/external/bsd/drm2/i915drm/i915_pci.c
sys/external/bsd/drm2/dist/drm/i915/intel_display.c
sys/external/bsd/drm2/i915drm/intelfb.c
genfb_attach -> setmode callback -> drm_fb_helper_set_config
sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
Following still gives strange screen
diff --git a/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c b/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
index 1a727d1..54eb0c9 100644
--- a/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
+++ b/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
@@ -864,7 +864,7 @@ drm_fb_helper_set_config(struct drm_fb_helper *fb_helper)
 	drm_modeset_lock_all(dev);
 	drm_fb_helper_restore_fbdev_mode(fb_helper);
 	drm_modeset_unlock_all(dev);
-
+	while (1) { };
 	if (fb_helper->delayed_hotplug) {
 		fb_helper->delayed_hotplug = false;
 		drm_fb_helper_hotplug_event(fb_helper);
but Following gives blank screen
diff --git a/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c b/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
index 1a727d1..6701057 100644
--- a/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
+++ b/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
@@ -860,7 +860,7 @@ int
 drm_fb_helper_set_config(struct drm_fb_helper *fb_helper)
 {
 	struct drm_device *dev = fb_helper->dev;
-
+	while (1) { };
 	drm_modeset_lock_all(dev);
	drm_fb_helper_restore_fbdev_mode(fb_helper);
 	drm_modeset_unlock_all(dev);

The suspect is at:
drm_fb_helper_restore_fbdev_mode(fb_helper);
Following gives blank screen
diff --git a/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c b/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
index 1a727d1..5f500bc 100644
--- a/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
+++ b/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
@@ -321,7 +321,7 @@ bool drm_fb_helper_restore_fbdev_mode(struct drm_fb_helper *fb_helper)
 	list_for_each_entry(plane, &dev->mode_config.plane_list, head)
 		if (plane->type != DRM_PLANE_TYPE_PRIMARY)
 			drm_plane_force_disable(plane);
-
+	while (1){};
 	for (i = 0; i < fb_helper->crtc_count; i++) {
 		struct drm_mode_set *mode_set = &fb_helper->crtc_info[i].mode_set;
 		struct drm_crtc *crtc = mode_set->crtc;



2015年03月13日(金) 旧暦 [n年日記] [更新:"2015/03/13 15:49:58"]

#1 [NetBSD] xrandr --query on 6.1.4

With external VGA cable connected
cf-r4-RF@makoto 00:42:48/150314(~)% xrandr --query 
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA connected (normal left inverted right x axis y axis)
   1024x768       60.0  
   800x600        60.3  
   640x480        59.9  
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
Without external VGA cable connected
cf-r4-RF@makoto 00:42:51/150314(~)% xrandr --query
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
cf-r4-RF@makoto 00:42:57/150314(~)% 


2015年03月10日(火) 旧暦 [n年日記] [更新:"2015/03/16 04:47:20"]

#1 [NetBSD] 7.99.6 panics when mounting /dev/ld0e

Mar 16 13:42:09 cf-r4 /netbsd: ld0 at sdmmc0: <0x02:0x544d:SA08G:0x14:0x10aef0a0:0x0e1>
Mar 16 13:42:09 cf-r4 /netbsd: ld0: 7388 MB, 3752 cyl, 64
  head, 63 sec, 512 bytes/sect x 15130624 sectors
Mar 16 13:42:09 cf-r4 /netbsd: ld0: 4-bit width, bus clock 25.000 MHz

cf-r4@makoto 13:44:50/150316(/)% disklabel /dev/ld0e
disklabel: /dev/ld0e: Permission denied
cf-r4@makoto 13:45:02/150316(/)% sudodisklabel /dev/ld0e
zsh: command not found: sudodisklabel
cf-r4@makoto 13:45:05/150316(/)% sudo disklabel /dev/ld0e
# /dev/ld0e:
type: ld
disk: unknown
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 64
sectors/cylinder: 4032
cylinders: 3752
total sectors: 15130624
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:  15130624         0     unused      0     0        # (Cyl.      0 -   3752*)
 e:  15122432      8192      MSDOS                     # (Cyl.      2*-   3752*)
disklabel: boot block size 0
disklabel: super block size 0
cf-r4@makoto 13:45:11/150316(/)% sudo mount -t msdos /dev/ld0e /mnt


2015年03月02日(月) 旧暦 [n年日記] [更新:"2015/03/02 09:38:40"]

#1 using cdrecord

mkisofs
mkisofs -udf -volid  Project/`date +%y%m%d` -f -r -J -l -joliet-long -o CDimage dir
cdrecord
h87@makoto 18:17:53/150302(..pkgsrc/wip)% \
sudo cdrecord -v dev=31,0,0 speed=16 driveropts=burnfree -data /e/modena/CD-R/bootcd2/CDimage
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01a24
   (amd64-unknown-netbsd7.99.1) Copyright (C) 1995-2014 Joerg Schilling
TOC Type: 1 = CD-ROM
scsidev: '31,0,0'
scsibus: 31 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Driveropts: 'burnfree'
SCSI buffer size: 61440
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVDRAM GH24NSB0 '
Revision       : 'LN00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-R/DL sequential recording 
Profile: DVD-R/DL layer jump recording 
Profile: DVD+R/DL 
Profile: DVD+R 
Profile: DVD+RW 
Profile: DVD-RW sequential recording 
Profile: DVD-RW restricted overwrite 
Profile: DVD-RAM 
Profile: DVD-R sequential recording 
Profile: DVD-ROM 
Profile: CD-RW 
Profile: CD-R (current)
Profile: CD-ROM 
Profile: Removable Disk 
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE 
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 362208 = 353 KB
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
FIFO size      : 4194304 = 4096 KB
Track 01: data   321 MB        
Total size:      369 MB (36:36.22) = 164717 sectors
Lout start:      369 MB (36:38/17) = 164717 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
Disk Is not unrestricted
Disk Is not erasable
  Disk sub type: Medium Type A, high Beta category (A+) (3)
  ATIP start of lead in:  -11634 (97:26/66)
  ATIP start of lead out: 359846 (79:59/71)
Disk type:    Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation

    Capacity  Blklen/Sparesz.  Format-type  Type
      445350             2048         0x00  No Media Present or Unknown Capacity
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 195129
Starting to write CD/DVD/BD at speed 16 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Performing OPC...
Sending CUE sheet...
cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01:  221 of  321 MB written (fifo  98%) [buf 100%]  16.5x.
Track 01: Total bytes read/written: 337340416/337340416 (164717 sectors).
Writing  time:  153.889s (00:02:33.889)
Average write speed  15.1x.
Min drive buffer fill was 99%
Fixating...
Fixating time:    7.019s (00:00:07.019)
BURN-Free was 3 times used.
cdrecord: fifo had 5491 puts and 5491 gets.
cdrecord: fifo was 0 times empty and 4456 times full, min fill was 97%.


2015年03月01日() 旧暦 [n年日記] [更新:"2015/03/01 14:41:17"]

#1 [pkgsrc] make test on perl-5.20.2

t/porting/customized .......................................... # 
Failed test 39 
- SHA for cpan/version/lib/version.pm matches stashed 
  SHA at porting/customized.t line 103
#      got "e27f5037ae7e95be512dbee795dfc56e7e4f7a08"
# expected "d0923b895d57f1d669ae36fcf85c87b16db341d1"



最近の日記
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)
以上、10 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)