Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.04, v2023.07-rc6 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2023.07 is scheduled for 10 July 2023 / Channel archives at https://libera.irclog.whitequark.org/u-boot
sng_ has quit [Remote host closed the connection]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
<marex> sjg1: in which repo ?
<sjg1> u-boot-dm
<sjg1> marex: git@source.denx.de:u-boot/custodians/u-boot-dm.git
<marex> sjg1: I made a note, so I can revisit that once I cycle back to it
ldevulder_ has joined #u-boot
<sjg1> I sent the patches too
<marex> sjg1: the wall of 60 patches ?
ldevulder has quit [Ping timeout: 240 seconds]
<sjg1> No a different series
<marex> ha
<sjg1> Tartarus: Hmm I think this is the flake: https://source.denx.de/u-boot/custodians/u-boot-dm/-/jobs/647915
rainbyte has joined #u-boot
sakman has quit [Ping timeout: 240 seconds]
jclsn has quit [Ping timeout: 240 seconds]
jclsn has joined #u-boot
thopiekar has quit [Ping timeout: 250 seconds]
sakman has joined #u-boot
thopiekar has joined #u-boot
macromorgan has quit [Remote host closed the connection]
macromorgan has joined #u-boot
wooosaiiii has quit [Quit: wooosaiiii]
wooosaiiii has joined #u-boot
stefanro has quit [Quit: Leaving.]
stefanro has joined #u-boot
qqq has joined #u-boot
sng has joined #u-boot
apritzel has joined #u-boot
apritzel has quit [Ping timeout: 245 seconds]
sng has quit [Remote host closed the connection]
naoki has joined #u-boot
sng has joined #u-boot
mckoan|away is now known as mckoan
wooosaiiii has quit [Quit: wooosaiiii]
wooosaiiii has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
ldevulder_ is now known as ldevulder
sszy has joined #u-boot
mmu_man has joined #u-boot
WoC`` has joined #u-boot
Crofton has quit [Ping timeout: 246 seconds]
pratyush has quit [Ping timeout: 246 seconds]
pratyush has joined #u-boot
WoC` has quit [Ping timeout: 246 seconds]
Crofton has joined #u-boot
naoki has quit [Quit: naoki]
rainbyte has quit [Ping timeout: 264 seconds]
apritzel has joined #u-boot
qqq has quit [Remote host closed the connection]
prabhakarlad has joined #u-boot
qqq has joined #u-boot
ikarso has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
Leopold_ has quit []
mmu_man has quit [Ping timeout: 245 seconds]
jaganteki has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
Leopold has joined #u-boot
Leopold has quit [Client Quit]
Leopold has joined #u-boot
<jclsn> Can you think of any possible reasons on why sf protect lock is not working in my case? I already tried looking the code. stm_lock is making use of the block protect pins. Are those to be defined in the device tree?
<jclsn> Ah I guess this should be detected by sf probe
apalos- has quit [Quit: ZNC 1.7.2 - https://znc.in]
apalos- has joined #u-boot
<jclsn> This mix of legacy code and new driver models is a bit complex for a beginner
mmu_man has joined #u-boot
<020AAC0BR> Hey all! Does anyone know if there’s someone working to get Pine64’s SOQuartz support in mainline u-boot? I’d like to help :)
sng has quit [Ping timeout: 245 seconds]
sng has joined #u-boot
020AAC0BR has quit [Quit: leaving...]
as_g5pw has joined #u-boot
as_g5pw is now known as g5pw
mmu_man has quit [Ping timeout: 250 seconds]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mmu_man has joined #u-boot
sng has quit [Read error: Connection reset by peer]
sszy has joined #u-boot
jaganteki has quit [Quit: Client closed]
prabhakarlad has joined #u-boot
prabhakar has joined #u-boot
apalos- has quit [Quit: ZNC 1.7.2 - https://znc.in]
monstr has joined #u-boot
<sjg1> jclsn: Which legacy subsystem are you looking at?
jpanisbl has joined #u-boot
<jclsn> sjg1: First of all I am pretty new to U-Boot code. I have just looked at the gpio cmd lately and it seems to be a wrapper around the driver model. Same goes for the sf cmd. It is a bit confusing, but I guess necessary for legacy support
jpanisbl has quit [Quit: Konversation terminated!]
<jclsn> I tried testing the flash protection with the example given in the commit here https://patchwork.ozlabs.org/project/uboot/patch/1445875918-14777-16-git-send-email-fabio.estevam@freescale.com/
monstr has quit [Remote host closed the connection]
<jclsn> After using sf protect lock, I can still erase the give regions.
jaganteki has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
jaganteki has quit [Quit: Client closed]
ikarso has quit [Quit: Connection closed for inactivity]
<rfs613> jclsn: most flash chips have some hardware flash protection features. They often have "interesting" limitations, such as the protection ranges being powers of two, or being volatile (not kept across reset), etc. Of course some flash chips have perfectly sane block-based protection.
<rfs613> then there is the flash controller, which might impose its own layer of protection - again there are all kinds. These generally work by denying the erase/program commands if they fall into certain ranges. Buf of course with the various 3/4 byte addressing, and extensions like paging register, it can be hit-and-miss.
<rfs613> and lastly you have the u-boot code to drive all this. Historically this code has been mostly unware of the lower level protections, so it would allow you to issue erase/program commands, without any indication of error (until you try to read back the data).
<sjg1> jclsn: Also I see there are two APIs for write-protection, one in the SPI flash uclass and another in the mtd non-uclass. There are only tests for the first one
<rfs613> hehe, was about to mention something along those lines...
mckoan has quit [Read error: Connection reset by peer]
vagrantc has joined #u-boot
<sjg1> For GPIO, sunxi and mxc (at leasst) still seem to use the old GPIO interface. Still, the migration deadline has passed so in theory we could just break those boards
<sjg1> rfs613: It is not nice...I think the mtd matches Linux which is why, but the straggler needs cleaning up
<sjg1> jclsn: ./tools/moveconfig.py -f GPIO ~DM_GPIO - shows 254 boards
mckoan has joined #u-boot
apritzel has quit [Ping timeout: 246 seconds]
<marex> sjg1: I think if you break mxc, well, things won't be pretty
<marex> sjg1: what is up with GPIO there ? I dont see anything on imx
ldevulder has quit [Ping timeout: 260 seconds]
apritzel has joined #u-boot
stefanro has quit [Quit: Leaving.]
mckoan is now known as mckoan|away
<sjg1> marex: It has a name_to_gpio() function, which should not be used with DM. Perhaps it can just be removed?
<marex> sjg1: which driver ?
<marex> drivers/gpio/mxs_gpio.c:int name_to_gpio(const char *name)
<marex> this ?
ldevulder has joined #u-boot
WoC`` has quit [Remote host closed the connection]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sng has joined #u-boot
mmu_man has quit [Ping timeout: 245 seconds]
mmu_man has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
<Kwiboo> g5pw: you can see my repo at https://github.com/Kwiboo/u-boot-rockchip/commits/rk3568-2023.07-rc6 for soquartz patches, they have dependencies on a few pending series/patches on the mailing list :-)
tlwoerner has quit [Ping timeout: 246 seconds]
mmu_man has quit [Ping timeout: 260 seconds]
Leopold has quit [Remote host closed the connection]
mmu_man has joined #u-boot
Leopold has joined #u-boot
sng has quit [Ping timeout: 250 seconds]
tlwoerner has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
prabhakarlad has quit [Quit: Client closed]
sng has joined #u-boot
___nick___ has joined #u-boot
<sjg1> marex: Yes
rainbyte has joined #u-boot
<marex> sjg1: mxs != mxc != imx mind you
<marex> mxs is imx23/29 , imx from sigmatel
<sjg1> marex: Oh yes, sorry
<marex> mxc is imx2x/3x the one from freescale
<marex> and imx is ... well, usually the stuff >= 5x
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rvalue has quit [Ping timeout: 240 seconds]
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
rvalue has joined #u-boot
___nick___ has joined #u-boot
sng_ has joined #u-boot
sng has quit [Read error: Connection reset by peer]
sng_ has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Read error: Connection reset by peer]
mmu_man has joined #u-boot
___nick___ has quit [Ping timeout: 245 seconds]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
<g5pw> Kwiboo: thanks, I’ll take a look!
Eschik has quit [Killed (copper.libera.chat (Nickname regained by services))]
goliath has joined #u-boot
splud has joined #u-boot
<splud> greetings. I'm attempting to gather some info from an ARM device which is having trouble communicating with it's emmc device.
<splud> it previously used to boot, but it's timing out with the emmc on reads. what use is the md commands reading from the mmc portmapped address - would there be any useful diagnostic data there?
<cambrian_invader> try enabling CONFIG_MMC_TRACE
<splud> okay, I'll do that once I replace the spi flash on the device. Any _read_ diagnostics that I might be able to perform?
<cambrian_invader> huh?
<splud> to compile and enable that on the device, I'll need to update it. I'm trying to do non-descructive evaluation of the problem if possible.
<cambrian_invader> you can try staring at mmc info
<cambrian_invader> (e.g. the command `mmc info`)
<cambrian_invader> but generally U-Boot is compiled without debugging aids
<cambrian_invader> so you may need to recompile to get anything useful
<splud> mmc info is present, but theres comm issueswith the emmc device. Read timeouts - the attempt to bootis BEFORE I get a prompt.
<splud> afk need to deal with something at top of the hour.
<splud> apologies, had to unplug an EV.
teejay_ has joined #u-boot
teejay has quit [Ping timeout: 246 seconds]
<marex> splud: u-boot version ?
<marex> splud: you can try and start uboot from uboot, then try the trace
<marex> you can force emmc into 1 bit mode (in DT, set bus-width = <1> ) and reduce the clock rate (clock-frequency = <400000>;) for example
<marex> (I think it was clock-frequency ...)
<marex> also check pinmux, clock tree
<marex> and yeah, MMC_TRACE as cambrian_invader suggested
<cambrian_invader> marex weren't you collecting sd cards a while back
<marex> cambrian_invader: not just a while back ... it did have a follow up btw
<marex> I ended up building me an SD card in an FPGA, with DRAM as backing store and USB upload into that DRAM
<marex> I am contemplating V2 without the FPGA, but lets see, there are other things I'd like to explore first
<cambrian_invader> I have an "interesting" card on my hands which only reports SCR.SD_SPEC=1 half of the time
<cambrian_invader> so sometimes it gets detected as an MMC and we time out
<marex> cambrian_invader: jeeze
<marex> cambrian_invader: I have two cards where one never clears CACHE bit after cache ops were requested
<marex> cambrian_invader: the card also does not hang, it just never finishes
<cambrian_invader> huh
<marex> cambrian_invader: and then I have another one, newer, from this year, and that one finishes just fine
<cambrian_invader> really gives you confidence in their wear-leveling abilities
<marex> c467c8f081859 ("mmc: Add MMC_QUIRK_BROKEN_SD_CACHE for Kingston Canvas Go Plus from 11/2019")
<marex> in Linux that is ^
<cambrian_invader> although maybe they just never figured anyone would use the cache...
<marex> cambrian_invader: Linux only enabled it just before 6.1.y, that's why I ran across it
<marex> cambrian_invader: and i could find like 2 other cards which implement the CACHE, no other cards I tested (and I have a stack) do
<cambrian_invader> is that defined in the mmc spec or just sd?
<marex> cambrian_invader: cache ?
<marex> cambrian_invader: SD spec in some extension block
<marex> extension registers , performance part, apparently
<splud> marex - 2020.10 It's what is on the device
<splud> pointer for starting uboot FROM uboot?
<marex> ugh ... so likely 3 years worth of unfixed bugs, joy
<marex> please update
<splud> btw, device had been functional, then emmc quit. Not a configuration or uboot change.
<marex> as for starting uboot from uboot, something like load the uboot.bin to its TEXT_BASE ; then ... dcache off ; icache off ; go 0xaddress
<marex> where 0xaddress is the TEXT_BSAE
<cambrian_invader> hm, why not just bootm?
<marex> cambrian_invader: coz its not gonna be uImage
<cambrian_invader> all my U-Boots are FITs so I can boot them from SPL :)
mmu_man has quit [Ping timeout: 260 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 245 seconds]
stipa_ has joined #u-boot
stipa has quit [Read error: Connection reset by peer]
stipa_ is now known as stipa
naoki has joined #u-boot