public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] redboot: e2fs_open: e2fs_inode_lookup failed
@ 2009-12-25  3:57 Sreeni Guduguntla
  2009-12-25 13:20 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Sreeni Guduguntla @ 2009-12-25  3:57 UTC (permalink / raw)
  To: ecos-discuss

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
Can't load 'hda1:/linux': Can't open file
RedBoot> load -r -v -b 0x800000 -m disk hda1:linux
e2fs_open: e2fs_inode_lookup failed
Can't load 'hda1:linux': Can't open file
RedBoot>  load -r -v -b 0x800000 -m disk "hda1:/linux"
e2fs_open: e2fs_inode_lookup failed
Can't load 'hda1:/linux': Can't open file
RedBoot>  load -r -v -b 0x800000 -m disk "hda1:linux"
e2fs_open: e2fs_inode_lookup failed
Can't load 'hda1:linux': Can't open file


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] redboot: e2fs_open: e2fs_inode_lookup failed
  2009-12-25  3:57 [ECOS] redboot: e2fs_open: e2fs_inode_lookup failed Sreeni Guduguntla
@ 2009-12-25 13:20 ` Gary Thomas
  2010-01-04 15:13   ` [ECOS] redboot: e2fs_open: e2fs_inode_lookup failed - Thanks! Carruth, Rusty
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2009-12-25 13:20 UTC (permalink / raw)
  To: Sreeni Guduguntla; +Cc: ecos-discuss

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
> Can't load 'hda1:/linux': Can't open file
> RedBoot>  load -r -v -b 0x800000 -m disk hda1:linux
> e2fs_open: e2fs_inode_lookup failed
> Can't load 'hda1:linux': Can't open file
> RedBoot>   load -r -v -b 0x800000 -m disk "hda1:/linux"
> e2fs_open: e2fs_inode_lookup failed
> Can't load 'hda1:/linux': Can't open file
> RedBoot>   load -r -v -b 0x800000 -m disk "hda1:linux"
> e2fs_open: e2fs_inode_lookup failed
> Can't load 'hda1:linux': Can't open file
>

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.


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [ECOS] redboot: e2fs_open: e2fs_inode_lookup failed - Thanks!
  2009-12-25 13:20 ` Gary Thomas
@ 2010-01-04 15:13   ` Carruth, Rusty
  0 siblings, 0 replies; 3+ messages in thread
From: Carruth, Rusty @ 2010-01-04 15:13 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-04 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-25  3:57 [ECOS] redboot: e2fs_open: e2fs_inode_lookup failed Sreeni Guduguntla
2009-12-25 13:20 ` Gary Thomas
2010-01-04 15:13   ` [ECOS] redboot: e2fs_open: e2fs_inode_lookup failed - Thanks! Carruth, Rusty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).