Skip to content
Advertisement

Tag: linux-kernel

How to extract the config from a kernel image file when CONFIG_IKCONFIG is set as a module (=m)?

How do I extract the kernel configuration from a kernel image file? The kernel image file type is: The kernel has been compiled with CONFIG_IKCONFIG enabled. However, returns Note: I am trying the get the config without booting the kernel. Answer If the kernel has been compiled with CONFIG_IKCONFIG=m (note the m), the configuration in stored in a module (configs.ko)

Linux console output on multiple UARTs

My embedded board has 2 UARTs. I want to have console output on both the UARTs. In kernel/Documentation/console/console.txt it’s mentioned that: you can only define one console per device type (serial, video). Does this mean I can use only one UART as console? Or, is it possible to redirect the console output to both of these UARTs? Answer It’s possible

Linux layer on macOS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

PC bootstrap process step by step

The bootstrapping process is a bit confusing, I hope I understand it correctly. I will try to describe my understandings and hopefully can be corrected. As this is an extremely important and I want to dive into the small details. BIOS: It sets up an interrupt descriptor table and initializes various devices. After initializing all the important devices the BIOS

Example device-tree-aware i2c gpio driver for Linux?

Is there a good example device-tree-aware i2c gpio driver for Linux? I’ve been looking at gpio-pcf857x but it has a header file containing struct pcf857x_platform_data which is used in board files. I am looking for a similar example, but where the i2c id is defined-in/retrieved-from the device tree. Answer Take a look at max732x.c driver (code). As for I2C ID

How does Docker run a Linux kernel under macOS host?

I installed Docker on my macOS Sierra as follows. Note I don’t have VirtualBox installed. My macOS details. Once I run Docker from launchpad, I am able to run Docker containers. My question is how does Docker manage to run a Linux kernel within macOS? I thought Docker would at least require boot2docker or some other such Linux kernel running

Kernel API to get Physical RAM Offset

I’m writing a device driver (for Linux kernel 2.6.x) that interacts directly with physical RAM using physical addresses. For my device’s memory layout (according to the output of cat /proc/iomem), System RAM begins at physical address 0x80000000; however, this code may run on other devices with different memory layouts so I don’t want to hard-code that offset. Is there a

Advertisement