How do you build a Linux Kernel for Android from the AOSP?
I've found that AOSP build.sh dist creates:XML...
View ArticleBinutils update causing ld: no machine record defined error
OLD Setup (based upon Buildroot 2015.08.1)GCC 4.9.3 (ARM cross compiler for ARM11 based target, Buildroot built)GLIBC 2.20BINUTILS: 2.24 (target) 2.22 (host)Linux kernel: 3rd party provided 3.14.17...
View ArticleIdentify removable devices from mount point in kernel module
I'm writing a kernel module and I want to know if a given mount point is associated with a removable device. Is there any way to do that?For example, when I list all the mounts using cat /proc/mounts I...
View Articleclear pending interrupts in linux kernel
say I have some code as follows:local_irq_disable();... // some interrupts come during this timelocal_irq_enable();after I called local_irq_enable(), all interrupts blocked(pending interrupts) are...
View ArticleWhy does sock_from_file() return -ENOTSOCK?
I'm writing a protocol as a kernel module (v4.19.97) and the call to bind() of my user-space app is returning the following error.bind: Socket operation on non-socketerrno: 88 I believe this comes from...
View ArticleNMI Watch dog triggered on isolated CPUs even after adding needed kernel...
I am developing a kernel model that has two kernel threads - A and B. Lets' assume kernel thread A is producer and kernel thread B is a consumer. These threads are pinned to cores 37 and 38 in a 40...
View ArticleCompiling with Clang: Output only warnings?
When compiling the kernel, how can I have the compiler output only warnings? Something like this:arm:multi_v7_defconfig | Success in 1 minute and 5 secondswarning:...
View ArticleHow to change versions when build kernel [closed]
Im trying to build custom kernel, after compile n build, operation make, create 3 file, image, header, n libc. With dpkg im install 3 file, n reboot to my custom kernel.But when im check with dpkg...
View ArticleWhat do xfrm_replay_state_esn fields mean?
I'm trying to understand a little bit more about Linux kernel IPSec networking by looking at the kernel source. I understand conceptually that IPSec prevents replay attacks with a sequence number and a...
View ArticleGetting Linux kernel debug information after a kernel crash
Is there a way to get kernel previous debug information after kernel crash occurs.I am trying to develop a kernel module which basically captures IP packets in the IP layer inside the kernel network...
View ArticleWhy doesn't readlink return a null-terminated value?
Both The Single UNIX ® Specification, Version 2 (1997) and The Open Group Base Specifications Issue 6 (2004) require that readlink would not place a null-terminated value in buffer:APPLICATION...
View ArticleWhat is the purpose of invalidating D-cache when D-cache is off?
In the Linux kernel source arch/arm64/kernel/head.S the boot requirements state it is necessary for the bootloader to enter with the D-cache off:/* * Kernel startup entry point. *...
View ArticleAfter updating to Ubuntu 20.04 from 18.04 cant detect mobile phone through...
I've tried everything and read most of the articles available but when I typemtp-connectmtp-foldersin terminal it lists all the folders in the phone so the cable and slots are working properly but...
View Articlewhen i edit the linux kernel code, what is the process of building and...
I am learning how to write some code in the Linux kernel, and i would like to start practicing writing code in the kernel, but my question is what is the process of building and running the modified...
View ArticleHow do i undelete recently deleted files on linux mint? [closed]
So, I've recently deleted a bunch of essential files in my home folder thinking that they were somehow misplaced.After deleting them I found out that they were just hidden and I had the (Ctrl + H -...
View Articlecannot communicate a socket with volatility and socat
I am experimenting to see the memory of a VM in real time.I have a Windows 7 64bits VM for testing.And I have the following instruction for QEMU v 5.0:./x86_64-softmmu/qemu-system-x86_64 -m 1024 -drive...
View ArticleKernel panic on linux-omap 4.3.0-rc5 on IGEPv2 board
I'm trying to run the latest linux-omap kernel Linux-4.3.0-rc5-12674-g80923cf8e that I got from the official linux-omap GIT.I compiled it with the multi_v7_defconfig, disabling unneeded boards and...
View ArticleThe UART driver of bootloader can only be used for bootloader, but not for Linux
I am writing a driver for uart16750 for bbl(Berkeley Boot Loader),and our cpu can boot bbl, but there is nothing print when boot linux kernel. So my question is the uart16750 driver in bbl is only used...
View ArticleI'd like to find the location where the Usb camera is mounted
I want to run the Yolo on the tx2 Jetson board using the Basler usb camera. But darknet is a way of calling up a camera device from a shell. But I don't know which file the camera was mapped to. I...
View ArticleRead only error in assigning driver function to netdev_ops function pointer
void xbee_init(struct net_device *dev){ struct xbee_priv *priv; dev->netdev_ops->ndo_set_mac_address = xbee_mac_addr; dev->netdev_ops->ndo_validate_addr = xbee_validate_addr; dev->mtu =...
View Article