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

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

2004年10月22日(金) 旧暦 [n年日記]

更新: "2004/10/23 23:50:26"

#1 [NetBSD][build.sh] build.sh をもう一度実行

ttyp0:makoto@st4200 21:57:30/041021(...checkout/src)> time sudo ./build.sh release > & log-from-scratch-sysinst-ramdisk-list-date -2147474966.731u -2147480760.211s 3:09:03.07 102.0% 0+0k 18337+395973io 31257pf+198w
ところが良く考えたら sysinst の installboot は僕が勘違いしていた。 installboot には link 方式 と copy 方式 が考えられる

link 方式(従前の方式):

  1. link 方式というのは実行時に /boot になる sector の番号を調べて、それを bootxx に埋込む (1kbyte 以内)。
  2. bootxx 自体は 2k から 1kByte 以内に置く bootxx は 2k 以上あるが、そのうち本当に必要な .text は 600 byte くらい。つまり それだけを disk に書いておけば良い。
この方式は全てを設置して最後に行なう。

copy 方式 (最近の素のNetBSD の方式、arch に依存しない):

copy 方式というのは
  1. /usr/mdec/ofwboot をまず /boot に写す
  2. installboot 実行時、つまり設置時に /usr/mdec/bootxx を elf のままの形で(?) 第 2 sector (sector 1) に写す (2kbyte 以内)
この方式は sysinst 環境に写しを持っていれば、いつでもいい

と書いたが、従前と最近の大きな違いは、bootxx を置く形が 素か elf か ということ。

OF3 の時はどうなるのか ? 不明。:

最近 installboot は失敗するようになっていて、これを直すのに乗り気でなかった のは、OF 3 の時には実行してはまずいのでは ? と思っていたから。

最近の方式の場合には、0 sector に書く訳ではなさそうだから、無害かな。

MBR ?:

     Status: Finished
    Command: disklabel -w -r -f /tmp/disktab wd0 'mydisk'
     Hit enter to continue
--------------------------------------------------------------------------------
disklabel: Invalid signature in mbr record 0

installboot: `/usr/mdec/bootxx' cannot be larger than 2048 bytes::

     Status: Command failed
    Command: /usr/sbin/installboot /dev/rwd0a /usr/mdec/bootxx /boot
     Hit enter to continue
--------------------------------------------------------------------------------
installboot: `/usr/mdec/bootxx' cannot be larger than 2048 bytes
installboot: Set bootstrap operation failed
この時点で bootxx が 2k 以上ある ?
-r--r--r--  1 root  wheel    2131 Sep 29 20:18 bootxx
ありそうだ。これはどこから来たもの ?



最近の日記
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)