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!
@marcofe822 жыл бұрын
I'm really find your tutorial so many interesting! Thank you so much!
@etatos954817 сағат бұрын
Hi thank u for this tutorial. Can You Make Video For Porting Driver "ADV7280-M" Analog Video To Mipi-Csi On Raspberry pi?
@EnkoVlog2 жыл бұрын
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_linux962 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
But you have installed the kernel headers with 'sudo apt install raspberrypi-kernel-headers', right?
@MrTrolChannel Жыл бұрын
I have the same issue
@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 Жыл бұрын
i have same issue .... did u have solution? help meeeee . Tks u first
@MrTrolChannel Жыл бұрын
@@tigerfan5760 which board are you using? And which version of Raspbian OS do you have on the image - 32-bit or 64-bit?
@EnkoVlog2 жыл бұрын
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_linux962 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@tongwang8272 yes, Just Download the aarch64 Image and burn IT to an SD Card, then IT should Work.
@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 Жыл бұрын
@@johannes4gnu_linux96 btw you proogram can run pretty well on jetson nano, maybe becasue it is actually a ubuntu system.