Let's code a Linux Driver - 0.5: Setup your Raspberry Pi to follow this tutorial

  Рет қаралды 5,185

Johannes 4GNU_Linux

Johannes 4GNU_Linux

Күн бұрын

Пікірлер: 22
@n1kita.shibanov
@n1kita.shibanov 2 жыл бұрын
Man, you are crazy (at good side). I'm newbee in Linux low-level dev, but you make me really interested in it. Big respect to you!
@marcofe82
@marcofe82 2 жыл бұрын
I'm really find your tutorial so many interesting! Thank you so much!
@etatos9548
@etatos9548 17 сағат бұрын
Hi thank u for this tutorial. Can You Make Video For Porting Driver "ADV7280-M" Analog Video To Mipi-Csi On Raspberry pi?
@EnkoVlog
@EnkoVlog 2 жыл бұрын
Sorry for off topic, do you have any plan to create video with Linux device tree explanations? For instance write custom file, add own device, bulid and load.
@johannes4gnu_linux96
@johannes4gnu_linux96 2 жыл бұрын
Yes, I have plans for this, but time is always the limiting factor :/ So, it is on my list, but it will take some time.
@iemaeema
@iemaeema Жыл бұрын
Hi Johannes. I have run "sudo apt update" and "sudo apt upgrade". After that, "uname -r" shows version is 6.1.21-v8+. I did "sudo reboot" too. However, in the folder /lib/modules/6.1.21-v8+, there is still no folder "build". Any suggestions? to generate the "build" folder in a straight way? Thanks. :D
@johannes4gnu_linux96
@johannes4gnu_linux96 Жыл бұрын
But you have installed the kernel headers with 'sudo apt install raspberrypi-kernel-headers', right?
@MrTrolChannel
@MrTrolChannel Жыл бұрын
I have the same issue
@MrTrolChannel
@MrTrolChannel Жыл бұрын
but what has worked for was that I have installed the 64-bit version of RaspbianOS on my RPI4 model B. I was previously running 32-bit version which should in theory work just fine, but make sure you are running 64-bit Raspbian OS on your RPI4 (if you actually are developing for RPI4 and using a native compiler like Johannes is). Another idea that comes to mind is to work on your host machine and cross-compile for your target but then you won't be able to follow this tutorial so easily.
@tigerfan5760
@tigerfan5760 Жыл бұрын
i have same issue .... did u have solution? help meeeee . Tks u first
@MrTrolChannel
@MrTrolChannel Жыл бұрын
@@tigerfan5760 which board are you using? And which version of Raspbian OS do you have on the image - 32-bit or 64-bit?
@EnkoVlog
@EnkoVlog 2 жыл бұрын
What the main reason to compile a kernel module on the target machine? Why don't use cross compilation on much power machine? Personally, I use buildroot to create custom linux and build linux kernel in separate machine. ssh/scp/nfs allow to send module into target (Orange Pi). If module does't require hardware, I use QEMU to test it before run on the target . P.S. Thanks for your work, ioctl was extremely helpful for me!
@johannes4gnu_linux96
@johannes4gnu_linux96 2 жыл бұрын
Thank you. Well, the main reason, why I am compiling directly on the target is an educational one. I think it is easier for beginners to compile on the target, compared to setting up everything for cross compilation. Luckely the Raspberry Pi 3 is powerful enough for fast compilations. But I totally agree with you, cross compilation would be more professional. Maybe I will do a video about cross compilation someday.
@tongwang8272
@tongwang8272 Жыл бұрын
i try on pi4b but it shows many errors make -C /lib/modules/5.4.72-v7l+/build M= modules make[1]: Entering directory '/usr/src/linux-headers-5.4.72-v7l+' make[2]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/unistd-common.h'. Stop. make[1]: *** [arch/arm/Makefile:325: archheaders] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.4.72-v7l+' make: *** [Makefile:4: all] Error 2
@johannes4gnu_linux96
@johannes4gnu_linux96 Жыл бұрын
I also noticed Something similar. I Run a 32bit on a rpi4 and the Kernel Headers where only installed for some Kernels, but mit dir the one i was using. Have you tried installing a 64bit Kernel for aarch64? There it should Work.
@tongwang8272
@tongwang8272 Жыл бұрын
@@johannes4gnu_linux96 i have no idea how to install a 64bit kernel the only thing i can is change the img of raspberry pi 4b, today i have time i think i can try
@johannes4gnu_linux96
@johannes4gnu_linux96 Жыл бұрын
@@tongwang8272 yes, Just Download the aarch64 Image and burn IT to an SD Card, then IT should Work.
@tongwang8272
@tongwang8272 Жыл бұрын
@@johannes4gnu_linux96 it doesnt work, here is the error message: make -C /lib/modules/6.1.21-v8+/build M= modules make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+' make[2]: *** No rule to make target 'arch/arm64/tools/gen-cpucaps.awk', needed by 'arch/arm64/include/generated/asm/cpucaps.h'. Stop. make[1]: *** [arch/arm64/Makefile:178: archprepare] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+' make: *** [Makefile:4: all] Error 2 maybe i did not config the right arm64 tool chain
@tongwang8272
@tongwang8272 Жыл бұрын
@@johannes4gnu_linux96 btw you proogram can run pretty well on jetson nano, maybe becasue it is actually a ubuntu system.
Let's code a Linux Driver - 15: Sending a signal from Kernel to Userspace
14:52
Use your iPad as your Raspberry Pi Monitor - a PiPAD!
7:34
Learning and Technology with Frank
Рет қаралды 60 М.
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 27 МЛН
Let's code a Linux Driver -  24: Serial (UART) Driver
20:19
Johannes 4GNU_Linux
Рет қаралды 15 М.
rust runs on EVERYTHING (no operating system, just Rust)
18:10
Low Level
Рет қаралды 362 М.
Let's code a Linux Driver - 2: Device Numbers and Files
16:43
Johannes 4GNU_Linux
Рет қаралды 45 М.
Let's code a Linux Driver - 11: Using GPIO Interrupts in a Linux Kernel Module
13:41
How Do Linux Kernel Drivers Work? - Learning Resource
17:02
LiveOverflow
Рет қаралды 560 М.
Let's code a Linux Driver - 30 DMA (Direct Memory Access) Memcopy
20:19
Johannes 4GNU_Linux
Рет қаралды 8 М.
Let's code a Linux Driver - 13: IOCtl in a Linux Kernel Module
21:03
Johannes 4GNU_Linux
Рет қаралды 18 М.
Yocto Project: Configure Linux Kernel Raspberry Pi using menuconfig
8:27