element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Atmel Xplained Boards
  • Products
  • Dev Tools
  • Atmel Xplained Boards
  • More
  • Cancel
Atmel Xplained Boards
Forum Debian on flash
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Atmel Xplained Boards to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 4 subscribers
  • Views 658 views
  • Users 0 members are here
  • ubifs
  • ubi
Related

Debian on flash

davorin
davorin over 11 years ago

Guess I start a thread here instead of blowing up the sd card debian blog post (o;

 

I'm trying to get debian-7.5-bare-armhf-2014-07-07 onto the NAND flash....so far it does actually boot the image, but mounts the fs only as RO due to fsck errors...

 

Steps I've taken...

 

  • Downloaded debian-7.5-bare-armhf-2014-07-07
  • mkfs.ubifs -r debian-7.5-bare-armhf-2014-07-07 -m 2048 -e 126976 -c 1984 -o debian.ubifs.img
  • ubinize -vv -o debian.ubi -m 2048 -p 131072 ubifs.ini
  • flashed the image with the ./demo_linux_nandflash.sh script, just replaced the file name in demo_linux_nandflash.tcl:

set rootfsFile          "debian.ubi"

 

Content of ubifs.ini for creating the UBI image:

 

[rootfs_volume]

mode=ubi

image=debian.ubifs.img

vol_id=1

vol_size=224MiB

vol_type=dynamic

vol_name=rootfs

vol_alignment=1

 

And here's the boot log:

 

ThumbEE CPU extension supported.                                                                                                             
Registering SWP/SWPB emulation handler                                                                                                       
UBI: attaching mtd7 to ubi0                                                                                                                  
UBI: scanning is finished                                                                                                                    
UBI: attached mtd7 (name "rootfs", size 248 MiB) to ubi0                                                                                     
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes                                                                                
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048                                                                                 
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096                                                                               
UBI: good PEBs: 1977, bad PEBs: 7, corrupted PEBs: 0                                                                                         
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128                                                                            
UBI: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 2000743801                                                      
UBI: available PEBs: 90, total reserved PEBs: 1887, PEBs reserved for bad PEB handling: 33                                                   
UBI: background thread "ubi_bgt0d" started, PID 681                                                                                          
input: gpio_keys.3 as /devices/gpio_keys.3/input/input0                                                                                      
at91_rtc fffffeb0.rtc: setting system clock to 2007-01-01 01:05:21 UTC (1167613521)                                                          
atmel_mci f0000000.mmc: version: 0x505                                                                                                       
atmel_mci f0000000.mmc: using dma0chan5 for DMA transfers                                                                                    
atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 17, 1 slots                                                                   
atmel_mci f8000000.mmc: version: 0x505                                                                                                       
atmel_mci f8000000.mmc: using dma1chan7 for DMA transfers                                                                                    
atmel_mci f8000000.mmc: Atmel MCI controller at 0xf8000000 irq 27, 1 slots                                                                   
ALSA device list:                                                                                                                            
  No soundcards found.                                                                                                                       
UBIFS: background thread "ubifs_bgt0_1" started, PID 694                                                                                     
UBIFS: mounted UBI device 0, volume 1, name "rootfs"(null)                                                                                   
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes                                                     
UBIFS: FS size: 233508864 bytes (222 MiB, 1839 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)                                            
UBIFS: reserved for root: 0 bytes (0 KiB)                                                                                                    
UBIFS: media format: w4/r0 (latest is w4/r0), UUID AA55C6C8-9E31-4D7C-A3A1-90D56F848A20, small LPT model                                     
VFS: Mounted root (ubifs filesystem) on device 0:12.                                                                                         
devtmpfs: mounted                                                                                                                            
Freeing unused kernel memory: 116K (c05b5000 - c05d2000)                                                                                     
INIT: version 2.88 booting                                                                                                                   
[info] Using makefile-style concurrent boot in runlevel S.                                                                                   
[....] Starting the hotplug events dispatcher: udevdudevd[809]: starting version 175                                                         
. ok                                                                                                                                         
[....] Synthesizing the initial hotplug events...done.                                                                                       
[....] Waiting for /dev to be fully populated...UBI error: ubi_open_volume: cannot open device 0, volume 1, error -16                        
done.                                                                                                                                        
[....] Activating swap...done.                                                                                                               
UBIFS: background thread "ubifs_bgt0_1" stops                                                                                                
[....] Checking root file system...fsck from util-linux 2.20.1                                                                               
fsck: fsck.auto: not found                                                                                                                   
fsck: error 2 while executing fsck.auto for /run/rootdev                                                                                     
fsck died with exit status 8                                                                                                                 
failed (code 8).                                                                                                                             

[....] An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck s!

[....] The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, p.

Give root password for maintenance                                                                                                           
(or type Control-D to continue):                                                                                                             
root@arm:~#                                                                                                                                  
root@arm:~#                                                                                                                                  

 

 

I've also set FSCKFIX=no in /etc/default/rcS, but this doesn't bypass the fsck during boot.

Any ideas what's wrong/missing?

  • Sign in to reply
  • Cancel
Parents
  • davorin
    davorin over 11 years ago

    Hmm...a little further....no more fsck errors...but during boot I see now:

     

    atmel_nand 60000000.nand: Bit flip in data area, byte_pos: 817, bit_pos: 5, 0xdf -> 0xff                                                          
    atmel_nand 60000000.nand: Bit flip in data area, byte_pos: 1297, bit_pos: 3, 0xf7 -> 0xff                                                         
    atmel_nand 60000000.nand: Bit flip in data area, byte_pos: 1115, bit_pos: 1, 0xfd -> 0xff                                                         
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • davorin
    davorin over 11 years ago

    Hmm...a little further....no more fsck errors...but during boot I see now:

     

    atmel_nand 60000000.nand: Bit flip in data area, byte_pos: 817, bit_pos: 5, 0xdf -> 0xff                                                          
    atmel_nand 60000000.nand: Bit flip in data area, byte_pos: 1297, bit_pos: 3, 0xf7 -> 0xff                                                         
    atmel_nand 60000000.nand: Bit flip in data area, byte_pos: 1115, bit_pos: 1, 0xfd -> 0xff                                                         
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • davorin
    davorin over 11 years ago in reply to davorin

    Hmm...not much more throughput on eth0 than on eth1...

     

    root@arm:~# iperf -c 10.0.100.170                                                                                                                 
    ------------------------------------------------------------                                                                                      
    Client connecting to 10.0.100.170, TCP port 5001                                                                                                  
    TCP window size: 20.7 KByte (default)                                                                                                             
    ------------------------------------------------------------                                                                                      
    [  3] local 10.0.100.27 port 43391 connected with 10.0.100.170 port 5001                                                                          
    [ ID] Interval   Transfer Bandwidth                                                                                                       
    [  3]  0.0-10.0 sec   152 MBytes   127 Mbits/sec                                                                                                  
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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