The script is asking you to use apt-get, which is not a Fedora tool - Fedora uses dnf.  
You might try "dnf install python3-i2c-tools", to see if it helps with the I2C 
communications.

But really, the path of least resistance is to use the OS they wrote their 
tools for.

        Steve

On 7/26/20 12:31 PM, [email protected] wrote:
Good advice. I tried but adding the uart option didn't work. I suspect we have 
two problems overlaid. It coudl be a problem with the python version in 
addition?

$ sudo i2cset -y 1 0x60 0x08 0xbb && sleep 1 && sudo python 
PCF4_serial0_9600_FU1.0.py <http://PCF4_serial0_9600_FU1.0.py> -v -f PiCoolFAN_V1_4.hex
   File "PCF4_serial0_9600_FU1.0.py <http://PCF4_serial0_9600_FU1.0.py>", line 
120
     print 'WARNING: I2C support is missing. Please install smbus support for 
python to enable additional functionality! (sudo apt-get install python-smbus)'
           ^
SyntaxError: invalid syntax

On Sun, Jul 26, 2020 at 5:29 PM Steven A. Falco <[email protected] 
<mailto:[email protected]>> wrote:

    You can enable the serial port by adding this line:

    enable_uart=1

    in the file /boot/efi/config.txt and rebooting the Pi.  If that doesn't 
work for you, you might consider temporarily loading a copy of Raspbian on an 
SD card just to do the fan setup, since that is what the hardware manufacturer 
expects you to be using.

    After configuring the fan, then put your Fedora SD card back in.  The 
manual you linked to says that the settings are stored in EEPROM, so they 
should be remembered when you switch back to Fedora.

             Steve


    On 7/26/20 7:40 AM, [email protected] <mailto:[email protected]> wrote:
     > Sorry, I forgot - here is what we are talking about:
     >
     > https://pimodules.com/picoolfan4
     >
     > https://pimodules.com/download/picoolfan4-user-manual
     > see also attached.
     >
     > Yes, Raspian, although not mentioned explicitly in the manual.
     >
     > On Sun, Jul 26, 2020 at 12:12 PM Peter Robinson <[email protected] 
<mailto:[email protected]> <mailto:[email protected] 
<mailto:[email protected]>>> wrote:
     >
     >      > I need to update the firmware of a fan for the RPi4 and given the 
below instructions in Raspbian. I also installed
     >      >
     >      > sudo dnf -y install i2c-tools
     >      > sudo dnf -y install python3-i2c-tools
     >      >
     >      > but the firmware update fails. I guess, it is because of the 
serial port not being enabled. Any advice?
     >
     >     Can you actually link to the hardware and the instructions you're
     >     attempting to follow/convert, it saves people actually trying to
     >     guess/interpret what that may be.
     >
     >      > Thanks, Thomas
     >      >
     >      > In order to use bootloader, user need to have activated and free 
Serial Port on Raspberry Pi®. The below
     >      > procedure is showing how to make sure that Serial Port is free 
and available for Bootloader process.
     >      > sudo raspi-config
     >      > Select -> Interfacing Options
     >      > 1. IC Kernel ON
     >      > 2. Serial option to enable UART
     >      > Then it will ask for login shell to be accessible over Serial, 
select No shown as follows.
     >      > At the end, it will ask for enabling Hardware Serial port, select 
Yes,
     >      > Then, reboot the Raspberry Pi®!!
     >
     >     I take it they're the details for Raspbian?
     >
     >
     > _______________________________________________
     > arm mailing list -- [email protected] 
<mailto:[email protected]>
     > To unsubscribe send an email to [email protected] 
<mailto:[email protected]>
     > Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
     > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
     > List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
     >
    _______________________________________________
    arm mailing list -- [email protected] 
<mailto:[email protected]>
    To unsubscribe send an email to [email protected] 
<mailto:[email protected]>
    Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
    List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
    List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]


_______________________________________________
arm mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

_______________________________________________
arm mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to