xjtuecho / EBAZ4205

A 5$ Xilinx ZYNQ development board.
MIT License
627 stars 164 forks source link

Error running bootm command #17

Closed dave18 closed 3 years ago

dave18 commented 3 years ago

Hi

When trying to reset the password I get the following error when running the bootm command 'waiting for root device /dev/mtdblock6', the full Putty log is


` U-Boot 2015.07 (May 18 2017 - 22:22:09 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 zynq-uboot> setenv nandboot "echo Copying Linux from NAND flash to RAM... && nand info && run nandroot;nand read 0x100000 0x2220000 0x300000 && fpga loadb 0 0x100000 0x300000 && nand read ${kernel_load_address} 0x300000 ${kernel_size} && nand read ${devicetree_load_address} 0x800000 ${devicetree_size}" zynq-uboot> run nandboot Copying Linux from NAND flash to RAM...

Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b subpagesize 512 b options 0x 0 bbt options 0x 20000

Error: "nandroot" not defined

NAND read: device 0 offset 0x2220000, size 0x300000 3145728 bytes read: OK design filename = "top_ctrl;UserID=0XFFFFFFFF;Version=2016.4" part number = "7z010clg400" date = "2017/05/29" time = "11:17:01" bytes in bitstream = 2083740 zynq_align_dma_buffer: Align buffer at 100068 to 100000(swap 1)

NAND read: device 0 offset 0x300000, size 0x500000 5242880 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x20000 131072 bytes read: OK zynq-uboot> setenv bootargs 'console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh' zynq-uboot> bootm ${kernel_load_address} - ${devicetree_load_address} init=/bin/sh

Booting kernel from Legacy Image at 02080000 ...

Image Name: Linux-4.6.0-xilinx Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3820688 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK

Flattened Device Tree blob at 02000000

Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK Loading Device Tree to 0f2fe000, end 0f303a6b ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0 Linux version 4.6.0-xilinx (root@alvin) (gcc version 5.2.0 (GCC) ) #5 SMP PREEMPT Mon May 8 14:36:49 CST 2017 CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine model: xlnx,zynq-7000 cma: Reserved 16 MiB at 0x0e000000 Memory policy: Data cache writealloc percpu: Embedded 12 pages/cpu @cfdcf000 s19776 r8192 d21184 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 234624K/262144K available (5286K kernel code, 231K rwdata, 1848K rodata, 1024K init, 226K bss, 11136K reserved, 16384K cma-reserved, 0K highmem) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc07f7850 (8127 kB) .init : 0xc0800000 - 0xc0900000 (1024 kB) .data : 0xc0900000 - 0xc0939e60 ( 232 kB) .bss : 0xc0939e60 - 0xc0972764 ( 227 kB) Preemptible hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 NR_IRQS:16 nr_irqs:16 16 efuse mapped to d0800000 slcr mapped to d0802000 L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 L2C-310 erratum 769419 enabled L2C-310 enabling early BRESP for Cortex-A9 L2C-310 full line of zeros enabled for Cortex-A9 L2C-310 ID prefetch enabled, offset 1 lines L2C-310 dynamic clock gating enabled, standby mode enabled L2C-310 cache controller enabled, 8 ways, 512 kB L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 zynq_clock_init: clkc starts at d0802100 Zynq clock init sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce076117e, max_idle_ns: 440795215954 ns Switching to timer-based delay loop, resolution 3ns clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns timer #0 at d080a000, irq=17 Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333330) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0x100000 - 0x100058 CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 Brought up 2 CPUs SMP: Total of 2 processors activated (1333.33 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations cpuidle: using governor menu hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. hw-breakpoint: maximum watchpoint size is 4 bytes. zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xd0880000 zynq-pinctrl 700.pinctrl: zynq pinctrl initialized vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb media: Linux media interface: v0.10 Linux video capture interface: v2.00 pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it PTP clock support registered EDAC MC: Ver: 3.0.0 Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource arm_global_timer NET: Registered protocol family 2 TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 2048 (order: 2, 16384 bytes) TCP: Hash tables configured (established 2048 bind 2048) UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available futex hash table entries: 512 (order: 3, 32768 bytes) workingset: timestamp_bits=28 max_order=16 bucket_order=0 jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 42c00000.serial: ttyUL2 at MMIO 0x42c00000 (irq = 166, base_baud = 0) is a uartlite e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 144, base_baud = 3124996) is a xuartps e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 145, base_baud = 3124996) is a xuartps console [ttyPS0] enabled xdevcfg f8007000.devcfg: ioremap 0xf8007000 to d0872000 [drm] Initialized drm 1.1.0 20060810 brd: module loaded loop: module loaded CAN device driver interface gpiod_set_value: invalid GPIO libphy: MACB_mii_bus: probed macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 148 (00:0a:35:00:01:22) ICPlus IP101A/G e000b000.etherne:00: attached PHY driver [ICPlus IP101A/G] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1) e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Copyright(c) 1999 - 2015 Intel Corporation. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice i2c /dev entries driver rtc-pcf8563 0-0051: chip found, driver version 0.4.4 rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-11 addr=0e, data=03 rtc-pcf8563 0-0051: pcf8563_probe: write error rtc-pcf8563: probe of 0-0051 failed with error -5 cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 141 EDAC MC: ECC not enabled Xilinx Zynq CpuIdle Driver started sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA ledtrig-cpu: registered to indicate activity on CPUs usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1 nand: Unknown W29N01HV nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 nand_read_bbt: bad block at 0x000007f60000 nand_read_bbt: bad block at 0x000007f80000 nand_read_bbt: bad block at 0x000007fa0000 nand_read_bbt: bad block at 0x000007fc0000 6 ofpart partitions found on MTD device pl35x-nand Creating 6 MTD partitions on "pl35x-nand": 0x000000000000-0x000000300000 : "nand-fsbl-uboot" 0x000000300000-0x000000800000 : "nand-linux" 0x000000800000-0x000000820000 : "nand-device-tree" 0x000000820000-0x000001220000 : "nand-rootfs" 0x000001220000-0x000002220000 : "nand-jffs2" 0x000002220000-0x000008000000 : "nand-bitstream" NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 can: controller area network core (rev 20120528 abi 9) NET: Registered protocol family 29 can: raw protocol (rev 20120528) can: broadcast manager protocol (rev 20120528 t) can: netlink gateway (rev 20130117) max_hops=1 Registering SWP/SWPB emulation handler hctosys: unable to open rtc device (rtc0) ALSA device list: No soundcards found. Waiting for root device /dev/mtdblock6... `

I've tried changing the root device to mtdblock5 but this just gives the following


` U-Boot 2015.07 (May 18 2017 - 22:22:09 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 zynq-uboot> setenv nandboot "echo Copying Linux from NAND flash to RAM... && nand info && run nandroot;nand read 0x100000 0x2220000 0x300000 && fpga loadb 0 0x100000 0x300000 && nand read ${kernel_load_address} 0x300000 ${kernel_size} && nand read ${devicetree_load_address} 0x800000 ${devicetree_size}" zynq-uboot> run nandboot Copying Linux from NAND flash to RAM...

Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b subpagesize 512 b options 0x 0 bbt options 0x 20000

Error: "nandroot" not defined

NAND read: device 0 offset 0x2220000, size 0x300000 3145728 bytes read: OK design filename = "top_ctrl;UserID=0XFFFFFFFF;Version=2016.4" part number = "7z010clg400" date = "2017/05/29" time = "11:17:01" bytes in bitstream = 2083740 zynq_align_dma_buffer: Align buffer at 100068 to 100000(swap 1)

NAND read: device 0 offset 0x300000, size 0x500000 5242880 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x20000 131072 bytes read: OK zynq-uboot> setenv bootargs 'console=ttyPS0,115200 root=/dev/mtdblock5 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh' zynq-uboot> bootm ${kernel_load_address} - ${devicetree_load_address} init=/bin/sh

Booting kernel from Legacy Image at 02080000 ...

Image Name: Linux-4.6.0-xilinx Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3820688 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK

Flattened Device Tree blob at 02000000

Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK Loading Device Tree to 0f2fe000, end 0f303a6b ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0 Linux version 4.6.0-xilinx (root@alvin) (gcc version 5.2.0 (GCC) ) #5 SMP PREEMPT Mon May 8 14:36:49 CST 2017 CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine model: xlnx,zynq-7000 cma: Reserved 16 MiB at 0x0e000000 Memory policy: Data cache writealloc percpu: Embedded 12 pages/cpu @cfdcf000 s19776 r8192 d21184 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyPS0,115200 root=/dev/mtdblock5 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 234624K/262144K available (5286K kernel code, 231K rwdata, 1848K rodata, 1024K init, 226K bss, 11136K reserved, 16384K cma-reserved, 0K highmem) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc07f7850 (8127 kB) .init : 0xc0800000 - 0xc0900000 (1024 kB) .data : 0xc0900000 - 0xc0939e60 ( 232 kB) .bss : 0xc0939e60 - 0xc0972764 ( 227 kB) Preemptible hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 NR_IRQS:16 nr_irqs:16 16 efuse mapped to d0800000 slcr mapped to d0802000 L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 L2C-310 erratum 769419 enabled L2C-310 enabling early BRESP for Cortex-A9 L2C-310 full line of zeros enabled for Cortex-A9 L2C-310 ID prefetch enabled, offset 1 lines L2C-310 dynamic clock gating enabled, standby mode enabled L2C-310 cache controller enabled, 8 ways, 512 kB L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 zynq_clock_init: clkc starts at d0802100 Zynq clock init sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce076117e, max_idle_ns: 440795215954 ns Switching to timer-based delay loop, resolution 3ns clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns timer #0 at d080a000, irq=17 Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333330) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0x100000 - 0x100058 CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 Brought up 2 CPUs SMP: Total of 2 processors activated (1333.33 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations cpuidle: using governor menu hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. hw-breakpoint: maximum watchpoint size is 4 bytes. zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xd0880000 zynq-pinctrl 700.pinctrl: zynq pinctrl initialized vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb media: Linux media interface: v0.10 Linux video capture interface: v2.00 pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it PTP clock support registered EDAC MC: Ver: 3.0.0 Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource arm_global_timer NET: Registered protocol family 2 TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 2048 (order: 2, 16384 bytes) TCP: Hash tables configured (established 2048 bind 2048) UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available futex hash table entries: 512 (order: 3, 32768 bytes) workingset: timestamp_bits=28 max_order=16 bucket_order=0 jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 42c00000.serial: ttyUL2 at MMIO 0x42c00000 (irq = 166, base_baud = 0) is a uartlite e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 144, base_baud = 3124996) is a xuartps e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 145, base_baud = 3124996) is a xuartps console [ttyPS0] enabled xdevcfg f8007000.devcfg: ioremap 0xf8007000 to d0872000 [drm] Initialized drm 1.1.0 20060810 brd: module loaded loop: module loaded CAN device driver interface gpiod_set_value: invalid GPIO libphy: MACB_mii_bus: probed macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 148 (00:0a:35:00:01:22) ICPlus IP101A/G e000b000.etherne:00: attached PHY driver [ICPlus IP101A/G] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1) e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Copyright(c) 1999 - 2015 Intel Corporation. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice i2c /dev entries driver rtc-pcf8563 0-0051: chip found, driver version 0.4.4 rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-11 addr=0e, data=03 rtc-pcf8563 0-0051: pcf8563_probe: write error rtc-pcf8563: probe of 0-0051 failed with error -5 cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 141 EDAC MC: ECC not enabled Xilinx Zynq CpuIdle Driver started sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA ledtrig-cpu: registered to indicate activity on CPUs usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1 nand: Unknown W29N01HV nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 nand_read_bbt: bad block at 0x000007f60000 nand_read_bbt: bad block at 0x000007f80000 nand_read_bbt: bad block at 0x000007fa0000 nand_read_bbt: bad block at 0x000007fc0000 6 ofpart partitions found on MTD device pl35x-nand Creating 6 MTD partitions on "pl35x-nand": 0x000000000000-0x000000300000 : "nand-fsbl-uboot" 0x000000300000-0x000000800000 : "nand-linux" 0x000000800000-0x000000820000 : "nand-device-tree" 0x000000820000-0x000001220000 : "nand-rootfs" 0x000001220000-0x000002220000 : "nand-jffs2" 0x000002220000-0x000008000000 : "nand-bitstream" NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 can: controller area network core (rev 20120528 abi 9) NET: Registered protocol family 29 can: raw protocol (rev 20120528) can: broadcast manager protocol (rev 20120528 t) can: netlink gateway (rev 20130117) max_hops=1 Registering SWP/SWPB emulation handler hctosys: unable to open rtc device (rtc0) ALSA device list: No soundcards found. jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0900 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0xf00f instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0xf00f instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x6101 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x6f74 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x7463 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x553b instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x4972 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x5830 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x4646 instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x00000068 ends at 0x00000088 jffs2: Empty flash at 0x00000090 ends at 0x00000098 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cd74: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cd7c: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cd84: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cd8c: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cd94: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cd9c: 0x0206 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cda4: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cdac: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cdb4: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003cdbc: 0x0200 instead jffs2: Further such events for this erase block will not be printed jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040644: 0x4002 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004064c: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040654: 0x4302 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040658: 0x0001 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004065c: 0x400a instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040660: 0x0100 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040664: 0x4302 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004066c: 0x410a instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040670: 0x0100 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040674: 0x410a instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x00043928 ends at 0x0004392c jffs2: Empty flash at 0x00043abc ends at 0x00043ac0 jffs2: Empty flash at 0x00043c50 ends at 0x00043c54 jffs2: Empty flash at 0x00043de4 ends at 0x00043de8 jffs2: Empty flash at 0x000472ac ends at 0x000472b0 jffs2: Empty flash at 0x000475d4 ends at 0x000475d8 jffs2: Empty flash at 0x00047768 ends at 0x0004776c jffs2: Empty flash at 0x0004ac1c ends at 0x0004ac20 jffs2: Empty flash at 0x0004af44 ends at 0x0004af48 jffs2: Empty flash at 0x00051044 ends at 0x00051048 jffs2: Empty flash at 0x000511d8 ends at 0x000511dc jffs2: Empty flash at 0x00054898 ends at 0x0005489c jffs2: Empty flash at 0x000548a8 ends at 0x000548ac jffs2: Empty flash at 0x00054a20 ends at 0x00054a24 jffs2: Empty flash at 0x00054a2c ends at 0x00054a30 jffs2: Empty flash at 0x00054a3c ends at 0x00054a40 jffs2: Empty flash at 0x00054ac0 ends at 0x00054ac4 jffs2: Empty flash at 0x00054bd0 ends at 0x00054bd4 jffs2: Empty flash at 0x00054c54 ends at 0x00054c58 jffs2: Empty flash at 0x00054d64 ends at 0x00054d68 jffs2: Empty flash at 0x0005a71c ends at 0x0005a720 jffs2: Empty flash at 0x0005a8b0 ends at 0x0005a8b4 jffs2: Empty flash at 0x0005add0 ends at 0x0005add4 jffs2: Empty flash at 0x0005ade0 ends at 0x0005ade4 jffs2: Empty flash at 0x0005af20 ends at 0x0005af24 jffs2: Empty flash at 0x0005af2c ends at 0x0005af30 jffs2: Empty flash at 0x0005af64 ends at 0x0005af68 jffs2: Empty flash at 0x0005af74 ends at 0x0005af78 jffs2: Empty flash at 0x0005b0f8 ends at 0x0005b0fc jffs2: Empty flash at 0x0005b108 ends at 0x0005b10c jffs2: Empty flash at 0x0005b28c ends at 0x0005b290 jffs2: Empty flash at 0x0005b29c ends at 0x0005b2a0 jffs2: Empty flash at 0x0005e678 ends at 0x0005e67c jffs2: Empty flash at 0x0005e6a0 ends at 0x0005e6a4 jffs2: Empty flash at 0x0005e6b0 ends at 0x0005e6b4 jffs2: Empty flash at 0x0005e6c0 ends at 0x0005e6c4 jffs2: Empty flash at 0x0005e7ec ends at 0x0005e7f0 jffs2: Empty flash at 0x0005e7fc ends at 0x0005e800 jffs2: Empty flash at 0x0005e80c ends at 0x0005e810 jffs2: Empty flash at 0x0005e834 ends at 0x0005e838 jffs2: Empty flash at 0x0005e844 ends at 0x0005e848 jffs2: Empty flash at 0x0005e854 ends at 0x0005e858 jffs2: Empty flash at 0x0005e9a0 ends at 0x0005e9a4 jffs2: Empty flash at 0x0005e9c8 ends at 0x0005e9cc jffs2: Empty flash at 0x0005e9d8 ends at 0x0005e9dc jffs2: Empty flash at 0x0005e9e8 ends at 0x0005e9ec jffs2: Empty flash at 0x0005eb34 ends at 0x0005eb38 jffs2: Empty flash at 0x0005eb5c ends at 0x0005eb60 jffs2: Empty flash at 0x0005eb6c ends at 0x0005eb70 jffs2: Empty flash at 0x0005eb7c ends at 0x0005eb80 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000741b0: 0x0040 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000741e0: 0x0400 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00074344: 0x0040 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00074374: 0x0400 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00074390: 0x0800 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00074460: 0x4000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00074464: 0x4004 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00074490: 0x4000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000744a4: 0x0004 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000744b4: 0x2000 instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x0007dc38 ends at 0x0007dc3c jffs2: Empty flash at 0x0007dc68 ends at 0x0007dc6c jffs2: Empty flash at 0x0007dc78 ends at 0x0007dc7c jffs2: Empty flash at 0x0007dd98 ends at 0x0007dd9c jffs2: Empty flash at 0x0007ddbc ends at 0x0007ddc0 jffs2: Empty flash at 0x0007ddcc ends at 0x0007ddd0 jffs2: Empty flash at 0x0007ddfc ends at 0x0007de00 jffs2: Empty flash at 0x0007de0c ends at 0x0007de10 jffs2: Empty flash at 0x0007de1c ends at 0x0007de20 jffs2: Empty flash at 0x0007df60 ends at 0x0007df64 jffs2: Empty flash at 0x0007df90 ends at 0x0007df94 jffs2: Empty flash at 0x0007dfa0 ends at 0x0007dfa4 jffs2: Empty flash at 0x0007e0e4 ends at 0x0007e0e8 jffs2: Empty flash at 0x0007e0f4 ends at 0x0007e0f8 jffs2: Empty flash at 0x0007e124 ends at 0x0007e128 jffs2: Empty flash at 0x0007e134 ends at 0x0007e138 jffs2: Empty flash at 0x0007e144 ends at 0x0007e148 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0x8001 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0x2010 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080028: 0x1100 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008002c: 0x000a instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080030: 0x0108 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080034: 0x0131 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080038: 0x4100 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008003c: 0xa200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080040: 0x5504 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080044: 0x0400 instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x000849b8 ends at 0x000849bc jffs2: Empty flash at 0x00084db8 ends at 0x00084dbc jffs2: Empty flash at 0x00084de8 ends at 0x00084dec jffs2: Empty flash at 0x00084df8 ends at 0x00084dfc jffs2: Empty flash at 0x00084e08 ends at 0x00084e0c jffs2: Empty flash at 0x00084e28 ends at 0x00084e2c jffs2: Empty flash at 0x00084f4c ends at 0x00084f50 jffs2: Empty flash at 0x00084f6c ends at 0x00084f70 jffs2: Empty flash at 0x00084f7c ends at 0x00084f80 jffs2: Empty flash at 0x00084f8c ends at 0x00084f90 jffs2: Empty flash at 0x00084f9c ends at 0x00084fa0 jffs2: Empty flash at 0x00084fbc ends at 0x00084fc0 jffs2: Empty flash at 0x000850e0 ends at 0x000850e4 jffs2: Empty flash at 0x00085110 ends at 0x00085114 jffs2: Empty flash at 0x00085120 ends at 0x00085124 jffs2: Empty flash at 0x00085150 ends at 0x00085154 jffs2: Empty flash at 0x00085274 ends at 0x00085278 jffs2: Empty flash at 0x00085294 ends at 0x00085298 jffs2: Empty flash at 0x000852a4 ends at 0x000852a8 jffs2: Empty flash at 0x000852b4 ends at 0x000852b8 jffs2: Empty flash at 0x000852e4 ends at 0x000852e8 jffs2: Empty flash at 0x0008b194 ends at 0x0008b198 jffs2: Empty flash at 0x0008e960 ends at 0x0008e964 jffs2: Empty flash at 0x0008eef0 ends at 0x0008eef4 jffs2: Empty flash at 0x0008ef10 ends at 0x0008ef14 jffs2: Empty flash at 0x0008f084 ends at 0x0008f088 jffs2: Empty flash at 0x0008f094 ends at 0x0008f098 jffs2: Empty flash at 0x0008f0a4 ends at 0x0008f0a8 jffs2: Empty flash at 0x0008f0b4 ends at 0x0008f0b8 jffs2: Empty flash at 0x0008f0c4 ends at 0x0008f0c8 jffs2: Empty flash at 0x0008f218 ends at 0x0008f21c jffs2: Empty flash at 0x0008f238 ends at 0x0008f23c jffs2: Empty flash at 0x0008f3ac ends at 0x0008f3b0 jffs2: Empty flash at 0x0008f3bc ends at 0x0008f3c0 jffs2: Empty flash at 0x0008f3cc ends at 0x0008f3d0 jffs2: Empty flash at 0x00098cb8 ends at 0x00098cbc jffs2: Empty flash at 0x00098cf0 ends at 0x00098cf4 jffs2: Empty flash at 0x00098e3c ends at 0x00098e40 jffs2: Empty flash at 0x00098e4c ends at 0x00098e50 jffs2: Empty flash at 0x00098e84 ends at 0x00098e88 jffs2: Empty flash at 0x00098ea8 ends at 0x00098eac jffs2: Empty flash at 0x00099018 ends at 0x0009901c jffs2: Empty flash at 0x00099164 ends at 0x00099168 jffs2: Empty flash at 0x000991ac ends at 0x000991b0 jffs2: Empty flash at 0x0009c580 ends at 0x0009c584 jffs2: Empty flash at 0x0009c5d0 ends at 0x0009c5d4 jffs2: Empty flash at 0x0009c714 ends at 0x0009c718 jffs2: Empty flash at 0x0009c8f8 ends at 0x0009c8fc jffs2: Empty flash at 0x0009ca8c ends at 0x0009ca90 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0010: 0x0091 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0020: 0x2004 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0024: 0x0004 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0028: 0x0020 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a002c: 0x2000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0038: 0x0800 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0050: 0x2000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0060: 0x0400 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a00c0: 0x0020 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a00ec: 0x0040 instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x000a2158 ends at 0x000a215c jffs2: Empty flash at 0x000a22ec ends at 0x000a22f0 jffs2: Empty flash at 0x000a2454 ends at 0x000a2458 jffs2: Empty flash at 0x000a25e8 ends at 0x000a25ec jffs2: Empty flash at 0x000a2614 ends at 0x000a2618 jffs2: Empty flash at 0x000a2a78 ends at 0x000a2a7c jffs2: Empty flash at 0x000a2bc4 ends at 0x000a2bc8 jffs2: Empty flash at 0x000a2c04 ends at 0x000a2c08 jffs2: Empty flash at 0x000a2c0c ends at 0x000a2c10 jffs2: Empty flash at 0x000a2c1c ends at 0x000a2c20 jffs2: Empty flash at 0x000a2da0 ends at 0x000a2da4 jffs2: Empty flash at 0x000a2eec ends at 0x000a2ef0 jffs2: Empty flash at 0x000a2f2c ends at 0x000a2f30 jffs2: Empty flash at 0x000a2f34 ends at 0x000a2f38 jffs2: Empty flash at 0x000a2f44 ends at 0x000a2f48 jffs2: Empty flash at 0x000ac178 ends at 0x000ac17c jffs2: Empty flash at 0x000ac30c ends at 0x000ac310 jffs2: Empty flash at 0x000aca0c ends at 0x000aca10 jffs2: Empty flash at 0x000acb90 ends at 0x000acb94 jffs2: Empty flash at 0x000b0128 ends at 0x000b012c jffs2: Empty flash at 0x000b02bc ends at 0x000b02c0 jffs2: Empty flash at 0x000b0438 ends at 0x000b043c jffs2: Empty flash at 0x000b0450 ends at 0x000b0454 jffs2: Empty flash at 0x000b05e4 ends at 0x000b05e8 jffs2: Empty flash at 0x000b3acc ends at 0x000b3ad0 jffs2: Empty flash at 0x000b3df4 ends at 0x000b3df8 jffs2: Empty flash at 0x000b3f88 ends at 0x000b3f8c jffs2: Empty flash at 0x000b7280 ends at 0x000b7284 jffs2: Empty flash at 0x000b72c8 ends at 0x000b72cc jffs2: Empty flash at 0x000b72f8 ends at 0x000b72fc jffs2: Empty flash at 0x000b73c4 ends at 0x000b73c8 jffs2: Empty flash at 0x000b740c ends at 0x000b7410 jffs2: Empty flash at 0x000b7414 ends at 0x000b7418 jffs2: Empty flash at 0x000b745c ends at 0x000b7460 jffs2: Empty flash at 0x000b75a8 ends at 0x000b75ac jffs2: Empty flash at 0x000b75f0 ends at 0x000b75f4 jffs2: Empty flash at 0x000b7620 ends at 0x000b7624 jffs2: Empty flash at 0x000b76d4 ends at 0x000b76d8 jffs2: Empty flash at 0x000b76ec ends at 0x000b76f0 jffs2: Empty flash at 0x000b773c ends at 0x000b7740 jffs2: Empty flash at 0x000b7784 ends at 0x000b7788 jffs2: Empty flash at 0x000b77b4 ends at 0x000b77b8 jffs2: Empty flash at 0x000b7880 ends at 0x000b7884 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb98c: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb994: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb99c: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb9a4: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb9ac: 0x0206 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb9b4: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb9bc: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb9c4: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb9cc: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fb9d4: 0x0200 instead jffs2: Further such events for this erase block will not be printed jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100000: 0x4000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100008: 0x0041 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0010000c: 0x2000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100010: 0x0001 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100014: 0x0040 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100018: 0x0042 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0010001c: 0x0002 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100020: 0x0040 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100028: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100034: 0x0040 instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x00101e70 ends at 0x00101e74 jffs2: Empty flash at 0x00101ec8 ends at 0x00101ecc jffs2: Empty flash at 0x00102004 ends at 0x00102008 jffs2: Empty flash at 0x00102198 ends at 0x0010219c jffs2: Empty flash at 0x001025e4 ends at 0x001025e8 jffs2: Empty flash at 0x00102778 ends at 0x0010277c jffs2: Empty flash at 0x0010290c ends at 0x00102910 jffs2: Empty flash at 0x00102aa0 ends at 0x00102aa4 jffs2: Empty flash at 0x001057ac ends at 0x001057b0 jffs2: Empty flash at 0x00105940 ends at 0x00105948 jffs2: Empty flash at 0x00106134 ends at 0x00106138 jffs2: Empty flash at 0x0010624c ends at 0x00106250 jffs2: Empty flash at 0x001062c8 ends at 0x001062cc jffs2: Empty flash at 0x001090a4 ends at 0x001090a8 jffs2: Empty flash at 0x00109238 ends at 0x0010923c jffs2: Empty flash at 0x00109784 ends at 0x00109788 jffs2: Empty flash at 0x00109858 ends at 0x00109860 jffs2: Empty flash at 0x00109864 ends at 0x00109868 jffs2: Empty flash at 0x00109918 ends at 0x0010991c jffs2: Empty flash at 0x00109b84 ends at 0x00109b88 jffs2: Empty flash at 0x00109b8c ends at 0x00109b90 jffs2: Empty flash at 0x0010fe18 ends at 0x0010fe1c jffs2: Empty flash at 0x00110140 ends at 0x00110144 jffs2: Empty flash at 0x00112be8 ends at 0x00112bec jffs2: Empty flash at 0x00112edc ends at 0x00112ee0 jffs2: Empty flash at 0x00112f10 ends at 0x00112f14 jffs2: Empty flash at 0x00113070 ends at 0x00113074 jffs2: Empty flash at 0x001130a4 ends at 0x001130a8 jffs2: Empty flash at 0x001190fc ends at 0x00119100 jffs2: Empty flash at 0x00119290 ends at 0x00119294 jffs2: Empty flash at 0x00119420 ends at 0x00119424 jffs2: Empty flash at 0x00119954 ends at 0x00119958 jffs2: Empty flash at 0x00119ae8 ends at 0x00119aec jffs2: Empty flash at 0x00119af0 ends at 0x00119af4 jffs2: Empty flash at 0x00119e18 ends at 0x00119e1c jffs2: Empty flash at 0x0011d2a8 ends at 0x0011d2ac jffs2: Empty flash at 0x0011d43c ends at 0x0011d440 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00132e14: 0x2000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00132e6c: 0x2800 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00132ecc: 0x4800 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00132f7c: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00132fa8: 0x0801 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00133074: 0x0200 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0013307c: 0x0800 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00133080: 0x0e00 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00133094: 0x0800 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001330a0: 0x0020 instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x00138be0 ends at 0x00138be4 jffs2: Empty flash at 0x001392bc ends at 0x001392c0 jffs2: Empty flash at 0x001392d4 ends at 0x001392d8 jffs2: Empty flash at 0x001392f4 ends at 0x001392f8 jffs2: Empty flash at 0x001393d0 ends at 0x001393d4 jffs2: Empty flash at 0x00139450 ends at 0x00139454 jffs2: Empty flash at 0x00139564 ends at 0x00139568 jffs2: Empty flash at 0x0013bec8 ends at 0x0013becc jffs2: Empty flash at 0x0013c1f0 ends at 0x0013c1f4 jffs2: Empty flash at 0x0013f934 ends at 0x0013f938 jffs2: Empty flash at 0x0013f93c ends at 0x0013f940 jffs2: Empty flash at 0x0013f958 ends at 0x0013f95c jffs2: Empty flash at 0x0013f96c ends at 0x0013f970 jffs2: Empty flash at 0x0013fa80 ends at 0x0013fa84 jffs2: Empty flash at 0x0013faa0 ends at 0x0013faa4 jffs2: Empty flash at 0x0013faec ends at 0x0013faf0 jffs2: Empty flash at 0x0013fc80 ends at 0x0013fc84 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140004: 0x6010 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140008: 0x0c2c instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0014000c: 0xc471 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140010: 0x741c instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140014: 0x8461 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140018: 0x0418 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0014001c: 0x7078 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140020: 0x7c1c instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140024: 0x3061 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0014002c: 0xc471 instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x00140310 ends at 0x00140314 jffs2: Empty flash at 0x0014044c ends at 0x00140450 jffs2: Empty flash at 0x001404a4 ends at 0x001404a8 jffs2: Empty flash at 0x001405e0 ends at 0x001405e4 jffs2: Empty flash at 0x00140638 ends at 0x0014063c jffs2: Empty flash at 0x00140710 ends at 0x00140714 jffs2: Empty flash at 0x0014334c ends at 0x00143350 jffs2: Empty flash at 0x00143360 ends at 0x00143364 jffs2: Empty flash at 0x00143470 ends at 0x00143474 jffs2: Empty flash at 0x001434f4 ends at 0x001434f8 jffs2: Empty flash at 0x00143a38 ends at 0x00143a3c jffs2: Empty flash at 0x00143b24 ends at 0x00143b28 jffs2: Empty flash at 0x00143b38 ends at 0x00143b3c jffs2: Empty flash at 0x00143b48 ends at 0x00143b4c jffs2: Empty flash at 0x00143b98 ends at 0x00143b9c jffs2: Empty flash at 0x00143bcc ends at 0x00143bd0 jffs2: Empty flash at 0x00143c08 ends at 0x00143c0c jffs2: Empty flash at 0x00143c38 ends at 0x00143c3c jffs2: Empty flash at 0x00143d60 ends at 0x00143d64 jffs2: Empty flash at 0x00143e60 ends at 0x00143e64 jffs2: Empty flash at 0x00143e70 ends at 0x00143e74 jffs2: Empty flash at 0x00143ef4 ends at 0x00143ef8 jffs2: Empty flash at 0x00143f30 ends at 0x00143f34 jffs2: Empty flash at 0x00143f60 ends at 0x00143f64 jffs2: Empty flash at 0x00149980 ends at 0x00149984 jffs2: Empty flash at 0x00149a10 ends at 0x00149a14 jffs2: Empty flash at 0x00149b80 ends at 0x00149b84 jffs2: Empty flash at 0x00149ba4 ends at 0x00149ba8 jffs2: Empty flash at 0x0014a3e8 ends at 0x0014a3ec jffs2: Empty flash at 0x0014a4f8 ends at 0x0014a4fc jffs2: Empty flash at 0x0014a56c ends at 0x0014a570 jffs2: Empty flash at 0x0014a708 ends at 0x0014a70c jffs2: Empty flash at 0x0014d454 ends at 0x0014d458 jffs2: Empty flash at 0x0014d5e8 ends at 0x0014d5ec jffs2: Empty flash at 0x0014daf8 ends at 0x0014dafc jffs2: Empty flash at 0x0014db7c ends at 0x0014db80 jffs2: Empty flash at 0x0014db94 ends at 0x0014db98 jffs2: Empty flash at 0x0014dbac ends at 0x0014dbb0 jffs2: Empty flash at 0x0014dbc4 ends at 0x0014dbc8 jffs2: Empty flash at 0x0014dbd4 ends at 0x0014dbd8 jffs2: Empty flash at 0x0014dbf4 ends at 0x0014dbf8 jffs2: Empty flash at 0x0014dc8c ends at 0x0014dc90 jffs2: Empty flash at 0x0014dd10 ends at 0x0014dd14 jffs2: Empty flash at 0x0014dd28 ends at 0x0014dd2c jffs2: Empty flash at 0x0014dd40 ends at 0x0014dd44 jffs2: Empty flash at 0x0014dd58 ends at 0x0014dd5c jffs2: Empty flash at 0x0014dd68 ends at 0x0014dd6c jffs2: Empty flash at 0x0014dd88 ends at 0x0014dd8c jffs2: Empty flash at 0x0014dea4 ends at 0x0014dea8 jffs2: Empty flash at 0x0014ded4 ends at 0x0014ded8 jffs2: Empty flash at 0x0014deec ends at 0x0014def0 jffs2: Empty flash at 0x0014df1c ends at 0x0014df20 jffs2: Empty flash at 0x0014e038 ends at 0x0014e03c jffs2: Empty flash at 0x0014e068 ends at 0x0014e06c jffs2: Empty flash at 0x0014e080 ends at 0x0014e084 jffs2: Empty flash at 0x0014e0b0 ends at 0x0014e0b4 jffs2: Empty flash at 0x00153a78 ends at 0x00153a7c jffs2: Empty flash at 0x00157264 ends at 0x00157268 jffs2: Empty flash at 0x001578a8 ends at 0x001578ac jffs2: Empty flash at 0x00157910 ends at 0x00157914 jffs2: Empty flash at 0x0015793c ends at 0x00157940 jffs2: Empty flash at 0x00157aa4 ends at 0x00157aa8 jffs2: Empty flash at 0x00157ad0 ends at 0x00157ad4 jffs2: Empty flash at 0x00157bd0 ends at 0x00157bd4 jffs2: Empty flash at 0x00157c38 ends at 0x00157c3c jffs2: Empty flash at 0x00157c64 ends at 0x00157c68 jffs2: Empty flash at 0x00157dcc ends at 0x00157dd0 jffs2: Empty flash at 0x00157df8 ends at 0x00157dfc jffs2: Empty flash at 0x0015a804 ends at 0x0015a808 jffs2: Empty flash at 0x0015acc0 ends at 0x0015acc4 jffs2: Empty flash at 0x0015ad80 ends at 0x0015ad84 jffs2: Empty flash at 0x0015b1fc ends at 0x0015b200 jffs2: Empty flash at 0x0015b25c ends at 0x0015b260 jffs2: Empty flash at 0x0015b2a4 ends at 0x0015b2a8 jffs2: Empty flash at 0x0015b2bc ends at 0x0015b2c0 jffs2: Empty flash at 0x0015b364 ends at 0x0015b368 jffs2: Empty flash at 0x0015b390 ends at 0x0015b394 jffs2: Empty flash at 0x0015b3f0 ends at 0x0015b3f4 jffs2: Empty flash at 0x0015b438 ends at 0x0015b43c jffs2: Empty flash at 0x0015b524 ends at 0x0015b528 jffs2: Empty flash at 0x0015b584 ends at 0x0015b588 jffs2: Empty flash at 0x0015b5cc ends at 0x0015b5d0 jffs2: Empty flash at 0x0015b68c ends at 0x0015b690 jffs2: Empty flash at 0x0015b6b8 ends at 0x0015b6bc jffs2: Empty flash at 0x0015b718 ends at 0x0015b71c jffs2: Empty flash at 0x0015b760 ends at 0x0015b764 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160004: 0x2000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160008: 0xc140 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160024: 0x4000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160028: 0x0408 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160030: 0x0040 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160034: 0x4000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160038: 0xa000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0016003c: 0x0802 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160040: 0x0010 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160044: 0x0002 instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x001616d8 ends at 0x001616dc jffs2: Empty flash at 0x0016177c ends at 0x00161780 jffs2: Empty flash at 0x0016178c ends at 0x00161790 jffs2: Empty flash at 0x0016186c ends at 0x00161870 jffs2: Empty flash at 0x00161910 ends at 0x00161914 jffs2: Empty flash at 0x00161a00 ends at 0x00161a04 jffs2: Empty flash at 0x00161aa4 ends at 0x00161aa8 jffs2: Empty flash at 0x00161ab4 ends at 0x00161ab8 jffs2: Empty flash at 0x00161b94 ends at 0x00161b98 jffs2: Empty flash at 0x00161c38 ends at 0x00161c3c jffs2: Empty flash at 0x0016ed70 ends at 0x0016ed74 jffs2: Empty flash at 0x0016ef04 ends at 0x0016ef08 jffs2: Empty flash at 0x0016f098 ends at 0x0016f09c jffs2: Empty flash at 0x0016f22c ends at 0x0016f230 jffs2: Empty flash at 0x00171d84 ends at 0x00171d88 jffs2: Empty flash at 0x00175ec8 ends at 0x00175ecc jffs2: Empty flash at 0x00175ef0 ends at 0x00175ef4 jffs2: Empty flash at 0x0017605c ends at 0x00176060 jffs2: Empty flash at 0x00176084 ends at 0x00176088 jffs2: Empty flash at 0x001761f0 ends at 0x001761f4 jffs2: Empty flash at 0x00176218 ends at 0x0017621c jffs2: Empty flash at 0x00176384 ends at 0x00176388 jffs2: Empty flash at 0x001763ac ends at 0x001763b0 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3d4: 0x0030 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3d8: 0x827d instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3dc: 0x0020 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3e0: 0x0020 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3e4: 0x0030 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3ec: 0x0020 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3f0: 0x0030 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3f8: 0x0020 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc3fc: 0x0020 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001fc400: 0x0020 instead jffs2: Further such events for this erase block will not be printed jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes jffs2: empty_blocks 730, bad_blocks 5, c->nr_blocks 751 VFS: Cannot open root device "mtdblock5" or unknown-block(31,5): error -5 Please append a correct "root=" boot option; here are the available partitions: 0100 16384 ram0 (driver?) 0101 16384 ram1 (driver?) 0102 16384 ram2 (driver?) 0103 16384 ram3 (driver?) 0104 16384 ram4 (driver?) 0105 16384 ram5 (driver?) 0106 16384 ram6 (driver?) 0107 16384 ram7 (driver?) 0108 16384 ram8 (driver?) 0109 16384 ram9 (driver?) 010a 16384 ram10 (driver?) 010b 16384 ram11 (driver?) 010c 16384 ram12 (driver?) 010d 16384 ram13 (driver?) 010e 16384 ram14 (driver?) 010f 16384 ram15 (driver?) 1f00 3072 mtdblock0 (driver?) 1f01 5120 mtdblock1 (driver?) 1f02 128 mtdblock2 (driver?) 1f03 10240 mtdblock3 (driver?) 1f04 16384 mtdblock4 (driver?) 1f05 96128 mtdblock5 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5) CPU0: stopping CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.6.0-xilinx #5 Hardware name: Xilinx Zynq Platform [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [] (show_stack) from [] (dump_stack+0x80/0xa0) [] (dump_stack) from [] (ipi_cpu_stop+0x3c/0x70) [] (ipi_cpu_stop) from [] (handle_IPI+0x64/0x84) [] (handle_IPI) from [] (gic_handle_irq+0x74/0x90) [] (gic_handle_irq) from [] (__irq_svc+0x54/0x90) Exception stack(0xc0901f30 to 0xc0901f78) 1f20: 00000000 00000001 0f593000 cfdd31c0 1f40: 00000001 cfdd25c0 843407ba 00000001 812def3a 00000001 00000000 00000001 1f60: 00000008 c0901f80 c0491c30 c0491c54 60000013 ffffffff [] (__irq_svc) from [] (cpuidle_enter_state+0xe0/0x1b4) [] (cpuidle_enter_state) from [] (cpu_startup_entry+0x184/0x1d0) [] (cpu_startup_entry) from [] (start_kernel+0x2f0/0x350) [] (start_kernel) from [<0000807c>] (0x807c) ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5) `

Grateful for any help on how to get this working

Thanks

Dave

dave18 commented 3 years ago

I've also tried mtdblock4 as this seems to have the jffs2 file system on it, this give the following

U-Boot 2015.07 (May 18 2017 - 22:22:09 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 zynq-uboot> setenv nandboot "echo Copying Linux from NAND flash to RAM... && nand info && run nandroot;nand read 0x100000 0x2220000 0x300000 && fpga loadb 0 0x100000 0x300000 && nand read ${kernel_load_address} 0x300000 ${kernel_size} && nand read ${devicetree_load_address} 0x800000 ${devicetree_size}" zynq-uboot> run nandboot Copying Linux from NAND flash to RAM...

Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b subpagesize 512 b options 0x 0 bbt options 0x 20000

Error: "nandroot" not defined

NAND read: device 0 offset 0x2220000, size 0x300000 3145728 bytes read: OK design filename = "top_ctrl;UserID=0XFFFFFFFF;Version=2016.4" part number = "7z010clg400" date = "2017/05/29" time = "11:17:01" bytes in bitstream = 2083740 zynq_align_dma_buffer: Align buffer at 100068 to 100000(swap 1)

NAND read: device 0 offset 0x300000, size 0x500000 5242880 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x20000 131072 bytes read: OK zynq-uboot> setenv bootargs 'console=ttyPS0,115200 root=/dev/mtdblock4 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh' zynq-uboot> bootm ${kernel_load_address} - ${devicetree_load_address} init=/bin/sh

Booting kernel from Legacy Image at 02080000 ...

Image Name: Linux-4.6.0-xilinx Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3820688 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK

Flattened Device Tree blob at 02000000

Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK Loading Device Tree to 0f2fe000, end 0f303a6b ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0 Linux version 4.6.0-xilinx (root@alvin) (gcc version 5.2.0 (GCC) ) #5 SMP PREEMPT Mon May 8 14:36:49 CST 2017 CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine model: xlnx,zynq-7000 cma: Reserved 16 MiB at 0x0e000000 Memory policy: Data cache writealloc percpu: Embedded 12 pages/cpu @cfdcf000 s19776 r8192 d21184 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyPS0,115200 root=/dev/mtdblock4 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 234624K/262144K available (5286K kernel code, 231K rwdata, 1848K rodata, 1024K init, 226K bss, 11136K reserved, 16384K cma-reserved, 0K highmem) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc07f7850 (8127 kB) .init : 0xc0800000 - 0xc0900000 (1024 kB) .data : 0xc0900000 - 0xc0939e60 ( 232 kB) .bss : 0xc0939e60 - 0xc0972764 ( 227 kB) Preemptible hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 NR_IRQS:16 nr_irqs:16 16 efuse mapped to d0800000 slcr mapped to d0802000 L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 L2C-310 erratum 769419 enabled L2C-310 enabling early BRESP for Cortex-A9 L2C-310 full line of zeros enabled for Cortex-A9 L2C-310 ID prefetch enabled, offset 1 lines L2C-310 dynamic clock gating enabled, standby mode enabled L2C-310 cache controller enabled, 8 ways, 512 kB L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 zynq_clock_init: clkc starts at d0802100 Zynq clock init sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce076117e, max_idle_ns: 440795215954 ns Switching to timer-based delay loop, resolution 3ns clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns timer #0 at d080a000, irq=17 Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333330) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0x100000 - 0x100058 CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 Brought up 2 CPUs SMP: Total of 2 processors activated (1333.33 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations cpuidle: using governor menu hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. hw-breakpoint: maximum watchpoint size is 4 bytes. zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xd0880000 zynq-pinctrl 700.pinctrl: zynq pinctrl initialized vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb media: Linux media interface: v0.10 Linux video capture interface: v2.00 pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it PTP clock support registered EDAC MC: Ver: 3.0.0 Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource arm_global_timer NET: Registered protocol family 2 TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 2048 (order: 2, 16384 bytes) TCP: Hash tables configured (established 2048 bind 2048) UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available futex hash table entries: 512 (order: 3, 32768 bytes) workingset: timestamp_bits=28 max_order=16 bucket_order=0 jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 42c00000.serial: ttyUL2 at MMIO 0x42c00000 (irq = 166, base_baud = 0) is a uartlite e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 144, base_baud = 3124996) is a xuartps e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 145, base_baud = 3124996) is a xuartps console [ttyPS0] enabled xdevcfg f8007000.devcfg: ioremap 0xf8007000 to d0872000 [drm] Initialized drm 1.1.0 20060810 brd: module loaded loop: module loaded CAN device driver interface gpiod_set_value: invalid GPIO libphy: MACB_mii_bus: probed macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 148 (00:0a:35:00:01:22) ICPlus IP101A/G e000b000.etherne:00: attached PHY driver [ICPlus IP101A/G] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1) e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Copyright(c) 1999 - 2015 Intel Corporation. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice i2c /dev entries driver rtc-pcf8563 0-0051: chip found, driver version 0.4.4 rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-11 addr=0e, data=03 rtc-pcf8563 0-0051: pcf8563_probe: write error rtc-pcf8563: probe of 0-0051 failed with error -5 cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 141 EDAC MC: ECC not enabled Xilinx Zynq CpuIdle Driver started sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA ledtrig-cpu: registered to indicate activity on CPUs usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1 nand: Unknown W29N01HV nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 nand_read_bbt: bad block at 0x000007f60000 nand_read_bbt: bad block at 0x000007f80000 nand_read_bbt: bad block at 0x000007fa0000 nand_read_bbt: bad block at 0x000007fc0000 6 ofpart partitions found on MTD device pl35x-nand Creating 6 MTD partitions on "pl35x-nand": 0x000000000000-0x000000300000 : "nand-fsbl-uboot" 0x000000300000-0x000000800000 : "nand-linux" 0x000000800000-0x000000820000 : "nand-device-tree" 0x000000820000-0x000001220000 : "nand-rootfs" 0x000001220000-0x000002220000 : "nand-jffs2" 0x000002220000-0x000008000000 : "nand-bitstream" NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 can: controller area network core (rev 20120528 abi 9) NET: Registered protocol family 29 can: raw protocol (rev 20120528) can: broadcast manager protocol (rev 20120528 t) can: netlink gateway (rev 20130117) max_hops=1 Registering SWP/SWPB emulation handler hctosys: unable to open rtc device (rtc0) ALSA device list: No soundcards found. jffs2: Empty flash at 0x009030f0 ends at 0x00903800 jffs2: Empty flash at 0x009048f0 ends at 0x00905000 VFS: Mounted root (jffs2 filesystem) on device 31:4. devtmpfs: error mounting -2 Freeing unused kernel memory: 1024K (c0800000 - c0900000) Kernel panic - not syncing: Requested init /bin/sh failed (error -2). CPU0: stopping CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.6.0-xilinx #5 Hardware name: Xilinx Zynq Platform [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [] (show_stack) from [] (dump_stack+0x80/0xa0) [] (dump_stack) from [] (ipi_cpu_stop+0x3c/0x70) [] (ipi_cpu_stop) from [] (handle_IPI+0x64/0x84) [] (handle_IPI) from [] (gic_handle_irq+0x74/0x90) [] (gic_handle_irq) from [] (__irq_svc+0x54/0x90) Exception stack(0xc0901f30 to 0xc0901f78) 1f20: 00000000 00000000 0f593000 cfdd31c0 1f40: 00000000 cfdd25c0 51c108d0 00000000 5163d45f 00000000 00000000 00000000 1f60: 00000008 c0901f80 c0491c30 c0491c54 60000013 ffffffff [] (__irq_svc) from [] (cpuidle_enter_state+0xe0/0x1b4) [] (cpuidle_enter_state) from [] (cpu_startup_entry+0x184/0x1d0) [] (cpu_startup_entry) from [] (start_kernel+0x2f0/0x350) ---[ end Kernel panic - not syncing: Requested init /bin/sh failed (error -2).

DavidJRichards commented 3 years ago

Greetings dave18, I had a problem using the commands given here but found a way to make it work for me. The instructions here were supposed to have been fixed but perhaps your system is different or maybe they haven't been tested. The commands which actually worked for me are shown here: https://github.com/DavidJRichards/EBAZ4205/tree/master/uboot There is also some background information which may enable you to craft a working set of commands. hth David.

dave18 commented 3 years ago

Hi David, thanks for your response.

Hmm, your commands are identical to the last 2 commands given here, which suggest they have been fixed. On your site there is no command to create the boot image in memory, so does your board automatically create an image?

When I run it I get 'ERROR: can't get kernel image!'

nic3-14159 commented 3 years ago

There might be another reason why your board isn't working. To me it looks like Linux is only detecting 6 mtd partitions. If you look here, you can see that there should be 9 mtd partitions. The partition mtd6 should be after the "nand-bitstream" partition. Maybe there's an issue with the NAND flash on your board that is causing those partitions not to be detected? I haven't figured out how to list partitions in uboot though.

DavidJRichards commented 3 years ago

HI Dave, sorry, Having a bad day, I was looking in the wrong place. does your board boot to a Linux command prompt without any intervention? how are the boot options set? Somebody here has a board with duff one or more nand blocks. you can follow what is supposed to happen if you issue a 'printenv' command before letting the system boot. Linux kernel memory is filled from nand with the commands -- see below David.

''' --- original nandboot: loads fpga, no ramdisk nandboot=echo Copying Linux from NAND flash to RAM... && nand info && run nandroot; nand read 0x100000 0x2220000 0x300000 && fpga loadb 0 0x100000 0x300000 && nand read ${kernel_load_address} 0x300000 ${kernel_size} && nand read ${devicetree_load_address} 0x800000 ${devicetree_size} && bootm ${kernel_load_address} - ${devicetree_load_address}

--- helper nandroot=setenv bootargs 'console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2 noinitrd rw rootwait' '''

dave18 commented 3 years ago

I notice that when I call 'run nandboot' it gives the following error when it tries to run nandroot '## Error: "nandroot" not defined'. printenv does not have seem to have an environment for nandroot anywhere, I've included the output at the bottom of this post.

Also, if my nand is corrupted is there any way to flash a correct image?

If I just let it boot it does seem to start successfully (until it can't reach an IP address)

printenv output

zynq-uboot> printenv baudrate=115200 bitstream_image=system.bit.bin boot_image=BOOT.bin boot_size=0xF00000 bootcmd=run $modeboot bootdelay=3 bootenv=uEnv.txt devicetree_image=devicetree.dtb devicetree_load_address=0x2000000 devicetree_size=0x20000 dfu_mmc=run dfu_mmc_info && dfu 0 mmc 0 dfu_mmc_info=set dfu_alt_info ${kernel_image} fat 0 1\;${devicetree_image} fat 0 1\;${ramdisk_image} fat 0 1 dfu_ram=run dfu_ram_info && dfu 0 ram 0 dfu_ram_info=set dfu_alt_info ${kernel_image} ram 0x3000000 0x500000\;${devicetree_image} ram 0x2A00000 0x20000\;${ramdisk_image} ram 0x2000000 0x600000 ethact=Gem.e000b000 ethaddr=00:0a:35:00:01:22 fdt_high=0x20000000 gatewayip=192.168.0.1 importbootenv=echo Importing environment from SD ...; env import -t ${loadbootenv_addr} $filesize initrd_high=0x20000000 ipaddr=192.168.0.115 jtagboot=echo TFTPing Linux to RAM... && tftpboot ${kernel_load_address} ${kernel_image} && tftpboot ${devicetree_load_address} ${devicetree_image} && tftpboot ${ramdisk_load_address} ${ramdisk_image} && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} kernel_image=uImage kernel_load_address=0x2080000 kernel_size=0x500000 loadbit_addr=0x100000 loadbootenv=load mmc 0 ${loadbootenv_addr} ${bootenv} loadbootenv_addr=0x2000000 mmc_loadbit=echo Loading bitstream from SD/MMC/eMMC to RAM.. && mmcinfo && load mmc 0 ${loadbit_addr} ${bitstream_image} && fpga loadb 0 ${loadbit_addr} ${filesize} modeboot=nandboot nandboot=echo Copying Linux from NAND flash to RAM... && nand read 0x100000 0x2220000 0x300000 && fpga loadb 0 0x100000 0x300000 && nand read ${kernel_load_address} 0x300000 ${kernel_size} && nand read ${devicetree_load_address} 0x800000 ${devicetree_size} && echo Copying ramdisk... && nand read ${ramdisk_load_address} 0x820000 ${ramdisk_size} && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} nandboot0=echo Copying Linux from NAND flash to RAM... && nand read ${kernel_load_address} 0x300000 ${kernel_size} && nand read ${devicetree_load_address} 0x800000 ${devicetree_size} && echo Copying ramdisk... && nand read ${ramdisk_load_address} 0x820000 ${ramdisk_size} && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} norboot=echo Copying Linux from NOR flash to RAM... && cp.b 0xE2100000 ${kernel_load_address} ${kernel_size} && cp.b 0xE2600000 ${devicetree_load_address} ${devicetree_size} && echo Copying ramdisk... && cp.b 0xE2620000 ${ramdisk_load_address} ${ramdisk_size} && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} preboot=if test $modeboot = sdboot && env run sd_uEnvtxt_existence_test; then if env run loadbootenv; then env run importbootenv; fi; fi; qspiboot=echo Copying Linux from QSPI flash to RAM... && sf probe 0 0 0 && sf read ${kernel_load_address} 0x100000 ${kernel_size} && sf read ${devicetree_load_address} 0x600000 ${devicetree_size} && echo Copying ramdisk... && sf read ${ramdisk_load_address} 0x620000 ${ramdisk_size} && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} ramdisk_image=uramdisk.image.gz ramdisk_load_address=0x4000000 ramdisk_size=0xA00000 rsa_jtagboot=echo TFTPing Image to RAM... && tftpboot 0x100000 ${boot_image} && zynqrsa 0x100000 && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} rsa_nandboot=echo Copying Image from NAND flash to RAM... && nand read 0x100000 0x0 ${boot_size} && zynqrsa 0x100000 && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} rsa_norboot=echo Copying Image from NOR flash to RAM... && cp.b 0xE2100000 0x100000 ${boot_size} && zynqrsa 0x100000 && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} rsa_qspiboot=echo Copying Image from QSPI flash to RAM... && sf probe 0 0 0 && sf read 0x100000 0x0 ${boot_size} && zynqrsa 0x100000 && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} rsa_sdboot=echo Copying Image from SD to RAM... && load mmc 0 0x100000 ${boot_image} && zynqrsa 0x100000 && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address} sd_uEnvtxt_existence_test=test -e mmc 0 /uEnv.txt sdboot=if mmcinfo; then run uenvboot; echo Copying Linux from SD to RAM... && load mmc 0 ${kernel_load_address} ${kernel_image} && load mmc 0 ${devicetree_load_address} ${devicetree_image} && load mmc 0 ${ramdisk_load_address} ${ramdisk_image} && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}; fi serverip=192.168.0.104 stderr=serial stdin=serial stdout=serial thor_mmc=run dfu_mmc_info && thordown 0 mmc 0 thor_ram=run dfu_ram_info && thordown 0 ram 0 uenvboot=if run loadbootenv; then echo Loaded environment from ${bootenv}; run importbootenv; fi; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcmd; fi usbboot=if usb start; then run uenvboot; echo Copying Linux from USB to RAM... && load usb 0 ${kernel_load_address} ${kernel_image} && load usb 0 ${devicetree_load_address} ${devicetree_image} && load usb 0 ${ramdisk_load_address} ${ramdisk_image} && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}; fi

Environment size: 5290/131068 bytes

dave18 commented 3 years ago

Ok, I've soldered on a TF Card slot and can access it from uboot. Would someone be able to provide me with a good flash image, then I can assume I could try:

fatload mmc 0 0x100000 image.bin nand scrub -y 0x0 0x8000000 (mine is currently reporting bad blocks) nand write 0x100000 0x0 0x8000000

and that should restore the nand?

DavidJRichards commented 3 years ago

I dumped the nand images to file when I got my board, haven't dared tried writing to nand yet though and cant vouch for their contents although they look plausible. images here: https://github.com/DavidJRichards/EBAZ4205/tree/master/nand I dont know if the uboot nand writing functions work either.

dave18 commented 3 years ago

Thanks David

Well, it seems to have worked, took a couple of goes and I ended up doing a full erase and then writing all the MDTs back again and it is fine other than a few jffs CRC complaints.

I take it you had already renamed the bitminer script before you dumped the nand as it was already renamed for me.

Thanks again

Dave

DavidJRichards commented 3 years ago

Thanks for the good news Dave, could you post a transcript please. Yes I guess I had already reamed the script, it was the first thing I did, Kind regards, David.

dave18 commented 3 years ago

U-Boot 2015.07 (May 18 2017 - 22:22:09 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 zynq-uboot> ls mmc 0 system volume information/ 16777216 mtd4ro.bin 8388608 mtd5ro.bin 67108864 mtd6ro.bin 20840448 mtd7ro.bin 2097152 mtd8ro.bin 3145728 mtd0ro.bin 5242880 mtd1ro.bin 131072 mtd2ro.bin 10485760 mtd3ro.bin

9 file(s), 1 dir(s)

zynq-uboot> load mmc 0 0x100000 mtd8ro.bin reading mtd8ro.bin 2097152 bytes read in 189 ms (10.6 MiB/s)

zynq-uboot> nand write 0x100000 0x7e00000 0x200000

NAND write: device 0 offset 0x7e00000, size 0x200000 Attempt to write outside the flash area 0 bytes written: ERROR

**** This is because I have bad blocks at the end of my NAND

zynq-uboot> load mmc 0 0x100000 mtd7ro.bin reading mtd7ro.bin 20840448 bytes read in 1743 ms (11.4 MiB/s) zynq-uboot> nand write 0x100000 0x6a20000 0x13e0000

NAND write: device 0 offset 0x6a20000, size 0x13e0000 20840448 bytes written: OK zynq-uboot> nand bad

Device 0 bad blocks: 07f60000 07f80000 07fa0000 07fc0000 07fe0000 zynq-uboot> nand scrub -y 0x7e00000 0x200000

NAND scrub: device 0 offset 0x7e00000, size 0x200000 Erasing at 0x7fe0000 -- 100% complete. OK zynq-uboot> nand bad

Device 0 bad blocks: 07f80000 07fa0000 07fc0000 07fe0000 zynq-uboot> nand scrub -y 0x7f80000 0x20000

NAND scrub: device 0 offset 0x7f80000, size 0x20000 Erasing at 0x7f80000 -- 100% complete. OK zynq-uboot> nand bad

Device 0 bad blocks: 07f80000 07fa0000 07fc0000 07fe0000 zynq-uboot> nand scrub -y 0x7e00000 0x200000

NAND scrub: device 0 offset 0x7e00000, size 0x200000 Erasing at 0x7fe0000 -- 100% complete. OK zynq-uboot> nand bad

Device 0 bad blocks: 07f80000 07fa0000 07fc0000 07fe0000 zynq-uboot> load mmc 0 0x100000 mtd6ro.bin reading mtd6ro.bin 67108864 bytes read in 5590 ms (11.4 MiB/s) zynq-uboot> nand write 0x100000 0x2a20000 0x4000000

NAND write: device 0 offset 0x2a20000, size 0x4000000 67108864 bytes written: OK zynq-uboot> load mmc 0 0x100000 mtd5ro.bin reading mtd5ro.bin 8388608 bytes read in 712 ms (11.2 MiB/s) zynq-uboot> nand write 0x100000 0x1220000 0x20000

NAND write: device 0 offset 0x1220000, size 0x20000 131072 bytes written: OK zynq-uboot> load mmc 0 0x100000 mtd2ro.bin reading mtd2ro.bin 131072 bytes read in 25 ms (5 MiB/s) zynq-uboot> nand write 0x100000 0x800000 0x20000

NAND write: device 0 offset 0x800000, size 0x20000 NAND write to offset 800000 failed -5 0 bytes written: ERROR zynq-uboot> nand write 0x100000 0x800000 0x20000

NAND write: device 0 offset 0x800000, size 0x20000 NAND write to offset 800000 failed -5 0 bytes written: ERROR zynq-uboot> nand unlock 0x800000 0x20000 device 0 offset 0x800000, size 0x20000 NAND flash successfully unlocked zynq-uboot> nand write 0x100000 0x800000 0x20000

NAND write: device 0 offset 0x800000, size 0x20000 NAND write to offset 800000 failed -5 0 bytes written: ERROR zynq-uboot> nand bad

Device 0 bad blocks: 07f80000 07fa0000 07fc0000 07fe0000 zynq-uboot> load mmc 0 0x100000 mtd2ro.bin reading mtd2ro.bin 131072 bytes read in 24 ms (5.2 MiB/s) zynq-uboot> md 0x10000 00010000: 940a2908 2a43cbab 39bb4802 48884201 .)....C.H.9.B.H 00010010: af44388d e2aa754d 892eb69c 0dabc8a0 .8D.Mu.......... 00010020: 96014438 64400136 a8aad8a2 852cb803 8D..6.@d......,. 00010030: 32c04b82 08f831c4 d0e47690 10b83e03 .K.2.1...v...>.. 00010040: a40b84f0 56a34a38 94943908 a48405c8 ....8J.V.9...... 00010050: 53002a40 73eca48b 33c3ee07 0a072c9e @.S...s...3.,.. 00010060: 00c9222d a8d3e499 1892a800 a5603281 -"...........2`. 00010070: aac00fac f4281a88 a0980847 eb9a002f ......(.G.../... 00010080: 3069a381 986242b8 c80cc426 d06202bc ..i0.Bb.&.....b. 00010090: c401e8ea 96b08296 a8a180cc 926cc051 ............Q.l. 000100a0: 292011a3 2e811928 a0e08004 808386c4 .. )(........... 000100b0: 3ba2100c 82a23ea2 00246ac8 0a38260b ...;.>...j$..&8. 000100c0: 3b38803a 2a4a622a 726c5291 a0528276 :.8;bJ.Rlrv.R. 000100d0: 8a74d0ee a81c83b8 feaa216c b60aa848 ..t.....l!..H... 000100e0: c118060c 8084b633 583d9380 9003ab54 ....3.....=XT... 000100f0: 93808015 8ac9e66a 9a935c1b cfe74097 ....j.......@.. zynq-uboot> nand read 0x120000 0x800000 0x20000

NAND read: device 0 offset 0x800000, size 0x20000 NAND read from offset 800000 failed -74 0 bytes read: ERROR zynq-uboot>

U-Boot 2015.07 (May 18 2017 - 22:22:09 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 zynq-uboot> setenv nandboot "echo Copying Linux from NAND flash to RAM... && nand info && run nandroot;nand read 0x100000 0x2220000 0x300000 && fpga loadb 0 0x100000 0x300000 && nand read ${kernel_load_address} 0x300000 ${kernel_size} && nand read ${devicetree_load_address} 0x800000 ${devicetree_size}" zynq-uboot> run nandboot Copying Linux from NAND flash to RAM...

Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b subpagesize 512 b options 0x 0 bbt options 0x 20000

Error: "nandroot" not defined

NAND read: device 0 offset 0x2220000, size 0x300000 3145728 bytes read: OK design filename = "top_ctrl;UserID=0XFFFFFFFF;Version=2016.4" part number = "7z010clg400" date = "2017/05/29" time = "11:17:01" bytes in bitstream = 2083740 zynq_align_dma_buffer: Align buffer at 100068 to 100000(swap 1)

NAND read: device 0 offset 0x300000, size 0x500000 5242880 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x20000 NAND read from offset 800000 failed -74 0 bytes read: ERROR zynq-uboot> setenv bootargs 'console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh' zynq-uboot> bootm ${kernel_load_address} - ${devicetree_load_address} init=/bin/sh

Booting kernel from Legacy Image at 02080000 ...

Image Name: Linux-4.6.0-xilinx Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3820688 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK

Flattened Device Tree blob at 02000000

Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK Loading Device Tree to 0f2fe000, end 0f3039ff ... OK

Starting kernel ...

U-Boot 2015.07 (May 18 2017 - 22:22:09 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 Copying Linux from NAND flash to RAM...

NAND read: device 0 offset 0x2220000, size 0x300000 3145728 bytes read: OK design filename = "top_ctrl;UserID=0XFFFFFFFF;Version=2016.4" part number = "7z010clg400" date = "2017/05/29" time = "11:17:01" bytes in bitstream = 2083740 zynq_align_dma_buffer: Align buffer at 100068 to 100000(swap 1)

NAND read: device 0 offset 0x300000, size 0x500000 5242880 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x20000 NAND read from offset 800000 failed -74 0 bytes read: ERROR zynq-uboot> ls mmc 0 system volume information/ 16777216 mtd4ro.bin 8388608 mtd5ro.bin 67108864 mtd6ro.bin 20840448 mtd7ro.bin 2097152 mtd8ro.bin 3145728 mtd0ro.bin 5242880 mtd1ro.bin 131072 mtd2ro.bin 10485760 mtd3ro.bin

9 file(s), 1 dir(s)

zynq-uboot> nand erase.chip

NAND erase.chip: device 0 whole chip Skipping bad block at 0x07f80000 Skipping bad block at 0x07fa0000 Skipping bad block at 0x07fc0000 Skipping bad block at 0x07fe0000

OK zynq-uboot> nand scrub -y 0x0 0x8000000

NAND scrub: device 0 whole chip Erasing at 0x7fe0000 -- 100% complete. OK zynq-uboot> nand bad

Device 0 bad blocks: 07f80000 07fa0000 07fc0000 07fe0000 zynq-uboot> nand info

Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b subpagesize 512 b options 0x40000000 bbt options 0x 20000 zynq-uboot> fatload mmc 0 0x100000 mtd0ro.bin reading mtd0ro.bin 3145728 bytes read in 273 ms (11 MiB/s) zynq-uboot> nand write 0x100000 0x0 0x300000

NAND write: device 0 offset 0x0, size 0x300000 3145728 bytes written: OK zynq-uboot> fatload mmc 0 0x100000 mtd1ro.bin reading mtd1ro.bin 5242880 bytes read in 449 ms (11.1 MiB/s) zynq-uboot> nand write 0x100000 0x300000 0x500000

NAND write: device 0 offset 0x300000, size 0x500000 5242880 bytes written: OK zynq-uboot> fatload mmc 0 0x100000 mtd2ro.bin reading mtd2ro.bin 131072 bytes read in 24 ms (5.2 MiB/s) zynq-uboot> nand write 0x100000 0x800000 0x20000

NAND write: device 0 offset 0x800000, size 0x20000 131072 bytes written: OK zynq-uboot> fatload mmc 0 0x100000 mtd3ro.bin reading mtd3ro.bin 10485760 bytes read in 886 ms (11.3 MiB/s) zynq-uboot> nand write 0x100000 0x820000 0xa00000

NAND write: device 0 offset 0x820000, size 0xa00000 10485760 bytes written: OK zynq-uboot> fatload mmc 0 0x100000 mtd4ro.bin reading mtd4ro.bin 16777216 bytes read in 1405 ms (11.4 MiB/s) zynq-uboot> nand write 0x100000 0x1220000 0x1000000

NAND write: device 0 offset 0x1220000, size 0x1000000 16777216 bytes written: OK zynq-uboot> fatload mmc 0 0x100000 mtd5ro.bin reading mtd5ro.bin 8388608 bytes read in 712 ms (11.2 MiB/s) zynq-uboot> nand write 0x100000 0x2220000 0x800000

NAND write: device 0 offset 0x2220000, size 0x800000 8388608 bytes written: OK zynq-uboot> fatload mmc 0 0x100000 mtd6ro.bin reading mtd6ro.bin 67108864 bytes read in 5590 ms (11.4 MiB/s) zynq-uboot> nand write 0x100000 0x2a20000 0x4000000

NAND write: device 0 offset 0x2a20000, size 0x4000000 67108864 bytes written: OK zynq-uboot> fatload mmc 0 0x100000 mtd7ro.bin reading mtd7ro.bin 20840448 bytes read in 1743 ms (11.4 MiB/s) zynq-uboot> nand write 0x100000 0x6a20000 0x13e0000

NAND write: device 0 offset 0x6a20000, size 0x13e0000 20840448 bytes written: OK zynq-uboot> fatload mmc 0 0x100000 mtd8ro.bin reading mtd8ro.bin 2097152 bytes read in 190 ms (10.5 MiB/s) zynq-uboot> nand write 0x100000 0x7e00000 0x200000

NAND write: device 0 offset 0x7e00000, size 0x200000 Attempt to write outside the flash area 0 bytes written: ERROR zynq-uboot> nand write 0x100000 0x7e00000 0x180000

NAND write: device 0 offset 0x7e00000, size 0x180000 1572864 bytes written: OK zynq-uboot>

1.0.0.47 (Dec 07 2017 - 00:36:15 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 Copying Linux from NAND flash to RAM...

Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b subpagesize 512 b options 0x 0 bbt options 0x 20000

NAND read: device 0 offset 0x2220000, size 0x300000 3145728 bytes read: OK fpga_loadbitstream: Design name id not recognized in bitstream

NAND read: device 0 offset 0x300000, size 0x500000 5242880 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x20000 131072 bytes read: OK

Booting kernel from Legacy Image at 02080000 ...

Image Name: Linux-4.6.0-xilinx Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3820688 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK

Flattened Device Tree blob at 02000000

Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK Loading Device Tree to 0f2fe000, end 0f303b90 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0 Linux version 4.6.0-xilinx (root@alvin) (gcc version 5.2.0 (GCC) ) #5 SMP PREEMPT Mon May 8 14:36:49 CST 2017 CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine model: xlnx,zynq-7000 cma: Reserved 16 MiB at 0x0e000000 Memory policy: Data cache writealloc percpu: Embedded 12 pages/cpu @cfdce000 s19776 r8192 d21184 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2 noinitrd rw rootwait PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 234624K/262144K available (5286K kernel code, 231K rwdata, 1848K rodata, 1024K init, 226K bss, 11136K reserved, 16384K cma-reserved, 0K highmem) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc07f7850 (8127 kB) .init : 0xc0800000 - 0xc0900000 (1024 kB) .data : 0xc0900000 - 0xc0939e60 ( 232 kB) .bss : 0xc0939e60 - 0xc0972764 ( 227 kB) Preemptible hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 NR_IRQS:16 nr_irqs:16 16 efuse mapped to d0800000 slcr mapped to d0802000 L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 L2C-310 erratum 769419 enabled L2C-310 enabling early BRESP for Cortex-A9 L2C-310 full line of zeros enabled for Cortex-A9 L2C-310 ID prefetch enabled, offset 1 lines L2C-310 dynamic clock gating enabled, standby mode enabled L2C-310 cache controller enabled, 8 ways, 512 kB L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 zynq_clock_init: clkc starts at d0802100 Zynq clock init sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce076117e, max_idle_ns: 440795215954 ns Switching to timer-based delay loop, resolution 3ns clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns timer #0 at d080a000, irq=17 Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333330) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0x100000 - 0x100058 CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 Brought up 2 CPUs SMP: Total of 2 processors activated (1333.33 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations cpuidle: using governor menu hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. hw-breakpoint: maximum watchpoint size is 4 bytes. zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xd0880000 zynq-pinctrl 700.pinctrl: zynq pinctrl initialized vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb media: Linux media interface: v0.10 Linux video capture interface: v2.00 pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it PTP clock support registered EDAC MC: Ver: 3.0.0 Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource arm_global_timer NET: Registered protocol family 2 TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 2048 (order: 2, 16384 bytes) TCP: Hash tables configured (established 2048 bind 2048) UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available futex hash table entries: 512 (order: 3, 32768 bytes) workingset: timestamp_bits=28 max_order=16 bucket_order=0 jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 42c00000.serial: ttyUL2 at MMIO 0x42c00000 (irq = 166, base_baud = 0) is a uartlite e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 144, base_baud = 3124996) is a xuartps e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 145, base_baud = 3124996) is a xuartps console [ttyPS0] enabled xdevcfg f8007000.devcfg: ioremap 0xf8007000 to d0872000 [drm] Initialized drm 1.1.0 20060810 brd: module loaded loop: module loaded CAN device driver interface gpiod_set_value: invalid GPIO libphy: MACB_mii_bus: probed macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 148 (00:0a:35:00:01:22) ICPlus IP101A/G e000b000.etherne:00: attached PHY driver [ICPlus IP101A/G] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1) e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Copyright(c) 1999 - 2015 Intel Corporation. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice i2c /dev entries driver rtc-pcf8563 0-0051: chip found, driver version 0.4.4 rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-11 addr=0e, data=03 rtc-pcf8563 0-0051: pcf8563_probe: write error rtc-pcf8563: probe of 0-0051 failed with error -5 cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 141 EDAC MC: ECC not enabled Xilinx Zynq CpuIdle Driver started sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA ledtrig-cpu: registered to indicate activity on CPUs usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1 nand: Unknown W29N01HV nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 9 ofpart partitions found on MTD device pl35x-nand Creating 9 MTD partitions on "pl35x-nand": 0x000000000000-0x000000300000 : "nand-fsbl-uboot" 0x000000300000-0x000000800000 : "nand-linux" 0x000000800000-0x000000820000 : "nand-device-tree" 0x000000820000-0x000001220000 : "nand-rootfs" 0x000001220000-0x000002220000 : "nand-jffs2" 0x000002220000-0x000002a20000 : "nand-bitstream" 0x000002a20000-0x000006a20000 : "nand-allrootfs" 0x000006a20000-0x000007e00000 : "nand-release" 0x000007e00000-0x000008000000 : "nand-reserve" NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 can: controller area network core (rev 20120528 abi 9) NET: Registered protocol family 29 can: raw protocol (rev 20120528) can: broadcast manager protocol (rev 20120528 t) can: netlink gateway (rev 20130117) max_hops=1 Registering SWP/SWPB emulation handler hctosys: unable to open rtc device (rtc0) ALSA device list: No soundcards found. mmc0: new high speed SDHC card at address e624 mmcblk0: mmc0:e624 SS16G 14.8 GiB mmcblk0: p1 VFS: Mounted root (jffs2 filesystem) on device 31:6. devtmpfs: mounted Freeing unused kernel memory: 1024K (c0800000 - c0900000) INIT: version 2.88 booting jffs2: notice: (699) check_node_data: wrong data CRC in data node at 0x019cf13c: read 0x69f267f4, calculated 0x223a0f1d. random: dd urandom read with 2 bits of entropy available Sat Jan 19 21:08:14 UTC 2019 Starting internet superserver: inetd. INIT: Entering runlevel: 5 Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready udhcpc (v1.24.1) started Sending discover... Sending discover... Sending discover...

**** I powered off board even though boot hadn't errored ('cause I am impatient and I wanted to test password reset)

1.0.0.47 (Dec 07 2017 - 00:36:15 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 zynq-uboot> setenv nandboot "echo Copying Linux from NAND flash to RAM... && nand info && run nandroot;nand read 0x100000 0x2220000 0x300000 && fpga loadb 0 0x100000 0x300000 && nand read ${kernel_load_address} 0x300000 ${kernel_size} && nand read ${devicetree_load_address} 0x800000 ${devicetree_size}" zynq-uboot> run nandboot Copying Linux from NAND flash to RAM...

Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b subpagesize 512 b options 0x 0 bbt options 0x 20000

NAND read: device 0 offset 0x2220000, size 0x300000 3145728 bytes read: OK fpga_loadbitstream: Design name id not recognized in bitstream

NAND read: device 0 offset 0x300000, size 0x500000 5242880 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x20000 131072 bytes read: OK zynq-uboot> setenv bootargs 'console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh' zynq-uboot> bootm ${kernel_load_address} - ${devicetree_load_address} init=/bin/sh

Booting kernel from Legacy Image at 02080000 ...

Image Name: Linux-4.6.0-xilinx Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3820688 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK

Flattened Device Tree blob at 02000000

Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK Loading Device Tree to 0f2fe000, end 0f303b90 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0 Linux version 4.6.0-xilinx (root@alvin) (gcc version 5.2.0 (GCC) ) #5 SMP PREEMPT Mon May 8 14:36:49 CST 2017 CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine model: xlnx,zynq-7000 cma: Reserved 16 MiB at 0x0e000000 Memory policy: Data cache writealloc percpu: Embedded 12 pages/cpu @cfdce000 s19776 r8192 d21184 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2 noinitrd rw rootwait reboot=cold,hard emergency init=/bin/sh PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 234624K/262144K available (5286K kernel code, 231K rwdata, 1848K rodata, 1024K init, 226K bss, 11136K reserved, 16384K cma-reserved, 0K highmem) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc07f7850 (8127 kB) .init : 0xc0800000 - 0xc0900000 (1024 kB) .data : 0xc0900000 - 0xc0939e60 ( 232 kB) .bss : 0xc0939e60 - 0xc0972764 ( 227 kB) Preemptible hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 NR_IRQS:16 nr_irqs:16 16 efuse mapped to d0800000 slcr mapped to d0802000 L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 L2C-310 erratum 769419 enabled L2C-310 enabling early BRESP for Cortex-A9 L2C-310 full line of zeros enabled for Cortex-A9 L2C-310 ID prefetch enabled, offset 1 lines L2C-310 dynamic clock gating enabled, standby mode enabled L2C-310 cache controller enabled, 8 ways, 512 kB L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 zynq_clock_init: clkc starts at d0802100 Zynq clock init sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce076117e, max_idle_ns: 440795215954 ns Switching to timer-based delay loop, resolution 3ns clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns timer #0 at d080a000, irq=17 Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333330) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0x100000 - 0x100058 CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 Brought up 2 CPUs SMP: Total of 2 processors activated (1333.33 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations cpuidle: using governor menu hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. hw-breakpoint: maximum watchpoint size is 4 bytes. zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xd0880000 zynq-pinctrl 700.pinctrl: zynq pinctrl initialized vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb media: Linux media interface: v0.10 Linux video capture interface: v2.00 pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it PTP clock support registered EDAC MC: Ver: 3.0.0 Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource arm_global_timer NET: Registered protocol family 2 TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 2048 (order: 2, 16384 bytes) TCP: Hash tables configured (established 2048 bind 2048) UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available futex hash table entries: 512 (order: 3, 32768 bytes) workingset: timestamp_bits=28 max_order=16 bucket_order=0 jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 42c00000.serial: ttyUL2 at MMIO 0x42c00000 (irq = 166, base_baud = 0) is a uartlite e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 144, base_baud = 3124996) is a xuartps e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 145, base_baud = 3124996) is a xuartps console [ttyPS0] enabled xdevcfg f8007000.devcfg: ioremap 0xf8007000 to d0872000 [drm] Initialized drm 1.1.0 20060810 brd: module loaded loop: module loaded CAN device driver interface gpiod_set_value: invalid GPIO libphy: MACB_mii_bus: probed macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 148 (00:0a:35:00:01:22) ICPlus IP101A/G e000b000.etherne:00: attached PHY driver [ICPlus IP101A/G] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1) e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Copyright(c) 1999 - 2015 Intel Corporation. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice i2c /dev entries driver rtc-pcf8563 0-0051: chip found, driver version 0.4.4 rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-11 addr=0e, data=03 rtc-pcf8563 0-0051: pcf8563_probe: write error rtc-pcf8563: probe of 0-0051 failed with error -5 cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 141 EDAC MC: ECC not enabled Xilinx Zynq CpuIdle Driver started sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA ledtrig-cpu: registered to indicate activity on CPUs usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1 nand: Unknown W29N01HV nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 9 ofpart partitions found on MTD device pl35x-nand Creating 9 MTD partitions on "pl35x-nand": 0x000000000000-0x000000300000 : "nand-fsbl-uboot" 0x000000300000-0x000000800000 : "nand-linux" 0x000000800000-0x000000820000 : "nand-device-tree" 0x000000820000-0x000001220000 : "nand-rootfs" 0x000001220000-0x000002220000 : "nand-jffs2" 0x000002220000-0x000002a20000 : "nand-bitstream" 0x000002a20000-0x000006a20000 : "nand-allrootfs" 0x000006a20000-0x000007e00000 : "nand-release" 0x000007e00000-0x000008000000 : "nand-reserve" NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 can: controller area network core (rev 20120528 abi 9) NET: Registered protocol family 29 can: raw protocol (rev 20120528) can: broadcast manager protocol (rev 20120528 t) can: netlink gateway (rev 20130117) max_hops=1 Registering SWP/SWPB emulation handler hctosys: unable to open rtc device (rtc0) ALSA device list: No soundcards found. mmc0: new high speed SDHC card at address e624 mmcblk0: mmc0:e624 SS16G 14.8 GiB mmcblk0: p1 VFS: Mounted root (jffs2 filesystem) on device 31:6. devtmpfs: mounted Freeing unused kernel memory: 1024K (c0800000 - c0900000) sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell sh-4.3# jffs2: notice: (699) check_node_data: wrong data CRC in data node at 0x019cf13c: read 0x69f267f4, calculated 0x223a0f1d. jffs2: notice: (699) check_node_data: wrong data CRC in data node at 0x02539bb8: read 0xc87e348e, calculated 0x67f3ed0a. jffs2: notice: (699) check_node_data: wrong data CRC in data node at 0x019d2c54: read 0x59459af6, calculated 0xb967dedf.

sh-4.3# sh-4.3# sh-4.3# sh-4.3# ls bin dev home lib mnt proc sbin tmp var boot etc init media opt run sys usr sh-4.3# passwd Changing password for root New password: Retype password: Password for root changed by root sh-4.3# mv /etc/rcS.d/S95cgminer.sh /etc/rcS.d/K95cgminer.sh mv: can't rename '/etc/rcS.d/S95cgminer.sh': No such file or directory sh-4.3# reboot WARNING: could not determine runlevel - doing soft reboot (it's better to use shutdown instead of reboot from the command line) shutdown: /dev/initctl: No such file or directory init: /dev/initctl: No such file or directory sh-4.3# shutdown Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. the "time" argument is mandatory! (try "now") sh-4.3# shutdown now shutdown: /dev/initctl: No such file or directory init: /dev/initctl: No such file or directory sh-4.3# shutdown -r now shutdown: /dev/initctl: No such file or directory init: /dev/initctl: No such file or directory 1.0.0.47 (Dec 07 2017 - 00:36:15 +0800)

Model: Zynq Zed Development Board DRAM: ECC disabled 256 MiB NAND: 128 MiB MMC: zynq_sdhci: 0 Invalid bus 0 (err=-1) *** Warning - spi_flash_probe() failed, using default environment

In: serial Out: serial Err: serial Model: Zynq Zed Development Board Net: Gem.e000b000 Hit 'd' to stop autoboot(eric): 0 Copying Linux from NAND flash to RAM...

Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b subpagesize 512 b options 0x 0 bbt options 0x 20000

NAND read: device 0 offset 0x2220000, size 0x300000 3145728 bytes read: OK fpga_loadbitstream: Design name id not recognized in bitstream

NAND read: device 0 offset 0x300000, size 0x500000 5242880 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x20000 131072 bytes read: OK

Booting kernel from Legacy Image at 02080000 ...

Image Name: Linux-4.6.0-xilinx Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3820688 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK

Flattened Device Tree blob at 02000000

Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK Loading Device Tree to 0f2fe000, end 0f303b90 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0 Linux version 4.6.0-xilinx (root@alvin) (gcc version 5.2.0 (GCC) ) #5 SMP PREEMPT Mon May 8 14:36:49 CST 2017 CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine model: xlnx,zynq-7000 cma: Reserved 16 MiB at 0x0e000000 Memory policy: Data cache writealloc percpu: Embedded 12 pages/cpu @cfdce000 s19776 r8192 d21184 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2 noinitrd rw rootwait PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 234624K/262144K available (5286K kernel code, 231K rwdata, 1848K rodata, 1024K init, 226K bss, 11136K reserved, 16384K cma-reserved, 0K highmem) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc07f7850 (8127 kB) .init : 0xc0800000 - 0xc0900000 (1024 kB) .data : 0xc0900000 - 0xc0939e60 ( 232 kB) .bss : 0xc0939e60 - 0xc0972764 ( 227 kB) Preemptible hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 NR_IRQS:16 nr_irqs:16 16 efuse mapped to d0800000 slcr mapped to d0802000 L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 L2C-310 erratum 769419 enabled L2C-310 enabling early BRESP for Cortex-A9 L2C-310 full line of zeros enabled for Cortex-A9 L2C-310 ID prefetch enabled, offset 1 lines L2C-310 dynamic clock gating enabled, standby mode enabled L2C-310 cache controller enabled, 8 ways, 512 kB L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 zynq_clock_init: clkc starts at d0802100 Zynq clock init sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce076117e, max_idle_ns: 440795215954 ns Switching to timer-based delay loop, resolution 3ns clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns timer #0 at d080a000, irq=17 Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333330) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0x100000 - 0x100058 CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 Brought up 2 CPUs SMP: Total of 2 processors activated (1333.33 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations cpuidle: using governor menu hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. hw-breakpoint: maximum watchpoint size is 4 bytes. zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xd0880000 zynq-pinctrl 700.pinctrl: zynq pinctrl initialized vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb media: Linux media interface: v0.10 Linux video capture interface: v2.00 pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it PTP clock support registered EDAC MC: Ver: 3.0.0 Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource arm_global_timer NET: Registered protocol family 2 TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 2048 (order: 2, 16384 bytes) TCP: Hash tables configured (established 2048 bind 2048) UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available futex hash table entries: 512 (order: 3, 32768 bytes) workingset: timestamp_bits=28 max_order=16 bucket_order=0 jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 42c00000.serial: ttyUL2 at MMIO 0x42c00000 (irq = 166, base_baud = 0) is a uartlite e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 144, base_baud = 3124996) is a xuartps e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 145, base_baud = 3124996) is a xuartps console [ttyPS0] enabled xdevcfg f8007000.devcfg: ioremap 0xf8007000 to d0872000 [drm] Initialized drm 1.1.0 20060810 brd: module loaded loop: module loaded CAN device driver interface gpiod_set_value: invalid GPIO libphy: MACB_mii_bus: probed macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 148 (00:0a:35:00:01:22) ICPlus IP101A/G e000b000.etherne:00: attached PHY driver [ICPlus IP101A/G] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1) e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Copyright(c) 1999 - 2015 Intel Corporation. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice i2c /dev entries driver rtc-pcf8563 0-0051: chip found, driver version 0.4.4 rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-11 addr=0e, data=03 rtc-pcf8563 0-0051: pcf8563_probe: write error rtc-pcf8563: probe of 0-0051 failed with error -5 cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 141 EDAC MC: ECC not enabled Xilinx Zynq CpuIdle Driver started sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA ledtrig-cpu: registered to indicate activity on CPUs usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1 nand: Unknown W29N01HV nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 9 ofpart partitions found on MTD device pl35x-nand Creating 9 MTD partitions on "pl35x-nand": 0x000000000000-0x000000300000 : "nand-fsbl-uboot" 0x000000300000-0x000000800000 : "nand-linux" 0x000000800000-0x000000820000 : "nand-device-tree" 0x000000820000-0x000001220000 : "nand-rootfs" 0x000001220000-0x000002220000 : "nand-jffs2" 0x000002220000-0x000002a20000 : "nand-bitstream" 0x000002a20000-0x000006a20000 : "nand-allrootfs" 0x000006a20000-0x000007e00000 : "nand-release" 0x000007e00000-0x000008000000 : "nand-reserve" NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 can: controller area network core (rev 20120528 abi 9) NET: Registered protocol family 29 can: raw protocol (rev 20120528) can: broadcast manager protocol (rev 20120528 t) can: netlink gateway (rev 20130117) max_hops=1 Registering SWP/SWPB emulation handler hctosys: unable to open rtc device (rtc0) ALSA device list: No soundcards found. mmc0: new high speed SDHC card at address e624 mmcblk0: mmc0:e624 SS16G 14.8 GiB mmcblk0: p1 VFS: Mounted root (jffs2 filesystem) on device 31:6. devtmpfs: mounted Freeing unused kernel memory: 1024K (c0800000 - c0900000) INIT: version 2.88 booting jffs2: notice: (699) check_node_data: wrong data CRC in data node at 0x019cf13c: read 0x69f267f4, calculated 0x223a0f1d. FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. random: dd urandom read with 2 bits of entropy available Sat Jan 19 21:08:14 UTC 2019 Starting internet superserver: inetd. INIT: Entering runlevel: 5 Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready udhcpc (v1.24.1) started Sending discover... Sending discover... Sending discover... No lease, forking to background done. Starting Dropbear SSH server: dropbear. Starting syslogd/klogd: done

PetaLinux 2016.4 zedboard-zynq7 /dev/ttyPS0

zedboard-zynq7 login: jffs2: notice: (742) check_node_data: wrong data CRC in data node at 0x02539bb8: read 0xc87e348e, calculated 0x67f3ed0a. root Password: root@zedboard-zynq7:~# ls dwang_btc_miner root@zedboard-zynq7:~# jffs2: notice: (742) check_node_data: wrong data CRC in data node at 0x019d2c54: read 0x59459af6, calculated 0xb967dedf. ls dwang_btc_miner