NetBSD版 SH-Linux Kernel Switcherでブート Edit

  • 概要
    Nonakaさんを中心に開発が進められているLANDISK版NetBSDのブートテストを行ってみました。
    SH-Linux Kernel SwitcherのNetBSD版を作成し、Linux上からブートテストを行いました。
    現状、ルートデバイスを用意できなかったので、その認識段階でfailしていますが、
    ほぼ全てのハードウェアがちゃんと認識されていますね。
    素晴らしい。今後が非常に楽しみです。

  • SH-Linux Kernel Switcher の NetBSD版
    LANDISKオリジナルシステム (Linux-2.4.21)から NetBSDカーネルをブート。
    (現状、実験を行うには、シリアルコンソールの引き出しが必要です。)

    テスト版 … kernelsw-nbsd.tgz


  • 展開
    Linux(LANDISKのオリジナルシステム)上に展開。
    # pwd
    /mnt/hda3/netbsd
    # tar vxfz /mnt/hda3/share/disk/kernelsw-nbsd.tgz
    kernelsw-nbsd/
    kernelsw-nbsd/dev/
    kernelsw-nbsd/dev/kernelsw
    kernelsw-nbsd/kernelsw.c
    kernelsw-nbsd/kernelsw.o
    kernelsw-nbsd/nbsd.conf
    kernelsw-nbsd/kernelsw.conf
    kernelsw-nbsd/build.sh
    kernelsw-nbsd/kernelsw.pl
    kernelsw-nbsd/netbsd-kernel/
    kernelsw-nbsd/netbsd-kernel/netbsd
    
  • 実行
    # cd kernelsw-nbsd/
    # ./kernelsw.pl nbsd.conf
    Loading .... done.
    ==============================================
            SH-Linux Kernel Switcher V2.5
    ----------------------------------------------
     image  = ./netbsd-kernel/netbsd (size:4350518,page:1063)
     offset = 0x00001000
    ----------------------------------------------
     kernel boot parameter details
      0 : 0x0 # howto
      1 : 0x0 # bootinfo[0] nentries
      2 : 0x0 # bootinfo[1] common->len
      3 : 0x0 # bootinfo[2] common->type
      4 : 0x0 # bootinfo[3]
      5 : 0x0 # bootinfo[4]
      6 : 0x0 # bootinfo[5]
      7 : 0x0 # bootinfo[6]
    ==============================================
    
    全てのファイルシステムをRead-onlyでマウントしてから、カーネルブートを行います。
    # mount -o ro,remount /dev/hda3 等
    # ./kernelsw.pl -fswitch
    Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
        The NetBSD Foundation, Inc.  All rights reserved.
    Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
    
    NetBSD 3.99.7 (GENERIC) #1: Sun Aug 21 20:17:32 JST 2005
            root@colinux:/opt/netbsd/usr/src/sys/arch/landisk/compile/obj/GENERIC
    Model: I-O DATA LANDISK
    total memory = 65536 KB
    avail memory = 58504 KB
    mainbus0 (root)
    cpu0 at mainbus0: HITACHI SH4 266.666MHz PCLOCK 33.333 MHz
    16KB/32B 2-way set-associative Instruction cache.
    32KB/32B 2-way set-associative Data cache.
    P0, U0, P3 write-back P1 write-back
    full-associative 4 ITLB, 64 UTLB entries
    multiple virtual storage mode, SQ access: kernel, wired 61
    shpcic0 at mainbus0: HITACHI SH7751R
    pci0 at shpcic0
    pci0: i/o space, memory space enabled
    rtk0 at pci0 dev 0 function 0: Realtek 8139 10/100BaseTX
    rtk0: interrupting at irq 5
    rtk0: Ethernet address xx:xx:xx:xx:xx:xx
    ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
    ukphy0: OUI 0x000000, model 0x0000, rev. 0
    ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    acardide0 at pci0 dev 1 function 0
    acardide0: Acard ATP865-A Ultra133 IDE Controller (rev. 0x06)
    acardide0: bus-master DMA support present
    acardide0: primary channel wired to native-PCI mode
    acardide0: using irq 6 for native-PCI interrupt
    atabus0 at acardide0 channel 0
    acardide0: secondary channel wired to native-PCI mode
    atabus1 at acardide0 channel 1
    ohci0 at pci0 dev 2 function 0: NEC USB Host Controller (rev. 0x43)
    ohci0: interrupting at irq 7
    ohci0: OHCI version 1.0
    usb0 at ohci0: USB revision 1.0
    uhub0 at usb0
    uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 3 ports with 3 removable, self powered
    ohci1 at pci0 dev 2 function 1: NEC USB Host Controller (rev. 0x43)
    ohci1: interrupting at irq 8
    ohci1: OHCI version 1.0
    usb1 at ohci1: USB revision 1.0
    uhub1 at usb1
    uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    ehci0 at pci0 dev 2 function 2: NEC USB Host Controller (rev. 0x04)
    ehci0: interrupting at irq 5
    ehci0: EHCI version 1.0
    ehci0: companion controllers, 3 ports each: ohci0 ohci1
    usb2 at ehci0: USB revision 2.0
    uhub2 at usb2
    uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
    uhub2: 5 ports with 5 removable, self powered
    shb0 at mainbus0
    scif0 at shb0
    scif0: console
    obio0 at mainbus0
    Kernelized RAIDframe activated
    wd0 at atabus0 drive 0: <SAMSUNG SV1604N>
    wd0: drive supports 16-sector PIO transfers, LBA48 addressing
    wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
    wd0: 32-bit data port
    wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
    wd0(acardide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
     (Ultra/133) (using DMA)
    boot device: <unknown>
    root device:
    use one of: raid0[a-p] raid1[a-p] raid2[a-p] raid3[a-p] raid4[a-p] raid5[a-p]
     raid6[a-p] raid7[a-p] rtk0 wd0[a-p] ddb halt reboot
    root device: rtk0
    dump device:
    file system (default generic): nfs
    root on rtk0
    nfs_boot: trying DHCP/BOOTP
    nfs_boot: DHCP next-server: 192.168.1.1
    nfs_boot: my_addr=192.168.1.5
    nfs_boot: my_mask=255.255.255.0
    nfs_boot: gateway=192.168.1.1
    nfs_boot: getfh - no pathname
    cannot mount root, error = 5
    root device (default rtk0): reboot
    syncing disks... done
    unmounting file systems... done
    
  • その他


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2006-06-13 (火) 20:02:26 (6533d)