[bitbake-devel] [PATCH] Fix bug 8940 - Alow Hob to run images on a custom simulator, other than qemu

Mirela Rabulea mirela.rabulea at nxp.com
Thu Feb 11 11:19:13 UTC 2016


Hi Joshua

> -----Original Message-----
> From: Joshua G Lock [mailto:joshua.g.lock at linux.intel.com]
> Sent: Wednesday, February 10, 2016 11:11 PM
> To: Mirela Rabulea <mirela.rabulea at nxp.com>; bitbake-
> devel at lists.openembedded.org
> Cc: Roman, Alexandru CostinX <alexandru.costinx.roman at intel.com>;
> Voiculescu, BogdanX A <bogdanx.a.voiculescu at intel.com>; Nicolae
> Manescu <nicu.manescu at nxp.com>; Alexandru Purice
> <alexandru.purice at nxp.com>
> Subject: Re: [bitbake-devel] [PATCH] Fix bug 8940 - Alow Hob to run images
> on a custom simulator, other than qemu
> 
> These changes look good, thanks.
> 

Thanks again for reviewing.

> I've tested this patch a couple of ways. If I launch Hob and press "Images" to
> load an existing image from somewhere in my filesystem things seem to
> work as expected.
> 

This is the way I used it too, at least for the "custom" case.

> However if I build an image (core-image-minimal) for a non-qemu machine
> (genericx86-64), once the build is done I can see 'Run custom image'
> button (between 'Build new image' and 'Deploy image').
> 

I never reached a scenario in which 'Deploy image' button became available, I hope this is ok, I mean run and deploy are not mutually exclusive...

> The 'Run script' box indicates that the script is pointing to 'runqemu'

Yes, this was my intention, although the user should pick-up here his own script, the 'runqemu' is served here as an example to start with.

> but when I click 'Run custom image' I get a dialogue asking to 'Select the
> image file you want to run:' with 'Cancel' and 'Run image' buttons but
> nothing listing selectable images (I even tried resizing the dialogue, to no
> avail). If I proceed to click 'Run image' button the 'Usb image maker'
> dialogue is presented.
> 

That must come from poky\bitbake\lib\bb\ui\crumbs\imagedetailspage.py, show_builded_images_dialog(). I'm not sure how I can reproduce this without waiting a day to build another image, and without some tens of GB which I don't know if I have. I will try it but it will take a while. In the meantime, if you still have the environment, could you add this print in your imagedetailspage.py, it will let us see how many toggled images you have (I suspect is more than 1), and which ones (it shows up in the terminal where hob was started):
            self.image_store.append({'name': image_name,
                                    'type': image_type,
                                    'size': image_size,
                                    'is_toggled': is_toggled,
                                    'action_attr': image_attr,})

            print "image_store.append(image_name=", image_name, " image_type=", image_type, " image_size=", image_size, " is_toggled=", is_toggled, " image_attr=", image_attr, ")" 

Thanks,
Mirela


More information about the bitbake-devel mailing list