Liming brought up a kernel selection case when running qemu images while discussing bug 2155. Filing it separate to keep track: "Hi Belen, The patch I had submitted has some case I don't care as your metioned, Thanks! but there has another case need to be concern, and this case can effect how to set the work way about 'running image' or 'deploy image'.please to review. Maybe there has someone want to running the image only use the image which be build by hob and with their own kernel file. the current work way of clicked the 'running image' as this bug design is: if there has only one qemu image and one kernel file after building, it can be run by clicked the 'running image' button directly. can not support this case.please to refer it?(metioned by Dongxiao)" Design needs to look at this case and suggest a solution. Belen
I listed current handler and original way for discuss: After building success, we will popup the 'build detail' page with the listed builded files, if selected file is a runable qemu image, it need to select the corresponding kernel to run. current handler: if there has one only kernel file and with same machine configuration, it can be runnable directly, no need to select. original handler: always need to select the kernel by maunually questions concerned: 1)maybe there has a user don't want to use the kernel we provied in our folder, 2)maybe that kernel we had provided is an bad one, so if permit it's runnable directly, then no chance to select a new one for user in code.
Give it to Belen to have a look and give a suggestion.
Hi Belen, the new patch had be merged to poky/master, which combine the original bug's request I think(#2155 it want to give user an convienice function for clicked this button), please to test and review, thanks! http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0d210ff8e84ee75104f5b3e7a2c4722c87a84875
Created attachment 537 [details] the image details screen including an option to change the kernel Hi Liming, I don't think presenting a file selection dialog after clicking 'Run image' for people to select the kernel is a good idea. Judging from what I saw during the usability testing at OSTS in March, people didn't seem to understand what they needed to select, and often selected a kernel randomly without really knowing what they were doing. Identifying the right kernel for the image they wanted to run seemed difficult, since kernel names and image names are not very human friendly at this point. What I think we should do is avoiding the kernel selection step altogether, by providing details of which kernel is going to be used for running the image, and giving people the possibility to change if they want to do so. I've attached a mock up that shows how this could be done in the image details screen. I am assuming we know which kernel was generated during the building process, since both image files and kernel file seem to have similar names. Let me know what you think. Cheers Belen
Added a kernel box on image detail page, and be merged to master http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e91f1e28bc1742f010225c49410e49b1257c15c7
This is fixed. Thanks!