Subject: RE: Evbarm questions
To: 'McGranaghan, Sean' <SMcGranaghan@vanteon.com>
From: Hsu, Cheng-Hsin (Cheng-Hsin) <chs@lucent.com>
List: port-arm
Date: 02/16/2004 10:15:49
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_01C3F49F.C2275B84
Content-Type: text/plain;
	charset="iso-8859-1"

Hello Sean,
 
    About (1),  it's probably related to KERNEL_PT_KERNEL_NUM.
 
HTH,
Bear.
 

-----Original Message-----
From: McGranaghan, Sean [mailto:SMcGranaghan@vanteon.com]
Sent: Sunday, February 15, 2004 6:16 PM
To: 'netbsd-help@NetBSD.ORG'; 'port-arm@NetBSD.ORG'
Subject: Evbarm questions


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_01C3F49F.C2275B84
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.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=992450915-16022004><FONT face=Arial color=#0000ff size=2>Hello 
Sean,</FONT></SPAN></DIV>
<DIV><SPAN class=992450915-16022004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=992450915-16022004>&nbsp;&nbsp;&nbsp; <FONT face=Arial><FONT 
color=#0000ff size=2>About (1),&nbsp; it's probably&nbsp;related to 
KERNEL_PT_KERNEL_NUM.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=992450915-16022004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=992450915-16022004><FONT face=Arial color=#0000ff 
size=2>HTH,</FONT></SPAN></DIV>
<DIV><SPAN class=992450915-16022004><FONT face=Arial color=#0000ff 
size=2>Bear.</FONT></SPAN></DIV>
<DIV><SPAN class=992450915-16022004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> McGranaghan, Sean 
  [mailto:SMcGranaghan@vanteon.com]<BR><B>Sent:</B> Sunday, February 15, 2004 
  6:16 PM<BR><B>To:</B> 'netbsd-help@NetBSD.ORG'; 
  'port-arm@NetBSD.ORG'<BR><B>Subject:</B> Evbarm questions<BR><BR></FONT></DIV>
  <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></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C3F49F.C2275B84--