Building coreboot on Gentoo

Hey there!

I've been trying to build coreboot on my Gentoo installation, but have been running into various issues.

I made sure that my gcc compile has ada support (for gnat), and that I have (roughly) the dependencies listed as requirements for Fedora.

I believe that I have gnat through my gcc install, but I don't have any packages/dependencies for gnat. gnat does, however, seem to be a viable command in CLI.

Despite this, I've still been hitting into some issues and can't seem to compile any final images.

Things like ifdtool and deguard work, though, even when compiled on my system. I compared sha256 sums from progress made on my current system with identical work done on a Debian system, and the sums match, so it seems that it can build most tools properly, and it just can't install.

I'm currently recloning coreboot's repo and building every possible cpu arch/toolchain (I only build i386 as instructed beforehand) just to be thorough on my end. If it works, I'll update the post.

Asides that, is there any known issues with Gentoo that would force me to use a VM to build in, or are there any necessary workarounds needed to build with Gentoo?

Running stable branch, excluding packages that only have an ~amd64 release.

reddit.com
u/LowKeyBrit36 — 5 days ago
▲ 0 r/Gentoo

SELinux questiobs

I've been attempting to use SELinux with my system (Following the guide), but upon completion, my system seems messed up.

I used profile #23, and made sure that I declared `FEATURES="-selinux -sesandbox"` when emerging the core packages specified in the installation steps, followed by an @world update. Also configured file relabeling as instructed by the guide, including my SWAP file. Upon booting with lsm=selinux and enforcing=1 in my grub configs, dmcrypt fails to read my keyfile to unlock encrypted partitions, and KDE Plasma (DE of choice) fails to work entirely.

Even when KDR Plasma is booted into in permissive mode, it'll instantly die the moment `doas setenforce 0` is activated

I read through the dependencies being installed when doing an update, and all of my system services seemed covered (openrc, dracut, etc), but it feels like nothing works.

Prior to doing this, I used the basic #1 profile, so I shouldn't have had issues with Plasma being broken by the profile change, as I incorporated my USE flags by default.

Strangely enough, I had previously done a successful install of SELinux, but without using the SELinux profile. I know that when doing that it would display as active with `sestatus`, with the active function being `enforcing`

I don't know what logs would be useful, but I can supply whatever's needed for troubleshooting.

For reference, I'm also using MCS. I can switch to targeted if it's easier to utilize.

reddit.com
u/LowKeyBrit36 — 17 days ago

Thinkpad T580 thunderbolt issue

Hey there!

I know it's not a libreboot subreddit, but I couldn't find a libreboot subreddit, so I figured this would be the closest sub to post this to. Sorry if it's the wrong sub.

I recently flashed Libreboot on my T580, and while it works, and can boot OSes, the thunderbolt port doesn't work for data. Charging works, so the port isn't destroyed to my knowledge, but data transfer and booting from a USB-C drive in the port doesn't work.

I flashed the tb.bin file to the thunderbolt chip prior to flashing Libreboot, and rhe flash did work while on the regular BIOS, but once going to Libreboot, the thunderbolt port now does not work.

How do I fix this? I want to be able to use USB-C thumb drives with my PC, but currently can't due to this issue.

Thanks in advance!

reddit.com
u/LowKeyBrit36 — 1 month ago

coreboot for Panasonic Toughbook?

Hey there! I've got a Panasonic Toughbook CF-54 (MK-3) that I've already ran ME-cleaner on. I want to go a step further, though, and use coreboot for my system. Looking online, I can't exactly see if there is an available port, if not, how hard is porting it myself?

7th Gen i5-7300u (kabylake, ddr4) for reference. Don't know anything else pertinent to coreboot variants.

reddit.com
u/LowKeyBrit36 — 2 months ago

Full Disk Encryption questions

Hey there!

​

I've been attempting to set up Full Disk Encryption, but haven't been able to figure out how to set up Encryption that fits my use requirements, those being /boot encryption and Luks2 (using Argon), which seemingly doesn't work according to the Full Disk Encryption documentation.

​

I think it's an issue with the GRUB version not having support for it yet, but I'm not sure how I can get around that. Is it possible to modify GRUB for the support, or would I have to find a different way to load my kernel? Have tried researching the issue, but haven't found anything yet.

reddit.com
u/LowKeyBrit36 — 2 months ago

What are some fun/educational projects that I can run on low-end hardware?

Hey there! I recently got an old Lenovo 8810-94U desktop (I think from, like, 2006?) that I want to try running some basic served utilities with. Any suggestions as to what I would try running? I have 3GB ddr2 ram (going to upgrade to 8GB), some Intel core (2?) processor, and an 80GB HDD (will most likely upgrade if I can find cheap storage), so I'm obviously not looking for anything massive, but I would love to run something CLI based off of it just to learn how to do it.

reddit.com
u/LowKeyBrit36 — 2 months ago

Getting significantly lower T/s than I think I should be

Hey there!

I've been running KoboldCPP off of a laptop with an 8B parameter model (Aura-8B.Q5_K_M) using a Nvidia 5070 GPU.

I get great processing rates (933.74T/s), but I get (seemingly) awful generation rates (1.82T/s). I have 0 idea why this is happening with the settings I am using. It's also not a VRAM issue AFAIK. I only show 6.5GiB/8GiB used off of my 5070. I have my context set up to 32K, but I see speeds slow down around the 8-10K mark, as they gradually get slower and slower from that point on.

Watching my system monitor in live time, I typically see 95% to 100% GPU usage during the processing phase, and it drops NOTICEABLY to around 0% to 2% usage during the generation process. The awkward thing, however, is that CPU usage spikes from 1% to around 45%, so I'm assuming something is causing Kobold to run the generative process through CPU over GPU (If that's a source of error).

Settings:

-Quick Launch

CUDA

(GPU ID)

GPU Layers -> Auto

MMQ, ContextShift, FlashAttention -> True

Launch Browser, Quiet Mode, MMAP, Remote Tunnel, AutoFit -> False

Context Size -> 32768

(Not repeating previously defined variables)

-Hardware

No KV Offload, Row Split, Debug Mode, CLI Terminal Only, mlock, Foreground -> False

Sensor split, Batch Threads, Device Override -> Undefined

Threads -> 7

Batch Size -> 512

-Context

SWA, Prompt Limit, Param Override, Custom RoPE Config, No BOS Token, Guidance, Jinja -> False

Smart Cache -> True

Cache Slots -> 5

Default Gen Amount -> 512 (Frontend Limited to 100)

Default Params, Override KV, Override Tensors -> Undefined

Quantize KV Cache -> F16 (Off)

MoE Experts -> -1 (Disabled?)

MoE CPU Layers -> 0

All other settings seem unrelated to text generation only, so they are unincluded for brevity.

I have 0 clue how to debug this (if this isn't just a hardware/software limitation), have googled it, read forums, etc to no avail. Any help would be greatly appreciated.

reddit.com
u/LowKeyBrit36 — 3 months ago

CF-54 dGPU module?

Hey there! I have been looking online to see if there is a graphics module for my toughbook (CF-54G2626VM), but haven't found anything for it. I know similar tough books have dGPU modules available, so I figured I'd ask if one exists for my model specifically, and if so, what component it would replace, if it does replace a component.

reddit.com
u/LowKeyBrit36 — 3 months ago

I don't seem to be able to post an image here, but I'll describe what I (think I) have:

Images: https://imgur.com/a/OkaxZ1w

2x Tau Pathfinders

2x Breacher Teams

2x Chris is Suits

1x 3-man Old Stealth Suit kit

1x Coldstar Commander

2x Ethereals

1x Pirahna

1x Skyray

Extra bits from the aforementioned kits

Some drones, but most likely not enough for all of the units to have all of the drones that they'd need.

Most minis are just primed, but some aren't fully primed, and one is fully painted.

I did drill a few holes into some of the models for basing/posing them/fixing them. There's a picture, and I tried to get a decent shot on the drill holes themselves, but if you want additional pictures, im happy to oblige.

In terms of what I want, I want to try trading for Astra Millitarum for the most part, but im also completely open to cash sale as well. I don't have anything specific that I need, as I'm just starting Astra Millitarum, but I like Kriegsmen models and Tank models the most. Again, though, im completely open to whatever Astra Millitarum I can get as I'm just starting that army out.

As for cash, I don't have a definite "want" amount, but shoot me an offer, and if it's reasonable, I'm probably not going to say no

Thanks in advance!

Addendum: I didn't add the date in the pictures, so the new imgur link will include that: https://imgur.com/a/IC82pqc

u/LowKeyBrit36 — 4 months ago