Posts
5533
Following
349
Followers
548
.

Jarkko Sakkinen

Edited 1 year ago
After four weeks doing Rust it became clear to me that LSP is quite useful sometimes, when you have to deal with a language that was not designed to be written by humans.

[That said: even less so by Copilot, Bob or Clippy]

;-)

I've managed mostly with vim and rusty-tags so far but to help with code exploration I installed vscodium. Seems to do the job since it has a vim emulation plugin and works together with rust-analyzer. And LSP does not work too well in terminal anyhow...

PS. This is the most useful documentation that I found on topic: https://bootlin.com/pub/conferences/2020/elce/opdenacker-using-vs-code-for-embedded-development/opdenacker-using-vs-code-for-embedded-development.pdf
0
0
1

Jarkko Sakkinen

Edited 1 year ago

I installed Asahi Linux to a 128 GB rootfs (out of 1 TB of internal storage). It is connected to a dock with an external 1 TB M.2 drive. Fedora sees this drive as /dev/sda.

Migrating the subvolume of /home was just a matter of creating a single all encompassing BTRFS partition to /dev/sda and then:

sudo btrfs device add /dev/sda1 /home -f
sudo btrfs device remove /dev/nvme0n1p6 /home -f

Now there is an airtight separation / and /home physically, and also they pool space only within their own cages.

Apple firmware supports only booting macOS from external storage, thus the rootfs must always reside in the internal storage, but I think this is already quite sustainable way to deal with it.

This bottleneck/policy can be mitigated but it does not pay the price. It can be overcome by installing macOS to an external storage and consuming internal storage in its full extent for Asahi Linux. Just mentioning this last for completeness ;-)

Encryption can/could be done by following https://davidalger.com/posts/fedora-asahi-remix-on-apple-silicon-with-luks-encryption/ with “a twist’ (since different partition/drive topology).

#apple #macos #linux #asahilinux

1
2
3

Jarkko Sakkinen

US Ambassador to Finland's immediate reaction of Trump's win in 2016 while still serving 😅 #Trump #diplomacy
0
0
0

Jarkko Sakkinen

my friends have started to bully me as "jarkko.js" (those are my name letters). did not came to mind when picking username for my github account duh...
1
0
1

Jarkko Sakkinen

Since I guess Google knows Rust better than me I guess I'm doing the state of art with custom target JSON-files, i.e. deploying them to a random directory in the project directory :-)

I kind of hoped that there would be a place (let's say .cargo/targets or similar) under the project that gets automatically recognized by the tooling. Then you could just put that to rust-toolchain.xml like any other target.

https://security.googleblog.com/2024/09/deploying-rust-in-existing-firmware.html

#cargo #rust #rustup
0
0
1

Jarkko Sakkinen

Let’s imagine you want to do this in Rust:

#[link_section = ".note.jarkko"]

What is the default alignment?

#rust

0
0
0

Jarkko Sakkinen

Edited 1 year ago
Have not really checked this through but what is keeping v4l2loopback out of upstream?

It's useful for instance using a phone as a webcam during meetings, which actually quite useful (because e.g. iPhone actually has a quality camera).
1
0
0

Kai Engert 🔑✉️ (:KaiE)

That was a little scary. I asked ChatGPT, how would I best do X ? It responded, why don't you use thing Y that you have? I had told it in the past that I have thing Y, in a different chat session. That means we have arrived at the state where it's keeping track of what I said in the past.

1
1
0

Jarkko Sakkinen

Advice needed. what i say if i get a patch in the form "Dr. Firstname Lastname" in SOB?

I can say that it does trigger me a bit but I can deal with my personal issues ;-)

#linux #kernel
1
1
2

Shoshana, daughter of Ruth

Ruin any kid's day with this one easy trick!

12
4
0

Jarkko Sakkinen

Learning to compile distro kernel for Fedora. I took a random patch set from mm just to learn this process [1]. Has taken couple of days because I don't know anything about RPM and have compiled so far only distro kernel for Ubuntu. I'm recent convertant to Fedora because between 2004-2021 I used Ubuntu util I had had enough ;-)

Glitches or things to reconsider:

- I have now kernel compilation ongoing with "fedpkg mockbuilld". I hope this is the right command. I got the kernel by "fedpkg clone --anonymous kernel ".
- I have no idea how to point out linux-next so had to backport a single patch from kselftest to v6.12-rc4. Any pointers how to use that nice fedpkg command AND have linux-next is appreciated.
- I hope this will ensure that the kernel will signed with my MOK key: [2].

[1] https://lore.kernel.org/all/cover.1729440856.git.lorenzo.stoakes@oracle.com/
[2]
I have a key created:

$ sudo certutil -L -d /etc/pki/pesign

Certificate Nickname Trust Attributes
SSL,S/MIME,JAR/XPI

Machine Owner Certificate Pu,Pu,Pu

And I hope this will pick it for the kernel build:

--- a/kernel-local
+++ b/kernel-local
@@ -1,2 +1,3 @@
# This file is intentionally left empty in the stock kernel. Its a nicety
# added for those wanting to do custom rebuilds with altered config opts.
+%define pe_signing_cert "Machine Owner Certificate"

#fedora #linux #kernel #rpm
5
2
4

Jarkko Sakkinen

I don't think it will take long for Trump to officially, or without indirection, endorse Adolf Hitler. At least if he wins this will be inevitable.

So anyone who thinks that he will ensures the diplomatic relations with Israel, I'd think twice...

PS. Unrelated to ongoing horrible war in the mIddle east...

https://www.theatlantic.com/politics/archive/2024/10/trump-military-generals-hitler/680327/
0
1
1

Jarkko Sakkinen

This could be my next desktop albeit there is a proprietary OS installed instead of Linux: https://system76.com/desktops/thelio-astra
0
0
0

Mary Trump is warning about Donald’s dementia--yet corporate media still refuses to cover it! My new article about what Mary-- a psychologist and someone who has known Donald all her life--is seeing that demands more media attention given the stakes: https://deanobeidallah.substack.com/p/mary-trump-is-warning-about-donalds

5
3
0
Show older