Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 15271] New: no start-qemu.sh
@ 2023-01-22 13:54 bugzilla
  2023-01-24  8:25 ` [Buildroot] [Bug 15271] " bugzilla
  2023-01-28 20:34 ` bugzilla
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla @ 2023-01-22 13:54 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=15271

            Bug ID: 15271
              Host: Qemu
             Build: Ubuntu 22 X86_64
           Summary: no start-qemu.sh
           Product: buildroot
           Version: 2022.11
          Hardware: All
                OS: Linux
            Status: NEW
          Keywords: FIXME
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: glscene2010@gmail.com
                CC: buildroot@uclibc.org
  Target Milestone: ---

Created attachment 9481
  --> https://bugs.busybox.net/attachment.cgi?id=9481&action=edit
usage: make BR2_EXTERNAL=/mnt/ramdisk/my_external_tree -C buildroot
my_qemu_x86_defconfig

Buildroot can't produce start-qemu.sh with my my_qemu_x86_defconfig. Why?

git clone https://github.com/buildroot/buildroot
make qemu_x86_defconfig -C buildroot
make -C buildroot

There is buildroot/output/images/start-qemu.sh (and also rootfs.ext2 bzImage).
Ok. Next:

make clean -C buildroot
#copy linux.config with new name
cp /mnt/ramdisk/buildroot/board/qemu/x86/linux.config
/mnt/ramdisk/my_external_tree/board/my_company/my_board/my_linux.config

#copy qemu_x86_defconfig with new name
cp /mnt/ramdisk/buildroot/configs/qemu_x86_defconfig
/mnt/ramdisk/my_external_tree/configs/my_qemu_x86_defconfig

nano /mnt/ramdisk/my_external_tree/configs/my_qemu_x86_defconfig
# and change BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE like this
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="/mnt/ramdisk/my_external_tree/board/my_company/my_board/my_linux.config",
save

make BR2_EXTERNAL=/mnt/ramdisk/my_external_tree -C buildroot
my_qemu_x86_defconfig
make -C buildroot

There is no buildroot/output/images/start-qemu.sh ("No Qemu cmd line found,
can't test"). There are buildroot/output/images/bzImage and
buildroot/output/images/rootfs.ext2 only. Why?

And also I see another thing like a bug:
--make clean doesn't remove .br2-external files--

After my success building
make clean -C buildroot
make BR2_EXTERNAL=/mnt/ramdisk/my_external_tree -C buildroot
my_qemu_x86_defconfig
make -C buildroot

I try
make clean -C buildroot

But in /mnt/ramdisk/buildroot/output/ there are 9 .br2-external... files. Why 
make clean -C buildroot
doesn't remove this files?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 15271] no start-qemu.sh
  2023-01-22 13:54 [Buildroot] [Bug 15271] New: no start-qemu.sh bugzilla
@ 2023-01-24  8:25 ` bugzilla
  2023-01-28 20:34 ` bugzilla
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla @ 2023-01-24  8:25 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=15271

--- Comment #1 from Andrei Cherniaev <glscene2010@gmail.com> ---
There is interesting code in file buildroot/board/qemu/post-image.sh 

# Search for "# qemu_*_defconfig" tag in all readme.txt files.
# Qemu command line on multilines using back slash are accepted.
QEMU_CMD_LINE=$(sed -r ':a; /\\$/N; s/\\\n//; s/\t/ /; ta; /#
'${DEFCONFIG_NAME}'$/!d; s/#.*//' ${README_FILES})

This script search "qemu_..._defconfig" in readme.txt files. Looks very bad
idea... May be buildroot project should use runqemu python script from yocto
https://docs.yoctoproject.org/dev-manual/qemu.html#qemu-command-line-syntax
?
runqemu script use .conf files, for example qemux86.conf file
https://github.com/yoctoproject/poky/blob/master/meta/conf/machine/qemux86.conf

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 15271] no start-qemu.sh
  2023-01-22 13:54 [Buildroot] [Bug 15271] New: no start-qemu.sh bugzilla
  2023-01-24  8:25 ` [Buildroot] [Bug 15271] " bugzilla
@ 2023-01-28 20:34 ` bugzilla
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla @ 2023-01-28 20:34 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=15271

Thomas Petazzoni <thomas.petazzoni@bootlin.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #2 from Thomas Petazzoni <thomas.petazzoni@bootlin.com> ---
Thanks for your report, but I'm afraid there is no bug in what you're
reporting:

- We definitely need some sort of hint that tells us whether a start-qemu.sh
script should be produced or not, and we have chosen this hint to be "the
defconfig starts with qemu_". This is certainly an arbitrary choice, but we
anyway had to make an arbitrary choice. In addition, this generation of
start-qemu.sh script is really an "internal" Buildroot feature to help users
use our stock qemu_*_defconfig. For your own defconfigs, you can provide your
own start-qemu.sh script.

- The fact that .br2-external files are preserved on make clean is normal, just
like we preserve your .config file. This way, you can restart a build with the
same configuration/BR2_EXTERNAL after a "make clean". This is the intended
behavior.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-28 20:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-22 13:54 [Buildroot] [Bug 15271] New: no start-qemu.sh bugzilla
2023-01-24  8:25 ` [Buildroot] [Bug 15271] " bugzilla
2023-01-28 20:34 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox