[Yaffs] mkyaffs2image generate wrong image Failed to execute…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: BI Mingliang
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] mkyaffs2image generate wrong image Failed to execute /linuxrc. Attempting defaults...
Hello All,

It's really disappointing that we can't get a quick response in yaffs mail group. 
This issue blocked me several weeks and we can't find any update in yaffs repository.
What's more, many developers think there is something wrong in the mkyaffs2image.
Usually, during linux booting, we get the following warning which is related with this tool.
 
For example:

s3c-rtc s3c2410-rtc: setting system clock to 2000-01-01 02:27:02 UTC (946693622)
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs2 filesystem) on device 31:2.
Freeing init memory: 136K
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux 

Documentation/init.txt for guidance.
[<c0019960>] (unwind_backtrace+0x0/0xf0) from [<c03344e8>] (panic+0x58/0x18c)
[<c03344e8>] (panic+0x58/0x18c) from [<c00085c4>] (init_post+0x7c/0xcc)
[<c00085c4>] (init_post+0x7c/0xcc) from [<c0452838>] (kernel_init+0xe4/0x114)


Then I trace the error information in fs/exec.c, in function do_execve_common, there is wrong file ponter(IS_ERR). In NFS mode, I mount the yaffs2 block to mnt directory, and there is only lost+found folders, all other folders can't displayed. So, it's quite possible that this tool generate a wrong yaffs2 image in the former version. And the latest version can' compile. 

Could anyone help me? Sometime I want abandon the yaffs FS, because UBIFS works very well every time.
We need to do too much work to make the latest yaffs work well in the latest linux kernel. 
----------------------------------------------------------------------------------
1448 static int do_execve_common(const char *filename,
1449                 struct user_arg_ptr argv,
1450                 struct user_arg_ptr envp,
1451                 struct pt_regs *regs)


1495     file = open_exec(filename);
1496     retval = PTR_ERR(file);
1497     if (IS_ERR(file))
1498         goto out_unmark;

Another place to view the history for the issue.
http://blog.gmane.org/gmane.linux.file-systems.yaffs/month=20120301



Best Regards,
Bi Mingliang (EXT:2783-7314) 

-----Original Message-----
From:  [mailto:yaffs-bounces@lists.aleph1.co.uk] On Behalf Of 
Sent: 2012年3月21日 20:00
To: 
Subject: yaffs Digest, Vol 82, Issue 6

Send yaffs mailing list submissions to
    

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
or, via email, send a message with subject or body 'help' to
    

You can reach the person managing the list at
    

When replying, please edit your Subject line so it is more specific
than "Re: Contents of yaffs digest..."


Today's Topics:

   1. mkyaffsimage.c:286: error: ?struct yaffs_obj_hdr? has no
      member named ?file_size? (BI Mingliang)


----------------------------------------------------------------------

Message: 1
Date: Tue, 20 Mar 2012 13:03:10 +0000
From: BI Mingliang <>
To: "" <>
Subject: [Yaffs] mkyaffsimage.c:286: error: ?struct yaffs_obj_hdr? has
    no member named ?file_size?
Message-ID:
    <>
    
Content-Type: text/plain; charset="utf-8"

Hello All,
There is a big error while compiling the mkyaffs2image.
Could anyone help me ? Thank you in advance ?

[brightness@localhost utils]$ pwd

/home/brightness/TQ2440/yaffs2-7862c13/utils

[brightness@localhost utils]$ make

ln -s ../yaffs_packedtags2.c yaffs_packedtags2.c

ln -s ../yaffs_ecc.c yaffs_ecc.c

ln -s ../yaffs_ecc.h yaffs_ecc.h

ln -s ../yaffs_guts.h yaffs_guts.h

ln -s ../yaffs_packedtags2.h yaffs_packedtags2.h

ln -s ../yaffs_trace.h yaffs_trace.h

ln -s ../direct/yaffs_hweight.c yaffs_hweight.c

ln -s ../direct/yportenv.h yportenv.h

ln -s ../direct/yaffs_hweight.h yaffs_hweight.h

ln -s ../direct/yaffs_list.h yaffs_list.h

gcc -c -O2 -Wall -DCONFIG_YAFFS_UTIL -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline mkyaffsimage.c -o mkyaffsimage.o

mkyaffsimage.c:51: warning: redundant redeclaration of ?n_obj?

mkyaffsimage.c:48: note: previous definition of ?n_obj? was here

mkyaffsimage.c: In function ?write_chunk?:

mkyaffsimage.c:231: warning: declaration of ?obj_id? shadows a global declaration

mkyaffsimage.c:49: warning: shadowed declaration is here

mkyaffsimage.c: In function ?object_header_little_to_big_endian?:

mkyaffsimage.c:286: error: ?struct yaffs_obj_hdr? has no member named ?file_size?

mkyaffsimage.c:286: error: ?struct yaffs_obj_hdr? has no member named ?file_size?

mkyaffsimage.c:286: error: ?struct yaffs_obj_hdr? has no member named ?file_size?

mkyaffsimage.c:286: error: ?struct yaffs_obj_hdr? has no member named ?file_size?

mkyaffsimage.c:286: error: ?struct yaffs_obj_hdr? has no member named ?file_size?

mkyaffsimage.c: In function ?write_object_header?:

mkyaffsimage.c:307: warning: declaration of ?obj_id? shadows a global declaration

mkyaffsimage.c:49: warning: shadowed declaration is here

mkyaffsimage.c:337: error: ?struct yaffs_obj_hdr? has no member named ?file_size?

make: *** [mkyaffsimage.o] Error 1Best Regards,
Bi Mingliang (EXT:2783-7314)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aleph1.co.uk/lurker/list/yaffs.html/attachments/20120320/b4c6dc85/attachment.html>

------------------------------

_______________________________________________
yaffs mailing list

http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs


End of yaffs Digest, Vol 82, Issue 6
************************************