element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum JFFS2 image reboot on NAND FLASH
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 2 replies
  • Subscribers 57 subscribers
  • Views 676 views
  • Users 0 members are here
  • embedded
  • prototyping
Related

JFFS2 image reboot on NAND FLASH

Former Member
Former Member over 10 years ago

I am getting following error message on rebooting board :

 

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ac00000: 0x00e0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ac80000: 0x00e0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ad00000: 0x00e0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ad80000: 0x00e0 instead

.......

 

after this message system boots without any issue but on subsequent reboot always above message is seen.

Above message is not seen on "nand erase.chip".

 

Please help me to understand problem

 

Following is my nand flash info :

>> nand info

Device 0: nand0, sector size 512 KiB

  Page size      4096 b

  OOB size         64 b

  Erase size   524288 b

 

I created jffs2 image using following command :

mkfs.jffs2 --eraseblock=512KiB ${endianess} -p -n -d ${ROOT_FS} -o ${TEMP_IMAGE}

 

My flash partition is as below :

0x000000000000-0x000002300000 : "Conf"

0x000002300000-0x000002800000 : "Logs"

0x000002800000-0x000003200000 : "NBoot"

0x000003200000-0x000003c00000 : "uImage1"

0x000003c00000-0x000016800000 : "Image1"

0x000016800000-0x000017200000 : "uImage2"

0x000017200000-0x000029e00000 : "Image2"

0x000029e00000-0x000040000000 : "Temp"

 

 

and i am flashing image as below :

l>> tftp uImage

egiga0 wait for link .Done - link up.

Using egiga0 device

TFTP from server 192.168.1.2; our IP address is 192.168.1.3

Filename 'uImage'.

Load address: 0x2000000

Loading: #################################################################

         #################################################################

         ###############################################################

done

Bytes transferred = 2826584 (2b2158 hex)

l>> nand write 2000000 3200000 2b3000

NAND write: device 0 offset 0x3200000, size 0x2b3000

2830336 bytes written: OK

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 10 years ago in reply to clem57 +1
    @clem, Thanks , your post helped me to fix my issue. I initialized flash with 0XFF and my problem got resolved.
  • clem57
    0 clem57 over 10 years ago

    http://stackoverflow.com/questions/16129000/jffs2-filesystem-corrupts-immediately-magic-bitmask-0x1985-not-found-errors

    If BBB, more information at http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/187479

    Please read all before you continue. I believe this matches your problem. There are instructions on how to solve.

    Cheers,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    @clem,

    Thanks , your post helped me to fix my issue. I initialized flash with 0XFF and my problem got resolved.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube