=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2018.12.05 13:25:39 =~=~=~=~=~=~=~=~=~=~=~=
[4l

             ___  ___  _________                _   
            / _ \ |  \/  || ___ \              | |  
           / /_\ \| .  . || |_/ /  ___    ___  | |_ 
           |  _  || |\/| || ___ \ / _ \  / _ \ | __|
           | | | || |  | || |_/ /| (_) || (_) || |_ 
           \_| |_/\_|  |_/\____/  \___/  \___/  \__|
----------------------------------------------------------
Amboot(R) Ambarella(R) Copyright (C) 2004-2014
Boot From: NAND 2048 RC 
SYS_CONFIG: 0x300600DB POC: 101
Cortex freq: 600000000
iDSP freq: 144000000
Dram freq: 528000000
Core freq: 144000000
AHB freq: 72000000
APB freq: 36000000
UART freq: 24000000
SD freq: 50000000
SDIO freq: 50000000
SDXC freq: 60000000
amboot> 
amboot>  
amboot> 
amboot> boot console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/bin/sh
bst: 0x1946EC63 1.3 	(2015/6/19)	0x00000000 0x00000001 (2048)
bld: 0xD383D753 1.3 	(2015/6/19)	0x00000000 0x00000000 (193104)
pri: 0x73C1A954 0.1 	(2015/6/19)	0x00208000 0x00000000 (4908792)
lnx: 0xEF9F71BB 0.1 	(2015/6/19)	0x00000000 0x00000001 (42598400)
add: 0xE5FE18AF 0.1 	(2015/6/19)	0x00000000 0x00000001 (11927552)
adc: 0xE31BE621 0.1 	(2015/6/19)	0x00000000 0x00000001 (3670016)

loading pri to 0x00208000
rmd image absent... skipping
Jumping to 0x00208000 ...
cmdline: console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/bin/sh
cpux_jump: 0x00000000
initrd2_start: 0x00000000 initrd2_size: 0x00000000
kernelp: 0x00200000 kernels: 0x06E00000
idspp: 0x07000000 idsps: 0x09000000
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.10.73 (zucker@ubuntu) (gcc version 4.9.1 20140625 (prerelease) (crosstool-NG - Ambarella Linaro Multilib GCC [CortexA9 & ARMv6k] 2014.06) ) #2 PREEMPT Mon Jun 15 21:05:42 CST 2015
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Ambarella S2L (Flattened Device Tree), model: Ambarella S2LM Kiwi Board
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Ambarella:      AHB = 0xe0000000[0xe0000000],0x01000000 0
[    0.000000] Ambarella:      APB = 0xe8000000[0xe8000000],0x01000000 0
[    0.000000] Ambarella:      PPM = 0x00000000[0xdfe00000],0x00200000 9
[    0.000000] Ambarella:      AXI = 0xf0000000[0xf0000000],0x00030000 0
[    0.000000] Ambarella:    DRAMC = 0xdffe0000[0xef000000],0x00020000 0
[    0.000000] Ambarella:   DBGBUS = 0xec000000[0xec000000],0x00200000 0
[    0.000000] Ambarella:  DBGFMEM = 0xee000000[0xee000000],0x01000000 0
[    0.000000] Ambarella:   IAVMEM = 0x07000000[          ],0x09000000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 27940
[    0.000000] Kernel command line: console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/bin/sh
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 110MB = 110MB total
[    0.000000] Memory: 106600k/106600k available, 6040k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0x87000000 - 0xff000000   (1920 MB)
[    0.000000]     lowmem  : 0x80000000 - 0x86e00000   ( 110 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x8045eadc   (4443 kB)
[    0.000000]       .init : 0x8045f000 - 0x80481f0c   ( 140 kB)
[    0.000000]       .data : 0x80482000 - 0x804b66f8   ( 210 kB)
[    0.000000]        .bss : 0x804b66f8 - 0x804d658c   ( 128 kB)
[    0.000000] NR_IRQS:240
[    0.000000] sched_clock: 32 bits at 36MHz, resolution 27ns, wraps every 119304ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.232582] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.292604] pid_max: default: 32768 minimum: 301
[    0.297296] Mount-cache hash table entries: 512
[    0.304210] CPU: Testing write buffer coherency: ok
[    0.309359] Setting up static identity map for 0x80342998 - 0x803429f8
[    0.318137] devtmpfs: initialized
[    0.322675] pinctrl core: initialized pinctrl subsystem
[    0.328116] NET: Registered protocol family 16
[    0.333331] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.340716] L310 cache controller enabled
[    0.344714] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32020000, Cache size: 131072 B
[    0.354289] ambarella-pinctrl e8009000.pinctrl: Ambarella pinctrl driver registered
[    0.362307] ambarella-gpio gpio.0: Ambarella GPIO driver registered
[    0.372265] bio: create slab <bio-0> at 0
[    0.377310] ambarella-dma e0005000.dma: Ambarella DMA Engine 
[    0.384413] ambarella-i2c e8003000.i2c: Ambarella I2C adapter[0] probed!
[    9.389987] ambarella-i2c e8007000.i2c: No ACK from address 0xe8, 2:0!
[    9.396503] pca953x 2-0074: failed reading register
[    9.401390] pca953x: probe of 2-0074 failed with error -16
[    9.406866] ambarella-i2c e8007000.i2c: Ambarella I2C adapter[2] probed!
[    9.414252] Switching to clocksource ambarella-cs-timer
[    9.425963] ambarella-sd e0002000.sdmmc0: Slot0 use bounce buffer[0x86720000<->0x06920000]
[    9.434255] ambarella-sd e0002000.sdmmc0: Slot0 req_size=0x00020000, segs=32, seg_size=0x00020000
[    9.443128] ambarella-sd e0002000.sdmmc0: Slot0 use ADMA
[    9.519582] ambarella-sd e0002000.sdmmc0: 1 slots @ 50000000Hz
[    9.525588] NET: Registered protocol family 2
[    9.533898] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    9.540997] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    9.547373] TCP: Hash tables configured (established 1024 bind 1024)
[    9.553804] TCP: reno registered
[    9.557054] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    9.562920] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    9.569345] NET: Registered protocol family 1
[    9.574017] RPC: Registered named UNIX socket transport module.
[    9.580005] RPC: Registered udp transport module.
[    9.584716] RPC: Registered tcp transport module.
[    9.589398] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.596208] ambarella-adc e801d000.adc: Ambarella ADC driver init
[    9.604905] msgmni has been set to 208
[    9.609998] NET: Registered protocol family 38
[    9.614510] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    9.622032] io scheduler noop registered
[    9.625938] io scheduler deadline registered
[    9.630235] io scheduler cfq registered (default)
[    9.635917] e8005000.uart: ttyS0 at MMIO 0xe8005000 (irq = 9) is a ambuart
[    9.643680] brd: module loaded
[    9.649261] loop: module loaded
[    9.655002] ambarella-nand e0001000.nand: in ecc-[1]bit mode
[    9.660732] ambarella_nand: Use On Flash BBT
[    9.665064] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD/Spansion NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[    9.677723] Bad block table found at page 65472, version 0x29
[    9.683678] Bad block table found at page 65408, version 0x29
[    9.689700] 7 ofpart partitions found on MTD device amba_nand
[    9.696453] Creating 7 MTD partitions on "amba_nand":
[    9.703541] 0x000000000000-0x000000020000 : "bst"
[    9.709079] 0x000000020000-0x000000160000 : "bld"
[    9.714530] 0x000000160000-0x0000002a0000 : "ptb"
[    9.719977] 0x0000002a0000-0x000000aa0000 : "pri"
[    9.725362] 0x000000aa0000-0x000003ea0000 : "lnx"
[    9.730855] 0x000003ea0000-0x0000058a0000 : "add"
[    9.736220] 0x0000058a0000-0x000007ca0000 : "adc"
[    9.742744] ambarella-spi e0020000.spi: cs1 >= max 1
[    9.747700] spi_master spi0: spi_device register error /ahb@e0000000/spi@e0020000/spidev@1
[    9.757230] ambarella-spi e0020000.spi: Ambarella spi controller 0 created.

[    9.819489] libphy: Ambarella MII Bus: probed
[    9.824330] ambarella-eth e000e000.ethernet: Ethernet PHY[0]: 0x001cc816!
[    9.831635] ambarella-eth e000e000.ethernet: MAC Address[00:00:1b:01:3e:7e].
[    9.838973] mousedev: PS/2 mouse device common for all mice
[    9.847958] ambarella-rtc e8015000.rtc: rtc core: registered rtc-ambarella as rtc0
[    9.855719] i2c /dev entries driver
[    9.859916] ambarella-wdt e800c000.wdt: Ambarella Watchdog Timer Probed.
[    9.866951] TCP: cubic registered
[    9.870323] Initializing XFRM netlink socket
[    9.874627] NET: Registered protocol family 17
[    9.879152] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    9.886861] ThumbEE CPU extension supported.
[    9.892282] UBI: attaching mtd4 to ubi0
[   10.041395] UBI: scanning is finished
[   10.050737] UBI: attached mtd4 (name "lnx", size 52 MiB) to ubi0
[   10.056729] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   10.063544] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   10.070241] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[   10.077091] UBI: good PEBs: 416, bad PEBs: 0, corrupted PEBs: 0
[   10.083000] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[   10.090124] UBI: max/mean erase counter: 12/1, WL threshold: 4096, image sequence number: 998301244
[   10.099140] UBI: available PEBs: 0, total reserved PEBs: 416, PEBs reserved for bad PEB handling: 20
[   10.108262] UBI: background thread "ubi_bgt0d" started, PID 47
[   10.114127] ambarella-rtc e8015000.rtc: setting system clock to 2106-02-07 06:28:15 UTC (4294967295)
[   10.124424] UBIFS: background thread "ubifs_bgt0_0" started, PID 48
[   10.152488] UBIFS: recovery needed
[   10.227722] UBIFS: recovery completed
[   10.231619] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   10.237651] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.246786] UBIFS: FS size: 48377856 bytes (46 MiB, 381 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[   10.256424] UBIFS: reserved for root: 0 bytes (0 KiB)
[   10.261473] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 9433F1E0-99F6-4CA9-B9B3-6533EEA57425, small LPT model
[   10.272480] VFS: Mounted root (ubifs filesystem) on device 0:12.
[   10.279298] devtmpfs: mounted
[   10.282454] Freeing unused kernel memory: 136K (8045f000 - 80481000)
/bin/sh: can't access tty; job control turned off
/ # cd /etc/init.d
/etc/init.d # ls
[1;32mS10syscfg[0m           [1;32mS12udev[0m             [1;32mS30dbus[0m             [1;32mS45network-manager[0m
[1;32mS11init[0m             [1;32mS20urandom[0m          [1;32mS40pulseaudio[0m       [1;32mrcS[0m
/etc/init.d # ./r
/etc/init.d # ./rcS [J
Disable kswapd write
/etc/init.d/S10syscfg: line 65: can't create /proc/sys/vm/laptop_mode: nonexistent directory
/etc/init.d/S10syscfg: line 65: can't create /proc/sys/vm/min_free_kbytes: nonexistent directory
/etc/init.d/S10syscfg: line 65: can't create /proc/sys/vm/vfs_cache_pressure: nonexistent directory
Populating s2lm_kiwi using udev: /etc/init.d/S12udev: line 72: can't create /proc/sys/kernel/hotplug: nonexistent directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline, ignoring: No such file or directory
[   66.527825] systemd-udevd[56]: starting version 215
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Done
Initializing random number generator... done.
Starting system message bus: Failed to start message bus: The pid file "/var/run/messagebus.pid" exists, if the message bus is not running, remove this file
done
Starting PulseAudio Daemon: W: [pulseaudio] main.c: [1mCouldn't read /proc/self/exe, cannot self execute. Running in a chroot()?[0m
OK
###### Starting userd.sh #####
ubiattach: error!: UBI is not present in the system
[   67.155361] UBIFS error (pid 85): ubifs_mount: cannot open "ubi1:upgrade", error -19
mount: mounting ubi1:upgrade on /hs/upgrade failed: No such device
[   67.171304] UBIFS error (pid 87): ubifs_mount: cannot open "ubi1:param", error -19
mount: mounting ubi1:param on /hs/param failed: No such device
ubiattach: error!: UBI is not present in the system
[   67.198966] UBIFS error (pid 90): ubifs_mount: cannot open "ubi2:user", error -19
mount: mounting ubi2:user on /hs/user failed: No such device
Starting network...
ifup: interface lo already configured
ifup: interface eth0 already configured
/bin/sh: can't open '/hs/user/bin/demo.sh'
###### Ended userd.sh #####
 # ifconfig eth0 192.168.2.100 up[J
/ # ping -c 3 192.168.2.99
PING 192.168.2.99 (192.168.2.99): 56 data bytes
64 bytes from 192.168.2.99: seq=0 ttl=128 time=1.938 ms
64 bytes from 192.168.2.99: seq=1 ttl=128 time=0.356 ms
64 bytes from 192.168.2.99: seq=2 ttl=128 time=0.342 ms

--- 192.168.2.99 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.342/0.878/1.938 ms
/ # 
/ # ping -c 3 192.168.2.99[J[J[J[J[J4.25
PING 192.168.4.25 (192.168.4.25): 56 data bytes
ping: sendto: Network is unreachable
/ # 
/ # ifconfig eth0 192.168.4.100 up[J
/ # ping -c 3 192.168.4.25[J
PING 192.168.4.25 (192.168.4.25): 56 data bytes
64 bytes from 192.168.4.25: seq=0 ttl=64 time=0.709 ms
64 bytes from 192.168.4.25: seq=1 ttl=64 time=0.452 ms
64 bytes from 192.168.4.25: seq=2 ttl=64 time=0.388 ms

--- 192.168.4.25 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.388/0.516/0.709 ms
/ # nc
BusyBox v1.22.1 (2014-07-03 15:30:22 CST) multi-call binary.

Usage: nc [OPTIONS] HOST PORT  - connect
nc [OPTIONS] -l -p PORT [HOST] [PORT]  - listen

	-e PROG	Run PROG after connect (must be last)
	-l	Listen mode, for inbound connects
	-lk	With -e, provides persistent server
	-p PORT	Local port
	-s ADDR	Local address
	-w SEC	Timeout for connects and final net reads
	-i SEC	Delay interval for lines sent
	-n	Don't do DNS resolution
	-u	UDP mode
	-v	Verbose
	-o FILE	Hex dump traffic
	-z	Zero-I/O mode (scanning)

/ # nc -l -p 3333 > /dev/mtdblock4

  .   .
    
/home/max/mtdblock4 | nc 192.168.2.100 3333 

cat /home/max/mtdblock4 | nc 192.168.2.100 3333


             ___  ___  _________                _   
            / _ \ |  \/  || ___ \              | |  
           / /_\ \| .  . || |_/ /  ___    ___  | |_ 
           |  _  || |\/| || ___ \ / _ \  / _ \ | __|
           | | | || |  | || |_/ /| (_) || (_) || |_ 
           \_| |_/\_|  |_/\____/  \___/  \___/  \__|
----------------------------------------------------------
Amboot(R) Ambarella(R) Copyright (C) 2004-2014
Boot From: NAND 2048 RC 
SYS_CONFIG: 0x300600DB POC: 101
Cortex freq: 600000000
iDSP freq: 144000000
Dram freq: 528000000
Core freq: 144000000
AHB freq: 72000000
APB freq: 36000000
UART freq: 24000000
SD freq: 50000000
SDIO freq: 50000000
SDXC freq: 60000000
amboot> 
amboot> 
amboot> 
amboot> 
amboot> boot console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/bin/sh
bst: 0x1946EC63 1.3 	(2015/6/19)	0x00000000 0x00000001 (2048)
bld: 0xD383D753 1.3 	(2015/6/19)	0x00000000 0x00000000 (193104)
pri: 0x73C1A954 0.1 	(2015/6/19)	0x00208000 0x00000000 (4908792)
lnx: 0xEF9F71BB 0.1 	(2015/6/19)	0x00000000 0x00000001 (42598400)
add: 0xE5FE18AF 0.1 	(2015/6/19)	0x00000000 0x00000001 (11927552)
adc: 0xE31BE621 0.1 	(2015/6/19)	0x00000000 0x00000001 (3670016)

loading pri to 0x00208000
rmd image absent... skipping
Jumping to 0x00208000 ...
cmdline: console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/bin/sh
cpux_jump: 0x00000000
initrd2_start: 0x00000000 initrd2_size: 0x00000000
kernelp: 0x00200000 kernels: 0x06E00000
idspp: 0x07000000 idsps: 0x09000000
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.10.73 (zucker@ubuntu) (gcc version 4.9.1 20140625 (prerelease) (crosstool-NG - Ambarella Linaro Multilib GCC [CortexA9 & ARMv6k] 2014.06) ) #2 PREEMPT Mon Jun 15 21:05:42 CST 2015
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Ambarella S2L (Flattened Device Tree), model: Ambarella S2LM Kiwi Board
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Ambarella:      AHB = 0xe0000000[0xe0000000],0x01000000 0
[    0.000000] Ambarella:      APB = 0xe8000000[0xe8000000],0x01000000 0
[    0.000000] Ambarella:      PPM = 0x00000000[0xdfe00000],0x00200000 9
[    0.000000] Ambarella:      AXI = 0xf0000000[0xf0000000],0x00030000 0
[    0.000000] Ambarella:    DRAMC = 0xdffe0000[0xef000000],0x00020000 0
[    0.000000] Ambarella:   DBGBUS = 0xec000000[0xec000000],0x00200000 0
[    0.000000] Ambarella:  DBGFMEM = 0xee000000[0xee000000],0x01000000 0
[    0.000000] Ambarella:   IAVMEM = 0x07000000[          ],0x09000000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 27940
[    0.000000] Kernel command line: console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/bin/sh
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 110MB = 110MB total
[    0.000000] Memory: 106600k/106600k available, 6040k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0x87000000 - 0xff000000   (1920 MB)
[    0.000000]     lowmem  : 0x80000000 - 0x86e00000   ( 110 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x8045eadc   (4443 kB)
[    0.000000]       .init : 0x8045f000 - 0x80481f0c   ( 140 kB)
[    0.000000]       .data : 0x80482000 - 0x804b66f8   ( 210 kB)
[    0.000000]        .bss : 0x804b66f8 - 0x804d658c   ( 128 kB)
[    0.000000] NR_IRQS:240
[    0.000000] sched_clock: 32 bits at 36MHz, resolution 27ns, wraps every 119304ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.232586] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.292607] pid_max: default: 32768 minimum: 301
[    0.297297] Mount-cache hash table entries: 512
[    0.304200] CPU: Testing write buffer coherency: ok
[    0.309348] Setting up static identity map for 0x80342998 - 0x803429f8
[    0.318134] devtmpfs: initialized
[    0.322673] pinctrl core: initialized pinctrl subsystem
[    0.328116] NET: Registered protocol family 16
[    0.333332] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.340707] L310 cache controller enabled
[    0.344707] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32020000, Cache size: 131072 B
[    0.354269] ambarella-pinctrl e8009000.pinctrl: Ambarella pinctrl driver registered
[    0.362282] ambarella-gpio gpio.0: Ambarella GPIO driver registered
[    0.372249] bio: create slab <bio-0> at 0
[    0.377292] ambarella-dma e0005000.dma: Ambarella DMA Engine 
[    0.384392] ambarella-i2c e8003000.i2c: Ambarella I2C adapter[0] probed!
[    9.389991] ambarella-i2c e8007000.i2c: No ACK from address 0xe8, 2:0!
[    9.396507] pca953x 2-0074: failed reading register
[    9.401394] pca953x: probe of 2-0074 failed with error -16
[    9.406871] ambarella-i2c e8007000.i2c: Ambarella I2C adapter[2] probed!
[    9.414247] Switching to clocksource ambarella-cs-timer
[    9.425975] ambarella-sd e0002000.sdmmc0: Slot0 use bounce buffer[0x86720000<->0x06920000]
[    9.434264] ambarella-sd e0002000.sdmmc0: Slot0 req_size=0x00020000, segs=32, seg_size=0x00020000
[    9.443134] ambarella-sd e0002000.sdmmc0: Slot0 use ADMA
[    9.519581] ambarella-sd e0002000.sdmmc0: 1 slots @ 50000000Hz
[    9.525586] NET: Registered protocol family 2
[    9.533904] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    9.541005] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    9.547380] TCP: Hash tables configured (established 1024 bind 1024)
[    9.553813] TCP: reno registered
[    9.557065] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    9.562933] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    9.569360] NET: Registered protocol family 1
[    9.574031] RPC: Registered named UNIX socket transport module.
[    9.580022] RPC: Registered udp transport module.
[    9.584736] RPC: Registered tcp transport module.
[    9.589418] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.596224] ambarella-adc e801d000.adc: Ambarella ADC driver init
[    9.604924] msgmni has been set to 208
[    9.610015] NET: Registered protocol family 38
[    9.614525] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    9.622050] io scheduler noop registered
[    9.625956] io scheduler deadline registered
[    9.630254] io scheduler cfq registered (default)
[    9.635938] e8005000.uart: ttyS0 at MMIO 0xe8005000 (irq = 9) is a ambuart
[    9.643705] brd: module loaded
[    9.649280] loop: module loaded
[    9.655026] ambarella-nand e0001000.nand: in ecc-[1]bit mode
[    9.660757] ambarella_nand: Use On Flash BBT
[    9.665089] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD/Spansion NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[    9.677749] Bad block table found at page 65472, version 0x29
[    9.683710] Bad block table found at page 65408, version 0x29
[    9.689739] 7 ofpart partitions found on MTD device amba_nand
[    9.696493] Creating 7 MTD partitions on "amba_nand":
[    9.703582] 0x000000000000-0x000000020000 : "bst"
[    9.709120] 0x000000020000-0x000000160000 : "bld"
[    9.714515] 0x000000160000-0x0000002a0000 : "ptb"
[    9.719925] 0x0000002a0000-0x000000aa0000 : "pri"
[    9.725288] 0x000000aa0000-0x000003ea0000 : "lnx"
[    9.730746] 0x000003ea0000-0x0000058a0000 : "add"
[    9.736157] 0x0000058a0000-0x000007ca0000 : "adc"
[    9.742816] ambarella-spi e0020000.spi: cs1 >= max 1
[    9.747772] spi_master spi0: spi_device register error /ahb@e0000000/spi@e0020000/spidev@1
[    9.756279] ambarella-spi e0020000.spi: Ambarella spi controller 0 created.

[    9.819516] libphy: Ambarella MII Bus: probed
[    9.824355] ambarella-eth e000e000.ethernet: Ethernet PHY[0]: 0x001cc816!
[    9.831633] ambarella-eth e000e000.ethernet: MAC Address[00:00:1b:01:3e:7e].
[    9.838926] mousedev: PS/2 mouse device common for all mice
[    9.844876] ambarella-rtc e8015000.rtc: rtc core: registered rtc-ambarella as rtc0
[    9.852653] i2c /dev entries driver
[    9.859855] ambarella-wdt e800c000.wdt: Ambarella Watchdog Timer Probed.
[    9.866906] TCP: cubic registered
[    9.870275] Initializing XFRM netlink socket
[    9.874575] NET: Registered protocol family 17
[    9.879098] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    9.886807] ThumbEE CPU extension supported.
[    9.892273] UBI: attaching mtd4 to ubi0
[   10.041322] UBI: scanning is finished
[   10.050650] UBI: attached mtd4 (name "lnx", size 52 MiB) to ubi0
[   10.056642] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   10.063457] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   10.070152] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[   10.077002] UBI: good PEBs: 416, bad PEBs: 0, corrupted PEBs: 0
[   10.082911] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[   10.090034] UBI: max/mean erase counter: 12/1, WL threshold: 4096, image sequence number: 998301244
[   10.099050] UBI: available PEBs: 0, total reserved PEBs: 416, PEBs reserved for bad PEB handling: 20
[   10.108172] UBI: background thread "ubi_bgt0d" started, PID 47
[   10.114036] ambarella-rtc e8015000.rtc: setting system clock to 2106-02-07 06:28:15 UTC (4294967295)
[   10.124339] UBIFS: background thread "ubifs_bgt0_0" started, PID 48
[   10.152444] UBIFS: recovery needed
[   10.245986] UBIFS: recovery completed
[   10.249886] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   10.255922] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.265057] UBIFS: FS size: 48377856 bytes (46 MiB, 381 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[   10.274694] UBIFS: reserved for root: 0 bytes (0 KiB)
[   10.279743] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 9433F1E0-99F6-4CA9-B9B3-6533EEA57425, small LPT model
[   10.290754] VFS: Mounted root (ubifs filesystem) on device 0:12.
[   10.297577] devtmpfs: mounted
[   10.300732] Freeing unused kernel memory: 136K (8045f000 - 80481000)
/bin/sh: can't access tty; job control turned off
/ # cd /etc/init.d
/etc/init.d # ./r
/etc/init.d # ./rcS [J
Disable kswapd write
/etc/init.d/S10syscfg: line 65: can't create /proc/sys/vm/laptop_mode: nonexistent directory
/etc/init.d/S10syscfg: line 65: can't create /proc/sys/vm/min_free_kbytes: nonexistent directory
/etc/init.d/S10syscfg: line 65: can't create /proc/sys/vm/vfs_cache_pressure: nonexistent directory
Populating s2lm_kiwi using udev: /etc/init.d/S12udev: line 72: can't create /proc/sys/kernel/hotplug: nonexistent directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline, ignoring: No such file or direc[   31.759806] systemd-udevd[55]: starting version 215
tory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Failed to read /proc/cmdline. Ignoring: No such file or directory
Done
Initializing random number generator... done.
Starting system message bus: Failed to start message bus: The pid file "/var/run/messagebus.pid" exists, if the message bus is not running, remove this file
done
Starting PulseAudio Daemon: W: [pulseaudio] main.c: [1mCouldn't read /proc/self/exe, cannot self execute. Running in a chroot()?[0m
OK
###### Starting userd.sh #####
ubiattach: error!: UBI is not present in the system
[   32.532487] UBIFS error (pid 85): ubifs_mount: cannot open "ubi1:upgrade", error -19
mount: mounting ubi1:upgrade on /hs/upgrade failed: No such devic[   32.548294] UBIFS error (pid 87): ubifs_mount: cannot open "ubi1:param", error -19
e
mount: mounting ubi1:param on /hs/param failed: No such device
ubiattach: error!: UBI is not present in the system
[   32.575667] UBIFS error (pid 90): ubifs_mount: cannot open "ubi2:user", error -19
mount: mounting ubi2:user on /hs/user failed: No such device
Starting network...
ifup: interface lo already configured
ifup: interface eth0 already configured
/bin/sh: can't open '/hs/user/bin/demo.sh'
###### Ended userd.sh #####
/etc/init.d # ifconfig eth0 192.168.4.100 up
[   51.626679] net eth0: adv: sym 0, asym: 0
/etc/init.d # 
/etc/init.d # ifconfig eth0 192.168.4.100 up[J
/etc/init.d # ping -c 3 192.168.4.25
PING 192.168.4.25 (192.168.4.25): 56 data bytes
64 bytes from 192.168.4.25: seq=0 ttl=64 time=1.537 ms
64 bytes from 192.168.4.25: seq=1 ttl=64 time=0.427 ms
64 bytes from 192.168.4.25: seq=2 ttl=64 time=0.391 ms

--- 192.168.4.25 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.391/0.785/1.537 ms
/etc/init.d # cd /

/ # ping -c 3 192.168[J.4.25
PING 192.168.4.25 (192.168.4.25): 56 data bytes
64 bytes from 192.168.4.25: seq=0 ttl=64 time=0.476 ms
64 bytes from 192.168.4.25: seq=1 ttl=64 time=0.426 ms
64 bytes from 192.168.4.25: seq=2 ttl=64 time=0.392 ms

--- 192.168.4.25 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.392/0.431/0.476 ms
/ # cat /dev/mtdblock4| nc 192.168.4.25 3333
/ # 
/ # cat /dev/mtdblock4| nc 192.168.4.25 3333[J
[  292.691309] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  292.708814] end_request: I/O error, dev mtdblock4, sector 8376
[  292.714634] Buffer I/O error on device mtdblock4, logical block 1047
[  292.721290] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb8000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  292.738624] end_request: I/O error, dev mtdblock4, sector 8384
[  292.744438] Buffer I/O error on device mtdblock4, logical block 1048
[  292.751017] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb9000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  292.768340] end_request: I/O error, dev mtdblock4, sector 8392
[  292.774153] Buffer I/O error on device mtdblock4, logical block 1049
[  292.780719] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeba000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  292.798041] end_request: I/O error, dev mtdblock4, sector 8400
[  292.803854] Buffer I/O error on device mtdblock4, logical block 1050
[  292.823182] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  292.840575] end_request: I/O error, dev mtdblock4, sector 8376
[  292.846391] Buffer I/O error on device mtdblock4, logical block 1047
[  292.854823] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  292.872431] end_request: I/O error, dev mtdblock4, sector 8376
[  292.878249] Buffer I/O error on device mtdblock4, logical block 1047
cat: read error: Input/output error
/ # 
/ # cat /dev/mtdblock4| nc 192.168.4.25 3333[J
[  313.107501] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  313.125132] end_request: I/O error, dev mtdblock4, sector 8376
[  313.130953] Buffer I/O error on device mtdblock4, logical block 1047
[  313.137652] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb8000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  313.154990] end_request: I/O error, dev mtdblock4, sector 8384
[  313.160805] Buffer I/O error on device mtdblock4, logical block 1048
[  313.167373] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb9000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  313.184698] end_request: I/O error, dev mtdblock4, sector 8392
[  313.190511] Buffer I/O error on device mtdblock4, logical block 1049
[  313.197019] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeba000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  313.214334] end_request: I/O error, dev mtdblock4, sector 8400
[  313.220147] Buffer I/O error on device mtdblock4, logical block 1050
[  313.239459] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  313.256787] end_request: I/O error, dev mtdblock4, sector 8376
[  313.262601] Buffer I/O error on device mtdblock4, logical block 1047
[  313.271186] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  313.288736] end_request: I/O error, dev mtdblock4, sector 8376
[  313.294554] Buffer I/O error on device mtdblock4, logical block 1047
cat: read error: Input/output error
/ # 
/ # cat /dev/mtdblock4| nc 192.168.4.25 3333[J | nc 192.168.4.25 3333[22D| nc 192.168.4.25 3333
/ # 
/ # cat /dev/mtdblock4 | nc 192.168.4.25 3333[J
[  350.189060] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  350.206719] end_request: I/O error, dev mtdblock4, sector 8376
[  350.212540] Buffer I/O error on device mtdblock4, logical block 1047
[  350.219221] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb8000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  350.236561] end_request: I/O error, dev mtdblock4, sector 8384
[  350.242376] Buffer I/O error on device mtdblock4, logical block 1048
[  350.248887] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb9000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  350.266205] end_request: I/O error, dev mtdblock4, sector 8392
[  350.272019] Buffer I/O error on device mtdblock4, logical block 1049
[  350.278522] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeba000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  350.295898] end_request: I/O error, dev mtdblock4, sector 8400
[  350.301712] Buffer I/O error on device mtdblock4, logical block 1050
[  350.320685] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  350.338076] end_request: I/O error, dev mtdblock4, sector 8376
[  350.343891] Buffer I/O error on device mtdblock4, logical block 1047
[  350.352352] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0xeb7800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0xea0000!
[  350.369912] end_request: I/O error, dev mtdblock4, sector 8376
[  350.375731] Buffer I/O error on device mtdblock4, logical block 1047
cat: read error: Input/output error
/ # 
/ # cat /dev/mtdblock4 | nc 192.168.4.25 3333[J | nc 192.168.4.25 3333[J[23D1 | nc 192.168.4.25 3333[23D | nc 192.168.4.25 3333
/ # 
/ # cat /dev/mtdblock1 | nc 192.168.4.25 3333[J | nc 192.168.4.25 3333[J[23D2 | nc 192.168.4.25 3333[23D | nc 192.168.4.25 3333
/ # 
/ # cat /dev/mtdblock2 | nc 192.168.4.25 3333[J | nc 192.168.4.25 3333[J[23D6 | nc 192.168.4.25 3333[23D | nc 192.168.4.25 3333
/ # 
/ # cat /dev/mtdblock6 | nc 192.168.4.25 3333[J
[  435.873464] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0x60e0000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0x60e0000!
[  435.891466] end_request: I/O error, dev mtdblock6, sector 16896
[  435.897373] Buffer I/O error on device mtdblock6, logical block 2112
[  436.464883] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0x64c0800, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0x64c0000!
[  436.482872] end_request: I/O error, dev mtdblock6, sector 24832
[  436.488780] Buffer I/O error on device mtdblock6, logical block 3104
[  436.495663] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0x64c1000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0x64c0000!
[  436.513265] end_request: I/O error, dev mtdblock6, sector 24840
[  436.519169] Buffer I/O error on device mtdblock6, logical block 3105
[  436.548549] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0x64c1000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0x64c0000!
[  436.566061] end_request: I/O error, dev mtdblock6, sector 24840
[  436.571962] Buffer I/O error on device mtdblock6, logical block 3105
[  436.578775] ambarella-nand e0001000.nand: nand_amb_request: dma_status=0x05000800, cmd=0xe, addr_hi=0x0, addr=0x64c1000, dst=0x0, buf=0x69bd000, len=0x800, area=0x2, ecc=0x2, block addr=0x64c0000!
[  436.596394] end_request: I/O error, dev mtdblock6, sector 24840
[  436.602297] Buffer I/O error on device mtdblock6, logical block 3105
cat: read error: Input/output error
/ # 
/ # nc -l -p 3333 > /dev/mtdblock4
