public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* From 2.4.9 to CVS ???
@ 2002-01-04 16:19 Patrick Allaire
  2002-01-04 16:24 ` Allen Curtis
  2002-01-04 16:40 ` Björn Eriksson
  0 siblings, 2 replies; 10+ messages in thread
From: Patrick Allaire @ 2002-01-04 16:19 UTC (permalink / raw)
  To: linux-mtd; +Cc: Patrick Allaire

Hi,

I was using the MTD drivers wich came with the linux 2.4.9 kernel source
code ... now I have moved to 2.4.17 but I have also updated the mtd drivers
with the CVS code, but I am no longer able to boot from my flash. 

MTD setup :

MTD support
MTD partitionning support
Direct char device access to MTD devices
Caching block device access to MTD devices
Detect flash chips by Common Flash Interface (CFI) probe

Support for ST flash chips (it a port from intel chips ... the only
difference, is in the writing because st flash does not support word write
... only complete block writes, its a cfi_cmdset_0020 )

CFI Flash device mapped on My Own Partitions ... same thing as 2.4.9


Every thing is compiled fine ... at boot up, MTD find(probe) my flash, it
printout the partioning it will do ... after that I get 

VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory : 36k freed
Kernel panic: No init found....


I know from the last line that the problems is that the kernel cannot find
/sbin/init ... but it is there, it is exactly the same cramfs I used on
2.4.9 when it was working !!! To be sure it was not corrupted, I redid the
flashing of the /dev/mtdblock0 with my cramfs file ... with the same
results.

Any idea ???

thank you.

Patrick Allaire
mailto:pallaire@gameloft.com
If you can see it, but it's not there, it's virtual. 
If you can't see it, but it is there, it's hidden. 
It you can't see it and it isn't there, it's gone.

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

* RE: From 2.4.9 to CVS ???
  2002-01-04 16:19 From 2.4.9 to CVS ??? Patrick Allaire
@ 2002-01-04 16:24 ` Allen Curtis
  2002-01-04 16:40 ` Björn Eriksson
  1 sibling, 0 replies; 10+ messages in thread
From: Allen Curtis @ 2002-01-04 16:24 UTC (permalink / raw)
  To: Patrick Allaire, linux-mtd

We just had a similar problem. Perhaps since you just upgraded to another
kernel version, this may be your issue too. Our problem was that a symbolic
link to the loader was missing. (this seems to change between versions or
architectures)

Check /lib on the working file system. You should find a symbolic link
something like:

ld.so.1 -> ld.so.2.2.3

Make sure this is not different than what you have in cramfs.

Hope this helps.

> -----Original Message-----
> From: linux-mtd-admin@lists.infradead.org
> [mailto:linux-mtd-admin@lists.infradead.org]On Behalf Of Patrick Allaire
> Sent: Friday, January 04, 2002 8:19 AM
> To: linux-mtd@lists.infradead.org
> Cc: Patrick Allaire
> Subject: From 2.4.9 to CVS ???
>
>
>
> Hi,
>
> I was using the MTD drivers wich came with the linux 2.4.9 kernel source
> code ... now I have moved to 2.4.17 but I have also updated the
> mtd drivers
> with the CVS code, but I am no longer able to boot from my flash.
>
> MTD setup :
>
> MTD support
> MTD partitionning support
> Direct char device access to MTD devices
> Caching block device access to MTD devices
> Detect flash chips by Common Flash Interface (CFI) probe
>
> Support for ST flash chips (it a port from intel chips ... the only
> difference, is in the writing because st flash does not support word write
> ... only complete block writes, its a cfi_cmdset_0020 )
>
> CFI Flash device mapped on My Own Partitions ... same thing as 2.4.9
>
>
> Every thing is compiled fine ... at boot up, MTD find(probe) my flash, it
> printout the partioning it will do ... after that I get
>
> VFS: Mounted root (cramfs filesystem) readonly.
> Freeing unused kernel memory : 36k freed
> Kernel panic: No init found....
>
>
> I know from the last line that the problems is that the kernel cannot find
> /sbin/init ... but it is there, it is exactly the same cramfs I used on
> 2.4.9 when it was working !!! To be sure it was not corrupted, I redid the
> flashing of the /dev/mtdblock0 with my cramfs file ... with the same
> results.
>
> Any idea ???
>
> thank you.
>
> Patrick Allaire
> mailto:pallaire@gameloft.com
> If you can see it, but it's not there, it's virtual.
> If you can't see it, but it is there, it's hidden.
> It you can't see it and it isn't there, it's gone.
>
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: From 2.4.9 to CVS ???
  2002-01-04 16:19 From 2.4.9 to CVS ??? Patrick Allaire
  2002-01-04 16:24 ` Allen Curtis
@ 2002-01-04 16:40 ` Björn Eriksson
  1 sibling, 0 replies; 10+ messages in thread
From: Björn Eriksson @ 2002-01-04 16:40 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]

On Fri, Jan 04, 2002 at 11:19:13AM -0500, Patrick Allaire wrote:
> Every thing is compiled fine ... at boot up, MTD find(probe) my flash, it
> printout the partioning it will do ... after that I get 
> 
> VFS: Mounted root (cramfs filesystem) readonly.
> Freeing unused kernel memory : 36k freed
> Kernel panic: No init found....
> 
> 
> I know from the last line that the problems is that the kernel cannot find
> /sbin/init ... but it is there, it is exactly the same cramfs I used on
> 2.4.9 when it was working !!! To be sure it was not corrupted, I redid the
> flashing of the /dev/mtdblock0 with my cramfs file ... with the same
> results.

 Are you sure you're not getting a 'bad cramfs magic' as well? I know I
did when I tried booting a 2.4.9 cramfs-initrd with a 2.4.17 kernel.
Anyways, read fs/cramfs/README:

  <<The disadvantage is that the generated cramfs cannot always be
    shared between different kernels, not even necessarily kernels of
    the same architecture if PAGE_CACHE_SIZE is subject to change
    between kernel versions.>>


-- 
//Björnen

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* RE: From 2.4.9 to CVS ???
@ 2002-01-04 16:51 Patrick Allaire
  2002-01-04 16:54 ` David Woodhouse
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick Allaire @ 2002-01-04 16:51 UTC (permalink / raw)
  To: Björn Eriksson, linux-mtd

No I dont have 'bad cramfs magic' !!! I tought it could be the case ... but
I looked at the mkcramfs.c from the 2.4.9 and 2.4.17 version and there is no
difference So the generated code should be the same.

Patrick Allaire
mailto:pallaire@gameloft.com
If you can see it, but it's not there, it's virtual. 
If you can't see it, but it is there, it's hidden. 
It you can't see it and it isn't there, it's gone.



> -----Original Message-----
> From: Björn Eriksson [mailto:mdeans@algonet.se]
> Sent: January 4, 2002 11:40 AM
> To: linux-mtd@lists.infradead.org
> Subject: Re: From 2.4.9 to CVS ???
> 
> 
> On Fri, Jan 04, 2002 at 11:19:13AM -0500, Patrick Allaire wrote:
> > Every thing is compiled fine ... at boot up, MTD 
> find(probe) my flash, it
> > printout the partioning it will do ... after that I get 
> > 
> > VFS: Mounted root (cramfs filesystem) readonly.
> > Freeing unused kernel memory : 36k freed
> > Kernel panic: No init found....
> > 
> > 
> > I know from the last line that the problems is that the 
> kernel cannot find
> > /sbin/init ... but it is there, it is exactly the same 
> cramfs I used on
> > 2.4.9 when it was working !!! To be sure it was not 
> corrupted, I redid the
> > flashing of the /dev/mtdblock0 with my cramfs file ... with the same
> > results.
> 
>  Are you sure you're not getting a 'bad cramfs magic' as 
> well? I know I
> did when I tried booting a 2.4.9 cramfs-initrd with a 2.4.17 kernel.
> Anyways, read fs/cramfs/README:
> 
>   <<The disadvantage is that the generated cramfs cannot always be
>     shared between different kernels, not even necessarily kernels of
>     the same architecture if PAGE_CACHE_SIZE is subject to change
>     between kernel versions.>>
> 
> 
> -- 
> //Björnen
> 

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

* Re: From 2.4.9 to CVS ???
  2002-01-04 16:51 Patrick Allaire
@ 2002-01-04 16:54 ` David Woodhouse
  0 siblings, 0 replies; 10+ messages in thread
From: David Woodhouse @ 2002-01-04 16:54 UTC (permalink / raw)
  To: Patrick Allaire; +Cc: Björn Eriksson, linux-mtd

pallaire@gameloft.com said:
>  No I dont have 'bad cramfs magic' !!! I tought it could be the case
> ... but I looked at the mkcramfs.c from the 2.4.9 and 2.4.17 version
> and there is no difference So the generated code should be the same. 

P'raps we started paying attention to execute bits on libraries between 
2.4.9 and 2.4.17? I thought we did that a long time ago though. 

Put a statically linked shell in the cramfs and boot with that as init. 
Then try running /sbin/init and see what errors you get.


--
dwmw2

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

* RE: From 2.4.9 to CVS ???
@ 2002-01-04 17:01 Patrick Allaire
  2002-01-04 17:01 ` David Woodhouse
  2002-01-04 17:04 ` Allen Curtis
  0 siblings, 2 replies; 10+ messages in thread
From: Patrick Allaire @ 2002-01-04 17:01 UTC (permalink / raw)
  To: David Woodhouse, Patrick Allaire; +Cc: Björn Eriksson, linux-mtd

I really dont understand ... I have a sh link in /bin ... but it is not
found by the kernel ... and my cramfs didnt changed a bit !!! 

in /bin, I have a link : sh -> busybox

Patrick Allaire
mailto:pallaire@gameloft.com
If you can see it, but it's not there, it's virtual. 
If you can't see it, but it is there, it's hidden. 
It you can't see it and it isn't there, it's gone.



> -----Original Message-----
> From: David Woodhouse [mailto:dwmw2@infradead.org]
> Sent: January 4, 2002 11:54 AM
> To: Patrick Allaire
> Cc: Björn Eriksson; linux-mtd@lists.infradead.org
> Subject: Re: From 2.4.9 to CVS ??? 
> 
> 
> 
> pallaire@gameloft.com said:
> >  No I dont have 'bad cramfs magic' !!! I tought it could be the case
> > ... but I looked at the mkcramfs.c from the 2.4.9 and 2.4.17 version
> > and there is no difference So the generated code should be 
> the same. 
> 
> P'raps we started paying attention to execute bits on 
> libraries between 
> 2.4.9 and 2.4.17? I thought we did that a long time ago though. 
> 
> Put a statically linked shell in the cramfs and boot with 
> that as init. 
> Then try running /sbin/init and see what errors you get.
> 
> 
> --
> dwmw2
> 
> 

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

* Re: From 2.4.9 to CVS ???
  2002-01-04 17:01 Patrick Allaire
@ 2002-01-04 17:01 ` David Woodhouse
  2002-01-04 17:04 ` Allen Curtis
  1 sibling, 0 replies; 10+ messages in thread
From: David Woodhouse @ 2002-01-04 17:01 UTC (permalink / raw)
  To: Patrick Allaire; +Cc: Björn Eriksson, linux-mtd

pallaire@gameloft.com said:
> I really dont understand ... I have a sh link in /bin ... but it is
> not found by the kernel ... and my cramfs didnt changed a bit !!! 

> in /bin, I have a link : sh -> busybox

Is it statically linked?

--
dwmw2

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

* RE: From 2.4.9 to CVS ???
  2002-01-04 17:01 Patrick Allaire
  2002-01-04 17:01 ` David Woodhouse
@ 2002-01-04 17:04 ` Allen Curtis
  1 sibling, 0 replies; 10+ messages in thread
From: Allen Curtis @ 2002-01-04 17:04 UTC (permalink / raw)
  To: Patrick Allaire, David Woodhouse; +Cc: Björn Eriksson, linux-mtd

Try putting a couple kprint() statements in init/main.c where it is trying
to load init. That is how I found the problem. (Did you check the loader?)
The problem I had was that the executable was found but a suitable loader
was not.....

> -----Original Message-----
> From: linux-mtd-admin@lists.infradead.org
> [mailto:linux-mtd-admin@lists.infradead.org]On Behalf Of Patrick Allaire
> Sent: Friday, January 04, 2002 9:01 AM
> To: David Woodhouse; Patrick Allaire
> Cc: Björn Eriksson; linux-mtd@lists.infradead.org
> Subject: RE: From 2.4.9 to CVS ???
>
>
> I really dont understand ... I have a sh link in /bin ... but it is not
> found by the kernel ... and my cramfs didnt changed a bit !!!
>
> in /bin, I have a link : sh -> busybox
>
> Patrick Allaire
> mailto:pallaire@gameloft.com
> If you can see it, but it's not there, it's virtual.
> If you can't see it, but it is there, it's hidden.
> It you can't see it and it isn't there, it's gone.
>
>
>
> > -----Original Message-----
> > From: David Woodhouse [mailto:dwmw2@infradead.org]
> > Sent: January 4, 2002 11:54 AM
> > To: Patrick Allaire
> > Cc: Björn Eriksson; linux-mtd@lists.infradead.org
> > Subject: Re: From 2.4.9 to CVS ???
> >
> >
> >
> > pallaire@gameloft.com said:
> > >  No I dont have 'bad cramfs magic' !!! I tought it could be the case
> > > ... but I looked at the mkcramfs.c from the 2.4.9 and 2.4.17 version
> > > and there is no difference So the generated code should be
> > the same.
> >
> > P'raps we started paying attention to execute bits on
> > libraries between
> > 2.4.9 and 2.4.17? I thought we did that a long time ago though.
> >
> > Put a statically linked shell in the cramfs and boot with
> > that as init.
> > Then try running /sbin/init and see what errors you get.
> >
> >
> > --
> > dwmw2
> >
> >
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* RE: From 2.4.9 to CVS ???
@ 2002-01-04 18:38 Patrick Allaire
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick Allaire @ 2002-01-04 18:38 UTC (permalink / raw)
  To: David Woodhouse, Patrick Allaire; +Cc: Björn Eriksson, linux-mtd

Hi again,

I have made a statically linked 'Busybox', now the kernel find the init
(since init is a symbolic link to busybox) ... it goes through my rc file
but it cannot execute dinamictly linked executable ???

at one point in my rc file I try to start a program and I receive :
Permission denied ??? I cennot look at any thing manualy because my embedded
device deos not have a keyboard !!! so if we have to look at something, I
need to redo a cramfs ... 

What have benn changed so that I cannot run dinamyc exe ??? with the same
cramfs (same exe / libs)

thank you

Patrick Allaire
mailto:pallaire@gameloft.com
If you can see it, but it's not there, it's virtual. 
If you can't see it, but it is there, it's hidden. 
It you can't see it and it isn't there, it's gone.



> -----Original Message-----
> From: David Woodhouse [mailto:dwmw2@infradead.org]
> Sent: January 4, 2002 12:02 PM
> To: Patrick Allaire
> Cc: Björn Eriksson; linux-mtd@lists.infradead.org
> Subject: Re: From 2.4.9 to CVS ??? 
> 
> 
> 
> pallaire@gameloft.com said:
> > I really dont understand ... I have a sh link in /bin ... but it is
> > not found by the kernel ... and my cramfs didnt changed a bit !!! 
> 
> > in /bin, I have a link : sh -> busybox
> 
> Is it statically linked?
> 
> --
> dwmw2
> 
> 

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

* RE: From 2.4.9 to CVS ???
@ 2002-01-04 19:07 Patrick Allaire
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick Allaire @ 2002-01-04 19:07 UTC (permalink / raw)
  To: David Woodhouse, Patrick Allaire; +Cc: Björn Eriksson, linux-mtd

Ok ... I found ... I reread David's email ... the libs needs to have the
executable attributes !!!

thank you all !

Patrick Allaire
mailto:pallaire@gameloft.com
If you can see it, but it's not there, it's virtual. 
If you can't see it, but it is there, it's hidden. 
It you can't see it and it isn't there, it's gone.



> -----Original Message-----
> From: David Woodhouse [mailto:dwmw2@infradead.org]
> Sent: January 4, 2002 12:02 PM
> To: Patrick Allaire
> Cc: Björn Eriksson; linux-mtd@lists.infradead.org
> Subject: Re: From 2.4.9 to CVS ??? 
> 
> 
> 
> pallaire@gameloft.com said:
> > I really dont understand ... I have a sh link in /bin ... but it is
> > not found by the kernel ... and my cramfs didnt changed a bit !!! 
> 
> > in /bin, I have a link : sh -> busybox
> 
> Is it statically linked?
> 
> --
> dwmw2
> 
> 

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

end of thread, other threads:[~2002-01-04 18:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-04 16:19 From 2.4.9 to CVS ??? Patrick Allaire
2002-01-04 16:24 ` Allen Curtis
2002-01-04 16:40 ` Björn Eriksson
  -- strict thread matches above, loose matches on Subject: below --
2002-01-04 16:51 Patrick Allaire
2002-01-04 16:54 ` David Woodhouse
2002-01-04 17:01 Patrick Allaire
2002-01-04 17:01 ` David Woodhouse
2002-01-04 17:04 ` Allen Curtis
2002-01-04 18:38 Patrick Allaire
2002-01-04 19:07 Patrick Allaire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox