nparafe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nparafe has joined #beagle
GenTooMan has quit [Ping timeout: 244 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
GenTooMan has joined #beagle
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #beagle
<set_> Whelp. scons built the lib. Finally.
<set_> it took everything out of me and now you know.
thinkfat_ has quit [Ping timeout: 240 seconds]
thinkfat_ has joined #beagle
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #beagle
<set_> Sunday-Funday was short lived. I am sorry I am not more technical. I am working on it.
vagrantc has quit [Quit: leaving]
Shadyman has joined #beagle
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #beagle
brook_ has quit [Ping timeout: 240 seconds]
kona has quit [*.net *.split]
philenotfound has quit [*.net *.split]
djinni has quit [*.net *.split]
philenotfound has joined #beagle
kona has joined #beagle
jkridner has quit [*.net *.split]
NishanthMenon has quit [*.net *.split]
jkridner has joined #beagle
NishanthMenon has joined #beagle
djinni has joined #beagle
rob_w has joined #beagle
akaWolf has quit [Ping timeout: 244 seconds]
akaWolf has joined #beagle
Shadyman has quit [Remote host closed the connection]
florian has joined #beagle
indigaz has quit [Ping timeout: 244 seconds]
indigaz8 has joined #beagle
ikarso has joined #beagle
starblue has quit [Ping timeout: 256 seconds]
starblue has joined #beagle
akaWolf has quit [Ping timeout: 244 seconds]
akaWolf has joined #beagle
xet7 has quit [Quit: Leaving]
<set_> Well...Sunday-Funday came and went. Monday is here and time to party!
* set_ has to step aside.
<set_> Have fun! I am off to regular mow and go.
<set_> Blah.
brook has joined #beagle
buzzmarshall has joined #beagle
v0n has joined #beagle
rob_w has quit [Remote host closed the connection]
florian has quit [Quit: Ex-Chat]
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #beagle
brook_ has joined #beagle
brook has quit [Ping timeout: 272 seconds]
GenTooMan has quit [Excess Flood]
GenTooMan has joined #beagle
brook_ has quit [Ping timeout: 272 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
lucascastro has joined #beagle
brook has joined #beagle
balrog has quit [Ping timeout: 256 seconds]
balrog has joined #beagle
lucascastro has quit [Remote host closed the connection]
balrog has quit [Ping timeout: 272 seconds]
vagrantc has joined #beagle
ikarso has joined #beagle
balrog has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
Guest1965 has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
Guest1965 has quit [Quit: Client closed]
lromor has joined #beagle
<lromor> Hi
xet7 has joined #beagle
<lromor> I have a problem with a beaglebone green. I've flashed the latest console version of debian for the am335x, successfully booted, after the fresh install, I can query the gpios with: config-pin -q P9.18 and that returns a value. I can also see that the pinmux devices are correctly enumerated inside /sys/devices/platform/ocp with all the PX_XX pins.
<lromor> After doing an apt-update && apt upgrade the config-pin stops working and it returns: ERROR: open() for /sys/devices/platform/ocp/ocp:P9_18_pinmux/state failed, No such file or directory.
<zmatt> hmm
<zmatt> green or green wireless?
<lromor> Fixed! Sorry:)
<zmatt> what was it?
<lromor> sudo apt install bb-u-boot-am335x-evm
<lromor> sudo /opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk0.sh
<lromor> sudo /opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk1.sh
<zmatt> ah, updating u-boot
<lromor> yeah
<lromor> where is u-boot stored?
<lromor> I thought it would be loaded directly from the SD
<zmatt> bootrom can load it from either eMMC or uSD, but prefers to load it from eMMC
<lromor> ah I see, so the weird thing is that it was loading the OS via the SD (the root / was on the SD card), but somehow the boot was done via eMMC?
<zmatt> so I'd generally recommend to either flash to eMMC or wipe eMMC if you intend to continue booting from SD card for some reason
<lromor> and why updating the uboot would have fixed it?
<zmatt> yes, how bootrom finds u-boot has little to nothing to do with how u-boot finds a system to boot
<lromor> I see, I'll do it
<zmatt> u-boot prefers to boot from SD card over booting from eMMC
<lromor> ahnn, that explains, so there's this "bootrom" that loads some u-boot code, preferably from the eMMC, the old-uboot then finds a system to boot first on the SD card
<zmatt> but that can unfortunately lead to a situation where an older u-boot on eMMC is used to boot a newer linux system on SD card, and subtle incompatibility between them resulting in weird issues
<lromor> is that the explanation?
<zmatt> yep... bootrom is what's baked into the SoC itself
<lromor> yes, perfect. One last question, why the uboot takes over the system-to-boot device tree overlays?
<zmatt> you mean why overlays are applied by u-boot instead of by the kernel like it used to be in ancient times?
<lromor> yes
<zmatt> kernel overlays have never been accepted by mainline and have always been buggy... basically too many drivers assume that DT cannot change ever, at all
<lromor> ah I see, so the DT is defined once, by uboot and passed as a kernel parameter or something?
<lromor> in ancient times I remember you could modify them in realtime.
<zmatt> u-boot has always been responsible for loading the DT, applying certain changes (even before overlays) and passing it to the kernel
<zmatt> dunno how it's passed exactly, it just points the kernel to where it's loaded in ram (similar to how it points the kernel to where the initramfs is loaded, when that's used)
<zmatt> in theory runtime overlays are still possible, but like I said they're buggy... especially unloading overlays has always been a recipe for kernel panics
<zmatt> and support may be dropped entirely
<zmatt> cape-universal (aka the universal overlay, the thing you configure using config-pin) has also reduced the need for runtime overlays
<lromor> I see. Do you know by chance the difference between /bbb-uEnv.txt and /boot/uEnv.txt?
<zmatt> I think /bbb-Env.txt is some ancient cruft to try to make the system bootable by truly ancient u-boot versions
<zmatt> though like the first line says it would need to be renamed to /uEnv.txt for that... you can safely ignore (or remove) that file
<zmatt> /boot/uEnv.txt is the actual config file for u-boot
<lromor> I see. But where is the u-boot stored? MBR?
<lromor> (very last question)
<zmatt> in the space between the partition table and the root filesystem partition
<lromor> perfect. How can I repay you for your time?
<lromor> other than saying thank you!
<zmatt> specifically u-boot consists of two parts: the first stage (SPL) with a special header prepended is located starting at sector 256, while the main u-boot.img is located starting at sector 768
<zmatt> this is done because bootrom will load the executable into internal SRAM which limits the size of the executable to 109K iirc, and u-boot is unable to fit its fat ass into that space hence needs a separate stage to initialize the ddr3 memory controller to have the memory available to be able to load u-boot
<zmatt> thanks will do!
demirok has quit [Quit: Leaving.]
<lromor> <3
lromor has quit [Quit: Client closed]
zjason` has joined #beagle
zjason has quit [Ping timeout: 276 seconds]
SJFriedl has joined #beagle
Steve_ has joined #beagle
Posterdati has quit [Remote host closed the connection]
Posterdati has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
Guest19 has joined #beagle
ikarso has joined #beagle
SJFriedl has quit [Quit: Leaving]
dKaiser has joined #beagle
Shadyman has joined #beagle
nparafe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nparafe has joined #beagle
brook has quit [Remote host closed the connection]
Guest19 has quit [Quit: Client closed]