. Making the Linux Kernel better. Wolfram Sang , FOSDEM 14

Similar documents
DMA safety in buffers for Linux Kernel device drivers

Reliable Linux Wireless - Techniques for Debugging Wireless Module Integrations STEVE DEROSIER / CAL-SIERRA CONSULTING

The Shiny New I2C Slave Framework

. Compressing Strings of the Kernel. Wolfram Sang , LinuxCon14

Member Mobile Deposit

Participating in the kernel development process

Sony s Open Devices Project. Goals Achievements. What went right? What went wrong? Lessons learned

Galaxy Note Root Guide. by Max Lee

Contribute To Linux Mainline

How to fix Usually Slightly Broken devices and drivers?

Implementation of TARGET_MODE applications

PORTING GNU/LINUX TO Xbox Milosch Meriac -

Contents. Page 3: Uploading Contacts. Page 5: Sending a Message. Page 7: Analysing your Message. Page 9: Unsubscribe a Contact. Page 11: Add a Forward

HCA Tech Note 301: Using the CM15 with HCA and Windows 10

Debugging Usually Slightly Broken Devices and Drivers

CS354 gdb Tutorial Written by Chris Feilbach

Pico Computing. M 501 / M 503 Getting Started Guide. March 7, Overview 1. 2 System Requirements 1. 3 Ubuntu Linux Configuration 2

Artist guide ontario photographer wild

Kernel driver maintenance : Upstream vs. Industry

Data Reduction Helpdesk First Responder Guidelines

Embedded Linux Conference EU Complex Cameras on Linux. Mauro Carvalho Chehab. Oct, SRBR Samsung R&D Institute Brazil

ilinc 11 Using Integrated Audio with ilinc

Lesson 4: Bug Reporting and STLC

ATTO UL4D & UL5D Troubleshooting Guide

How to update Windows and Office offline

FREQUENTLY ASKED QUESTIONS ABOUT CLASS LOGISTICS AND TELECONFERENCE TECHNOLOGY

Raspberry PI 'How-To' Series

Is there any plug-in to work with Lightworks that would do motion stabilization in LW?

PYTHON YEAR 10 RESOURCE. Practical 01: Printing to the Shell KS3. Integrated Development Environment

Flash Player Update Guide Windows 7 64 Bit Google Chrome

Linux in the connected car platform

Lesson 1A - First Java Program HELLO WORLD With DEBUGGING examples. By John B. Owen All rights reserved 2011, revised 2015

Assignment 3, Due October 4

Storage Systems Dr. K. Gopinath Department of Computer Science and Engineering Indian Institute of Science, Bangalore

A Survivor's Guide to Contributing to the Linux Kernel

Sim_PSK was tested with some versions of UBUNTU until On an old PCs, it s running with a light Linux version, such as Xubuntu or Lubuntu.

Binary Exploitation Lab

How to skin Rainlendar 2 Posted by he_the_great /11/01 16:03

Hey there, I m (name) and today I m gonna talk to you about rate of change and slope.

Manually Install Windows Updates Xp From Usb

Use Error Code 43 Nvidia Windows 7 Graphics

Close Your File Template

CS197U: A Hands on Introduction to Unix

Connecting the uvcvideo driver of the PHYTEC USB-CAM-104H

Apple has just released the long-awaited ios 8.3 update with support for new Siri ipad Air, ipad

CSC209. Software Tools and Systems Programming.

1 Instruction. 1.1 Summary. 1.2 Features

Why You Should Not Use Arch

Manually Repair Windows 7 Update Service Not

Blackfin Online Learning & Development

Lesson: Collaboration

University co-operation with Maemo SW FRUCT seminar Tampere Nokia V1-Filename.ppt / YYYY-MM-DD / Initials

How To Disable Driver Windows Xp Activation Message In Win

P2P. 1 Introduction. 2 Napster. Alex S. 2.1 Client/Server. 2.2 Problems

============================================================================

Frequently Asked Questions about PowerSchool

Linux on Sony VAIO mini-howto

Engineering Robust Server Software

Ultimate Spreading Guide

Rootless Containers with runc. Aleksa Sarai Software Engineer

Project 1 Balanced binary

Manual Of Ios 7.1 Beta 5 Iphone 4 Performance

Registering Your D1 with the System (Windows 2000)

USB for Embedded Device ASHWINI MISHRA

Use Error Code 43 Windows 7 Usb Ports Not Working

FOSS Outreach Program for Women (OPW) Bringing Women into the Linux Kernel

Choosing Optional Modules in SAMIS. User Guide for Year 1 Undergraduate and Postgraduate Students

Error 3194 in itunes comes, when you are updating or downgrading your iphone and Whenever you are restoring or updating iphone, ipad and ipod touch.

IoT in 2016: a serious overview of IoT today and a technical preview of HoneyVNC. By Yonathan Klijnsma

Application Note AN-225

Apple iphone Battery Life Tweak

AND BlackBerry JUL13 ISBN

Adobe Security Survey

Ecard wizard greeting card software review guide

Hostap, Openap, Prism 2 pcmcia cards, 1 USRobotics 2450 Access Point, 1 Centennial SRAM 2MB 5 volts pcmcia card, and a sleepless mind.

============================================================================

Azon Master Class. By Ryan Stevenson Guidebook #4 WordPress Installation & Setup

Table of Contents. End User Training Participant Guide. Polycom VVX 300 and 400 Series Phones

TABLE OF CONTENTS. Web Manual 08.01

Download Theatre brook discography

OPEN THE HOTLINE CLIENT

can get it working. charging motorola razr via usb HDC- C WINDOWS NtUninstallKB Changing of an application or changing of

CLOSE ENCOUNTERS OF THE UPSTREAM RESOURCE

TCP/IP Clearly Explained, Fourth Edition (The Morgan Kaufmann Series In Networking) Ebooks Free

Longshine Technologie Europe GmbH

Sucuri Webinar Q&A HOW TO IDENTIFY AND FIX A HACKED WORDPRESS WEBSITE. Ben Martin - Remediation Team Lead

Using the CM15 with HCA and Windows 7

Unable To Remove Printer Driver Currently In

Driver generique cle usb windows 98. Free Download a-w- c users Guest AppData Local d3d9caps. All are gone.

Perspectives on Grading Systems

E28 FALL 2016 ZUCKER PROJECT 1. Project 1: TurtleBot 2 Programming Basics

AutoForm plus R6.0.3 Release Notes

INFS 214: Introduction to Computing

Working with Siriusware Technical Support

DrupalGovcon July 20th, 2016

minit Felix von Leitner September 2004 minit

ARM: Allwinner sunxi SoC's and the community behind it

The Instant Collaborate kit

Manufacturing Tools in the UEFI Secure Boot Environment

Watson Conversation Cheat Sheet

Transcription:

Making the Linux Kernel better (without coding) Wolfram Sang Consultant 122014, FOSDEM 14 Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 1 / 20

About me Linux Kernel consultant & hacker (mostly embedded & driver frameworks) I2C maintainer like to share knowledge and enable people to get active like muted devices, especially during talks Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 2 / 20

How it all starts Unable to open device Please make sure the camera is connected and that the correct driver is installed Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 3 / 20

Obtain the ID lsusb lspci -nn Note Existing entry does not mean existing driver and vice versa Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 4 / 20

Submit the ID This is crowdsourcing! http://wwwlinux-usborg/usb-idshtml http://pciidssourceforgenet/ Easily done, yet really useful for developers Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 5 / 20

Get more info, but check twice (obviously) search for the ID/name check forums, bug trackers, HW databases watch out, lots of outdated info out there Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 6 / 20

Check the Windows-Drivers INF-Files Ṭext files describing the driver to be installed To obtain it, you might need: unzip unshield, cabextract WINE Look here then: ~/wine/drive_c/windows/inf ~/wine/drive_c/windows/profiles/<user>/temp Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 7 / 20

Check the Windows-Drivers II If the driver is generic, it will usually contain multiple IDs the driver will be responsible for name of the chipset used internally some other relevant info Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 8 / 20

Example (another cam) %USB\VID_0AC8&PID_0302DeviceDesc%= USB\VID_03F0&PID_1B07 Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 9 / 20

Example (this cam) USB\VID_0c45&PID_624c ; SN9C201 + MI1320 USB\VID_0458&PID_7045 ; SN9C201 + MI1320 for KYE Look 1320 V2 Find the corresponding driver Use the Linux Kernel Driver Database Search for the new ID together with the term lkddb Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 10 / 20

Tweak the driver $ su # modprobe gspca_sn9c20x # cd /sys/bus/usb/drivers/gspca_sn9c20x/ # echo 0458 7045 > new_id 1 1 So useful, yet so unknown Available for USB, PCI/Cardbus, and PCMCIA Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 11 / 20

Showtime! Let s try that! Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 12 / 20

Data is missing generic drivers often need parameter eg sensor type, bus addresses, various flags wrong driver data did neither kill computer nor camera :) up to 313, driver specific data couldn t be passed 2 since 314, it is possible to pass a reference id 2 for USB, that is Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 13 / 20

Trying again # echo 0458 7045 > remove_id # echo 0458 7045 0 0c45 624c > new_id Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 14 / 20

Showtime again! Let s try that! Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 15 / 20

Write a mail Hello, I have $camera and could get it to run with Linux 314 by echoing its usb id 0458 7045 and the reference id 0c45 624c to the new_id-file of $driver 3 I am not familiar with creating patches, so I d be happy if someone could pick this up Regards, 3 maybe copy the echo line from above Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 16 / 20

Whom to send/cc it to? check modinfo <module_name> check the head of the source file LKDDB has a link if sources not present scripts/get_maintainerpl -f <src_file> if kernel sources present when in doubt: linux-kernel@vgerkernelorg (LKML) and me, of course: wsa@the-dreamsde Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 17 / 20

The gain cam works for you cam will work for all others you should get credit when support is added: Reported-by: Your name <your_name@providerorg> Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 18 / 20

If you are still interested Next step: Create a patch Read: Documentation/development-process/* Read: Documentation/SubmittingPatches If you like hacking LED doesn t seem to work maybe add V4L control for autoexposure Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 19 / 20

The End Thank you for your attention! Questions? Comments? right now anytime at this conference wsa@the-dreamsde Wolfram Sang (wsa@the-dreamsde) Making the Linux Kernel better 122014, FOSDEM 14 20 / 20