* Sandbox Segfault
@ 2011-07-15 7:13 Matthias Suthe
2011-07-15 8:03 ` Sascha Hauer
2011-07-15 8:46 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Matthias Suthe @ 2011-07-15 7:13 UTC (permalink / raw)
To: barebox
[-- Attachment #1.1: Type: text/plain, Size: 1341 bytes --]
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 = hf;
- strcpy(dev->name, "hostfile");
+ /* Registering 2 devices with same name creates problem? */
+ strcpy(dev->name, hf->filename);
dev->size = hf->size;
dev->map_base = 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 = hf->size;
+ dev->id = -1;
dev->map_base = hf->map_base;
return register_device(dev);
help.
I would be grateful for any help.
With kind regards
Matthias Suthe
[-- Attachment #1.2: Type: text/html, Size: 6346 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sandbox Segfault
2011-07-15 7:13 Sandbox Segfault Matthias Suthe
@ 2011-07-15 8:03 ` Sascha Hauer
2011-07-15 8:46 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2011-07-15 8:03 UTC (permalink / raw)
To: Matthias Suthe; +Cc: barebox
On Fri, Jul 15, 2011 at 09:13:41AM +0200, Matthias Suthe wrote:
> 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 = hf;
>
> - strcpy(dev->name, "hostfile");
> + /* Registering 2 devices with same name creates problem? */
> + strcpy(dev->name, hf->filename);
Do you need this hunk or is the change below enough?
> dev->size = hf->size;
> dev->map_base = 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 = hf->size;
> + dev->id = -1;
> dev->map_base = hf->map_base;
>
> return register_device(dev);
>
> help.
>
>
>
> I would be grateful for any help.
>
>
>
>
>
> With kind regards
>
>
>
> Matthias Suthe
>
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sandbox Segfault
2011-07-15 7:13 Sandbox Segfault Matthias Suthe
2011-07-15 8:03 ` Sascha Hauer
@ 2011-07-15 8:46 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2011-07-15 8:46 UTC (permalink / raw)
To: Matthias Suthe; +Cc: barebox
>>>>> "Matthias" == Matthias Suthe <msuthe@mut-group.com> writes:
Matthias> Hi,
Matthias> I?m trying to start barebox is described in the First Steps
Matthias> chapter of the barebox documentation, but I get a segfault.
Matthias> I?m using barebox-2011.05.0
Maybe you are hitting this issue?
http://lists.infradead.org/pipermail/barebox/2011-May/003503.html
Could you try 2011.07 instead?
--
Bye, Peter Korsgaard
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-15 8:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-15 7:13 Sandbox Segfault Matthias Suthe
2011-07-15 8:03 ` Sascha Hauer
2011-07-15 8:46 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox