Announcement

Collapse
No announcement yet.

Should I never run the rpi-update command? (using 4DPi-24-HAT + Raspbian jessie)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Should I never run the rpi-update command? (using 4DPi-24-HAT + Raspbian jessie)


    Hi everybody,

    My 4DPi-24-HAT works well on raspbian "jessie".
    But after running rpi-update, raspberry pi doesn't work.

    I tried both 2 patterns.
    1.
    I heve made a flesh image of raspbian jessie and expanded Filesystem.
    After reboot, I run the apt-get update and the apt-get upgrade command.
    Then I have installed 4DPi kernel driver "4d-hats_4-1-19_v1.0.tar.gz".
    After reboot, my raspberry pi & 4DPi-24-HAT works fine.
    Next, I ran the rpi-update command.
    After reboot, my raspberry pi doesn't work.

    2.
    I heve made a flesh image of raspbian jessie and expanded Filesystem.
    After reboot, I run the apt-get update and the apt-get upgrade and the rpi-update command.
    Then I have installed 4DPi kernel driver "4d-hats_4-1-19_v1.0.tar.gz".
    After reboot, my raspberry pi doesn't work.

    Both, rpi-update overwrite some configration files.
    Rpi-update seems to cause it.
    Should I never run the rpi-update command?


    All messages of rpi-update is as follows.

    [email protected]:~ $ sudo rpi-update
    *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
    *** Performing self-update
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 10670 100 10670 0 0 27375 0 --:--:-- --:--:-- --:--:-- 27429
    *** Relaunching after update
    *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
    *** We're running for the first time
    *** Backing up files (this will take a few minutes)
    *** Backing up firmware
    *** Backing up modules 4.1.19-v7+
    #############################################################
    WARNING: This update bumps to rpi-4.4.y linux tree
    Be aware there could be compatibility issues with some drivers
    Discussion here:
    https://www.raspberrypi.org/forums/v...?f=29&t=144087
    ##############################################################
    Would you like to proceed? (y/N)
    *** Downloading specific firmware revision (this will take a few minutes)
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 168 0 168 0 0 180 0 --:--:-- --:--:-- --:--:-- 180
    100 50.5M 100 50.5M 0 0 266k 0 0:03:14 0:03:14 --:--:-- 1321k
    *** Updating firmware
    *** Updating kernel modules
    *** depmod 4.4.8+
    *** depmod 4.4.8-v7+
    *** Updating VideoCore libraries
    *** Using HardFP libraries
    *** Updating SDK
    *** Running ldconfig
    *** Storing current firmware revision
    *** Deleting downloaded files
    *** Syncing changes to disk
    *** If no errors appeared, your firmware was successfully updated to bf7461c96c1d8c73b136bed7aaeb7b62f9e7f4eb
    *** A reboot is needed to activate the new firmware
    end.


  • #2
    Hello,

    Unsure exactly what rpi-update is pulling and putting on the Pi, but it will be overwriting the custom kernel which you are installing when you put on our 4DPi kernel pack, so that would explain why it doesnt work if you do it afterwards. If you install the 4DPi kernel pack after the rpi-update, I would guess since the 4DPi kernel pack is installing kernel 4.1.19 and drivers compiled to that revision kernel, and rpi-update is installing 4.4.8, so the compiled 4DPi drivers will no longer be working. So you are essentially breaking all the compiled drivers you have just added on, by installing a later kernel.

    That would be my guess.

    This update bumps to rpi-4.4.y linux tree
    Be aware there could be compatibility issues with some drivers
    Ill flag this post up to someone with more Pi experience and see what they think. I would imagine it is due to you updating the kernel though with that command.
    You can probably compile the source code for the 4DPi kernel pack though, for your new kernel and get it working again.

    Regards
    James

    Comment


    • #3
      Hello James,

      Originally posted by James_4DSystems View Post
      You can probably compile the source code for the 4DPi kernel pack though, for your new kernel and get it working again.
      So nice!
      I want to try use the 4DPi at the newest kernel.
      Where can I find the source code for the 4DPi kernel pack?

      Thanks,

      Last edited by eokayama; 5th May 2016, 12:53 AM.

      Comment


      • #4
        https://bitbucket.org/4DPi/4d-hats/

        Its on the product page under Downloads.

        Regards
        James

        Comment


        • #5
          Hello,

          Now, my Raspberry pi and 4DPi-24-HAT work fine at the newest kernel.

          After "rpi-update", I have made a new kernel.
          I can now use the 4DPi-24-HAT on newest kernel.

          Thanks James.

          After compiling kernel that include 4DPi-drivers, some settings are needed.
          ===============================================================================
          for kernel version is "Linux raspberrypi 4.1.21-v7+"

          Extract 4D-HAT driver files to local directory
          [email protected]:~ $ wget http://www.4dsystems.com.au/download...19_v1.0.tar.gz
          [email protected]:~ $ mkdir 4D
          [email protected]:~ $ tar -xzvf 4d-hats_4-1-19_v1.0.tar.gz -C 4D

          copy setting file
          [email protected]:~ $ sudo cp 4D/etc/X11/xorg.conf.d/fbtft.conf /usr/share/X11/xorg.conf.d/

          [email protected]:~ $ sudo nano /etc/rc.local
          # Print the IP address
          _IP=$(hostname -I) || true
          if [ "$_IP" ]; then
          printf "My IP address is %s\n" "$_IP"
          fi

          con2fbmap 1 1

          exit 0

          [email protected]:~ $ sudo nano /etc/modules
          i2c-dev
          #pwmbl
          ar1020-i2c
          #4dpi_touch

          [email protected]:~ $ sudo reboot

          X start on the 4DPi-24-HAT (^_-)
          ===============================================================================
          additional comments(Date:2016/11/30)
          for kernel version "Linux raspberrypi 4.4.21-v7+" or later 4.4.x

          After self-building the 4DPi kernel, you need additional settings.

          #Extract 4D-HAT driver files to local directory
          [email protected]:~ $ wget http://www.4dsystems.com.au/download...21_v1.0.tar.gz
          [email protected]:~ $ mkdir 4D
          [email protected]:~ $ tar -xzvf 4d-hats_4-4-21_v1.0.tar.gz -C 4D

          #copy setting file
          [email protected]:~ $ sudo cp 4D/usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/

          #edit "rc.local"
          [email protected]:~ $ sudo nano /etc/rc.local
          # Print the IP address
          _IP=$(hostname -I) || true
          if [ "$_IP" ]; then
          printf "My IP address is %s\n" "$_IP"
          fi

          con2fbmap 1 1

          exit 0

          #edit "modules"
          [email protected]:~ $ sudo nano /etc/modules
          i2c-dev
          #pwmbl
          ar1020-i2c
          #4dpi_touch

          [email protected]:~ $ sudo reboot

          X start on the 4DPi-24-HAT (^_-)
          ===============================================================================

          Last edited by eokayama; 30th November 2016, 01:23 PM.

          Comment


          • #6
            Hello,

            Updated Kernel Pack is now available, using 4.4.9 Kernel.

            http://www.4dsystems.com.au/download...-9_v1.0.tar.gz

            See how you get on

            Regards
            James

            Comment

            Working...
            X