From owner-freebsd-arm@freebsd.org Mon Jan 30 06:57:58 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C214CC728B for ; Mon, 30 Jan 2017 06:57:58 +0000 (UTC) (envelope-from heisenbug.bala@gmail.com) Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D1D0F1E for ; Mon, 30 Jan 2017 06:57:58 +0000 (UTC) (envelope-from heisenbug.bala@gmail.com) Received: by mail-io0-x244.google.com with SMTP id q20so13668525ioi.3 for ; Sun, 29 Jan 2017 22:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Bm0ypbgmCP9gw8QxIUPainbbVvqxDLf2RdA3qY/95xQ=; b=eXc7v6fWhtEawTwrytY2qzrxEJqm9ldw/g5EjBRsEq/lf7OUoJ62l8MsAt+PqgOGz+ /hN9ST22RM0CCjMfRkoKdDdy/+C1FE/bk5asZOlv2wFQHEPTrKThwOyFDCaUDfey+fDk /SDSA5OS+8f6x2mbj0wgOWZSc1qDrpZ+QCfYqhUuOZvGB5/O9WRjkvJtK71mMY9gA+vi 6EEvHz67x/Y3kBSA5qDRP5ruF7Lmdat6/nkKl+U4Y5OmTJIl4ijh1Lz3+1rFQ5V0I1pp bZxUIl9ph09ogmiXA5cMEe4WXOKztes1w+/qn7VENO2cae3DYDw8O2q72s2BfVkFJZv1 7Omw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Bm0ypbgmCP9gw8QxIUPainbbVvqxDLf2RdA3qY/95xQ=; b=mG5b23/MRpmayu+4JTCcm6v6fwMPFFylU7r7Pbpa4R5MJY07uXynTol0rs7t5hsTpQ 0et4ZLw22uBv8kuuV/y8Bjm2WQekCg6LQpER2rLmYUzMCMu5SjhO6m7JMi0SuHgVdWp1 aSnRs+ycijzgA2Jx7REA4YJT02fU3fZl9lwroWH6OxUhEcy7jf5TVSKdQDwCKOFejgy3 bqfl4LkvXMllAniqDaP4G0uyHkxduZeQIIwnd4hA004xj97X/DbfVGjsHEC9u3zMPaCg lG23I+jCwzEmgMqzLTW+Vo4d41t7GT5Vwwq+cfCyzOmfABax+0ghjmo2moJKxSnqbecO UcMg== X-Gm-Message-State: AIkVDXJ7LqVB4es9mU/Enc0lrWM4B+x9mP4WbufYqwKQChQRNfrXq2BeMHQMd61QL4tUiW5/OC8mfpNZyZt8PQ== X-Received: by 10.107.20.202 with SMTP id 193mr20278197iou.152.1485759477349; Sun, 29 Jan 2017 22:57:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.70.84 with HTTP; Sun, 29 Jan 2017 22:57:56 -0800 (PST) From: Balaji Palaniswami Date: Sun, 29 Jan 2017 22:57:56 -0800 Message-ID: Subject: Creating bootable vm disk To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 06:57:58 -0000 Hi All, I followed this https://wiki.freebsd.org/FreeBSD/arm/crossbuild. buildworld, buildkernel, distribution, installkernel (TARGET=arm and arch= armv6) went fine. I have compiled stuff at /home/username/nfsroot. Instead of writing into sdcard or USB, i want to create bootable vm disk to boot in bhyve. To create i tried mkimg sudo mkimg -s gpt -b nfsroot/boot/mbr -p freebsd-boot:=nfsroot/boot/gptboot -p freebsd-ufs:=root-file-system.ufs -p freebsd-swap::1G -o fbsd-2.img Here i created root filesystem using makefs which provided the rootfilesystem.ufs. Then i verified those contents by mounting which looks as it is in /nfsroot. But mkimg did not create boot partition properly. Because when i tried to mount those partition it threw I/O error and when i was trying to boot using beehive it says "kernel not found". Is there any script or list of commands to accomplish this task ? Thanks, Balaji