<vd>
zmatt given the datasheet, it looks like serveral usb hubs are plugged into the expansion headers and their "5V_EN#" lines are wired to non-usb pins of the expansion headers, like P8 7, 9, 16, 18... How would you describe that in the device tree?
<zmatt>
that's a bit too vague to give a meaningful answer... is there anything the kernel is expected to do with those lines at all? why do they exist? normally usb hubs are auto-discovered and fully controlled via usb, so they do not have a presence in DT
calculus has joined #beagle
calculu5 has quit [Ping timeout: 250 seconds]
PhotoJim has joined #beagle
<vd>
zmatt sorry for the delay. I really thing these are only unused expansion pins used as power inputs for the usb hub. They do are discovered actually I think. But I was wondering if I should use GPIO mode or maybe an unused mode to "reserve" these lines somehow
<zmatt>
mainline kernels are rather deficient in good ways for working with random gpios... bb.org kernels have gpio-of-helper for that purpose which names and initializes gpios per DT configuration and exports them to userspace. mainline does have the clumsy "gpio hog" mechanism to force gpios to a particular level, but they're not devices so you can't associate pinmux with them directly, the best you can ...
<zmatt>
...do is just attach pinmux to the gpio controller itself (even though this is kind of clumsy and seems self-referential, although it does work in practice)
<zmatt>
you can also leave them unused and undeclared entirely, if they do not have to be driven (i.e. have external pull-downs)
<vd>
ok so you won't touch them if "things work"
<vd>
otherwise, gpio mode
<zmatt>
I mean, I'm mostly just guessing based on your limited description
<zmatt>
however I wouldn't use "things work" as an indication they're configured correctly
<zmatt>
also, I'd use a gpio-of-helper since I do use a bb.org kernel (with custom config and patches)
<vd>
I'll jump right away to the buttons ("gpio-keys" I presume) which must be way simpler
<zmatt>
I mean the problem is that I don't know if what you need to do with those enable-lines is simple since you haven't stated what they're for or how they're to be used
<vd>
I can look up what pins they connect to on the usb device side
<zmatt>
and I can't remotely read the mind of your hardware designer
<zmatt>
I'm also going to sleep anyway
<vd>
zmatt thanks a lot again for your help!
buzzmarshall has quit [Quit: Konversation terminated!]
ikarso has joined #beagle
vd has quit [Ping timeout: 256 seconds]
calculus has quit [Ping timeout: 250 seconds]
calculus has joined #beagle
calculus has quit [Ping timeout: 250 seconds]
calculus has joined #beagle
Guest40 has quit [Quit: Client closed]
crash_2 has joined #beagle
crash_ has quit [Ping timeout: 240 seconds]
crash_2 is now known as crash_
Shadyman has quit [Quit: Leaving.]
Guest45 has quit [Quit: Client closed]
xet7 has quit [Read error: Connection reset by peer]
xet7 has joined #beagle
buzzmarshall has joined #beagle
calculus has quit [Ping timeout: 250 seconds]
calculus has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
calculus has quit [Ping timeout: 250 seconds]
calculus has joined #beagle
calculu5 has joined #beagle
calculus has quit [Ping timeout: 252 seconds]
BorikGor has joined #beagle
<BorikGor>
Hi everyone. I've got a BBB with an Angstron installed on it. I'm trying to install the latest Debian onto it, but for some reason it doesn't work.. :(
<zmatt>
if it's refusing to boot from sd card, power on while holding down the S2 button (the one closest to the sd card slot), you can let go once the power led turns on
<BorikGor>
I think it finally worked.. :) I got the Debian login screen iover a new COM port..
<BorikGor>
Thanks, mate! :)
<zmatt>
also, if you've previously tried to edit /boot/uEnv.txt to convert a standalone sd card image into a flasher... it happens every now and then that people accidently edit the one on eMMC rather than the one on sd card, possibly resulting in the system flashing eMMC onto SD card.
<BorikGor>
Never got the chance to access uEnv.txt.. This is the first time it asked me for Debian access credentials.. :)
<zmatt>
if you managed to boot from sd card, use "sudo blkdiscard /dev/mmcblk1" to wipe eMMC so the ancient system there can't cause any more trouble
<BorikGor>
I've been at it for the last couple of hours.. As soon as I ask for help everything start to work.. XD
<zmatt>
for future reference, instead of download a standalone sd card image and editing /boot/uEnv.txt to turn it into a flasher, there are also ready-to-go flasher images available for download
<BorikGor>
zmatt, thanks for the tips and for you attention!
<BorikGor>
I hope I won't have to bother you again.. :)
<zmatt>
that page has both standalone and flasher images
<BorikGor>
I got the "AM3358 Debian 10.3 2020-04-06 4GB SD IoT"..
<zmatt>
yep that would be the standalone image
<BorikGor>
That's standalone, I think... right?
<zmatt>
the flasher is a bit further down, "AM3358 Debian 10.3 2020-04-06 4GB eMMC IoT Flasher"
<zmatt>
the only difference is that one line in /boot/uEnv.txt
<BorikGor>
Cool, I need it with GUI right now.. Maybe later, when I'm more confident about the whole stuff.. :)
<zmatt>
so there's no reason to download the flasher now, but it's useful to know in case you need one in the future
<zmatt>
none of the images include a GUI
<BorikGor>
The flasher is smaller and boots faster, is it not?
<zmatt>
no
<BorikGor>
Oh.. Then I'm in for a surprise.. :)
<zmatt>
flasher just means it'll automatically reflash eMMC
<zmatt>
instead of booting normally from sd card
<BorikGor>
Oh, that's Special images, I was referring to.. :)
<zmatt>
the special images are.. special. don't get those unless you have a specific reason to get one of those and know what it is
<zmatt>
maybe you're thinking of console images? those are minimal images for people who prefer to just manually install whatever packages they need
<BorikGor>
Though as much.. :)
<BorikGor>
The console image is a tempting offer.. :)
<BorikGor>
But I think I'll spend a few weeks on it installing the stuff I need, instead of doing what I need to do right now.. :)
<BorikGor>
So, I'll stay with the recommended one for now..
<zmatt>
GUI is not included anymore as it takes up a ton of space and is not particularly useful, people generally don't connect keyboard/monitor to the BBB, they just connect to it via ssh (or, in case of the IoT image, the web-based IDE)
<BorikGor>
But it's good to know there are such "naked" images available for BBB... Thanks for the info!
<zmatt>
yeah they're meant for people who are already comfortable with debian... for whom installing a few packages isn't going to take weeks, nor days, nor hours probably
<BorikGor>
That's a bummer, regarding the GUI.. I was just meaning to connect it to my not smart TV and try stuff with it, using a wireless keyboard/mouse..
<zmatt>
sounds like a very uncomfortable way to use it
<zmatt>
the SoC on the BBB was designed for industrial applications, its video capabilities are... rather minimal
<BorikGor>
apk-install is in my muscle memory, but I have no idea what is it exactly that I need to install, so googling and understanding the search results, that's what's going to take me a ton of time.. :)
<zmatt>
basically just meant for simple touchscreen interfaces... it doesn't even have hardware mouse cursor support
<BorikGor>
Oh, that's good to know.. Thanks..
<zmatt>
it's definitely not designed to be used as a desktop computer
<zmatt>
that doesn't mean you can't of course
<zmatt>
but I don't see why I'd use the BBB as a terrible desktop pc instead of using... an actual desktop pc, or my laptop
<BorikGor>
No, not a PC, of course, but I thought to run the programming environment using the HDMI and do stuff there, instead of connecting to it via SSH..
<zmatt>
I mean, that *is* typical work for a desktop pc
<zmatt>
though like I said, there is a web-based IDE you can access via a web browser instead of ssh'ing in
<zmatt>
(I don't have any experience with it so dunno how well it works)
<zmatt>
I'm pretty sure there are also IDEs which allow you to work locally and automatically sync files to the remote system
<zmatt>
or even compile locally and run the executable on the remote system (though that's generally more work to setup)
<BorikGor>
Never knew those existed, to be frank.. :)
<zmatt>
I'm personally fine with vim and makefiles so I don't have any advice to offer for such IDEs, but I know it's a thing
<BorikGor>
But isn't VIM is like direct connection, only a tad slower, because of connecting over the network?
<zmatt>
vim is a text editor
<BorikGor>
Oh, I thought you were referring to VNC, sorry.. %)
<BorikGor>
Is there any indication of the flashing process? When it's done, for example?
<BorikGor>
I've just changed the uEnv.txt file and rebooted the BBB...
<zmatt>
while it's flashing the leds show a distinctive back-and-forth pattern across all four leds (sometimes referred to as "cylon" or "knight rider" if either of those references is familiar to you), when complete it will automatically power off
<zmatt>
(all four leds flashing at the same time indicates a failure)
<BorikGor>
Knight Rider... :) Once done a simple project for a friend with a Microchip and a spare brake light to turn his VW jetta into a knight vehicle.. :D That was fun..
<BorikGor>
What if I see only the User2 LED ON and the rest are off?
<BorikGor>
Does that mean anything?
<zmatt>
sounds like it crashed during very early boot
<zmatt>
possibly you messed up the line you edited
<BorikGor>
That's a bummer..
<zmatt>
maybe just download a pre-made flasher image instead ;)
<BorikGor>
The uEnv should be accessable from other system, right?
<zmatt>
sure, you can try to fix it
<BorikGor>
If I have to reburn that SD card, I'll download the prebuilt.. :)
<BorikGor>
Yeah.. Win10 can't handle partitions not meant for MS.. XD
<zmatt>
correct
<BorikGor>
I can boot the BBB and then mount the SD card, can't I?
<zmatt>
if you ignored my advice of wiping eMMC then yes
<BorikGor>
Oh, I forgot about it.. Turned out for the best.. :)
lucascastro has quit [Ping timeout: 250 seconds]
GenTooMan has quit [Ping timeout: 250 seconds]
lucascastro has joined #beagle
charlie5 has quit [Ping timeout: 240 seconds]
GenTooMan has joined #beagle
BorikGor has left #beagle [#beagle]
charlie5 has joined #beagle
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #beagle
lucascastro has quit [Quit: Leaving]
vd has joined #beagle
calculu5 has quit [Ping timeout: 252 seconds]
calculus has joined #beagle
ikarso has joined #beagle
vagrantc has joined #beagle
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #beagle
nerdboy has quit [Ping timeout: 248 seconds]
nerdboy has joined #beagle
nerdboy has joined #beagle
nerdboy has quit [Changing host]
russ has quit [Ping timeout: 250 seconds]
<vd>
should you ideally disable the pinmux you're not using? i.e. the ones that are not connected to anything on the daughter board?
<zmatt>
I have no idea what you mean by "disable the pinmux"
russ has joined #beagle
calculu5 has joined #beagle
calculus has quit [Ping timeout: 252 seconds]
<vd>
zmatt like when there's a red cross on an expansion header pin on the datasheet, meaning it's unused/not connected
<vd>
Is there like a "disabled" mux mode you should use for that ?
<zmatt>
no
<zmatt>
I'd just leave them at default (gpio with default pull)
<vd>
ok
<vd>
if it's physically not connected there's no risk anyway
russ has quit [Read error: Connection reset by peer]
akaWolf has quit [Ping timeout: 252 seconds]
russ has joined #beagle
akaWolf has joined #beagle
_av500_ has quit [Ping timeout: 240 seconds]
_av500_ has joined #beagle
buzzmarshall has quit [Read error: Connection reset by peer]