[meta-xilinx] Using wic to generate sd-image and writing it correctly

Giordon Stark kratsg at gmail.com
Tue Feb 20 13:29:56 PST 2018


Hi Jean-François,

The script looks formatted weird in my email, but how is this script run or
where? Is it part of bitbake, or separately? Do you use the wic output
file, etc...?

Giordon

On Tue, Feb 20, 2018 at 3:25 PM Jean-François Dagenais <
jeff.dagenais at gmail.com> wrote:

>
> On Feb 19, 2018, at 10:21, Giordon Stark <kratsg at gmail.com> wrote:
>
> Mac), I see the two partitions (great!) but the Linux partition only takes
> up 150MB instead of the expected rest of the SD card. Is there a way to
> resize that partition? Is this just not possible, or should I be writing a
> custom wks that defines the size of the second partition? Where should I
> start?
>
>
> Hi Giordon
>
> We use a helper script to perform the raw write, then partition expansion.
> Her’s an extract:
>
>
>
> if $IS_SD_CARD; then
>     printWarning "adjusting sdcard's partitions"
>     set +e
>     command="sudo partprobe /dev/$DEVICE"
>     echo "$command"; $command
>     sudo udevadm settle
>     command="sudo e2fsck -f /dev/${DEVICE}2"
>     echo "$command"; $command
>     command="sudo parted /dev/${DEVICE} resizepart 2 '100%'"
>     echo "$command"; $command
>     sudo udevadm settle
>     command="sudo resize2fs /dev/${DEVICE}2"
>     echo "$command"; $command
>     set -e
>
>     sync
> fi
>
> Hope it helps.
>
> --
Giordon Stark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20180220/ccbc3f9f/attachment.html>


More information about the meta-xilinx mailing list