Dear Michal,
Cc: Geert,
I've tested the linux v4.10-rc2 for Gen2 Lager and found an issues when
writing data to SPI-FLASH with jffs2 format
"root@linaro-naro:~# cp test.dat /mnt/media
[ 223.874078] ------------[ cut here ]------------
[ 223.888017] WARNING: CPU: 2 PID: 2008 at
drivers/mtd/spi-nor/spi-nor.c:1182 spi_nor_write+0x84/0x160
[ 223.915507] Writing at offset 12 into a NOR page. Writing partial
pages may decrease reliability and increase wear of NOR flash.
[ 223.915543] CPU: 2 PID: 2008 Comm: cp Not tainted 4.10.0-rc2-dirty #166
[ 223.970037] Hardware name: Generic R8A7790 (Flattened Device Tree)
[ 223.988563] Backtrace:
[ 223.995934] [<c010a8a0>] (dump_backtrace) from [<c010aad8>]
(show_stack+0x18/0x1c)
[ 224.018639] r6:c04786f0 r5:00000000 r4:600f0013 r3:00404000
[ 224.035626] [<c010aac0>] (show_stack) from [<c033b154>]
(dump_stack+0x80/0xa0)
[ 224.057294] [<c033b0d4>] (dump_stack) from [<c011e49c>]
(__warn+0xd4/0x104)
[ 224.078169] r5:00000000 r4:ef203ba8
[ 224.088894] [<c011e3c8>] (__warn) from [<c011e50c>]
(warn_slowpath_fmt+0x40/0x48)
[ 224.111337] r9:c0a2a6cb r8:ef203c8c r7:0000000c r6:00000000
r5:00000000 r4:eebfa418
[ 224.134564] [<c011e4d0>] (warn_slowpath_fmt) from [<c04786f0>]
(spi_nor_write+0x84/0x160)
..."
Please have a look at the attached testlog file for detail.
And I found the patch which I think it is the cause of this issues.
The commit name is 'e5d05cb mtd: spi-nor: simplify write loop'
If I reverted this patch and retested it on H2 board, the issue will be
gone!
Regards,
Dong
LAGER SPI_LOADER V0.27 2014.06.20
DEVICE S25FL512
U-Boot 2016.01 (Jul 27 2016 - 15:27:42 +0900)
CPU: Renesas Electronics R8A7790 rev 2.0
Board: Lager
I2C: ready
DRAM: 512 MiB
MMC: sh_mmcif: 0, sh-sdhi: 1, sh-sdhi: 2
SF: Detected S25FL512S_256K with page size 512 Bytes, erase size 256 KiB, total 64 MiB
In: serial_sh
Out: serial_sh
Err: serial_sh
Net: sh_eth
Hit any key to stop autoboot: 0
sh_eth Waiting for PHY auto negotiation to complete.. done
sh_eth: 100Base/Half
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
DHCP client bound to address 192.168.1.235 (5781 ms)
Using sh_eth device
TFTP from server 192.168.1.225; our IP address is 192.168.1.235
Filename 'lager/uImage.dtb'.
Load address: 0x40007fc0
Loading: #################################################################
#################################################################
#################################################################
#################################################################
###########
7.5 MiB/s
done
Bytes transferred = 3974248 (3ca468 hex)
## Booting kernel from Legacy Image at 40007fc0 ...
Image Name: Linux-v4.10-rc2
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3974184 Bytes = 3.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.10.0-rc2-dirty (dong@dong-Jinso) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) ) #277 SMP Thu Jan 19 13:50:19 JST 2017
[ 0.000000] CPU: ARMv7 Processor [413fc0f2] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt:Machine model: Lager
[ 0.000000] OF: fdt:Ignoring memory block 0x140000000 - 0x200000000
[ 0.000000] debug: ignoring loglevel setting.
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] free_area_init_node: node 0, pgdat c0a32e80, node_mem_map ef7f9000
[ 0.000000] Normal zone: 1536 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196608 pages, LIFO batch:31
[ 0.000000] HighMem zone: 65536 pages, LIFO batch:15
[ 0.000000] percpu: Embedded 12 pages/cpu @ef775000 s25152 r0 d24000 u49152
[ 0.000000] pcpu-alloc: s25152 r0 d24000 u49152 alloc=12*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1029248K/1048576K available (6144K kernel code, 208K rwdata, 1548K rodata, 1024K init, 303K bss, 19328K reserved, 0K cma-reserved, 262144K high)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a342a0 ( 209 kB)
[ 0.000000] .bss : 0xc0a36000 - 0xc0a81e0c ( 304 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 10.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000005] sched_clock: 56 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[ 0.000013] Switching to timer-based delay loop, resolution 100ns
[ 0.000535] Console: colour dummy device 80x30
[ 0.000557] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=100000)
[ 0.000569] pid_max: default: 32768 minimum: 301
[ 0.000683] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000691] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001182] CPU: Testing write buffer coherency: ok
[ 0.001444] CPU0: update cpu_capacity 1535
[ 0.001452] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002448] Setting up static identity map for 0x40100000 - 0x40100058
[ 0.003044] smp: Bringing up secondary CPUs ...
[ 0.005247] CPU1: update cpu_capacity 1535
[ 0.005252] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.006212] CPU2: update cpu_capacity 1535
[ 0.006217] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.007177] CPU3: update cpu_capacity 1535
[ 0.007182] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.007820] CPU4: failed to boot: -22
[ 0.008467] CPU5: failed to boot: -22
[ 0.009103] CPU6: failed to boot: -22
[ 0.009749] CPU7: failed to boot: -22
[ 0.009858] smp: Brought up 1 node, 4 CPUs
[ 0.009899] SMP: Total of 4 processors activated (80.00 BogoMIPS).
[ 0.009905] CPU: All CPU(s) started in SVC mode.
[ 0.010942] devtmpfs: initialized
[ 0.020777] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[ 0.021167] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.021276] pinctrl core: initialized pinctrl subsystem
[ 0.021418] Detected Renesas R-Car Gen2 r8a7790 ES2.0
[ 0.021980] NET: Registered protocol family 16
[ 0.022137] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.023206] No ATAGs?
[ 0.023234] hw-breakpoint: Failed to enable monitor mode on CPU 0.
[ 0.023338] IRQ2 is asserted, installing da9063/da9210 regulator quirk
[ 0.026057] renesas_irqc e61c0000.interrupt-controller: driving 4 irqs
[ 0.031107] sh-pfc e6060000.pfc: r8a77900_pfc support registered
[ 0.046876] vgaarb: loaded
[ 0.047126] SCSI subsystem initialized
[ 0.047290] libata version 3.00 loaded.
[ 0.047501] usbcore: registered new interface driver usbfs
[ 0.047550] usbcore: registered new interface driver hub
[ 0.047641] usbcore: registered new device driver usb
[ 0.048877] i2c-sh_mobile e6520000.i2c: I2C adapter 6, bus speed 100000 Hz
[ 0.049298] i2c 7-0058: clearing da9063/da9210 interrupts
[ 0.050470] i2c 7-0058: IRQ2 is not asserted, removing quirk
[ 0.050620] i2c-sh_mobile e60b0000.i2c: I2C adapter 7, bus speed 100000 Hz
[ 0.050838] media: Linux media interface: v0.10
[ 0.050887] Linux video capture interface: v2.00
[ 0.051224] sh_cmt ffca0000.timer: ch0: used for clock events
[ 0.051238] sh_cmt ffca0000.timer: ch1: used as clock source
[ 0.051248] clocksource: ffca0000.timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000000 ns
[ 0.051879] Advanced Linux Sound Architecture Driver Initialized.
[ 0.052401] sh_cmt ffca0000.timer: PM domain always-on will not be powered off
[ 0.052557] clocksource: Switched to clocksource arch_sys_counter
[ 0.061418] NET: Registered protocol family 2
[ 0.061847] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.061899] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.061994] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.062033] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.062056] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.062209] NET: Registered protocol family 1
[ 0.062594] RPC: Registered named UNIX socket transport module.
[ 0.062601] RPC: Registered udp transport module.
[ 0.062606] RPC: Registered tcp transport module.
[ 0.062612] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.062622] PCI: CLS 0 bytes, default 64
[ 0.064280] futex hash table entries: 2048 (order: 5, 131072 bytes)
[ 0.064812] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.065444] NFS: Registering the id_resolver key type
[ 0.065464] Key type id_resolver registered
[ 0.065470] Key type id_legacy registered
[ 0.065483] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.065490] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.065518] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 0.067287] bounce: pool size: 64 pages
[ 0.067340] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.067347] io scheduler noop registered
[ 0.067354] io scheduler deadline registered
[ 0.067381] io scheduler cfq registered (default)
[ 0.069615] gpio_rcar e6050000.gpio: driving 32 GPIOs
[ 0.070798] gpio_rcar e6051000.gpio: driving 30 GPIOs
[ 0.071939] gpio_rcar e6052000.gpio: driving 30 GPIOs
[ 0.073295] gpio_rcar e6053000.gpio: driving 32 GPIOs
[ 0.074534] gpio_rcar e6054000.gpio: driving 32 GPIOs
[ 0.075765] gpio_rcar e6055000.gpio: driving 32 GPIOs
[ 0.076518] pci-rcar-gen2 ee090000.pci: PCI: bus0 revision 11
[ 0.076680] pci-rcar-gen2 ee090000.pci: PCI host bridge to bus 0000:00
[ 0.076691] pci_bus 0000:00: root bus resource [mem 0xee080000-0xee0810ff]
[ 0.076699] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.076730] pci 0000:00:00.0: [1033:0000] type 00 class 0x060000
[ 0.076751] pci 0000:00:00.0: reg 0x10: [mem 0xee090800-0xee090bff]
[ 0.076762] pci 0000:00:00.0: reg 0x14: [mem 0x40000000-0x7fffffff pref]
[ 0.076974] pci 0000:00:01.0: [1033:0035] type 00 class 0x0c0310
[ 0.076996] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.077069] pci 0000:00:01.0: supports D1 D2
[ 0.077076] pci 0000:00:01.0: PME# supported from D0 D1 D2 D3hot
[ 0.077280] pci 0000:00:02.0: [1033:00e0] type 00 class 0x0c0320
[ 0.077301] pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x000000ff]
[ 0.077371] pci 0000:00:02.0: supports D1 D2
[ 0.077378] pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot
[ 0.077588] PCI: bus0: Fast back to back transfers disabled
[ 0.077598] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.077680] pci 0000:00:01.0: BAR 0: assigned [mem 0xee080000-0xee080fff]
[ 0.077692] pci 0000:00:02.0: BAR 0: assigned [mem 0xee081000-0xee0810ff]
[ 0.077730] pci 0000:00:01.0: enabling device (0140 -> 0142)
[ 0.077764] pci 0000:00:02.0: enabling device (0140 -> 0142)
[ 0.078003] pci-rcar-gen2 ee0b0000.pci: PCI: bus0 revision 11
[ 0.078153] pci-rcar-gen2 ee0b0000.pci: PCI host bridge to bus 0001:01
[ 0.078162] pci_bus 0001:01: root bus resource [mem 0xee0a0000-0xee0a10ff]
[ 0.078169] pci_bus 0001:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.078191] pci 0001:01:00.0: [1033:0000] type 00 class 0x060000
[ 0.078207] pci 0001:01:00.0: reg 0x10: [mem 0xee0b0800-0xee0b0bff]
[ 0.078219] pci 0001:01:00.0: reg 0x14: [mem 0x40000000-0x7fffffff pref]
[ 0.078410] pci 0001:01:01.0: [1033:0035] type 00 class 0x0c0310
[ 0.078431] pci 0001:01:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.078502] pci 0001:01:01.0: supports D1 D2
[ 0.078509] pci 0001:01:01.0: PME# supported from D0 D1 D2 D3hot
[ 0.078693] pci 0001:01:02.0: [1033:00e0] type 00 class 0x0c0320
[ 0.078714] pci 0001:01:02.0: reg 0x10: [mem 0x00000000-0x000000ff]
[ 0.078785] pci 0001:01:02.0: supports D1 D2
[ 0.078792] pci 0001:01:02.0: PME# supported from D0 D1 D2 D3hot
[ 0.078984] PCI: bus1: Fast back to back transfers disabled
[ 0.078993] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.079119] pci 0001:01:01.0: BAR 0: assigned [mem 0xee0a0000-0xee0a0fff]
[ 0.079129] pci 0001:01:02.0: BAR 0: assigned [mem 0xee0a1000-0xee0a10ff]
[ 0.079157] pci 0001:01:01.0: enabling device (0140 -> 0142)
[ 0.079188] pci 0001:01:02.0: enabling device (0140 -> 0142)
[ 0.079357] pci-rcar-gen2 ee0d0000.pci: PCI: bus0 revision 11
[ 0.079505] pci-rcar-gen2 ee0d0000.pci: PCI host bridge to bus 0002:02
[ 0.079513] pci_bus 0002:02: root bus resource [mem 0xee0c0000-0xee0c10ff]
[ 0.079520] pci_bus 0002:02: No busn resource found for root bus, will use [bus 02-ff]
[ 0.079545] pci 0002:02:00.0: [1033:0000] type 00 class 0x060000
[ 0.079560] pci 0002:02:00.0: reg 0x10: [mem 0xee0d0800-0xee0d0bff]
[ 0.079572] pci 0002:02:00.0: reg 0x14: [mem 0x40000000-0x7fffffff pref]
[ 0.079762] pci 0002:02:01.0: [1033:0035] type 00 class 0x0c0310
[ 0.079783] pci 0002:02:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.079854] pci 0002:02:01.0: supports D1 D2
[ 0.079860] pci 0002:02:01.0: PME# supported from D0 D1 D2 D3hot
[ 0.080055] pci 0002:02:02.0: [1033:00e0] type 00 class 0x0c0320
[ 0.080076] pci 0002:02:02.0: reg 0x10: [mem 0x00000000-0x000000ff]
[ 0.080147] pci 0002:02:02.0: supports D1 D2
[ 0.080154] pci 0002:02:02.0: PME# supported from D0 D1 D2 D3hot
[ 0.080358] PCI: bus2: Fast back to back transfers disabled
[ 0.080368] pci_bus 0002:02: busn_res: [bus 02-ff] end is updated to 02
[ 0.080545] pci 0002:02:01.0: BAR 0: assigned [mem 0xee0c0000-0xee0c0fff]
[ 0.080556] pci 0002:02:02.0: BAR 0: assigned [mem 0xee0c1000-0xee0c10ff]
[ 0.080584] pci 0002:02:01.0: enabling device (0140 -> 0142)
[ 0.080616] pci 0002:02:02.0: enabling device (0140 -> 0142)
[ 0.093721] DA9210: Bringing 1080000uV into 1000000-1000000uV
[ 0.099498] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.100663] SuperH (H)SCI(F) driver initialized
[ 0.101174] e6c50000.serial: ttySC1 at MMIO 0xe6c50000 (irq = 101, base_baud = 0) is a scifa
[ 0.101720] e6e60000.serial: ttySC0 at MMIO 0xe6e60000 (irq = 102, base_baud = 0) is a scif
[ 3.501997] console [ttySC0] enabled
[ 3.513243] [drm] Initialized
[ 3.523096] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 3.542919] [drm] No driver support for vblank timestamp query.
[ 3.575467] da9063 7-0058: Device detected (chip-ID: 0x61, var-ID: 0x30)
[ 3.596715] random: fast init done
[ 3.619659] scsi host0: sata_rcar
[ 3.629800] ata1: SATA max UDMA/133 irq 104
[ 3.643130] renesas_spi e6b10000.spi: DMA available
[ 3.658551] m25p80 spi0.0: s25fl512s (65536 Kbytes)
[ 3.673196] 3 ofpart partitions found on MTD device spi0.0
[ 3.689632] Creating 3 MTD partitions on "spi0.0":
[ 3.703986] 0x000000000000-0x000000040000 : "loader"
[ 3.719741] 0x000000040000-0x000000440000 : "user"
[ 3.734927] 0x000000440000-0x000004000000 : "flash"
[ 3.750383] renesas_spi e6b10000.spi: probed
[ 3.763998] spi_sh_msiof e6e10000.spi: DMA available
[ 3.779603] libphy: Fixed MDIO Bus: probed
[ 3.792461] CAN device driver interface
[ 3.804834] libphy: sh_mii: probed
[ 3.816102] sh-eth ee700000.ethernet eth0: Base address at 0xee700000, 2e:09:0a:00:3d:c1, IRQ 103.
[ 3.843261] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.862829] ehci-pci: EHCI PCI platform driver
[ 3.876267] ehci-pci 0000:00:02.0: EHCI Host Controller
[ 3.891941] ehci-pci 0000:00:02.0: new USB bus registered, assigned bus number 1
[ 3.914211] ehci-pci 0000:00:02.0: irq 119, io mem 0xee081000
[ 3.952571] ehci-pci 0000:00:02.0: USB 2.0 started, EHCI 1.00
[ 3.970499] hub 1-0:1.0: USB hub found
[ 3.981764] hub 1-0:1.0: 1 port detected
[ 3.993957] ehci-pci 0001:01:02.0: EHCI Host Controller
[ 4.009631] ehci-pci 0001:01:02.0: new USB bus registered, assigned bus number 2
[ 4.031884] ehci-pci 0001:01:02.0: irq 120, io mem 0xee0a1000
[ 4.072580] ehci-pci 0001:01:02.0: USB 2.0 started, EHCI 1.00
[ 4.090438] hub 2-0:1.0: USB hub found
[ 4.092564] ata1: link resume succeeded after 1 retries
[ 4.117349] hub 2-0:1.0: 1 port detected
[ 4.129517] ehci-pci 0002:02:02.0: EHCI Host Controller
[ 4.145190] ehci-pci 0002:02:02.0: new USB bus registered, assigned bus number 3
[ 4.167438] ehci-pci 0002:02:02.0: irq 121, io mem 0xee0c1000
[ 4.202580] ata1: SATA link down (SStatus 0 SControl 300)
[ 4.212571] ehci-pci 0002:02:02.0: USB 2.0 started, EHCI 1.00
[ 4.213217] hub 3-0:1.0: USB hub found
[ 4.213251] hub 3-0:1.0: 1 port detected
[ 4.213613] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.213616] ohci-pci: OHCI PCI platform driver
[ 4.213689] ohci-pci 0000:00:01.0: OHCI PCI host controller
[ 4.213706] ohci-pci 0000:00:01.0: new USB bus registered, assigned bus number 4
[ 4.213739] ohci-pci 0000:00:01.0: irq 119, io mem 0xee080000
[ 4.313220] hub 4-0:1.0: USB hub found
[ 4.313256] hub 4-0:1.0: 1 port detected
[ 4.313626] ohci-pci 0001:01:01.0: OHCI PCI host controller
[ 4.313643] ohci-pci 0001:01:01.0: new USB bus registered, assigned bus number 5
[ 4.313675] ohci-pci 0001:01:01.0: irq 120, io mem 0xee0a0000
[ 4.423192] hub 5-0:1.0: USB hub found
[ 4.423225] hub 5-0:1.0: 1 port detected
[ 4.423603] ohci-pci 0002:02:01.0: OHCI PCI host controller
[ 4.423621] ohci-pci 0002:02:01.0: new USB bus registered, assigned bus number 6
[ 4.423654] ohci-pci 0002:02:01.0: irq 121, io mem 0xee0c0000
[ 4.523204] hub 6-0:1.0: USB hub found
[ 4.534472] hub 6-0:1.0: 1 port detected
[ 4.546909] sh-pfc e6060000.pfc: pin GP_5_19 already requested by ee090000.pci; cannot claim for e6590000.usb
[ 4.576642] sh-pfc e6060000.pfc: pin-179 (e6590000.usb) status -22
[ 4.595181] sh-pfc e6060000.pfc: could not request pin 179 (GP_5_19) from group usb0_ovc_vbus on device sh-pfc
[ 4.625420] renesas_usbhs e6590000.usb: Error applying setting, reverse things back
[ 4.648375] renesas_usbhs: probe of e6590000.usb failed with error -22
[ 4.668126] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
[ 4.694880] mousedev: PS/2 mouse device common for all mice
[ 4.727092] da9063-rtc da9063-rtc: rtc core: registered da9063-rtc as rtc0
[ 4.752774] i2c /dev entries driver
[ 4.764986] i2c-sh_mobile e6500000.i2c: I2C adapter 4, bus speed 100000 Hz
[ 4.786757] i2c-sh_mobile e6510000.i2c: I2C adapter 5, bus speed 100000 Hz
[ 4.807888] adv7180 6-0020: chip found @ 0x20 (e6520000.i2c)
[ 4.844395] rcar_jpu fe980000.jpeg-codec: encoder device registered as /dev/video0
[ 4.867085] rcar_jpu fe980000.jpeg-codec: decoder device registered as /dev/video1
[ 4.907428] rcar-vin e6ef1000.video: Device registered as video30
[ 4.928290] rcar_thermal e61f0000.thermal: 1 sensor probed
[ 4.951129] sh_mobile_sdhi ee100000.sd: Got CD GPIO
[ 4.966347] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[ 5.032656] sh_mmcif ee220000.mmc: Chip version 0x0003, clock rate 12MHz
[ 5.053482] usbcore: registered new interface driver usbhid
[ 5.070185] usbhid: USB HID core driver
[ 5.088616] rcar_sound ec500000.sound: probed
[ 5.102028] NET: Registered protocol family 10
[ 5.115988] Segment Routing with IPv6
[ 5.127012] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 5.145291] NET: Registered protocol family 17
[ 5.158617] can: controller area network core (rev 20120528 abi 9)
[ 5.177182] NET: Registered protocol family 29
[ 5.190499] can: raw protocol (rev 20120528)
[ 5.203293] can: broadcast manager protocol (rev 20161123 t)
[ 5.220258] can: netlink gateway (rev 20130117) max_hops=1
[ 5.236772] Key type dns_resolver registered
[ 5.249639] Registering SWP/SWPB emulation handler
[ 5.266583] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 5.286414] [drm] No driver support for vblank timestamp query.
[ 5.392220] rcar-du feb00000.display: failed to allocate buffer with size 8294400
[ 5.414669] rcar-du feb00000.display: Failed to set initial hw configuration.
[ 5.436062] rcar-du feb00000.display: failed to initialize DRM/KMS (-12)
[ 5.456346] rcar-du: probe of feb00000.display failed with error -12
[ 5.475988] sh_mobile_sdhi ee100000.sd: Got CD GPIO
[ 5.617495] mmc0: new high speed MMC card at address 0001
[ 5.634054] mmcblk0: mmc0:0001 MMC08G 7.33 GiB
[ 5.647800] mmcblk0boot0: mmc0:0001 MMC08G partition 1 2.00 MiB
[ 5.665704] mmcblk0boot1: mmc0:0001 MMC08G partition 2 2.00 MiB
[ 5.685240] mmcblk0: p1 p2
[ 5.692742] sh_mobile_sdhi ee100000.sd: mmc1 base at 0xee100000 max clock rate 195 MHz
[ 5.693293] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[ 5.902725] sh_mobile_sdhi ee140000.sd: mmc2 base at 0xee140000 max clock rate 97 MHz
[ 5.927766] asoc-simple-card sound: ak4642-hifi <-> ec500000.sound mapping ok
[ 5.950735] input: keyboard as /devices/platform/keyboard/input/input0
[ 5.972228] da9063-rtc da9063-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[ 6.094798] Micrel KSZ8041RNLI ee700000.etherne:01: attached PHY driver [Micrel KSZ8041RNLI] (mii_bus:phy_addr=ee700000.etherne:01, irq=340)
[ 6.132679] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.135178] sh-eth ee700000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[ 8.152579] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.182562] Sending DHCP requests ..., OK
[ 15.002562] IP-Config: Got DHCP answer from 192.168.1.225, my address is 192.168.1.235
[ 15.026302] IP-Config: Complete:
[ 15.035975] device=eth0, hwaddr=2e:09:0a:00:3d:c1, ipaddr=192.168.1.235, mask=255.255.255.0, gw=192.168.1.225
[ 15.066998] host=192.168.1.235, domain=, nis-domain=(none)
[ 15.084738] bootserver=192.168.1.225, rootserver=192.168.1.225, rootpath= nameserver0=192.168.1.225, nameserver1=192.168.1.235, nameserver2=8.8.8.8
[ 15.126998] SDHI0 Vcc: disabling
[ 15.136677] SDHI2 Vcc: disabling
[ 15.146347] SDHI0 VccQ: disabling
[ 15.156274] SDHI2 VccQ: disabling
[ 15.166202] ALSA device list:
[ 15.175087] #0: rsnd-dai.0-ak4642-hifi
[ 15.191271] VFS: Mounted root (nfs filesystem) on device 0:12.
[ 15.209178] devtmpfs: mounted
[ 15.218739] Freeing unused kernel memory: 1024K
[ 15.618716] init: ureadahead main process (1001) terminated with status 5
[ 16.989733] udevd[1067]: starting version 175
[ 17.316842] random: crng init done
[ 18.210327] init: failsafe main process (1767) killed by TERM signal
[ 18.231510] init: udev-fallback-graphics main process (1798) terminated with status 1
* Setting senso[ 19.084638] init: plymouth main process (1003) killed by ABRT signal
rs limits [ 19.107819] init: plymouth-splash main process (1863) terminated with status 2
[ OK ]
[ 19.723786] init: alsa-restore main process (1893) terminated with status 99
Last login: Sat Jan 1 00:00:16 UTC 2000 on tty1
[ 19.873266] init: plymouth-stop pre-start process (1935) terminated with status 1
[ 19.960716] init: tty1 main process (1936) killed by TERM signal
Welcome to Linaro 13.04 (GNU/Linux 4.10.0-rc2-dirty armv7l)
* Documentation: https://wiki.linaro.org/
root@linaro-naro:~#
root@linaro-naro:~#
root@linaro-naro:~# uname -a
Linux linaro-naro 4.10.0-rc2-dirty #277 SMP Thu Jan 19 13:50:19 JST 2017 armv7l armv7l armv7l GNU/Linux
root@linaro-naro:~#
root@linaro-naro:~#
root@linaro-naro:~# mkdir /mnt/media
root@linaro-naro:~#
root@linaro-naro:~#
root@linaro-naro:~# flash_erase -j /dev/mtd2 0 0
Erasing 256 Kibyte @ 0 -- 0 % complete flash_erase: Cleanmarker written at 0
Erasing 256 Kibyte @ 40000 -- 0 % complete flash_erase: Cleanmarker written at 40000
Erasing 256 Kibyte @ 80000 -- 0 % complete flash_erase: Cleanmarker written at 80000
Erasing 256 Kibyte @ c0000 -- 1 % complete flash_erase: Cleanmarker written at c0000
Erasing 256 Kibyte @ 100000 -- 1 % complete flash_erase: Cleanmarker written at 100000
Erasing 256 Kibyte @ 140000 -- 2 % complete flash_erase: Cleanmarker written at 140000
Erasing 256 Kibyte @ 180000 -- 2 % complete flash_erase: Cleanmarker written at 180000
Erasing 256 Kibyte @ 1c0000 -- 2 % complete flash_erase: Cleanmarker written at 1c0000
Erasing 256 Kibyte @ 200000 -- 3 % complete flash_erase: Cleanmarker written at 200000
Erasing 256 Kibyte @ 240000 -- 3 % complete flash_erase: Cleanmarker written at 240000
Erasing 256 Kibyte @ 280000 -- 4 % complete flash_erase: Cleanmarker written at 280000
Erasing 256 Kibyte @ 2c0000 -- 4 % complete flash_erase: Cleanmarker written at 2c0000
Erasing 256 Kibyte @ 300000 -- 5 % complete flash_erase: Cleanmarker written at 300000
Erasing 256 Kibyte @ 340000 -- 5 % complete flash_erase: Cleanmarker written at 340000
Erasing 256 Kibyte @ 380000 -- 5 % complete flash_erase: Cleanmarker written at 380000
Erasing 256 Kibyte @ 3c0000 -- 6 % complete flash_erase: Cleanmarker written at 3c0000
Erasing 256 Kibyte @ 400000 -- 6 % complete flash_erase: Cleanmarker written at 400000
Erasing 256 Kibyte @ 440000 -- 7 % complete flash_erase: Cleanmarker written at 440000
Erasing 256 Kibyte @ 480000 -- 7 % complete flash_erase: Cleanmarker written at 480000
Erasing 256 Kibyte @ 4c0000 -- 7 % complete flash_erase: Cleanmarker written at 4c0000
Erasing 256 Kibyte @ 500000 -- 8 % complete flash_erase: Cleanmarker written at 500000
Erasing 256 Kibyte @ 540000 -- 8 % complete flash_erase: Cleanmarker written at 540000
Erasing 256 Kibyte @ 580000 -- 9 % complete flash_erase: Cleanmarker written at 580000
Erasing 256 Kibyte @ 5c0000 -- 9 % complete flash_erase: Cleanmarker written at 5c0000
Erasing 256 Kibyte @ 600000 -- 10 % complete flash_erase: Cleanmarker written at 600000
Erasing 256 Kibyte @ 640000 -- 10 % complete flash_erase: Cleanmarker written at 640000
Erasing 256 Kibyte @ 680000 -- 10 % complete flash_erase: Cleanmarker written at 680000
Erasing 256 Kibyte @ 6c0000 -- 11 % complete flash_erase: Cleanmarker written at 6c0000
Erasing 256 Kibyte @ 700000 -- 11 % complete flash_erase: Cleanmarker written at 700000
Erasing 256 Kibyte @ 740000 -- 12 % complete flash_erase: Cleanmarker written at 740000
Erasing 256 Kibyte @ 780000 -- 12 % complete flash_erase: Cleanmarker written at 780000
Erasing 256 Kibyte @ 7c0000 -- 12 % complete flash_erase: Cleanmarker written at 7c0000
Erasing 256 Kibyte @ 800000 -- 13 % complete flash_erase: Cleanmarker written at 800000
Erasing 256 Kibyte @ 840000 -- 13 % complete flash_erase: Cleanmarker written at 840000
Erasing 256 Kibyte @ 880000 -- 14 % complete flash_erase: Cleanmarker written at 880000
Erasing 256 Kibyte @ 8c0000 -- 14 % complete flash_erase: Cleanmarker written at 8c0000
Erasing 256 Kibyte @ 900000 -- 15 % complete flash_erase: Cleanmarker written at 900000
Erasing 256 Kibyte @ 940000 -- 15 % complete flash_erase: Cleanmarker written at 940000
Erasing 256 Kibyte @ 980000 -- 15 % complete flash_erase: Cleanmarker written at 980000
Erasing 256 Kibyte @ 9c0000 -- 16 % complete flash_erase: Cleanmarker written at 9c0000
Erasing 256 Kibyte @ a00000 -- 16 % complete flash_erase: Cleanmarker written at a00000
Erasing 256 Kibyte @ a40000 -- 17 % complete flash_erase: Cleanmarker written at a40000
Erasing 256 Kibyte @ a80000 -- 17 % complete flash_erase: Cleanmarker written at a80000
Erasing 256 Kibyte @ ac0000 -- 17 % complete flash_erase: Cleanmarker written at ac0000
Erasing 256 Kibyte @ b00000 -- 18 % complete flash_erase: Cleanmarker written at b00000
Erasing 256 Kibyte @ b40000 -- 18 % complete flash_erase: Cleanmarker written at b40000
Erasing 256 Kibyte @ b80000 -- 19 % complete flash_erase: Cleanmarker written at b80000
Erasing 256 Kibyte @ bc0000 -- 19 % complete flash_erase: Cleanmarker written at bc0000
Erasing 256 Kibyte @ c00000 -- 20 % complete flash_erase: Cleanmarker written at c00000
Erasing 256 Kibyte @ c40000 -- 20 % complete flash_erase: Cleanmarker written at c40000
Erasing 256 Kibyte @ c80000 -- 20 % complete flash_erase: Cleanmarker written at c80000
Erasing 256 Kibyte @ cc0000 -- 21 % complete flash_erase: Cleanmarker written at cc0000
Erasing 256 Kibyte @ d00000 -- 21 % complete flash_erase: Cleanmarker written at d00000
Erasing 256 Kibyte @ d40000 -- 22 % complete flash_erase: Cleanmarker written at d40000
Erasing 256 Kibyte @ d80000 -- 22 % complete flash_erase: Cleanmarker written at d80000
Erasing 256 Kibyte @ dc0000 -- 23 % complete flash_erase: Cleanmarker written at dc0000
Erasing 256 Kibyte @ e00000 -- 23 % complete flash_erase: Cleanmarker written at e00000
Erasing 256 Kibyte @ e40000 -- 23 % complete flash_erase: Cleanmarker written at e40000
Erasing 256 Kibyte @ e80000 -- 24 % complete flash_erase: Cleanmarker written at e80000
Erasing 256 Kibyte @ ec0000 -- 24 % complete flash_erase: Cleanmarker written at ec0000
Erasing 256 Kibyte @ f00000 -- 25 % complete flash_erase: Cleanmarker written at f00000
Erasing 256 Kibyte @ f40000 -- 25 % complete flash_erase: Cleanmarker written at f40000
Erasing 256 Kibyte @ f80000 -- 25 % complete flash_erase: Cleanmarker written at f80000
Erasing 256 Kibyte @ fc0000 -- 26 % complete flash_erase: Cleanmarker written at fc0000
Erasing 256 Kibyte @ 1000000 -- 26 % complete flash_erase: Cleanmarker written at 1000000
Erasing 256 Kibyte @ 1040000 -- 27 % complete flash_erase: Cleanmarker written at 1040000
Erasing 256 Kibyte @ 1080000 -- 27 % complete flash_erase: Cleanmarker written at 1080000
Erasing 256 Kibyte @ 10c0000 -- 28 % complete flash_erase: Cleanmarker written at 10c0000
Erasing 256 Kibyte @ 1100000 -- 28 % complete flash_erase: Cleanmarker written at 1100000
Erasing 256 Kibyte @ 1140000 -- 28 % complete flash_erase: Cleanmarker written at 1140000
Erasing 256 Kibyte @ 1180000 -- 29 % complete flash_erase: Cleanmarker written at 1180000
Erasing 256 Kibyte @ 11c0000 -- 29 % complete flash_erase: Cleanmarker written at 11c0000
Erasing 256 Kibyte @ 1200000 -- 30 % complete flash_erase: Cleanmarker written at 1200000
Erasing 256 Kibyte @ 1240000 -- 30 % complete flash_erase: Cleanmarker written at 1240000
Erasing 256 Kibyte @ 1280000 -- 30 % complete flash_erase: Cleanmarker written at 1280000
Erasing 256 Kibyte @ 12c0000 -- 31 % complete flash_erase: Cleanmarker written at 12c0000
Erasing 256 Kibyte @ 1300000 -- 31 % complete flash_erase: Cleanmarker written at 1300000
Erasing 256 Kibyte @ 1340000 -- 32 % complete flash_erase: Cleanmarker written at 1340000
Erasing 256 Kibyte @ 1380000 -- 32 % complete flash_erase: Cleanmarker written at 1380000
Erasing 256 Kibyte @ 13c0000 -- 33 % complete flash_erase: Cleanmarker written at 13c0000
Erasing 256 Kibyte @ 1400000 -- 33 % complete flash_erase: Cleanmarker written at 1400000
Erasing 256 Kibyte @ 1440000 -- 33 % complete flash_erase: Cleanmarker written at 1440000
Erasing 256 Kibyte @ 1480000 -- 34 % complete flash_erase: Cleanmarker written at 1480000
Erasing 256 Kibyte @ 14c0000 -- 34 % complete flash_erase: Cleanmarker written at 14c0000
Erasing 256 Kibyte @ 1500000 -- 35 % complete flash_erase: Cleanmarker written at 1500000
Erasing 256 Kibyte @ 1540000 -- 35 % complete flash_erase: Cleanmarker written at 1540000
Erasing 256 Kibyte @ 1580000 -- 35 % complete flash_erase: Cleanmarker written at 1580000
Erasing 256 Kibyte @ 15c0000 -- 36 % complete flash_erase: Cleanmarker written at 15c0000
Erasing 256 Kibyte @ 1600000 -- 36 % complete flash_erase: Cleanmarker written at 1600000
Erasing 256 Kibyte @ 1640000 -- 37 % complete flash_erase: Cleanmarker written at 1640000
Erasing 256 Kibyte @ 1680000 -- 37 % complete flash_erase: Cleanmarker written at 1680000
Erasing 256 Kibyte @ 16c0000 -- 38 % complete flash_erase: Cleanmarker written at 16c0000
Erasing 256 Kibyte @ 1700000 -- 38 % complete flash_erase: Cleanmarker written at 1700000
Erasing 256 Kibyte @ 1740000 -- 38 % complete flash_erase: Cleanmarker written at 1740000
Erasing 256 Kibyte @ 1780000 -- 39 % complete flash_erase: Cleanmarker written at 1780000
Erasing 256 Kibyte @ 17c0000 -- 39 % complete flash_erase: Cleanmarker written at 17c0000
Erasing 256 Kibyte @ 1800000 -- 40 % complete flash_erase: Cleanmarker written at 1800000
Erasing 256 Kibyte @ 1840000 -- 40 % complete flash_erase: Cleanmarker written at 1840000
Erasing 256 Kibyte @ 1880000 -- 41 % complete flash_erase: Cleanmarker written at 1880000
Erasing 256 Kibyte @ 18c0000 -- 41 % complete flash_erase: Cleanmarker written at 18c0000
Erasing 256 Kibyte @ 1900000 -- 41 % complete flash_erase: Cleanmarker written at 1900000
Erasing 256 Kibyte @ 1940000 -- 42 % complete flash_erase: Cleanmarker written at 1940000
Erasing 256 Kibyte @ 1980000 -- 42 % complete flash_erase: Cleanmarker written at 1980000
Erasing 256 Kibyte @ 19c0000 -- 43 % complete flash_erase: Cleanmarker written at 19c0000
Erasing 256 Kibyte @ 1a00000 -- 43 % complete flash_erase: Cleanmarker written at 1a00000
Erasing 256 Kibyte @ 1a40000 -- 43 % complete flash_erase: Cleanmarker written at 1a40000
Erasing 256 Kibyte @ 1a80000 -- 44 % complete flash_erase: Cleanmarker written at 1a80000
Erasing 256 Kibyte @ 1ac0000 -- 44 % complete flash_erase: Cleanmarker written at 1ac0000
Erasing 256 Kibyte @ 1b00000 -- 45 % complete flash_erase: Cleanmarker written at 1b00000
Erasing 256 Kibyte @ 1b40000 -- 45 % complete flash_erase: Cleanmarker written at 1b40000
Erasing 256 Kibyte @ 1b80000 -- 46 % complete flash_erase: Cleanmarker written at 1b80000
Erasing 256 Kibyte @ 1bc0000 -- 46 % complete flash_erase: Cleanmarker written at 1bc0000
Erasing 256 Kibyte @ 1c00000 -- 46 % complete flash_erase: Cleanmarker written at 1c00000
Erasing 256 Kibyte @ 1c40000 -- 47 % complete flash_erase: Cleanmarker written at 1c40000
Erasing 256 Kibyte @ 1c80000 -- 47 % complete flash_erase: Cleanmarker written at 1c80000
Erasing 256 Kibyte @ 1cc0000 -- 48 % complete flash_erase: Cleanmarker written at 1cc0000
Erasing 256 Kibyte @ 1d00000 -- 48 % complete flash_erase: Cleanmarker written at 1d00000
Erasing 256 Kibyte @ 1d40000 -- 48 % complete flash_erase: Cleanmarker written at 1d40000
Erasing 256 Kibyte @ 1d80000 -- 49 % complete flash_erase: Cleanmarker written at 1d80000
Erasing 256 Kibyte @ 1dc0000 -- 49 % complete flash_erase: Cleanmarker written at 1dc0000
Erasing 256 Kibyte @ 1e00000 -- 50 % complete flash_erase: Cleanmarker written at 1e00000
Erasing 256 Kibyte @ 1e40000 -- 50 % complete flash_erase: Cleanmarker written at 1e40000
Erasing 256 Kibyte @ 1e80000 -- 51 % complete flash_erase: Cleanmarker written at 1e80000
Erasing 256 Kibyte @ 1ec0000 -- 51 % complete flash_erase: Cleanmarker written at 1ec0000
Erasing 256 Kibyte @ 1f00000 -- 51 % complete flash_erase: Cleanmarker written at 1f00000
Erasing 256 Kibyte @ 1f40000 -- 52 % complete flash_erase: Cleanmarker written at 1f40000
Erasing 256 Kibyte @ 1f80000 -- 52 % complete flash_erase: Cleanmarker written at 1f80000
Erasing 256 Kibyte @ 1fc0000 -- 53 % complete flash_erase: Cleanmarker written at 1fc0000
Erasing 256 Kibyte @ 2000000 -- 53 % complete flash_erase: Cleanmarker written at 2000000
Erasing 256 Kibyte @ 2040000 -- 53 % complete flash_erase: Cleanmarker written at 2040000
Erasing 256 Kibyte @ 2080000 -- 54 % complete flash_erase: Cleanmarker written at 2080000
Erasing 256 Kibyte @ 20c0000 -- 54 % complete flash_erase: Cleanmarker written at 20c0000
Erasing 256 Kibyte @ 2100000 -- 55 % complete flash_erase: Cleanmarker written at 2100000
Erasing 256 Kibyte @ 2140000 -- 55 % complete flash_erase: Cleanmarker written at 2140000
Erasing 256 Kibyte @ 2180000 -- 56 % complete flash_erase: Cleanmarker written at 2180000
Erasing 256 Kibyte @ 21c0000 -- 56 % complete flash_erase: Cleanmarker written at 21c0000
Erasing 256 Kibyte @ 2200000 -- 56 % complete flash_erase: Cleanmarker written at 2200000
Erasing 256 Kibyte @ 2240000 -- 57 % complete flash_erase: Cleanmarker written at 2240000
Erasing 256 Kibyte @ 2280000 -- 57 % complete flash_erase: Cleanmarker written at 2280000
Erasing 256 Kibyte @ 22c0000 -- 58 % complete flash_erase: Cleanmarker written at 22c0000
Erasing 256 Kibyte @ 2300000 -- 58 % complete flash_erase: Cleanmarker written at 2300000
Erasing 256 Kibyte @ 2340000 -- 58 % complete flash_erase: Cleanmarker written at 2340000
Erasing 256 Kibyte @ 2380000 -- 59 % complete flash_erase: Cleanmarker written at 2380000
Erasing 256 Kibyte @ 23c0000 -- 59 % complete flash_erase: Cleanmarker written at 23c0000
Erasing 256 Kibyte @ 2400000 -- 60 % complete flash_erase: Cleanmarker written at 2400000
Erasing 256 Kibyte @ 2440000 -- 60 % complete flash_erase: Cleanmarker written at 2440000
Erasing 256 Kibyte @ 2480000 -- 61 % complete flash_erase: Cleanmarker written at 2480000
Erasing 256 Kibyte @ 24c0000 -- 61 % complete flash_erase: Cleanmarker written at 24c0000
Erasing 256 Kibyte @ 2500000 -- 61 % complete flash_erase: Cleanmarker written at 2500000
Erasing 256 Kibyte @ 2540000 -- 62 % complete flash_erase: Cleanmarker written at 2540000
Erasing 256 Kibyte @ 2580000 -- 62 % complete flash_erase: Cleanmarker written at 2580000
Erasing 256 Kibyte @ 25c0000 -- 63 % complete flash_erase: Cleanmarker written at 25c0000
Erasing 256 Kibyte @ 2600000 -- 63 % complete flash_erase: Cleanmarker written at 2600000
Erasing 256 Kibyte @ 2640000 -- 64 % complete flash_erase: Cleanmarker written at 2640000
Erasing 256 Kibyte @ 2680000 -- 64 % complete flash_erase: Cleanmarker written at 2680000
Erasing 256 Kibyte @ 26c0000 -- 64 % complete flash_erase: Cleanmarker written at 26c0000
Erasing 256 Kibyte @ 2700000 -- 65 % complete flash_erase: Cleanmarker written at 2700000
Erasing 256 Kibyte @ 2740000 -- 65 % complete flash_erase: Cleanmarker written at 2740000
Erasing 256 Kibyte @ 2780000 -- 66 % complete flash_erase: Cleanmarker written at 2780000
Erasing 256 Kibyte @ 27c0000 -- 66 % complete flash_erase: Cleanmarker written at 27c0000
Erasing 256 Kibyte @ 2800000 -- 66 % complete flash_erase: Cleanmarker written at 2800000
Erasing 256 Kibyte @ 2840000 -- 67 % complete flash_erase: Cleanmarker written at 2840000
Erasing 256 Kibyte @ 2880000 -- 67 % complete flash_erase: Cleanmarker written at 2880000
Erasing 256 Kibyte @ 28c0000 -- 68 % complete flash_erase: Cleanmarker written at 28c0000
Erasing 256 Kibyte @ 2900000 -- 68 % complete flash_erase: Cleanmarker written at 2900000
Erasing 256 Kibyte @ 2940000 -- 69 % complete flash_erase: Cleanmarker written at 2940000
Erasing 256 Kibyte @ 2980000 -- 69 % complete flash_erase: Cleanmarker written at 2980000
Erasing 256 Kibyte @ 29c0000 -- 69 % complete flash_erase: Cleanmarker written at 29c0000
Erasing 256 Kibyte @ 2a00000 -- 70 % complete flash_erase: Cleanmarker written at 2a00000
Erasing 256 Kibyte @ 2a40000 -- 70 % complete flash_erase: Cleanmarker written at 2a40000
Erasing 256 Kibyte @ 2a80000 -- 71 % complete flash_erase: Cleanmarker written at 2a80000
Erasing 256 Kibyte @ 2ac0000 -- 71 % complete flash_erase: Cleanmarker written at 2ac0000
Erasing 256 Kibyte @ 2b00000 -- 71 % complete flash_erase: Cleanmarker written at 2b00000
Erasing 256 Kibyte @ 2b40000 -- 72 % complete flash_erase: Cleanmarker written at 2b40000
Erasing 256 Kibyte @ 2b80000 -- 72 % complete flash_erase: Cleanmarker written at 2b80000
Erasing 256 Kibyte @ 2bc0000 -- 73 % complete flash_erase: Cleanmarker written at 2bc0000
Erasing 256 Kibyte @ 2c00000 -- 73 % complete flash_erase: Cleanmarker written at 2c00000
Erasing 256 Kibyte @ 2c40000 -- 74 % complete flash_erase: Cleanmarker written at 2c40000
Erasing 256 Kibyte @ 2c80000 -- 74 % complete flash_erase: Cleanmarker written at 2c80000
Erasing 256 Kibyte @ 2cc0000 -- 74 % complete flash_erase: Cleanmarker written at 2cc0000
Erasing 256 Kibyte @ 2d00000 -- 75 % complete flash_erase: Cleanmarker written at 2d00000
Erasing 256 Kibyte @ 2d40000 -- 75 % complete flash_erase: Cleanmarker written at 2d40000
Erasing 256 Kibyte @ 2d80000 -- 76 % complete flash_erase: Cleanmarker written at 2d80000
Erasing 256 Kibyte @ 2dc0000 -- 76 % complete flash_erase: Cleanmarker written at 2dc0000
Erasing 256 Kibyte @ 2e00000 -- 76 % complete flash_erase: Cleanmarker written at 2e00000
Erasing 256 Kibyte @ 2e40000 -- 77 % complete flash_erase: Cleanmarker written at 2e40000
Erasing 256 Kibyte @ 2e80000 -- 77 % complete flash_erase: Cleanmarker written at 2e80000
Erasing 256 Kibyte @ 2ec0000 -- 78 % complete flash_erase: Cleanmarker written at 2ec0000
Erasing 256 Kibyte @ 2f00000 -- 78 % complete flash_erase: Cleanmarker written at 2f00000
Erasing 256 Kibyte @ 2f40000 -- 79 % complete flash_erase: Cleanmarker written at 2f40000
Erasing 256 Kibyte @ 2f80000 -- 79 % complete flash_erase: Cleanmarker written at 2f80000
Erasing 256 Kibyte @ 2fc0000 -- 79 % complete flash_erase: Cleanmarker written at 2fc0000
Erasing 256 Kibyte @ 3000000 -- 80 % complete flash_erase: Cleanmarker written at 3000000
Erasing 256 Kibyte @ 3040000 -- 80 % complete flash_erase: Cleanmarker written at 3040000
Erasing 256 Kibyte @ 3080000 -- 81 % complete flash_erase: Cleanmarker written at 3080000
Erasing 256 Kibyte @ 30c0000 -- 81 % complete flash_erase: Cleanmarker written at 30c0000
Erasing 256 Kibyte @ 3100000 -- 82 % complete flash_erase: Cleanmarker written at 3100000
Erasing 256 Kibyte @ 3140000 -- 82 % complete flash_erase: Cleanmarker written at 3140000
Erasing 256 Kibyte @ 3180000 -- 82 % complete flash_erase: Cleanmarker written at 3180000
Erasing 256 Kibyte @ 31c0000 -- 83 % complete flash_erase: Cleanmarker written at 31c0000
Erasing 256 Kibyte @ 3200000 -- 83 % complete flash_erase: Cleanmarker written at 3200000
Erasing 256 Kibyte @ 3240000 -- 84 % complete flash_erase: Cleanmarker written at 3240000
Erasing 256 Kibyte @ 3280000 -- 84 % complete flash_erase: Cleanmarker written at 3280000
Erasing 256 Kibyte @ 32c0000 -- 84 % complete flash_erase: Cleanmarker written at 32c0000
Erasing 256 Kibyte @ 3300000 -- 85 % complete flash_erase: Cleanmarker written at 3300000
Erasing 256 Kibyte @ 3340000 -- 85 % complete flash_erase: Cleanmarker written at 3340000
Erasing 256 Kibyte @ 3380000 -- 86 % complete flash_erase: Cleanmarker written at 3380000
Erasing 256 Kibyte @ 33c0000 -- 86 % complete flash_erase: Cleanmarker written at 33c0000
Erasing 256 Kibyte @ 3400000 -- 87 % complete flash_erase: Cleanmarker written at 3400000
Erasing 256 Kibyte @ 3440000 -- 87 % complete flash_erase: Cleanmarker written at 3440000
Erasing 256 Kibyte @ 3480000 -- 87 % complete flash_erase: Cleanmarker written at 3480000
Erasing 256 Kibyte @ 34c0000 -- 88 % complete flash_erase: Cleanmarker written at 34c0000
Erasing 256 Kibyte @ 3500000 -- 88 % complete flash_erase: Cleanmarker written at 3500000
Erasing 256 Kibyte @ 3540000 -- 89 % complete flash_erase: Cleanmarker written at 3540000
Erasing 256 Kibyte @ 3580000 -- 89 % complete flash_erase: Cleanmarker written at 3580000
Erasing 256 Kibyte @ 35c0000 -- 89 % complete flash_erase: Cleanmarker written at 35c0000
Erasing 256 Kibyte @ 3600000 -- 90 % complete flash_erase: Cleanmarker written at 3600000
Erasing 256 Kibyte @ 3640000 -- 90 % complete flash_erase: Cleanmarker written at 3640000
Erasing 256 Kibyte @ 3680000 -- 91 % complete flash_erase: Cleanmarker written at 3680000
Erasing 256 Kibyte @ 36c0000 -- 91 % complete flash_erase: Cleanmarker written at 36c0000
Erasing 256 Kibyte @ 3700000 -- 92 % complete flash_erase: Cleanmarker written at 3700000
Erasing 256 Kibyte @ 3740000 -- 92 % complete flash_erase: Cleanmarker written at 3740000
Erasing 256 Kibyte @ 3780000 -- 92 % complete flash_erase: Cleanmarker written at 3780000
Erasing 256 Kibyte @ 37c0000 -- 93 % complete flash_erase: Cleanmarker written at 37c0000
Erasing 256 Kibyte @ 3800000 -- 93 % complete flash_erase: Cleanmarker written at 3800000
Erasing 256 Kibyte @ 3840000 -- 94 % complete flash_erase: Cleanmarker written at 3840000
Erasing 256 Kibyte @ 3880000 -- 94 % complete flash_erase: Cleanmarker written at 3880000
Erasing 256 Kibyte @ 38c0000 -- 94 % complete flash_erase: Cleanmarker written at 38c0000
Erasing 256 Kibyte @ 3900000 -- 95 % complete flash_erase: Cleanmarker written at 3900000
Erasing 256 Kibyte @ 3940000 -- 95 % complete flash_erase: Cleanmarker written at 3940000
Erasing 256 Kibyte @ 3980000 -- 96 % complete flash_erase: Cleanmarker written at 3980000
Erasing 256 Kibyte @ 39c0000 -- 96 % complete flash_erase: Cleanmarker written at 39c0000
Erasing 256 Kibyte @ 3a00000 -- 97 % complete flash_erase: Cleanmarker written at 3a00000
Erasing 256 Kibyte @ 3a40000 -- 97 % complete flash_erase: Cleanmarker written at 3a40000
Erasing 256 Kibyte @ 3a80000 -- 97 % complete flash_erase: Cleanmarker written at 3a80000
Erasing 256 Kibyte @ 3ac0000 -- 98 % complete flash_erase: Cleanmarker written at 3ac0000
Erasing 256 Kibyte @ 3b00000 -- 98 % complete flash_erase: Cleanmarker written at 3b00000
Erasing 256 Kibyte @ 3b40000 -- 99 % complete flash_erase: Cleanmarker written at 3b40000
Erasing 256 Kibyte @ 3b80000 -- 99 % complete flash_erase: Cleanmarker written at 3b80000
Erasing 256 Kibyte @ 3b80000 -- 100 % complete
root@linaro-naro:~#
root@linaro-naro:~#
root@linaro-naro:~# mount -t jffs2 /dev/mtdblock2 /mnt/media
root@linaro-naro:~#
root@linaro-naro:~#
root@linaro-naro:~# dd if=/dev/mtdblock2 of=test.dat bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0531048 s, 9.6 kB/s
root@linaro-naro:~#
root@linaro-naro:~#
root@linaro-naro:~# cp test.dat /mnt/media
[ 293.955856] ------------[ cut here ]------------
[ 293.969797] WARNING: CPU: 1 PID: 2006 at drivers/mtd/spi-nor/spi-nor.c:1182 spi_nor_write+0x84/0x160
[ 293.997286] Writing at offset 12 into a NOR page. Writing partial pages may decrease reliability and increase wear of NOR flash.
[ 293.997314] CPU: 1 PID: 2006 Comm: cp Not tainted 4.10.0-rc2-dirty #277
[ 294.051808] Hardware name: Generic R8A7790 (Flattened Device Tree)
[ 294.070333] Backtrace:
[ 294.077706] [<c010a8a0>] (dump_backtrace) from [<c010aad8>] (show_stack+0x18/0x1c)
[ 294.100409] r6:c04786f0 r5:00000000 r4:600f0013 r3:00404000
[ 294.117396] [<c010aac0>] (show_stack) from [<c033b154>] (dump_stack+0x80/0xa0)
[ 294.139062] [<c033b0d4>] (dump_stack) from [<c011e49c>] (__warn+0xd4/0x104)
[ 294.159935] r5:00000000 r4:ee075ba8
[ 294.170662] [<c011e3c8>] (__warn) from [<c011e50c>] (warn_slowpath_fmt+0x40/0x48)
[ 294.193105] r9:c0a2a6cb r8:ee075c8c r7:0000000c r6:00000000 r5:00000000 r4:ee4e4818
[ 294.216333] [<c011e4d0>] (warn_slowpath_fmt) from [<c04786f0>] (spi_nor_write+0x84/0x160)
[ 294.240841] r3:0000000c r2:c0852bcf
[ 294.251543] [<c047866c>] (spi_nor_write) from [<c0472c4c>] (part_write+0x48/0x50)
[ 294.273961] r10:00000001 r9:00000000 r8:ee075d68 r7:00000000 r6:03bc0000 r5:00000000
[ 294.297419] r4:00440000
[ 294.304996] [<c0472c04>] (part_write) from [<c0470670>] (mtd_write+0x84/0x9c)
[ 294.326370] r5:00000000 r4:c0472c04
[ 294.337072] [<c04705ec>] (mtd_write) from [<c04712b4>] (mtd_writev+0x84/0xe4)
[ 294.358447] r9:ee4f1c00 r8:ee075d68 r7:00000000 r6:ee075d70 r5:00000000 r4:03b4000c
[ 294.381650] [<c0471230>] (mtd_writev) from [<c02f4008>] (jffs2_flash_direct_writev+0x28/0x30)
[ 294.407193] r10:00000044 r9:00000000 r8:03b4000c r7:03b4000c r6:ee075d70 r5:00000000
[ 294.430650] r4:03b4000c
[ 294.438226] [<c02f3fe0>] (jffs2_flash_direct_writev) from [<c02f5d10>] (jffs2_flash_writev+0x40/0x434)
[ 294.466110] r5:03b4000c r4:eebbf200
[ 294.476810] [<c02f5cd0>] (jffs2_flash_writev) from [<c02eeeec>] (jffs2_write_dnode+0x130/0x32c)
[ 294.502873] r10:00000044 r9:eebbf200 r8:eee84040 r7:03b4000c r6:ee2400f0 r5:ee212c00
[ 294.526329] r4:eebbf200
[ 294.533904] [<c02eedbc>] (jffs2_write_dnode) from [<c02ef7a4>] (jffs2_do_create+0x90/0x224)
[ 294.558925] r10:eee84040 r9:eebbf200 r8:eec1d5f0 r7:eee84dc0 r6:ee212c00 r5:eebbf200
[ 294.582381] r4:00000000
[ 294.589959] [<c02ef714>] (jffs2_do_create) from [<c02ea158>] (jffs2_create+0xac/0x120)
[ 294.613680] r10:00000000 r9:eebbf200 r8:eec1d5d8 r7:eee84040 r6:ee212c00 r5:eee84df0
[ 294.637136] r4:eee84070
[ 294.644713] [<c02ea0ac>] (jffs2_create) from [<c01ef0e0>] (path_openat+0x7f0/0xd98)
[ 294.667653] r9:c02ea0ac r8:eec1d5d8 r7:000200c1 r6:ee031000 r5:00000000 r4:ee075ea8
[ 294.690852] [<c01ee8f0>] (path_openat) from [<c01ef6c8>] (do_filp_open+0x40/0x8c)
[ 294.713270] r10:00000000 r9:ee074000 r8:c0106f24 r7:ffffff9c r6:00000001 r5:ee075f5c
[ 294.736726] r4:000200c1
[ 294.744302] [<c01ef688>] (do_filp_open) from [<c01e0be4>] (do_sys_open+0x114/0x1b4)
[ 294.767238] r6:ee236000 r5:00000004 r4:000200c1
[ 294.781061] [<c01e0ad0>] (do_sys_open) from [<c01e0cac>] (SyS_open+0x28/0x2c)
[ 294.802437] r9:ee074000 r8:c0106f24 r7:00000005 r6:000001a4 r5:00000000 r4:00023488
[ 294.825639] [<c01e0c84>] (SyS_open) from [<c0106d60>] (ret_fast_syscall+0x0/0x3c)
[ 294.848089] ---[ end trace 139831462934bc76 ]---
root@linaro-naro:~#
root@linaro-naro:~#