public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] 2TB disks
@ 2015-08-19 19:15 Stefan Monnier
  2015-08-25 19:24 ` [U-Boot] [PATCH] Don't wrap to negative after 2G sectors Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2015-08-19 19:15 UTC (permalink / raw)
  To: u-boot

I just bumped into a problem where U-Boot refused to boot from my disk's
second partition because the sector number is "negative".

More specifically, my disk drive is 2TB, which means that the number of
512B blocks fits into an unsigned 32bit int but not into a signed 32bit
int. U-boot's "scsi part" displays the size (in blocks) correctly, but
the size of the first partition (which is around 1.8TB) is printed as
a negative number, and so is the start sector of the second partition.

This was tested on a BananaPi using v2015-07.


        Stefan

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot] Fix wrap around bug in MBR sector counts
@ 2015-11-25 17:08 Stefan Monnier
  2015-11-25 17:08 ` [U-Boot] [PATCH] Don't wrap to negative after 2G sectors Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2015-11-25 17:08 UTC (permalink / raw)
  To: u-boot

I just bumped into a problem where U-Boot refused to boot from my disk's
second partition because the sector number is "negative".

More specifically, my disk drive is 2TB, which means that the number of
512B blocks fits into an unsigned 32bit int but not into a signed 32bit
int. U-boot's "scsi part" displays the size (in blocks) correctly, but
the size of the first partition (which is around 1.8TB) is printed as
a negative number, and so is the start sector of the second partition.

This was tested on a BananaPi using v2015-07.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-01-13 21:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 19:15 [U-Boot] 2TB disks Stefan Monnier
2015-08-25 19:24 ` [U-Boot] [PATCH] Don't wrap to negative after 2G sectors Stefan Monnier
2015-09-03 14:17   ` Stefan Monnier
2015-09-09  0:05   ` Stefan Monnier
2015-10-03 20:58   ` Stefan Monnier
2015-10-03 22:03     ` Fabio Estevam
2016-01-13 15:54   ` Tom Rini
2016-01-13 19:22     ` Stefan Monnier
2016-01-13 21:55   ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2015-11-25 17:08 [U-Boot] Fix wrap around bug in MBR sector counts Stefan Monnier
2015-11-25 17:08 ` [U-Boot] [PATCH] Don't wrap to negative after 2G sectors Stefan Monnier
2016-01-12 15:29   ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox