<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kernel &#8211; Harry Jackson</title>
	<atom:link href="http://127.0.0.1:8090/tag/kernel/feed" rel="self" type="application/rss+xml" />
	<link>http://127.0.0.1:8090</link>
	<description>Parent, Painter, Programmer</description>
	<lastBuildDate>Mon, 22 Aug 2005 02:51:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>isd200_get_inquiry_data</title>
		<link>http://127.0.0.1:8090/isd200_get_inquiry_data.htm</link>
					<comments>http://127.0.0.1:8090/isd200_get_inquiry_data.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Mon, 22 Aug 2005 02:51:37 +0000</pubDate>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=286</guid>

					<description><![CDATA[If you are compiling a Linux kernel and it fails complaining about isd200_get_inquiry_data ide_fix_friveid Make sure that CONFIG_USB_STORAGE_ISD200=n when CONFIG_USB_STORAGE=y]]></description>
										<content:encoded><![CDATA[<p>If you are compiling a Linux kernel and it fails complaining about<br />
isd200_get_inquiry_data<br />
ide_fix_friveid<br />
Make sure that<br />
CONFIG_USB_STORAGE_ISD200=n<br />
when<br />
CONFIG_USB_STORAGE=y</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/isd200_get_inquiry_data.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Postgresql oom-killer</title>
		<link>http://127.0.0.1:8090/postgresql_oomkiller.htm</link>
					<comments>http://127.0.0.1:8090/postgresql_oomkiller.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Mon, 20 Dec 2004 01:08:13 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[oom-killer]]></category>
		<category><![CDATA[Postgresql]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=233</guid>

					<description><![CDATA[I have never seen the oom-killer before. I had heard stories from battle hardened veterans about their tussles with the beast but these stories where all just myths to me, until today, when the beastie raised its head in my logs. Dec 20 18:08:50 debian kernel: oom-killer: gfp_mask=0x1d2 59071 Dec 20 18:08:51 debian kernel: DMA &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/postgresql_oomkiller.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Postgresql oom-killer"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I have never seen the oom-killer before. I had heard stories from battle hardened veterans about their tussles with the beast but these stories where all just myths to me, until today, when the beastie raised its head in my logs.<br />
Dec 20 18:08:50 debian kernel: oom-killer: gfp_mask=0x1d2<br />
59071 Dec 20 18:08:51 debian kernel: DMA per-cpu:<br />
59072 Dec 20 18:08:51 debian kernel: cpu 0 hot: low 2, high 6, batch 1<br />
59073 Dec 20 18:08:51 debian kernel: cpu 0 cold: low 0, high 2, batch 1<br />
59074 Dec 20 18:08:51 debian kernel: Normal per-cpu:<br />
59075 Dec 20 18:08:51 debian kernel: cpu 0 hot: low 32, high 96, batch 16<br />
59076 Dec 20 18:08:51 debian kernel: cpu 0 cold: low 0, high 32, batch 16<br />
59077 Dec 20 18:08:51 debian kernel: HighMem per-cpu:<br />
59078 Dec 20 18:08:51 debian kernel: cpu 0 hot: low 14, high 42, batch 7<br />
59079 Dec 20 18:08:51 debian kernel: cpu 0 cold: low 0, high 14, batch 7<br />
59080 Dec 20 18:08:51 debian kernel:<br />
59081 Dec 20 18:08:51 debian kernel: Free pages:        1040kB (112kB HighMem)<br />
59082 Dec 20 18:08:51 debian kernel: Active:253987 inactive:249 dirty:0 writeback:5 unstable:0 free:260 slab:2326 mapped:254        013 pagetables:680<br />
59083 Dec 20 18:08:52 debian kernel: DMA free:16kB min:16kB low:32kB high:48kB active:12296kB inactive:0kB present:16384kB<br />
59084 Dec 20 18:08:52 debian kernel: protections[]: 0 0 0<br />
59085 Dec 20 18:08:52 debian kernel: Normal free:912kB min:936kB low:1872kB high:2808kB active:873984kB inactive:996kB prese        nt:901120kB<br />
59086 Dec 20 18:08:52 debian kernel: protections[]: 0 0 0<br />
59087 Dec 20 18:08:52 debian kernel: HighMem free:112kB min:128kB low:256kB high:384kB active:129668kB inactive:0kB present:        131008kB<br />
59088 Dec 20 18:08:52 debian kernel: protections[]: 0 0 0<br />
59089 Dec 20 18:08:52 debian kernel: DMA: 0*4kB 0*8kB 1*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096k        B = 16kB<br />
59090 Dec 20 18:08:52 debian kernel: Normal: 0*4kB 0*8kB 1*16kB 2*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*40        96kB = 912kB<br />
59091 Dec 20 18:08:52 debian kernel: HighMem: 0*4kB 0*8kB 1*16kB 1*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4        096kB = 112kB<br />
59092 Dec 20 18:08:52 debian kernel: Swap cache: add 848298, delete 845230, find 151472/187493, race 0+3<br />
59093 Dec 20 18:08:52 debian kernel: Out of Memory: Killed process 6332 (postmaster).<br />
It would appear I was being a bit greedy with Postgres.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/postgresql_oomkiller.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Kernel 2.6.5 and 2.6.9 fun</title>
		<link>http://127.0.0.1:8090/kernel_265_and_269_fun.htm</link>
					<comments>http://127.0.0.1:8090/kernel_265_and_269_fun.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Thu, 16 Dec 2004 08:30:44 +0000</pubDate>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=230</guid>

					<description><![CDATA[I upgraded from kernel 2.6.5 to kernel 2.6.9 because I was getting DMA errors when ripping CD&#8217;s to disc. I was also getting major errors with the SATA disk when copying the CD&#8217;s to my mp3 player so I have bit the bullet and decided to try and upgrade. During boot I came across what &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/kernel_265_and_269_fun.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Kernel 2.6.5 and 2.6.9 fun"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I upgraded from kernel 2.6.5 to kernel 2.6.9 because I was getting DMA errors when ripping CD&#8217;s to disc. I was also getting major errors with the SATA disk when copying the CD&#8217;s to my mp3 player so I have bit the bullet and decided to try and upgrade.<br />
During boot I came across what I thought was some king of bug. When I rebooted the kernel fsck complained about a bad file system, no indication as to which device just the error message.<br />
I logged back in and my SATA disk was gone. It had not been mounted during boot which was a bit of a bummer. I had a look at the dmesg output and lo and behold it is now a SCSI device and my three old mount points are now invalid. I am using the VIA controller ie<br />
CONFIG_SCSI_SATA_VIA=y<br />
in my config. I find these changes very disconcerting but then I am not a kernel hacker. I wonder if there is an easy way to see changes like this without having to read through tons of Change logs. Its even worse when you are jumping several versions.<br />
Kernel upgrades, like life are is just full of little surprises.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/kernel_265_and_269_fun.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Compiling a single module for the 2.6 Kernel</title>
		<link>http://127.0.0.1:8090/compiling_a_single_module_for.htm</link>
					<comments>http://127.0.0.1:8090/compiling_a_single_module_for.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Tue, 30 Nov 2004 02:07:56 +0000</pubDate>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=218</guid>

					<description><![CDATA[This is relatively straight forward. I just recently installed a new network card to play around with and to see if I can make head or tail of the driver details so I need to make sure I have the driver for the card. I installed a NetGear F311, I had a couple of spares. &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/compiling_a_single_module_for.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Compiling a single module for the 2.6 Kernel"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>This is relatively straight forward. I just recently installed a new network card to play around with and to see if I can make head or tail of the driver details so I need to make sure I have the driver for the card.<br />
I installed a NetGear F311, I had a couple of spares. The driver for this card is the natsemi driver. To see if you have the source try the following.<br />
]$ locate natsemi<br />
/usr/src/kernel-source-2.6.5/drivers/net/natsemi.c<br />
/usr/src/kernel-source-2.6.5/include/config/natsemi.h<br />
There is no need to be the root user for any of this until you need to actually install the driver, I will tell you when <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /><br />
Copy both these files to a directory of your choice. Then, in the same directory create a Makefile with the following text:<br />
1 obj-m   := natsemi.o<br />
2<br />
3 KDIR    := /lib/modules/$(shell uname -r)/build<br />
4 PWD     := $(shell pwd)<br />
5<br />
6 default:<br />
7     $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules<br />
save it and then execute the folloing command:<br />
]$ make<br />
Some text should whizz past detailing what it is doing. In the directory which you ran make in there should now be several new files<br />
natsemi.ko<br />
natsemi.mod.c<br />
natsemi.mod.o<br />
natsemi.o<br />
The one you are interested in is &#8220;natsemi.ko&#8221;. As the root user change to the directory containing the &#8220;natsemi.ko&#8221; file and run<br />
]$ insmod natsemi.ko<br />
If all goes well there should be no messages. To see if it loaded and to satisfy your curiosity try<br />
]$ lsmod<br />
natsemi                18976  0<br />
tulip                  36640  0<br />
crc32                   3840  2 natsemi,tulip<br />
af_packet              12552  4<br />
The above is what I have on mine<br />
To see if the card works (Debian) edit your<br />
/etc/network/interfaces<br />
file and add the following. Note that I already have a card installed using eth0 so I have chosen eth1 for this card<br />
11 iface eth1 inet static<br />
12     address 192.168.1.10<br />
13     netmask 255.255.255.0<br />
Then issue the command<br />
]$ ifup eth1<br />
]$ ping 192.168.1.10<br />
and you should now have the card working.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/compiling_a_single_module_for.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Writing Linux Device Drivers</title>
		<link>http://127.0.0.1:8090/writing_linux_device_drivers.htm</link>
					<comments>http://127.0.0.1:8090/writing_linux_device_drivers.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 24 Nov 2004 06:14:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Device Drivers]]></category>
		<category><![CDATA[Kernel]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=213</guid>

					<description><![CDATA[I lost my internet connection at the weekend and was at a bit of a loss as to what I could do so I decided to take a pop at writing a simple module for the Linux kernel. I have a copy of Beginning Linux Programming ISBN: 1861002971 Authors: Richard Stevens and Neil Matthew Ed: &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/writing_linux_device_drivers.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Writing Linux Device Drivers"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I lost my internet connection at the weekend and was at a bit of a loss as to what I could do so I decided to take a pop at writing a simple module for the Linux kernel. I have a copy of<br />
Beginning Linux Programming<br />
ISBN: 1861002971<br />
Authors: Richard Stevens and Neil Matthew<br />
Ed: 2nd<br />
so I turned to the back of it and started my foray into the Kernel. Now you need to remember that I am not a C programmer by trade and turning to the back of this book was a keen reminder of just how rusty my C is getting, not that it was ever rust free.<br />
Luckily for me I have another book that is considered the C bible ie K&amp;R and it deserves its reputation, it is a classic and I would recommend any programmer regardless of language choice to have a flick through it. When I was looking at some odd construct that those pointy hats had invented I had a flick through K&amp;R  and soon sorted it out.<br />
Anyway back to the kernel. I was quick to discover that writing a module for the 2.6 kernel is not quite as straight forward as copying from the book and trying to understand what was going on. Things have been changing and I was getting all sorts of weird (or at least to me) and wonderful errors when trying to compile the kernel.<br />
I eventually started to have a read at the recent modules in the source for 2.6.5 which I am running on this box. I also have the source for a 2.4 kernel on here so I opened 2 character drivers and compared notes between them. This is where I started to notice things that had changed. I made the changes I thought where necessary and I managed to get most of the &#8220;Hello World&#8221; module compiling but I was still getting errors.<br />
I had a hunt around and I found a reference to some new build procedures for 2.6.5 so off I went in search of kbuild documentation and found some more stuff that had changed in the kernel. Namely the build procedure. This part was actually harder than the C that I had been struggling with.<br />
After much swearing (I hate Makefiles and adding some more sugar is a pain in the ass) I managed to get the module compiling and I was on my way.<br />
After a days work I now had a module that, on load would say<br />
&#8220;Hello World&#8221;<br />
and on removal<br />
&#8220;Goodbye World&#8221;<br />
time well spent or not? I haven&#8217;t decided yet. I wonder how often changes like this take place in the kernel and how much porting takes place because of it.<br />
Where to go from here. I asked a few friends who know more about this stuff than I do and I got mixed advice about continuing. Some of them think the kernel is a mess because they are always changing the driver API among other things. I cannot comment because my knowledge of the Linux kernel is limited to spelling it and I sometimes get that wrong.<br />
I did get some useful pointers though. The following is the best book I have found so far for someone like me who is just starting out in the kernel.<br />
<a href="http://www.xml.com/ldd/chapter/book/index.html">Linux Device Drivers, 2nd Edition</a><br />
It is written for the 2.4 kernel but has a wealth of information that is still valid today. I have started porting the scull drivers from this to the 2.6 kernel I am running and it is proving very interesting. I printed off chapter 2 and 3 yesterday and have have almost finished them (40 mins from Luton to London on the train each way helps). So far it seems to be moving along at a fair old pace, I am just hoping I can keep up.<br />
I could have done with the following at the weekend. This tells me what I needed to know about moving from 2.4 to 2.6. I can see myself using this a lot in the next few weeks.<br />
<a href="http://lwn.net/Articles/driver-porting/">Driver Porting</a></p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/writing_linux_device_drivers.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
