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