Why am I getting this android kernel error
When I try to build I get this error:DTC arch/arm64/boot/dts/qcom/apq8053-lite-dragon-v1.0.dtb ERROR (phandle_references): Reference to non-existent node or label "typec_ssmux_config" ERROR: Input tree...
View ArticleIs latest kernel code for arm architecture wrong at slow_work_pending?
Currently I am working with embeded linux kernel, ARM architecture. As latest kernel source code that bootlin provided, I see these code in arch/arm/kernel/entry_common.Sslow_work_pending: mov r0, sp...
View ArticlePortable conversion of data endianness using the Linux kernel's API
How can I improve the following code, that is, make it more robust with respect to type safety and endianness using the functions and macros in the Linux kernel's API? For instance, in the following...
View ArticleIncreasing the maximum number of TCP/IP connections in Linux
I am programming a server and it seems like my number of connections is being limited since my bandwidth isn't being saturated even when I've set the number of connections to "unlimited".How can I...
View ArticleNetfilter kernel module to intercept packets and log them
I had a basic code. This code drops and logs all the incoming and outgoing packets. I want to write a netfilter kernel module to intercept packets and log them in the kernel logs. It should be able to...
View ArticleHow to modify the u-boot environment from Linux, while the partition is...
I need to modify some u-boot env on my embedded Linux device.At first, I tried to erase the partition:root@ECU:# ./flash_erase /dev/mtd2 0 0 flash_erase: error!: /dev/mtd2 error 13 (Permission denied)...
View ArticleTensorflow Object Detection Training Killed, Resource starvation?
This question has partially been asked here and here with no follow-ups, so maybe this is not the venue to ask this question, but I've figured out a little more information that I'm hoping might get an...
View ArticleI have a cpu cache coherency-looking problem that I can't figure out how to...
I have a really weird problem I can't figure out, I haven't seen anything this unexplainable in my 30+ years of programming. Clearly I'm doing something wrong, but can't figure out what, and I can't...
View ArticleCan struct statx be used inside kernel?
I'm trying to get a particular process' creation time. In order to do that I use vfs_statx() method which takes struct kstat as an argument. But the problem is that does the struct kstat has struct...
View ArticleHow exactly do minor page faults get identified/resolved?
I feel very clear on what happens with a segmentation fault and a major page fault, but I'm a bit more curious on the subtleties of minor page faults, and maybe an example would be with dynamically...
View ArticleHow to install mana-toolkit on Kali linux? [closed]
I have tried through terminal but this shows up :Reading package lists... Done Building dependency tree Reading state information... Done Package mana-toolkit is not available, but is referred to by...
View ArticleAge of a process in the Linux kernel
Given the struct task_struct to work with. What's the best way to determine how old a process is? The task_struct is used to hold specific pointers to it's next youngest sibling, and oldest child. That...
View ArticleAllocating executable memory using kmalloc
The answers to the question How to allocate an executable page in a Linux kernel module? describe how executable memory can be allocated using __vmalloc(). Is this also possible using kmalloc()? My...
View ArticleHow to allocate an executable page in a Linux kernel module?
I'm writing a Linux kernel module, and I'd like to allocate an executable page. Plain kmalloc() returns a pointer within a non-executable page, and I get a kernel panic when executing code there. It...
View ArticleHow to read the start time data in "proc/pid/stat" to calculate the elapsed...
I am dealing with the system-call topic for two days. My aim is to write a system-call that finds the time passed from the starting time of an ongoing process. I am researching still trying to...
View ArticleWhy doesn't for_each_process show every task?
I am trying to loop through every process in a /proc utility I'm writing (a kernel module in /fs/proc). The problem is, I am only seeing processes in the root namespace. I'm trying to use the macro...
View Articlestruct inode_operations permission function arguments
I'm trying to implement permission management for my device driver and found the following official Kernel documentation related to struct inode_operations:struct inode_operations { //... int...
View Article"error: wrong helper.h inclusion" compilation error in Kernel module build
I am trying to add new C file newfile_test.c in a kernel module. The C file has a #include <linux/types.h> and no other include files present. Existing kernel module source code already has a...
View ArticleModify Linux kernel config file
How do I modify .config file in linux kernel?When I type make device_defconfig a .config file is in created in the kernel directory. But when I type make menuconfig the .config file is modified. I...
View Articlekexec to switch to another kernel on ppc64 failed
This is my first time to ask a question, good luck for myself to get answers. question description (cpu:t104x, ppc64 kernel configed with CONFIG_KEXEC):I boot the first kernel with bootargs...
View Article