[PATCH 0/2] x86 minor fixes and questions

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 11 02:57:38 EST 2013


Hi Thomas,

On Fri, Nov 08, 2013 at 07:30:37PM +0100, Thomas Petazzoni wrote:
> Hello,
> 
> Here are two minor fixes for the x86 support. The first patch avoids
> linking problems on recent gcc versions, and the second one fixes the
> documentation.
> 
> Also, I've tested the x86 support under Qemu, it starts fine. Thanks
> to the bios disk driver, it detects one hard disk drive. However,
> since the driver doesn't set num_blocks, the disk size is zero, and no
> partition can be detected. Is this bios disk driver supposed to work
> to read the entire hard drive, access a filesystem and load the kernel
> image, or is the x86 support generally too limited for this at the
> moment?

Does your disk contain a valid partition table? There's no way to
properly detect the disk size, so barebox guesses the size based on the
last partition on the disk. This fails of course on an unpartitioned
device. See disk_guess_size().

But indeed, the x86 support is quite limited.

> Thomas Petazzoni (2):
>   scripts/setupmbr: fix documentation
>   arch/x86: fix link with recent gcc

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list