Re: Feedback on my development setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



One issue I'm seeing is that gdb isn't seeing debugging symbols.  I'm
getting the following output with the config linked.

https://pastebin.com/tjq7QtQk

```
anadon@botamon:~/Documents/code/linux$ gdb arch/x86/boot/bzImage
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from arch/x86/boot/bzImage...
(No debugging symbols found in arch/x86/boot/bzImage)
```

On Wed, Apr 17, 2024 at 1:28 PM Samantha Miyamoto
<samantha.miyamoto10@xxxxxxxxx> wrote:
>
> Hi Josh and admins,
>
> I would appreciate reading the docs - I’m pretty new and have dreams of tinkering sometime. Thank you for the work you do.
>
> Sam
>
> On Wed, Apr 17, 2024 at 9:22 AM Josh Marshall <joshua.r.marshall.1991@xxxxxxxxx> wrote:
>>
>> Further tweaking to use sda3 for the root partition in the disk, I get
>> the following: success!
>>
>> This is a pretty good setup now but it could use an automation harness
>> and documentation.  I'm willing to make the script and write-up.
>> Where should I post it?  My inclination would be to submit it
>> somewhere near https://docs.kernel.org/kernel-hacking/hacking.html .
>>
>> On Tue, Apr 16, 2024 at 11:22 AM ngn <ngn@xxxxxx> wrote:
>> >
>> > On Tue, Apr 16, 2024 at 11:03:52AM -0400, Josh Marshall wrote:
>> > > I tried that, but there was some non-descript error with code -2 (any
>> > > major error) about launching the init process for [init,
>> > > rdinit]=/lib/systemd and /usr/bin/bash.  Can you provide a working
>> > > sample?  Sorry if I'm being difficult.  I am really tired of dead ends
>> > > and trying them alone.
>> > >
>> >
>> > If the kernel fails to start the init, try adding the -append "root=/dev/sda rw" option:
>> >
>> > qemu-system-x86_64 -s -cpu host                   \
>> >     -display gtk                                  \
>> >     -vga qxl                                      \
>> >     -accel kvm                                    \
>> >     -m 1G                                         \
>> >     -kernel arch/home/arch/linux/boot/x86/vmlinux \
>> >     -append "root=/dev/sda rw"                    \
>> >     -drive format=qcow2,file=$HOME/Downloads/Arch-Linux-x86_64-basic.qcow
>>





[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux