tusko has quit [Remote host closed the connection]
tusko has joined #riscv
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #riscv
keegans has joined #riscv
<keegans>
hi. I have a simple rv64 kernel that uses opensbi to print Hello World. it boots in QEMU but now I would like to run it on my Mango Pi MQ Pro. I am trying to understand the boot process so I want to make sure understanding so far is correct
<keegans>
I'd like to avoid the use of U-boot if possible, so I need to use smaeul's SPL boot0 program to boot into OpenSBI which in turn can boot my kernel
<keegans>
I could also use FEL, however that starts in machine mode which is not what I want, but I could potentially load OpenSBI inside FEL which could load my kernel, but I'd rather not do it that way either so I can have an sd card image
JanC has quit [Ping timeout: 246 seconds]
cousteau has quit [Quit: ♫ I can't forget the day I shot that network down ♫]
JanC has joined #riscv
<keegans>
I realize I should also specify that this board is based on the Allwinner D1
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
<smaeul>
you need something to initialize DRAM before you can run OpenSBI, so you need either boot0 or U-Boot SPL
vineetg762 has joined #riscv
jacklsw has joined #riscv
Leopold has quit [Ping timeout: 255 seconds]
Leopold has joined #riscv
The_Decryptor has quit [Quit: Ping timeout (120 seconds)]
The_Decryptor has joined #riscv
Leopold has quit [Ping timeout: 255 seconds]
JanC has joined #riscv
Leopold has joined #riscv
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #riscv
epony has joined #riscv
<keegans>
smaeul: Makes sense. thank you. should I make a TOC1 with U-boot set to my kernel image? from reading the source code all it does is tell opensbi to boot to that next address
<keegans>
I guess I could also modify the sources to get rid of the TOC1 funkiness but maybe that's not advisable
elastic_dog is now known as Guest5832
Guest5832 has quit [Killed (cadmium.libera.chat (Nickname regained by services))]
elastic_dog has joined #riscv
<smaeul>
if you want to avoid TOC1 (and I would suggest that), you can either 1) use U-Boot SPL (just the SPL part) and put OpenSBI + your kernel in a FIT image, or 2) embed your kernel inside OpenSBI by building OpenSBI with FW_PAYLOAD_PATH
zjason has quit [Ping timeout: 255 seconds]
<keegans>
I appreciate the help, I'll give them both a try. thank you! One more architectural question, can you help me understand why there is an SPL and it is not simply the responsibility of OpenSBI? I am not clear where the line is drawn between the two
elastic_dog has quit [Ping timeout: 256 seconds]
craigo has quit [Ping timeout: 255 seconds]
<smaeul>
SPL is the early run-it-and-forget-it boot code, limited in size and functionality because it runs from SRAM (it is responsible for initializing the DRAM controller). OpenSBI is the runtime firmware.
<smaeul>
OpenSBI uses a devicetree, so something has to run first and load that devicetree
matoro- has joined #riscv
elastic_dog has joined #riscv
Trifton has joined #riscv
<smaeul>
also you generally want your runtime firmware to be small, since that RAM is permanently consumed. so you want to keep one-time init code out of it
<smaeul>
e.g. since SPL loads both OpenSBI _and_ the next stage, OpenSBI does not need any storage or filesystem drivers
<keegans>
That makes a lot of sense, thank you for the explanation
JanC has quit [Ping timeout: 252 seconds]
rneese has joined #riscv
<rneese>
so anyone here have ethernet fail on there starfive v1 board
<rneese>
anyone know what it takes to completely wipe and reset the board opensbi and firmware and uEnv
<rneese>
try to get the eth0 back working
motherfsck has quit [Ping timeout: 246 seconds]
rneese has quit []
andyc has joined #riscv
vagrantc has quit [Quit: leaving]
aredridel has joined #riscv
davidlt has joined #riscv
aredridel has quit [Read error: Connection reset by peer]
aredridel has joined #riscv
<davidlt>
bjdooks, yes, that's the one ;)
<davidlt>
bjdooks, IIRC that was up to 45-blades per 4.3U or something
BootLayer has joined #riscv
potash has quit [Read error: Connection reset by peer]
potash has joined #riscv
andyc has quit [Quit: Connection closed for inactivity]
BootLayer_ has joined #riscv
BootLayer has quit [Ping timeout: 260 seconds]
<davidlt>
conchuod, for high sustained loads you might want to add a fan / heatsinks. At least one person reported overheating the boards compiling the kernel natively.
<davidlt>
conchuod, the only Zbb code that I am aware today is in-kernel Zbb stuff :)
<davidlt>
There is one patchset on glibc mailing list for vector + bitmanip combined, but no one really looked at it.
<davidlt>
There are some (at least one) string related example it bitmanip spec IIRC.
<davidlt>
ah, you already tested them :)
<davidlt>
conchuod, the other option is to start recompiling stuff and running testsuites :)
<davidlt>
for example recombine binutils with Zba and Zbb (or by one) and re-run test suite, compare everything. Do some static binary analysis too on how much of Zba or/and Zbb inst there actually there too.
<davidlt>
Do that with a few large packages (and good testsuites).
solrize has quit [Ping timeout: 246 seconds]
<davidlt>
That is faster and gives you a larger test surface :)
davidlt has quit [Ping timeout: 260 seconds]
jobol has joined #riscv
lockna has joined #riscv
ldevulder has joined #riscv
ElementW has quit [Quit: No Ping reply in 180 seconds.]
ElementW has joined #riscv
bjoto has quit [Quit: WeeChat 3.6]
Leopold has quit [Remote host closed the connection]
Leopold has joined #riscv
davidlt has joined #riscv
eroux has quit [Ping timeout: 256 seconds]
pecastro has joined #riscv
eroux has joined #riscv
bjoto has joined #riscv
lockna has quit [Quit: lockna]
eroux has quit [Remote host closed the connection]
lockna has joined #riscv
Leopold has quit [Remote host closed the connection]
Leopold has joined #riscv
Leopold has quit [Remote host closed the connection]
Leopold has joined #riscv
Armand has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
lockna has quit [Quit: lockna]
lockna has joined #riscv
jjido has joined #riscv
micttyl has joined #riscv
wingsorc has quit [Ping timeout: 246 seconds]
lockna has quit [Quit: lockna]
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
<conchuod>
Until my ethernet works, doing anything meaningful natively is gonna be a bit of a pain
<conchuod>
>6:12 AM <davidlt> There are some (at least one) string related example it bitmanip spec IIRC.
<conchuod>
Yeah that's what I tried
wingsorc has joined #riscv
<conchuod>
But if it does actually have 0.94 that should be the same as v1.0.0? At least from a quick diff of the spec nothing looks meaningfully different to my untrained eye
<bjdooks>
can you put a usb->ehternet dongle in?
<conchuod>
Probably but I'd have to acquire one!
<bjdooks>
hmm, on riscv mm->context.id is either the ASID/version pair or zero?
<bjdooks>
conchuod: you don't have a stock in???
<conchuod>
Nope, never used one actually afaik
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #riscv
jjido has joined #riscv
junaid_ has joined #riscv
Leopold has quit [Ping timeout: 255 seconds]
Leopold has joined #riscv
jobol has quit [Ping timeout: 256 seconds]
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
Leopold_ has joined #riscv
Leopold has quit [Ping timeout: 255 seconds]
lockna has quit [Quit: lockna]
junaid_ has quit [Ping timeout: 246 seconds]
danielinux has quit [Ping timeout: 260 seconds]
danielinux has joined #riscv
davidlt has quit [Ping timeout: 252 seconds]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #riscv
davidlt has joined #riscv
epony has quit [Read error: Connection reset by peer]
Leopold has joined #riscv
Leopold_ has quit [Quit: No Ping reply in 180 seconds.]
<davidlt>
khem, do you know when oe/meta-riscv switches to GCC 13 + binutils 2.40?
<bjdooks>
probably when someone starts shipping product with useful extensions tht require it
___nick___ has joined #riscv
<davidlt>
I already see patches for binutils 2.40 on the mailing list
<bjdooks>
does anyone have a recommendation for jtag to connect to external jtag on the unmatched?
craigo has joined #riscv
craigo has quit [Read error: Connection reset by peer]
craigo has joined #riscv
<bjdooks>
why do people make dev boards with easily broken things like usb ports
Leopold has quit [Remote host closed the connection]
<davidlt>
bjdooks, which board is it?
Leopold has joined #riscv
wingsorc has quit [Remote host closed the connection]
Leopold has quit [Remote host closed the connection]
Leopold has joined #riscv
<bjdooks>
Unmatched
fabs has joined #riscv
rsalveti has joined #riscv
<davidlt>
bjdooks, are all broken? One is PCI-USB bridge IIRC.
<davidlt>
conchuod, somehow most of your emails go to SPAM folder. // DMARC fail
<conchuod>
From my work addr?
wingsorc has joined #riscv
<davidlt>
conchuod, yes
<conchuod>
I got our dkim stuff fixed, but that's kinda why I started sending stuff mostly from the korg one.
<davidlt>
Your whole [PATCH v2 0/7] MPFS system controller/mailbox fixes sits in the spam folder
<conchuod>
The dmarc thing has something to do with infradead and Gmail, at least that's what you/Palmer said last time
<conchuod>
I can't use the korg email from work, otherwise I would. Blocked by firewall :(
<conchuod>
I saw it on the account that's behind the korg one, as that's Gmail. I just set all my ML filters to not send anything to spam.
Leopold has quit [Remote host closed the connection]
<bjdooks>
The usb console
epony has joined #riscv
<davidlt>
bjdooks, what's broken with that one?
awita has joined #riscv
Leopold has joined #riscv
junaid_ has joined #riscv
junaid_ has quit [Ping timeout: 252 seconds]
<bjdooks>
It got ripped off the boaed
awita has quit [Quit: Leaving]
<davidlt>
bjdooks, congratulations :) I did the same :D
<davidlt>
There are at least 3 boards that got similar fate :)
<davidlt>
There is another UART on the headers, but it might be a strange 1.8V instead of 3.3V or 5V.
<davidlt>
Ah, I might be mixing stuff.
<davidlt>
I know folks that broke microSD slot (I did that too).
jmdaemon has joined #riscv
mthall has quit [Ping timeout: 256 seconds]
mthall has joined #riscv
<bjdooks>
the uart is available on the headers and it is all 1.8V
bjoto has quit [Read error: Connection reset by peer]
bjoto has joined #riscv
cwebber has joined #riscv
motherfsck has joined #riscv
cwebber has quit [Read error: Connection reset by peer]
jacklsw has joined #riscv
cwebber has joined #riscv
EchelonX has joined #riscv
micttyl has joined #riscv
junaid_ has quit [Ping timeout: 264 seconds]
cwebber has quit [Ping timeout: 260 seconds]
<bjdooks>
hmm, wonder if qemu would like my patch to limit asid size
junaid_ has joined #riscv
jmdaemon has quit [Ping timeout: 246 seconds]
Gravis has quit [Ping timeout: 256 seconds]
Gravis has joined #riscv
Leopold has quit [Ping timeout: 255 seconds]
jobol has joined #riscv
Leopold has joined #riscv
<conchuod>
As long as it works!
<conchuod>
re: the uart
Leopold has quit [Remote host closed the connection]
Leopold has joined #riscv
vagrantc has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
micttyl has quit [Quit: leaving]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #riscv
<khem>
davidlt: currently 2.40 is in flight, there is no gcc13 builds were waiting on getting it to regression fix only stage which it it now, so perhaps time to add devupstream version for this, I do have clang16 branch if you are interested https://github.com/YoeDistro/meta-clang/tree/kraj/clang16
<davidlt>
khem, GCC 13 landed in Fedora a couple days ago (mass rebuilding ongoing).
<davidlt>
I wonder if oe likes to jump into bug hunting game too :)