[Buildroot] buildroot-2022.02 installation problems

Arnout Vandecappelle arnout at mind.be
Sun Apr 10 13:55:17 UTC 2022


  Hi,

On 04/04/2022 03:23, 길동균 wrote:
> Hello
> 
> I am trying to learn Linux late, but nothing is easy.
> 
> It takes a lot of effort and time to compile individually, such as binutils, 
> gcc, glibc, and kernel, etc which are required to build a Linux environment.
> 
> and then have discovered buildroot and i thought that the buildroot could be a 
> little easier to reach my original purpose.
> 
> I am an engineer, so far I have developed non-linux fields such as avr, stm32f4...
> 
> I'm a beginner and I don't have an embedded board. First, I will create a 
> virtual target using qemu on my laptop (ubuntu 20.04.3),
> 
> and upload the kernel (linux-5.11.22, non-ubuntu) there. To do this, the 

  Note that Buildroot can build the kernel for you as well.

> toolchain and glibc, compiler will be created through buildroot.
> 
> The first time I did it without knowing anything, it was successful, but I can't 
> remember which option I chose.
> 
> Maybe when it first succeeded, i think the gdb option was not checked .
> 
> Afterwards, if I build with the gdb option selected for the target, an error 
> occurs like below:
> 
> ....
> 
> [Makefile:9230: all-gdb] Error 2

  This is not sufficient to debug the issue, you'd have to post a larger part of 
the output. That's probably going to be too big for an email, so put it in a 
pastebin instead and just post the link.

  That said, I could reproduce the issue with GDB 9 (the first config you 
attached), it's a known issue with glibc-2.34 [1] which was fixed in GDB 10.2 
but the patch wasn't backported to GDB 9. So changing the GDB version to 10 
should fix it.

  The second config you included does have GDB 10, but I couldn't reproduce a 
GDB issue there. I haven't attempted to build the full config however, I took a 
shortcut by using the external toolchain.

  So if you want to debug further, please include a more extensive log in 
addition to the configuration. Also, it's better if you attach a defconfig (= 
the result of 'make savedefconfig') instead of all full config, because it's a 
lot smaller.

  BTW I noticed that you have a lot of weird packages selected, like CVS. Do you 
really need all that?


  Regards,
  Arnout

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=27535


> 
> My current purpose is to remotely debug a virtual target program through 
> gdbserver installed on the target based on qemu.
> 
> To do this, gdbserver must be installed on the target, but this does not work.
> 
> Attached is the .config file when the error occurs.
> 
> I look forward to your reply.
> 
> My original job is to control the motor. But before that, I'm already exhausted.
> 
> 
> host: ubuntu 20.04.3, arch: x86_64, x86_64-pc-linux-gnu-gcc
> 
> target: kernel 5.11.22(boot by qemu), arch: x86_64, x86_64-buildroot-linux-gnu-gcc
> 
> =>The command to run qemu will:
> 
> qemu-system-x86_64 -kernel /usr/src/linux-5.11.22/arch/x86/boot/bzImage -m 4096M 
> -smp 1 -boot c -hda /home/dggil/Downloads/buildroot/output/images/rootfs.ext4 
> -append "root=/dev/sda rw acpi=off" -s
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot



More information about the buildroot mailing list