Re: Not getting login prompt after CPU entered into cpu_idle() state

2012-07-06 Thread sk.syed2
> We are assuming that the kernel is completely booted, in 2.6.32 > kernel, without any issues as it entered into cpu_idle state. We are > guessing that there is an error in the file system sources (i.e. > sbin/init). Unfortunately, we do not have the sources for the > available file system and we

Re: Not getting login prompt after CPU entered into cpu_idle() state

2012-07-05 Thread sk.syed2
> Here are the final debug statements which we are seeing in the hyper terminal. Can you post the full logs WITHOUT your debug prints. What is the toolchain you are using? > If we load 2.6.10 kernel image, we are getting login prompt in the > hyper terminal on the same Phytec board. You can isol

Re: Req help - Panic in VFS mount(Cramfs)

2012-04-04 Thread sk.syed2
> Using ARM926e-js processor with 128MB SDRAM., Clock-33Mhz > > SDRAM Size = 128M > > > > CONFIG_PAGE_OFFSET = 0xc000 > > CONFIG_PHYS_OFFSET= 0x8000 > > > > Loading the cramfs  at 0x8200 > > Start address for kernel is 0x80008000 > > Commandline(atags address)   is 0x8100 > > > > Ke

Re: Issue with dcahe enabling.

2012-03-27 Thread sk.syed2
> Using ARM926e-js processor with 128MB SDRAM., Clock-33Mhz > > SDRAM Size = 128M > > > > CONFIG_PAGE_OFFSET = 0xc000 > > CONFIG_PHYS_OFFSET= 0x8000 > > > > Kernel Lowmem = 32M including 8M for initramfs (starting from  24M to 32M). > If SDRAM is 128MB why only 32M for lowmem? > This is d

Re: x86: Executing a raw vmlinux image (embedded environment)

2011-11-21 Thread sk.syed2
>       /vmlinux                                        2,629,659  bytes >       /vmlinux.o                                      2,889,050  bytes >       /arch/i386/boot/bzImage                         1,104,864  bytes >       /arch/x86/boot/bzImage                          1,104,864  bytes >      

Re: Evicting Anonymous pages.

2011-09-29 Thread sk.syed2
>  I am trying to understand the kernel page frame reclaiming > mechanism, but one thing's bothering me: > How does the kernel 'know' which anonymous pages to evict? In the LRU > scheme,  'referenced/used' information for each page is required > (AFAIK). But anonymous pages can be used by user proc

Re: Understanding framebuffer drivers

2011-05-08 Thread sk.syed2
Post your questions(be specific) to linux-fbdev-de...@lists.sourceforge.net they will quickly respond. Based on my previous exp. with them :) -syed ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/list

Re: ARM : Kernel : Setting up of MMU in head.S

2011-03-30 Thread sk.syed2
> The 2 lines above > 1:  orr    r3, r7, r5, lsl #20        @ flags + kernel base ==> Correct >     str    r3, [r4, r5, lsl #2]        @ identity mapping  ==> ?? > > create a section entry using index based on physical address. Lets say before mmu is turned on PC is at physical address XXX, also sa

Re: mapping address pointer to page structure

2011-03-30 Thread sk.syed2
> struct page *page = virt_to_page(skb->data); > int offset = (unsigned long) skb->data - (unsigned long) page_address(page); > skb_add_rx_frag(master_skb, skb_shinfo(master_skb)->nr_frags, page, offset, > skb->len) > . > . > is this the right way to do ? This will work if skb->len < PAGE_SIZE, oth

Re: [virtual memory] page_table_lock & mmap_sem

2011-03-29 Thread sk.syed2
On Tue, Mar 29, 2011 at 5:30 PM, Venkatram Tummala wrote: > Hi, > Why do we need both page_table_lock & mmap_sem in the kernel. Why isn't See linux/Documentation/vm/locking -syed ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lis

Re: mapping address pointer to page structure

2011-03-29 Thread sk.syed2
> . > struct page *page = virt_to_page(skb->data); If skb->data page aligned? > . > And can some one please tell what is the use of the functions like > virt_to_page and kmap_atomic_to_page, Generally to lock the page in memory(esp while doing dma) using get_page(). > i tried calling virt_to_page

Re: allocating memory at boot

2011-02-21 Thread sk.syed2
> > Is there any reason why this isn't a kconfig option? The memory/RAM related defaults are present in arch/arm/include/asm/memory.h. But you can override them by defining them in /arch/arm/mach-YOURMACHINE/include/mach/memory.h. I think the developers intended to keep it this way so machine spec

Re: allocating memory at boot

2011-02-18 Thread sk.syed2
> I have looked at the code for dma_alloc_coherent etc and it seems to me that > it's returning null because there isn't the space available to allocate the > requested memory. You might have to increase the consistent(or dma) memory size. In recent kernels its defined by CONSISTENT_DMA_SIZE (ach/

Re: allocating memory at boot

2011-02-17 Thread sk.syed2
> I'm currently trying to port a (currently for unreleased hardware and > under nda) driver from x86 to arm and in doing so I've run into a > problem with allocating memory using pci_alloc_consistent. Looking into > it I can't allocate more than 1MB whereas I need to allocate at least > 2MB of cont

Re: fixed memory bytes

2011-01-04 Thread sk.syed2
> Linux (compiler actually) supports C99 fixed-width types such as 8, > 16, 32, 64 bits. > Just look through the include/linux/types.h > and small example here: > http://lxr.linux.no/#linux+v2.6.36/arch/powerpc/boot/types.h#L8 >> while writing portable applications always remember that "unsigned l