c - Driver Templates, Minimum Kernel Distro., drivers community, driver for Microcontroller? -


i post-newbie embedded linux driver development, have developed character, uart & simple usb drivers, , have worked sbc (raspberry pi 2). main learning resources are: essential linux device drivers, embedded linux system design & development, youtube tutorials , ldd3. because of lack of real life driver experience, have questions share:

  1. templates: there sort of driver templates speeding coding process e.g. have regularly used structures & functions being modified & customized specific drivers.

  2. what’s suitable minimum distribution: doing either building kernel image using buildroot inserting developed usb driver or inserting developed usb driver ubuntu. , proper testing have unload default usb driver (usb_storage); otherwise can’t test module. so, question regarding real-life development & how-to minimum kernel has no drivers, & how-to include module (to part of it) while building buildroot?

  3. what embedded linux driver development community suggest detailed q&a? i.e. in future if want ask low level detail such x structure, or getting error while using y function .... there specialized community? because found linux in general, kernel hacking, or don’t have experiences.

  4. what missed link in chain? developing applications microcontrollers relies on datasheet, user guide, registers, c, etc. developing drivers embedded linux relies on c, linux api, subsystems, etc. in learning resources, never found relationship between both. so, there separated? or there missed link between them??

e.g. i2c sensor http://www.robot-electronics.co.uk/htm/srf10tech.htm have manipulate (send hexa & receive values registers). if imagine want develop i2c driver it, sure need same within driver, explained in essential linux device drivers (page#278). main point behind i2c core hides many complexes & simplifies driver development process.

however, expect case in real life not sensor, instead might microcontroller or complicated device. so, how manipulate registers & peripherals of microcontroller? also, didn’t find tutorial such case!


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -