*困っている人がいっぱいいるようだ。 [#s5b20dcc]
#pre{{
> 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 Linux
Here, it is assumed that USB-storage such as Compact-Flash-media(MicroDrive) was recognized as /dev/sdb.
**(2) fdisk
#pre{{
# fdisk /dev/sdb
}};
#pre{{
# 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) mkfs
#pre{{
# mkfs.ext2 /dev/sdb1
# mkswap /dev/sdb2
# mkfs.reiserfs /dev/sdb3
}};
**(4) mount
#pre{{
# 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/sdb3
Please refer to following URL.~
[[linux and tools for LANDISK(SH4)]]
#pre{{
# 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
#pre{{
/dev/sda3 / reiserfs defaults 0 1
/dev/sda2 swap swap defaults 0 0
}}
**(6) copy some files [#fe377d5c]
#pre{{
# 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.cross
#pre{{
linear
boot=&color(red){/dev/sdb};
disk=&color(red){/dev/sdb};
bios=0x80
timeout=50
install=&color(red){/boot/boot.b};
&color(red){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) lilo
#pre{{
# /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
#pre{{
# dd if=/dev/hdb bs=512 count=1 | od -Ax -t xC
# cat boot.b-selk | od -Ax -t xC
}}
**(9) umount [#dcb673a2]
Installation end.~
#pre{{
# umount /dev/sdb1
# umount /dev/sdb3
}}
**(10) HDD is built into LANDISK/USL-5P. [#c5480e4a]
Boot, login and setup landisk-tools.
#pre{{
# landisl-tools.setup
}}
** 補足 [#bab1bc69]
-自分ではテストしていません。
-参考文献
--kinnekoの日記--[[■[SH4] どっかの国のPX-EH25L買った人用に書いたものを追試する:http://d.hatena.ne.jp/kinneko/20070510/p1]]
~
*comment [#v95e9f80]
- おお、英語だ。ありがとうございます。これからここを案内すれば済むです。 -- [[kinneko]] &new{2007-05-28 (月) 13:02:59};
- 2ヶ月に一度くらいの頻度でこの手の質問メールを受け取っています。停止しているときが多いので、もしよろしければ、SOMETANKSの人柱欄にでもにコピーしていいですか? -- [[管理人]] &new{2007-05-28 (月) 20:02:14};
- コピペ、ご自由にどうぞ(^^)。 -- [[kinneko]] &new{2007-06-04 (月) 14:55:07};