<mkorpershoek>
oops, wrong chan, sorry folks. Did not have enough coffee :)
mmu_man has joined #u-boot
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
sszy has joined #u-boot
___nick___ has joined #u-boot
rocksnowfall has joined #u-boot
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 272 seconds]
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #u-boot
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #u-boot
monstr has joined #u-boot
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 245 seconds]
alexxy has joined #u-boot
mmu_man has joined #u-boot
devonian_invader has joined #u-boot
___nick___ has quit [Ping timeout: 245 seconds]
___nick___ has joined #u-boot
chewitt has joined #u-boot
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
Stat_headcrabbed has joined #u-boot
devonian_invader has quit [Ping timeout: 245 seconds]
devonian_invader has joined #u-boot
rainbyte has joined #u-boot
mmu_man has quit [Quit: reboot]
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #u-boot
goliath has quit [Quit: SIGSEGV]
mmu_man has joined #u-boot
<f_>
hey, just a sanity check, how is TPL expected to load SPL so SPL then loads FIT images and carries on?
<f_>
on arm at least the only platform that enables TPL so far is rockchip and they just return to the bootrom and the bootrom takes care of loading spl. But there's no such thing in amlogic world
<f_>
back last time when I looked into it I just added a TPL_MMCSD_RAW_MODE_U_BOOT_SECTOR kconfig and had it set to where the raw SPL binary was (no checksums or anything) but it doesn't feel like a particularly great solution...
<marex>
f_: TPL is a free-for-all kind of loader ... do whatever you can to get to the SPL, ends justify the means
monstr has quit [Remote host closed the connection]
<f_>
marex: yeah I guess, so it's fine if I just patch in TPL_MMCSD_RAW_MODE_U_BOOT_SECTOR and use that for TPL to load SPL raw
<f_>
?
<f_>
and when I say it's fine, I really mean "is it acceptable upstream"
<marex>
MMCSD_RAW_MODE_U_BOOT_SECTOR is raw offset in SDMMC, what are you trying to do ?
<f_>
have TPL load SPL from MMC
<marex>
do you want to load raw U-Boot binary without any checksum (ew) instead of uImage/fitImage ?
<f_>
ideally with some kind of checksumming/uImage/FIT
<marex>
TPL_MMCSD_RAW_MODE_U_BOOT_SECTOR should then point to the sector in which uImage is stored, what's the problem ?
<marex>
the SPL MMC/core code loads uImage header, parses it, loads the rest to the target location
<f_>
the problem is TPL_MMCSD_RAW_MODE_U_BOOT_SECTOR doesn't exist, I made it up locally
<f_>
and the other problem is I'm not sure if TPL supports uImage/FIT
<f_>
there is no kconfig for enabling them like there is in SPL, docs suggest it can only load raw
<marex>
f_: poke around common/spl/spl.c spl_parse_image_header()
<marex>
cf spl_parse_legacy_header()
<f_>
interesting
<marex>
f_: if you are really size constrained, look at ci20
<marex>
f_: that is the spanish boot of SPL
dsimic has quit [Ping timeout: 245 seconds]
<marex>
f_: getting the SPL to fit there was truly gruesome torture
<f_>
I have 44K to work with, SPL can kinda fit but not without losing a bunch of features and stripping down drivers
<marex>
oh, 44k is massive
<f_>
maybe I'm holding it wrong
<f_>
but I had to disable quite a few drivers such as ... ew, the clock driver, to get it to fit
<marex>
DM might be too much indeed
<f_>
yeah all amlogic drivers are predominantly DM-based
dsimic has joined #u-boot
<f_>
I did port the mmc driver and uart driver to non-DM specifically for spl
<f_>
and even then, some neat things I'd love to see working just don't fit at all
<marex>
f_: discard UART entirely, try DEBUG_UART if you really need that
<marex>
although with 44k you could likely do proper printing
<f_>
oh the UART non-DM driver is very barebones
frieder has quit [Quit: Leaving]
m has quit [Quit: WeeChat 4.9.4]
memset has quit [Remote host closed the connection]
m has joined #u-boot
memset has joined #u-boot
goliath has joined #u-boot
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #u-boot
sszy has quit [Remote host closed the connection]
slobodan has joined #u-boot
slobodan has quit [Changing host]
slobodan has joined #u-boot
<mort>
I need to write a string with a newline in it to a file from a boot script...
<mort>
how do I get a newline into a string?
mmu_man has quit [Ping timeout: 265 seconds]
mmu_man has joined #u-boot
vagrantc has joined #u-boot
Stat_headcrabed1 has joined #u-boot
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
Stat_headcrabed1 is now known as Stat_headcrabbed
<marex>
use \n or cf. ascii 0x0a
<mort>
with what? The string literal parser doesn't seem to accept "\n", and literal newlines get normalized to space
<mort>
rather, the string literal parser accepts "\n" as a backslash followed by an 'n', not something special
<f_>
mort: may I ask what your usecase is?
<mort>
writing an A/B partitioning boot state file in a context without environment variables
<mort>
sorry, without persistent environment variables
pgreco has joined #u-boot
<mort>
hm it seems like I can actually use 'env export -t' for this, I need basically the string environment format
pgreco_ has quit [Ping timeout: 276 seconds]
eballetbo has quit [Quit: Connection closed for inactivity]
<Sout_>
hrmm "\0" might work iirc.
vagrantc has quit [Quit: leaving]
<marex>
where is the string stored now and how do you write it into a file now ?
<marex>
if it is in memory, mw.b 0xendofstringaddress 0xa if all else fails, then write ...
___nick___ has quit [Ping timeout: 256 seconds]
kabel has quit [Quit: kabel]
mmu_man has quit [Ping timeout: 244 seconds]
mmu_man has joined #u-boot
goliath has quit [Quit: SIGSEGV]
prabhakalad has quit [Ping timeout: 252 seconds]
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
___nick___ has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
memset_ has joined #u-boot
memset has quit [Remote host closed the connection]
memset has joined #u-boot
memset_ has quit [Remote host closed the connection]