Is there a way to add kexec functionality to busybox initrd?
I have 3 MB of SPI flash on my board and I am able to pack the bzImage, busybox initrd and coreboot ROM into this SPI flash. I am also able to boot to the shell , all using the ROM...
View ArticleLinux Kernel 4.18.0 , 5.0.0 and above and GNOME 3.30.0 and above not loading...
I was trying to install KALI Linux 2019.3 on my laptop , it is of Kernel 5.2.9 and GNOME 3.30.2 from a bootable pendrive. This installations were very easy for me before (i.e. while installing Kali...
View ArticleWhat is Logger Buffer Sizes Of Developer Option
What is the Logger Buffer Sizes option of developer options? We have various options like:Off64 K 256 K1 M4 M16 MIf we are changing the buffer size, do we have any impact in the buffer size of logcat...
View ArticleLinux latest stable compilation: cannot represent change to vmlinux-gdb.py:
The issue:It's been 20 years since: I last wrote >1K of C codecompiled anything >10K source lines My current Distro's support (Ubuntu 16.04) for an 0cf3:e300 Atheros Communications, Inc. WiFi...
View ArticleWhat is the difference between possible hrtimer initializations?
According to the hrtimer.h, HRTIMER_MODE_ABS means time value is absolute whereas HRTIMER_MODE_REL means time value is relative to now.When used in the context of hrtimer_init, CLOCK_MONOTONIC or...
View ArticleHow to set a global nofile limit to avoid "many open files" error?
I have a websocket service. it's strage that have error:"too many open files", but i have set the system configure:/etc/security/limits.conf * soft nofile 65000 * hard nofile 65000 /etc/sysctl.conf...
View ArticleHow to export kernel functions which written in assembly?
I am working with a PowerPC processor and have to use dcache functions in my kernel module, like: "clean_dcache_range()", implemented in $KERNEL_SOURCE/arch/powerpc/kernel/misc_32.S. this assembly file...
View ArticleAdding support for menuconfig / Kconfig in my project
I am planning to add support for menuconfig in my project. The project is not associated with Linux kernel so, I have to write everything from scratch in menuconfig and Makefile.How do I add support...
View ArticleLinux interrupt notification to user-space
I am using Linux kernel with preempt-rt patch, I did a a simple test to measure time between interrupt and notification of the interrupt to userspace. The idea is quite simple I have a module, that...
View ArticleZero-copy user-space TCP send of dma_mmap_coherent() mapped memory
I'm running Linux 5.1 on a Cyclone V SoC, which is an FPGA with two ARMv7 cores in one chip. My goal is to gather lots of data from an external interface and stream (part of) this data out through a...
View Articleunable to commit image from docker container
We had stopped a docker container named "fig_extractor", and its source docker image was deleted. I need to start the container in different port (at the time of run port is 8010, but now I need to run...
View ArticleAndroid input: msissing ABS_MT_SLOT event from getevent -trl list
I am trying to get multi-touch screen working using Multi-touch protocol type B. Using getevent -il I can see that all the events I want to send recognized. However ABS_MT_SLOT event never comes up in...
View ArticleIs there a way to change Mount-Point after installation of elementaryOS?
I have recently installed elementary OS on a USB drive from a system running Windows 10, but I booted live from elementary OS DVD for installation purposes.Now every time I boot my PC without the USB...
View ArticleDrop skb or expand the outgoing skb
When I capture outgoing packet in kernel by using kernel module, I am using kfree_skb() to drop that packet but it does not work and packet arrives its destination point. I check &skb->user is...
View ArticleAdding element twice into Linux kernel double linked list
I am trying to use linux kernel doubly linked-list implementation mentioned in https://github.com/torvalds/linux/blob/master/include/linux/list.h in user-space which its user-space implementation can...
View ArticleHow to send signal from Linux kernel space to user space in order to notify...
My kernel module code needs to send signal to a user land program, to transfer its execution to registered signal handler.In fact, I have developed a C program for my embedded board which make LED...
View ArticleAOSP black screen between Linux and Android splash screens
The device is running Android 7 + Linux 4.9. Both successfully show a splash screen, but there's a gap of ~6 seconds between the two where the screen is black. How do I start the boot animation...
View ArticleAcccess to /proc/net/tcp in Android Q
In my VPN application up until Android-9, it was possible to read the /proc/net/tcp files from apps targeting API level < 28. Access from apps no longer seems to work in Android Q. I'm getting an...
View ArticleRW region on 64 Bit Linux Kernel Android - overwrite system call pointer with...
Is that correct that only 0xffffffc000800000 will be RW on 64 bit Kernel? I want to do something crazy ... overwrite system call pointer to execute my code from Userland in Kernelspace (to escape RKP =...
View ArticleHow vruntime of a newly created process initialised in CFS scheduler linux ?
In CFS scheduler, it always picks a process with minimum vruntime. vruntime of a running process is increased by the amount of CPU it consumes.I have following two questions related to CFS and...
View Article