Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7742373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:15:35+00:00 2026-06-01T09:15:35+00:00

I have a SAM9 based board running embedded linux. I had a JFFS2 file

  • 0

I have a SAM9 based board running embedded linux.

I had a JFFS2 file system and now thinking of moving to UBIFS.

I enabled UBIFS as target file system in make menuconfig of buildroot package which I’m using for my board.

I generated the rootfs.arm.ubifs file which I flashed on my board using nandwrite utility of bootloader the same way which I was using for .jffs2 file.

I also changed the bootargs to :

setenv bootargs 'console=ttyS0,115200 rw ubi.mtd=1,2048 rootfstype=ubifs root=ubi0:rootfs'

But I’m getting the following error which booting the board :

Creating 2 MTD partitions on "atmel_nand":                                                                                                       
0x000000000000-0x000000400000 : "Kernel"                                                                                                         
0x000000400000-0x000010000000 : "Data"                                                                                                           
UBI: attaching mtd1 to ubi0                                                                                                                      
UBI: physical eraseblock size:   131072 bytes (128 KiB)                                                                                          
UBI: logical eraseblock size:    126976 bytes                                                                                                    
UBI: smallest flash I/O unit:    2048                                                                                                            
UBI: sub-page size:              512                                                                                                             
UBI: VID header offset:          2048 (aligned 2048)                                                                                             
UBI: data offset:                4096                                                                                                            
UBI warning: ubi_scan: 276 PEBs are corrupted                                                                                                    
corrupted PEBs are: 0 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 517
UBI error: ubi_read_volume_table: the layout volume was not found                                                                                
UBI error: ubi_init: cannot attach mtd1                                                                                                          
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22        
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:15:37+00:00Added an answer on June 1, 2026 at 9:15 am

    This is a guess, but did you ubinize your rootfs before flashing it onto the raw NAND?

    From http://www.linux-mtd.infradead.org/doc/ubifs.html#L_usptools

    The images produced by mkfs.ubifs may be written to UBI volumes using 
    ubiupdatevol or may be further fed to the ubinize tool to create an UBI 
    image which may be put to the raw flash.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a SomeLib.pro file that contains: CONFIG += debug TEMPLATE = lib TARGET =
Have someone tried out DeCAL in Delphi 2009? I'm thinking about upgrading from 2007,
Have a matrix report now that has Position, Hours and Wages for a location
**Have it working now. I forgot to populate the Array List. How embarrassing. I'm
have been trying couple of hours now to make my iphone app universal. The
Have you guys had any experiences (positive or negative) by placing your source code/solution
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Have had to write my first proper multithreaded coded recently, and realised just how
have the following text file: <div> <asp:HyperLinkField HeaderText=Hello World of Regular Expression /> </div>
Have you ever tried working with a XAML file which contains thousand tons of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.