Linux kernel, Linux general, OpenBSD, DragonflyBSD, FreeBSD, NetBSD, Applications and Utilities, GNU/Hurd, Windows, Hardware, KernelTrap Suggestions and Feedback, KernelTrap Changes and News

How would someone compile a 2.2.x kernel on a relatively modern system?

Submitted by dav7
on June 16, 2009 - 12:44am

The subject's the question, really.

I have GCC 2.95.3 but I probably need to go back in time and ask someone to make me a statically compiled version of GCC like 1.90 or something, right? :P

Or do I need to completely cross the insanity barrier and locate and compile myself a copy of EGCS?

Thanks in advance!

-dav7

ATA error messages and pata_sch module

Submitted by Anonymous
on June 15, 2009 - 9:40pm
Linux

Hi,

I am using Debian 5.0 with 2.6.30 kernel. I see the following messages during kernel boot. Here is the relevant dmesg output:

[ 4.368333] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
[ 4.368424] ata1.00: BMDMA stat 0x24
[ 4.368511] ata1.00: cmd c8/00:80:59:0d:4c/00:00:00:00:00/e2 tag 0 dma 65536 in

Which is the difference between Netfilter and XFRM framework?

Submitted by Anonymous
on June 15, 2009 - 7:47am
Linux

Hi all,
I'm working on linux networking kernel because i need to create a ip/udp/ip encapsulation on packets that matches defined features.
I know that this type of packet modifications can be done using Netfiler (with iptables interface) or using xfrm policy.
Please can someone explain me the difference between Netfilter and XFRM framework or give me a link where find some documentation?

help-getting all loadable kernal module information while linux booting

Submitted by dileepkantamneni
on June 15, 2009 - 12:37am
Linux

Hi all,
Iam trying to debug kernel .So I want to know how kernel get the information about the kernel loadable modules information while booting..
If kernel uses any data structure to store this information ,tell me how can i acess thta data structure.

Thanks in advance

SATA ports not recognised in 2.6.30 on MA790FX motherboard

Submitted by amsonia
on June 12, 2009 - 4:54pm
Linux

I'm trying to use the 2.6.30 kernel, but one of my two machines has a Gigabyte MA790FX-DS5 mother board. Neither the hard drives plugged into two external eSATA ports nor those plugged into the two GSATA ports at the bottom of the motherboard are being recognised. It will recognise hard drives in four other SATA ports.

Port linux for arm LH79525

Submitted by Anonymous
on June 11, 2009 - 10:08pm
Linux

Dir my friends,

I'm an application engineer. I'm in project ARM lh79525. I searched on internet about embedded Linux for arm lh79525 and I see a little document about arm linux for it.I have some trouble with embedded Linux on Lh79525. I hope that everybody will help me.
First, i illustrator my project. I use u boot is bootloader. My board boot is ok.

IPv6: Router Advertisement : How do I get the M and O Flags programmatically?

Submitted by kz1000
on June 10, 2009 - 10:57am
Linux

Hello,
I have added a DHCPv6 client (Dibbler) on my PPC Linux 2.6.12 embedded system. I am trying to find and use the Managed and Options bits/flags "M and O Flags" (RFC 5175 / RFC 4861). I can sniff the RA with wireshark and see the flags are set in the the Router Advertisement.

About the last page of file reading in the user space

Submitted by Anonymous
on June 7, 2009 - 7:29pm
Linux

1. If some file's size is 5000 Bytes, then the first 4096 Bytes are read by the first page, the remaining 4 Bytes are read by the second page. What is fetched in the left 4092 Bytes in the second page space?

2. How can I check the offset of the data (eg. the remaining 4 Bytes's location)
I found there is a macro named "bio_offset", but it's parameter is bio, not page.

programming kernel.

Submitted by rufa
on June 5, 2009 - 3:38pm
Linux

hi, i want to dispaly the field nfmark of the struct net_device after marked it withe iptables:

iptbles -i mangle -A PREROUTING -p icmp -j MARK --set-mark 5

i whrit : printk("%u", skb->nfmark);

thank you.

3/1 memory split

Submitted by TragicWarrior
on June 4, 2009 - 9:43pm
Linux

On i386 archs, there was a 3/1 (or optionally 2/2) memory split for process images. Is there a memory split on x86-64? How much memory reserved/accessible to the kernel?

dispaly the field nfmak of sruct net_device.

Submitted by rufa
on June 4, 2009 - 8:57pm

hi, i want to dispaly the field nfmark of the struct net_device after marked it withe iptables:

iptbles -i mangle -A PREROUTING -p icmp -j MARK --set-mark 5

i whrit : printk("%u", skb->nfmark);

thank you.

Tracking kernel memory usage

Submitted by TragicWarrior
on June 4, 2009 - 6:13pm
Linux

Is there an equivalent to "top" which shows how much memory the kernel is using of it's 1GB? I know that /proc/buddyinfo provides some insight into this, but I haven't found any tool that offers "human-readable" information.

How does Arm Processor Knows the page is present in the memory : pte_present

Submitted by Vijayendra suman
on June 4, 2009 - 7:56am
Linux

Hello All,

I want to know a information regarding ARM processor, I have enabled swap partition for while compiling the kernel.

I want to know how does the H/W knows the page is not present in the RAM so that it raises an exception which makes it to copy from the swap if the page is swapped out.

I know there is a bit pgd_t pte_present, But I am not sure

1) who updates this bit

sata_via causes emask timeout

Submitted by Anonymous
on June 1, 2009 - 11:09am
Linux

I have a system that uses sata_via and sr_mod for my cd-drive. This causes the following problem:
Apr 16 08:21:43 (none) kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
Apr 16 08:21:43 (none) kernel: ata1.00: cmd a0/01:00:00:10:f8/00:00:00:00:00/a0 tag 0 dma 63504 out
Apr 16 08:21:43 (none) kernel: cdb 2a 00 00 00 19 a1 00 00 1b 00 00 00 00 00 00 00

detects the msg as spam

Submitted by Anonymous
on June 1, 2009 - 8:22am
Linux

Well, I am having problem in writing msg on this forum. As it detect my simple text msg as spam. And now its saying the msg from this IP address are automatically blocks and reported as spam.

what should be done?

Dhawal.