From owner-freebsd-questions@FreeBSD.ORG Wed Jul 16 07:52:02 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A6BCDC3 for ; Wed, 16 Jul 2014 07:52:02 +0000 (UTC) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DD1DF29FD for ; Wed, 16 Jul 2014 07:52:01 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id q59so485336wes.27 for ; Wed, 16 Jul 2014 00:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nxhE+cHRdxcLSYvkogOIExTtZhmvINJCOPb7M3QRTAk=; b=c0seh1tJmyA4oh1lvpPZmFBbprei3V80pm7H5FOVt7C0+DhlIgpMzUuHyFyUlT4Kka JyEfWEjioizM2LDEytRbIHjC8lOgjf4btACQtai8IMbCkGIwE5/PvkUbXIoWnatX1W5d AyGddLZyjucON0e7niI9Bu56yzoISdDxCPDKLsJOF0Isy0Y+eh53mI1/MlNCih1qchOc r13dkS+sOiuLRJZTNw1SlILKZszQdiKPcLLi0Q+/Uv6tcnLhfNZ0k1iok4TsbFTbls9J JyfTo5TjgSh4BZ0FooPVCgpr55sPFVnZ12UIJO1B+2QRXbimgskLgY4Mns8RZjYXxJBt jKhg== MIME-Version: 1.0 X-Received: by 10.194.90.7 with SMTP id bs7mr32971489wjb.25.1405497119182; Wed, 16 Jul 2014 00:51:59 -0700 (PDT) Received: by 10.180.207.42 with HTTP; Wed, 16 Jul 2014 00:51:59 -0700 (PDT) Date: Wed, 16 Jul 2014 17:51:59 +1000 Message-ID: Subject: FreeBSD 10.0, booting with grub (grub2) From: Noel Hunt To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 07:52:02 -0000 I have a FreeBSD 10.0/Solaris 11.1 dual-boot machine. Solaris was installed after FreeBSD and since it uses grub by default I am using that to boot. Currently I am just invoking /boot/loader from grub.cfg in Solaris, but I would like to boot directly. This just doesn't work. I have installed grub2 on FreeBSD via ports, and run `grub-mkconfig' to get some entries for grub.cfg which I have simply applied to the Solaris installation (via the custom.cfg script). But, these entries just don't work. I have tried running each command by hand at the grub CLI with debugging but after all the debug output is printed the screen goes black and the machine reverts to the normal power-on screen, and the boot selection process starts all over again. This is the entry: menuentry 'FreeBSD, with kFreeBSD kernel' { insmod part_gpt insmod ufs2 search --no-floppy --fs-uuid --set=root 53a87fa1e9b6256d echo 'Loading kernel of FreeBSD kernel ...' kfreebsd /boot/kernel/kernel kfreebsd_loadenv /boot/device.hints kfreebsd_module_elf /boot/kernel/ufs.ko set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/53a87fa1e9b6256d set kFreeBSD.vfs.root.mountfrom.options=rw } There is a similar entry for single-user boot with the appropriate flag for the kernel. If I could see what actually happens at the grub `boot' I might be able to fix this, but it doesn't look like there are any other debug mechanisms for grub apart from `set debug=all'. I tried to add different flags to the kernel invocation, -v and -d but nothing happened. The screen goes black and reverts to a normal grub boot menu. I was wondering if there may be problems with 32-bit versus 64-bit binaries here. All the grub modules are 32-bit ELF. Or are there other modules that need to be loaded? Any help would be much appreciated. Noel Hunt