Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2022.04 is OUT / Merge Window is OPEN until 25 April 2022 / Release v2022.07 is scheduled for 4 July 2022 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
mthall has quit [Client Quit]
mthall has joined #u-boot
littlebo1eep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
apritzel has quit [Ping timeout: 250 seconds]
dvergatal has joined #u-boot
mmu_man has quit [Ping timeout: 276 seconds]
thopiekar_ has joined #u-boot
thopiekar has quit [Killed (mercury.libera.chat (Nickname regained by services))]
thopiekar_ is now known as thopiekar
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
littlebo1eep has quit [Ping timeout: 240 seconds]
akaWolf has quit [Ping timeout: 246 seconds]
littlebobeep has joined #u-boot
akaWolf has joined #u-boot
vagrantc has quit [Quit: leaving]
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
frieder has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
frieder has quit [Remote host closed the connection]
littlebobeep has joined #u-boot
apritzel has joined #u-boot
apritzel has quit [Ping timeout: 246 seconds]
guillaume_g has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
<mwalle> has anyone ever booted u-boot-spl (and u-boot) from directly from TF-A BL1?
littlebobeep has joined #u-boot
sszy has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
matthias_bgg has joined #u-boot
<marex> bl1 is bootrom
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
mmu_man has joined #u-boot
<mwalle> marex: so? instead of BL2, I want to boot u-boot spl
<marex> mwalle: the question you are asking really is "can I start U-Boot SPL from BootROM"
<marex> yes, you can, it's been done like that since ages ago
mmu_man has quit [Ping timeout: 248 seconds]
mmu_man has joined #u-boot
ullbeking has quit [Changing host]
ullbeking has joined #u-boot
<mwalle> marex: ahh, no bl1 is the actual trusted boot rom from TF-A (bl1)
<mwalle> which is designed in a way to boot bl2
<mwalle> like it's expecting a fip image
prabhakarlad has joined #u-boot
gsz has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
torez has joined #u-boot
mthall has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<Tartarus> marex: I guess Jagan took the discussion as changes requested on that patch, I've put it back to new so he sees it hopefully
<Tartarus> marex: Follow-up and say you think the discussion was resolved such that your patch is correct as is and make sure he's cc'd?
littlebobeep has quit [Quit: leaving]
littlebobeep has joined #u-boot
mthall has joined #u-boot
mthall has quit [Client Quit]
<marex> Tartarus: I also haven't heard from Jagan on other patches, so let's see
mthall has joined #u-boot
ide12 has joined #u-boot
<ide12> Hey all, I am looking for someone with some experience with uboot, specifically USB handling.I am trying to switch USB devices by using the 'usb dev' commmand, I try 'usb dev 2' (dev 0 is curently active) But I get an error that usb device 2 cant be found. I see it in the usb device tree though...
Gravis has quit [Quit: No Ping reply in 180 seconds.]
Gravis has joined #u-boot
mmu_man has quit [Ping timeout: 248 seconds]
<Tartarus> marex: Do you remember how to run pytest + sandbox?
Gravis has quit [Quit: No Ping reply in 180 seconds.]
Gravis has joined #u-boot
sobkas has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
<milkylainen> Do you guys know any AMD/x86 arch maintainers for the kernel?
<milkylainen> Alternatively, I could ask it here. It is an x86 question.
<milkylainen> :)
mmu_man has joined #u-boot
<milkylainen> I have an AMD Raven Ridge (Ryzen R1606G). Which does not present it's serial ports to Linux. The device does have them. But everything is rather inconclusive.
<milkylainen> The UARTs sit on either an LPC bus or directly from the CPU afaiu. So either missing enumeration of LPC devices or something else. It does present AMDI0020 ACPI device (uart) but Linux does not care.
<milkylainen> I can see others getting uarts from an AMDI0020 device.
littlebobeep has joined #u-boot
<Tartarus> My first suggestion is to poke/decompile the ACPI tables in working and non-working cases and see if something is missing
<milkylainen> I don't have a working case unfortunately. :\
<Tartarus> I assume these UARTs aren't exposed on a DB9 or whatever on the board and may be for some internal thing?
<milkylainen> RX/TX TTL.
<milkylainen> Indeed.
<milkylainen> PCB manufacturers decided they're for "debug" and probably scrapped the initialization in BIOS or something.
<Tartarus> Intentional or unintentional hobbling of the ACPI data I would guess
<milkylainen> I do see the BIOS printing debug codes to the serial lines.
<milkylainen> So I can get data, but not enumerated from Linux.
<milkylainen> It's annoying. :)
<Tartarus> I'd start tossing debug statements in, or whatever the live debug trace stuff is these days, the linux side
<milkylainen> Mmm.
<Tartarus> Perhaps the driver is being too strict in terms of what's presented by ACPI or some other check is failing
<milkylainen> Yeah.
littlebobeep has quit [Ping timeout: 240 seconds]
<milkylainen> Tartarus: tnx. appreciate the help.
<Tartarus> Welcome, good luck.
astroid has quit [Ping timeout: 248 seconds]
<marex> Tartarus: no, it was always so problematic that I just decided to not bother
<marex> Tartarus: is it about the LEDs ?
<Tartarus> Yes, it's about the LED series
<Tartarus> pip install -r test/py/requirements.txt ; make qcheck builds and runs things
astroid has joined #u-boot
astroid has joined #u-boot
astroid has quit [Changing host]
ide122 has joined #u-boot
ide12 has quit [Ping timeout: 246 seconds]
<marex> Tartarus: I guess there is no trivial "compile sandbox, run it this way" to trigger the bug and make it easy to debug, right ?
<marex> we need all this convoluted insane python machinery and pytest which totally obfuscates it all
<marex> I have to admit, I loathe the CI pytest output, it is just useless gibberish, I never can make out what the problem is out of it
<marex> binman_init failed:-2
<Tartarus> marex: run sandbox, ut dm dm_test_led_label should fail
ide12 has joined #u-boot
<marex> $ ./u-boot
<marex> U-Boot 2022.04-00335-g9bb99fa9582 (Apr 25 2022 - 17:14:06 +0200)
<marex> Creating new bloblist size 400 at c000
<marex> DRAM: 128 MiB
<marex> binman_init failed:-2
<marex> initcall sequence 00005632fca0ec00 failed at call 000000000006715b (err=-2)
<marex> ### ERROR ### Please RESET the board ###
ide122 has quit [Ping timeout: 256 seconds]
<Tartarus> Hunh, ok
<marex> Tartarus: I commented it out for now, the test does need update
<marex> Tartarus: how long until release ?
<marex> I mean, rc1
<Tartarus> Dunno, still working through queue and local lab problems
<Tartarus> So what did you comment out?
<marex> binman init
<Tartarus> Yeah, that won't work
<Tartarus> Sec
<Tartarus> ./u-boot -d arch/sandbox/dts/test.dtb
<Tartarus> Is what you want
<Tartarus> Then what I said above will run and fail
<Tartarus> dm_test_led_gpio is another one that might be more clear on what to fix/where
<marex> oh ... printf() does not even work in the u-boot test suite, oh well
<marex> Tartarus: I think I know what it is though
<marex> it's the fix to not pull in the top level leds-gpio node and confuse it with actual LED, which it is not
<marex> the test expects that broken behavior
matthias_bgg has quit [Quit: Leaving]
<rfs613> sjg1: patman is giving me dozens of "Bad divisor in main::vcs_assign: 0", is this of interest to investigate?
<marex> Tartarus: CI is running
ide12 has quit [Ping timeout: 246 seconds]
<marex> Tartarus: https://paste.debian.net/hidden/655e0deb/ can you explain this to me ?
<Tartarus> marex: Re the test, Yes, I thought it might be wrongly done since it was trying to do something that wasn't quite implemented I guess at the time?
<Tartarus> marex: Re the pastebin, yes, what's unclear about expected vs got ?
<marex> Tartarus: Re the test -- which test ?
<marex> Tartarus: re pastebin -- I don't understand your question -- read the whole paste ?
ide12 has joined #u-boot
<Tartarus> Yes?
<marex> Tartarus: when I run the command from the test manually on command line, it works, when I run the test which does run_command(...), it fails
<marex> it is as if the entire pin controller was reinited
<Tartarus> marex: Yes, the tests probably do that?
<marex> I cannot tell, the whole test stuff is so cryptic, I have no idea what it does and I gave up on it
<marex> but then, the pinmux test should likely also reinit the LED if it expects the LED to set the pin state
<marex> OK, two I could figure out, one of them is due to missing LED init in the test (assuming the test reinits the pin controller)
<sjg1> rfs613: yes please
guillaume_g has quit [Quit: Konversation terminated!]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ide12 has quit [Remote host closed the connection]
ide12 has joined #u-boot
<Tartarus> marex: thanks
<rfs613> sjg1: it's caused by scripts/get_maintainer.pl line 1607, where it returns "0" for the number of commits, when "git log" shows no signatures on the commits.
<ide12> The command for to set usb devices is 'usb dev dev' right?
<ide12> any idea why I can't switch?
<ide12> idk if this is the right room for the uboot I have
<cambrian_invader> do you get an error
<ide12> USB device 2: unknown device
<ide12> i dont think im doing it right
<ide12> when I do usb tree
<ide12> its the second device on the tree
<ide12> i must be doing something wrong, I want to see the partitions on that mass storage device
<ide12> or be able to move the data into RAM
<cambrian_invader> the usb device is the host controller
<cambrian_invader> if usb tree works, then you don't need to do usb dev
<ide12> hmmm
<cambrian_invader> I think you can run something like `ls usb 0 /`
<cambrian_invader> and try other numbers if 0 doesn't work
<ide12> i dont have ls
<cambrian_invader> use fatls or extls
<cambrian_invader> you can also do `part list usb 0` if you have that
<ide12> i can do usb part 0
<ide12> but get ## Unknown partition table
<cambrian_invader> is your drive formatted?
<ide12> it is
<cambrian_invader> and does U-Boot support your partition table?
<ide12> my OS lives there
<ide12> no idea
<ide12> I am trying to RE this device
<cambrian_invader> you can also try `usb part 0:1` etc
<ide12> so my knowledge of what I have is 'limited'
<marex> u-boot version ?
<ide12> U-Boot 2012.07 [Chaos Calmer 15.05.1
<marex> please update
<ide12> LOL
<ide12> id love to
<ide12> I am afraid of breaking the device with an update
<cambrian_invader> get some method of flashing the board without U-Boot working
<cambrian_invader> e.g. jtag, flash clip, etc
<ide12> I was hoping to "explore" some more before getting that drastic
<ide12> This device is super strange, u-boot lives in the SPI Flash, the OS lives in this USB device and the fs gets loaded through nsf
<cambrian_invader> try doing `usb read $loadaddr 0 8`
<cambrian_invader> and then examine $loadaddr with md.l
<cambrian_invader> if you see what looks like a partition table you are on the right track
<ide12> $loadaddr would be whats in printenv?
<cambrian_invader> yes, but you can paste that directly
<cambrian_invader> variables are expanded like unix shell
<ide12> i tried and it complains, brings up the usb help
<ide12> i have a feeling the manufaturer has messed about with u-boot
<cambrian_invader> make sure you have the right number of arguments
<ide12> If anyone is interested the progress I have made so far is documented here: usb read $loadaddr 0 8
<ide12> oops
<marex> use => printenv loadaddr to verify loadaddr is even set
<marex> else pick DRAM address (see => bdinfo) and point it there
<ide12> yeah, not defined
<ide12> load is defined, but I am not sure the context there
<marex> setenv loadaddr 0x<some aligned DRAM address, see bdinfo output for valid ones>
<ide12> dont have bdinfo
gsz has quit [Quit: leaving]
<marex> check soc datasheet for DRAM area then
<ide12> kk
<ide12> brb
<ide12> grr i know i had a datasheet around here somewhere
<ide12> found it
<ide12> let me take a look
<ide12> Is this what i'm looking for? https://i.imgur.com/InhjhkX.png
<marex> probably, so something at 0x81000000 should be fine ?
<ide12> So it would be: usb read 0x81000000 0 8
<ide12> then 0x81000000 md.1
<ide12> or do i have that wrong
<marex> md 0x81000000
<ide12> oooooooh! There's stuff there!
<ide12> Sorry i'm such a noob
<ide12> this is pretty exciting!
<cambrian_invader> ok, you have a FIT at address 0
<cambrian_invader> looks like there's no partition table
<cambrian_invader> *block 0
<cambrian_invader> you can try booting it with bootm (as long as you load the full thing, you should only have the first 8 blocks)
<ide12> How do i go about loading the full thing without knowing how big it is?
<cambrian_invader> try using iminfo on the header?
<cambrian_invader> you can also just pick a big size like 64MiB and load it
<ide12> stupid question... what is the goal of booting it via bootm
<cambrian_invader> if you want to boot Linux
<cambrian_invader> that is how you do it
<ide12> ahh
<cambrian_invader> if you don't want to do that, then don't do it
<ide12> heh
<ide12> yeah i can boot to linux just fine
<ide12> i think my goal here was to dump the raw OS image
<ide12> and doing that via md will take FOREVER
<ide12> with the hope of learning enough about the OS to replace it with a "vanilla" version
___nick___ has joined #u-boot
<cambrian_invader> do you have any usb or sd drives available?
<cambrian_invader> you can copy it onto some external storage
<ide12> I do, I did a crude hack to add a usb port to the device
<ide12> Man that would make life so much easier
<ide12> I just havent been able to figure out how to do it or if it was possible
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
sughosh has joined #u-boot
<kallisti5> \q
BWhitten has joined #u-boot
<ide12> @ .:cambrian_invader:. is there some documentation on how to copy information from one usb device to another?
<cambrian_invader> load it into memory, change the usb drive, write it back
<ide12> kk
<ide12> thx
<ide12> ill let you know how it goes
<cambrian_invader> you will probably want to use fatwrite/extwrite to do the writing
<cambrian_invader> but it's optional
<ide12> pretty sure i dont have those utils
sughosh has quit [Read error: Connection reset by peer]
littlebobeep has joined #u-boot
___nick___ has quit [Ping timeout: 272 seconds]
littlebobeep has quit [Ping timeout: 240 seconds]
apritzel has joined #u-boot
<rfs613> are the steps given in https://source.denx.de/u-boot/u-boot/-/blob/master/doc/README.kconfig#L106-127 matching with current expectations?
<Tartarus> rfs613: Yes, still need a board header file
sobkas has quit [Quit: sobkas]
<Tartarus> Note that some platforms require less than others, and for example all arm sunxi platforms use the same one
<rfs613> I meant mostly about the directory layouts, like arch/<arch>/cpu/<cpu>/<soc> for example
<rfs613> versus using arch/<arch>/mach-<something>
<Tartarus> Ah
<Tartarus> Well, there's both, depending on how things work out
<Tartarus> Maybe should move more out of cpu/<cpu>/<soc> to just mach-<soc>
<cambrian_invader> depends on the arch
<rfs613> Tartarus: is there a preferred location for new soc being added? Or some other criteria to decide? Hoping to avoid reworking patches over these kinds of layout issues.
<cambrian_invader> e.g. riscv does not want mach-
<rfs613> this would be for arm (and armv7)
<Tartarus> rfs613: Mirror the linux kernel
<rfs613> Tartarus: it is not upstream there either (yet) but I'll go see if they have decided on a location
<Tartarus> rfs613: OK, and get your DTS files submitted upstream too asap, that'll be something I ask when you post the patches anyhow :)
torez has quit [Quit: torez]
sbach has quit [Read error: Connection reset by peer]
vagrantc has joined #u-boot
sbach has joined #u-boot
indy has quit [Ping timeout: 240 seconds]
indy has joined #u-boot
mmu_man has quit [Quit: Lost terminal]
littlebobeep has joined #u-boot
kveremitz has quit [Ping timeout: 248 seconds]
mmu_man has joined #u-boot
thopiekar has quit [Ping timeout: 240 seconds]
thopiekar has joined #u-boot
thopiekar has quit [Ping timeout: 240 seconds]
thopiekar has joined #u-boot
littlebobeep has quit [Quit: leaving]
littlebobeep has joined #u-boot
Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2022.04, v2022.07-rc1 are OUT / Merge Window is CLOSED / Release v2022.07 is scheduled for 4 July 2022 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot