Logical partition on barebox

Sascha Hauer s.hauer at pengutronix.de
Mon Dec 15 01:38:17 PST 2014


On Thu, Dec 11, 2014 at 01:06:18PM +0100, Victorien Vedrine wrote:
> Thanks,
> 
> I debug common/partitions/dos.c and the problem is
> "dos_extended_partition() is not executed. I found why :
> On dos_partition function there is a test to know the type of
> partition (line 212). The comment says "partition type 0x05 or 0x0f
> can be extended and just 0x0f is tested. The type extended partition
> on my SD card is 0x05 and then it doesn't work.
> I modify the source code of common/partitions/dos.c with
>             if ((pentry.dos_partition_type ==
> 0x0f)||(pentry.dos_partition_type == 0x05)) {
> and now it's work.

Nice. Care to send a patch to fix this upstream?

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