Running linux-2.6.18 kernel in uncache area
Hi,
I would like to runlinux-2.6.18 kernel in uncached area.I tried it by enabling CONFIG_UNCACHE.But still i am doubting it is running in cache area.
Is there a way to know the kernel is running in cache or uncache area?
While going thru mailing list i read that there is a patch to run the kernel in uncache area.
If you have could you please pass to me.
Regards,
Sathesh
sathesh babu <[email protected]> wrote:
Hi Mlachwani,
I tried by enabling Uncache option.
But how do i know kernel runs from the uncache area.
During the boot process , i checked the boot up message and observed that kernel still calling cache initilization routines.
I did quick test :
- Read the 10 words of uncached area start from 0xa0800000
- Read the 10 word of cached area start ftom 0x80800000
I checked the contents in the both areas and are same.
That means cache is not disabled properly.
Is there anyway i can check the kernel is running from cache or uncached area?
Any other options should i enable/disable to run kernel from uncached area.
Regards,
Sathesh
BOOTUP MESSAGES:
--------------------------------------------------------------------
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initial ramdisk at: 0x80000000 (0 bytes)
Built 1 zonelists. Total pages: 8192
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 myfs_start=0xbfA800 00 rootfstype=jffs2
Primary instruction cache 16kB, linesize 32 bytes.
Primary data cache 8kB, linesize 32 bytes.
Fusiv LX4189 CACHES
Synthesized TLB refill handler (17 instructions).
Synthesized TLB load handler fastpath (31 instructions). Synthesized TLB store handler fastpath (31 instructions).
th (25 instructions).
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28864k/32768k available (2367k kernel code, 3888k reserved, 401k data, 1 56k init, 0k highmem)
Mount-cache hash table entries: 512
---------------------------------------------------------------------
mlachwani <[email protected]> wrote:
Quoted 16 lines · sathesh babu
Hi,
I would like to know is there any configuration option ( using make menuconfig) to turn off cache in linux-2.6.18 kernel.Basically i would like to run kernel in uncache area.
I see there is an option in the in the menuconfig under Kernel hacking
[ ] Run uncached (NEW)
Sould i need to enable this option to run in the uncahe area?Could you please tell me how to disable cache and run the kernel in uncache area.
Quoted 6 lines
Regards,
SatheshSend free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
That should be it. Did you try with that option MIPS_UNCACHED enabled?
thanks,
Manish Lachwani
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
---------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
---------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
Hi,
Could you please respond on this.
Regards,
Sathesh
sathesh babu <[email protected]> wrote:
Hi,
I would like to runlinux-2.6.18 kernel in uncached area.I tried it by enabling CONFIG_UNCACHE.But still i am doubting it is running in cache area.
Is there a way to know the kernel is running in cache or uncache area?
While going thru mailing list i read that there is a patch to run the kernel in uncache area.
If you have could you please pass to me.
Regards,
Sathesh
sathesh babu <[email protected]> wrote:
Hi Mlachwani,
I tried by enabling Uncache option.
But how do i know kernel runs from the uncache area.
During the boot process , i checked the boot up message and observed that kernel still calling cache initilization routines.
I did quick test :
- Read the 10 words of uncached area start from 0xa0800000
- Read the 10 word of cached area start ftom 0x80800000
I checked the contents in the both areas and are same.
That means cache is not disabled properly.
Is there anyway i can check the kernel is running from cache or uncached area?
Any other options should i enable/disable to run kernel from uncached area.
Regards,
Sathesh
BOOTUP MESSAGES:
--------------------------------------------------------------------
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initial ramdisk at: 0x80000000 (0 bytes)
Built 1 zonelists. Total pages: 8192
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 myfs_start=0xbfA800 00 rootfstype=jffs2
Primary instruction cache 16kB, linesize 32 bytes.
Primary data cache 8kB, linesize 32 bytes.
Fusiv LX4189 CACHES
Synthesized TLB refill handler (17 instructions).
Synthesized TLB load handler fastpath (31 instructions). Synthesized TLB store handler fastpath (31 instructions).
th (25 instructions).
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28864k/32768k available (2367k kernel code, 3888k reserved, 401k data, 1 56k init, 0k highmem)
Mount-cache hash table entries: 512
---------------------------------------------------------------------
mlachwani <[email protected]> wrote:
Quoted 16 lines · sathesh babu
Hi,
I would like to know is there any configuration option ( using make menuconfig) to turn off cache in linux-2.6.18 kernel.Basically i would like to run kernel in uncache area.
I see there is an option in the in the menuconfig under Kernel hacking
[ ] Run uncached (NEW)
Sould i need to enable this option to run in the uncahe area?Could you please tell me how to disable cache and run the kernel in uncache area.
Quoted 6 lines
Regards,
SatheshSend free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
That should be it. Did you try with that option MIPS_UNCACHED enabled?
thanks,
Manish Lachwani
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
---------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
---------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
---------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
The way an uncached kernel boot works is by setting the cache attribute of kseg0 (0x80000000-0x9fffffff) to be non-cacheable. It doesn't change a lot of other code, so there's nothing necessarily strange about cache initialization being done anyway, and it's perfectly normal and expected that the same memory be seen at 0x80800000 as at 0xa0800000.
----- Original Message -----
From: sathesh babu
To: sathesh babu ; mlachwani ; [email protected] ; [email protected]
Cc: [email protected]
Sent: Thursday, January 11, 2007 1:02 AM
Subject: Re: Running linux-2.6.18 kernel in uncache area
Hi,
Could you please respond on this.
Regards,
Sathesh
sathesh babu <[email protected]> wrote:
Hi,
I would like to runlinux-2.6.18 kernel in uncached area.I tried it by enabling CONFIG_UNCACHE.But still i am doubting it is running in cache area.
Is there a way to know the kernel is running in cache or uncache area?
While going thru mailing list i read that there is a patch to run the kernel in uncache area.
If you have could you please pass to me.
Regards,
Sathesh
sathesh babu <[email protected]> wrote:
Hi Mlachwani,
I tried by enabling Uncache option.
But how do i know kernel runs from the uncache area.
During the boot process , i checked the boot up message and observed that kernel still calling cache initilization routines.
I did quick test :
- Read the 10 words of uncached area start from 0xa0800000
- Read the 10 word of cached area start ftom 0x80800000
I checked the contents in the both areas and are same.
That means cache is not disabled properly.
Is there anyway i can check the kernel is running from cache or uncached area?
Any other options should i enable/disable to run kernel from uncached area.
Regards,
Sathesh
BOOTUP MESSAGES:
--------------------------------------------------------------------
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initial ramdisk at: 0x80000000 (0 bytes)
Built 1 zonelists. Total pages: 8192
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 myfs_start=0xbfA800 00 rootfstype=jffs2
Primary instruction cache 16kB, linesize 32 bytes.
Primary data cache 8kB, linesize 32 bytes.
Fusiv LX4189 CACHES
Synthesized TLB refill handler (17 instructions).
Synthesized TLB load handler fastpath (31 instructions). Synthesized TLB store handler fastpath (31 instructions).
th (25 instructions).
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28864k/32768k available (2367k kernel code, 3888k reserved, 401k data, 1 56k init, 0k highmem)
Mount-cache hash table entries: 512
---------------------------------------------------------------------
mlachwani <[email protected]> wrote:
sathesh babu wrote:
> Hi,
> I would like to know is there any configuration option ( using make > menuconfig) to turn off cache in linux-2.6.18 kernel.
>
> Basically i would like to run kernel in uncache area.
>
> I see there is an option in the in the menuconfig under
> Kernel hacking
> [ ] Run uncached (NEW)
> Sould i need to enable this option to run in the uncahe area? >
> Could you please tell me how to disable cache and run the kernel in > uncache area.
>
>
>
> Regards,
> Sathesh
>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > Download Now! http://messenger.yahoo.com/download.php
>
That should be it. Did you try with that option MIPS_UNCACHED enabled?
thanks,
Manish Lachwani
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
--------------------------------------------------------------------------
Here's a new way to find what you're looking for - Yahoo! Answers
----------------------------------------------------------------------------
Here's a new way to find what you're looking for - Yahoo! Answers
------------------------------------------------------------------------------
Here's a new way to find what you're looking for - Yahoo! Answers