element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MiniZed Hardware Design Missing library (libreadline.so.7) in btmgmt routine in Minized
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 9 replies
  • Subscribers 324 subscribers
  • Views 934 views
  • Users 0 members are here
Related

Missing library (libreadline.so.7) in btmgmt routine in Minized

rsiva
rsiva over 6 years ago

Hello Minized Gurus

                                   I recently got my minized board and have been playing with the basic tutorials (such as Hello World, Labs 1-4) and it has been working great (Petalinux 2017.4)  so far. Very nice board to learn Zynq ARM/FPGA and SW/HW co-design for various applications.

 

I was trying out the below tutorial from the "reference designs/tutorials" section when I encountered an error in the library with the btmgmt executable, which is part of the "demo_ble.sh" script

---------------

Using Bluetooth on MiniZed

This document discusses the Bluetooth Low Energy demo apps for MiniZed under both iOS and Android.  Learn how to install the apps and install the GATT server on MiniZed.

 

The Bluetooth interface must be configured and then you can run the application, which is located at /mnt/emmc/tools/btgatt-server.

To do this, from the command prompt in the terminal enter:

cd /mnt/emmc/ble

./ble.sh

./demo_ble.sh   // Missing lib error happens

The BLE demo should now be ready for connections from an app

---------------

 

When I run the demo_ble.sh, I get a Library Error and Bluetooth does not connect as shown in the screenshot below.

 

image

 

Has some one else encountered this problem The peta Linux version is the  2017.4 (latest image) running on my minized and has the "image.ub" in the emmc (43MB).

The bt.sh and wifi.sh from the "Getting started guide" works. but not this demo.

 

image

 

I checked the /usr/lib path for what libraries are present and the closest one is "libreadline.so.6" (not the 7)

 

image

Problem: How to get this library (7) added to the path. I don't have a petalinux build running on my host.

 

If you need any other information, pl let me know and I can extract and post it here.

 

Thanks much

 

Best regards

 

Siva Radhakrishnan

  • Sign in to reply
  • Cancel
Parents
  • stefanrousseau
    0 stefanrousseau over 6 years ago

    Hello Siva,

     

    Great that you are playing with BLE.  If you look at the reference designs, you will see that there are separate downloads for 2017.4 and for 2018.2.

    Using Bluetooth on MiniZed 2017.4

    Using Bluetooth on MiniZed 2018.2

     

    My guess is that you downloaded the one for 2018.2 but are using 2017.4 for the PetaLinux on your board.  They are not compatible.

     

    The latest versions of the Raspbian OS caused incompatibilities with the libreadline library in PetaLinux 2017.4. It uses version 7.0, while MiniZed with PetaLinux 2017.4 uses version 6.3 and it would give warnings. For this reason the Raspbian build version used for the BLE app was 4.4.50-v7+.

    When you update to PetaLinux 2018.2, it also uses libreadline 7.0, so we are able to use Raspbian version 4.9.41-v7+.

     

    So for this demo it seems that your options are to update your environment to 2018.2, or to use the 2017.4 version of the BLE files.

     

    Regards.

    Stefan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • stefanrousseau
    0 stefanrousseau over 6 years ago

    Hello Siva,

     

    Great that you are playing with BLE.  If you look at the reference designs, you will see that there are separate downloads for 2017.4 and for 2018.2.

    Using Bluetooth on MiniZed 2017.4

    Using Bluetooth on MiniZed 2018.2

     

    My guess is that you downloaded the one for 2018.2 but are using 2017.4 for the PetaLinux on your board.  They are not compatible.

     

    The latest versions of the Raspbian OS caused incompatibilities with the libreadline library in PetaLinux 2017.4. It uses version 7.0, while MiniZed with PetaLinux 2017.4 uses version 6.3 and it would give warnings. For this reason the Raspbian build version used for the BLE app was 4.4.50-v7+.

    When you update to PetaLinux 2018.2, it also uses libreadline 7.0, so we are able to use Raspbian version 4.9.41-v7+.

     

    So for this demo it seems that your options are to update your environment to 2018.2, or to use the 2017.4 version of the BLE files.

     

    Regards.

    Stefan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • rsiva
    0 rsiva over 6 years ago in reply to stefanrousseau

    Hello Stefan

                         You are right. I did download  "Using Bluetooth on MiniZed 2018.2" files" and used it inadvertenly with the older image

    and that has caused the incompatibility with 2017.4 installation on the board.

     

    PS: BTW, when is the Petalinux 2018.2 going to be released. The latest image from your repo is still 2017.4

     

    I can certainly grab the "Using Bluetooth on MiniZed 2017.4" files and continue with my BTE experiments.

     

    This  power of the small ARM CPU along with FPGA / peripherals and the numerous tutorials in your site and not to mention your wonderful support makes it that much more enjoyable to learn new things and pick up skills.

     

    I have been reading your posts and using them as BKM/tips to circumvent problems during my 10 days so far with the minized.

     

    I will let know how the 2017.4 BTE works.

     

    Thanks much

     

    Best regards

     

    Siva R

     

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stefanrousseau
    0 stefanrousseau over 6 years ago in reply to rsiva

    Hello Siva,

     

    If you look in the "Configure your PL and eMMC" section of the 2018.2 Bluetooth document that you downloaded, you will see that the files for upgrading your MiniZed to 2018.2 are included in your download.  It is a simple process.

     

    "For 2018.2 support, you must program the 2018.2 flash_fallback_7007S.bin image into the QSPI flash and place the 2018.2 image.ub file into eMMC.

    To make sure that your MiniZed firmware is correct, you can use the files in the zip file that accompany this document (flash_fallback_7007S.bin and image.ub). For instructions on programming these files, please see APPENDIX A – Programming MiniZed. For information on how these files are created, please see APPENDIX B – Creation of the MiniZed Projects."

     

    The 2018.3 tools are currently available, but we usually only support even tools releases.

    Also, if you look in the downloads, you will see that the MiniZed BSP's for 2018.2 are there.

     

    MiniZed.bsp 2018.2 (BSP for booting from QSPI flash to eMMC)

    Minized_QSPI.bsp 2018.2 (QSPI flash fallback for booting from flash to eMMC)

     

    Regards,

    Stefan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rsiva
    0 rsiva over 6 years ago in reply to stefanrousseau

    Hello Stefan

                            I much appreciate your pointers on updating the files to 2018.2 on the minized. First, let me finish off the BLE experiment with 2017.4.

     

    Thanks much

     

    Regards

     

    Siva R

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rsiva
    0 rsiva over 6 years ago in reply to rsiva

    Stefan

                  The 2017.4 ble files worked fine with out any library compilation errors as prior. However, the BLE Demo app in my mobile phone is not giving

    any temp/led information despite the connection.

     

    image

    It get stuck in the listening mode on the VT100 terminal.

     

    On the Android phone, I am in stage 3 perennially but it is connected to the MINIZED1 displays MAC Address.

    but no further info on temp/sensor/led and no debug messages show up either at the bottom.

     

    image

    --

     

    Is there anything you can suggest. Also I noticed that if I punch in the wifi network and password on the phone app as soon as "update" is hit, the app quits and asks to restart again. I think there is something funny about this. The app developer's have to be notified.

     

    Thanks much

     

    Siva R

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stefanrousseau
    0 stefanrousseau over 6 years ago in reply to rsiva

    Siva,

     

    I agree, that app developer deserves to be sent to the gallows.  Here are my comments:

    1) There is an issue with the Android app on some devices.  This was never fully debugged as not enough Android devices were available to be tested.  Sometimes it helps to reset the Android device and to restart the MiniZed after power cycle.  In your case it proceeds quite far, so it is possible that this will work.

    2) If you have access to an iOS device, that is much more stable and we have not yet seen a device on which it fails.

     

    Hope this helps,

    Stefan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rsiva
    0 rsiva over 6 years ago in reply to stefanrousseau

    Stefan

                I have to debug the BLE with an iPhone to see if it goes further from my android phone. I am closing this thread which started out on the missing library and which digressed into the BLE App on the phone and its performance.

     

    Thanks

     

    Siva R

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rsiva
    0 rsiva over 6 years ago in reply to rsiva

    Stefan

                  The iPhone minized app for the BLE connection for temperature/gyro meter worked with my friends Apple phone. The Android minized app is the broken one.

    How can we get the source code for the app if some wants to improve or develop it.

     

    Thanks

     

    Siva R

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stefanrousseau
    0 stefanrousseau over 6 years ago in reply to rsiva

    Hello Siva,

     

    As I mentioned above, the Android App does work but is known to have a problem with some devices (even those on which a re-start does not help).  If you are interested in the source, the best way would be via your Avnet FAE, who should be able contact the MiniZed designers for the data.

     

    Regards,

    Stefan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube