CB1 icon indicating copy to clipboard operation
CB1 copied to clipboard

gpio pins NOT working with CB1 eMMc V1.1

Open Suggy50 opened this issue 3 years ago • 11 comments

CB1 eMMc on Manta M5P I have setup the CB1 eMMc as a second MCU configured gpio79 for PI-FAN which is the socket on the M5P.

[mcu cb1] serial: /tmp/klipper_host_mcu

[heater_fan SoC_fan] pin: cb1:gpio79

Settings have been verified by several people and all have said correct but I get this message MCU 'cb1' error during config: Unable to open out GPIO chip line

Please fix or report back if I have a hardware issue

Suggy50 avatar Apr 22 '23 14:04 Suggy50

Still no resolution to this problem Bigtreetech you need to fix this problem. A little more information. When setting up MCU host I try to install "sudo apt-get install gpiod" but get error "Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package gpiod"

Suggy50 avatar May 01 '23 07:05 Suggy50

Is this fixed yet?

Drew3164 avatar Jun 03 '23 03:06 Drew3164

Still no resolution to this problem Bigtreetech you need to fix this problem. A little more information. When setting up MCU host I try to install "sudo apt-get install gpiod" but get error "Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package gpiod"

I had this same issue and I ended up solving it. I can't find the exact website I had referenced but I want to say all it took was updating the installed packages.
https://raspberry-projects.com/pi/command-line/update-packages

I'm a total noob when it comes to RPIs and Linux but it seems like the gpiod package isn't included in the OS from Biqu. Running those commands fetches and installs the package. After that, I was able to run that sudo-apt-get install gpiod

TristanScott44 avatar Jun 06 '23 16:06 TristanScott44

Hey guys I'm in the same boat as you Have a manta m8p v1.1 with CB1 eMMC and i'm not able to connect to gpio26 to control the fan. I have installed klipper firmware for cb1, i've checked with gpioinfo that I have two gpiochip and nothing works. If i set CB1:gpio26, CB1:gpiochip0/gpio26 or CB1:gpiochip1/gpio26 - nothing works. Same error Unable to open out GPIO chip line Everything is up to date including system packages. Not sure into what direction I should look

Grimones avatar Jul 21 '23 19:07 Grimones

Hey guys I'm in the same boat as you Have a manta m8p v1.1 with CB1 eMMC and i'm not able to connect to gpio26 to control the fan. I have installed klipper firmware for cb1, i've checked with gpioinfo that I have two gpiochip and nothing works. If i set CB1:gpio26, CB1:gpiochip0/gpio26 or CB1:gpiochip1/gpio26 - nothing works. Same error Unable to open out GPIO chip line Everything is up to date including system packages. Not sure into what direction I should look

You need to change gpio26 to gpio269 These are my settings

[temperature_fan cb1_Fan] pin: cb1:gpio269 sensor_type: temperature_host control: watermark min_temp: 0 max_temp: 85 target_temp: 45

Suggy50 avatar Jul 22 '23 16:07 Suggy50

Hey guys I'm in the same boat as you Have a manta m8p v1.1 with CB1 eMMC and i'm not able to connect to gpio26 to control the fan. I have installed klipper firmware for cb1, i've checked with gpioinfo that I have two gpiochip and nothing works. If i set CB1:gpio26, CB1:gpiochip0/gpio26 or CB1:gpiochip1/gpio26 - nothing works. Same error Unable to open out GPIO chip line Everything is up to date including system packages. Not sure into what direction I should look

You need to change gpio26 to gpio269 These are my settings

[temperature_fan cb1_Fan] pin: cb1:gpio269 sensor_type: temperature_host control: watermark min_temp: 0 max_temp: 85 target_temp: 45

OMG you are my saviour :) it worked like a charm. And how should I calculate the gpio pin number? Let's say I want to use gpio23

Grimones avatar Jul 22 '23 16:07 Grimones

If you are using raspberry pi gpio numbers then that will not work, it's not the same SoC. This is the key for the gpio numbers, https://github.com/bigtreetech/CB1#40-pin-gpio

Pneumanifest avatar Jul 22 '23 16:07 Pneumanifest

Thanks for that. I was thinking that in manta m8p docs in pinout image it's showing CB1 pinout rather than CM4. But now I understand it and can see in table if pinout says GPIO6 in CM4 column then it maps to GPIO265 in CB1 eMMC column. I think the ticket can be closed now.

Grimones avatar Jul 24 '23 10:07 Grimones