LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 10-24-2017, 03:49 PM   #1
Alefachini
LQ Newbie
 
Registered: Oct 2017
Posts: 5

Rep: Reputation: Disabled
Sam9x35 VFS error -19 with JFFS2 RFS compiled with Bulidroot


Hello:
I'm new at embedded linux so i hope be clear enough.

I'm trying to mount LinuxEmbedded software in at91sam9x35ek. I have downloaded Buildroot 2017.08, and then used "menuconfig at91sam9x5ek_dev_defconfig" This configuration sets for NandFlash Use.
After this I only added in Builroot menuconfig the file system option for JFFS2 with these options:
  • jffs2 root filesystem
  • Flash Type (Parallel flash with 128 kB erase size)
  • Do not use Cleanmarker
All other options default. Also got ubifs output compiled because the default config selected it.

With the default U-boot envioronment and some changes to bootcmd i was able to login into buildroot's default rootfs.ubi. But when i changed for using rootfs.jffs2 go errors. Paste Log below:

Code:
RomBOOT



AT91Bootstrap 3.8.8 (lun oct 23 18:33:51 ART 2017)

1-Wire: Loading 1-Wire information ...
1-Wire: ROM Searching ... Done, 3 1-Wire chips found

1-Wire: BoardName | [Revid] | VendorName
  #0  SAM9x5-EK [B0]      FLEX
  #1  SAM9X35-CM [B2]      RONETIX
  #2  SAM9x5-DM [B0]      FLEX

1-Wire: Board sn: 0x4010466 revision: 0x10421

NAND: ONFI flash detected
NAND: ONFI para CRC error!
NAND: Manufacturer ID: 0xad Chip ID: 0xda
WARNING: Fail to disable On-Die ECC
Nand flash is not ONFI compliant, use 2-bit/512-byte ecc.
NAND: Initialize PMECC params, cap: 2, sector: 512
NAND: Image: Copy 0xa0000 bytes from 0x40000 to 0x26f00000
NAND: Done to load image
<debug_uart> 

U-Boot 2017.03-linux4sam_5.6 (Oct 23 2017 - 18:33:59 -0300)

CPU: AT91SAM9X35
Crystal frequency:       12 MHz
CPU clock        :      400 MHz
Master clock     :  133.333 MHz
DRAM:  128 MiB
NAND:  256 MiB
MMC:   Atmel mci: 0, Atmel mci: 1
In:    serial
Out:   serial
Err:   serial
Net:   
Error: ethernet@f802c000 address not set.
No ethernet found.
Hit any key to stop autoboot:  3  2  0 
U-Boot> printenv
baudrate=115200
bootargs=console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs rw
bootcmd=nand read 0x22000000 0x200000 0x500000; nand read 0x21000000 0x180000 0x80000; bootz 0x22000000 - 0x21000000
bootdelay=3
fdtcontroladdr=27cc9210

Environment size: 396/131067 bytes
U-Boot> setenv bootargs console=ttyS0,115200 earlyprintk\ mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),\512k(dtb),6M(kernel)ro,-(rootfs)\ root=/dev/mtdblock7 rw rootfstype=jffs2
U-Boot> printenv
baudrate=115200
bootargs=console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) root=/dev/mtdblock7 rw rootfstype=jffs2
bootcmd=nand read 0x22000000 0x200000 0x500000; nand read 0x21000000 0x180000 0x80000; bootz 0x22000000 - 0x21000000
bootdelay=3
fdtcontroladdr=27cc9210

Environment size: 389/131067 bytes
U-Boot> saveenv
Saving Environment to NAND...
Erasing NAND...

Erasing at 0x140000 -- 100% complete.
Writing to NAND... OK
U-Boot> reset
resetting ...
RomBOOT



AT91Bootstrap 3.8.8 (lun oct 23 18:33:51 ART 2017)

1-Wire: Loading 1-Wire information ...
1-Wire: ROM Searching ... Done, 3 1-Wire chips found

1-Wire: BoardName | [Revid] | VendorName
  #0  SAM9x5-EK [B0]      FLEX
  #1  SAM9X35-CM [B2]      RONETIX
  #2  SAM9x5-DM [B0]      FLEX

1-Wire: Board sn: 0x4010466 revision: 0x10421

NAND: ONFI flash detected
NAND: ONFI para CRC error!
NAND: Manufacturer ID: 0xad Chip ID: 0xda
WARNING: Fail to disable On-Die ECC
Nand flash is not ONFI compliant, use 2-bit/512-byte ecc.
NAND: Initialize PMECC params, cap: 2, sector: 512
NAND: Image: Copy 0xa0000 bytes from 0x40000 to 0x26f00000
NAND: Done to load image
<debug_uart> 

U-Boot 2207.03-linux4sam_5.6 (Oct 23 2017 - 18:33:59 -0300)

CPU: AT91SAM9X35
Crystal frequency:       12 MHz
CPU clock        :      400 MHz
Master clock     :  133.333 MHz
DRAM:  128 MiB
NAND:  256 MiB
MMC:   Atmel mci: 0, Atmel mci: 1
In:    serial
Out:   serial
Err:   serial
Net:   
Error: ethernet@f802c000 address not set.
No ethernet found.
Hit any key to stop autoboot:  3  2  1  0 

NAND read: device 0 offset 0x200000, size 0x500000
Skipping bad block 0x005c0000
 5242880 bytes read: OK

NAND read: device 0 offset 0x180000, size 0x80000
 524288 bytes read: OK
## Flattened Device Tree blob at 21000000
   Booting using the fdt blob at 0x21000000
   Loading Device Tree to 27cbd000, end 27cc72fb ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.30-linux4sam_5.6 (afachini@afachini-VBox32) (gcc version 6.4.0 (Buildroot 2017.08) ) #1 Mon Oct 23 18:45:04 ART 2017
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
CPU: VIVVT data cache, VIVT instruction cache
OF: fdt:Machine model: Atmel AT91SAM9X35-EK
Memory policy: Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) root=/dev/mtdblock7 rw rootfstype=jffs2
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 122200K/131072K available (5453K kernel code, 180K rwdata, 1368K rodata, 196K init, 191K bss, 8872K reserved, 0K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc055ba98   (5455 kB)
      .init : 0xc06d9000 - 0xc070a000   ( 196 kB)
      .data : 0xc070a000 - 0xc07370e0   ( 181 kB)
       .bss : 0xc07370e0 - 0xc0766dcc   ( 192 kB)
NR_IRQS:16 nr_irqs:16 16
clocksource: pit: mask: 0x7ffffff max_cycles: 0x7ffffff, max_idle_ns: 7167226906 ns
sched_clock: 32 bits at 128 Hz, resolution 7812500ns, wraps every 16777215996093750ns
Console: colour dummy device 80x30
Calibrating delay loop... 198.76 BogoMIPS (lpj=775168)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x20008400 - 0x2000847c
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 14931722236523437 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
AT91: Detected SoC family: at91sam9x5
AT91: Detected SoC: at91sam9x35, revision 1
gpio-at91 fffff400.gpio: at address c8861400
gpio-at91 fffff600.gpio: at address c8863600
gpio-at91 fffff800.gpio: at address c8865800
gpio-at91 fffffa00.gpio: at address c8867a00
pinctrl-at91 ahb:apb:pinctrl@fffff400: initialized AT91 pinctrl driver
clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 114675631333 ns
at_hdmac ffffec00.dma-controller: Atmel AHB DMA Controller ( cpy set slave sg-cpy ), 8 channels
at_hdmac ffffee00.dma-controller: Atmel AHB DMA Controller ( cpy set slave sg-cpy ), 8 channels
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
at91_i2c f8010000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
at91_i2c f8010000.i2c: AT91 i2c bus driver (hw version: 0x402).
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource tcb_clksrc
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=30 max_order=15 bucket_order=0
io scheduler noop registered (default)
fffff200.serial: ttyS0 at MMIO 0xfffff200 (irq = 16, base_baud = 8333333) is a ATMEL_SERIAL
console [ttyS0] enabled
f801c000.serial: ttyS1 at MMIO 0xf801c000 (irq = 25, base_baud = 8333333) is a ATMEL_SERIAL
[drm] Initialized
brd: module loaded
loop: module loaded
ssc f0010000.ssc: Atmel SSC device at 0xc88a4000 (irq 22)
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] No driver support for vblank timestamp query.
atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
atmel_nand 40000000.nand: Using dma0chan2 for DMA transfers.
nand: Could not find valid ONFI parameter page; aborting
nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
nand: Hynix NAND 256MiB 3,3V 8-bit
nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
atmel_nand 40000000.nand: Use On Flash BBT
atmel_nand 40000000.nand: can't detect min. ECC, assume 2 bits in 512 bytes
atmel_nand 40000000.nand: Initialize PMECC params, cap: 2, sector: 512
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
nand_read_bbt: bad block at 0x0000005c0000
nand_read_bbt: bad block at 0x0000033e0000
nand_read_bbt: bad block at 0x00000c640000
8 cmdlinepart partitions found on MTD device atmel_nand
Creating 8 MTD partitions on "atmel_nand":
0x000000000000-0x000000040000 : "bootstrap"
0x000000040000-0x0000000c0000 : "uboot"
0x0000000c0000-0x000000100000 : "env"
0x000000100000-0x000000110000 : "env_redundant"
0x000000140000-0x000000180000 : "spare"
0x000000180000-0x000000200000 : "dtb"
0x000000200000-0x000000800000 : "kernel"
0x000000800000-0x000010000000 : "rootfs"
libphy: Fixed MDIO Bus: probed
CAN device driver interface
macb f802c000.ethernet: invalid hw address, using random
libphy: MACB_mii_bus: probed
Davicom DM9161A f802c0000.therne:00: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=f802c000.etherne:00, irq=-1)
macb f802c000.ethernet eth0: Cadence MACB rev 0x0001010c at 0xf802c000 irq 30 (6a:9c:a1:0c:cd:9b)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-atmel: EHCI Atmel driver
atmel-ehci 700000.ehci: EHCI Host Controller
atmel-ehci 700000.ehci: new USB bus registered, assigned bus number 1
atmel-ehci 700000.ehci: irq 31, io mem 0x00700000
atmel-ehci 700000.ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.9.30-linux4sam_5.6 ehci_hcd
usb usb1: SerialNumber: 700000.ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-atmel: OHCI Atmel driver
at91_ohci 600000.ohci: failed to find sfr node
at91_ohci 600000.ohci: USB Host Controller
at91_ohci 600000.ohci: new USB bus registered, assigned bus number 2
at91_ohci 600000.ohci: irq 31, io mem 0x00600000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: USB Host Controller
usb usb2: Manufacturer: Linux 4.9.30-linux4sam_5.6 ohci_hcdd
usb usb2: SerialNumber: at91
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver pl2303
usbserial: USB Serial support registered for pl2303
mousedev: PS/2 mouse device common for all mice
qt1070 0-001b: AT42QT1070 firmware version 15
random: fast init done
input: AT42QT1070 QTouch Sensor as /devices/soc0/ahb/ahb:apb/f8010000.i2c/i2c-0/0-001b/input/input0
rtc rtc0: alarm rollover not handled
rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
at91_rtc fffffeb0.rtc: rtc core: registered fffffeb0.rtc as rtc0
at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver.
i2c /dev entries driver
AT91: Starting after software reset
at91_wdt fffffe40.watchdog: watchdog is disabled
at91_wdt: probe of fffffe40.watchdog failed with error -22
atmel_mci f0008000.mmc: version: 0x504
atmel_mci f0008000.mmc: using dma0chan3 for DMA transfers
atmel_mci f0008000.mmc: Atmel MCI controller at 0xf0008000 irq 23, 1 slots
atmel_mci f000c000.mmc: version: 0x504
atmel_mci f000c000.mmc: using dma1chan0 for DMA transfers
atmel_mci f000c000.mmc: Atmel MCI controller at 0xf000cc00 irq 24, 1 slots
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
iio iio:device0: Resolution used: 10 bits
input: at91_adc as /devices/soc0/ahb/ahb:apb/f804c000.adc/input/input1
wm8731 0-001a: Assuming static MCLK
0-001a supply AVDD not found, using dummy regulator
0-001a supply HPVDD not found, using dummy regulator
0-001a supply DCVDD not found, using dummy regulator
0-001a supply DBVDD not found, using dummy regulator
sam9x5-snd-wm8731 sound: wm8731-hifi <-> f0010000.ssc mapping ok
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 10
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20161123 t)
can: netlink gateway (rev 20130117) max_hops=1
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] No driver support for vblank timestamp query.
atmel-hlcdc-display-controller atmel-hlcdc-dc: DRM device successfully registered
at91_rtc fffffeb0.rtc: setting system clock to 2007-01-05 22:14:08 UTC (1168035248)
panel-power-supply: disabling
ALSA device list:
  #0: wm8731 @ AT91SAM9X5EK
VFS: Cannot open root device "mtdblock7" or unknown-block(31,7): error -19
Please append a correct "root=" boot option; here are the available partitions:
0100            8192 ram0  (driver?)
0101            8192 ram1  (driver?)
0102            8192 ram2  (driver?)
0103            8192 ram3  (driver?)
1f00             256 mtdblock0  (driver?)
1f01             512 mtdblock1  (driver?)
1f02             256 mtdblock2  (driver?)
1f03             256 mtdblock3  (driver?)
1f04             256 mtdblock4  (driver?)
1f05             512 mtdblock5  (driver?)
1f06            6144 mtdblock6  (driver?)
1f07          253952 mtdblock7  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,7)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,7)
Some more data:
1- all is flashed with SAM-BA 2.12
2- Option trimffs is not activated for JFFS2 (contrary to UBIFS)
3- No configurations were made to Linux kconfig from Buildroot's config file.(default)
4- To clarify I need JFFS2 because i have an old tool with custom user libraries that only generates JFFS2 rootfilesystems

Questions:
  1. What did I do wrong with bootargs environment variable?
  2. how do I enter linux if i can't mount the RFS?If possible
  3. is there another way of doing this?Mounting jffs2 RFS?
  4. Is the flashtype selected for JFFS2 correct?
  5. Please add any comment you seem fit

Thanks and Best Regards.-

PD: I did read the "Post Smart" and used Search before posting there was over 450 posts with JFFS2 in the search but I did not found response, only 3 results with VFS error.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting jffs2 header gives superblock error mbee Linux - Embedded & Single-board computer 2 12-19-2012 07:21 PM
Root-NFS: Server returned error -13 while mounting /home/aravindb/RFS/rootfs boinpally Linux - Server 4 06-16-2011 08:15 AM
KERNEL panic error for JFFS2 file sysytem..... balakv Linux - Embedded & Single-board computer 1 04-26-2011 07:05 PM
JFFS2 error: jffs2_build_inode_pass1:appears to be a hardlink sjremya Linux - Kernel 1 01-23-2011 07:43 AM
JFFS2 [VFS mount root /dev/mtdblock2 ok] - kernel panic on running init process sud_vijay Linux - Kernel 0 03-05-2008 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration