Jump to content

chrism

Members
  • Posts

    5
  • Joined

  • Last visited

  1. I'm still working on getting the other two sets of PWM outputs working using a similar approach to the one above, and just figured I'd add this link to the thread as a resource in case anyone else finds it useful (or I need to find it again). I believe this has the most recent C4 overlay .dts file from Hardkernel for pwm_ef: https://github.com/hardkernel/linux/blob/odroidg12-4.9.y/arch/arm64/boot/dts/amlogic/overlays/odroidc4/pwm_ef.dts
  2. Thanks so much, that's a really comprehensive and helpful answer!
  3. Just following up on this, I was able to get this running on the Odroid stock image (and subsequently the motor controller and external LED control, so I'm sure it's working) through the process described in the post at https://forum.odroid.com/viewtopic.php?f=207&t=41185 However, I'm not seeing the equivalent file for Armbian to make this change. The one area that I'm looking at is the boot.cmd/.scr files, although both of those point me towards the armbianEnv.txt file, which doesn't seem to have an obvious way of calling this out similarly to the config.ini file on the Odroid image. I'd be looking for something with the overlay name, but all the files with "meson" in /boot seem to be binary and not editable by the users. @Igor, I looked at the thread that you mentioned, but it's a little beyond my ken for the momen, especially since it only seems to mention a single pwm1 channel (although it's completely possible I'm missing something). Do you potentially have any other suggestions for where to look or learning resources to understand more about what's going on in the thread you linked?
  4. I've confirmed that all three PWM outputs (pmwchip0/4/8) are present in the Odroid stock image, downloaded from https://odroid.in/ubuntu_20.04lts/c4-hc4/ , in particular the ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020.img.xz image. I think that means that the missing peripheral access is due to Armbian itself, although not sure if this is due to a kernel config that I somehow didn't enable or a bug in the build itself. Since I'd eventually like to move towards using Armbian, I'd be happy to help figure out why this is happening, since I'm sure that other folks may be interested in having access to that functionality on this board as well, if someone can point me in the right direction.
  5. I recently uploaded Armbian_20.11_Odroidc4_focal_current 5.9.12_desktop.img.xz onto a new Odroid-C4. Booting up and getting started hasn't been a problem, but I've been interested in driving some brushless motors using a PWM control signal and started looking through the device tree. The C4 is supposed to have a total of 6 PWM outputs, spread over 3 pwmchip devices, which (I believe) should be named pwmchip0, pwmchip4, and pwmchip8. However, upon navigating to /sys/class/pwm, I'm only seeing pwmchip0. This seems a little odd, because if PWM was entirely disabled in the device tree, I wouldn't have expected that any of the chips would have appeared. Not sure if this is a board-level problem, or something I'm missing in the kernel image I downloaded. I'm planning on comparing the stock Odroid image, but the spare uSD card I ordered is taking longer to arrive than expected. I can update when it comes in, but wanted to check either way if this was expected behavior for the Armbian image and if so, there is a simple fix, since I'd prefer sticking with vanilla Armbian over whatever fork the manufacturer puts out is. Thanks for your time, and please let me know if there's any add'l information I can provide to make this easier!
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines