From owner-p4-projects@FreeBSD.ORG Mon Aug 14 12:59:16 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0AEA116A4E1; Mon, 14 Aug 2006 12:59:16 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA92516A4DF for ; Mon, 14 Aug 2006 12:59:15 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5125343D58 for ; Mon, 14 Aug 2006 12:59:15 +0000 (GMT) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7ECxFSv078656 for ; Mon, 14 Aug 2006 12:59:15 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7ECxFnD078653 for perforce@freebsd.org; Mon, 14 Aug 2006 12:59:15 GMT (envelope-from gonzo@FreeBSD.org) Date: Mon, 14 Aug 2006 12:59:15 GMT Message-Id: <200608141259.k7ECxFnD078653@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 103834 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 12:59:16 -0000 http://perforce.freebsd.org/chv.cgi?CH=103834 Change 103834 by gonzo@gonzo_hq on 2006/08/14 12:58:36 o Add link/information for gxemul 0.4.1 patch that made gxemul work with p4 tree. o Add disk image generation/usage information. Affected files ... .. //depot/projects/mips2/src/EMULATION#2 edit Differences ... ==== //depot/projects/mips2/src/EMULATION#2 (text+ko) ==== @@ -22,7 +22,7 @@ Now you have tool required to cross-compile the kernel. It's how it's done: make TARGET_ARCH=mips NO_MODULES=yes \ - MIPS_LITTLE_ENDIAN=yes buildkernel KERNCONF=QEMU + MIPS_LITTLE_ENDIAN=yes buildkernel KERNCONF=MALTA Each time we bring a change to the tree, you'll be forced to synchronize with it (p4 sync command) and rebuild (so repeat last step). @@ -30,7 +30,24 @@ Installation of GXemul ---------------------- - cd /usr/ports/emulators/gxemul && make && make install clean + Get GXemul 0.4.1 from + http://gavare.se/gxemul/src/gxemul-0.4.1.tar.gz + + Apply following patch (see changes below) + http://gonzo.kiev.ua/mips/freebsd-gxemul-0.4.1.patch + - ATA ERROR register on power up should be 1 + - Do not reset ATA ERROR register on read (there is no + such requirement in specs). + - Mark ATA device as legacy device with fixed resources + IRQ14, IO ports etc. for gxemul does not report + wdc resources. + - Change words order for 4-bytes values of ata identify + struct. they seemed to be in wrong order. + - Set EPC if in EXCL mode. This is temporary hack till + we will check it with spec/real hardware though this + change hasn't broken linux/netbsd support. + + ./configure && make && ... save gxemul binary somewhere Running ------- @@ -45,5 +62,13 @@ -v stands for verbose. We're emulating Malta board and 4Kc processor, thus -e malta -C 4Kc is used. -Image is set with -d /dev/null, since we don't need it at this stage. -'kernel' is your kernel image. + +Also you can create disk image to play with. Something like this commands +sequence : + dd if=/dev/zero of=mips.img bs=128M count=4 + mdconfig -a -f mips.img + fdisk -I /dev/md0 + disklabel -w /dev/md0s1 auto + newfs /dev/md0s1a + mdconfig -d -u 0 +Then just change "-d /dev/null" to "-d i:/path/to/mips.img".