abclinuxu.cz AbcLinuxu.cz itbiz.cz ITBiz.cz HDmag.cz HDmag.cz abcprace.cz AbcPráce.cz
AbcLinuxu hledá autory!
Inzerujte na AbcPráce.cz od 950 Kč
Rozšířené hledání
×

    dnes 09:47 | Zajímavý software
    OpenAI a Cisco spolu začali pracovat na AI řešení, které by dokázalo ochránit Linux nejen před zero day zranitelnostmi. Vznikl tedy open source bezpečnostní runtime Shirudo (v japonštině "štít") využívající technologii eBPF. Pomalu tedy nastává éra, kdy AI (zabezpečující nezaplátované systémy) bude bojovat proti AI (hledající a využívající zranitelnosti).
    Max | Komentářů: 6
    dnes 02:12 | Nová verze
    Firma System76 vydala distribuci Pop!_OS 26.04, založenou na Ubuntu 26.04 LTS, ale s vlastním desktopovým prostředím COSMIC.
    ʚĭɞ 🍉 | Komentářů: 0
    dnes 02:07 | Nová verze
    Připravovaná verze 26 instalátoru Agama přinese volitelný server využívající Model Context Protocol (MCP). Tato technologie umožní AI asistentům bezpečně a strukturovaně řídit instalaci operačního systému. … více »
    lkocman | Komentářů: 2
    včera 02:55 | Nová verze
    Vývojové prostředí Qt Creator bylo vydáno ve verzi 21 (seznam změn). Novinky zahrnují pokračující integraci LLM agentů nebo novou implementaci profilování.
    ʚĭɞ 🍉 | Komentářů: 0
    23.11. 11:37 | Komunita
    Jste členem projektu openSUSE? Zkontrolujte si e-mailovou schránku! Právě probíhají volby do openSUSE Board, ve kterých se o tři místa uchází pět kandidátů. … více »
    lkocman | Komentářů: 1
    23.11. 01:12 | Komunita
    Vývojáři Asahi Linuxu, projektu umožňujícího běh Linuxu na počítačích Apple Silicon, oznámili zahájení přechodu svých repozitářů z permisivní licence MIT na GPL-2.0-or-later. Důvodem mají být opakované pokusy využívat jejich práci pro konkurenční a komerční projekty. … více »
    vencour | Komentářů: 19
    22.11. 19:46 | Zajímavý software
    Projekt llama-modchip je sada úprav a nástrojů pro llama.cpp, které mají umožnit spouštět rozsáhlé jazykové modely lokálně na běžných domácích počítačích, a to bez použití grafické karty. … více »
    👻 | Komentářů: 1
    22.11. 19:45 | IT novinky

    Turecko-americká vycházející matematická hvězda Levent Alpöge ze společnosti Anthropic vyvolal pozdvižení oznámením (PDF), že s pomocí superinteligence Claude od Antropicu dokázal vyřešit jeden ze sedmi největších matematických problémů tisíciletí, slavnou Riemannovu hypotézu (prvočísla se mezi čísly objevují zdánlivě nepravidelně, hypotéza tvrdí, že za jejich rozmístěním je určitý řád). Svůj důkaz uvolnil jako open-source

    … více »
    👻 | Komentářů: 22
    20.11. 23:36 | Nová verze
    Student kyberbezpečnosti na SSPŠ vydal verzi 1.0.1 distribuce LuxOS, která stojí na Arch Linuxu a pod povrchem používá Xfce upravené do podoby macOS. … více »
    Luxopes | Komentářů: 11
    20.11. 21:02 | Zajímavý software
    Open source projekt BUI zpřístupňuje legendární, bleskurychlé a optimalizované uživatelské rozhraní 3D editoru Blender coby samostatnou GUI knihovnu pro jazyky Python, Rust, JavaScript a C/C++, případně pro knihovnu Dear ImGui. … více »
    👻 | Komentářů: 3
    Které desktopové prostředí na Linuxu používáte?
     (8%)
     (7%)
     (4%)
     (21%)
     (30%)
     (10%)
     (5%)
     (2%)
     (14%)
     (20%)
    Celkem 3104 hlasů
     Komentářů: 36, poslední 11.11. 22:38
    Rozcestník

    Dotaz: USB Mass Storage - neběží (MP3 Diva)

    Petr Krčmář avatar 16.10.2003 10:04 Petr Krčmář | skóre: 61 | Liberec
    USB Mass Storage - neběží (MP3 Diva)
    Přečteno: 274×
    Ahoj všem, včera jsem se stal šťastným majitelem MP3 přehrávače Diva. Podle návodu tady na ABC jsem přeložil jádro (2.4.22) s podporou SCSI, USB a USB Mass Storage. Mám monolitické jádro (all in one file). Když připojím Divu ke kabelu, v logu se objeví spousta informací (malý výběr):
    
    Oct 15 20:32:24 geralt kernel: host/uhci.c: e000: wakeup_hc
    Oct 15 20:32:24 geralt kernel: host/uhci.c: root-hub INT complete: port1: 80 port2: 93 data: 4
    Oct 15 20:32:24 geralt kernel: hub.c: port 1, portstatus 100, change 0, 12 Mb/s
    Oct 15 20:32:24 geralt kernel: hub.c: port 2, portstatus 101, change 1, 12 Mb/s
    Oct 15 20:32:24 geralt kernel: hub.c: port 2 connection change
    Oct 15 20:32:24 geralt kernel: hub.c: port 2, portstatus 101, change 1, 12 Mb/s
    Oct 15 20:32:25 geralt kernel: hub.c: port 2, portstatus 101, change 0, 12 Mb/s
    Oct 15 20:32:25 geralt kernel: hub.c: port 2, portstatus 103, change 0, 12 Mb/s
    Oct 15 20:32:25 geralt kernel: hub.c: new USB device 00:07.2-2, assigned address 2
    Oct 15 20:32:25 geralt kernel: usb.c: kmalloc IF c7a51840, numif 1
    Oct 15 20:32:25 geralt kernel: usb.c: new device strings: Mfr=0, Product=0, SerialNumber=0
    Oct 15 20:32:25 geralt kernel: usb-storage: act_altsettting is 0
    Oct 15 20:32:25 geralt kernel: usb-storage: id_index calculated to be: 75
    Oct 15 20:32:25 geralt kernel: usb-storage: Array length appears to be: 77
    Oct 15 20:32:25 geralt kernel: usb-storage: USB Mass Storage device detected
    Oct 15 20:32:25 geralt kernel: usb-storage: Endpoints: In: 0xc11d2d60 Out: 0xc11d2d74 Int: 0x00000000 (Period 0)
    Oct 15 20:32:25 geralt kernel: usb-storage: New GUID 357969010000000000000000
    Oct 15 20:32:25 geralt kernel: usb-storage: GetMaxLUN command result is -32, data is 0
    Oct 15 20:32:25 geralt kernel: usb-storage: clearing endpoint halt for pipe 0x80000280
    Oct 15 20:32:30 geralt kernel: usb_control/bulk_msg: timeout
    Oct 15 20:32:30 geralt kernel: usb-storage: Transport: Bulk
    Oct 15 20:32:30 geralt kernel: usb-storage: Protocol: Transparent SCSI
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: scsi1 : SCSI emulation for USB Mass Storage devices
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Command INQUIRY (6 bytes)
    Oct 15 20:32:30 geralt kernel: usb-storage: 12 00 00 00 ff 00 00 00 78 01 00 00
    Oct 15 20:32:30 geralt kernel: usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 LUN 0 L 255 F 128 CL 6
    Oct 15 20:32:30 geralt kernel: usb-storage: Bulk command transfer result=0
    Oct 15 20:32:30 geralt kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
    Oct 15 20:32:30 geralt kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 255/255
    Oct 15 20:32:30 geralt kernel: usb-storage: usb_stor_transfer_partial(): transfer complete
    Oct 15 20:32:30 geralt kernel: usb-storage: Bulk data transfer result 0x0
    Oct 15 20:32:30 geralt kernel: usb-storage: Attempting to get CSW...
    Oct 15 20:32:30 geralt kernel: usb-storage: Bulk status result = 0
    Oct 15 20:32:30 geralt kernel: usb-storage: Bulk status Sig 0x53425355 T 0x1 R 0 Stat 0x0
    Oct 15 20:32:30 geralt kernel: usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0
    Oct 15 20:32:30 geralt kernel: usb-storage: scsi cmd done, result=0x0
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel:   Vendor: DIVA USB  Model: Media Reader      Rev: 2.22
    Oct 15 20:32:30 geralt kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Bad LUN (0/1)
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Bad target number (1/0)
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Bad target number (2/0)
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Bad target number (3/0)
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Bad target number (4/0)
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Bad target number (5/0)
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Bad target number (6/0)
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: usb-storage: queuecommand() called
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread awakened.
    Oct 15 20:32:30 geralt kernel: usb-storage: Bad target number (7/0)
    Oct 15 20:32:30 geralt kernel: usb-storage: *** thread sleeping.
    Oct 15 20:32:30 geralt kernel: WARNING: USB Mass Storage data integrity not assured
    Oct 15 20:32:30 geralt kernel: USB Mass Storage device found at 2
    Oct 15 20:32:30 geralt kernel: usb.c: usb-storage driver claimed interface c7a51840 
    Všechno vypadá OK, ale při pokusu o
    mount /dev/sda1 /mnt/diva

    to zahlásí: "/dev/sda1 není platné blokové zařízení."

    lsusb nic nevypíše (to je divné), ale /proc/scsi/scsi obsahuje

    
    Attached devices: 
    Host: scsi1 Channel: 00 Id: 00 Lun: 00
      Vendor: DIVA USB Model: Media Reader     Rev: 2.22
      Type:   Direct-Access                    ANSI SCSI revision: 02 
    
    a /proc/scsti/usb-storage-0 obsahuje:
    
      Host scsi1: usb-storage
           Vendor: Unknown
          Product: Unknown
    Serial Number: None
         Protocol: Transparent SCSI
        Transport: Bulk
             GUID: 357969010000000000000000
         Attached: Yes
    
    
    Doufám, že délka tohoto příspěvku vás neodradí od nějakého nápadu. Můžu (mailem, sem by to byl masochismus) dodat kompletní logy a .config od překladu jádra. Díky za pomoc. Petr
    Amatéři postavili Noemovu archu, profesionálové Titanic ...

    Odpovědi

    16.10.2003 10:21 Aloner | skóre: 24 | blog: Aloner | Praha
    Rozbalit Rozbalit vše USB Mass Storage - neběží (MP3 Diva)
    Moznosti proc to nechodi jsou tyto:

    1. opomenuti zaskrtnuti nektere volby v jadru okolo USB, MassStorage,Filesystemy.
    2. zkuste mountovat zarizeni se specifikaci filesystemu, tj. mount -t vfat /dev/sda1 /mnt/diva
    Petr Krčmář avatar 16.10.2003 11:07 Petr Krčmář | skóre: 61 | Liberec
    Rozbalit Rozbalit vše USB Mass Storage - neběží (MP3 Diva)
    Diky za odpoved. 1) Jake fs tam ma byt? vfat? Ten tam je.

    2) Zajimave, muzu se pokusit. Ale nevim, jestli by to v takovem pripade hlasilo "Neplatne blokove zarizeni." Spis "nesnamy SS" nebo tak. Petr

    Amatéři postavili Noemovu archu, profesionálové Titanic ...
    16.10.2003 11:09 Michal Čihař | skóre: 61 | blog: Bláboly | Praha
    Rozbalit Rozbalit vše USB Mass Storage - neběží (MP3 Diva)
    Pošli .config jádra, bez toho se těžko něco pozná. Stačí věci kolem USB a SCSI.
    16.10.2003 11:16 Michal Čihař | skóre: 61 | blog: Bláboly | Praha
    Rozbalit Rozbalit vše USB Mass Storage - neběží (MP3 Diva)
    Pak by taky mohl být problém v monolitickém jádru, některé věci jinak než moduly nefungují :-(
    Petr Krčmář avatar 16.10.2003 11:57 Petr Krčmář | skóre: 61 | Liberec
    Rozbalit Rozbalit vše USB Mass Storage - neběží (MP3 Diva)
    Napíšu to sem kvůli archívu: Nezapnul jsem podporu SCSI disků. Měl jsem zapnutou jenom obecnou podporu SCSI (jako sběrnice), ale ne podporu disků (jako zařízení). Diva se totiž tváří jako SCSI disk. Petr
    Amatéři postavili Noemovu archu, profesionálové Titanic ...
    16.10.2003 18:13 David Jež | skóre: 42 | blog: -djz | Brno
    Rozbalit Rozbalit vše USB Mass Storage - neběží (MP3 Diva)
    Zdravim,

    Jen bych doplnil k tem spoustam hlasek - mas zaskrtnutou volbu usb mass storage verbose debuging, coz opravdu pise blbstva pri kazdem cteni/zapisu, generuje to opravdu hodne hlasek, objem logu se pak skoro rovna objemu prenesenych dat :-)
    Pokud nejsi jaderny vyvojar a funguje to uz OK, a zadne jaderne katastrofy se neobavas tak to s klidem vypni, ulehcis svemu syslogu :-)

    bye,
    -djz

    "Yield to temptation; it may not pass your way again." -- R. A. Heinlein
    Valoun avatar 16.10.2003 15:16 Valoun | skóre: 30 | blog: Psavec | Středočeský kraj
    Rozbalit Rozbalit vše USB Mass Storage - data integrity
    Kdyz uz jsme u toho. Mam uz DIVU nejaky ten cas a vse bezi bez nejmensich problemu. USB MASS Storage mam nakonfigurovane korektne, funguji mi na tom i digifotaky atd. Problem je v hlasce: WARNING: USB Mass Storage data integrity not assured Ono to varovani je opravdu na miste. Jakakoli operace, kterou na DIVE provedu, se realne spusti az pozdeji (nejpozdeji pri umount /diva). Pokud vsak dam nejake soubory smazat, a po chvili se snazim nahrat jine, muze se stat, ze tyto operace zkoliduji. Vysledkem jsou zamichane soubory - u mp3ojek se to projevuje jako "zvukove puzzle". jak mam zajistit, aby k tomu nedochazelo? Prozatim to resim tak ze po kazde vetsi operaci dam umount -> mount, abych mel jistotu, ze je vse zapsano.
    16.10.2003 15:25 Peter Golis | skóre: 65 | blog: Bežné záležitosti | Bratislava
    Rozbalit Rozbalit vše USB Mass Storage - data integrity
    skus sync
    16.10.2003 18:08 Michal Čihař | skóre: 61 | blog: Bláboly | Praha
    Rozbalit Rozbalit vše USB Mass Storage - data integrity
    Mountovat to synchronne:
    /dev/sda1 /mnt/diva vfat defaults,noauto,user,showexec,sync 0 0
    
    pak se zapisuje vse okamzite. Nefunguje to se starsimi kernely, kde vfat neumi pracovat synchronne.

    Založit nové vlákno • Nahoru

    Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

    ISSN 1214-1267   www.czech-server.cz
    © 1999-2015 Nitemedia s. r. o. Všechna práva vyhrazena.