Donald T Hayford | 4 May 2008 06:51

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

moonchildren wrote:
> Don,
>
> First I would like to thank you for the excellent explanation about 
> how to put NetBSD on NSLU2.
> I have followed your instructions to the letter.
>
> One thing that I was missing was the building of the tools  I have 
> done this with "./build.sh -u -m evbarm -a armeb tools"
> But after a days work which I enjoyed  I got nothing but  a error  
> about L2  ?
>
> I don't know what this means do you have any idea what went wrong or 
> even better do you have the solution?
>
> RedBoot(tm) bootstrap and debug environment 
> [ROMRAM]                                                                                     
>
> Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 
> 2004                                                                   
>                                                                                                                                         
>
> Platform: IXDP425 Development Platform 
> (XScale)                                                                                          
>
> Copyright (C) 2000, 2001, 2002, Red Hat, 
> Inc.                                                                                            
>
>                                                                                                                                         
>
(Continue reading)

Chris Gilbert | 4 May 2008 08:59
Picon

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

Donald T Hayford wrote:
> moonchildren wrote:
>> Don,
>>
>> First I would like to thank you for the excellent explanation about
>> how to put NetBSD on NSLU2.
>> I have followed your instructions to the letter.
>>
>> One thing that I was missing was the building of the tools  I have
>> done this with "./build.sh -u -m evbarm -a armeb tools"
>> But after a days work which I enjoyed  I got nothing but  a error 
>> about L2  ?
>>
>> I don't know what this means do you have any idea what went wrong or
>> even better do you have the solution?
>>
>> RedBoot(tm) bootstrap and debug environment
>> [ROMRAM]                                                                                    
>>
>> Red Hat certified release, version 1.92 - built 15:16:07, Feb  3
>> 2004                                                                  
>>                                                                                                                                        
>>
>> Platform: IXDP425 Development Platform
>> (XScale)                                                                                         
>>
>> Copyright (C) 2000, 2001, 2002, Red Hat,
>> Inc.                                                                                           
>>
>>                                                                                                                                        
(Continue reading)

hamajima | 4 May 2008 09:05
Picon

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

>> panic: pmap_map_chunk: no L2 table for VA 0xc0400000 

This panic is kernel virtual address mismatch. You need to rewrite the
following to the same values.

<sys/arch/evbarm/include/vmparam.h>
#ifdef KERNEL_BASE_EXT
#define KERNEL_BASE             KERNEL_BASE_EXT
#else
#define KERNEL_BASE             0x80000000
#endif

<sys/arch/evbarm/conf/mk.nslu2>
KERNEL_BASE_VIRT=0xc0200000

moonchildren | 4 May 2008 21:38
Picon

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

All,

Thank you for the quick responds excellent.

Don, I have used the following instructions.
http://mail-index.netbsd.org/port-arm/2008/01/26/0003.html

Hamajima, I have checked the files and they are identical.

Chris, I will start all over again if problems reappear  then I will 
give the VERBOSE_INIT_ARM a try.

ALL, I didn't knew about the existents of the article on how to install 
NetBSD on NSLU2.
I will give this installation instruction another try.

Again thank you all  for your responds, I will keep you posted on my 
progress if you like of course.

Regards,

René

Donald T Hayford wrote:
> moonchildren wrote:
>> Don,
>>
>> First I would like to thank you for the excellent explanation about 
>> how to put NetBSD on NSLU2.
>> I have followed your instructions to the letter.
(Continue reading)

Donald T Hayford | 6 May 2008 02:15

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

Chris Gilbert wrote:
> Chris Gilbert wrote:
>   
>> moonchildren <at> orange.nl wrote:
>>     
>>> Don, Chris,
>>>
>>>       
>>> "Can you enable VERBOSE_INIT_ARM by adding an options VERBOSE_INIT_ARM to
>>> your kernel config.  It'll give more tracing during bootup"
>>>
>>> To be honest I don't know how to do That
>>> Chris: can you give me a short explanation on how to do that if building
>>> is possible on "Fedora 8" of course.
>>>       
>> Hi René,
>>
>> uncomment the line:
>> options VERBOSE_INIT_ARM
>> from the kernel config file (NSLU2), and rebuild (you must do a clean
>> build, otherwise the option won't be picked up) the kernel.
>>
>> In theory building on fedora core should be fine, we support cross
>> compilation.
>>
>> I suspect that the kernel has sneaked over the 4MB size boundary, and
>> that's what's trigger the problem (I saw this on acorn32 a while back)
>> However I can't see how that's kicking in as the code looks to (but I
>> could be mis-reading it) setup 16MB of space for the kernel.
>>     
(Continue reading)

Donald T Hayford | 6 May 2008 02:25

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

Donald T Hayford wrote:
> Chris Gilbert wrote:
>> Chris Gilbert wrote:
>>  
>>> moonchildren <at> orange.nl wrote:
>>>    
>>>> Don, Chris,
>>>>
>>>>       "Can you enable VERBOSE_INIT_ARM by adding an options 
>>>> VERBOSE_INIT_ARM to
>>>> your kernel config.  It'll give more tracing during bootup"
>>>>
>>>> To be honest I don't know how to do That
>>>> Chris: can you give me a short explanation on how to do that if 
>>>> building
>>>> is possible on "Fedora 8" of course.
>>>>       
>>> Hi René,
>>>
>>> uncomment the line:
>>> options VERBOSE_INIT_ARM
>>> from the kernel config file (NSLU2), and rebuild (you must do a clean
>>> build, otherwise the option won't be picked up) the kernel.
>>>
>>> In theory building on fedora core should be fine, we support cross
>>> compilation.
>>>
>>> I suspect that the kernel has sneaked over the 4MB size boundary, and
>>> that's what's trigger the problem (I saw this on acorn32 a while back)
>>> However I can't see how that's kicking in as the code looks to (but I
(Continue reading)

hamajima | 6 May 2008 05:26
Picon

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

> kernsize=0x402e0144

This panic is kernel virtual address mismatch.
0x402e0144 == (0xc0000000 - 0x80000000) + real_kernel_size

Please send-pr.

Steve Woodford | 6 May 2008 11:25
Picon

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

On Sunday 04 May 2008 05:51:48 Donald T Hayford wrote:
> moonchildren wrote:

> > But after a days work which I enjoyed  I got nothing but  a error
> > about L2  ?

This error is the result of the install kernel image being too large for 
the number of statically allocated (at boot time) L2 entries.

It was always my intention to make this runtime-configurable according 
to the kernel size, but I ran out of round tuits.

The fix is a simple source modification, but I don't have the details 
offhand. I'll try to recall what it is and get back to you.

Cheers, Steve

Mikko Rapeli | 6 May 2008 12:45

Re: thumb compilation

On Wed, Apr 30, 2008 at 07:31:21AM -0700, Matt Thomas wrote:
> I have some thumb changes for userspace but I haven't merged them in  
> yet.

Any chance of having a sneak preview of those changes?

In lib/libc I see only two issues coming up when building with -k keep
going and grepping the build log with Error:

/tmp/ccQLOoo3.s:126: Error: bad instruction `swp r0,r3,[r2]'
*** [atomic_init_testset.o] Error code 1
/usr/src/netbsd/matt-armv6/src/lib/libc/arch/arm/gen/_setjmp.S:71:
Error: bad range in register list -- `pop {r7-r7}'
*** [_setjmp.o] Error code 1
/tmp/ccLQYsIw.s:159: Error: bad instruction `swp r0,r3,[r2]'
*** [atomic_init_testset.so] Error code 1
/usr/src/netbsd/matt-armv6/src/lib/libc/arch/arm/gen/_setjmp.S:71:
Error: bad range in register list -- `pop {r7-r7}'
*** [_setjmp.so] Error code 1

-Mikko

Rafal Boni | 6 May 2008 14:09
Picon
Favicon

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000

Steve Woodford wrote:
> On Sunday 04 May 2008 05:51:48 Donald T Hayford wrote:
>> moonchildren wrote:
> 
>>> But after a days work which I enjoyed  I got nothing but  a error
>>> about L2  ?
> 
> This error is the result of the install kernel image being too large for 
> the number of statically allocated (at boot time) L2 entries.
> 
> It was always my intention to make this runtime-configurable according 
> to the kernel size, but I ran out of round tuits.
> 
> The fix is a simple source modification, but I don't have the details 
> offhand. I'll try to recall what it is and get back to you.

See e.g. 
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/hpcarm/hpcarm/hpc_machdep.c.diff?r1=1.83&r2=1.84&f=h

For the NSLU2 all you should need to do is bump KERNEL_PT_KERNEL_NUM in 
sys/arch/evbarm/nslu2/nslu2_machdep.c (make it 6, for example).  The 
nicer fix is to steal the auto-tuning code from (IIRC) the evbarm 
generic init_arm() code [common_init_arm?], so you don't have to keep 
doing this, but the 1st fix is definitely effective.

Wasn't the fact that it spat out that many 'S'es worrisome?  It's a 
section supposed to map a whole 1MB chunk?  Maybe that's a red herring 
though.

--rafal
(Continue reading)


Gmane