beagleboneblack

Study device driver source files?

北城余情 提交于 2021-02-06 09:34:04
问题 I want to study the source files of some of the device drivers that are installed and loaded on either a raspberry pi(raspian), beaglebone(debian) or a my laptop(ubuntu). My aim is to learn how to properly implement my own modules by studying the source files of some drivers that actually works. I am particularly interested in drivers that communicates with actual hardware (USB, I2C, SPI, UART etc). Can someone tell me how to find these sources? are they available in some particular folder i

how to make i2c-core as module

久未见 提交于 2020-08-10 19:20:21
问题 Hello I have beagleboneblack board and have kernel source code I want to make my i2c work as a module so for that, I have done some changes in .config file # # I2C support # CONFIG_I2C=m and cross compile kernel make dtbs zImage -j8 CROSS_COMPILE=arm-linux-gnueabihf- But after compile successfully, CONFIG_I2C change from 'm' to 'y' how to solve this problem? 来源: https://stackoverflow.com/questions/62752609/how-to-make-i2c-core-as-module

usb Mass Storage driver for am335x

让人想犯罪 __ 提交于 2020-07-22 06:07:31
问题 i want to loard a usb drive storage module so i make when i load usb mass storage module the usb drive detect in /media or /dev/sda1 I have one customized bord using an am335x processor and this board has one USB port(for USB drive connector) and one micro USB port. and also have kernel source code and version is 4.4.16 now i follow the command to compile kernel source code make distclean CROSS_COMPILE=arm-linux-gnueabihf- make am335x_fujitel_defconfig CROSS_COMPILE=arm-linux-gnueabihf- note=

usb Mass Storage driver for am335x

你离开我真会死。 提交于 2020-07-22 06:06:30
问题 i want to loard a usb drive storage module so i make when i load usb mass storage module the usb drive detect in /media or /dev/sda1 I have one customized bord using an am335x processor and this board has one USB port(for USB drive connector) and one micro USB port. and also have kernel source code and version is 4.4.16 now i follow the command to compile kernel source code make distclean CROSS_COMPILE=arm-linux-gnueabihf- make am335x_fujitel_defconfig CROSS_COMPILE=arm-linux-gnueabihf- note=

BeagleBone Black UART software FIFO size?

守給你的承諾、 提交于 2020-02-04 07:01:59
问题 I'm developing a custom application on the BeagleBone Black that has to use the UART capabilities of the device via the Debian Linux that runs on the BBB, for reading big chunks of data. For reading from the UART I'm opening one of the /dev/ttyO0, /dev/ttyO1, etc. devices with the open() function in nonblocking mode. And then I'm trying to read from this port with the read(2) function: ssize_t read(int fd, void *buf, size_t count); I would like to know what is the biggest reasonable number