mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
hipboi has joined #linux-rockchip
<mmind00> macromorgan_: there is the cpu-id field? i.e. that's the one u-boot can use to generate a mostly unique mac address from
hipboi has quit [Ping timeout: 264 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 252 seconds]
vagrantc has quit [Quit: leaving]
alpernebbi has quit [Ping timeout: 252 seconds]
hipboi has joined #linux-rockchip
alpernebbi has joined #linux-rockchip
stikonas has quit [Quit: Konversation terminated!]
stikonas has joined #linux-rockchip
stikonas has quit [Ping timeout: 256 seconds]
macromorgan_ has quit [Quit: Leaving]
macromorgan has joined #linux-rockchip
<macromorgan> mmind00: I was thinking of something more secure (like a unique ID that can only be read from the OTP-S or whatnot). Goal is to have something I can use to program the RPMB in a secure but reproducible manner...
hipboi has quit [Remote host closed the connection]
hipboi has joined #linux-rockchip
sigmaris has quit [Quit: ZNC - https://znc.in]
sigmaris has joined #linux-rockchip
hanetzer has quit [Quit: WeeChat 4.1.1]
hanetzer has joined #linux-rockchip
naoki has joined #linux-rockchip
<lvrp16> macromorgan: how do you write all these DTs without schematics?
mripard has quit [Ping timeout: 256 seconds]
mripard has joined #linux-rockchip
hipboi has quit [Remote host closed the connection]
hipboi has joined #linux-rockchip
hipboi has quit [Read error: Connection reset by peer]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 276 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Remote host closed the connection]
hipboi has joined #linux-rockchip
Perflosopher has quit [Ping timeout: 264 seconds]
Perflosopher has joined #linux-rockchip
hipboi has quit [Remote host closed the connection]
crabbedhaloablut has joined #linux-rockchip
indy_ is now known as indy
warpme has joined #linux-rockchip
hipboi has joined #linux-rockchip
hipboi has quit [Read error: Connection reset by peer]
hipboi has joined #linux-rockchip
<indy> hi all, do i understand well that rk3399 spi can act as slave?
<indy> my intention is to hook rockpi-s to rk3399 and boot rockpi-s from rk3399
crabbedhaloablut has quit []
crabbedhaloablut has joined #linux-rockchip
hipboi has quit [Remote host closed the connection]
<beeble> indy: no real world experience. but the driver allows to configure it via devicetree https://elixir.bootlin.com/linux/latest/source/drivers/spi/spi-rockchip.c#L762
hipboi has joined #linux-rockchip
<indy> beeble, so it apply for all rk chips which are using same driver?
<beeble> yes should be the case
kevery has joined #linux-rockchip
kevery has quit [Quit: kevery]
<indy> beeble, is possible to do this? https://www.corelis.com/education/tutorials/spi-tutorial/#SPI_Bus_3-Wire_and_Multi-IO_Configurations because some time ago i saw openocd-spi fork using for swd spi from raspberry pi
<beeble> i do not see how this exacly relates. for swd you just need master and this pretty much just replaces the bitbang gpio stuff with a spi master
<beeble> for slave you need something that reacts quite fast as slave on read commands from the host (rk3399 boot rom in your case)
<beeble> if you are not planning to change your bootload with every boot i would go the easy route and make your spi flash multi-master accessible. so that you write it from one device and and then not touch it until you write it again (but not sure why you would need something like that all :))
<indy> i plan to change bootload every boot :)
sL1pKn07 has quit [Ping timeout: 276 seconds]
<beeble> indy: if you are not explicitly want to test the spi flow i would think that spending the efforts in getting u-boot TPL/SPL to load proper correctly via a maskrom upload would be more beneficial
<indy> with threadx released with mit license, moved under eclipse umbrella, misra certified and smp documented i would like to play with threadx smp in cortex a35, booting from spi served by rk3399
<indy> beeble, that's exactly what i want
<indy> i have bare-rk3308 which enables swd so i can play with default - https://github.com/cz172638/bare-rkxxxx/blob/main/code-rk3308.S
<indy> i want to load it using spi, instead of usb
<indy> ultimate goal is to have 'workbench' consisting from rockpi4 hooked to rockpis spi as slave and serial to have output from it and eventually having spi as swd adaptor, and running openocd on rockpi4 without any gpio bitbanging and/or usb probes
dsimic has quit [Ping timeout: 245 seconds]
<indy> and vice-versa, having rockpis as openocd/conserver for rk3xxx low-level development
dsimic has joined #linux-rockchip
<beeble> i somehow doubt that this will work timingwise nicely (without a lot of effort) for flash emulation. most of the time you are ending up with sram and a fpga for such applications. but that is only my opinion, maybe somebody has better ideas. wishing you good luck with getting it done
<indy> how timingwise?
<indy> spi is not that fast :)
<indy> beeble, even with pinning such task to isolated core?
<beeble> you have to serve data immediately after the last address bit. so you get <instruction><address> and with the next spi clock cycle you already have to provide the read data
<beeble> and you have no clock stretching or ready signal
<beeble> this might be a challenge, especially if you try to do it via spidev. not saying that it is not possible at all, but i'm doubtful of it being straight forward
<indy> what about vfio-platform to pass spi device to userspace?
<beeble> no experience sorry
<phh> just to be sure i'm understanding correctly: you want to implement a software SPI NOR for the rockpi to boot from?
ldevulder has quit [Quit: Leaving]
psydroid has joined #linux-rockchip
hanetzer has quit [Ping timeout: 255 seconds]
hanetzer has joined #linux-rockchip
stikonas has joined #linux-rockchip
hipboi has quit [Remote host closed the connection]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 268 seconds]
<macromorgan> lvrp16: I dump the factory image, decompile the device tree, and then add the devices one by one to make sure each one work
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 252 seconds]
stikonas has quit [Remote host closed the connection]
stikonas has joined #linux-rockchip
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 276 seconds]
<robmur01> indy: FWIW I looked into doing the same thing a while ago (but never got round to implementing it). The verdict seemed to be that it is achievable, but only if the access pattern is consistent and predictable (as a boot ROM typically would be)
<robmur01> basically you don't really emulate the NOR as such, you just replay a canned stream of data to match the commands you know are coming
hipboi has joined #linux-rockchip
<indy> phh: yes
hipboi has quit [Ping timeout: 264 seconds]
<phh> afaik there is no wait signal or anything in spi nor so you have to be clock-perfect. as you point out, it's slow enough that it isn't so much an issue of speed, rather than properly syncing, and how to ensure you're correctly in sync? I mean in one single transfer, you receive the address of the read, and send the data
<indy> robmur01, i was thinking something like usb storage gadget module, where you pass file to serve
<indy> phh, ^^
<phh> i'd say your easiest bet would be rpi2040? https://github.com/raspberrypi/pico-examples/issues/26 there are SD emulations examples
<indy> phh, i'll look at it
naoki has quit [Remote host closed the connection]
<phh> pls keep us posted ^^
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 255 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 255 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 276 seconds]
stikonas has quit [Remote host closed the connection]
stikonas has joined #linux-rockchip
vagrantc has joined #linux-rockchip
Danct12 has quit [Quit: ZNC 1.8.2 - https://znc.in]
asriel has quit [Quit: Don't drink the water. They put something in it to make you forget.]
Danct12 has joined #linux-rockchip
asriel has joined #linux-rockchip
warpme_ has joined #linux-rockchip
warpme has quit [Ping timeout: 268 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 256 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 264 seconds]
warpme_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 264 seconds]
hipboi has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hipboi has quit [Ping timeout: 255 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 268 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 252 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 268 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 252 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Read error: Connection reset by peer]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 255 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 276 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Read error: Connection reset by peer]
warpme has joined #linux-rockchip
warpme has quit [Client Quit]
hipboi has joined #linux-rockchip
hipboi has quit [Read error: Connection reset by peer]
hipboi_ has joined #linux-rockchip
hipboi_ has quit [Ping timeout: 255 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 255 seconds]
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 268 seconds]
crabbedhaloablut has quit []
hipboi has joined #linux-rockchip
hipboi has quit [Ping timeout: 264 seconds]
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]