This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: redboot: e2fs_open: e2fs_inode_lookup failed - Thanks!


This is exactly the situation I've seen - formatting on a newer Ubuntu
system (8.10, in my case) will make a filesystem that cannot boot.
Formatting the CF card on an old SuSE system (9.3) works fine.  I've
been wondering what the problem was and how to 'fix' it.  

I am VERY glad to see the exact cause and the solution below, as that
means I can quit worrying about keeping the old 9.3 system around!

Note that if you ask your man pages about mke2fs (or better yet, ask
mke2fs what options it takes by saying 'mke2fs -?'), and it HAS the -I
option, then I'm pretty sure you must use that -I option.  

Note that there is also a '-i' option which is not the right one (in
other words, Gary's email client didn't uppercase it on him, as I had
originally thought).

Or, put another way - the way to see if your mke2fs is going to create a
filesystem you cannot boot from, just say 'mke2fs -?' and if it has the
'-I' option then it will (probably) create 256-byte inodes (which won't
boot).

Thanks for the solution, Gary!

Rusty Carruth


> -----Original Message-----
> To: Sreeni Guduguntla
> Cc: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] redboot: e2fs_open: e2fs_inode_lookup failed
> 
> On 12/24/2009 08:57 PM, Sreeni Guduguntla wrote:
> > Hi,
> >
> >   I am trying to load linux from CF on gateworks cambria board. I
get
> the following error. Any insight?
> >
> >   CF is formatted properly with ext2 file system in the concerned
> partition. I was able to mount CF on regular PC and was able to see
linux
> file.
> >
> > --Sreeni
> >
> > RedBoot(tm) bootstrap and debug environment [ROM]
> > Red Hat certified release, version 2.04.13 - built 18:57:33, Oct 24
2008
> >
> >
> > RedBoot>  disks
> > hda1     Linux
> > hda2     Linux
> > RedBoot>  load -r -v -b 0x800000 -m disk hda1:/linux
> > e2fs_open: e2fs_inode_lookup failed
> ...
> What version of EXT2 file system did you use?  The RedBoot EXT2
> driver is rather old and can only handle versions with i-nodes
> that are 128 bytes each (newer versions of EXT2 can use 256 byte
> i-nodes).
> 
> Try formatting your CF card with the "-I 128" option.
> 
> n.b. the first command you tried is the correct syntax - no quotes
> should be required.
> 
> 


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]