<Guest71>
I have a question if someone would be so kind to answer. Whom/Where do I need to contact from uboot, to report a security vulnerability?
<apalos>
Guest71: Tartarus is the head maintainer, so mailing him (Tom Rini) and the subsystem maintainer which the vuln belongs to is a good start
tnovotny has quit [Remote host closed the connection]
<Guest71>
Thank you very much! Is it still trini@konsulko.com ?
<apalos>
yep
Guest71 has quit [Quit: Guest71]
zibolo has quit [Ping timeout: 240 seconds]
zibolo_ has quit [Ping timeout: 248 seconds]
zibolo has joined #u-boot
zibolo_ has joined #u-boot
zibolo has quit [Quit: bye]
mmu_man has joined #u-boot
apritzel has joined #u-boot
<apritzel>
Hi, is there already something that would create a UCLASS_BLK device based on memory mapped (flash) storage? So to allow partitioning and filesystem access?
zibolo_ has quit [Quit: bye]
<apritzel>
Maybe on top of MTD? Like Linux' mtdblock?
<apritzel>
in particular this is using a Xilink "XIP/XNVM" QSPI controller, to expose a read-only byte-accessible view of some QSPI flash, and we want to use a GPT on that
ilunev has joined #u-boot
<hanetzer>
apritzel: so like, gdisk /dev/mdt in linux parlance?
<hanetzer>
*mdt
NonaSuomy has joined #u-boot
<hanetzer>
any rockchip u-boot maintainer around? a bit curious about the rockchip_timer_init function in mach-rockchip/spl.c
ilunev has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hanetzer>
how would one go about seeing where to trim space in spl?
<hanetzer>
I'm over by 0x108 bytes :P
<cambrian_invader>
you can start with nm --size-sort u-boot
cambrian_invader has left #u-boot [No boundaries on the net!]
cambrian_invader has joined #u-boot
<cambrian_invader>
and try enabling LTO
<hanetzer>
damn, tsill 0x20 too big :P
<hanetzer>
however that's a nice trick, thank.
<hanetzer>
its the debug uart, nice.
vagrantc has joined #u-boot
<hanetzer>
oh well, doesn't mattter much since I'm feeding it to a self-rolled qemu sim for now
<hanetzer>
hrm. where can one enable debug symbols for u-boot?
apritzel has quit [Ping timeout: 260 seconds]
<hanetzer>
ah. optimize for debugging
mmu_man has quit [Ping timeout: 240 seconds]
<hanetzer>
in coreboot there's a bit of ram used to keep the cbmem log ring buffer whatever that one could inspect in gdb while debugging, does something similar exist in u-boot, and if so, where is it located/how can one locate it?
littlebobeep has quit [Ping timeout: 240 seconds]
mmu_man has joined #u-boot
prabhakarlad has joined #u-boot
<rfs613>
hanetzer: check out CONFIG_LOG and related settings, which allows logging messages into a memory buffer.
<hanetzer>
thank.
<rfs613>
there is also bootstage, but AFAIK this is much less granular
mmu_man has quit [Ping timeout: 248 seconds]
<hanetzer>
`undefined reference to `_u_boot_list_2_driver_2_hisilicon_hi3521a_crg' seems I'm missing something here for the spl.
<hanetzer>
I did U_BOOT_DRIVER(hisilicon_hi3521a_crg) with .name = "hisilicon_hi3521a_crg", and try to get it via `uclass_get_device_by_driver(UCLASS_CLK, DM_DRIVER_GET(hisilicon_hi3521a_crg), devp)', where udevice **devp
apritzel has joined #u-boot
littlebobeep has joined #u-boot
<marex>
hanetzer: driver not compiled in or something ?
<hanetzer>
should be? there's an *.o file for it under spl
<hanetzer>
or not... I swear it was there before lmao
<hanetzer>
probably left over from a dirty rebuild.
mmu_man has joined #u-boot
<hanetzer>
how,if at all, important is it to have the first parameter of the U_BOOT_DRIVER and .name field be the same?
torez has quit [Quit: torez]
<hanetzer>
wrt DEBUG_UART_*_INIT, I suppose I should do any pinmuxing and clocking needed there yeah?
<cambrian_invader>
yes
<hanetzer>
and in arch/arm/mach-rockchip/spl.c rockchip_timer_init is initializing a memory-mapped clock, which may be, for example, a sp804 clock on another platform?
<rfs613>
hanetzer: from a quick look, rockchip timer is not an sp804. The rockchip has a control register at offset 0x10. Whereas sp804 offset 0x10 is a read-only interrupt status register.
<rfs613>
also the rockchip looks to be a 64-bit counter, while the sp804 is 32-bit (but there are two of them)
NonaSuomy has quit [Ping timeout: 248 seconds]
NonaSuomy has joined #u-boot
<NonaSuomy>
What is usually involved in rooting a device besides using sketchy 3rd party tools?
<NonaSuomy>
What do all these tools do to accomplish that task?
<NonaSuomy>
When I look up manual root processes they all start with get 1-click root app etc but can't find technical documentation of what actually happens.
<hanetzer>
rfs613: yeah, I just mean conceptually that its 'some clock peripheral mmio mapped here'
sbach has quit [Read error: Connection reset by peer]
sbach has joined #u-boot
<hanetzer>
ugh. it really is annoying when what your datasheet says is contradicted by running, working firmware on a device
<hanetzer>
datasheets say apll foutpostdiv has a max of 800mhz but the registers and the maths they give for it put it at 1.1ghz lmao... unless their div1/div2 values are 1-indexed, I guess.
<hanetzer>
but then again, other values match 1:1 when using 0-indexed values.