Ubuntu apt-get source linux-image-$(uname -r) does not gives me kernel source
I am trying to download linux kernel source code for ubuntu distribution. I did this directly in my home folder.
kerndev@kerndev-VirtualBox:~$ uname -r 5.0.0-37-generic kerndev@kerndev-VirtualBox:~$ apt-get source linux-image-$(uname -r) Reading package lists... Done Picking 'linux-signed-hwe' as source package instead of 'linux-image-5.0.0-37-generic' Skipping already downloaded file 'linux-signed-hwe_5.0.0-37.40~18.04.1.dsc' Skipping already downloaded file 'linux-signed-hwe_5.0.0-37.40~18.04.1.tar.xz' Need to get 0 B of source archives. Skipping unpack of already unpacked source in linux-signed-hwe-5.0.0
After this step I just see following (excerpt).
kerndev@kerndev-VirtualBox:~$ ls -ltr total 52 drwxr-xr-x 3 kerndev kerndev 4096 Apr 5 2019 linux-signed-hwe-5.0.0 -rw-r--r-- 1 kerndev kerndev 11356 Nov 15 02:13 linux-signed-hwe_5.0.0-37.40~18.04.1.tar.xz -rw-r--r-- 1 kerndev kerndev 1862 Nov 15 02:13 linux-signed-hwe_5.0.0-37.40~18.04.1.dsc
Here again I do not see kernel source though (even in debian directory)
kerndev@kerndev-VirtualBox:~/linux-signed-hwe-5.0.0$ ls -ltr total 24 -rwxr-xr-x 1 kerndev kerndev 2683 Apr 5 2019 update-version -rwxr-xr-x 1 kerndev kerndev 216 Apr 5 2019 generate-depends -rwxr-xr-x 1 kerndev kerndev 450 Apr 5 2019 download-unsigned -rwxr-xr-x 1 kerndev kerndev 6491 Apr 5 2019 download-signed drwxr-xr-x 5 kerndev kerndev 4096 Nov 14 15:59 debian
I remember I downloaded headers earlier and struggled to update source.list file. What I may be missing?
See also questions close to this topic
HDFS + how to verify the version of HDFS clients on hadoop cluster
we can verify the HDFS version on hadoop cluster
but since hdfs client also installed on all data-nodes machines
we need to verify also the hdfs client version
any cli / command that can captured the hdfs client version ?
Linux Hash Values
I'm working on an assignment, and the directions say "Generate a MD5 hash value of your text1 and save this hash value as text1-md5." I know the command to generate the hash is md5sum text1 but how do I get that to save to the text1-md5? Thank you!
502 Bad Gateway on asp.net core 3.0 hosted in ubuntu 18.04 TLS with nginx
I published .NET CORE application to ubuntu 18.04 TLS with nginx but when I try browse I get 502 Bad gateaway. I followed this tutorial : Host ASP.NET Core on Linux with Nginx
and when I try to navigate to my website I get the 502 ERROR. My server IP is: 188.8.131.52
Using Slab Allocator in linux kernel
I want to learn more on attacking Slab allocation using buffer overflow. I have seen only little tutorials on this issue that are not understood. If someone can help and explain the concept behind it, i will glad to hear. As well as how do i know which slab i have in my linux( Slab ,Slub, Slob)
Task "dying" state during uninterruptible syscall with SIGKILL
I read this post about
SIGKILLand was confused about the following statements:
only some system calls are interruptible, so the kernel internally marks the process as being in a special "dying" state until the system calls or I/O operations are resolved
Once any in-process kernel routines are resolved, the process state is changed from "dying" to "dead" and the kernel begins cleaning it up
But I can't find any confirmation on this in kernel sources. The task states are defined in linux/sched.h:
#define TASK_RUNNING 0x0000 #define TASK_INTERRUPTIBLE 0x0001 #define TASK_UNINTERRUPTIBLE 0x0002 #define __TASK_STOPPED 0x0004 #define __TASK_TRACED 0x0008 /* Used in tsk->exit_state: */ #define EXIT_DEAD 0x0010 #define EXIT_ZOMBIE 0x0020 #define EXIT_TRACE (EXIT_ZOMBIE | EXIT_DEAD) /* Used in tsk->state again: */ #define TASK_PARKED 0x0040 #define TASK_DEAD 0x0080 #define TASK_WAKEKILL 0x0100 #define TASK_WAKING 0x0200 #define TASK_NOLOAD 0x0400 #define TASK_NEW 0x0800 #define TASK_STATE_MAX 0x1000
And there are no any "dying" state neither in linux/sched.h nor in other scheduler files. Can someone clarify which exactly task state is used to mark task as "dying" while non-interruptible syscall?
FFMPEG:Adding beep sound to another audio file in specific time portions
I've a scenario in which I need to modify certain portions of audio file.Currently,I'm able to add silence to the audio file at specific portions through FFMPEG audio filter -af.But is there something that can replace particular portions of audio with beep sound and the duration of the file should be same after the process?
Eg: Input.wav,I want to add beep of 10s-15s(i.e.,5 seconds) to the file
Linux distros with opengl or vulkan support
What are the Linux distros that have available drivers for opengl so these can leverage GPUS from videocards manufacturers?
how to configure extra msm-lsuart on msm8909 gpio
We are currently using your MSM8909 processor in Quectel EC20 on the Android Platform.
In this module 2 UART is physically available and accessible.
As per Our requirement, we need 5 serial ports for different hardware interfaces.
we have many GPIO pins are available. It is possible to configure msm-lsuart on these pins.
Currently, we build android 8.1 in MSM8909.
how to generate and access the extra serial port.
How to change value of module_param parameter in the device driver?
I wrote a simple program for taking a value through command line into my driver. I used
module_param()for this and gave permission argument, i.e third arg of
module_param(), as S_IWUSR. This I guess would allow user to modify the value of that parameter once driver is loaded in the kernel. I tried to modify the value of that parameter by:
echo 1 > /sys/module/ghost/parameters/num
But this shows me Permission denied error every time I try to do this, even when I execute the command with
sudo. I also tried changing permission in
0770but still was not able to change the parameter value. Is there a way to change the value of parameter passed while inserting the driver ? Why does the above command shows permission denied, even if I run as sudo ?
Is it possible to develop a GUI on Linux Embedded with just HTML, CSS and JS?
I have been researching widely on this topic, but still haven't found a proper guide. What I am doing is to create a GUI for an embedded system based on Linux Embedded and I would like to know if:
- it's going to be possible to code the GUI using HTML, CSS and JS?
- is it worth looking into porting a framework such as React JS?
- is there any other alternative that allows for quick development and satisfying UI?
I am very new to this and I would be very grateful if someone more experienced could point me in the right direction. Thanks so much.
Accepting bluetooth pair request from code
Hellow.I am new to linux.I have a raspberry pi.I want to write a code that listen to some event on operating system like bluetooth pairing request and accept that bluetooth pair request frome code.any body know how?if yes please help me with code .Thank you all.
How to load image in sama5d27-som1-ek kit using SDcard
I am following standard process to boot sama5d27-som1-ek kit using SDcard but i got following error
i cannot understand why it shows cannot open root device.i used 8GB sd for this process
VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -30 Please append a correct "root=" boot option; here are the available partitions: 0100 8192 ram0 (driver?) 0101 8192 ram1 (driver?) 0102 8192 ram2 (driver?) 0103 8192 ram3 (driver?) 1f00 64 mtdblock0 (driver?) 1f01 640 mtdblock1 (driver?) 1f02 64 mtdblock2 (driver?) 1f03 128 mtdblock3 (driver?) 1f04 4096 mtdblock4 (driver?) b300 7864320 mmcblk0 driver: mmcblk b301 65536 mmcblk0p1 da6e5492-01 b302 914432 mmcblk0p2 da6e5492-02 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.78-linux4sam-6.2 #1 Hardware name: Atmel SAMA5 Function entered at [<c010dcd8>] from [<c010ae5c>] Function entered at [<c010ae5c>] from [<c0117f48>] Function entered at [<c0117f48>] from [<c0a01270>] Function entered at [<c0a01270>] from [<c0a01590>] Function entered at [<c0a01590>] from [<c0a01730>] Function entered at [<c0a01730>] from [<c0a00e1c>] Function entered at [<c0a00e1c>] from [<c0729e00>] Function entered at [<c0729e00>] from [<c01010e8>] Exception stack(0xc642dfb0 to 0xc642dff8) dfa0: 00000000 00000000 00000000 00000000 dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]--- random: fast init done random: crng init done
please help to know error.because i am following standard process.