Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.10, v2024.01-rc6 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2024.01 is scheduled for 08 January 2024 / Channel archives at https://libera.irclog.whitequark.org/u-boot
rvalue has quit [Ping timeout: 276 seconds]
Guest4494 has quit [Ping timeout: 250 seconds]
rvalue has joined #u-boot
vagrantc has quit [Quit: leaving]
naoki has joined #u-boot
sakman1 has joined #u-boot
sakman has quit [Ping timeout: 264 seconds]
sakman1 is now known as sakman
<xypron> Tartarus: Long ago you reviewed https://lore.kernel.org/u-boot/20180826231332.2491-2-erosca@de.adit-jv.com/ ("UBSAN: run-time undefined behavior sanity checker"). Was there any specific reason not to merge this facility? To me it looks like a helpful tool for checking our code.
goliath has quit [Quit: SIGSEGV]
experemental has quit [Ping timeout: 252 seconds]
mmu_man has quit [Ping timeout: 246 seconds]
haritz has quit [Read error: Connection reset by peer]
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
Clamor has joined #u-boot
stefanro has joined #u-boot
naoki has quit [Quit: naoki]
cakes_ has joined #u-boot
cakes has quit [Ping timeout: 252 seconds]
camus has quit [Remote host closed the connection]
camus has joined #u-boot
monstr has joined #u-boot
ikarso has joined #u-boot
Gravis has quit [Ping timeout: 260 seconds]
Gravis has joined #u-boot
experemental has joined #u-boot
Leopold has quit [Ping timeout: 240 seconds]
ezulian has joined #u-boot
davlefou has quit [Ping timeout: 260 seconds]
davlefou has joined #u-boot
tnovotny has joined #u-boot
mmu_man has joined #u-boot
jmasson has joined #u-boot
ladis has joined #u-boot
prabhakarlad has joined #u-boot
samkent has joined #u-boot
Clamor has quit [Ping timeout: 260 seconds]
Clamor has joined #u-boot
sakman has quit [Ping timeout: 256 seconds]
Leopold has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
<Clamor> marex: yes, UA has xmas 25th like all other world
<Clamor> May someone who works with android clarify how binaries are licensed?
<mkorpershoek> I don't know, but maybe try #aosp-developers on OFTC?
<Clamor> mkorpershoek: thanks. Sorry for off topic
Clamor has quit [Quit: Quit]
Clamor has joined #u-boot
slobodan has joined #u-boot
samkent has quit [Remote host closed the connection]
samkent has joined #u-boot
dsimic has quit [Ping timeout: 268 seconds]
dsimic has joined #u-boot
bryanb has quit [Write error: Connection reset by peer]
d4ve has quit [Read error: Connection reset by peer]
ddevault has quit [Write error: Connection reset by peer]
ddevault has joined #u-boot
bryanb has joined #u-boot
d4ve has joined #u-boot
goliath has joined #u-boot
alan_o has quit [Remote host closed the connection]
experemental has quit [Remote host closed the connection]
IoT-Maker has joined #u-boot
<IoT-Maker> i flashed my SPI eeprom using sf erase 0x0 0x800000; sf write 0x2000000 0x0 8388608, i loaded the image in openocd to 0x2000000 before writing in u-boot. i checked if writing was successful using sf read 0x3000000 0x0 0x800000 and md 0x3000000. It looked like the the file content. After reset i got an Bootrom: Invalid header checksum and Bad header at offset 002000000 and on. How can i fix this?
<IoT-Maker> how is the header checksum calculated?
<IoT-Maker> or, how does the system determine a correct checksum.
slobodan_ has joined #u-boot
slobodan has quit [Ping timeout: 245 seconds]
slobodan__ has joined #u-boot
slobodan_ has quit [Ping timeout: 260 seconds]
sakman has joined #u-boot
monstr has quit [Ping timeout: 252 seconds]
<IoT-Maker> I read the first 4 byte are the magic number, the next 4 byte are the CRC32 checksum for byte 0 up to 64. But that doesn't match the the files i testet. The original (untouched and working) SPI content has a CRC32 checksum for the first 64 bytes of 578196cd. But the Value of Byte 4 to 7 is 18E30B00. I let Malcat or ImHex do the calculation. I just marked the bytes.
alan_o has joined #u-boot
<IoT-Maker> Magic Number is 5A 00 00 00 in all the dump files i got. I guess it's correct.
<marex> IoT-Maker: which board is that ? U-Boot version ?
<marex> probably use mkimage to generate the right image with the right header
<marex> kwb is the marvell stuff iirc
<IoT-Maker> Marvell U-boot 2.33, Marvell Armada XP SoC
<marex> ok, ask marvell for support then
samkent has quit [Remote host closed the connection]
<IoT-Maker> i don't have the tools to make a new image. I just changed some values inside the dump. There is a very long bootargs_g1 line in printenv that i tried to change. But it seems u-boot cut off my pasted line after 80 characters. My idea was just to change the value in the SPI dump and upload it.
<CounterPillow> If your workflow ever requires you to binary edit a rom dump and hack in new checksums it is the wrong workflow
<CounterPillow> U-Boot is GPL, you should have received the tools to build a new image and the source code with your binary.
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
experemental has joined #u-boot
<IoT-Maker> <CounterPillow: Yes, you are right. If i were a developer, i would to so. But i'm someone who tries to recover a Drobo NAS after failed firmware update (not my fault, not my device). So i'm looking for the easiest way to bring up this device, even if it means cheating.
<CounterPillow> Clearly there's a disconnect here if you think this path is easier
jmasson has quit [Ping timeout: 260 seconds]
jmasson has joined #u-boot
<f_> IoT-Maker: You should've received marvell U-Boot's source code.
<marex> IoT-Maker: isnt there an update package for the device somewhere on the vendor website ? If it is, extract the bootloader image and write it into SPI NOR ?
<Tartarus> xypron: Changes requested to https://patchwork.ozlabs.org/project/uboot/patch/20180826231332.2491-7-erosca@de.adit-jv.com/ and never followed up on
monstr has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
macromorgan_ has joined #u-boot
macromorgan has quit [Ping timeout: 256 seconds]
macromorgan_ has quit [Read error: Connection reset by peer]
macromorgan has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
monstr has quit [Remote host closed the connection]
prabhakarlad has joined #u-boot
<IoT-Maker> marex: I got working bootloaders. But i want to change 2 values. And i can't do it in u-boot itself because the env argument exceeds the character limit
tnovotny has quit [Quit: Leaving]
Clamor has quit [Ping timeout: 252 seconds]
mmu_man has joined #u-boot
Clamor has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
mmu_man has joined #u-boot
jmasson has quit [Remote host closed the connection]
zsoltiv_ has quit [Ping timeout: 260 seconds]
Clamor has quit [Remote host closed the connection]
zsoltiv_ has joined #u-boot
Clamor has joined #u-boot
rvalue has quit [Ping timeout: 245 seconds]
rvalue has joined #u-boot
<rfs613> am looking at options to replace some board-specific "feature select" defines
<rfs613> I could use CONFIG_NET, CONFIG_USB, CONFIG_MMC for some of them
<rfs613> I don't see anything obviousl for GPIO, I2C, QSPI. I guess I could create my own Kconfig symbols for them.
<rfs613> (oh and happy new year!)
<marex> rfs613: just set the options in Kconfig as needed ?
<rfs613> marex: that works for some, yes. I'm wondering about how to handle for example GPIO. There is no generic "CONFIG_GPIO", only device specific one (like CONFIG_DWAPB_GPIO in my case).
<rfs613> and there are also the DM ones, like CONFIG_DM_GPIO, which I suppose I could piggy-back on... although that seems wrong ;-)
<Tartarus> er, there is CONFIG_GPIO
<Tartarus> drivers/gpio/Kconfig:menuconfig GPIO
<Tartarus> "menuconfig FOO" is just a special case of "config FOO"
<rfs613> Tartarus: okay, that was added in 2021.10, and i was looking at 2021.01
<rfs613> looks like there is also one for I2C now
<rfs613> so the only hold-outs for now are QSPI and NAND
<Clamor> Spi and nand are present as well
<rfs613> i'm doing git grep 'config NAND' and I see a bunch of drivers (CONFIG_NAND_xyz) as well as CONFIG_NAND_BOOT
<rfs613> well, anyhow, I think the answer is clear, I can mostly replace the board-specific #defines by existing Kconfig symbols
Clamor has quit [Ping timeout: 256 seconds]
Clamor has joined #u-boot
vagrantc has joined #u-boot
<marex> rfs613: time to upgrade ?
<rfs613> marex: i get to maintain the existing older version, in parallel with trying to upstream enough of it to be able to update to mainline
Perflosopher has joined #u-boot
Hypfer has quit [Ping timeout: 256 seconds]
<marex> rfs613: but a version that old ... ugh !
<marex> rfs613: cant you #undef CONFIG_GPIO in yourboard.h ?
<rfs613> marex: the repo I pointed at is the original version, i'm actually on 2021.01, so not *that* old ;-)
<rfs613> I can #define or #undef the symbols in my header file, that works, but requires changing source code.
<rfs613> the goal is to be able to build u-boot with and without network support, for example.
<rfs613> ideally just by changing the defconfig
Hypfer has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
GNUtoo has quit [Remote host closed the connection]
<marex> rfs613: if you want working Kconfig, update
<marex> rfs613: you cant have it all -- ancient version, all the bugfixes, working kconfig
GNUtoo has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
ezulian_ has joined #u-boot
ezulian has quit [Remote host closed the connection]
IoT-Maker has quit [Quit: Leaving]
GNUtoo has joined #u-boot
ezulian_ has quit [Ping timeout: 252 seconds]
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
Hypfer has quit [Ping timeout: 256 seconds]
Hypfer has joined #u-boot
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
slobodan__ has quit [Remote host closed the connection]
wyre has quit [Quit: ZNC 1.8.2 - https://znc.in]
wyre has joined #u-boot
sakman has quit [Ping timeout: 245 seconds]
slobodan has joined #u-boot
vagrantc has quit [Quit: leaving]
ladis has quit [Quit: Leaving]
prabhakarlad has quit [Quit: Client closed]
experemental has quit [Read error: error:0A000119:SSL routines::decryption failed or bad record mac]
slobodan has quit [Remote host closed the connection]
slobodan has joined #u-boot