Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2017 21:39
Show Gist options
  • Save anonymous/3aed159b5a5ee22f27403fe79ba97400 to your computer and use it in GitHub Desktop.
Save anonymous/3aed159b5a5ee22f27403fe79ba97400 to your computer and use it in GitHub Desktop.
myoutputfile
=> nand scrub.part ubi0
NAND scrub.part: device 0 offset 0x100000, size 0xff00000
Warning: scrub option will erase all factory set bad blocks!
There is no reliable way to recover them.
Use this command only for testing purposes if you
are sure of what you are doing!
Really scrub this NAND flash? <y/N>
y
OK
=> setenv bootargs 'console=ttyS0,115200 mtdparts=pxa3xx_nand-0:1m(uboot),-(ubi0)'
=> setenv bootcmd 'tftpboot $loadaddr skny/triax/zImage; tftpboot $rdaddr skny/triax/cpiou; tftpboot $fdtaddr skny/triax/dtb; bootz $loadaddr $rdaddr $fdtaddr'
=> setenv loadaddr 0x2000000
=> setenv rdaddr 0x2400000
=>
=> setenv fdtaddr 0x3b00000
=> setenv ethaddr de:f5:81:e0:28:d8
=> setenv ipaddr 172.16.11.42
=> setenv serverip 172.16.10.35
=> boot
Using ethernet@30000 device
TFTP from server 172.16.10.35; our IP address is 172.16.11.42
Filename 'skny/triax/zImage'.
Load address: 0x2000000
Loading: *#################################################################
#################################################################
#################################################################
################################################################
########
2.8 MiB/s
done
Bytes transferred = 3926176 (3be8a0 hex)
Using ethernet@30000 device
TFTP from server 172.16.10.35; our IP address is 172.16.11.42
Filename 'skny/triax/cpiou'.
Load address: 0x2400000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################################
3.9 MiB/s
done
Bytes transferred = 11116879 (a9a14f hex)
Using ethernet@30000 device
TFTP from server 172.16.10.35; our IP address is 172.16.11.42
Filename 'skny/triax/dtb'.
Load address: 0x3b00000
Loading: *##
3.1 MiB/s
done
Bytes transferred = 16467 (4053 hex)
## Loading init Ramdisk from Legacy Image at 02400000 ...
Image Name: rescue-rootfs-output-module-20171120
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 11116815 Bytes = 10.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 03b00000
Booting using the fdt blob at 0x3b00000
Using Device Tree in place at 03b00000, end 03b07052
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.15.0-rc1-00102-gf441f29367db-dirty (skn@skn) (gcc version 7.2.0 (Arch Repository)) #40 SMP PREEMPT Sun Dec 17 22:33:16 CET 2017
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Triax DVB-TC Output
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @ef7cd000 s36684 r8192 d20660 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=pxa3xx_nand-0:1m(uboot),-(ubi0)
[ 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: 1018760K/1048576K available (6144K kernel code, 385K rwdata, 1344K rodata, 1024K init, 155K bss, 29816K reserved, 0K cma-reserved, 262144K highmem)
[ 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] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a606c0 ( 386 kB)
[ 0.000000] .bss : 0xc0a606c0 - 0xc0a875e4 ( 156 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 D prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[ 0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[ 0.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[ 0.000023] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[ 0.000042] Switching to timer-based delay loop, resolution 1ns
[ 0.000206] Ignoring duplicate/late registration of read_current_timer delay
[ 0.000216] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[ 0.000554] Console: colour dummy device 80x30
[ 0.000572] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[ 0.000582] pid_max: default: 32768 minimum: 301
[ 0.000663] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000672] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001035] CPU: Testing write buffer coherency: ok
[ 0.001196] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.040132] Setting up static identity map for 0x100000 - 0x100060
[ 0.040228] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[ 0.040323] mvebu-pmsu: Initializing Power Management Service Unit
[ 0.060107] Hierarchical SRCU implementation.
[ 0.100104] smp: Bringing up secondary CPUs ...
[ 0.170166] Booting CPU 1
[ 1.200101] CPU1: failed to come online
[ 1.200153] smp: Brought up 1 node, 1 CPU
[ 1.200160] SMP: Total of 1 processors activated (1066.00 BogoMIPS).
[ 1.200165] CPU: All CPU(s) started in SVC mode.
[ 1.200698] devtmpfs: initialized
[ 1.202511] random: get_random_u32 called from bucket_table_alloc+0x114/0x240 with crng_init=0
[ 1.202554] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 1.202725] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 1.202736] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 1.202830] pinctrl core: initialized pinctrl subsystem
[ 1.203218] NET: Registered protocol family 16
[ 1.203839] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 1.204379] cpuidle: using governor ladder
[ 1.204435] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 1.204441] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 1.204570] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[ 1.204579] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[ 1.240390] SCSI subsystem initialized
[ 1.250455] random: fast init done
[ 1.260178] clocksource: Switched to clocksource arm_global_timer
[ 1.283094] NET: Registered protocol family 2
[ 1.283476] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 1.283534] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 1.283629] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.283706] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 1.283744] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 1.283862] NET: Registered protocol family 1
[ 1.304143] RPC: Registered named UNIX socket transport module.
[ 1.304150] RPC: Registered udp transport module.
[ 1.304155] RPC: Registered tcp transport module.
[ 1.304160] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.304294] Trying to unpack rootfs image as initramfs...
[ 1.834319] Freeing initrd memory: 10860K
[ 1.834589] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 1.835483] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 1.846881] bounce: pool size: 64 pages
[ 1.846915] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 1.846922] io scheduler noop registered
[ 1.846927] io scheduler deadline registered
[ 1.846960] io scheduler cfq registered (default)
[ 1.846966] io scheduler mq-deadline registered
[ 1.846971] io scheduler kyber registered
[ 1.847698] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[ 1.849266] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[ 1.849277] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 1.849285] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[ 1.849292] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.849464] PCI: bus0: Fast back to back transfers disabled
[ 1.849474] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.849538] PCI: bus1: Fast back to back transfers enabled
[ 1.849564] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 1.849884] mv_xor f1060800.xor: Marvell shared XOR driver
[ 1.910669] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 1.910812] mv_xor f1060900.xor: Marvell shared XOR driver
[ 1.970663] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 1.994151] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 1.995230] console [ttyS0] disabled
[ 2.015363] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 15625000) is a 16550A
[ 2.687881] console [ttyS0] enabled
[ 2.696163] brd: module loaded
[ 2.699969] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 2.706388] nand: Micron MT29F2G08ABAEAH4
[ 2.710435] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 2.718126] 2 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[ 2.724709] Creating 2 MTD partitions on "pxa3xx_nand-0":
[ 2.730130] 0x000000000000-0x000000100000 : "uboot"
[ 2.736793] 0x000000100000-0x000010000000 : "ubi0"
[ 3.072451] libphy: Fixed MDIO Bus: probed
[ 3.076881] libphy: orion_mdio_bus: probed
[ 3.081233] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[ 3.090491] mvneta f1030000.ethernet eth0: Using hardware mac address de:f5:81:e0:28:d8
[ 3.099253] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[ 3.106892] i2c /dev entries driver
[ 3.121030] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[ 3.133595] orion_wdt: Initial timeout 171 sec
[ 3.139516] marvell-cesa f1090000.crypto: CESA device successfully registered
[ 3.147153] NET: Registered protocol family 10
[ 3.162202] Segment Routing with IPv6
[ 3.165922] NET: Registered protocol family 17
[ 3.170461] ThumbEE CPU extension supported.
[ 3.174749] Registering SWP/SWPB emulation handler
[ 3.181321] armada38x-rtc f10a3800.rtc: setting system clock to 2105-07-27 07:51:26 UTC (4278124286)
[ 3.191852] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[ 3.334875] print_req_error: I/O error, dev mtdblock1, sector 0
[ 3.341131] print_req_error: I/O error, dev mtdblock1, sector 8
[ 3.347229] print_req_error: I/O error, dev mtdblock1, sector 16
[ 3.353467] print_req_error: I/O error, dev mtdblock1, sector 24
[ 3.359751] print_req_error: I/O error, dev mtdblock1, sector 0
[ 3.365692] Buffer I/O error on dev mtdblock1, logical block 0, async page read
[ 3.373381] print_req_error: I/O error, dev mtdblock0, sector 0
[ 3.379478] print_req_error: I/O error, dev mtdblock0, sector 8
[ 3.385635] print_req_error: I/O error, dev mtdblock0, sector 16
[ 3.391841] print_req_error: I/O error, dev mtdblock0, sector 24
[ 3.398061] print_req_error: I/O error, dev mtdblock0, sector 0
[ 3.404000] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Starting udev
[ 3.458473] udevd[88]: starting version 3.2.1
[ 3.473299] udevd[89]: starting eudev-3.2.1
Starting ifplugd: eth0
[ 4.020119] mvneta f1030000.ethernet eth0: configuring for fixed/sgmii link mode
[ 4.032279] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.038168] mvneta f1030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 4.053524] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Mon Nov 20 12:39:11 UTC 2017
INIT: Entering runlevel: 5
Configuring network interfaces... done.
Starting system message bus: dbus.
Starting OpenBSD Secure Shell server: sshd
generating ssh RSA key...
generating ssh ECDSA key...
generating ssh DSA key...
generating ssh ED25519 key...
done.
Slot: Unknown
PIL/basic pil-2017.07-3-gcbd7a4f-dirty output-module /dev/ttyS0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment