Quantcast

Bluetooth

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Bluetooth

rgw1001

Hi Akram,

 

I used menuconfig to enable what I thought were the relevant modules for Bluetooth.  On boot I now get:

 

root@overo:~# logread | grep Blue

Jan  1 00:01:26 overo user.info kernel: [    0.111572] Bluetooth: Core ver 2.16

Jan  1 00:01:26 overo user.info kernel: [    0.111663] Bluetooth: HCI device and connection manager initialized

Jan  1 00:01:26 overo user.info kernel: [    0.111663] Bluetooth: HCI socket layer initialized

Jan  1 00:01:26 overo user.info kernel: [    0.111663] Bluetooth: L2CAP socket layer initialized

Jan  1 00:01:26 overo user.info kernel: [    1.211914] Bluetooth: HCI UART driver ver 2.2

Jan  1 00:01:26 overo user.info kernel: [    1.211944] Bluetooth: HCI H4 protocol initialized

Which makes me think I did at least something right, but hcitool doesn’t find any devices.

 

Our current board-overo file sets GPIO16 & GPIO164 low, so I have to manually release W2W & BT from reset.  Only 16 increases the current consumption noticeably.  In your ‘overo_signals_latest.pdf’ document you have GPIO54_BT_nPOWERON = GPIO54 but I don’t have 54 registered as GPIO.  Is this right?

 

We have a variety of Overo COMs.  We started out with WaterSTORM (no BT), then moved to IronSTORM-P (BT disabled) for temperature range reasons, then to IronSTORM-Y (BT disabled) for availability reasons.  Now we would like to activate the BT.  Such is the march of progress.

 

Regards,

Richard

 

 

From: Richard Woodham [mailto:[hidden email]]
Sent: 28 February 2017 10:16
To: 'General mailing list for gumstix users.'
Subject: Re: [Gumstix-users] opkg update

 

Hi Akram,

                I relegated all but the base & overo-feed.conf files to a temporary directory and edited these 2 files as shown:

root@overo:~# ls -l /etc/opkg/

-rw-r--r--    1 root     root           151 Jul 14  2016 arch.conf

-rw-r--r--    1 root     root            87 Feb 24  2017 base-feed.conf

-rw-r--r--    1 root     root          1096 Apr 19  2016 opkg.conf

-rw-r--r--    1 root     root            97 Feb 24  2017 overo-feed.conf

drwxr-xr-x    2 root     root          1024 Feb 24  2017 temp

root@overo:~# cat /etc/opkg/base-feed.conf

src/gz base http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/base

root@overo:~# cat /etc/opkg/overo-feed.conf

src/gz overo http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/machine/overo

 

I had to use nano with the –w switch to suppress word wrapping which affects such long lines.

 

Opkg update now runs without error.  I’m still working on getting the Bluetooth up.

 

Regards,

Richard

 

 

From: Akram Hameed [[hidden email]]
Sent: 23 February 2017 22:59
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] opkg update

 

Hi Richard,

 

Sorry for the delayed reply, this email went to spam.

 

Can you post your confs for the default angstrom feeds maybe? Might save a lot of questions.

 

Cheers,

 

Akram

 

On Tue, Feb 21, 2017 at 8:06 PM, Richard Woodham <[hidden email]> wrote:

Hi Akram,

                I edited all the *-feeds.conf files to replace /next/ with /2012.05/ then re-ran opkg update and got this:

 

Downloading http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/Packages.gz.

wget: bad address 'feeds.angstrom-distribution.org'

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Collected errors:

* opkg_conf_parse_file: /etc/opkg/debug-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/debug'

* opkg_conf_parse_file: /etc/opkg/gstreamer-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/armv7a/gstreamer'

* opkg_conf_parse_file: /etc/opkg/noarch-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/all'

* opkg_conf_parse_file: /etc/opkg/overo-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/machine/overo'

* opkg_conf_parse_file: /etc/opkg/perl-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/armv7a/perl'

* opkg_conf_parse_file: /etc/opkg/python-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/armv7a/python'

* opkg_conf_parse_file: /etc/opkg/sdk-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/sdk'

* opkg_download: Failed to download http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

 

Which I take as a failure.  If I navigate with my web browser to http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base I can see Packages.gz, why can’t opkg?

Regards,

Richard                                                                                                                                                                                              

 

From: Akram Hameed [mailto:[hidden email]]
Sent: 19 February 2017 22:42
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] opkg update

 

Hi Richard,

 

Check out the /etc/opkg directory. It has a few files in there to configure opkg - namely, you can tell it where feeds are located.  For some time you have been able to add new feeds by adding your own .conf to that directory. Alternatively, you can probably just edit the base-feeds.conf (assuming that is what it was called, way back when).

 

Cheers,

 

Akram

 

On Fri, Feb 17, 2017 at 3:31 AM, Richard Woodham <[hidden email]> wrote:

I’m trying to install some Bluetooth stuff on an ancient Angstrom distribution.  If I do opkg update I get:

Downloading http://feeds.angstrom-distribution.org/feeds/next/ipk/eglibc/armv7a/base/Packages.gz.

wget: server returned error: HTTP/1.1 404 Not Found

 

If I manually browse feeds.angstrom-distribution.org I can see resources which could plausibly be what I’m after (probably in the v2012.05 folder).  Is there an official method to persuade opkg update to go to a particular web page to fetch packages?

Any ideas?

 

Richard Woodham

Thermoteknix Systems Limited
Teknix House, 2 Pembroke Avenue, Waterbeach, Cambridge CB25 9QR, England
Tel. <a href="tel:+44%201223%20204037" target="_blank">+44 1223 204037
Fax <a href="tel:+44%201223%20204001" target="_blank">+44 1223 204001
webpage: www.thermoteknix.com

The Queen's Award for Enterprise 2015: Innovation

Thermoteknix Systems Ltd is an ISO 9001:2008 certified company registered in England and Wales. Registered number: 01624251.
Registered office: 6th Floor, Cardinal House, 20 St Mary's Parsonage, Manchester M3 2LG

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bluetooth

gumstix-users
Hi Richard,

Unfortunately I haven't spent any time trying to get the bluetooth subsystem working on the older kernels. Someone else on the list might be of help - or if you are super lucky, Scott Ellis may have posted some information on his jumpnowtek website (he often documents his workflows - thanks Scott!)

Also, just in case it wasn't obvious, I don't work for Gumstix, am just a community member - I sure hope they will jump in and give you some support...!

Regarding pins and GPIO - in the old kernel, you definitely need to set up your pin muxing in the u-boot code. The kernel does make a few changes, but the lion's share are done in bootloader and therefore exporting GPIOs for those pins won't allow you to control things as expected unless you make a change using a program like devmem2.

If you do decide to use devmem2 to change pad muxing for your debugging, I encourage you to check out the TRM for the OMAP: http://www.ti.com/lit/pdf/spruf98

There are some examples on using it right here: http://gumstix.org/software-development/how-to/250-gpio.html

Cheers,

Akram



On Wed, Mar 1, 2017 at 9:53 PM, Richard Woodham <[hidden email]> wrote:

Hi Akram,

 

I used menuconfig to enable what I thought were the relevant modules for Bluetooth.  On boot I now get:

 

root@overo:~# logread | grep Blue

Jan  1 00:01:26 overo user.info kernel: [    0.111572] Bluetooth: Core ver 2.16

Jan  1 00:01:26 overo user.info kernel: [    0.111663] Bluetooth: HCI device and connection manager initialized

Jan  1 00:01:26 overo user.info kernel: [    0.111663] Bluetooth: HCI socket layer initialized

Jan  1 00:01:26 overo user.info kernel: [    0.111663] Bluetooth: L2CAP socket layer initialized

Jan  1 00:01:26 overo user.info kernel: [    1.211914] Bluetooth: HCI UART driver ver 2.2

Jan  1 00:01:26 overo user.info kernel: [    1.211944] Bluetooth: HCI H4 protocol initialized

Which makes me think I did at least something right, but hcitool doesn’t find any devices.

 

Our current board-overo file sets GPIO16 & GPIO164 low, so I have to manually release W2W & BT from reset.  Only 16 increases the current consumption noticeably.  In your ‘overo_signals_latest.pdf’ document you have GPIO54_BT_nPOWERON = GPIO54 but I don’t have 54 registered as GPIO.  Is this right?

 

We have a variety of Overo COMs.  We started out with WaterSTORM (no BT), then moved to IronSTORM-P (BT disabled) for temperature range reasons, then to IronSTORM-Y (BT disabled) for availability reasons.  Now we would like to activate the BT.  Such is the march of progress.

 

Regards,

Richard

 

 

From: Richard Woodham [mailto:[hidden email]]
Sent: 28 February 2017 10:16
To: 'General mailing list for gumstix users.'
Subject: Re: [Gumstix-users] opkg update

 

Hi Akram,

                I relegated all but the base & overo-feed.conf files to a temporary directory and edited these 2 files as shown:

root@overo:~# ls -l /etc/opkg/

-rw-r--r--    1 root     root           151 Jul 14  2016 arch.conf

-rw-r--r--    1 root     root            87 Feb 24  2017 base-feed.conf

-rw-r--r--    1 root     root          1096 Apr 19  2016 opkg.conf

-rw-r--r--    1 root     root            97 Feb 24  2017 overo-feed.conf

drwxr-xr-x    2 root     root          1024 Feb 24  2017 temp

root@overo:~# cat /etc/opkg/base-feed.conf

src/gz base http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/base

root@overo:~# cat /etc/opkg/overo-feed.conf

src/gz overo http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/machine/overo

 

I had to use nano with the –w switch to suppress word wrapping which affects such long lines.

 

Opkg update now runs without error.  I’m still working on getting the Bluetooth up.

 

Regards,

Richard

 

 

From: Akram Hameed [[hidden email]]
Sent: 23 February 2017 22:59
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] opkg update

 

Hi Richard,

 

Sorry for the delayed reply, this email went to spam.

 

Can you post your confs for the default angstrom feeds maybe? Might save a lot of questions.

 

Cheers,

 

Akram

 

On Tue, Feb 21, 2017 at 8:06 PM, Richard Woodham <[hidden email]> wrote:

Hi Akram,

                I edited all the *-feeds.conf files to replace /next/ with /2012.05/ then re-ran opkg update and got this:

 

Downloading http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/Packages.gz.

wget: bad address 'feeds.angstrom-distribution.org'

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Downloading /Packages.gz.

wget: not an http or ftp url: /Packages.gz

Collected errors:

* opkg_conf_parse_file: /etc/opkg/debug-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/debug'

* opkg_conf_parse_file: /etc/opkg/gstreamer-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/armv7a/gstreamer'

* opkg_conf_parse_file: /etc/opkg/noarch-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/all'

* opkg_conf_parse_file: /etc/opkg/overo-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/machine/overo'

* opkg_conf_parse_file: /etc/opkg/perl-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/armv7a/perl'

* opkg_conf_parse_file: /etc/opkg/python-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/armv7a/python'

* opkg_conf_parse_file: /etc/opkg/sdk-feed.conf:2: Ignoring invalid line: `http://feeds.angstrom-distribution.org/feeds/2012.05/ipk/eglibc/sdk'

* opkg_download: Failed to download http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

* opkg_download: Failed to download /Packages.gz, wget returned 1.

 

Which I take as a failure.  If I navigate with my web browser to http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base I can see Packages.gz, why can’t opkg?

Regards,

Richard                                                                                                                                                                                              

 

From: Akram Hameed [mailto:[hidden email]]
Sent: 19 February 2017 22:42
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] opkg update

 

Hi Richard,

 

Check out the /etc/opkg directory. It has a few files in there to configure opkg - namely, you can tell it where feeds are located.  For some time you have been able to add new feeds by adding your own .conf to that directory. Alternatively, you can probably just edit the base-feeds.conf (assuming that is what it was called, way back when).

 

Cheers,

 

Akram

 

On Fri, Feb 17, 2017 at 3:31 AM, Richard Woodham <[hidden email]> wrote:

I’m trying to install some Bluetooth stuff on an ancient Angstrom distribution.  If I do opkg update I get:

Downloading http://feeds.angstrom-distribution.org/feeds/next/ipk/eglibc/armv7a/base/Packages.gz.

wget: server returned error: HTTP/1.1 404 Not Found

 

If I manually browse feeds.angstrom-distribution.org I can see resources which could plausibly be what I’m after (probably in the v2012.05 folder).  Is there an official method to persuade opkg update to go to a particular web page to fetch packages?

Any ideas?

 

Richard Woodham

Thermoteknix Systems Limited
Teknix House, 2 Pembroke Avenue, Waterbeach, Cambridge CB25 9QR, England
Tel. <a href="tel:+44%201223%20204037" target="_blank">+44 1223 204037
Fax <a href="tel:+44%201223%20204001" target="_blank">+44 1223 204001
webpage: www.thermoteknix.com

The Queen's Award for Enterprise 2015: Innovation

Thermoteknix Systems Ltd is an ISO 9001:2008 certified company registered in England and Wales. Registered number: 01624251.
Registered office: 6th Floor, Cardinal House, 20 St Mary's Parsonage, Manchester M3 2LG

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Loading...