Subject: Evbarm questions
To: 'netbsd-help@NetBSD.ORG' <netbsd-help@NetBSD.org>
From: McGranaghan, Sean <SMcGranaghan@vanteon.com>
List: port-arm
Date: 02/15/2004 18:15:35
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3F419.9D9F7A20
Content-Type: text/plain;
	charset="iso-8859-1"

Hello all,
 
I have recently started working with the evbarm port of NetBSD. Please feel
free to re-direct me to an appropriate list for followup if needed.
 
I have two questions:
 
1.) I have configured a kernel to boot from a ramdisk. The default size is
8192 blocks (4M). If I try and increase the size of the ramdisk my new
kernel panics with the following error:
 
"panic: pmap_map_chunk: no L2 table for VA 0xc0800000
 Undefined instruction exception!!!"
 
I have set MEMORY_DISK_ROOT_SIZE=16384 in my config file and set the image
size to 8192k for the makefs command. Am I missing something else?
 
2.) I have been trying to build a simple LKM under evbarm. When I use
modload to load a skeleton driver ld segfaults: 
 
"ld -R /dev/ksyms -e fibo_lkmentry -o /tmp/fibo -Ttext 0x0 /tmp/fibo.o
 [1] Segmentation fault (core dumped) ld -R /dev/ksyms...
 modload: can't prelink 'fibo.o' creating 'fibo'
 
After searching the archives I found several emails and a bug report that
mention issues with LKM's for evbarm. Issue # port-arm:22015 specifically.
What is the current status of LKM's and evbarm? Is this a bug in ld?
 
 
Any help is appreciated,
Sean
 
 

------_=_NextPart_001_01C3F419.9D9F7A20
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>Hello 
all,</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>I have recently 
started working with the evbarm port of NetBSD. Please feel free to re-direct me 
to an appropriate list for followup if needed.</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>I have two 
questions:</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>1.) I have 
configured a kernel to boot from a ramdisk. The default size is 8192 blocks 
(4M). If I try and increase the size of the ramdisk my new kernel panics with 
the following error:</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>"panic: 
pmap_map_chunk: no L2 table for VA 0xc0800000</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>&nbsp;Undefined 
instruction exception!!!"</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>I have set 
MEMORY_DISK_ROOT_SIZE=16384 in my config file and set the image size to 8192k 
for the makefs command. Am I missing something else?</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>2.) I have been 
trying to build a simple LKM under evbarm. When I use modload to load a skeleton 
driver ld segfaults: </FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>"ld -R /dev/ksyms -e 
fibo_lkmentry -o /tmp/fibo -Ttext 0x0 /tmp/fibo.o</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>&nbsp;[1] 
Segmentation fault (core dumped) ld -R /dev/ksyms...</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>&nbsp;modload: can't 
prelink 'fibo.o' creating 'fibo'</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>After searching the 
archives I found several emails and a bug report that mention issues with LKM's 
for evbarm. Issue # port-arm:22015 specifically. What is the current status of 
LKM's and evbarm? Is this a bug in ld?</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial size=2>Any help is 
appreciated,</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2>Sean</FONT></SPAN></DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=805355022-15022004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C3F419.9D9F7A20--