From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754050AbbGCBYJ (ORCPT ); Thu, 2 Jul 2015 21:24:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42195 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754270AbbGCBYA (ORCPT ); Thu, 2 Jul 2015 21:24:00 -0400 Message-ID: <5595E42F.2050301@redhat.com> Date: Thu, 02 Jul 2015 18:23:59 -0700 From: Dan Mick User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: Re: failing while writing to disk with BIOS in realmode setup References: <5594B68A.3000205@redhat.com> In-Reply-To: <5594B68A.3000205@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/01/2015 08:56 PM, Dan Mick wrote: > What might I be doing wrong? Why won't this code succeed to write to > the (otherwise empty) drive 1 from kernel setup's main? Indeed it was something very dumb, as hpa was kind enough to point out: grub2 with 'linux' never runs the 16-bit realmode setup code. at all. Changing to linux16/initrd16 is making much more sense. Many thanks to hpa.