Autor Tópico: Ubuntu 8.10 não monta cartão de memória do celular  (Lida 3611 vezes)

Offline merorafael

  • Usuário Ubuntu
  • *
  • Mensagens: 236
  • Ubuntu 12.04 / Fedora 17
    • Ver perfil
    • Mero Projects
Ubuntu 8.10 não monta cartão de memória do celular
« Online: 22 de Janeiro de 2009, 00:49 »
Olá novamente pessoal,
Estou tendo um pequeno probleminha, o Ubuntu 8.10 não está montando o acesso direto ao cartão de memória do meu Nokia 5200, no caso, a opção "Armazenamento de Dados" na conexão USB Celular/PC, o celular fica exibindo "transferindo dados" e desliga. Outros acessos indiretos funcionam tranqüilamente, "Impressão de Dados" e "Modo Nokia".
PS: "Impressão de Dados" apenas exibe o que tem dentro do cartão de memória.
« Última modificação: 22 de Janeiro de 2009, 00:54 por Mausai »
Projetos: Mero Projects - http://www.meroprojects.com/

Offline Hqxriven

  • Usuário Ubuntu
  • *
  • Mensagens: 1.456
    • Ver perfil
Re: Ubuntu 8.10 não monta cartão de memória do celular
« Resposta #1 Online: 22 de Janeiro de 2009, 01:06 »
Citar
Nokia 5200

Pelo que eu saiba o suporte oficial a ele veio no kernel 2.6.28.1.

Conforme está no changelog...

commit c95f436126f6b5fb369d8f762f4d3c8c40621184
Author: Paulo Afonso Graner Fessel <pfessel@gmail.com>
Date:   Fri Dec 12 12:05:18 2008 +0100

    USB: storage: recognizing and enabling Nokia 5200 cell phoes
   
    commit b8d23491f127aa0cd1863bd6cb58e771c558b762 upstream.
   
    This patch corrects the issue when one connects a Nokia 5200 cell
    phone in data storage mode. If one uses an unpatched unusual_devs.h,
    the following messages appear on /var/log/messages:
   
    Dec 12 01:03:24 alberich kernel: usb 4-2: new full speed USB device
    using uhci_hcd and address 3
    Dec 12 01:03:25 alberich kernel: usb 4-2: configuration #1 chosen from 1 choice
    Dec 12 01:03:25 alberich kernel: scsi10 : SCSI emulation for USB Mass
    Storage devices
    Dec 12 01:03:25 alberich kernel: usb 4-2: New USB device found,
    idVendor=0421, idProduct=04bd
    Dec 12 01:03:25 alberich kernel: usb 4-2: New USB device strings:
    Mfr=1, Product=2, SerialNumber=3
    Dec 12 01:03:25 alberich kernel: usb 4-2: Product: Nokia 5200
    Dec 12 01:03:25 alberich kernel: usb 4-2: Manufacturer: Nokia
    Dec 12 01:03:25 alberich kernel: usb 4-2: SerialNumber: 353930018354523
    Dec 12 01:03:25 alberich kernel: usbcore: registered new interface driver ub
    Dec 12 01:03:30 alberich kernel: scsi 10:0:0:0: Direct-Access
    Nokia    Nokia 5200       0000 PQ: 0 AN
    SI: 4
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] 3985409 512-byte
    hardware sectors (2041 MB)
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Write Protect is off
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Assuming drive
    cache: write through
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] 3985409 512-byte
    hardware sectors (2041 MB)
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Write Protect is off
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Assuming drive
    cache: write through
    Dec 12 01:03:30 alberich kernel:  sdg: sdg1
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Attached SCSI removable disk
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: Attached scsi generic sg9 type 0
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Sense Key : No
    Sense [current]
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Add. Sense: No
    additional sense information
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Sense Key : No
    Sense [current]
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Add. Sense: No
    additional sense information
    Dec 12 01:03:30 alberich kernel: sd 10:0:0:0: [sdg] Sense Key : No
    Sense [current]
   
    (...)
   
    The MicroSD card in the phone remains inaccessible and finally the
    cell phone turns itself off. The patch solves this problem and makes
    the cell phone fully accessible:
   
    [root@alberich kernel-linus-2.6.27.5-1mdv]# df -h
    Sist. Arq.            Tam   Usad Disp  Uso% Montado em
    /dev/sda6              31G  5,2G   26G  17% /
    /dev/sda1              92M   27M   61M  31% /boot
    /dev/mapper/homevg-homelv  240G  237G  3,5G  99% /home
    /dev/sda3              21G  7,9G   13G  40% /mnt/windows
    /dev/sdg1             2,0G  287M  1,7G  15% /media/disk <--------
   
    I've found necessary to use the FL_US_CAPACITY_FIX switch, as without
    it the cell phone is recognized but it went berserk when performing
    low-level functions on it (a fdisk -l /dev/uba for example).
   
    lsusb -v output follows:
   
    Bus 004 Device 004: ID 0421:04bd Nokia Mobile Phones
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0        64
      idVendor           0x0421 Nokia Mobile Phones
      idProduct          0x04bd
      bcdDevice            6.03
      iManufacturer           1 Nokia
      iProduct                2 Nokia 5200
      iSerial                 3 353930018354523
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           32
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0xc0
          Self Powered
        MaxPower              100mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass         8 Mass Storage
          bInterfaceSubClass      6 SCSI
          bInterfaceProtocol     80 Bulk (Zip)
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0040  1x 64 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x01  EP 1 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0040  1x 64 bytes
            bInterval               0
    Device Status:     0x0001
      Self Powered
   
    Signed-off-by: Paulo Afonso Graner Fessel <pfessel@gmail.com>
    Signed-off-by: Phil Dibowitz <phil@ipom.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No 2.6.27 não há suporte ao Nokia 5200 sem o uso de patchs

O patch para a série 27 é esse:

diff -p -up linux-2.6.27/drivers/usb/storage/unusual_devs.h.orig linux-2.6.27/drivers/usb/storage/unusual_devs.h
--- linux-2.6.27/drivers/usb/storage/unusual_devs.h.orig 2008-11-15 16:13:47.000000000 -0200
+++ linux-2.6.27/drivers/usb/storage/unusual_devs.h 2008-11-15 16:14:24.000000000 -0200
@@ -239,6 +239,13 @@ UNUSUAL_DEV( 0x0421, 0x04b9, 0x0551, 0x
US_SC_DEVICE, US_PR_DEVICE, NULL,
US_FL_FIX_CAPACITY ),

+/* Reported by Paulo Fessel <pfessel@gmail.com> */
+UNUSUAL_DEV( 0x0421, 0x04bd, 0x0000, 0x0603,
+ "Nokia",
+ "5200",
+ US_SC_DEVICE, US_PR_DEVICE, NULL,
+ US_FL_FIX_CAPACITY ),
+
/* Reported by Richard Nauber <RichardNauber@web.de> */
UNUSUAL_DEV( 0x0421, 0x04fa, 0x0601, 0x0660,
"Nokia",

É aguardar pelo suporte do Ubuntu 8.10, isso é, se ele já não incluiu em um kernel recente... (base 27)

Fui!!
Sem distro Linux fixa - Kernel Omnislash
Meu objetivo nesse fórum é ajudar. Sou um mero humano mas desejo sempre aprender e melhorar em tudo o que faço em minha vida. Então, por favor, quando eu postar me notifique depois

Offline merorafael

  • Usuário Ubuntu
  • *
  • Mensagens: 236
  • Ubuntu 12.04 / Fedora 17
    • Ver perfil
    • Mero Projects
Re: Ubuntu 8.10 não monta cartão de memória do celular
« Resposta #2 Online: 24 de Janeiro de 2009, 14:57 »
Engraçado é que no ubuntu 8.04 funciona perfeitamente.
Projetos: Mero Projects - http://www.meroprojects.com/

Offline dudu_ubuntun

  • Usuário Ubuntu
  • *
  • Mensagens: 507
    • Ver perfil
    • O Tempo do Mundo
Re: Ubuntu 8.10 não monta cartão de memória do celular
« Resposta #3 Online: 24 de Janeiro de 2009, 15:54 »
mesmo problema...

to usando o eeeubuntu e  o kernel é

eduardo@eduardo-eeepc:~$ uname -r
2.6.27-8-eeepc


tem como adc esse patch?



Offline Hqxriven

  • Usuário Ubuntu
  • *
  • Mensagens: 1.456
    • Ver perfil
Re: Ubuntu 8.10 não monta cartão de memória do celular
« Resposta #4 Online: 25 de Janeiro de 2009, 00:23 »
Citar
Engraçado é que no ubuntu 8.04 funciona perfeitamente.

Citar
Pelo que eu saiba o suporte oficial a ele veio no kernel 2.6.28.1.

Realmente o suporte oficial só veio agora mesmo nessa versão 2.6.28.1. Nas anteriores era com patch conforme coloquei o patch utilizado pelo Mandriva que serve para a versão 2.6.27.

Possivelmente o patch não foi colocado no Ubuntu 8.10...

Mas se vc compilar um kernel e acrescentar ele aí ele vai suportar!!
Sem distro Linux fixa - Kernel Omnislash
Meu objetivo nesse fórum é ajudar. Sou um mero humano mas desejo sempre aprender e melhorar em tudo o que faço em minha vida. Então, por favor, quando eu postar me notifique depois