bootloader for NetBSD/arc
Izumi Tsutsui <[email protected]> Thu, 21 Apr 2005 02:35:07 +0900
| Newsgroups | gmane.os.netbsd.ports.arc |
|---|---|
| Message-ID | <[email protected]> |
In article <[email protected]> I wrote: > Today I've managed to get working kernel bootloader for NetBSD/arc, > which is based on sgimips bootloader: > http://www.ceres.dti.ne.jp/~tsutsui/netbsd/boot-arc-20050416.tar.gz > http://www.ceres.dti.ne.jp/~tsutsui/netbsd/boot-arc-20050416.gz Committed. If you see any problem, please report via send-pr(1). The ARCBIOS can only load ECOFF binaries from MSDOSFS (i.e. FAT) on floppy disk or harddisk with fdisk partition, or iso9660 on CD-ROMs, so the bootloader have to be put in such file systems. The kernel should be placed in the first NetBSD partition in the disklabel, and the disk has to have the fdisk (MBR) partition. If both bootloader (boot) and kernel (netbsd) are on CD-ROM connected on scsi controller 1 as scsi id 4, you have to enter the following command on "Run a program" prompt: scsi(1)cdrom(4)fdisk()boot scsi(1)cdrom(4)fdisk()netbsd If the bootloader (boot) is in the FAT partition (fdisk partition 1) on SCSI disk id 0, and kernel (netbsd) is placed on the NetBSD parition (fdisk partition 2) on the same disk, you have to enter: scsi(0)disk(0)rdisk()partition(1)boot scsi(0)disk(0)rdisk()partition(2)netbsd The bootloader also checks OSLOADPARTITION and OSLOADFILENAME in boot args or environment variables, so you can also set both partition and kenrel filename by ARCBIOS startup setup. Note device pathnames are implementation dependent. Some machines/devices may require "multi()", "eisa()", "dti()" or something for adapter names. Please refer the ARC specification http://www.netbsd.org/Documentation/Hardware/Machines/ARC/ for details. --- Izumi Tsutsui