* reboot problem with MPC8248 based board
@ 2006-12-09 1:25 Jianlin Zeng
2006-12-09 1:47 ` Jeff Angielski
0 siblings, 1 reply; 3+ messages in thread
From: Jianlin Zeng @ 2006-12-09 1:25 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
I have a MPC8248 based board running with linux kernel
2.6.11. I mounted jffs2 FS on a NOR flash devices. The
jffs2 FS works fine. But whenever I modify any files
in jffs2 FS and soft reboot the board, the reboot
hangs. If I don't modify any files in jffs2 FS and
just do flashcp to mtd char device, the soft reboot
works fine.
I tried doing "reboot" through "m8260_gorom" or a
mechanism similar to what is used in u-boot. The
result is the same. I don't understand why jffs2 write
causes reboot to hang but MTD char device write does
not. Does anybody have similar experience? Can anybody
give me some help?
Thanks,
Jianlin
____________________________________________________________________________________
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] 3+ messages in thread
* Re: reboot problem with MPC8248 based board
2006-12-09 1:25 reboot problem with MPC8248 based board Jianlin Zeng
@ 2006-12-09 1:47 ` Jeff Angielski
2006-12-10 0:02 ` Jianlin Zeng
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Angielski @ 2006-12-09 1:47 UTC (permalink / raw)
To: Jianlin Zeng; +Cc: linuxppc-embedded
On Fri, 2006-12-08 at 17:25 -0800, Jianlin Zeng wrote:
> Hi,
>
> I have a MPC8248 based board running with linux kernel
> 2.6.11. I mounted jffs2 FS on a NOR flash devices. The
> jffs2 FS works fine. But whenever I modify any files
> in jffs2 FS and soft reboot the board, the reboot
> hangs. If I don't modify any files in jffs2 FS and
> just do flashcp to mtd char device, the soft reboot
> works fine.
>
> I tried doing "reboot" through "m8260_gorom" or a
> mechanism similar to what is used in u-boot. The
> result is the same. I don't understand why jffs2 write
> causes reboot to hang but MTD char device write does
> not. Does anybody have similar experience? Can anybody
> give me some help?
>
> Thanks,
> Jianlin
I have seen strange reboot behavior like this when the flash chips were
left in write mode. After reboot, you are unable to read the flash and
the system just hangs.
In 2.4 days, we solved this with a reboot_notifier that just went
through the sectors and reset them back to read mode.
Not sure if that helps but at least it gives you something to look into.
--
Jeff Angielski
The PTR Group
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: reboot problem with MPC8248 based board
2006-12-09 1:47 ` Jeff Angielski
@ 2006-12-10 0:02 ` Jianlin Zeng
0 siblings, 0 replies; 3+ messages in thread
From: Jianlin Zeng @ 2006-12-10 0:02 UTC (permalink / raw)
To: Jeff Angielski; +Cc: linuxppc-embedded
Hi Jeff,
Thanks a lot for your information! That's indeed the
reason for the hang. Now I read through all flash
sectors before reboot and it works fine.
Regards,
Jianlin
--- Jeff Angielski <jeff@theptrgroup.com> wrote:
> On Fri, 2006-12-08 at 17:25 -0800, Jianlin Zeng
> wrote:
> > Hi,
> >
> > I have a MPC8248 based board running with linux
> kernel
> > 2.6.11. I mounted jffs2 FS on a NOR flash devices.
> The
> > jffs2 FS works fine. But whenever I modify any
> files
> > in jffs2 FS and soft reboot the board, the reboot
> > hangs. If I don't modify any files in jffs2 FS and
> > just do flashcp to mtd char device, the soft
> reboot
> > works fine.
> >
> > I tried doing "reboot" through "m8260_gorom" or a
> > mechanism similar to what is used in u-boot. The
> > result is the same. I don't understand why jffs2
> write
> > causes reboot to hang but MTD char device write
> does
> > not. Does anybody have similar experience? Can
> anybody
> > give me some help?
> >
> > Thanks,
> > Jianlin
>
> I have seen strange reboot behavior like this when
> the flash chips were
> left in write mode. After reboot, you are unable to
> read the flash and
> the system just hangs.
>
> In 2.4 days, we solved this with a reboot_notifier
> that just went
> through the sectors and reset them back to read
> mode.
>
> Not sure if that helps but at least it gives you
> something to look into.
>
>
>
> --
> Jeff Angielski
> The PTR Group
>
>
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-10 0:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-09 1:25 reboot problem with MPC8248 based board Jianlin Zeng
2006-12-09 1:47 ` Jeff Angielski
2006-12-10 0:02 ` Jianlin Zeng
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 NNTP newsgroup(s).