* Creating am335x sdcard images with wic
@ 2014-09-18 13:33 Alexandre Belloni
2014-09-18 21:46 ` Maciej Borzecki
0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Belloni @ 2014-09-18 13:33 UTC (permalink / raw)
To: meta-ti
Hi,
I tried multiple ways of create sd card images for my am335x based
platform.
I tried to revive the sdimg image type, using the last patch from
Otavio [1]
This didn't generate bootable images.
Now, I'm trying to use wic, based on this patch from Maciej [2].
I have multiple issue, the first one is making wic load the plugin. I
have to apply the patch on poky rather than on my own layer to get wic
to load that plugin, is that intended ?
Next, I'm still not able to generate a bootable image. I tracked it down
to an issue with the fat filesystem rather than the partitionning
itself.
1/ With wic, this is the command line to generate the FAT
filesystem:
mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot -C /var/tmp/wic/build/boot 10240
This results in an image that doesn't boot.
2/ On the same SD card, if I use:
mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot /dev/mmcblk0p1
This results in an SD card that can boot, the MLO starts, loads and
starts u-boot.img but then it fails to load my dtb from the FAT
filesystem because somehow, it only has short names.
3/ On the same SD card, if I manually format and copy files
mkfs.vfat -F 16 /dev/mmcblk0p1 -n boot
mount /dev/mmcblk0p1 /mnt
cp $BUILDDIR/tmp/deploy/images/beaglebone/{MLO,u-boot.img,zImage} /mnt
cp $BUILDDIR/tmp/deploy/images/beaglebone/*.dtb /mnt
umount /dev/mmcblk0p1
This one just boots fine, with long names.
Any insight?
[1] https://lists.yoctoproject.org/pipermail/meta-ti/2011-December/000234.html
[2] https://lists.yoctoproject.org/pipermail/meta-ti/2014-July/004901.html
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Creating am335x sdcard images with wic
2014-09-18 13:33 Creating am335x sdcard images with wic Alexandre Belloni
@ 2014-09-18 21:46 ` Maciej Borzecki
2014-09-19 8:00 ` Alexandre Belloni
0 siblings, 1 reply; 4+ messages in thread
From: Maciej Borzecki @ 2014-09-18 21:46 UTC (permalink / raw)
To: meta-ti
On Thursday 18 of September 2014 15:33:55 Alexandre Belloni wrote:
> Hi,
>
> I tried multiple ways of create sd card images for my am335x based
> platform.
>
> I tried to revive the sdimg image type, using the last patch from
> Otavio [1]
>
> This didn't generate bootable images.
>
> Now, I'm trying to use wic, based on this patch from Maciej [2].
> I have multiple issue, the first one is making wic load the plugin. I
> have to apply the patch on poky rather than on my own layer to get wic
> to load that plugin, is that intended ?
>
> Next, I'm still not able to generate a bootable image. I tracked it down
> to an issue with the fat filesystem rather than the partitionning
> itself.
>
> 1/ With wic, this is the command line to generate the FAT
> filesystem:
>
> mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot -C /var/tmp/wic/build/boot
> 10240
With current master this line should look more like this:
mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot -C
/var/tmp/wic/build/fs_boot.vfat 10240
What revision of poky do you use?
>
> This results in an image that doesn't boot.
>
>
> 2/ On the same SD card, if I use:
>
> mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot /dev/mmcblk0p1
>
> This results in an SD card that can boot, the MLO starts, loads and
> starts u-boot.img but then it fails to load my dtb from the FAT
> filesystem because somehow, it only has short names.
>
>
> 3/ On the same SD card, if I manually format and copy files
> mkfs.vfat -F 16 /dev/mmcblk0p1 -n boot
> mount /dev/mmcblk0p1 /mnt
> cp $BUILDDIR/tmp/deploy/images/beaglebone/{MLO,u-boot.img,zImage} /mnt
> cp $BUILDDIR/tmp/deploy/images/beaglebone/*.dtb /mnt
> umount /dev/mmcblk0p1
>
> This one just boots fine, with long names.
>
> Any insight?
>
> [1]
> https://lists.yoctoproject.org/pipermail/meta-ti/2011-December/000234.html
> [2] https://lists.yoctoproject.org/pipermail/meta-ti/2014-July/004901.html
--
Maciej Borzęcki
Senior Software Engineer Open-RnD Sp. z o.o.
www.open-rnd.pl, Facebook, Twitter
mobile: +48 telefon, fax: +48 42 657 9079
Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem lub
poufne informacje i została wysłana wyłącznie do wiadomości i użytku osób, do
których została zaadresowana. Jeśli wiadomość została otrzymana przypadkowo
zabrania się jej kopiowania lub rozsyłania do osób trzecich. W takim przypadku
uprasza się o natychmiastowe zniszczenie wiadomości oraz poinformowanie
nadawcy o zaistniałej sytuacji za pomocą wiadomości zwrotnej. Dziękujemy.
This message, including any attachments hereto, may contain privileged or
confidential information and is sent solely for the attention and use of the
intended addressee(s). If you are not an intended addressee, you may neither
use this message nor copy or deliver it to anyone. In such case, you should
immediately destroy this message and kindly notify the sender by reply email.
Thank you.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Creating am335x sdcard images with wic
2014-09-18 21:46 ` Maciej Borzecki
@ 2014-09-19 8:00 ` Alexandre Belloni
2014-09-19 8:21 ` Maciej Borzecki
0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Belloni @ 2014-09-19 8:00 UTC (permalink / raw)
To: Maciej Borzecki; +Cc: meta-ti
Hi,
On 18/09/2014 at 23:46:02 +0200, Maciej Borzecki wrote :
> On Thursday 18 of September 2014 15:33:55 Alexandre Belloni wrote:
> > 1/ With wic, this is the command line to generate the FAT
> > filesystem:
> >
> > mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot -C /var/tmp/wic/build/boot
> > 10240
>
> With current master this line should look more like this:
> mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot -C
> /var/tmp/wic/build/fs_boot.vfat 10240
>
> What revision of poky do you use?
>
I'm currently using daisy.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Creating am335x sdcard images with wic
2014-09-19 8:00 ` Alexandre Belloni
@ 2014-09-19 8:21 ` Maciej Borzecki
0 siblings, 0 replies; 4+ messages in thread
From: Maciej Borzecki @ 2014-09-19 8:21 UTC (permalink / raw)
To: Alexandre Belloni; +Cc: meta-ti
On Friday 19 of September 2014 10:00:25 Alexandre Belloni wrote:
> Hi,
>
> On 18/09/2014 at 23:46:02 +0200, Maciej Borzecki wrote :
> > On Thursday 18 of September 2014 15:33:55 Alexandre Belloni wrote:
> > > 1/ With wic, this is the command line to generate the FAT
> > > filesystem:
> > >
> > > mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot -C
> > > /var/tmp/wic/build/boot
> > > 10240
> >
> > With current master this line should look more like this:
> > mkdosfs -F 16 -n boot -d /var/tmp/wic/build/boot -C
> > /var/tmp/wic/build/fs_boot.vfat 10240
> >
> > What revision of poky do you use?
>
> I'm currently using daisy.
I'm afraid that a number of patches to wic are in master only at the moment.
You can try backporting them, wic is kind of self contained so I'd expect it
to be relatively easy. Alternatively, you could use your 1.6 build with wic
from master and pass paths to sysroot (see --help for -k, -r, -n), though I
haven't tested this myself.
If you get into problems try catching me in #yocto, my nick is bboozzo.
--
Maciej Borzęcki
Senior Software Engineer Open-RnD Sp. z o.o.
www.open-rnd.pl, Facebook, Twitter
mobile: +48 telefon, fax: +48 42 657 9079
Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem lub
poufne informacje i została wysłana wyłącznie do wiadomości i użytku osób, do
których została zaadresowana. Jeśli wiadomość została otrzymana przypadkowo
zabrania się jej kopiowania lub rozsyłania do osób trzecich. W takim przypadku
uprasza się o natychmiastowe zniszczenie wiadomości oraz poinformowanie
nadawcy o zaistniałej sytuacji za pomocą wiadomości zwrotnej. Dziękujemy.
This message, including any attachments hereto, may contain privileged or
confidential information and is sent solely for the attention and use of the
intended addressee(s). If you are not an intended addressee, you may neither
use this message nor copy or deliver it to anyone. In such case, you should
immediately destroy this message and kindly notify the sender by reply email.
Thank you.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-19 8:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-18 13:33 Creating am335x sdcard images with wic Alexandre Belloni
2014-09-18 21:46 ` Maciej Borzecki
2014-09-19 8:00 ` Alexandre Belloni
2014-09-19 8:21 ` Maciej Borzecki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.