From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mut-gw.mut-group.com ([212.144.235.26] helo=mut-fw.mut-group.com) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qhcgc-0001va-1w for barebox@lists.infradead.org; Fri, 15 Jul 2011 07:19:47 +0000 Received: from [192.168.20.11] (port=24268 helo=zcom02.mut-group.com) by mut-fw.mut-group.com with esmtp (Exim 4.69) (envelope-from ) id 1QhcPN-00020B-1G for barebox@lists.infradead.org; Fri, 15 Jul 2011 09:01:57 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 15 Jul 2011 09:13:41 +0200 Message-ID: From: "Matthias Suthe" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1390773394==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Sandbox Segfault To: barebox@lists.infradead.org This is a multi-part message in MIME format. --===============1390773394== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CC42BE.B9D59C27" This is a multi-part message in MIME format. ------_=_NextPart_001_01CC42BE.B9D59C27 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm trying to start barebox is described in the First Steps chapter of the barebox documentation, but I get a segfault. =20 I followed the User's Manual step by step and now I try to run=20 ./barebox -e env.bin -i cramfs.bin =20 Did I maybe miss something when creating the cramfs.bin? Do I need to put files into somedir? I'm using barebox-2011.05.0 OS: Debian 6.0.1 (squeeze)=20 Kernel: Linux 2.6.32-5-686-bigmem =20 Neither this patch: --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -107,7 +107,8 @@ int barebox_register_filedev(struct hf_platform_data *hf) =20 dev->platform_data =3D hf; =20 - strcpy(dev->name, "hostfile"); + /* Registering 2 devices with same name creates problem? */ + strcpy(dev->name, hf->filename); dev->size =3D hf->size; dev->map_base =3D hf->map_base; Nor this patch: --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -109,6 +109,7 @@ int barebox_register_filedev(struct hf_platform_data *hf) =20 strcpy(dev->name, "hostfile"); dev->size =3D hf->size; + dev->id =3D -1; dev->map_base =3D hf->map_base; =20 return register_device(dev); help. =20 I would be grateful for any help. =20 =20 With kind regards =20 Matthias Suthe =20 ------_=_NextPart_001_01CC42BE.B9D59C27 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’m trying to start barebox is described in the First = Steps chapter of the barebox documentation, but I get a = segfault.

 

I followed =
the User’s Manual step by step and now I try to run =
./barebox -e env.bin -i =
cramfs.bin
 
Did I =
maybe miss something when creating the cramfs.bin? Do I need to put =
files into somedir?
I’m =
using barebox-2011.05.0
OS: Debian =
6.0.1 (squeeze) 
Kernel: =
Linux 2.6.32-5-686-bigmem
 =

Neither this = patch:

--- =
a/arch/sandbox/board/hostfile.c
+++ =
b/arch/sandbox/board/hostfile.c
@@ -107,7 +107,8 @@ int barebox_register_filedev(struct =
hf_platform_data *hf)
 
        =
dev->platform_data =3D hf;
 
-       strcpy(dev->name, =
"hostfile");
+       /* Registering 2 =
devices with same name creates problem? =
*/
+       strcpy(dev->name, =
hf->filename);
        dev->size =3D =
hf->size;
        dev->map_base =
=3D hf->map_base;

Nor this patch:

--- =
a/arch/sandbox/board/hostfile.c
+++ =
b/arch/sandbox/board/hostfile.c
@@ -109,6 +109,7 @@ int barebox_register_filedev(struct =
hf_platform_data *hf)
 =
        =
strcpy(dev->name, =
"hostfile");
 =
       dev->size =3D =
hf->size;
+       dev->id =3D =
-1;
 =
       dev->map_base =3D =
hf->map_base;
 =
        return =
register_device(dev);

help.

 

I would be grateful for any help.

 

 

With kind = regards

 

Matthias = Suthe

 

------_=_NextPart_001_01CC42BE.B9D59C27-- --===============1390773394== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1390773394==--