Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.07, v2023.10-rc1 are OUT / Merge Window is CLOSED, next branch is CLOSED until -rc2 / Release v2023.10 is scheduled for 02 October 2023 / Channel archives at https://libera.irclog.whitequark.org/u-boot
<bswartz> marex: I'm attempting to build a version that I can use to boot an odroid-hc4, and every build I make fails to access the SPI flash chip
<bswartz> When I twiddle options in the config to try to enable it, I start to get compile errors
<bswartz> Also when I try to remove network support (to shrink the binary) I get compile errors
<vagrantc> maybe you are incompatibly twiddling?
<vagrantc> hard to know with just "twiddling" to go on :)
<bswartz> That's what I figured but I can't figure out how to find the combination of options that does what I want and still compiles
<bswartz> Honestly at this point I'll settle for something that can read the flash chip
<marex> its a good starting point to say "I used foo_defconfig -> flip option CONFIG_BAR to =y -> I try to compile and it fails with <this output>"
* vagrantc admittedly mostly builds defconfigs and tweaked defconfigs and does not use menuconfig
<marex> use paste.debian.net for long pastes
<bswartz> Yeah I could file some bugs with details about exactly how to make it fail
<bswartz> But I'm more interested in finding a path to success -- possibly by starting from an older/more stable version
<vagrantc> the defconfig works?
<vagrantc> i mean, it doesn't have SPI enabled ... but is that even supported?
<bswartz> Yeah I can build with odroid-hc4_defconfig and it compiles and boots fine, the resulting u-boot just fails to access the SPI flash chip
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
<bswartz> The vendor's custom uboot works fine with the SPI flash but that's u-boot v2015.01
Wouter0100670440 has joined #u-boot
<bswartz> I want to build a more modern one with some new options
<vagrantc> you might have to forward port patches...
<bswartz> That's what I'm afraid of
<marex> vagrantc: configs/odroid-hc4_defconfig:CONFIG_MESON_SPIFC=y
<bswartz> There's 100s of commits in the vendor's branch
<bswartz> Finding the right one to port will take ages
<marex> vagrantc: SPI support is enabled
<vagrantc> are there chip-specific changes that would prevent detection? sometimes hardware vendors swap things out...
<vagrantc> anyways... happy troubleshooting :)
<marex> => sf probe
<marex> works ? yes or no ?
<marex> no ? paste log
<bswartz> sf probe gives this:
<bswartz> jedec_spi_nor spi-flash@0: unrecognized JEDEC id bytes: 00, 00, 00
<marex> so, SPI NOR read returns all zeros, means communication with SPI NOR fails
<marex> could be pinmux for example
<marex> narmstrong: ^ this is your stuff iirc
<bswartz> Yeah when I searched up this error on google I found an IRC log with narmstrong in it
<marex> bswartz: git reset --hard a4b553e31b3 -> test -> does it work ?
<bswartz> Good question
<bswartz> I can try
naoki has joined #u-boot
<marex> bswartz: next commit is then 2e8d47c641aa951c8d8a7f401e2c652af1355f28
<marex> if neither works, wait for narmstrong here
<bswartz> The first one builds but exhibits the same failure
sng has quit [Read error: Connection reset by peer]
<bswartz> The second one doesn't even have a odroid-hc4_defconfig file
<marex> switch back to 2023.07.02 -> tweak arch/arm/dts/meson-sm1-odroid-hc4.dts -> reduce spi-max-frequency to some 10000000
<marex> does it make any difference ?
<marex> the other thing, check the nor_pins pinmux
ikarso has quit [Quit: Connection closed for inactivity]
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #u-boot
vagrantc has quit [Quit: leaving]
jclsn has quit [Ping timeout: 260 seconds]
jclsn has joined #u-boot
<bswartz> What do you mean check the pinmux?
<marex> whether ther pinctrl-0 &nor_pins are actually configured in the pinmux hardware
<bswartz> It says pinctrl-0 = <&nor_pins>; in that file
<bswartz> But where else do I have to look?
mmu_man has quit [Ping timeout: 245 seconds]
<bswartz> I tried the lower frequency and no change
<bswartz> When I follow the include chain back to meson-g12-common.dtsi I see the nor_pins are defined there
<marex> drivers/pinctrl/meson/pinctrl-meson-g12a.c -> see if that configures the pin groups as it should
<bswartz> I don't know what I'm comparing this to
<bswartz> The driver defines 6 pins related to NOR flash, and groups them
<bswartz> The dts file refers to 4 of them
<bswartz> I have no idea if the pin mappings are correct
<bswartz> The config definitely enables this pinmux driver
<marex> bswartz: either dump the pinmux controller registers and compare with downstream u-boot, or check datasheet -> pinmux section , for the SPI NOR IOMUX settings
<bswartz> How would one dump the pinmux controller registers?
<bswartz> Oh I just found the pinmux command
<bswartz> There is a lot here
<marex> bswartz: md 0xaddress -> address is in SoC datasheet
<marex> I am not familiar with the details of the amlogic soc
<bswartz> Right
<marex> but there should be something like iomux/pinmux/gpio-mux whatever section in the datasheet
<bswartz> I will have to go digging to find datasheet
<bswartz> The weird thing is that the u-boot documentation says that SPI flash is definitely working for this board
<marex> look at the memory map, look up the pin controller address in DT -> determine the name of that block -> look at the chapter
<bswartz> So someone must have tested it at some point and it must have worked
<marex> bswartz: where does it say so ?
<marex> bswartz: reset on the commit which added that information ?
<bswartz> It's a S905X3
<bswartz> Oh shit
<bswartz> It says No for SPI (FC) for that board
<bswartz> >_<
<bswartz> Well that explains a lot
<bswartz> Last time I looked at this I mixed up S905 and S905X3
<bswartz> FML
<bswartz> Okay well this solves the mystery -- it doesn't work yet
<bswartz> Thanks for the help, I'm going to bed
<marex> U-Boot for ODROID-HC4 (S905X3) ... so uh ... isn't this the board you have ?
<bswartz> Yes it's the one
<marex> oh, hum
<marex> bswartz: does it work in Linux ?
<bswartz> Yeah it works fine in Linux and with vendor uboot
<marex> In mainline Linux ?
<bswartz> Yeah
<marex> if so, then just git log drivers/mtd/ or drivers/spi/ or wherever that spifc driver resides these days and see what they did to support this SoC
<marex> it would likely be simple to add
<bswartz> Yeah but I'm too tired to work on it tonight
<bswartz> I'll look again later
macromorgan has joined #u-boot
indy- has quit [Ping timeout: 260 seconds]
ewwphoria has joined #u-boot
sakman_ has joined #u-boot
persmule has quit [Remote host closed the connection]
sakman has quit [Ping timeout: 260 seconds]
naoki has quit [Quit: naoki]
sng has joined #u-boot
sng has quit [Read error: Connection reset by peer]
sng has joined #u-boot
sng has quit [Read error: Connection reset by peer]
sng has joined #u-boot
sng has quit [Ping timeout: 260 seconds]
sakman_ has quit [Read error: Connection reset by peer]
sakman_ has joined #u-boot
sng has joined #u-boot
sng_ has joined #u-boot
sng has quit [Ping timeout: 246 seconds]
sakman__ has joined #u-boot
sakman_ has quit [Ping timeout: 246 seconds]
sng_ has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Ping timeout: 260 seconds]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
naoki has joined #u-boot
Hypfer1 has joined #u-boot
Hypfer has quit [Ping timeout: 250 seconds]
Hypfer1 is now known as Hypfer
sakman__ has quit [Read error: Connection reset by peer]
sakman__ has joined #u-boot
mmu_man has joined #u-boot
sng_ has joined #u-boot
sng has quit [Read error: Connection reset by peer]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
sng_ has quit [Remote host closed the connection]
Wouter0100670440 has joined #u-boot
sng 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
sng has quit [Ping timeout: 264 seconds]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
hanetzer has quit [Quit: WeeChat 4.0.2]
hanetzer has joined #u-boot
goliath has joined #u-boot
naoki has quit [Quit: naoki]
mmu_man has quit [Quit: reboot]
sng has quit [Read error: Connection reset by peer]
mmu_man has joined #u-boot
sng has joined #u-boot
mmu_man has quit [Ping timeout: 245 seconds]
mmu_man has joined #u-boot
bq has quit [Ping timeout: 258 seconds]
sng has quit [Remote host closed the connection]
bq has joined #u-boot
sng has joined #u-boot
bq has quit [Ping timeout: 258 seconds]
vulpes2[m] has quit [Read error: Connection reset by peer]
LinuxHackerman has quit [Write error: Connection reset by peer]
jluthra has quit [Read error: Connection reset by peer]
<sjg1> sng: I see. So long as there are docs and examples I expect people can figure it out
<sjg1> sng: It seems that the main hangup with binman is that it doesn't use files for everything
<sng> sjg1 very true. it takes some time to get around the idea of nodes being representative of binaries. that is little more trickier when it comes to section images.
<sng> sjg1 nonetheless, i have put out the v7 of the patches. kindly take a look.
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
persmule has joined #u-boot
sng has quit [Remote host closed the connection]
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 [Read error: Connection reset by peer]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
<sjg1> Forty-Bot: Re: " find a board with CONFIG_FOO enabled, or with CONFIG_FOO but not CONFIG_BAR" - you can use moveconfig.py for that
<sjg1> Forty-Bot: What Tom is talking about is having buildman automatically build boards with a certain CONFIG combination. Unfortunately it takes a while to build that database (moveconfig.py -b)
sng 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
justache is now known as reddit-boat
reddit-boat is now known as justache
sng_ has joined #u-boot
sng has quit [Read error: Connection reset by peer]
sng_ has quit [Remote host closed the connection]
<Tartarus> Now I do think that with some dep rules, for the users of buildman that we have, we could possibly ship the db, and if not, no worry about it too much
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
sakman__ is now known as sakman
ladis has quit [Quit: Leaving]
vagrantc has joined #u-boot
bq has joined #u-boot
cakes has quit [Ping timeout: 245 seconds]
cakes has joined #u-boot
cakes has joined #u-boot