public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* PPCBoot can't read my jffs2 image
@ 2002-04-02 14:28 Andrew Dixon
  2002-04-02 17:55 ` [Ppcboot-users] " Nye Liu
  2002-04-02 17:58 ` Jörn Engel
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Dixon @ 2002-04-02 14:28 UTC (permalink / raw)
  To: ppcboot-users, linux-mtd@lists.infradead.org

Hi Everyone,

Sorry for the cross post but this a problem with the way the linux-mtd
layer and PPCBoot are interacting.

So here's the situation, I've got PPCBoot+Linux running on a custom
board.  I've formatted the flash to be one small raw partition for
PPCBoot and the rest is a jffs2 filesystem.  PPCBoot is reading Linux
and an initial ramdisk out of the jffs2.  In my original testing I was
booting the board via tftp and nfs and then copying copying the
filesystem onto the flash via /dev/mtdblock1.  This works great.  I
reboot and PPCBoot sees everything in the jffs2.  Now I'm trying to
automate this a little more so enhanced my build to give me a jffs2
image "wombat.jffs2".  I create this image with mkfs.jffs2 and put it
onto the flash by dd'ing it to /dev/mtd1:

	dd if=/wombat.jffs2 of=/dev/mtd1

now when I mount /dev/mtdblock1 I can see the filesystem that I've put
over there but when I reboot PPCBoot doesn't see any of the files that
are there.  But if I boot back up Linux can still see all of those files
OK.

Any ideas?  

Thanks,
Andy 
-- 
Andrew Dixon
Software Engineer
Seranoa Networks
978.897.3434 x231

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

* Re: [Ppcboot-users] PPCBoot can't read my jffs2 image
  2002-04-02 14:28 PPCBoot can't read my jffs2 image Andrew Dixon
@ 2002-04-02 17:55 ` Nye Liu
  2002-04-02 17:58 ` Jörn Engel
  1 sibling, 0 replies; 3+ messages in thread
From: Nye Liu @ 2002-04-02 17:55 UTC (permalink / raw)
  To: Andrew Dixon; +Cc: ppcboot-users, linux-mtd@lists.infradead.org

Andrew:

Until *very* recently, linux mtd has been a bit behind the main mtd
development; check your linux/include/linux/jffs2.h;

If the structures are missing "attribute packed" you have an older
kernel.

I recommend recompiling either 1) ppcboot with unpacked structures or
2) updating your linux kernel AND mtdtools (your mkfs.jffs2 may also be
out of date), making sure that the include file matches for all three
when you are done ;)

On Tue, Apr 02, 2002 at 09:28:11AM -0500, Andrew Dixon wrote:
> Hi Everyone,
> 
> Sorry for the cross post but this a problem with the way the linux-mtd
> layer and PPCBoot are interacting.
> 
> So here's the situation, I've got PPCBoot+Linux running on a custom
> board.  I've formatted the flash to be one small raw partition for
> PPCBoot and the rest is a jffs2 filesystem.  PPCBoot is reading Linux
> and an initial ramdisk out of the jffs2.  In my original testing I was
> booting the board via tftp and nfs and then copying copying the
> filesystem onto the flash via /dev/mtdblock1.  This works great.  I
> reboot and PPCBoot sees everything in the jffs2.  Now I'm trying to
> automate this a little more so enhanced my build to give me a jffs2
> image "wombat.jffs2".  I create this image with mkfs.jffs2 and put it
> onto the flash by dd'ing it to /dev/mtd1:
> 
> 	dd if=/wombat.jffs2 of=/dev/mtd1
> 
> now when I mount /dev/mtdblock1 I can see the filesystem that I've put
> over there but when I reboot PPCBoot doesn't see any of the files that
> are there.  But if I boot back up Linux can still see all of those files
> OK.
> 
> Any ideas?  
> 
> Thanks,
> Andy 
> -- 
> Andrew Dixon
> Software Engineer
> Seranoa Networks
> 978.897.3434 x231
> 
> _______________________________________________
> Ppcboot-users mailing list
> Ppcboot-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ppcboot-users

-- 
Nye Liu
nyet@zumanetworks.com

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

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

* Re: PPCBoot can't read my jffs2 image
  2002-04-02 14:28 PPCBoot can't read my jffs2 image Andrew Dixon
  2002-04-02 17:55 ` [Ppcboot-users] " Nye Liu
@ 2002-04-02 17:58 ` Jörn Engel
  1 sibling, 0 replies; 3+ messages in thread
From: Jörn Engel @ 2002-04-02 17:58 UTC (permalink / raw)
  To: Andrew Dixon; +Cc: ppcboot-users, linux-mtd@lists.infradead.org

Hi!

> Sorry for the cross post but this a problem with the way the linux-mtd
> layer and PPCBoot are interacting.
> 
> So here's the situation, I've got PPCBoot+Linux running on a custom
> board.  I've formatted the flash to be one small raw partition for
> PPCBoot and the rest is a jffs2 filesystem.  PPCBoot is reading Linux
> and an initial ramdisk out of the jffs2.  In my original testing I was
> booting the board via tftp and nfs and then copying copying the
> filesystem onto the flash via /dev/mtdblock1.  This works great.  I
> reboot and PPCBoot sees everything in the jffs2.  Now I'm trying to
> automate this a little more so enhanced my build to give me a jffs2
> image "wombat.jffs2".  I create this image with mkfs.jffs2 and put it
> onto the flash by dd'ing it to /dev/mtd1:
> 
> 	dd if=/wombat.jffs2 of=/dev/mtd1
> 
> now when I mount /dev/mtdblock1 I can see the filesystem that I've put
> over there but when I reboot PPCBoot doesn't see any of the files that
> are there.  But if I boot back up Linux can still see all of those files
> OK.

Did you do the following before the dd?

	eraseall /dev/mtd1

Does the following give you a difference?

	dd if=/dev/mtdblock1 of=readback.jffs2 count=1 bs=<image size>
	diff readback.jffs2 wombat.jffs2

With <image size> being the size of wombat.jffs2.

Jörn

-- 
ticks = jiffies;
while (ticks == jiffies);
ticks = jiffies;
-- /usr/src/linux/init/main.c

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

end of thread, other threads:[~2002-04-02 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-02 14:28 PPCBoot can't read my jffs2 image Andrew Dixon
2002-04-02 17:55 ` [Ppcboot-users] " Nye Liu
2002-04-02 17:58 ` Jörn Engel

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