xypron changed the topic of #u-boot to: #u-boot SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot 2023.01 / Merge Window is OPEN, -next is CLOSED / Release v2023.01 is scheduled for 2023-01-09 / Channel archives at https://libera.irclog.whitequark.org/u-boot
qschulz has quit [Remote host closed the connection]
qschulz has joined #u-boot
vagrantc has quit [Quit: leaving]
<Manouchehri> oops sorry I already posted basically the same thing
<Manouchehri> yeah so I have the rng driver loaded
<Manouchehri> yet `rng` doesn't work
minimal has quit [Quit: Leaving]
mmu_man has quit [Ping timeout: 272 seconds]
hanetzer has quit [Ping timeout: 272 seconds]
hanetzer has joined #u-boot
camus has joined #u-boot
thopiekar_ has joined #u-boot
thopiekar has quit [Ping timeout: 272 seconds]
hanetzer has quit [Ping timeout: 250 seconds]
hanetzer has joined #u-boot
umbramalison has quit [Quit: %So long and thanks for all the fish%]
umbramalison has joined #u-boot
<macromorgan> is the driver bound? what does dm tree show?
<Manouchehri> actually I don't know what bound means
<macromorgan> driver might not have probed, meaning even though the driver is there it's like it's not (meaning the rng can't be used). Honestly I don't know, as I can only speak for the PX30 or the rk3566 I've tested it on (both work though they are v2 rngs for what it's worth)
<Manouchehri> macromorgan: How does one probe things?
<Manouchehri> I'm recompiling with CONFIG_CMD_BIND now. https://u-boot.readthedocs.io/en/latest/develop/driver-model/bind.html
<Manouchehri> hmmm actually isn't the driver already bound?
<Manouchehri> just not probed?
jclsn has quit [Ping timeout: 255 seconds]
jclsn has joined #u-boot
<macromorgan> you can enable debugging in your build and see if it fails or anything. The kaslrseed should probe and bind the driver if it's not already probed, so worst case with debug info enabled you can see the output of that and find out what the hitch is
<Manouchehri> macromorgan: CONFIG_DM_DEBUG?
<Manouchehri> ah ha!
<Manouchehri> rockchip-rng rng@ff8b8000: failed to set rate on clock index 0 (134) (error = -2)
sukbeom has joined #u-boot
ide12 has quit [Quit: Cya!]
ide12 has joined #u-boot
<Manouchehri> YES I GOT IT WORKING
<Manouchehri> I removed the clocks
sakman has quit [Ping timeout: 264 seconds]
WoC- has quit [Ping timeout: 272 seconds]
rvalue has quit [Ping timeout: 272 seconds]
rvalue has joined #u-boot
rvalue- has joined #u-boot
rvalue has quit [Ping timeout: 272 seconds]
rvalue- is now known as rvalue
ide12 has quit [Quit: Cya!]
ide12 has joined #u-boot
<jagan> anyone booted rockchip psci SoCs's in linux-next
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
lucascastro has joined #u-boot
indy has quit [Ping timeout: 260 seconds]
PhoenixMage has joined #u-boot
indy has joined #u-boot
mmu_man has joined #u-boot
camus1 has joined #u-boot
camus has quit [Ping timeout: 276 seconds]
camus1 is now known as camus
___nick___ has joined #u-boot
thopiekar_ has quit [Ping timeout: 272 seconds]
<hays> kabel: Any idea what might be going on here with building atf-marvell? https://h0c.us/v/QOSG gcc-12
<hays> bl2.elf doesn't seem to be getting made
<hays> /usr/bin/aarch64-linux-gnu-ld: warning: /home/hays/Projects/chroots/bionic/espressobin/src/trustedfirmware/trusted-firmware-a/build/a3700/release/bl2/bl2.elf has a LOAD segment with RWX permissions
thopiekar has joined #u-boot
WoC` has joined #u-boot
GNUtoo has quit [Ping timeout: 258 seconds]
thopiekar has quit [Ping timeout: 276 seconds]
<marex> hays: make E=0
<marex> hays: ATF has many such weird bugs ... I don't trust that development process of theirs
<marex> or edit Makefile and add +TF_LDFLAGS += --fatal-warnings -O1 --no-warn-rwx-segments
thopiekar has joined #u-boot
WoC` has quit [Remote host closed the connection]
<hays> heh... yeah i ended up stumbling across the same fix.. now the build is not producing flash_image.bin so I am adding targets to my build script to see if that works
<hays> was going make all fip
<hays> now doing all fip mrvl_bootimage mrvl_flash mrvl_uart
lucascastro has quit [Quit: Leaving]
<hays> which pulled in a cryptopp dependency which ... is interesting
GNUtoo has joined #u-boot
<hays> wow i think i got it.
WoC` has joined #u-boot
minimal has joined #u-boot
thopiekar has quit [Ping timeout: 272 seconds]
jagan has quit [Ping timeout: 276 seconds]
rburkholder has joined #u-boot
thopiekar has joined #u-boot
thopiekar has quit [Client Quit]
thopiekar has joined #u-boot
lucascastro has joined #u-boot
kettenis has quit [Ping timeout: 248 seconds]
lucascastro has quit [Quit: Leaving]
thopiekar has quit [Ping timeout: 272 seconds]
thopiekar has joined #u-boot
kettenis has joined #u-boot
<hays> Now I need to figure out how to write the rng function and access it from uboot
thopiekar has quit [Ping timeout: 276 seconds]
thopiekar has joined #u-boot
thopiekar has quit [Ping timeout: 276 seconds]
thopiekar has joined #u-boot
<hays> "CZ.NIC as part of Turris project released free and open source WTMI application firmware wtmi_app.bin for all Armada 3720 devices. This firmware includes additional features like access to Hardware Random Number Generator of Armada 3720 SoC which original Marvell’s fuse.bin image does not have."
<hays> Im trying to figure out how this statement connects to CONFIG_RNG_SMCCC_TRNG
vagrantc has joined #u-boot
<macromorgan> <Manouchehri>: Slap a printf function in the kaslrseed to make sure you're actually returning random stuff... I know the clocks are important to getting randomness for that driver.
<macromorgan> but otherwise glad to hear it
<Manouchehri> macromorgan: honestly as long as it’s sorta random, good enough. ASLR isn’t super super effective anyway.
<macromorgan> well hell you can do kaslrseed then with pseudo random if that's what you want, no driver needed :-)
<macromorgan> setenv randomaddress ${loadaddr};random ${randomaddress} 8;setexpr.w seedvalue1 *${randomaddress};setexpr randomaddress ${randomaddress} + 2;setexpr.w seedvalue2 *${randomaddress};setexpr randomaddress ${randomaddress} + 2;setexpr.w seedvalue3 *${randomaddress};setexpr randomaddress ${randomaddress} + 2;setexpr.w seedvalue4 *${randomaddress};setenv kaslr-seed "<0x${seedvalue1}${seedvalue2} 0x${seedvalue3}${seedvalue4}>";seten
<macromorgan> v seedvalue1;setenv seedvalue2;setenv seedvalue3;setenv seedvalue4;setenv randomaddress
<macromorgan> fdt set /chosen kaslr-seed "${kaslr-seed};"
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
hanetzer has quit [Ping timeout: 272 seconds]
hanetzer has joined #u-boot
hanetzer has quit [Ping timeout: 250 seconds]
hanetzer has joined #u-boot
ad__ has quit [Changing host]
ad__ has joined #u-boot
<marex> hays: it probably means your Turris firewall^WCM4 can be used to bypass some protection and access the RNG
<marex> hays: so the call is likely going through rpmsg to the CM4, with no SMC calls inbetween
GNUtoo has quit [Remote host closed the connection]
___nick___ has quit [Ping timeout: 272 seconds]
GNUtoo has joined #u-boot
<hays> Marex: as far as I can tell, the firmware seems to be independent of the kernel, although there is a specific Linux kernel driver for the Turris Mox
<marex> hays: the firmware is running on some cortexM companion core built into the armada
<hays> The mox_sp.c file implements a call but it’s just to the e data function and it’s board specific . I think there might be a way to write a function for the RNG.. but what attaches to it I do not know
<hays> Practically I also am not sure if I flash this with bubt or need the special mox-imager tool
<hays> I think a function like this might work to access the RNG https://h0c.us/v/BSOX
<marex> hays: isnt there already some rng rpmsg glue in drivers/crypto ?
<hays> marex: i don't think so
<marex> hays: drivers/crypto/virtio
<marex> that might be it
<hays> are you looking somewhere other than here https://github.com/u-boot/u-boot/tree/master/drivers/crypto
zkrx has quit [Read error: Connection reset by peer]
mmu_man has quit [Ping timeout: 255 seconds]
zkrx has joined #u-boot