困っている人がいっぱいいるようだ。 Edit

> Dear Sir,
>
> I've seen your efforts in patching the kernel to work on the USL-5P
> board. I'm also working on it, but testing my kernels is a bit
> difficult, as I can't run LILO to write its config onto the USL-5P's
> flashdisk in another box.
> Could You please tell me if it is possible to run LILO on a PC - where
> my card reader is - to write onto the flashdisk?
>
> Regards,

(1) mount your new HDD on PC's LinuxEdit

Here, it is assumed that USB-storage such as Compact-Flash-media(MicroDrive) was recognized as /dev/sdb.

(2) fdiskEdit

# fdisk /dev/sdb
# fdisk -l /dev/sdb
Disk /dev/sdb: 2047 MB, 2047868928 bytes
64 heads, 63 sectors/track, 992 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          49       98752+  83  Linux
/dev/sdb2              50          98       98784   82  Linux swap / Solaris
/dev/sdb3              99         874     1564416   83  Linux

(3) mkfsEdit

# mkfs.ext2      /dev/sdb1
# mkswap         /dev/sdb2
# mkfs.reiserfs  /dev/sdb3

(4) mountEdit

# mkdir /mnt/rootfs
# mount -t reiserfs /dev/sdb3 /mnt/rootfs

# mkdir /mnt/rootfs/boot
# mount /dev/sdb1 /mnt/rootfs/boot

(5) install debian26 to /dev/sdb3Edit

Please refer to following URL.
linux and tools for LANDISK(SH4)

# tar vxfzp base26-sh4-20070709-etch.tgz -C /mnt/rootfs
# mv /mnt/rootfs/debian26/* /mnt/rootfs/
# rm -rf /mnt/rootfs/debian26

and modify following files.

  • /mnt/rootfs/etc/hosts
  • /mnt/rootfs/etc/hostname
  • /mnt/rootfs/etc/resolv.conf
  • /mnt/rootfs/etc/network/interfaces
  • /mnt/rootfs/etc/hosts.allow
  • /mnt/rootfs/etc/fstab
    /dev/sda3     /            reiserfs    defaults        0 1
    /dev/sda2     swap         swap        defaults        0 0
    

(6) copy some files Edit

# cp /mnt/rootfs/etc/lilo.conf    /mnt/rootfs/etc/lilo.conf.cross
# cp /mnt/rootfs/boot/boot.b-selk /mnt/rootfs/boot/boot.b

(7) vi /mnt/rootfs/etc/lilo.conf.crossEdit

linear
boot=/dev/sdb
disk=/dev/sdb
bios=0x80
timeout=50
install=/boot/boot.b
map=/boot/map
default=debian26

image=/boot/vmlinuz-2.6.22-landisk
        label=debian26
        root=/dev/sda3
        read-only
        append="mem=64M console=ttySC1,9600 root=/dev/sda3"

(8) liloEdit

# /mnt/rootfs/sbin/lilo.x86 -r /mnt/rootfs -C /etc/lilo.conf.cross

Please check MBR if you want. and compare with boot.b-selk and MBR

# dd if=/dev/hdb bs=512 count=1 | od -Ax -t xC
# cat boot.b-selk | od -Ax -t xC

(9) umount Edit

Installation end.

# umount /dev/sdb1
# umount /dev/sdb3

(10) HDD is built into LANDISK/USL-5P. Edit

Boot, login and setup landisk-tools.

# landisl-tools.setup

補足 Edit


comment Edit

  • おお、英語だ。ありがとうございます。これからここを案内すれば済むです。 -- kinneko? 2007-05-28 (月) 13:02:59
  • 2ヶ月に一度くらいの頻度でこの手の質問メールを受け取っています。停止しているときが多いので、もしよろしければ、SOMETANKSの人柱欄にでもにコピーしていいですか? -- 管理人? 2007-05-28 (月) 20:02:14
  • コピペ、ご自由にどうぞ(^^)。 -- kinneko? 2007-06-04 (月) 14:55:07

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-02-22 (月) 11:44:16 (5340d)