New IT forum
12 August 2022, 03:28:02 pm *
Welcome, %1$s. Please login or register.

: GertDuino now in stock.
 
Pages: [1]

Author Topic: (SOLVED) Esata Sheeva + bluetooth dongle + kernel update needed + dual boot?  (Read 21616 times)

djemac

  • Newbie
  • *
  • Posts: 10

Hi,

Did someone installed a bluetooth dongle on its sheevaplug? Which kernel are you using?

Mine is an esata Sheevaplug with ubuntu 9.04
Linux debian 2.6.22.18 #1 Thu Mar 19 14:46:22 IST 2009 armv5tejl GNU/Linux

and my bluetooth dongle is not recognized

hcitool scan
Device is not available: Address family not supported by protocol


I guess it's a kernel issue, as this bluetooth dongle works on an Ubuntu 10 virtual machine on my iMac

I have installed bluez and bluez-utils

Thanks for your help.

jerome

« Last Edit: 05 March 2011, 03:57:45 pm by djemac »
Logged

sfzhi

  • Jr. Member
  • **
  • Posts: 54
Re: bluetooth dongle
« Reply #1 on: 02 March 2011, 01:03:02 pm »

hcitool scan
Device is not available: Address family not supported by protocol
Looks like your kernel is built without bluetooth support.
Logged

djemac

  • Newbie
  • *
  • Posts: 10
Re: bluetooth dongle
« Reply #2 on: 02 March 2011, 07:04:05 pm »

Thanks, it's what I think also.

Can someone explain me how to update my kernel?
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: bluetooth dongle
« Reply #3 on: 02 March 2011, 07:12:30 pm »

First, run the following command (with the -c switch) to clear the kernel ring buffer
Code: [Select]
[plug]$ dmesg -c
.........
Then plug in your USB Bluetooth device, and run it again (without the -c switch)
Code: [Select]
[plug]$ dmesg
usb 5-1: new full speed USB device using ohci_hcd and address 2
usb 5-1: New USB device found, idVendor=0a12, idProduct=0001
usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
.........
Use the Vendor/Product id shown as arguments to lsusb
Code: [Select]
[plug]$ lsusb -vd 0a12:0001
Bus 005 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Device Descriptor:
.........
modinfo will provide information about any existing modules
Code: [Select]
[plug]$ modinfo bluetooth
filename:       /lib/modules/2.6.32-00007-g56678ec/kernel/net/bluetooth/bluetooth.ko
alias:          net-pf-31
license:        GPL
version:        2.15
description:    Bluetooth Core ver 2.15
author:         Marcel Holtmann <[email protected]>
srcversion:     DA42EF010BAD5861856902E
depends:        rfkill
vermagic:       2.6.32-00007-g56678ec mod_unload
hciconfig will provide information about the kernel bluetooth device
Code: [Select]
[plug]$ hciconfig
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:09:DD:50:09:5F  ACL MTU: 384:8  SCO MTU: 64:8
        UP RUNNING PSCAN
        RX bytes:7298 acl:0 sco:0 events:1160 errors:0
        TX bytes:8862 acl:0 sco:0 commands:1089 errors:0
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

djemac

  • Newbie
  • *
  • Posts: 10
Re: bluetooth dongle
« Reply #4 on: 02 March 2011, 08:29:41 pm »

Hi,

it seems I need to update my kernel...

[email protected]:~# dmesg   
usb 1-1: new full speed USB device using ehci_marvell and address 4
usb 1-1: configuration #1 chosen from 1 choice

[email protected]:~# modinfo bluetooth
modinfo: could not open /lib/modules/2.6.22.18/modules.dep

[email protected]:~# hciconfig
Can't open HCI socket.: Address family not supported by protocol

Logged

djemac

  • Newbie
  • *
  • Posts: 10
Re: (esata Sheeva) bluetooth dongle + kernel update and/or Debian on SD
« Reply #5 on: 04 March 2011, 01:23:21 pm »

Hi,

before updatting my kernel (as I guess it could certainly solve by bluetooth problem),
as it is explained here http://www.newit.co.uk/forum/index.php/topic,285.msg2569/topicseen.html#msg2569

I want to see if my bluetooth works with another system on the SD card...and so create a dual boot capability (from Nand or from SD)

i have installed debian lenny on a 8G SD card (1st partition for boot, second one for root and one for swap) with ext2 format.
(I will try the same thing on another SD card with transcend-8G-8048869376-NewIT-v1.3-debian-squeeze-eSATA.img.gz)

Before doing something wrong, can someone confirm what I have to do :


setenv bootargs_console 'console=ttyS0,115200'
setenv bootargs_root_jffs2 'root=/dev/mtdblock2 ro'
setenv mtdpartitions_jffs2 'mtdparts=nand_mtd:[email protected](uImage),[email protected](rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none'
setenv jffs2_config 'setenv arcNumber;setenv mainlineLinux no;setenv bootargs_root $(bootargs_root_jffs2);setenv bootcmd run bootcmd_jffs2;saveenv;reset'
setenv bootcmd_jffs2 'setenv bootargs $(bootargs_console) $(mtdpartitions_jffs2); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000'
setenv bootargs_root_mmc 'root=/dev/mmcblk0p2 rootdelay=5'
setenv mmc_config 'setenv arcNumber 2678;setenv mainlineLinux yes;setenv bootcmd run bootcmd_mmc;saveenv;reset'
setenv bootcmd_mmc 'setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000'
saveenv
reset

and then

run mmc_config to boot from SD

or

run jffs2_config to boot from NAND


PS: which kernel is recommended for my esa sheevaplug? (I've read that 2.6.35 is not working well), as I want to use first bluetooth (with USB dongle) and certainly add an esata drive (and perhaps boot from this drive or do it from nand (if bluetooth works!) or SD card...

Thanks for your help, hoping that my post can be understood :D
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: Esata Sheeva + bluetooth dongle + kernel update needed + dual boot?
« Reply #6 on: 04 March 2011, 05:17:21 pm »

If you have a JFFS2 (not UBIFS) plug then our suggestion for booting from SD card is here; that looks to be the environment variables that you copied in your post.

Depending upon your kernel (ie if it's from sheeva.with-linux.org) you may need to change arcNumber to 2678 (for eSATA).

I never managed to get eSATA working under Lenny.
Logged

djemac

  • Newbie
  • *
  • Posts: 10
Re: Esata Sheeva + bluetooth dongle + kernel update needed + dual boot?
« Reply #7 on: 05 March 2011, 09:18:11 am »

Hi,

I've tried to boot from a  (resized) 8G SD card from a new it image..
I 've downloaded this image : ultima-4G-NewIT-v1.2-debian-squeeze-eSATA.gz



SDHC found. Card desciption is:
Manufacturer:       0x27, OEM "PH"
Product name:       "SD08G", revision 2.0
Serial number:      2086792932
Manufacturing date: 11/2010
CRC:                0x00, b0 = 0

2822228 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.32.7
   Created:      2010-02-10  21:21:03 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2822164 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.


and then nothing :-[
arcnumber is set to 2678
u boot is from factory default :
U-Boot 1.1.4 (Jul 14 2009 - 06:46:57) Marvell version: 3.4.16

Do i need to upgrade my uboot with uboot-sata-090903.bin ?
or
Do I need to download another image from new it??
what is the difference between all the provided images ??

Thanks,
Jerome


Ps : I am still able to boot from NAND with run jffs2_config
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: Esata Sheeva + bluetooth dongle + kernel update needed + dual boot?
« Reply #8 on: 05 March 2011, 11:25:54 am »

Hi,

I've tried to boot from a  (resized) 8G SD card from a new it image..
I 've downloaded this image : ultima-4G-NewIT-v1.2-debian-squeeze-eSATA.gz



and then nothing :-[
arcnumber is set to 2678
u boot is from factory default :
U-Boot 1.1.4 (Jul 14 2009 - 06:46:57) Marvell version: 3.4.16

Do i need to upgrade my uboot with uboot-sata-090903.bin ?
or
Do I need to download another image from new it??
what is the difference between all the provided images ??


For that image, you need arcNumber to be 2097. If you later upgrade to a sheeva.with-linux.com kernel, you'll need to set arcNumber to 2678.

I think that you'll be fine with the current U-Boot.

The images differ by size, date, and O/S. In some cases we were working with a batch of SD cards (of a consistent size), then the supplier provided a new batch that was of a smaller size. At that time we would create a new (usually more up to date) image, for the new smaller cpaacity.

You can put a small image onto a large card (then resize it if you want), but you can't put a large image onto a small card. Well, oughtn't; if the space is used sequentially, it might work. But you shouldn't count on it. So choose an image for your chosen O/S, that is the same size or smaller than the capacity of your SD card.
Logged

djemac

  • Newbie
  • *
  • Posts: 10
Re: Esata Sheeva + bluetooth dongle + kernel update needed + dual boot?
« Reply #9 on: 05 March 2011, 12:56:31 pm »

Thanks a lot!

Boot successful ;D

Linux debian 2.6.32.7 #5 PREEMPT Wed Feb 10 21:09:39 GMT 2010 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.



update in Progress...


As soon as I get the bluetooth working I will tell you!

Ps: my Sd card is a 8G class6. Will the system be quicker with a class 10 card?



Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: Esata Sheeva + bluetooth dongle + kernel update needed + dual boot?
« Reply #10 on: 05 March 2011, 03:30:48 pm »

Ps: my Sd card is a 8G class6. Will the system be quicker with a class 10 card?

In theory, yes. But the speed difference won't make a noticeable difference for all operations.
Logged

djemac

  • Newbie
  • *
  • Posts: 10
Re: Esata Sheeva + bluetooth dongle + kernel update needed + dual boot?
« Reply #11 on: 05 March 2011, 03:57:20 pm »

 ;D ;D ;D ;D

it works!!

[email protected]:~# hcitool scan
Scanning ...
 00:xx:xx:xx:xx:2A SMA002d SMA Djemac xxxxxxxxx SNxxxxxxx

I can see my SMA inverter ;)

Now I will have to install some tools and cron..and tomorrow it should work!

The following site will be updated by the sheevaplug
http://www.pvoutput.org/list.jsp?userid=1371
http://www.pvoutput.org/intraday.jsp?id=1371&sid=1050
« Last Edit: 05 March 2011, 03:59:29 pm by djemac »
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!