Re: [gentoo-user] What does emerge status R mean?

2021-05-14 Thread Dan Egli
The R status means REBUILD. Usually, if it's an @world it's pulling that 
in because something about that package changed and so it needs to 
rebuild it. The --noreplace option would block that if portage didn't 
think it was needed. Based on your options, I'd say that it's probably a 
USE flag was changed. I don't use binpkgs myself, preferring to compile 
except in certain circumstances (can we say RUST!?) that I need to use a 
-bin variant. You can try without it, but I recommend leaving your 
change-use and newuse flags in place and letting the system rebuild xmodmap.


On 5/14/2021 3:54 AM, n952162 wrote:

Why does portage want to build this:

[ebuild   R    ] x11-apps/xmodmap-1.0.10::gentoo 0 KiB

given this, already installed:

/var/db/pkg/x11-apps/xmodmap-1.0.10/xmodmap-1.0.10.ebuild

and these on my binary server (which is apparently not working properly
for reasons I'm trying to track down):

 binpkgs/x11-apps/xmodmap-1.0.10.tbz2
 distfiles/xmodmap-1.0.10.tar.bz2

When I remove these options, it doesn't want to anymore:

    #  --changed-use \
    #  --changed-deps \
    #  --newuse \
    #  --backtrack=100 \
    #  --deep \

Which option was it, I wonder, which triggered the build, and would it
bring me anything?

The options still used are:

emerge \
  --getbinpkg y \
  -v \
  --tree \
  --update \
  --noreplace \
  --verbose-conflicts \
  --keep-going \
  --with-bdeps=y \
  @world



--
Dan Egli
From my Test Server



OpenPGP_0x11B7451DF2015959.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread mad . scientist . at . large


--"Fascism begins the moment a ruling class, fearing the people may use their 
political democracy to gain economic democracy, begins to destroy political 
democracy in order to retain its power of exploitation and special privilege." 
Tommy Douglas




May 14, 2021, 15:15 by john.bli...@gmail.com:

> n
>
>
> On Fri, May 14, 2021 at 2:36 AM John Covici <> cov...@ccs.covici.com> > wrote:
>
>>
>> I would look in the grub.cfg and give us exactly what is in the stanza
>>  you are using, including where it thinks the root file system is,
>>  etc.  Also, see if there is any genkernel option to get some debugging
>>  info out of the initrd, I know using dracut you can get breakpoints
>>  during the process and see how its doing.
>>
>
> Tried dracut.  No change.
>
> Added the kernel command line debug options (#3 in “Identifying your problem 
> area” in ‘man dracut’).  No change.
>
> Feeling peevish, I made a file of random junk using dd if=/dev/random 
> of=initrd.img count=4096.  Then supplied that pile of junk as the initrd.  
> Again, no change.
>
> Then I supplied a nonexistent file name (xxx.img) as the initrd.  This time I 
> got a complaint:
>
> error: file ‘/xxx.img’ not found.
>
> Press any key to continue...
>
> So, it’s getting as far as wanting to read the initrd, and is smart enough to 
> tell whether the specified initrd actually exists on the specified boot 
> partition.  But it can’t actually be doing anything with the initrd, or it 
> would have objected to the random junk I fed it.
>
> From > https://en.m.wikipedia.org/wiki/Initial_ramdisk#Implementation> , it 
> appears that grub is in charge of loading both linux and the initrd into 
> memory, then handing execution over to linux along with a pointer to the 
> memory location of the initrd.
>
> I’ve observed that that no booting output comes out of linux, nor any 
> complaints from linux about the nonsense contents I fed it from the random 
> initrd I built.  That suggests to me that grub has failed to load linux 
> and/or the initrd into memory, or that it's failed to hand execution control 
> to linux.
>
> Next step:  learned how to run an interactive grub2 command shell. With full 
> debugging turned on, it looks like grub2 can load the kernel image, and it 
> looks like it loads the initrd as well.  At least there are no complaints and 
> the reported initrd size looks correct.
>
> But when I issue the boot command, grub2 issues a handful of mallocs and does 
> a little token parsing, and then just stops...
>
> So it appears that the boot problem arises right around the handoff from 
> grub2 to linux.  Don’t know whether grub2 or linux has failed.  I don’t know 
> how to get either one to tell me more.
>
> John
>
Have you recompiled the kernel?  Could be a random, erroneous write to disk or 
something in the kernel compile didn't go well.  I'd suggest also rebuilding 
the initrd and reinstalling grub.  I.e. I think there is likely a kernel 
compile issue since it doesn't ever launch the kernel succesfully either on 
autopilot or when you run grub interactive.  Might also recompile grub, perhaps 
there's a change in compiler options that produces an incompatible (at least 
partially).  I also suggest the rebuild so you can be sure you have the right 
initrd and matching kernel.



[gentoo-user] x11-terms/xterm loops error upon launch

2021-05-14 Thread Vitor Hugo Nunes dos Santos
On 5/10/21 9:28 PM, Vitor Hugo Nunes dos Santos wrote:
> On 5/9/21 9:08 PM, Vitor Hugo Nunes dos Santos wrote:
>>
>> Hi all,
>>
>> I just recently setup a new desktop with Gentoo.
>>
>> After the install and configuration of Xorg, I decided to 'startx'
>> and open xterm in fvwm.
>>
>> Upon pressing the button to launch it, nothing came up. When closing
>> fvwm, I saw the following message being printed ad nauseam to the screen:
>>
>> open ttydev: I/O error
>>
>> Online searches led me to inconclusive info on what could be the
>> cause and fix for the issue.
>>
>> I'd be glad to provide info as required.
>>
>> Best regards,
>>
>> vhns 
>
> Hi all,
>
>
> I've decided to try another terminal emulator, in order to figure out
> whether this was an xterm issue, an issue with my setup, or an issue
> with fvwm.
>
> Launching (or trying to, rather) x11-terms/st, gives me the following
> error in dmesg:
>
> [May10 21:17] traps: st[5846] general protection fault ip:7f92d0babff6
> sp:7fffa63836a8 error:0 in libc.so[7f92d0b97000+63000]
>
> I am not sure of what may be causing this, or how to fix it. Here
> follows my emerge --info:
>
> Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.0/musl,
> gcc-10.2.0, musl-1.2.2-r2, 5.10.27-gentoovhns-desktop-iommu-r3 x86_64)
> =
> System uname:
> Linux-5.10.27-gentoovhns-desktop-iommu-r3-x86_64-AMD_Ryzen_5_2600_Six-Core_Processor-with-libc
> KiB Mem:    16316940 total,  15565188 free
> KiB Swap:  0 total, 0 free
> Timestamp of repository gentoo: Sun, 09 May 2021 01:00:01 +
> Head commit of repository gentoo: 2d5affeb067f6f193c0718bc5a9cc8eb8eef44d5
> Head commit of repository KKona: d3d3554162168f6d994d2d8b7b239bcac56072cf
>
> Timestamp of repository musl: Sat, 08 May 2021 23:20:00 +
> Head commit of repository musl: 151175d3c2ebf6413a0711a4bf983b838753c25c
>
> sh bash 5.0_p18
> ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
> app-shells/bash:  5.0_p18::gentoo
> dev-lang/perl:    5.30.3::gentoo
> dev-lang/python:  3.8.9_p2::gentoo, 3.9.4_p1::gentoo
> dev-util/cmake:   3.18.5::gentoo
> sys-apps/baselayout:  2.7::gentoo
> sys-apps/openrc:  0.42.1-r1::gentoo
> sys-apps/sandbox: 2.22::gentoo
> sys-devel/autoconf:   2.69-r5::gentoo
> sys-devel/automake:   1.16.2-r1::gentoo
> sys-devel/binutils:   2.35.2::gentoo
> sys-devel/gcc:    10.2.0-r5::gentoo
> sys-devel/gcc-config: 2.4::gentoo
> sys-devel/libtool:    2.4.6-r6::gentoo
> sys-devel/make:   4.3::gentoo
> sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
> sys-libs/musl:    1.2.2-r2::gentoo
> Repositories:
>
> gentoo
>     location: /var/db/repos/gentoo
>     sync-type: rsync
>     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>     priority: -1000
>     sync-rsync-verify-max-age: 24
>     sync-rsync-extra-opts:
>     sync-rsync-verify-jobs: 1
>     sync-rsync-verify-metamanifest: yes
>
> KKona
>     location: /var/db/repos/KKona
>     sync-type: git
>     sync-uri: git://github.com/absurdsec/gentoo-overlay.git
>     masters: gentoo
>
> musl
>     location: /var/db/repos/musl
>     sync-type: git
>     sync-uri: https://github.com/gentoo-mirror/musl.git
>     masters: gentoo
>
> vhns
>     location: /var/db/repos/vhns
>     masters: gentoo
>
> ACCEPT_KEYWORDS="amd64"
> ACCEPT_LICENSE="*"
> CBUILD="x86_64-gentoo-linux-musl"
> CFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
> CHOST="x86_64-gentoo-linux-musl"
> CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
> /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
> CXXFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
> DISTDIR="/var/cache/distfiles"
> ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH
> PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT
> XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
> FCFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
> FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs
> config-protect-if-modified distlocks ebuild-locks fixlafiles
> ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox
> preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms
> strict unknown-features-warn unmerge-logs unmerge-orphans userfetch
> userpriv usersandbox usersync xattr"
> FFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
> GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/;
> INSTALL_MASK="charset.alias locale.alias"
> LANG="C.UTF8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> MAKEOPTS="-j8"
> PKGDIR="/var/cache/binpkgs"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
> --omit-dir-times --compress --force --whole-file --delete --stats
> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
> 

[gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread John Blinka
On Fri, May 14, 2021 at 7:32 PM Dale  wrote:

>
> I had another thought.  Just in case it is a bug with grub that only
> affects certain hardware, maybe try a different bootloader?  Maybe try
> lilo or some other bootloader that works with your hardware.  I seem to
> recall you having EFI so I'm sure there is plenty of those to choose from.


Good thought - I just now got a successful boot using efibootmgr.  Peter
Humphries also suggested that somewhere in this thread, but also stated
that he couldn’t get grub to work on the same brand mobo (Asus).  I’d
almost believe that it’s a grub-Asus thing except for the fact that
Sysrescue and Ubuntu both boot successfully. And I think they use grub.

Maybe time to experiment with a different version or fresh installation of
grub.  Except that I’m burnt out on booting.  Think I’ll go outside and dig
some holes.

John

>


Re: [gentoo-user] Rationalizing log files

2021-05-14 Thread David Haller
Hello,

On Thu, 13 May 2021, Walter Dnes wrote:
[..]
>  And maybe either stop logging Facebook, or else log iptables messages
>to a separate file (how is that done?).  The Facebook tracker messages
>are generated by iptables rules...
>
>-A INPUT -s 31.13.24.0/21 -j FECESBOOK
>-A INPUT -s 31.13.64.0/18 -j FECESBOOK
[..]
>-A OUTPUT -d 31.13.24.0/21 -j FECESBOOK
>-A OUTPUT -d 31.13.64.0/18 -j FECESBOOK

FWIW:

For one: why not filter the iptables messages into a seperate logfile?

E.g. for syslog-ng (you'll need to add the filter to other
filters/log, having them in the filters you can use those
more intuitively):


filter f_iptables   { facility(kern) and message("IN=") and message("OUT="); };
filter f_console{ ... and not filter(f_iptables); }
filter f_messages   { ... and not filter(f_iptables); };
filter f_warn   { ... and not filter(f_iptables); };
[..]
log { source(src); source(chroots); filter(f_messages); destination(messages); 
};

# Firewall (iptables) messages in one file:
destination firewall { file("/var/log/firewall" suppress(30)); };
log { source(src); source(chroots); filter(f_iptables); destination(firewall); 
};


You might be logging more specifically, so you could add more specific
filters. That's what those filters (and log-prefixes in iptables) are
for after all :)

Also add a matching logrotate entry:


/var/log/firewall {
delaycompress
missingok
notifempty
size +4096k
sharedscripts
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}


or some such as /etc/logrotate.d/firewall (or however you name you
iptables-logfile.

And second, how about setting up a local dnsmasq to send all fb-crap
to NXDOMAIN on the DNS-level?

 dnsmasq.conf or e.g. /etc/dnsmasq.d/blocklist.conf [1] 
address=/fb.com/
address=/fb.me/
address=/facebook.net/
address=/facebook.de/
address=/facebook.fr/
address=/facebook.co.uk/
address=/facebook.com/
address=/fbcdn.net/
address=/instagram.com/
address=/instagram.de/
address=/whatsapp.de/
address=/whatsapp.com/
address=/whatsapp.net/


That has the effect that all (sub-)domains with those names give
NXDOMAIN, i.e. are non-existant. Compare to:

$ nslookup there.is.no.such.domain.invalid

Depending on what sites you visit, you might add more domains like
e.g. facebook.ca, facebook.mx, facebook.es or whatever fb-domains
sites that you visit include...

Just as ideas,
-dnh

[1] you'll need a matching conf-dir or conf-file directive, preferably
at the end of the main /etc/dnsmasq.conf then, I use:

conf-dir=/etc/dnsmasq.d,*.conf

which includes all *.conf files from /etc/dnsmasq.d/ (and ignores
other files there like *.conf~ or Makefile or whatnot, so you can
be creative and e.g. generate your blocklist from a simple list of
domains ;) E.g.:
 /etc/dnsmasq.d/Makefile
all: blocklist.conf
blocklist.conf: blocklist.conf.in
sort -u $< | sed 's@\(.*\)@address=/&/@' > $@


You get the ideas ;) (and if not: ask!)

-- 
Of course. Anything with more than 2 buttons is too complex. This includes
things with 2 or less buttons. This may include clothing.  -- Satya



[gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread John Blinka
On Fri, May 14, 2021 at 7:10 PM  wrote:

> >
> Have you recompiled the kernel?  Could be a random, erroneous write to
> disk or something in the kernel compile didn't go well.  I'd suggest also
> rebuilding the initrd


Yes.  Same problems with several kernels and associated initrds, the latter
produced by genkernel or dracut or even some gibberish I pretended was an
initrd.  From grub debug output, I believe the problem exists right before
the kernel tries to use the initrd.  It’s contents are irrelevant at that
stage.

and reinstalling grub.


That may or may not be the answer, but it’s such an obvious step. Will
definitely give that a try.

I.e. I think there is likely a kernel compile issue since it doesn't ever
> launch the kernel succesfully either on autopilot or when you run grub
> interactive.  Might also recompile grub, perhaps there's a change in
> compiler options that produces an incompatible (at least partially).  I
> also suggest the rebuild so you can be sure you have the right initrd and
> matching kernel.


I don’t think it’s a kernel compile issue.  I just now used efibootmgr to
create a uefi entry with kernel command line parameters to define the root
fs and initrd.  That worked.  That result focuses the blame on grub.

John

>


[gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread Dale
mad.scientist.at.la...@tutanota.com wrote:
>
> Have you recompiled the kernel?  Could be a random, erroneous write to disk 
> or something in the kernel compile didn't go well.  I'd suggest also 
> rebuilding the initrd and reinstalling grub.  I.e. I think there is likely a 
> kernel compile issue since it doesn't ever launch the kernel succesfully 
> either on autopilot or when you run grub interactive.  Might also recompile 
> grub, perhaps there's a change in compiler options that produces an 
> incompatible (at least partially).  I also suggest the rebuild so you can be 
> sure you have the right initrd and matching kernel.
>
>


I had another thought.  Just in case it is a bug with grub that only
affects certain hardware, maybe try a different bootloader?  Maybe try
lilo or some other bootloader that works with your hardware.  I seem to
recall you having EFI so I'm sure there is plenty of those to choose from.

Dale

:-)  :-)



[gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread John Blinka
n

On Fri, May 14, 2021 at 2:36 AM John Covici  wrote:

>
> I would look in the grub.cfg and give us exactly what is in the stanza
> you are using, including where it thinks the root file system is,
> etc.  Also, see if there is any genkernel option to get some debugging
> info out of the initrd, I know using dracut you can get breakpoints
> during the process and see how its doing.


Tried dracut.  No change.

Added the kernel command line debug options (#3 in “Identifying your
problem area” in ‘man dracut’).  No change.

Feeling peevish, I made a file of random junk using dd if=/dev/random
of=initrd.img count=4096.  Then supplied that pile of junk as the initrd.
Again, no change.

Then I supplied a nonexistent file name (xxx.img) as the initrd.  This time
I got a complaint:

error: file ‘/xxx.img’ not found.

Press any key to continue...

So, it’s getting as far as wanting to read the initrd, and is smart enough
to tell whether the specified initrd actually exists on the specified boot
partition.  But it can’t actually be doing anything with the initrd, or it
would have objected to the random junk I fed it.

>From https://en.m.wikipedia.org/wiki/Initial_ramdisk#Implementation, it
appears that grub is in charge of loading both linux and the initrd into
memory, then handing execution over to linux along with a pointer to the
memory location of the initrd.

I’ve observed that that no booting output comes out of linux, nor any
complaints from linux about the nonsense contents I fed it from the random
initrd I built.  That suggests to me that grub has failed to load linux
and/or the initrd into memory, or that it's failed to hand execution
control to linux.

Next step:  learned how to run an interactive grub2 command shell. With
full debugging turned on, it looks like grub2 can load the kernel image,
and it looks like it loads the initrd as well.  At least there are no
complaints and the reported initrd size looks correct.

But when I issue the boot command, grub2 issues a handful of mallocs and
does a little token parsing, and then just stops...

So it appears that the boot problem arises right around the handoff from
grub2 to linux.  Don’t know whether grub2 or linux has failed.  I don’t
know how to get either one to tell me more.

John


[gentoo-user] Re: Building kernel without messing the kernel source tree

2021-05-14 Thread Thomas Mueller


from netfab at Fri, 14 May 2021 11:59:37 +0200:

> Le 14/05/21 à 11:47, Thomas Mueller a tapoté : 
> > I am looking to compile the Linux kernel and send the work and output
> > to another directory, thereby leaving the kernel source tree
> > directory clean.

> You should have a look to KBUILD_OUTPUT environment variable.

> https://www.kernel.org/doc/html/latest/kbuild/kbuild.html#kbuild-output

I just looked in Documentation/kbuild/kbuild.txt, and the information was right 
there.

I should have noticed it, even though it was mixed in with other environment 
variables.

Thanks for pointing it out!

Tom




Re: [gentoo-user] What does emerge status R mean?

2021-05-14 Thread Neil Bothwick
On Fri, 14 May 2021 11:54:30 +0200, n952162 wrote:

> Why does portage want to build this:
> 
> [ebuild   R    ] x11-apps/xmodmap-1.0.10::gentoo 0 KiB
> 
> given this, already installed:
> 
> /var/db/pkg/x11-apps/xmodmap-1.0.10/xmodmap-1.0.10.ebuild
> 
> and these on my binary server (which is apparently not working properly
> for reasons I'm trying to track down):
> 
>   binpkgs/x11-apps/xmodmap-1.0.10.tbz2
>   distfiles/xmodmap-1.0.10.tar.bz2
> 
> When I remove these options, it doesn't want to anymore:
> 
>      #  --changed-use \
>      #  --changed-deps \
>      #  --newuse \
>      #  --backtrack=100 \
>      #  --deep \
> 
> Which option was it, I wonder, which triggered the build, and would it
> bring me anything?

--changed-use would show the changed USE flag in the output, so it is
probably --changed-deps. The emerge man page explains just what the flag
does.

Incidentally, there is no point in using --newuse and --changed-use, the
former is a superset of the latter. I'd use only --changed-use to avoid
unnecessary rebuilds.


-- 
Neil Bothwick

WinErr 004: Erroneous error - Nothing is wrong


pgpEu6xss4nZD.pgp
Description: OpenPGP digital signature


[gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread John Blinka
On Fri, May 14, 2021 at 7:50 AM John Blinka  wrote:

>
>
> On Fri, May 14, 2021 at 3:12 AM William Kenworthy 
> wrote
>
>> >
>> Try https://wiki.ubuntu.com/DebuggingKernelBoot ... I am not sure
>> genkernel uses that exact name but I did need to find the initramfs boot
>> log to diagnose a failure in a genkernel initramfs at one time.
>
>
Unfortunately, made no difference and provided no new information.
https://www.askapache.com/linux/linux-debugging/ might be too old to be
relevant any more, but tried almost everything it suggested to obtain
debugging output.  Not one byte of debug info appeared.  Going to try the
dracut approach suggested elsewhere.

John

>


Re: [gentoo-user] What does emerge status R mean?

2021-05-14 Thread Jack

On 5/14/21 3:54 AM, n952162 wrote:

Why does portage want to build this:

[ebuild   R    ] x11-apps/xmodmap-1.0.10::gentoo 0 KiB

given this, already installed:

/var/db/pkg/x11-apps/xmodmap-1.0.10/xmodmap-1.0.10.ebuild

and these on my binary server (which is apparently not working properly
for reasons I'm trying to track down):

 binpkgs/x11-apps/xmodmap-1.0.10.tbz2
 distfiles/xmodmap-1.0.10.tar.bz2

When I remove these options, it doesn't want to anymore:

    #  --changed-use \
    #  --changed-deps \
    #  --newuse \
    #  --backtrack=100 \
    #  --deep \

Which option was it, I wonder, which triggered the build, and would it
bring me anything?
My guess is that one of the USE flags changed.  Compare which USE flags 
is it currently installed with and which it wants for the reinstall.  It 
might even be that a USE flag changed in the ebuild, even if it won't 
actually change what gets installed. (--changed-use vs --new-use)


The options still used are:

emerge \
  --getbinpkg y \
  -v \
  --tree \
  --update \
  --noreplace \
  --verbose-conflicts \
  --keep-going \
  --with-bdeps=y \
  @world






[gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread John Blinka
On Fri, May 14, 2021 at 3:12 AM William Kenworthy  wrote

> >
> Try https://wiki.ubuntu.com/DebuggingKernelBoot ... I am not sure
> genkernel uses that exact name but I did need to find the initramfs boot
> log to diagnose a failure in a genkernel initramfs at one time.


That’s an intriguing link.  Exploring it now.

John

>
>


[gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread John Blinka
On Fri, May 14, 2021 at 2:36 AM John Covici  wrote:

>
> I would look in the grub.cfg and give us exactly what is in the stanza
> you are using, including where it thinks the root file system is,
> etc.  Also, see if there is any genkernel option to get some debugging
> info out of the initrd, I know using dracut you can get breakpoints
> during the process and see how its doing.


Here’s what I see when pressing “e” just before the system attempts to boot:

setparams ‘Gentoo GNU/Linux’

load_video
if [ “x$grub_platform” = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod fat
set root=‘hd0,gpt2’
if [ x$feature_platform_search_hint = xy ]; then
  search —no-floppy —fs-uuid —set=root —hint-bios=hd0,gpt2
—hint-baremetal=ahci0, got2 5C75-30A0
else
  search —no-floppy —fs-uuid —set=root 5C75-30A0
fi
echo‘Loading Linux 5.10.27-gentoo-x86_64 ...’
linux /vmlinuz-5.10.27-gentoo-x86_64
root=UUID=0df096ca-4dc8-4325-9296-7b0ddb67f044 ro loglevel=4 nomodeset
echo‘Loading initial ramdisk ...’
initrd/early_ucode.cpio
/initramfs-5.10.27-gentoo-x86_64.img

I have checked the uuid and filenames - they are correct.  (hd0,gpt2) makes
sense.  There’s only 1 disk connected, it uses gpt, and the second
partition is a fat boot partition with the above uuid.  The named files
exist on that partition.

I don’t see anything in ‘man genkernel’ that looks like a way to get debug
info out of an initrd/initramfs.  Looks like there’s a way to turn it off,
so perhaps it’s on by default?

John


Re: [gentoo-user] Building kernel without messing the kernel source tree

2021-05-14 Thread netfab
Le 14/05/21 à 11:47, Thomas Mueller a tapoté :
> I am looking to compile the Linux kernel and send the work and output
> to another directory, thereby leaving the kernel source tree
> directory clean.

You should have a look to KBUILD_OUTPUT environment variable.

https://www.kernel.org/doc/html/latest/kbuild/kbuild.html#kbuild-output





[gentoo-user] What does emerge status R mean?

2021-05-14 Thread n952162

Why does portage want to build this:

[ebuild   R    ] x11-apps/xmodmap-1.0.10::gentoo 0 KiB

given this, already installed:

/var/db/pkg/x11-apps/xmodmap-1.0.10/xmodmap-1.0.10.ebuild

and these on my binary server (which is apparently not working properly
for reasons I'm trying to track down):

 binpkgs/x11-apps/xmodmap-1.0.10.tbz2
 distfiles/xmodmap-1.0.10.tar.bz2

When I remove these options, it doesn't want to anymore:

    #  --changed-use \
    #  --changed-deps \
    #  --newuse \
    #  --backtrack=100 \
    #  --deep \

Which option was it, I wonder, which triggered the build, and would it
bring me anything?

The options still used are:

emerge \
  --getbinpkg y \
  -v \
  --tree \
  --update \
  --noreplace \
  --verbose-conflicts \
  --keep-going \
  --with-bdeps=y \
  @world




[gentoo-user] Building kernel without messing the kernel source tree

2021-05-14 Thread Thomas Mueller
I am looking to compile the Linux kernel and send the work and output to 
another directory, thereby leaving the kernel source tree directory clean.

If I build gcc or other software using configure script, I can go to another 
directory and run, for instance, ~/builds/gcc-8.3.0/configure --prefix=/usr ... 
without dirtying the source directory.

This would likely be a cross-compile from NetBSD or FreeBSD. 

Could I do make -C ~/builds/linux-4.19.105 ARCH=x86_64 
CROSS_COMPILE=x86_64-linux-musl- ... ?

That would be my first thought, seeking to avoid having to clean after every 
run, successful or unsuccessful.  Avoid the worry about whether clean, 
distclean or mrproper work.

I would like to compile for x86_64 and also i486 (or would that be i386)?

Is this a question for gentoo-user or gentoo-dev?

The "make" I use is built from GNU source, not /usr/bin/make as is found on 
NetBSD or FreeBSD. 

Tom




Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread Peter Humphrey
On Friday, 14 May 2021 00:06:07 BST John Blinka wrote:

> How does one debug this situation?

Just coming to this belatedly, not having noticed what may be a connection 
until now. I 
have an Asus X99-A motherboard, and I never got grub to work at all. I use a 
combination of efibootmgr and bootctl to manage my boot process. (Bootctl is in 
sys-
boot/systemd-boot; that's the only systemd package I have on this openrc 
system.)

You could look at the handbook [1] for how to set these up. I had to develop my 
own 
method by picking bits out of it. I use efibootmgr to create entries in the 
UEFI BIOS, then 
bootctl to keep them up to date. Oh, and I had to leave a small, otherwise 
unused 
partition before the FAT32 boot partition. From parted:

Number  Start  EndSize  File system Name  Flags 
1  1.00MiB9.00MiB8.00MiB 
2  9.00MiB1025MiB1016MiB   fat32 boot, esp 
3  1025MiB50176MiB   49151MiB  linux-swap(v1)swap 
4  50176MiB   66560MiB   16384MiB  ext4 
5  66560MiB   132096MiB  65536MiB  ext4
[...]
This may be a red herring of course; I wouldn't be too surprised if I'm doing 
things all 
wrong, and your motherboard may differ from mine in many ways.


1.  https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader[1]


-- 
Regards,
Peter.



[1] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader


[gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread William Kenworthy


On 14/5/21 2:35 pm, John Covici wrote:
> On Thu, 13 May 2021 21:58:25 -0400,
> John Blinka wrote:
>> [1  ]
>> On Thu, May 13, 2021 at 9:12 PM Jack 
>> wrote:
>>
>>> Given  you say the UUID is for the boot partition, then both the linux and
>>> initrd should just have the name of the kernel and initrd files (without
>>> leading "/boot",) which sounds like what  you've got.  I'd next wonder if
>>> something is missing from the kernel/initrd combination, such as a kernel
>>> module necessary for some early part of the boot process or a file system
>>> (per Dale's suggestion.)  Assuming that you ran genkernel after booting a
>>> live image and chrooting into the new system, then we know the hardware can
>>> boot a good kernel/image combo.  Mainly I'm  just thinking out loud here,
>>> trying to coax someone's little gray cells into action.
>>>
>> In my early linux days, I thought it would be clever to include kernel
>> support for my root filesystem in a module.  Whose code resided on the root
>> filesystem...  That didn’t work, of course, but at least the kernel started
>> to boot and threw out an error message.  Here, I just get complete
>> silence.  So, I doubt that file system support is an issue.
>>
>> John
> I would look in the grub.cfg and give us exactly what is in the stanza
> you are using, including where it thinks the root file system is,
> etc.  Also, see if there is any genkernel option to get some debugging
> info out of the initrd, I know using dracut you can get breakpoints
> during the process and see how its doing.
>
Try https://wiki.ubuntu.com/DebuggingKernelBoot ... I am not sure
genkernel uses that exact name but I did need to find the initramfs boot
log to diagnose a failure in a genkernel initramfs at one time.

BillK






Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] boot hangs forever at “Loading initial ramdisk...”

2021-05-14 Thread John Covici
On Thu, 13 May 2021 21:58:25 -0400,
John Blinka wrote:
> 
> [1  ]
> On Thu, May 13, 2021 at 9:12 PM Jack 
> wrote:
> 
> > Given  you say the UUID is for the boot partition, then both the linux and
> > initrd should just have the name of the kernel and initrd files (without
> > leading "/boot",) which sounds like what  you've got.  I'd next wonder if
> > something is missing from the kernel/initrd combination, such as a kernel
> > module necessary for some early part of the boot process or a file system
> > (per Dale's suggestion.)  Assuming that you ran genkernel after booting a
> > live image and chrooting into the new system, then we know the hardware can
> > boot a good kernel/image combo.  Mainly I'm  just thinking out loud here,
> > trying to coax someone's little gray cells into action.
> >
> In my early linux days, I thought it would be clever to include kernel
> support for my root filesystem in a module.  Whose code resided on the root
> filesystem...  That didn’t work, of course, but at least the kernel started
> to boot and threw out an error message.  Here, I just get complete
> silence.  So, I doubt that file system support is an issue.
> 
> John

I would look in the grub.cfg and give us exactly what is in the stanza
you are using, including where it thinks the root file system is,
etc.  Also, see if there is any genkernel option to get some debugging
info out of the initrd, I know using dracut you can get breakpoints
during the process and see how its doing.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com