Posts
4438
Following
315
Followers
469
Linux kernel hacker and maintainer etc.

OpenPGP: 3AB05486C7752FE1

Jarkko Sakkinen

Edited 1 year ago
macro(import_binary_as_elf Path Symbol Target)
    set(objcopy_flags -I binary -O default -B riscv)
    string(MAKE_C_IDENTIFIER ${Path} unstripped)
    add_custom_command(
        OUTPUT ${Path}.elf
        DEPENDS ${Target}
        COMMAND 
             ${CMAKE_OBJCOPY} ${objcopy_flags}
             ${Path} ${Path}.elf
        COMMAND
              ${CMAKE_OBJCOPY} -N
              _binary_${unstripped}_end ${Path}.elf
        COMMAND
              ${CMAKE_OBJCOPY} --redefine-sym
              _binary_${unstripped}_start=${Symbol}_start
              ${Path}.elf
        COMMAND
              ${CMAKE_OBJCOPY} --redefine-sym
              _binary_${unstripped}_size=${Symbol}_size
              ${Path}.elf
    )
    add_custom_target(${Symbol}_elf DEPENDS ${Path}.elf)
endmacro()

#cmake #riscv #embed #binary #elf #note

1
0
0

quick jam during kid's naptime

3
2
1
Are you someone who has a simple fix for something in the Linux kernel, but haven't bothered submitting a patch because you find the email workflow daunting? Can be a bugfix, spelling correction, anything at all.

If so, I want to talk to you! I have tools that simplify this process quite a bit, but I need more feedback from people who aren't long-term Linux maintainers.

Please reach out, either via here or by emailing mricon@kernel.org.
9
426
333

Jarkko Sakkinen

Edited 1 year ago

Some learnings of RISC-V, at least from CVA6 perspective:

  1. If there is any SATP or PTE sync issue, sprinkle first sfence.vma together with fence.i. It is not optimal but usually ensures stability. Once things are functionally together sync points can be reduced.
  2. Might be CVA6 specific issue but I’ve sometimes had issues with W PTE’s created without having also D, causing odd crashes. So again, I’ve taken the habit of first binding these together and later on reduce.

I’ve yet use ASIC boards, have only used FPGA so far and development versions of CPU’s. I guess these sort of fail-safe practices are more important in early development

#riscv #fpga #note

1
0
0

Jarkko Sakkinen

I like Rust in kernel, and more generally in the backend but Rust command-line replicas mostly are just software bloat tbh.

#rustlang
3
0
0

Jarkko Sakkinen

0
0
0

Jarkko Sakkinen

Edited 1 year ago

I nailed the Keystone SATP change bug on CVA6 after only 1.5 months of constant debugging:

#riscv #keystone

1
0
1

Jarkko Sakkinen

"Sometimes smart thinkers just don’t know when to stop, and they create these absurd, all-encompassing, high-level pictures of the universe that are all good and fine, but don’t actually mean anything at all."

Is this a description of Haskell or NixOS? I'm sorry, a bad joke. Please don't get upset.

https://www.joelonsoftware.com/2001/04/21/dont-let-architecture-astronauts-scare-you/
0
0
1

Jarkko Sakkinen

I still regret selling my Gravis Ultrasound MAX. I might buy one of these some day. It is amazing achievement. Before GUS Amiga sounded so much better than any of the Sound Blaster crap hardware with its 8-bit DACs. GUS was a game changer in the 90s. https://www.tindie.com/products/kdehl/gravis-ultrasound-gus-pnp-replica/
1
0
1

Jarkko Sakkinen

I wish #thunderbird would support #plaintext #email.
1
0
0

Jarkko Sakkinen

Edited 1 year ago

QEMU/Spike Linux console:

console=hvc0 earlycon=sbi

Kernel config:

CONFIG_RISCV_SBI_V01=y
CONFIG_HVC_RISCV_SBI=y

#qemu #spike #linux #note

0
0
0

Jarkko Sakkinen

kyllä mä näkisin, että aleksanteri kivimäki on voittaja, vaikka saisikin tuomion.

istuu ehkä kolmisen vuotta, mahdollisesti ison osan avovankilassa, ja onko sakoilla väliä, jos rahat on hajautettuna pseudonyymien takana kryptoissa.

rikos todennäköisesti kannatti. kiinnijäämisen olisi voinut kokonaan estää varmaankin vuokraamalla palvelimet esim. venäjältä, eli ens kerralla fiksummin...

#vastaamo
1
0
2

Jarkko Sakkinen

realized that #xfig is still very much alive, very nice. i'll take it back to use. i never learned to used #inkscape properly
1
0
2

Jarkko Sakkinen

Edited 1 year ago

Just realized:

ranger --cmd='set viewmode=multipane' ~/ ~/

Sort of thing that has kept me using midnight commander :-)

#ranger

0
0
0

Jarkko Sakkinen

Edited 1 year ago
#typst is IMHO phenomenal! i've only used #latex for the sake of #beamer but always hated using it. this will change my life for better. yes, there is beamer alternative for this: #polylux.

i've waited something like this to happen for ages (because i neither have time nor skills to do it myself tbh).
1
0
1

Jarkko Sakkinen

I prefer EQ style of drawing kick over #KICK2 style. #BitwigStudio
1
0
0

Jarkko Sakkinen

I know many people who do something super complex at their work in science or tech, and then after the work they go to a local Chess- or Go-club and then hang out at the local Hacklab soldering stuff together.

I would do that sort of stuff if I was e.g. a factory worker to sort of balance things out in my head. In the current situation, I rather enjoy culture and arts and anything that is not too formal. I would go nuts if I did not balance out both sides of brain :-) In the end, I unscientifically believe that this will also help me to perform better also in a tech job.
0
0
1

Jarkko Sakkinen

I will vote Pekka Haavisto for #presidency of #Finland. There is a show called "The song of my life", and all the candidates were in todays episode. Pekka picked Leonard Cohen track, and that resonated, so the choice was obvious. He picked "Hallelujah". My favorite is from Leonard is "Everybody knows". Not being very politically oriented, I guess the music taste is a good way to select your candidate. https://www.youtube.com/watch?v=xu8u9ZbCJgQ
1
1
2
Show older