sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv | Matrix: #riscv:catircservices.org
<clever> sorear: i'm noticing some odd choices in the kconfig, why does RISCV select COMMON_CLK ?
<sorear> a ten second look at the documentation suggests that COMMON_CLK is supposed to be used by all new architectures
<sorear> linux has a bunch of "disable some piece of legacy behavior" things that are driven by kconfig
<clever> and what if your in a vm and have no clocks to manage?
<sorear> at least one clock is architecturally mandated and also a hard requirement for linux
<clever> i'm trying to shave the kernel down, and one of the clock functions is 1420 bytes in size
<sorear> there are OSes that can operate without preemptive multitasking, but this isn't one of them
<clever> ah, the CLK subsystem is tied into the whole timer framework?
<sorear> I'm not that kind of linux expert
<clever> let me check the references....
<clever> __clk_register is referenced by clk_hw_register and of_clk_hw_register
<clever> clk_hw_register is referenced by __clk_hw_register_fixed_factor
jmdaemon has quit [Ping timeout: 268 seconds]
<clever> then _of_fixed_factor_clk_setup
<clever> and of_fixed_factor_clk_probe
<clever> and yeah, thats for all of the fixed rate clocks, and gc-sections cant know that they are absent from the DT
<sorear> the callback is happening from DT common code, not individual drivers?
<clever> sorear: yeah, it registers a compatible and gets ran when a node is found
<clever> __clk_hw_register_fixed_rate, _of_fixed_clk_setup, of_fixed_clk_probe is the second path
<clever> so it has support for fixed-clock and fixed-factor-clock permanently
<clever> and i think of those 2 fixed clocks are gone, the entire clock subsystem will just vanish
<clever> hmmm no, the composite clock also pulls it in, also tied to common_clk
jmdaemon has joined #riscv
jmdaemon has quit [Quit: ZNC 1.8.2 - https://znc.in]
jmdaemon has joined #riscv
<clever> sorear: if i change the Kconfig to allow COMMON_CLK=n, then i can shave 24kb off the kernel, and it still runs fine
<sorear> this sounds like something you should talk to someone about
<clever> oh, right, and i have a similar PL011 problem
<clever> you just cant enable PL011 until you enable SOC_STARFIVE
<clever> its impossible to make a kernel for only ARCH_VIRT with a PL011
<clever> sorear: any idea who i could bring this up with?
jmdaemon has quit [Ping timeout: 256 seconds]
<sorear> there's the MAINTAINERS file but I have no idea of the relevant social etiquette
<clever> same
jacklsw has joined #riscv
BootLayer has joined #riscv
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
dh` has quit [Read error: Connection reset by peer]
dh` has joined #riscv
<jrtc27> why would you use a pl011 on riscv?
<jrtc27> that's arm's uart...
<jrtc27> just use an 8250-alike like a normal non-arm architecture...
<sorear> clever: what does file say?
<clever> result/bin/hello: ELF 32-bit LSB pie executable, UCB RISC-V, soft-float ABI, version 1 (SYSV), dynamically linked, interpreter /nix/store/a09vfnijisv3chw6vgk0kj0ka1iryj7w-musl-riscv32-linux-musl-1.2.5/lib/ld-musl-riscv32-sf.so.1, not stripped
<clever> jrtc27: because i was more familiar with PL011 and had its docs, when implementing irq handling in the emulator
<sorear> is this running under a nommu environment or not there yet?
<clever> sorear: oh right, i forgot to set DL_NOMMU_SUPPORT, i thought this would fail to even do dynamic linking, oops
<clever> yeah, this is under the nommu linux
<clever> its rebuilding now
<clever> and i just noticed the time, i need to get to bed!
<clever> but the build finished, just one more quick test!
smaeul has quit [Remote host closed the connection]
smaeul has joined #riscv
<clever> # ./libc.so ./hello
<clever> Hello, world!
<clever> #
<clever> sorear: it verks!!! :D
* clever -> bed
<sorear> TLS too?
BootLayer has quit [Quit: Leaving]
alexghiti has joined #riscv
davidlt has joined #riscv
dh` has quit [Read error: Connection reset by peer]
dh` has joined #riscv
mlw has joined #riscv
Forty-Bot has quit [Ping timeout: 252 seconds]
davidlt has quit [Ping timeout: 272 seconds]
Guest434 is now known as chripo
guest02 has quit [Quit: Leaving]
test924 has joined #riscv
mlw has quit [Ping timeout: 260 seconds]
ferris23 has joined #riscv
mahk has quit [Ping timeout: 252 seconds]
mahk has joined #riscv
mahk has quit [Ping timeout: 260 seconds]
mahk has joined #riscv
mlw has joined #riscv
alperak has joined #riscv
ja_02 has quit [Ping timeout: 260 seconds]
wingsorc has quit [Ping timeout: 256 seconds]
ja_02 has joined #riscv
davidlt has joined #riscv
naoki has joined #riscv
naoki has quit [Client Quit]
ferris23 has quit [Quit: Connection closed]
hightower3 has quit [Remote host closed the connection]
hightower3 has joined #riscv
pecastro has joined #riscv
theruran has quit [Quit: Connection closed for inactivity]
psydroid has joined #riscv
ferris90 has joined #riscv
aryeduino has quit [Ping timeout: 268 seconds]
aryeduino has joined #riscv
<aryeduino> hello
ferris90 has left #riscv [#riscv]
<aryeduino> Can anyone assist with K230 image for the CamnvK230 - I have been following the exact instructions on this site https://code.videolan.org/Courmisch/k230-boot had a little issue with the ext4 that I had to enlrage it inside the Makefile to 200M instead of 10M that was set - I am not sure if that was the correct way of doing that, but I think it did the job - I got the .img file (not sure if it
<aryeduino> is correct) and went to complete with the instructions on this site : https://www.remlab.net/op/k230-canmv-debian.shtml BUT when I cam to the chroot /mnt/rootand tried passwd I got an error - ERROR:../../accel/tcg/cpu-exec.c:954:cpu_exec: assertion failed: (cpu == current_cpu) Bail out! ERROR:../../accel/tcg/cpu-exec.c:954:cpu_exec: assertion failed: (cpu == current_cpu) Trace/breakpoint trap
<aryeduino> - CAN any one assit? maybe can you share the .img file that you built from the instructions - I am not reffering to the vendor Debian image (That I was able to put on my device Just fine without issues) I am reffering to the "fully fledged" debian for K230. I would be happy for help on that I am strugling with it for a long time - Thank you.
tanami has quit [Ping timeout: 255 seconds]
tanami has joined #riscv
damian101 has joined #riscv
tanami has quit [Ping timeout: 252 seconds]
<sorear> so you're hitting an assertion failure in qemu, almost certainly a bug in qemu or a problem with your system ... I assume you ran "chroot" and "passwd" on an amd64 host?
tanami has joined #riscv
ntwk has joined #riscv
ntwk has quit [Quit: ntwk]
<aryeduino> No I am running on raspberry pi 5 with 8GB
<aryeduino> how come that the vendor imagfe I was able to create without issues at all?
<aryeduino> would it work on Ubuntu 18.04?
<aryeduino> or WSL?
Stat_headcrabed has joined #riscv
jacklsw has quit [Quit: Back to the real world]
Stat_headcrabed1 has joined #riscv
Stat_headcrabed has quit [Ping timeout: 272 seconds]
Stat_headcrabed1 is now known as Stat_headcrabed
ntwk has joined #riscv
Forty-Bot has joined #riscv
fabs has quit [Ping timeout: 272 seconds]
mps has quit [Quit: leaving]
mps has joined #riscv
billchenchina has quit [Remote host closed the connection]
billchenchina has joined #riscv
theruran has joined #riscv
damian101 has quit [Remote host closed the connection]
damian101 has joined #riscv
BootLayer has joined #riscv
jacklsw has joined #riscv
psydroid has quit [Remote host closed the connection]
jacklsw has quit [Ping timeout: 272 seconds]
paddymahoney has quit [Ping timeout: 264 seconds]
paddymahoney has joined #riscv
___nick___ has joined #riscv
___nick___ has quit [Client Quit]
___nick___ has joined #riscv
psydroid has joined #riscv
jljusten has quit [Quit: WeeChat 4.1.1]
jljusten has joined #riscv
mahk has quit [Changing host]
mahk has joined #riscv
psydroid2 has joined #riscv
damian101 has quit [Ping timeout: 264 seconds]
davidlt has quit [Ping timeout: 256 seconds]
psydroid2 has quit [Ping timeout: 252 seconds]
jedix has quit [Ping timeout: 256 seconds]
jedix has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
s3 has quit [Quit: Leaving]
psydroid2 has joined #riscv
billchenchina has quit [Quit: Leaving]
davidlt has joined #riscv
BootLayer has quit [Read error: Connection reset by peer]
KREYREN has joined #riscv
<geertu> Esmil: Does your visionfive branch boot on starlight?
<geertu> I had merged your (this morning version of) visionfive into v6.10-rc1, and it hangs when booting.
<geertu> I see you have just updated your branch to v6.10-rc1, and that has the same issue
<geertu> Oh, earlycon does work on your tree (it didn't in my local tree)
<geertu> WARNING: CPU: 0 PID: 1 at drivers/irqchip/irq-sifive-plic.c:373 plic_handle_irq+0xf2/0xf6
<geertu> Unable to handle kernel NULL pointer dereference at virtual address 0000000000000004
<geertu> epc : plic_handle_irq+0x66/0xf6
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
alperak has quit [Quit: Connection closed for inactivity]
drmpeg has quit [Ping timeout: 256 seconds]
davidlt has quit [Ping timeout: 240 seconds]
drmpeg has joined #riscv
jmdaemon has joined #riscv
scrts0 is now known as scrts
scrts has left #riscv [The Lounge - https://thelounge.chat]
naoki has joined #riscv
naoki has quit [Client Quit]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #riscv
___nick___ has quit [Client Quit]
zjason has quit [Read error: Connection reset by peer]
zjason has joined #riscv
jmdaemon has quit [Ping timeout: 240 seconds]
KREYREN has quit [Remote host closed the connection]
KREYREN has joined #riscv
alexghiti has quit [Ping timeout: 252 seconds]
alexghiti has joined #riscv
paddymahoney has quit [Ping timeout: 260 seconds]
wingsorc has joined #riscv
paddymahoney has joined #riscv
jmdaemon has joined #riscv
jmdaemon has quit [Ping timeout: 260 seconds]
jmdaemon has joined #riscv
hightower4 has joined #riscv
hightower3 has quit [Ping timeout: 260 seconds]
matoro has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
matoro has joined #riscv
jmdaemon has quit [Ping timeout: 264 seconds]
wingsorc has quit [Remote host closed the connection]
damian101 has joined #riscv
damian101_ has joined #riscv
damian101 has quit [Ping timeout: 240 seconds]
wingsorc has joined #riscv
damian101__ has joined #riscv
damian101_ has quit [Ping timeout: 268 seconds]
s1b1 has quit [Ping timeout: 255 seconds]
iooi has quit [Ping timeout: 264 seconds]
iooi has joined #riscv
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
iooi has quit [Read error: Connection reset by peer]
iooi has joined #riscv
s1b1 has joined #riscv
pecastro has quit [Ping timeout: 272 seconds]
DesRoin has quit [Ping timeout: 255 seconds]
DesRoin has joined #riscv