Linux kernel, Linux general

how to make a bootable uncompressed iso kernel image for linux kernel 2.6

Submitted by Anonymous
on April 15, 2009 - 5:14pm

Hi,

I am new to linux kernel. I am trying to make an uncompressed iso kernel image for linux 2.6 so that i can load kernel on some i386 emulator like qemu. I know that make bzImage makes compressed image.

can u please tell me if there is any way for building "uncompressed" bootable iso image for linux kernel?

Thanks in advance,
Sunny.

[wanrouter.h] wanif_conf_t sysname

Submitted by Anonymous
on April 15, 2009 - 11:40am
Linux

Hi

what is the sysname in wanif_conf_t structure ?
Is it the Ac-name provided by pppoe pado and pads request or the name provided in ppp chap request ?

any comment is welcome !

Change pseudo terminal of process

Submitted by GordonP
on April 15, 2009 - 10:18am
Linux

Hi,

i want to change the pseudo terminal of a running (or suspended) process.

i tried to set task->files->fdt->fd[0], task->files->fdt->fd[1], task->files->fdt->fd[2] to the new device file.

if ((task=find_task_by_vpid(pid)) != NULL) {

stdin = fget(0);
stdout = fget(1);
stderr = fget(2);

task->files->fdt->fd[0] = stdin;

Building database of linux kernel procedures, argument lists

Submitted by Anonymous
on April 15, 2009 - 6:07am
Linux

Hello,

I need to make some kind of database of linux kernel procedure names and their argument lists. I need it for make some debugger. Is there any tool that allows to do it?
I need procedure name, number of arguments, type and size of the argument.
Any suggestions?

Page to Process ID

Submitted by Anonymous
on April 13, 2009 - 10:49pm
Linux

I am trying to work on implementing a new caching strategy. I have a list of particular processes I am to manage the cache for. When a page is to be evicted via "shrink_page_list" I want to use that page and obtain the process ID, and see if that ID is in fact one in my to-manage list. Unfortunately, I have not been able to locate a routine to find the mapping between page to process ID.

inotify for sysfs changes

Submitted by prash.bhole
on April 13, 2009 - 4:32am
Linux

Is it possible to use inotify to get updated about changes in sysfs attribute?

Problem Upgarding kernel to linux-2.6.29.1

Submitted by Anonymous
on April 9, 2009 - 8:51am
Linux

Base System used - Fedora Core 10 (linux-2.6.27.1)

Downloaded the source from kernel.org and followed the following steps as /usr/src/kernels/linux-2.6.29.1

-- make
-- make modules
-- make modules_install
-- make install.

Following log messages are obtained at the tile of make:

Creating a Kernel Thread

Submitted by Anonymous
on April 8, 2009 - 2:54pm
Linux

How can I create a New Thread in the Linux Kernel

TCP Checksum

Submitted by Anonymous
on April 8, 2009 - 9:35am
Linux

I have a netfilter hook that changes some of the contents of the tcp header for all packets that fall in NF_IP_FORWARD category. Before passing on the packet, I need to of course calculate the TCP and IP checksums again, but I am unable to get the TCP checksums right.
Here are a few of the things i tried.
tcph->check = tcp_v4_check(len, iph->saddr, iph->daddr,
csum_partial((char *)tcph,

libata advice please.

Submitted by martianbob
on April 7, 2009 - 11:37am
Linux

My embedded platform has two Silicon Images 3531 controllers. I'd like to force any attached sata devices [sda, sdb] to controllers 0 and 1 respectively. But if no device is attached to controller 0, then 'sda' will get assigned to the second controller. Seems like a simple problem but I've been wading through the libata code for a while.
2.6.28.4 kernel.

Kernel Panic while copying a file to /tmp

Submitted by shirish_anshu
on April 7, 2009 - 12:28am
Linux

Hi,

I am using kernel 2.4.25 for mips board.
-> Its having 8MB Flash + 32MB RAM. And I mounted tmpfs to /tmp, ideally by default /tmp has to be atleast half of actual RAM, and its showing the same (checked via df).

But while copying files to /tmp I am getting Kernel Panic after copying some 6.5MB of data

Unable to handle kernel NULL pointer dereference at virtual address 00000015

Submitted by Anonymous
on April 6, 2009 - 2:00am
Linux

HI .
i am faceing a problem while running Linux kernel-2.6.21.5 after some time.the error is Unable to handle kernel NULL pointer dereference at virtual address 00000015.what could be the reason?if any body knows tell me the solution.

Regards
shiva.

/proc/cpuinfo contains wrong frequency information (Kernel 2.6.29)

Submitted by Anonymous
on April 3, 2009 - 4:29am
Linux

Hi,

I searched the internet and didn't find any hint towards wrong frequency information regarding new kernels. I am running a Debian/lenny with vanilla 2.6.29 kernel.
cat /proc/cpuinfo shows:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz
stepping        : 10

How to judge a process is running in the kernel mode or user mode?

Submitted by vupiggy
on April 2, 2009 - 4:51pm
Linux

I am writing a kernel module, one requirement is that I need to judge a process currently (or before it's switched if it's not in RUNNING state) is running on kernel mode or user mode, please kindly tell me the not-so-hackish way (e.g, does Linux kernel provide some functions or macro to tell?). Thanks a lot!

list of block devices

Submitted by Anonymous
on April 2, 2009 - 2:04am
Linux

Is there any way to get list of block devices (especially hard disks) in a kernel module?