reboot problem with jffs2
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
Quoted 7 lines · Jianlin Zeng
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.
Signature · 1 line
dwmw2
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
Quoted 11 lines · --- David Woodhouse
Quoted 1 line · Jianlin Zeng
I have a MPC8248 based board running linux 2.6.11.
I
Quoted 1 line
mounted jffs2 FS on a NOR flash partition. The
jffs2
Quoted 1 line
FS works fine. But if I modify any files in the
jffs2
Quoted 1 line
FS and then soft reboot the board, the reboot
hangs.
Quoted 1 line
If I don't modify any files in jffs2 FS and just
Quoted 13 lines
do
Quoted 1 line
flashcp to a MTD char device, the soft reboot
works
Quoted 1 line
fine.
Check you hardware. I suspect the flash chip isn't being properly reset
when the CPU restarts.Signature · 1 line
dwmw2
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com
Quoted 5 lines · Jianlin Zeng
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.
Signature · 1 line
dwmw2