Re: [uClinux-dev] romfs just won't start for me :-(

From: Matthias Welwarsky (matze@stud.fbi.fh-darmstadt.de)
Date: Tue Jul 23 2002 - 08:38:41 EDT


On Tuesday 23 July 2002 01:45, Greg Ungerer wrote:
> Hi Ilan,
>
> Ilan Pollak wrote:
> > I've built uClinux from the 20020701 distribution on AT91 (Atmel on
> > EB40LS).
> > Everything seems to work great, until the point uClinux tries to execve
> > the /sbin/init.
> > Then it fails gets to the 'panic' line.
> > I have an /sbin/init file in my romdisk.img created by the 'genromfs -v
> > -V "ROM Disk" -f romdisk.img -d romdisk 2> romdisk.map' command.
> > I've also tried cat-ting the 'romfs' out of the distribution's 'images'
> > directory.
> > You can see that uClinux mounts the romfs alright (by the address and
> > the size i see on screen).
> > however execve sets 'errno' to say: "filename points outside your
> > accessible address space".
> > i've also did 'mount -r -o loop -t romfs romfs.img /mnt/romfs' and i
> > found there sbin/init and bin/sh
> > any ideas ?
>
> What tool chain did you use?
>
> The problem with the console is usually because you are
> using an older genromfs that cannot create device nodes using
> the @ notation. Check what genromfs you are using.
>

There's an error in asm/uaccess.h for the DSC21 port, maybe the same it's the 
same for the atmel? Could you check if this patch fixes it?

Index: uaccess.h
===================================================================
RCS file: /var/cvs/uClinux-2.4.x/include/asm-armnommu/uaccess.h,v
retrieving revision 1.4
diff -u -r1.4 uaccess.h
--- uaccess.h	2002/04/11 01:31:45	1.4
+++ uaccess.h	2002/07/23 12:39:14
@@ -32,7 +32,7 @@
 extern unsigned long search_exception_table(unsigned long);
 
 #define get_ds()	(KERNEL_DS)
-#define get_fs()	(USER_DS) /* copied m68knommu --gmcnutt */
+#define get_fs()	(current->addr_limit) /* (USER_DS) copied m68knommu 
--gmcnutt */
 #define segment_eq(a,b)	((a) == (b))
 
 #include <asm/proc/uaccess.h>



-- 
Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze@stud.fbi.fh-darmstadt.de

"all software sucks equally, but some software is more equal"


This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/

This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:35 EDT