* reboot problem with jffs2
@ 2006-12-09 0:24 Jianlin Zeng
2006-12-10 11:54 ` David Woodhouse
0 siblings, 1 reply; 4+ messages in thread
From: Jianlin Zeng @ 2006-12-09 0:24 UTC (permalink / raw)
To: linux-mtd
Hi,
I have a MPC8248 based board running linux 2.6.11. I
mounted jffs2 FS on a NOR flash partition. The jffs2
FS works fine. But if I modify any files in the jffs2
FS and then soft reboot the board, the reboot hangs.
If I don't modify any files in jffs2 FS and just do
flashcp to a MTD char device, the soft reboot works
fine.
I tried implementing the "reboot" functionality on my
board either through "m8260_gorom" or a mechanism
similar to what is used on u-boot, the result is the
same. Can anyone let me know what difference between
jffs2 write and MTD char device write that could
possibly cause the reboot hang? Does anybody have
similar experience?
Thanks,
Jianlin
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reboot problem with jffs2
2006-12-09 0:24 reboot problem with jffs2 Jianlin Zeng
@ 2006-12-10 11:54 ` David Woodhouse
2006-12-11 18:52 ` Jianlin Zeng
0 siblings, 1 reply; 4+ messages in thread
From: David Woodhouse @ 2006-12-10 11:54 UTC (permalink / raw)
To: Jianlin Zeng; +Cc: linux-mtd
On Fri, 2006-12-08 at 16:24 -0800, Jianlin Zeng wrote:
> I have a MPC8248 based board running linux 2.6.11. I
> mounted jffs2 FS on a NOR flash partition. The jffs2
> FS works fine. But if I modify any files in the jffs2
> FS and then soft reboot the board, the reboot hangs.
> If I don't modify any files in jffs2 FS and just do
> flashcp to a MTD char device, the soft reboot works
> fine.
Check you hardware. I suspect the flash chip isn't being properly reset
when the CPU restarts.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reboot problem with jffs2
2006-12-10 11:54 ` David Woodhouse
@ 2006-12-11 18:52 ` Jianlin Zeng
2006-12-11 19:58 ` David Woodhouse
0 siblings, 1 reply; 4+ messages in thread
From: Jianlin Zeng @ 2006-12-11 18:52 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd
Hi Dave,
Thanks for your information! It appears that I need to
set all flash sectors to read mode before reboot,
otherwise the CPU won't be able to read any boot code
from the flash after reboot. Don't know the reason
behind it but once I did that the reboot works fine.
Regards,
Jianlin
--- David Woodhouse <dwmw2@infradead.org> wrote:
> On Fri, 2006-12-08 at 16:24 -0800, Jianlin Zeng
> wrote:
> > I have a MPC8248 based board running linux 2.6.11.
> I
> > mounted jffs2 FS on a NOR flash partition. The
> jffs2
> > FS works fine. But if I modify any files in the
> jffs2
> > FS and then soft reboot the board, the reboot
> hangs.
> > If I don't modify any files in jffs2 FS and just
> do
> > flashcp to a MTD char device, the soft reboot
> works
> > fine.
>
> Check you hardware. I suspect the flash chip isn't
> being properly reset
> when the CPU restarts.
>
> --
> dwmw2
>
>
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reboot problem with jffs2
2006-12-11 18:52 ` Jianlin Zeng
@ 2006-12-11 19:58 ` David Woodhouse
0 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2006-12-11 19:58 UTC (permalink / raw)
To: Jianlin Zeng; +Cc: linux-mtd
On Mon, 2006-12-11 at 10:52 -0800, Jianlin Zeng wrote:
> Thanks for your information! It appears that I need to
> set all flash sectors to read mode before reboot,
> otherwise the CPU won't be able to read any boot code
> from the flash after reboot. Don't know the reason
> behind it but once I did that the reboot works fine.
I told you the reason behind it. Your hardware is broken -- make sure
the reset line to the flash gets hooked up so it's waggled when the CPU
restarts.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-11 19:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-09 0:24 reboot problem with jffs2 Jianlin Zeng
2006-12-10 11:54 ` David Woodhouse
2006-12-11 18:52 ` Jianlin Zeng
2006-12-11 19:58 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox