Re: Relocating bootwrapper causes kernel panic

2010-08-08 Thread Shawn Jin
>> > >> I think the cause is clear now. But how to fix it? Two questions: >> > >> 2. If the DTLB miss exception handler is not the right guy to load a >> > >> proper TLB entry, how can I set one entry based on the link_address >> > >> and the address of the flat dt blob? >> > > >> > > Given how ear

Re: Relocating bootwrapper causes kernel panic

2010-08-06 Thread Benjamin Herrenschmidt
\ > Probably. You won't have any page tables yet, much less an entry for > the device tree. > > > >> I think the cause is clear now. But how to fix it? Two questions: > > >> 2. If the DTLB miss exception handler is not the right guy to load a > > >> proper TLB entry, how can I set one entry based

Re: Relocating bootwrapper causes kernel panic

2010-08-05 Thread Scott Wood
On Thu, 5 Aug 2010 11:33:44 -0700 Shawn Jin wrote: > >> > Before the flat tree was accessed, I checked the DTLB and didn't find > >> > any entry related to 0xc0be4300. After the exception, I found the > >> > following DTLBs. > >> > > >> > 30 : 02  c0be4000   4KB -- -> > >> > 31 : 00

Re: Relocating bootwrapper causes kernel panic

2010-08-05 Thread Shawn Jin
>> > Before the flat tree was accessed, I checked the DTLB and didn't find >> > any entry related to 0xc0be4300. After the exception, I found the >> > following DTLBs. >> > >> > 30 : 02  c0be4000   4KB -- -> >> > 31 : 00  fa00   8MB VI-S-M -> fa00 >> > >> > The DTLB#30 doesn't

Re: Relocating bootwrapper causes kernel panic

2010-08-05 Thread Scott Wood
On Thu, 5 Aug 2010 00:23:17 -0700 Shawn Jin wrote: > >> The flat tree located at 0xbe4300 as the kerne message showed. Why > >> cannot the kernel access this area? No TLB set for this area? > >> > >> <1>Unable to handle kernel paging request for data at address 0xc0be4308 > >> <1>Faulting instruc

Re: Relocating bootwrapper causes kernel panic

2010-08-05 Thread Shawn Jin
>> The flat tree located at 0xbe4300 as the kerne message showed. Why >> cannot the kernel access this area? No TLB set for this area? >> >> <1>Unable to handle kernel paging request for data at address 0xc0be4308 >> <1>Faulting instruction address: 0xc01fdabc >> <4>Oops: Kernel access of bad area,

Re: Relocating bootwrapper causes kernel panic

2010-08-04 Thread Shawn Jin
> I'm trying to relocate the bootwrapper from the default address > (0x40) to a higher address (e.g. 0x80) in order to support a > larger than 4MB initramfs. However the kernel panic when trying to > access the device tree blob which was relocated accordingly to a > higher address. The kern

Relocating bootwrapper causes kernel panic

2010-08-04 Thread Shawn Jin
Hi, I'm trying to relocate the bootwrapper from the default address (0x40) to a higher address (e.g. 0x80) in order to support a larger than 4MB initramfs. However the kernel panic when trying to access the device tree blob which was relocated accordingly to a higher address. The kernel me