[Miscellaneous Android Development] polys643:
The problem here is that this particular box has been fine for the last 5 months or so. I could get into recovery just fine. But one day, probably something got corrupted and it says that the system is read-only. When I manage to get into XBMC, i can see no icons and nothing is working. And I cannot reinstall anything using the toothpick method.

Can i flash a new recovery through ssh somehow?

Here is part of the results of dmesg in case it helps. I can see some "NAND detect Bad block".

[root@MX /root]# dmesg
[0.000000@0] Initializing cgroup subsys cpu
[0.000000@0] Linux version 3.0.101-MX (croniccorey@CoreTech-Dev-Laptop) (gcc version 4.7.3 20130328 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) ) #1 SMP PREEMPT Tue Mar 18 03:23:09 EDT 2014
[0.000000@0] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d
[0.000000@0] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[0.000000@0] Machine: Amlogic Meson6 G18REF/MX2REF
[0.000000@0] Ignoring unrecognised tag 0x00000000
[0.000000@0] early_mem:532: start=0x80000000, size=0x4000000
[0.000000@0] early_mem:551: start=0x91a00000, size=0xe500000
[0.000000@0] early_mem:559: start=0xa0000000, size=0x20000000
[0.000000@0] Memory policy: ECC disabled, Data cache writealloc
[0.000000@0] On node 0 totalpages: 206080
[0.000000@0] free_area_init_node: node 0, pgdat c081d380, node_mem_map c09b5000
[0.000000@0] Normal zone: 1022 pages used for memmap
[0.000000@0] Normal zone: 0 pages reserved
[0.000000@0] Normal zone: 73986 pages, LIFO batch:15
[0.000000@0] HighMem zone: 1026 pages used for memmap
[0.000000@0] HighMem zone: 130046 pages, LIFO batch:31
[0.000000@0] PERCPU: Embedded 7 pages/cpu @c11be000 s5088 r8192 d15392 u32768
[0.000000@0] pcpu-alloc: s5088 r8192 d15392 u32768 alloc=8*4096
[0.000000@0] pcpu-alloc: [0] 0 [0] 1
[0.000000@0] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 204032
[0.000000@0] Kernel command line: root=/dev/cardblksd2 rw rootfstype=ext3 rootwait init=/init console=ttyS0,115200n8 mac=c4:4e:ac:05:3e:30 logo=osd1,0x84100000,720p50hz,full androidboot.resolution=720p50hz hdmimode=720p cvbsmode=480cvbs hlt vmalloc=256m mem=1024m a9_clk_max=1512000000 vdachwswitch=component hdmitx= root=/dev/system rootfstype=ext4 a9_clk=800M clk81=187500000 init=/sbin/init hdmitx=true
[0.000000@0] ******** uboot setup mac-addr: c4:4e:ac:5:3e:30
[0.000000@0] osd1:1
[0.000000@0] 720p50hz:9
[0.000000@0] full:2
[0.000000@0] kernel get cvbsmode form uboot is 480cvbs
[0.000000@0] HDMI DEBUG: hdmitx_boot_para_setup [1926]
[0.000000@0] HDMI DEBUG: hdmitx_boot_para_setup [1926]
[0.000000@0] PID hash table entries: 2048 (order: 1, 8192 bytes)
[0.000000@0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[0.000000@0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[0.000000@0] Memory: 64MB 229MB 512MB = 805MB total
[0.000000@0] Memory: 807408k/807408k available, 16912k reserved, 524288K highmem
[0.000000@0] Virtual kernel memory layout:
[0.000000@0] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[0.000000@0] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[0.000000@0] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[0.000000@0] vmalloc : 0xe0000000 - 0xf0000000 ( 256 MB)
[0.000000@0] lowmem : 0xc0000000 - 0xdff00000 ( 511 MB)
[0.000000@0] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[0.000000@0] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[0.000000@0] .init : 0xc0008000 - 0xc0032000 ( 168 kB)
[0.000000@0] .text : 0xc0032000 - 0xc07c7180 (7765 kB)
[0.000000@0] .data : 0xc07c8000 - 0xc081de60 ( 344 kB)
[0.000000@0] .bss : 0xc081de84 - 0xc09b4a30 (1627 kB)
[0.000000@0] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[0.000000@0] Preemptible hierarchical RCU implementation.
[0.000000@0] RCU debugfs-based tracing is enabled.
[0.000000@0] NR_IRQS:256
[0.000000@0] gic_init: irq_offset=0
[0.000000@0] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[0.000000@0] MESON TIMER-A c07d7340
[0.000000@0] Disable timerA
[0.000000@0] Console: colour dummy device 80x30
[0.000000@0] console [ttyS0] enabled
[0.294537@0] Calibrating delay loop... 2387.14 BogoMIPS (lpj=11935744)
[0.350043@0] pid_max: default: 32768 minimum: 301
[0.352242@0] Mount-cache hash table entries: 512
[0.357453@0] Initializing cgroup subsys cpuacct
[0.361409@0] Initializing cgroup subsys freezer
[0.365930@0] Initializing cgroup subsys bfqio
[0.370438@0] CPU: Testing write buffer coherency: ok
[0.375587@0] MESON TIMER-B c07d7400
[0.378957@0] Disable timerA
[0.381812@0] Disable timerB
[0.384680@0] Disable timerA
[0.387668@0] L310 cache controller enabled
[0.391708@0] l2x0: 8 ways, CACHE_ID 0x4100a0c8, AUX_CTRL 0x7e462c01, Cache size: 524288 B
[0.400002@0] prefetch=0x31000006
[0.403336@0] ===actlr=0x41
[0.406119@0] ===actlr=0x4b
[0.408891@0] SCU_CTRL: scu_ctrl=0x69
[0.412537@0] pl310: aux=0x7e462c01, prefetch=0x31000006
[0.515878@1] CPU1: Booted secondary processor
[0.575613@1] MESON TIMER-D c07d7580
[0.575641@0] Brought up 2 CPUs
[0.575649@0] SMP: Total of 2 processors activated (4780.85 BogoMIPS).
[0.587608@1] Disable timerD
[0.590627@0] devtmpfs: initialized
[0.597928@0] clkrate [ xtal ] : 24000000
[0.597955@0] clkrate [ pll_sys ] : 1200000000
[0.602362@0] clkrate [ pll_fixed ] : 2000000000
[0.606976@0] clkrate [ pll_vid2 ] : 378000000
[0.611389@0] clkrate [ pll_hpll ] : 378000000
[0.615906@0] clkrate [ pll_ddr ] : 516000000
[0.620155@0] clkrate [ a9_clk ] : 1200000000
[0.624559@0] clkrate [ clk81 ] : 200000000
[0.628764@0] clkrate [ usb0 ] : 0
[0.632143@0] clkrate [ usb1 ] : 0
[0.636489@0] print_constraints: dummy:
[0.639458@0] NET: Registered protocol family 16
[0.644907@0] ***vcck: vcck_pwm_initregister lm device 0
[0.649334@0] register lm device 1
[0.655537@1] usb_wifi_power Off
[0.655982@1] chip version=ff00ff00
[0.659405@1] vdac_switch_init_module
[0.662973@1] vdac_switch mode = 1
[0.666530@1] tv_init_module
[0.669202@1] major number 254 for disp
[0.673102@1] vout_register_server
[0.676495@1] register tv module server ok
[0.680825@1] major number 0 for disp
[0.684473@1] register tv module server ok
[0.688831@1] video2_early_init enter
[0.692373@1] video2_early_init exit
[0.695939@1] drivers/amlogic/i2c/aml_i2c.c : aml_i2c_init
[0.701424@1] drivers/amlogic/i2c/aml_i2c.c : aml_i2c_probe
[0.706970@1] master_no = 0, resource = c0817cfc, maseter_regs=f1108500
[0.713693@1] aml-i2c aml-i2c.0: add adapter aml_i2c_adap0(df8f8028)
[0.719896@1] aml-i2c aml-i2c.0: aml i2c bus driver.
[0.724931@1] drivers/amlogic/i2c/aml_i2c.c : aml_i2c_probe
[0.730400@1] master_no = 1, resource = c0817d54, maseter_regs=f11087c0
[0.737098@1] aml-i2c aml-i2c.1: add adapter aml_i2c_adap1(df8f8828)
[0.743324@1] aml-i2c aml-i2c.1: aml i2c bus driver.
[0.748363@1] drivers/amlogic/i2c/aml_i2c.c : aml_i2c_probe
[0.753828@1] master_no = 2, resource = c0817dac, maseter_regs=f3100500
[0.760541@1] aml-i2c aml-i2c.2: add adapter aml_i2c_adap2(df8f9028)
[0.766767@1] aml-i2c aml-i2c.2: aml i2c bus driver.
[0.771871@1] HDMI DEBUG: amhdmitx_init [1826]
[0.776142@1] HDMI Ver: 2013Aug25a
[0.779535@1] HDMI DEBUG: amhdmitx_probe [1633]
[0.784355@1] Set HDMI:Chip C
[0.787001@1] HDMI: get hdmi platform data
[0.791063@1] HDMI 5V Power On
[0.794153@1] HDMI DEBUG: HDMITX_M1B_Init [3423]
[0.798712@1] HDMI DEBUG: HDMITX_M1B_Init [3426]
[0.803303@1] HDMI DEBUG: hdmi_hw_init [1204]
[0.807698@1] HDMI: get brd phy data
[0.811244@1] hdmi phy setting
[0.814389@1] HDMI: get brd phy data
[0.817836@1] hdmi phy setting
[0.821470@1] HDMI: reset intr mask
[0.835659@1] HDMI DEBUG: hdmi_task_handle [1261]
[0.835668@0] HDMI irq 1
[0.835679@0] Reg0x196 = 0x2 Reg0x80 = 0x1 Reg0x26 = 0xc
[0.835696@0] Reg0x196 = 0x42 Reg0x80 = 0x1 Reg0x26 = 0x4c
[0.872218@0] bio: create slab <bio-0> at 0
[0.873080@0] SCSI subsystem initialized
[0.874900@0] usbcore: registered new interface driver usbfs
[0.880974@0] usbcore: registered new interface driver hub
[0.887201@0] usbcore: registered new device driver usb
[0.891537@0] TV mode 720p50hz selected.
[0.891544@0] [0x1b7e] = 0xff
[0.893939@0] [0x105f] = 0x0
[0.896844@0] [0x109d] = 0x814d3928
[0.900275@0] [0x109e] = 0x6b425012
[0.903747@0] [0x109f] = 0x110
[0.906796@0] [0x109c] = 0x1043e
[0.909997@0] [0x1066] = 0x10843
[0.913208@0] [0x1059] = 0x100
[0.916289@0] [0x105f] = 0x80000
[0.919458@0] [0x105f] = 0x88001
[0.922669@0] [0x105f] = 0x80003
[0.925887@0] [0x104a] = 0x101
[0.928919@0] [0x1bb8] = 0x52
[0.931870@0] [0x1b62] = 0x202d
[0.934995@0] [0x1b97] = 0xf77
[0.938039@0] [0x1bae] = 0x2ed
[0.941071@0] [0x1b98] = 0x50
[0.944022@0] [0x1b99] = 0xf0
[0.946979@0] [0x1b9a] = 0x50
[0.949924@0] [0x1ba4] = 0x288
[0.952962@0] [0x1ba3] = 0xc87
[0.956006@0] [0x1ba7] = 0x80
[0.958952@0] [0x1ba8] = 0xd0
[0.961903@0] [0x1b9b] = 0x2b0
[0.964941@0] [0x1b9c] = 0xcb0
[0.967984@0] [0x1b9d] = 0x4
[0.970843@0] [0x1b9e] = 0x8
[0.973707@0] [0x1ba1] = 0x4
[0.976577@0] [0x1ba2] = 0x8
[0.979436@0] [0x1ba6] = 0x1d
[0.982388@0] [0x1baf] = 0x2ec
[0.985425@0] [0x1ba9] = 0x80
[0.988382@0] [0x1baa] = 0x80
[0.991328@0] [0x1bab] = 0x0
[0.994192@0] [0x1bac] = 0x5
[0.997062@0] [0x1b94] = 0x288
[1.000095@0] [0x1b95] = 0xc87
[1.003133@0] [0x1b68] = 0x100
[1.006175@0] [0x1b8d] = 0x4040
[1.009296@0] [0x1b8e] = 0x19
[1.012247@0] [0x1b81] = 0x407
[1.015285@0] [0x1b96] = 0x0
[1.018154@0] [0x1b60] = 0x0
[1.021013@0] [0x1b6e] = 0x200
[1.024051@0] [0x1b58] = 0x0
[1.026921@0] [0x1b7e] = 0x0
[1.029780@0] [0x271a] = 0xa
[1.032645@0] [0x1bfc] = 0x1000
[1.035774@0] [0x1c0d] = 0x3102
[1.038894@0] [0x1c0e] = 0x54
[1.041845@0] [0x1b78] = 0x1
[1.044710@0] [0x1b79] = 0x1
[1.047579@0] [0x1b7a] = 0x1
[1.050439@0] [0x1b7b] = 0x1
[1.053303@0] [0x1b7c] = 0x1
[1.056172@0] [0x1b7d] = 0x1
[1.059032@0] [0x1b80] = 0x1
[1.061896@0] [0x1b57] = 0x0
[1.064761@0] tvoutc_setmode[267]
[1.068065@0] mode is: 9
[1.070578@0] VPU_VIU_VENC_MUX_CTRL: 0xa
[1.074482@0] viu chan = 1
[1.077178@0] VPU_VIU_VENC_MUX_CTRL: 0xa
[1.113494@0] request_fiq:152: fiq=35
[1.113522@0] request_fiq:186: end
[1.130839@0] print_constraints: vcck: 1010 <--> 1210 mV at 1400 mV
[1.131997@0] Advanced Linux Sound Architecture Driver Version 1.0.24.
[1.139010@0] cfg80211: Calling CRDA to update world regulatory domain
[1.145094@0] Switching to clocksource Timer-E
[1.155629@0] Switched to NOHz mode on CPU #0
[1.155638@1] Switched to NOHz mode on CPU #1
[1.162912@1] NET: Registered protocol family 2
[1.163313@1] IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
[1.170734@1] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[1.178455@1] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
[1.185481@1] TCP: Hash tables configured (established 65536 bind 65536)
[1.191261@1] TCP reno registered
[1.194554@1] UDP hash table entries: 256 (order: 1, 8192 bytes)
[1.200568@1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[1.207190@1] NET: Registered protocol family 1
[1.212712@1] highmem bounce pool size: 64 pages
[1.216318@1] ashmem: initialized
[1.229121@1] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[1.230696@1] NTFS driver 2.1.30 [Flags: R/O].
[1.234257@1] fuse init (API version 7.16)
[1.238723@1] yaffs: yaffs built Mar 18 2014 03:18:09 Installing.
[1.238762@1] msgmni has been set to 552
[1.242830@1] io scheduler noop registered
[1.245975@1] io scheduler deadline registered
[1.250754@1] io scheduler bfq registered (default)
[1.359463@1] HDMI: EDID Ready
[1.359545@1] CEC: Physical address: 0x1000
[1.361045@1] CEC: Physical address: 1.0.0.0
[1.365341@1] HDMI: get current mode: 720p50hz
[1.370017@1] set mode VIC 19 (cd0,cs0,pm1,vd0,1)
[1.375095@1] HDMI DEBUG: hdmi_hw_reset [1377]
[1.379485@1] HDMI: get brd phy data
[1.383051@1] hdmi phy setting
[1.394179@1] HDMI: get brd phy data
[1.394205@1] hdmi phy setting
[1.395198@1] HDMI DEBUG: hdmitx_set_pll [2058]
[1.400066@1] param->VIC:19
[1.402803@1] mode is: 6
[1.405312@1] VPU_VIU_VENC_MUX_CTRL: 0x22a
[1.409475@1] viu chan = 1
[1.412139@1] VPU_VIU_VENC_MUX_CTRL: 0x22a
[1.447858@1] Sink is HDMI device
[1.447900@1] Source in HDMI Mode
[1.449002@1] CEC not ready
[1.467860@1] loop: module loaded
[1.470101@1] PPP generic driver version 2.4.2
[1.470572@1] PPP Deflate Compression module registered
[1.475170@1] PPP BSD Compression module registered
[1.480437@1] PPP MPPE Compression module registered
[1.484980@1] NET: Registered protocol family 24
[1.489611@1] tun: Universal TUN/TAP device driver, 1.6
[1.494786@1] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[1.501713@1] usbcore: registered new interface driver asix
[1.505157@0] HDMI irq 2
[1.505168@0] Reg0x196 = 0x0 Reg0x80 = 0x1 Reg0x26 = 0x4c
[1.505182@0] Reg0x196 = 0x0 Reg0x80 = 0x1 Reg0x26 = 0xc
[1.520350@1] usbcore: registered new interface driver cdc_ether
[1.526301@1] usbcore: registered new interface driver net1080
[1.532138@1] usbcore: registered new interface driver cdc_subset
[1.538186@1] usbcore: registered new interface driver zaurus
[1.543855@1] cdc_ncm: 04-Aug-2011
[1.547306@1] usbcore: registered new interface driver cdc_ncm
[1.553127@1] usbcore: registered new interface driver qf9700
[1.558839@1] usbcore: registered new interface driver sr9600
[1.564511@1] HDMI: audio channel num is 0
[1.568574@1] current VIC: 19
[1.571602@1] audio sample rate: 0
[1.575014@1] HDMI: reset audio N para
[1.578741@1] PCM out to HDMI
[1.581618@1] usbcore: registered new interface driver cdc_acm
[1.587402@1] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[1.599056@0] Initializing USB Mass Storage driver...
[1.600713@0] usbcore: registered new interface driver usb-storage
[1.606758@0] USB Mass Storage support registered.
[1.606979@1] Time out: AIU_HDMI_CLK_DATA_CTRL
[1.606985@1] i2s_to_spdif_flag:1
[1.606988@1] Enable audio spdif to HDMI
[1.607037@1] HDMI: set audio param
[1.607044@1] HDMITX: HDCP disable
[1.607055@1] HDMI: reset IP: 0x10
[1.633742@0] usbcore: registered new interface driver usbserial
[1.639495@0] usbserial: USB Serial Driver core
[1.644089@0] USB Serial support registered for GSM modem (1-port)
[1.650270@0] usbcore: registered new interface driver option
[1.655886@0] option: v0.7.2:USB Driver for GSM modems
[1.661699@1] mousedev: PS/2 mouse device common for all mice
[1.667959@0] usbcore: registered new interface driver iforce
[1.673588@0] usbcore: registered new interface driver xpad
[1.678900@0] i2c /dev entries driver
[1.682754@0] lirc_dev: IR Remote Control driver registered, major 250
[1.688264@0] IR NEC protocol handler initialized
[1.692980@0] IR RC5(x) protocol handler initialized
[1.697897@0] IR RC6 protocol handler initialized
[1.702595@0] IR JVC protocol handler initialized
[1.707272@0] IR Sony protocol handler initialized
[1.712269@0] IR RC5 (streamzap) protocol handler initialized
[1.717775@0] IR LIRC bridge handler initialized
[1.722387@0] Linux video capture interface: v2.00
[1.727393@1] usbcore: registered new interface driver uvcvideo
[1.733066@1] USB Video Class driver (v1.1.0)
[1.738231@1] device-mapper: uevent: version 1.0.3
[1.742819@1] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com
[1.744553@0] HDMI irq 1
[1.744563@0] Reg0x196 = 0x2 Reg0x80 = 0x1 Reg0x26 = 0xc
[1.744580@0] Reg0x196 = 0x42 Reg0x80 = 0x1 Reg0x26 = 0x4c
[1.764677@1] cpuidle: using governor ladder
[1.768641@1] cpuidle: using governor menu
[1.773447@1] usbcore: registered new interface driver usbhid
[1.778448@1] usbhid: USB HID core driver
[1.783134@1] logger: created 256K log 'log_main'
[1.787364@1] logger: created 256K log 'log_events'
[1.792242@1] logger: created 256K log 'log_radio'
[1.796988@1] logger: created 256K log 'log_system'
[1.801748@1] vout_init_module
[1.804701@1] start init vout module
[1.808490@1] create vout attribute ok
[1.812510@1] ge2d_init
[1.814823@1] ge2d_dev major:249
[1.818520@1] ge2d start monitor
[1.821488@1] osd_init
[1.823795@1] [osd0] 0x84100000-0x850fffff
[1.828069@1] Frame buffer memory assigned at phy:0x84100000, vir:0xe1000000, size=16384K
[1.836019@1] ge2d workqueue monitor start
[1.840177@1] ---------------clear framebuffer0 memory
[1.857298@1] [osd1] 0x85100000-0x860fffff
[1.857539@1] Frame buffer memory assigned at phy:0x85100000, vir:0xe3000000, size=16384K
[1.863925@1] init fbdev bpp is :24
[1.879608@0] osd probe ok
[1.879760@0] vout2_init_module enter
[1.880619@0] start init vout2 module
[1.884514@0] create vout2 attribute ok
[1.894711@0] DI: di_init
[1.894754@0] DI: di_probe
[1.895395@0] set pinmux c0818070
[2.049099@0] UART_ttyS0:(irq = 122)
[2.049259@0] dwc_otg: version 2.94a 05-DEC-2012
[2.051651@0] dwc_otg lm0: dwc_otg_driver_probe(df8be600)
[2.051659@0] dwc_otg lm0: start=0xf3240000
[2.329385@1] HDMI: EDID Ready
[2.329446@1] CEC: Physical address: 0x1000
[2.330957@1] CEC: Physical address: 1.0.0.0
[2.335250@1] HDMI: get current mode: 720p50hz
[2.339662@1] set mode VIC 19 (cd0,cs0,pm1,vd0,1)
[2.344411@1] HDMI DEBUG: hdmi_hw_reset [1377]
[2.348841@1] HDMI: get brd phy data
[2.352402@1] hdmi phy setting
[2.356495@1] HDMI: get brd phy data
[2.358991@1] hdmi phy setting
[2.362086@1] HDMI DEBUG: hdmitx_set_pll [2058]
[2.366544@1] param->VIC:19
[2.369330@1] mode is: 6
[2.371840@1] VPU_VIU_VENC_MUX_CTRL: 0x22a
[2.375918@1] viu chan = 1
[2.378609@1] VPU_VIU_VENC_MUX_CTRL: 0x22a
[2.403679@1] Sink is HDMI device
[2.403699@1] Source in HDMI Mode
[2.404807@1] CEC not ready
[2.509037@1] HDMI: audio channel num is 0
[2.509068@1] current VIC: 19
[2.510441@1] audio sample rate: 0
[2.513826@1] HDMI: reset audio N para
[2.517563@1] PCM out to HDMI
[2.538155@1] Time out: AIU_HDMI_CLK_DATA_CTRL
[2.538178@1] i2s_to_spdif_flag:1
[2.540341@1] Enable audio spdif to HDMI
[2.544280@1] HDMI: set audio param
[2.573118@0] USB (0) use clock source: XTAL input
[2.574141@0] USB (1) PHY Clock not detected!
[2.576602@0] dwc_otg lm0: base=0xf3240000
[2.576609@0] dwc_otg lm0: dwc_otg_device=0xdf8b1400
[2.776638@0] Core Release: 2.94a
[2.776661@0] Setting default values for core params
[2.779311@0] dwc_otg lm0: DMA config: BURST_DEFAULT
[3.179402@0] Using Buffer DMA mode
[3.179425@0] OTG VER PARAM: 1, OTG VER FLAG: 1
[3.181763@0] Working on port type = OTG
[3.185667@0] Current port type: SLAVE
[3.189492@0] dwc_otg lm0: DWC OTG Controller
[3.193836@0] dwc_otg lm0: new USB bus registered, assigned bus number 1
[3.200485@0] dwc_otg lm0: irq 62, io mem 0x00000000
[3.205430@0] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[3.212351@0] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[3.219719@0] usb usb1: Product: DWC OTG Controller
[3.224555@0] usb usb1: Manufacturer: Linux 3.0.101-MX dwc_otg_hcd
[3.230739@0] usb usb1: SerialNumber: lm0
[3.235477@0] hub 1-0:1.0: USB hub found
[3.238625@0] hub 1-0:1.0: 1 port detected
[3.243049@0] Dedicated Tx FIFOs mode
[3.246473@0] using timer detect id change, df80a800
[3.251369@0] dwc_otg lm1: dwc_otg_driver_probe(df8be800)
[3.251377@0] dwc_otg lm1: start=0xf32c0000
[3.251384@0] dwc_otg lm1: base=0xf32c0000
[3.251389@0] dwc_otg lm1: dwc_otg_device=0xdf85ea40
[3.359058@1] HOST mode
[3.451528@0] Core Release: 2.94a
[3.451549@0] Setting default values for core params
[3.454163@0] dwc_otg lm1: DMA config: BURST_DEFAULT
[3.466236@0] WARN::dwc_otg_core_reset:5110: dwc_otg_core_reset() HANG! Soft Reset GRSTCTL=80000001
[3.466241@0]
[3.529045@1] HDMITX: no HDCP key available
[3.529068@1] HDMITX: HDCP Key error
[3.531144@1] HDMITX: no HDCP key available
[3.535305@1] HDMITX: HDCP Key error
[3.568617@1] Using Buffer DMA mode
[3.568638@1] OTG VER PARAM: 1, OTG VER FLAG: 1
[3.622103@1] Init: Port Power? op_state=1
[3.622125@1] Init: Power Port (0)
[3.623938@1] set usb port power on (board gpio 25)!
[3.683253@0] WARN::dwc_otg_core_reset:5110: dwc_otg_core_reset() HANG! Soft Reset GRSTCTL=80000001
[3.683257@0]
[3.888279@0] Using Buffer DMA mode
[3.888300@0] OTG VER PARAM: 1, OTG VER FLAG: 1
[3.890653@0] Working on port type = HOST
[3.894684@0] dwc_otg lm1: DWC OTG Controller
[3.898993@0] dwc_otg lm1: new USB bus registered, assigned bus number 2
[3.905702@0] dwc_otg lm1: irq 63, io mem 0x00000000
[3.913660@0] Init: Port Power? op_state=1
[3.914674@0] Init: Power Port (0)
[3.918100@0] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[3.925033@0] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[3.932405@0] usb usb2: Product: DWC OTG Controller
[3.937243@0] usb usb2: Manufacturer: Linux 3.0.101-MX dwc_otg_hcd
[3.943428@0] usb usb2: SerialNumber: lm1
[3.948125@0] hub 2-0:1.0: USB hub found
[3.951358@0] hub 2-0:1.0: 1 port detected
[3.955789@0] Amlogic nand flash Kernel driver, Version K1.06.015 (c) 2010 Amlogic Inc.
[3.963419@0] ####Version of Uboot must be newer than U1.06.011!!!!!
[3.969865@0] 1
[3.971530@0] chip->controller=c098ac70
[3.975348@0] checking ChiprevD :0
[3.978733@0] aml_nand_probe checked chiprev:0
[3.983200@0] init bus_cycle=17, bus_timing=10, start_cycle=10, end_cycle=10,system=5.0ns
[3.989074@1] Indeed it is in host mode hprt0 = 00041901
[3.997088@0] No NAND device found.
[4.000351@0] NAND device id: 2c 64 44 4b a9 0
[4.004608@0] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x2c (Micron B revision NAND 8GiB MT29F64G08CBABA)
[4.014699@0] #####aml_nand_init, with RB pins and chip->chip_delay:20
[4.021034@0] bus_cycle=4, bus_timing=5, start_cycle=5, end_cycle=6,system=5.0ns
[4.028385@0] oob size is not enough for selected bch mode: NAND_BCH60_1K_MODE force bch to mode: NAND_BCH40_1K_MODE
[4.038912@0] aml_chip->oob_fill_cnt =168,aml_chip->oob_size =744,bch_bytes =70
[4.046201@0] multi plane error for selected plane mode: NAND_TWO_PLANE_MODE force plane to : NAND_SINGLE_PLANE_MODE
[4.056728@0] oob layout use nand base oob layout oobsize = 16,oobmul =1,mtd->oobsize =744,aml_chip->oob_size =744
[4.070481@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:0, blk:0 chip[0]
[4.076250@0] NAND detect Bad block at 0
[4.083538@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:256, blk:1 chip[0]
[4.089641@0] NAND detect Bad block at 200000
[4.097292@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:512, blk:2 chip[0]
[4.103441@0] NAND detect Bad block at 400000
[4.111095@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:768, blk:3 chip[0]
[4.117218@0] NAND detect Bad block at 600000
[4.148388@0] aml nand env valid addr: 870000
[4.148413@0] CONFIG_ENV_SIZE=0x8000; ENV_SIZE=0x7ffc; bbt=0x1330; default_environment_size=0x0
[4.150625@0] nand key: nand_key_probe.
[4.157777@0] key start_blk=4088,end_blk=4095,aml_nand_key_init:651
[4.159055@1] usb 1-1: new low speed USB device number 2 using dwc_otg
[4.165699@1] Indeed it is in host mode hprt0 = 00041901
[4.170265@0] aml nand key valid addr: 1ff000000
[4.174892@0] aml nand key valid addr: 1ff200000
[4.179604@0] aml nand key valid addr: 1ff400000
[4.184266@0] aml nand key valid addr: 1ff600000
[4.188955@0] CONFIG_KEYSIZE=0x10000; KEYSIZE=0xfffc; bbt=0x1330; default_keyironment_size=0xeccc
[4.188989@0] i=0,register --- nand_key########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:0, blk:0 chip[0]
[4.200327@0] NAND detect Bad block at 0
[4.207520@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:256, blk:1 chip[0]
[4.213670@0] NAND detect Bad block at 200000
[4.221321@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:512, blk:2 chip[0]
[4.227445@0] NAND detect Bad block at 400000
[4.235165@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:768, blk:3 chip[0]
[4.241280@0] NAND detect Bad block at 600000
[4.305509@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:23040, blk:90 chip[0]
[4.309498@0] NAND detect Bad block at b400000
[4.317133@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:23296, blk:91 chip[0]
[4.323643@0] NAND detect Bad block at b600000
[4.366377@1] usb 1-1: New USB device found, idVendor=04f2, idProduct=0963
[4.367608@1] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[4.374908@1] usb 1-1: Product: 2.4G Multimedia Wireless Kit
[4.380546@1] usb 1-1: Manufacturer: Chicony
[4.389521@1] input: Chicony 2.4G Multimedia Wireless Kit as /devices/lm0/usb1/1-1/1-1:1.0/input/input0
[4.394746@1] generic-usb 0003:04F2:0963.0001: input: USB HID v1.11 Keyboard [Chicony 2.4G Multimedia Wireless Kit] on usb-lm0-1/input0
[4.422616@1] input: Chicony 2.4G Multimedia Wireless Kit as /devices/lm0/usb1/1-1/1-1:1.1/input/input1
[4.427370@1] generic-usb 0003:04F2:0963.0002: input: USB HID v1.11 Mouse [Chicony 2.4G Multimedia Wireless Kit] on usb-lm0-1/input1
[4.914295@0] Creating 8 MTD partitions on "B revision NAND 8GiB MT29F64G08CBABA":
[4.916228@0] 0x000001000000-0x000001800000 : "logo"
[4.925166@0] 0x000001800000-0x000002000000 : "aml_logo"
[4.930336@0] 0x000002000000-0x000002800000 : "recovery"
[4.935478@0] 0x000002800000-0x000003000000 : "boot"
[4.940594@0] 0x000003000000-0x000043000000 : "system"
[4.988798@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:23040, blk:90 chip[0]
[4.992809@0] NAND detect Bad block at b400000
[5.000471@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:23296, blk:91 chip[0]
[5.006918@0] NAND detect Bad block at b600000
[5.338214@0] 0x000043000000-0x000063000000 : "cache"
[5.511423@0] 0x000063000000-0x000073000000 : "backup"
[5.597609@0] 0x000073000000-0x0001ff000000 : "data"
[6.071531@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:424959, blk:1659 chip[0]
[6.075754@0] NAND detect Bad block at cf7fe000
[7.631774@0] init_aml_nftl start
[7.631803@0] mtd->name: system
[7.632584@0] nftl version 131111a
[7.636011@0] nftl part attr 0
[7.686136@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:23040, blk:90 chip[0]
[7.690127@0] NAND detect Bad block at b400000
[7.697775@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:23296, blk:91 chip[0]
[7.704280@0] NAND detect Bad block at b600000
[8.032615@0] nftl start:512,64
[8.033683@0] first
[8.100292@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:23040, blk:90 chip[0]
[8.104266@0] NAND detect Bad block at b400000
[8.111936@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:23296, blk:91 chip[0]
[8.118412@0] NAND detect Bad block at b600000
[8.687832@0] second 412,448
[8.821792@0] current used block :100
[8.902008@0] free block cnt = 216
[8.902028@0] nftl ok!
[8.902441@0] aml_nftl_blk->mbd.tr.name =system
[8.907487@1] aml_nftl_init_bounce_buf, use cache here
[8.912203@0] system: unknown partition table
[8.916532@0] _nftl_init_bounce_buf already init 1000
[8.921273@0] aml_nftl_add_mtd ok
[8.924516@0] mtd->name: cache
[8.927554@0] nftl version 131111a
[8.930984@0] nftl part attr 0
[9.108047@0] nftl start:256,32
[9.108649@0] first
[9.362988@0] second 18,224
[9.368847@0] current used block :240
[9.394872@0] free block cnt = 247
[9.394891@0] nftl ok!
[9.395232@0] aml_nftl_blk->mbd.tr.name =cache
[9.400203@1] aml_nftl_init_bounce_buf, use cache here
[9.404953@0] cache: unknown partition table
[9.409250@0] _nftl_init_bounce_buf already init 1000
[9.413907@0] aml_nftl_add_mtd ok
[9.417199@0] mtd->name: backup
[9.420373@0] nftl version 131111a
[9.423720@0] nftl part attr 0
[9.511765@0] nftl start:128,16
[9.512009@0] first
[9.635576@0] second 2,112
[9.636244@0] all block full!!
[9.636265@0] free block cnt = 126
[9.639103@0] nftl ok!
[9.641675@0] aml_nftl_blk->mbd.tr.name =backup
[9.646700@1] aml_nftl_init_bounce_buf, use cache here
[9.651483@0] backup: unknown partition table
[9.655795@0] _nftl_init_bounce_buf already init 1000
[9.660581@0] aml_nftl_add_mtd ok
[9.663815@0] mtd->name: data
[9.666762@0] nftl version 131111a
[9.670464@0] nftl part attr 0
[10.147079@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:424959, blk:1659 chip[0]
[10.151336@0] NAND detect Bad block at cf7fe000
[11.706140@0] nftl start:3168,396
[11.711710@0] first
[12.386446@0] ########aml_nand_read_page_hwecc 2871 read ecc failed here at at page:424959, blk:1659 chip[0]
[12.390712@0] NAND detect Bad block at cf7fe000
[14.661237@0] second 3167,2772
[14.753975@0] current used block :2547
[15.773090@0] free block cnt = 160
[15.773115@0] nftl ok!
[15.773536@0] aml_nftl_blk->mbd.tr.name =data
[15.778360@1] aml_nftl_init_bounce_buf, use cache here
[15.783089@0] data: unknown partition table
[15.787227@0] _nftl_init_bounce_buf already init 1000
[15.792011@0] aml_nftl_add_mtd ok
[15.795258@0] init_aml_nftl end