Re: [M-Labs devel] NetBSD kernel booting on lm32

Yann Sionneau <[email protected]> Fri, 21 Mar 2014 19:05:49 +0100
Newsgroups gmane.os.netbsd.devel.kernel,gmane.os.netbsd.devel.ports,gmane.comp.multimedia.milkymist.devel
Message-ID <CACi+aWbsWf0eus_PNAQfagWuzvmhvbMVGhUOcZ_LJtt9ySDnRw@mail.gmail.com>
--20cf3040e42e5d07ae04f521bc93
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Le 21 mars 2014 18:16, "Christos Zoulas" <[email protected]> a =E9crit :
>
> In article <CACi+aWYQ9x8c2W6M7qwzOdr=3D
[email protected]>,
> Yann Sionneau  <[email protected]> wrote:
> >2014-03-20 10:38 GMT+01:00 Yann Sionneau
> ><[email protected]>:
> >> Hi,
> >>
> >> I am very happy to announce that the NetBSD/lm32 project is making goo=
d
> >> progress :)
> >>
> >>[...]
> >>
> >> Regards,
> >>
> >
> >Hi NetBSD guys,
> >
> >Is this normal I get that much error messages about sysctl_createv ?
> >Am I doing something wrong here?
> >
> >seems return 2 means "ENOENT" when doing the sysctl_locate() from
> >within sysctl_createv().
> >
> >Moreover, when adding "options INET" in my kernel config, then
> >arp_init() is doing a lot of sysctl_createv() one of them is filling a
> >"node" pointer with NULL, then this node is dereferenced later in
> >other calls to sysctl_createv(), I don't see exactly why this happens
> >( cf http://nxr.netbsd.org/xref/src/sys/netinet/if_arp.c#1631 ).
>
> Do you see the printf:
>
>                 printf("sysctl_createv: sysctl_locate(%s) returned %d\n",
>                     nnode.sysctl_name, error);
>
Yes that's exactly the printf I am seeing, I am using diagnostic and
debuglock options if that matters. I have seen such messages a bit while
googling, for instance in the boot of NetBSD/avr32 which have been posted
to the list.

> I don't see this in any of the kernels I boot..
>
> christos
>

--20cf3040e42e5d07ae04f521bc93
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">Le 21 mars 2014 18:16, &quot;Christos Zoulas&quot; &lt;<a hr=
ef=3D"mailto:[email protected]">[email protected]</a>&gt; a =E9crit :<b=
r>
&gt;<br>
&gt; In article &lt;CACi+aWYQ9x8c2W6M7qwzOdr=3D<a href=3D"mailto:L9cVZKZ_P4=
[email protected]">[email protected]<=
/a>&gt;,<br>
&gt; Yann Sionneau =A0&lt;<a href=3D"mailto:[email protected]">yann.s=
[email protected]</a>&gt; wrote:<br>
&gt; &gt;2014-03-20 10:38 GMT+01:00 Yann Sionneau<br>
&gt; &gt;&lt;<a href=3D"mailto:[email protected]">yann.sionneau@gmail=
.com</a>&gt;:<br>
&gt; &gt;&gt; Hi,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I am very happy to announce that the NetBSD/lm32 project is m=
aking good<br>
&gt; &gt;&gt; progress :)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;[...]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Regards,<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;Hi NetBSD guys,<br>
&gt; &gt;<br>
&gt; &gt;Is this normal I get that much error messages about sysctl_createv=
 ?<br>
&gt; &gt;Am I doing something wrong here?<br>
&gt; &gt;<br>
&gt; &gt;seems return 2 means &quot;ENOENT&quot; when doing the sysctl_loca=
te() from<br>
&gt; &gt;within sysctl_createv().<br>
&gt; &gt;<br>
&gt; &gt;Moreover, when adding &quot;options INET&quot; in my kernel config=
, then<br>
&gt; &gt;arp_init() is doing a lot of sysctl_createv() one of them is filli=
ng a<br>
&gt; &gt;&quot;node&quot; pointer with NULL, then this node is dereferenced=
 later in<br>
&gt; &gt;other calls to sysctl_createv(), I don&#39;t see exactly why this =
happens<br>
&gt; &gt;( cf <a href=3D"http://nxr.netbsd.org/xref/src/sys/netinet/if_arp.=
c#1631">http://nxr.netbsd.org/xref/src/sys/netinet/if_arp.c#1631</a> ).<br>
&gt;<br>
&gt; Do you see the printf:<br>
&gt;<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 printf(&quot;sysctl_createv: sysctl_lo=
cate(%s) returned %d\n&quot;,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 nnode.sysctl_name, error);<br>
&gt;<br>
Yes that&#39;s exactly the printf I am seeing, I am using diagnostic and de=
buglock options if that matters. I have seen such messages a bit while goog=
ling, for instance in the boot of NetBSD/avr32 which have been posted to th=
e list.<br>
</p>
<p dir=3D"ltr">&gt; I don&#39;t see this in any of the kernels I boot..<br>
&gt;<br>
&gt; christos<br>
&gt;<br>
</p>

--20cf3040e42e5d07ae04f521bc93--