[Buildroot] [PATCH v2 6/7] altera: improve fdisk instructions
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Mar 22 22:58:45 UTC 2016
Hello,
On Tue, 20 Oct 2015 13:32:24 +0200, Jan Viktorin wrote:
> The 't' command expects the number of the target partition
> when there are at least 2 of them. Also note about the arbitrary
> value 9000000.
>
> Signed-off-by: Jan Viktorin <viktorin at rehivetech.com>
> ---
> board/altera/readme.txt | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/board/altera/readme.txt b/board/altera/readme.txt
> index 62c3670..a30e5a9 100644
> --- a/board/altera/readme.txt
> +++ b/board/altera/readme.txt
> @@ -111,10 +111,11 @@ let's assume it is /dev/sdc :
> $ sudo fdisk /dev/sdc
>
> Delete all previous partitions with 'd' then create the new partition table,
> -using these options, pressing enter after each one:
> +using these options, pressing enter after each one (the value 9000000 depends
> +on the size of your SD card):
>
> - * n p 1 9000000 +20480K t 1 b
> - * n p 2 4096 +4496384K t 83
> + * n p 1 9000000 +20480K t b
> + * n p 2 4096 +4496384K t 2 83
> * n p 3 2048 +1024K t 3 a2
Rather than tweaking this horrible thing, what about using sfdisk
instead, or even better, switch to genimage to generate the image ? The
latter would really be the ideal solution (but I would accept a patch
changing to sfdisk in the mean time, if you don't have the time to look
into genimage right now).
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list