困っている人がいっぱいいるようだ。 †> 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 LinuxHere, it is assumed that USB-storage such as Compact-Flash-media(MicroDrive) was recognized as /dev/sdb. (2) fdisk# 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) mkfs# mkfs.ext2 /dev/sdb1 # mkswap /dev/sdb2 # mkfs.reiserfs /dev/sdb3 (4) mount# 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/sdb3Please refer to following URL. # 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.
(6) copy some files †# 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.crosslinear 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) lilo# /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 †Installation end. # umount /dev/sdb1 # umount /dev/sdb3 (10) HDD is built into LANDISK/USL-5P. †Boot, login and setup landisk-tools. # landisl-tools.setup 補足 †
comment † |