公式debian sh(sh4) sid@USL-5Pインストール詳細手順
1)telnetでUSL-5Pオリジナルシステムにログインし、スーパーユーザーになります。
2)fdiskでdebian sh sid用の領域を確保します。
# fdisk -l
Device Boot Start End Blocks Id System /dev/hda1 1 1009 62527 83 Linux /dev/hda2 1010 3026 125054 82 Linux swap /dev/hda3 3027 32256 1812260 83 Linux
3)スワップ領域の作成
# mkswap -c /dev/hda2
4)ファイルシステムの作成
(CFで使う場合は、EXT2を選択した方が良いかもしれません。)
# mkfs.ext3 /dev/hda3
5)sid領域をマウントする。
# mkdir /mnt/hda3
# mount /dev/sda3 /mnt/hda3
# cd /mnt/hda3
6)debian sid userlandをダウンロードして解凍する。
(最新版はbz2なのでオリジナルシステムでは解凍できません。)
# wget http://debian-sh4.nigauri.org/base-image/rootfs-sid-20100223.tar.gz
# tar zxvf rootfs-sid-20100223.tar.gz
# mv rootfs-sid-20100223/* /mnt/hda3
# rmdir rootfs-sid-20100223
# rm rootfs-sid-20100223.tar.gz
7)ネットワーク設定ファイルの編集
kogiidenaさんのサイトを参考にしながら設定しましょう。
http://eggplant.ddo.jp/www/pukiwiki/index.php?Kernel%202.6%20and%20Debian%20on%20LANDISK
# vi /mnt/hda3/etc/hosts
# vi /mnt/hda3/etc/hostname
# vi /mnt/hda3/etc/resolv.conf
# vi /mnt/hda3/etc/network/interfaces
# vi /mnt/hda3/etc/hosts.allow
8)fstab,inittabの設定
# vi /mnt/hda3/etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM /dev/sda3 / ext3 defaults 0 1 /dev/sda2 swap swap defaults 0 0
# vi /mnt/hda3/etc/inittab
1:2345:respawn:/sbin/getty 115200 ttySC1 2:23:respawn:/sbin/getty 38400 tty1 #3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6
9)カーネルとカーネルモジュールのダウンロードとインストール
(カーネルのバージョン番号は、随時読み替えて下さい。)
# cd /mnt/hda3/boot
# wget http://www42.tok2.com/home/forester3/kernel4usl5p/2.6.35/vmlinuz-2.6.35.1-landisk
# wget http://www42.tok2.com/home/forester3/kernel4usl5p/2.6.35/modules-2.6.35.1.tar.gz
# tar zxvf modules-2.6.35.1.tar.gz
# cd /mnt/hda3/lib/modules
# cp -r /mnt/hda3/boot/modules-2.6.35.1/lib/modules/* .
# cd /mnt/hda3/boot
# rm -r modules-2.6.35.1
# rm modules-2.6.35.1.tar.gz
(# depmod -F /boot/System.map-2.6.35.1-landisk -b /mnt/hda3 -a 2.6.35.1 追記:depmodは不要です)
# cp vmlinuz-2.6.35.1-landisk /boot
10)boot.b-selkのコピーとlilo設定
# cd /mnt/hda3/tmp
# wget http://iohack.sourceforge.jp/kogiidena/debian26/base/landisk-tools-20070612.tgz
# tar zxvf landisk-tools-20070612.tgz
# cp boot/boot.b-selk /boot
# cp etc/lilo.conf /mnt/hda3/etc
# vi /mnt/hda3/etc/lilo.conf
linear boot=/dev/hda disk=/dev/hda bios=0x80 timeout=50 install=/boot/boot.b-selk default=debian(sid) image=/boot/vmlinuz-2.6.35.1-landisk label=debian(sid) read-only append="mem=64M console=ttySC1,115200 root=/dev/sda3" image=/boot/zImage label=usl-5p read-only append="mem=64M console=ttySC1,9600 root=/dev/hda1"
# lilo -C /mnt/hda3/etc/lilo.conf
# rm -r *
# reboot
Setting GDB trap vector to 80000100 Linux version 2.6.35.1 (root@CFdebian) (gcc version 4.3.4 (Debian 4.3.4-6+sh4) ) #4 Sun Nov 28 11:59:33 UTC 2010 Boot params: ... MOUNT_ROOT_RDONLY - 00000001 ... RAMDISK_FLAGS - 00000000 ... ORIG_ROOT_DEV - 00000301 ... LOADER_TYPE - 00000001 ... INITRD_START - 00000000 ... INITRD_SIZE - 00000000 Memory limited to 64MB Booting machvec: LANDISK Node 0: start_pfn = 0xc000, low = 0x10000 Zone PFN ranges: Normal 0x0000c000 -> 0x00010000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0x0000c000 -> 0x00010000 I-O DATA DEVICE, INC. "LANDISK Series" support. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: ro mem=64M console=ttySC1,115200 root=/dev/sda3 PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) PVR=04050005 CVR=20480000 PRR=00000113 I-cache : n_ways=2 n_sets=256 way_incr=8192 I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2 D-cache : n_ways=2 n_sets=512 way_incr=16384 D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4 Memory: 62176k/65536k available (1920k kernel code, 673k data, 96k init) virtual kernel memory layout: fixmap : 0xdfff7000 - 0xdffff000 ( 32 kB) vmalloc : 0xc0000000 - 0xdfff5000 ( 511 MB) lowmem : 0x8c000000 - 0x90000000 ( 64 MB) (cached) : 0xa0000000 - 0xc0000000 ( 512 MB) (uncached) .init : 0x8c28a000 - 0x8c2a2000 ( 96 kB) .data : 0x8c1e1328 - 0x8c2899c0 ( 673 kB) .text : 0x8c001000 - 0x8c1e1328 (1920 kB) Hierarchical RCU implementation. RCU-based detection of stalled CPUs is disabled. Verbose stalled-CPUs detection is disabled. NR_IRQS:256 nr_irqs:256 intc: Registered controller 'sh7750' with 20 IRQs intc: Registered controller 'sh7750_dma8' with 9 IRQs intc: Registered controller 'sh7750_tmu34' with 2 IRQs intc: Registered controller 'sh7750_pci' with 8 IRQs intc: Registered controller 'landisk' with 8 IRQs Console: colour dummy device 80x25 sh_tmu.0: used for clock events sh_tmu.0: used for periodic clock events sh_tmu.1: used as clock source Calibrating delay loop (skipped)... 266.66 BogoMIPS PRESET (lpj=533333) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: SH7751R NET: Registered protocol family 16 PCI: Starting intialization. bio: create slabat 0 vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pci 0000:00:02.0: BAR 0: assigned [mem 0xfd000000-0xfd000fff] pci 0000:00:02.0: BAR 0: set to [mem 0xfd000000-0xfd000fff] (PCI address [0xfd000000-0xfd000fff] pci 0000:00:02.1: BAR 0: assigned [mem 0xfd001000-0xfd001fff] pci 0000:00:02.1: BAR 0: set to [mem 0xfd001000-0xfd001fff] (PCI address [0xfd001000-0xfd001fff] pci 0000:00:00.0: BAR 0: assigned [io 0x1000-0x10ff] pci 0000:00:00.0: BAR 0: set to [io 0x1000-0x10ff] (PCI address [0x1000-0x10ff] pci 0000:00:00.0: BAR 1: assigned [mem 0xfd002000-0xfd0020ff] pci 0000:00:00.0: BAR 1: set to [mem 0xfd002000-0xfd0020ff] (PCI address [0xfd002000-0xfd0020ff] pci 0000:00:02.2: BAR 0: assigned [mem 0xfd002100-0xfd0021ff] pci 0000:00:02.2: BAR 0: set to [mem 0xfd002100-0xfd0021ff] (PCI address [0xfd002100-0xfd0021ff] Switching to clocksource sh_tmu.1 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 gio: driver initialized ROMFS MTD (C) 2007 Red Hat, Inc. msgmni has been set to 121 io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) SuperH SCI(F) driver initialized sh-sci.0: ttySC0 at MMIO 0xffe00000 (irq = 23) is a sci sh-sci.1: ttySC1 at MMIO 0xffe80000 (irq = 40) is a scif console [ttySC1] enabled loop: module loaded scsi0 : pata_platform ata1: PATA max PIO0 ioport cmd 0xc0000040 ctl 0xc000002c irq 10 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) PCI: Enabling device 0000:00:00.0 (0000 -> 0003) 8139cp 0000:00:00.0: eth0: RTL-8139C+ at 0xfd002000, 00:a0:b0:6c:e9:cd, IRQ 5 PCI: Setting latency timer of device 0000:00:00.0 to 64 usbmon: debugfs is not available ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver PCI: Enabling device 0000:00:02.2 (0000 -> 0002) ehci_hcd 0000:00:02.2: EHCI Host Controller ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:02.2: Enabling legacy PCI PM ehci_hcd 0000:00:02.2: irq 5, io mem 0xfd002100 ehci_hcd 0000:00:02.2: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 5 ports detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver PCI: Enabling device 0000:00:02.0 (0000 -> 0002) PCI: Setting latency timer of device 0000:00:02.0 to 64 ohci_hcd 0000:00:02.0: OHCI Host Controller ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:02.0: irq 7, io mem 0xfd000000 ata1.00: CFA: HMS360402D5CF00, DN2OC60G, max UDMA/33 ata1.00: 3999744 sectors, multi 0: LBA ata1.00: configured for PIO scsi 0:0:0:0: Direct-Access ATA HMS360402D5CF00 DN2O PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 3999744 512-byte logical blocks: (2.04 GB/1.90 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sda: hub 2-0:1.0: USB hub found hub 2-0:1.0: 3 ports detected PCI: Enabling device 0000:00:02.1 (0000 -> 0002) PCI: Setting latency timer of device 0000:00:02.1 to 64 ohci_hcd 0000:00:02.1: OHCI Host Controller ohci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:02.1: irq 8, io mem 0xfd001000 sda1 sda2 sda3 sd 0:0:0:0: [sda] Attached SCSI removable disk hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected mice: PS/2 mouse device common for all mice rs5c313 rs5c313: rtc core: registered rs5c313 as rtc0 sh_tmu sh_tmu.0: kept as earlytimer sh_tmu sh_tmu.1: kept as earlytimer push-switch: version 0.1.1 loaded TCP cubic registered NET: Registered protocol family 17 rs5c313 rs5c313: setting system clock to 2010-12-07 12:25:41 UTC (1291724741) ??XT3-fs: barriers not enabled kjournald starting. Commit interval 5 seconds EXT3-fs (sda3): mounted filesystem with writeback data mode VFS: Mounted root (ext3 filesystem) readonly on device 8:3. Freeing unused kernel memory: 96k freed INIT:W忻詼 Ir族十僖? Synthesizing the initial hotplug events...done. Waiting for /dev to be fully populated...done. Activating swap...done. Checking root file system...fsck from util-linux-ng 2.16.2 /lib/init/rw/rootdev: clean, 14964/226688 files, 110987/453065 blocks done. EXT3-fs (sda3): using internal journal Cleaning up ifupdown.... Loading kernel modules...done. Checking file systems...fsck from util-linux-ng 2.16.2 done. Setting kernel variables ...error: "net.ipv6.bindv6only" is an unknown key failed. Mounting local filesystems...done. Activating swapfile swap...done. Cleaning up temporary files.... Setting up networking.... Configuring network interfaces...eth0: link up, 100Mbps, full-duplex, lpa 0x41E1 done. Cleaning up temporary files.... CR*???Q疋?付恒?演??触H??Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: cron. ?? Debian GNU/Linux squeeze/sid landisk ttySC1 landisk login:
何とか起動して、使えるみたいです。
(今後の要処置事項)
Setting kernel variables ...error: "net.ipv6.bindv6only" is an unknown key failed.