Building Android Goldfish kernel on kali error with asan [closed]
I am trying to build Goldfish kernel for Android. I get this errors when I try to build it. Operating System is Kali. Errors are attached below. I searched the internet but no clue for the errors. I am...
View ArticleHow to map device node and uuid
I am working as a USB Framework developer on Android OS(Linux base).Currently in project, I need to map UUID and device name when USB storage is connected.I kept researching but couldn't find a...
View ArticleWhy people use `-ffreestanding` option in the kernels?
I wrote a kernel, without using -ffreestanding option, and while looking some kernels source codes, I see they compiled its kernels with -ffreestanding option. So, I tried to see what happens if I...
View ArticleLinux modules version error "Invalid module format"
I made Linux external module and because my module need Linux kernel symbol,I set the Modversion config and make it.(also did make modules_install)My module was made exactly in lib/modules/(my...
View ArticlePassing int to sysfs
I want to pass int to sysfs_storeWhat I trieduserspaceint tid = 5234; // can be negative as wellchar buf[5];sprintf(buf, "%d\n", tid);write (fd, buf, 1);driver sysfs_storeint...
View ArticleAndroid device vendor flashing 32-bit kernels on 64-bit SOCs?
I'm trying to recompile the kernel for an Android device. The device is Xioami Redmi 7A. It has a 64-bit processor Qualcomm Snapdragon 439. I compiled the kernel without errors, got the Image file...
View ArticleThe use of '__user' in the Linux kernel
For example,int setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs),it makes sense to me.But I can't understand something like this,SYSCALL_DEFINE3(sigaltstack, const stack_t __user *,...
View ArticleMaking My OS Boot From Bin Files In Windows
I'm Trying To Create A Operating System, I Write It In ASM But I Cannot Run The Output .bin File,I'm On Windows,What Should I Do?I Compile With nasm boot.asm -f bin -o boot.binboot.asm:mov ah, 0x0emov...
View ArticleDoes there exist Kernel stack for each process ?
Does there exist a Kernel stack and a user-space stack for each user space process? If both stacks exist, there should be 2 stack pointers for each user space process right?
View ArticleWho is refreshing hardware watchdog in Linux?
I have a processor AT91SAM9G20 running a 2.6 kernel. Watchdog is enabled at bootstrap level and configured for 16 seconds. Watchdog mode register can be configured only once.When code hangs either in...
View ArticleFile '/vmlinuz' not found
I just did my first debian based linux system and when I load it into a virtual machine, after selecting the OS in the grub bootloader this error appears: ```error: file '/vmlinuz not found.error: you...
View Articlewhere to find information on linux kernel driver functions for spi nand devices
i'm trying to find documentation on how to write a device driver for a SPI NAND device. i've looked at micron's device driver and it seems that there is a format for creating these drivers. i'm trying...
View ArticleMTK8168 ./8168_make.sh error , ProjectConfig.mk not found?
FAILED: ninja: 'out/target/product/mssi_t_64/kernel', needed by 'out/target/product/mssi_t_64/images/krn.target_files.zip', missing and no known rule to make itFAILED:...
View ArticleLinus kernel compilation, using Fedora .config for Debian compilation
I encounter system freezes when using Firefox 91esr on Debian 11 (kernel 5.10).I have compiled and installed stable kernel (5.16.11) but this doesn't solved the issue.On the other side I have Fedora 35...
View ArticleInterpreting segfault messages
What is the correct interpretation of the following segfault messages?segfault at 10 ip 00007f9bebcca90d sp 00007fffb62705f0 error 4 in libQtWebKit.so.4.5.2[7f9beb83a000+f6f000]segfault at 10 ip...
View Articlebuildroot 2011.11.1 kernel 4.19.231 patch failing
Back story - a vendor gave us buildroot 2017.08.2 with Linux 4.4.49 a long time ago. We never updated the Ubuntu 14.x build machine. Starting over with Ubuntu 20 and the newer GCC is wreaking havoc on...
View ArticleHow is the keyboard interrupts always accessible at port 60?
I am in the process of learning about operating systems and bootloaders. I have found that, to read keyboard keypresses, one can use the in assembly mnemonic with port 60. This works even when writing...
View ArticleHow to run unit tests on a C project (like an Operating System) that...
I'm learning about Operating Systems by using the OS161 teaching kernel that was developed by Harvard and used by several online courses and MOOCs like this one.I'm keen to do some of the exercises...
View ArticleHow to explain path under /sys/bus/hid/devices
I am studying about HID driver, and there is one thing I cannot find out any document about it.Hope someone can help me.When a HID device mount, I can found it on /sys/bus/hid/devices, it may looks...
View ArticleWhat config value should I set to make the HZ value (jiffies) physically...
When build linux kernel Image, we set the value HZ. linux kernel has the default HZ value. It is a software clock frequency the kernel operates at and 1/HZ (=jiffies) is the unit of scheduler interval....
View Article