chenzhufly 发表于 2019-6-6 21:58

基于Z7010的EBAZ4205矿板改造

<div class='showpostmsg'> 本帖最后由 chenzhufly 于 2019-6-11 00:32 编辑

<p><br />
主要改造了电源,增加了串口,和JTAG,方便调试,至于SD卡,暂时没有打算加上</p>

<p></p>

<p></p>

<p>背面这个二极管的位置需要短接,板子上是没焊接的,默认这个板子应该是从其它板子供电的。</p>

<p>&nbsp;</p>

<p>上电后,通过串口打印</p>

<pre>
<code>U-Boot 2015.07 (Jun 28 2017 - 21:05:18 +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 &#39;d&#39; to stop autoboot(eric):3  2  1  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
design filename = &quot;top_ctrl;UserID=0XFFFFFFFF;Version=2016.4&quot;
part number = &quot;7z010clg400&quot;
date = &quot;2017/10/17&quot;
time = &quot;09:59:49&quot;
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
## 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 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 -&gt; 0x72760000
L2C: DT/platform modifies aux control register: 0x72360000 -&gt; 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 <a href="home.php?mod=space&amp;uid=775551" target="_blank">@</a> 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 &lt;giometti@linux.it&gt;
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 enabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to d0872000
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 (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 &#39;Enhanced&#39; 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 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
9 ofpart partitions found on MTD device pl35x-nand
Creating 9 MTD partitions on &quot;pl35x-nand&quot;:
0x000000000000-0x000000300000 : &quot;nand-fsbl-uboot&quot;
0x000000300000-0x000000800000 : &quot;nand-linux&quot;
0x000000800000-0x000000820000 : &quot;nand-device-tree&quot;
0x000000820000-0x000001220000 : &quot;nand-rootfs&quot;
0x000001220000-0x000002220000 : &quot;nand-jffs2&quot;
0x000002220000-0x000002a20000 : &quot;nand-bitstream&quot;
0x000002a20000-0x000006a20000 : &quot;nand-allrootfs&quot;
0x000006a20000-0x000007e00000 : &quot;nand-release&quot;
0x000007e00000-0x000008000000 : &quot;nand-reserve&quot;
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.
VFS: Mounted root (jffs2 filesystem) on device 31:6.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)
INIT: version 2.88 booting
random: dd urandom read with 1 bits of entropy available
Fri Jul 23 14:50:17 UTC 2010
Starting internet superserver: inetd.
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
appstartup .....
rm: can&#39;t remove &#39;/tmp/*&#39;: No such file or directory
1
BANK1
appstartup ..... end
INIT: Entering runlevel: 5
Configuring network interfaces... done.
Starting Dropbear SSH server: dropbear.
Starting syslogd/klogd: done

PetaLinux 2016.4 zedboard-zynq7 /dev/ttyPS0

zedboard-zynq7 login: ./dwang_btc_miner
./ethtool
./HKDW.tar.gz
./libnetsnmpagent.so.30
./libnetsnmpmibs.so.30
./libnetsnmp.so.30
./proc_monitor
./snmpd
./snmpd.conf
./sys_pll_thrs.conf
./upgrade_ver_6.2.20.48
./zebra
jffs2: notice: (721) check_node_data: wrong data CRC in data node at 0x00ccc428: read 0xdad4a181, calculated 0x9153fcaa.
jffs2: notice: (721) check_node_data: wrong data CRC in data node at 0x01801490: read 0x682f3141, calculated 0x808ebe2e.
./zyp/
./zyp/controllers/
./zyp/auth.conf
./zyp/cache/
./zyp/cache/view_a7831b06fabea092a36b5a9cbe1005f3.so
./zyp/cache/view_3c0e2047e5221fb419a7ec0af4b7854c.so
./zyp/cache/view_53ea0d6735e4fb0329c094a648870277.so
./zyp/cache/view_04f9c7da622b21b96049f15706d92938.so
./zyp/cache/view_f7022020d354ba278dcc7ccab562a0dd.so
./zyp/cache/view_6f60de3de9ffb67d1f2e97f4b428386d.so
./zyp/cache/view_b477df8fa01e40197eb5fa8f48e3907b.so
./zyp/cache/view_035f15cc8bbe24799d3e54770f8d8295.so
./zyp/cache/view_513a569543fc2e0d3838c80e9b2de7d4.so
./zyp/cache/view_fb23b72a36b7b4dbe70628d8cca96ed0.so
./zyp/cache/view_f77f36b0d78321b044f0e296a2c667a2.so
./zyp/cache/controller_b40ca62848e046ce00cc49b1905d4fca.so
./zyp/cache/controller_2cb91d133ac7e670d03160cdd11a46c3.so
./zyp/cache/controller_ec2859b93a67c572652a66dbb4a6fe5b.so
./zyp/cache/view_4bc9f79c654681ca48136ecbdede158a.so
./zyp/cache/controller_770d6494da130a44af4aa8689fab502a.so
./zyp/cache/view_3a2b7a533e83e2d61b2cad29bb4b187e.so
./zyp/cache/view_dcb9a5587c458400c8722a02dc5ac818.so
./zyp/cache/view_3eec443737a3de9610a039406fdd038b.so
./zyp/cache/view_512223a62f67729b723fb61c3f62368a.so
./zyp/cache/view_f6669d1b369196a904ea1967e72739a2.so
./zyp/cache/view_4d4d2036351546190541ac2a32bcc383.so
./zyp/cache/view_8d281e6866d6e1de33be9fcec2966541.so
./zyp/cache/view_eddbf50269317b7877761754e564ee3c.so
./zyp/cache/view_7403f191a0a159c0692904ffa2491391.so
./zyp/cache/view_e4ac6605b16f7008362b59441406db75.so
./zyp/cache/controller_0d206980b11e3c885a9c639e66c6a231.so
./zyp/cache/view_cbb7866fb91eccef78994dc93adea6fb.so
./zyp/cache/controller_be279ec5321ddeabc8b45df9b08e9fe5.so
./zyp/cache/view_51b611867533393b33d56fd5a88977ca.so
./zyp/cache/view_b2068302aa7479365676d89b37de0a1e.so
./zyp/cache/view_c767ad3476fed9929b188b80cfbb45cb.so
./zyp/cache/controller_5278e85e128cf0ef1a4ccb000045c8b6.so
./zyp/cache/view_393c60be603fba53dffb8bf88aa8e06b.so
./zyp/cache/controller_6cc243d48f5b4d8cbc1333bf8b28e517.so
./zyp/cache/controller_54a1923d66aec572ecb5557e0b0fe8ec.so
./zyp/cache/controller_2c81930eb9e673249e91e37173ae1434.so
./zyp/cache/view_b72ff745f4632093aa84e2cde689fba2.so
./zyp/cache/view_61b0e78a6f6e04dc3fe24ce0b7cf8e4f.so
./zyp/cache/view_4c88510bb3ee948cccea77a6b527fb87.so
./zyp/cache/view_afc502e1aa9bcff357e9eb694dabe642.so
./zyp/cache/view_1e6f4c0c0a10cbe7cfc371f4f1d38e6c.so
./zyp/cache/view_e762c5ef4bbb5893f6322f9f942e6074.so
./zyp/cache/view_5ffa9844f03dbee8b84e6b065c47f3ea.so
./zyp/cache/view_6aabc965f39a5511e494ce254a3779b1.so
./zyp/cache/view_03d2ce9bc8e4712cba15729805f23a50.so
./zyp/favicon.ico
./zyp/web/
./zyp/web/index_en.esp
./zyp/web/begin_en.esp
./zyp/web/banner.esp
./zyp/web/Cgminer/
./zyp/web/Cgminer/CgminerStatus.esp
./zyp/web/Cgminer/CgminerStatus_en.esp
./zyp/web/Cgminer/CgminerConfig_en.esp
./zyp/web/Cgminer/CgminerConfig.esp
./zyp/web/MenuRpm.esp
./zyp/web/admininfo/
./zyp/web/admininfo/getadmininfo_en.esp
./zyp/web/admininfo/getadmininfo.esp
./zyp/web/favicon.ico
./zyp/web/js/
./zyp/web/js/form.js.bak
./zyp/web/js/modernizr.custom.js
./zyp/web/js/notificationFx.js
./zyp/web/js/jquery.min.js.bak
./zyp/web/js/jquery-1.11.0.min.js
./zyp/web/js/echarts-all.js
./zyp/web/js/jquery1.js
./zyp/web/js/snap.svg-min.js
./zyp/web/js/jquery.min.js
./zyp/web/js/jquery.js
./zyp/web/js/dtree.js
./zyp/web/js/script.js
./zyp/web/js/jquery-1.9.1.min.js
./zyp/web/js/nav.js
./zyp/web/js/form.js
./zyp/web/js/classie.js
./zyp/web/js/highcharts.js
./zyp/web/alarm/
./zyp/web/alarm/alarm.esp
./zyp/web/alarm/AlarmManagement.esp
./zyp/web/alarm/alarm_en.esp
./zyp/web/alarm/AlarmStatus.esp
./zyp/web/ebang/
./zyp/web/ebang/eblist.esp
./zyp/web/ebang/upload.esp
./zyp/web/ebang/upload-esp.html
./zyp/web/logo/
./zyp/web/logo/logo_ch.png
./zyp/web/logo/logo_en.png
./zyp/web/logo.html
./zyp/web/update/
./zyp/web/update/update.esp
./zyp/web/update/help_en.esp
./zyp/web/update/ping.esp
./zyp/web/update/help.esp
./zyp/web/update/ResetRpm_en.esp
./zyp/web/update/ResetRpm.esp
./zyp/web/update/exit_en.esp
./zyp/web/update/update_en.esp
./zyp/web/update/exit.esp
./zyp/web/Ethernet/
./zyp/web/Ethernet/IPEthernetConfig.esp
./zyp/web/Ethernet/IPEthernetPort.esp
./zyp/web/Ethernet/IPEthernetConfig_en.esp
./zyp/web/Ethernet/IPEthernetPort_en.esp
./zyp/web/user/
./zyp/web/user/login.html
./zyp/web/user/login.html.bak
./zyp/web/user/list.esp
./zyp/web/chipstatus/
./zyp/web/chipstatus/moduleStatus.esp
./zyp/web/chipstatus/chipstatus.esp
./zyp/web/Status/
./zyp/web/Status/SystemStatusRpm_en.esp
./zyp/web/Status/images/
./zyp/web/Status/images/SystemStatusRpm_01.gif
./zyp/web/Status/images/SystemStatusRpm_02.gif
./zyp/web/Status/images/SystemStatusRpm_03.gif
./zyp/web/Status/SystemStatusRpm.esp
./zyp/web/begin.esp
./zyp/web/graph/
./zyp/web/graph/shBrushJScript.min.js
./zyp/web/graph/shThemejqPlot.min.css
./zyp/web/graph/shCore.min.js
./zyp/web/graph/excanvas.js
./zyp/web/graph/jquery.jqplot.min.js
./zyp/web/graph/jquery.jqplot.min.css
./zyp/web/graph/jquery.min.js
./zyp/web/graph/shCoreDefault.min.css
./zyp/web/graph/jqplot.highlighter.min.js
./zyp/web/graph/shBrushXml.min.js
./zyp/web/graph/jqplot.cursor.min.js
./zyp/web/graph/jqplot.dateAxisRenderer.min.js
./zyp/web/public/
./zyp/web/public/login.html
./zyp/web/public/img/
./zyp/web/public/img/arc.gif
./zyp/web/public/img/empty.gif
./zyp/web/public/css/
./zyp/web/public/css/css_main.css
./zyp/web/arc.html
./zyp/web/img/
./zyp/web/img/success.jpg
./zyp/web/img/weibo01.jpg
./zyp/web/img/minus.gif
./zyp/web/img/invalid.png
./zyp/web/img/icon_alert.gif
./zyp/web/img/nolines_plus.gif
./zyp/web/img/folder.gif
./zyp/web/img/pro_left.png
./zyp/web/img/bg.jpg
./zyp/web/img/base.gif
./zyp/web/img/join.gif
./zyp/web/img/red_asterisk.png
./zyp/web/img/line.gif
./zyp/web/img/logo.png
./zyp/web/img/pw.gif
./zyp/web/img/pro_down.png
./zyp/web/img/.DS_Store
./zyp/web/img/bg.gif
./zyp/web/img/plusbottom.gif
./zyp/web/img/weibo.jpg
./zyp/web/img/arc.gif
./zyp/web/img/folderopen.gif
./zyp/web/img/empty.gif
./zyp/web/img/radiobutton.gif
./zyp/web/img/minusbottom.gif
./zyp/web/img/nolines_minus.gif
./zyp/web/img/checkbox.gif
./zyp/web/img/bk.jpg
./zyp/web/img/bgColor.jpg
./zyp/web/img/plus.gif
./zyp/web/img/buticon.gif
./zyp/web/img/page.gif
./zyp/web/img/arc.jpg
./zyp/web/img/joinbottom.gif
./zyp/web/img/province_sprites.png
./zyp/web/index.esp
./zyp/web/css/
./zyp/web/css/css_main.css
./zyp/web/css/ns-style-bar.css
./zyp/web/css/demo.css
./zyp/web/css/ns-style-attached.css
./zyp/web/css/style.css.bak
./zyp/web/css/ns-style-growl.css
./zyp/web/css/dtree.css
./zyp/web/css/style.css
./zyp/web/css/normalize.css
./zyp/web/css/public.css
./zyp/web/css/ns-default.css
./zyp/web/css/ns-style-other.css
./zyp/web/css/css_main.css~
./zyp/setappconf_ip.sh
./zyp/make.sh
./zyp/self.key
./zyp/self.crt
./zyp/appweb.conf
./zyp/README.md
/opt/system/startscrip: line 14: kill: (868) - No such process
/opt/system/startscrip: line 15: kill: (873) - No such process
/opt/system/startscrip: line 16: kill: (878) - No such process
Started HTTP service on 192.168.80.140:80
Started HTTPS service on 192.168.80.140:443
FPGA version 0x43 .
FPGA g_chip_type 0x43 .
Hardware type 0x4205 .
-------- Pin OK    --------
Create /run/dewang_reboot_times.
open serial/dev/ttyUL2 port!
pll thrs 780
tempr thrs 60
tempr thrs 90
tempr work 35
pn **********
ip 192.168.16.180 mask 255.255.255.0 gate 192.168.16.1 dns 114.114.114.114
mac 8C:C7:D0:10:2D:D2
use 1 bank0 soft_v6.2.20.39 bank1 soft_v6.2.20.48
Finishing the Init
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
killall: udhcpc: no process killed
dhcp disable...
Set static ip : 192.168.16.180 255.255.255.0
system command kill -9 `ps aux|grep appweb|awk &#39;{print $1}&#39;|sed -n 1p`ok.
system command appweb --config appweb.conf &amp;ok.
route: SIOCDELRT: No such process
Started HTTP service on 192.168.16.180:80
Started HTTPS service on 192.168.16.180:443
sys fan speed start 0 : 0
killall: zebra: no process killed
killall: proc_monitor: no process killed
killall: proc_monitor: no process killed
886
sys fan speed 5000 control 0 : 0
sys fan speed 0x3200 control 0 : 0
sys fan max speed 4000.
fan1 : fan2 gap 0 : 0
sys fan speed max 9600 min 768
---------------------------
the control board type is EBAZ4205-2G-43
the board 0 type is 0 :Calu Board A v4509
the board 1 type is 0 :Calu Board B v4509
the board 2 type is 0 :Calu Board C v4509
---------------------------
create the managerloop thread
create the timeloop thread
Usage: e.g703.cn hostname

get static vol 167,167,168
Started                     
into snmp init
E_ALARM_BTC100_BOARD_1_VOL need send trap. 0
E_ALARM_BTC100_BOARD_2_VOL need send trap. 0
E_ALARM_BTC100_BOARD_3_VOL need send trap. 0
running
check pool step 3total_devices = 1,new_devices = 0
9637 add_cgpu
check pool step 2check pool check pool step 1Start threads Probing for an alive pool                  
creat test_pool_thread
creat test_pool_thread
detach test_pool_thread
creat test_pool_thread
detach test_pool_thread
detach test_pool_thread
(5s):0.000 (1m):0.000 (5m):0.000 (15m):0.000 (avg):0.000h/s          gethostbyname: Host name lookup failure
their_ipaddr =
Usage: e.g703.cn hostname
(5s):0.000 (1m):0.000 (5m):0.000 (15m):0.000 (avg):0.000h/s          </code></pre>

<p><br />
<strong><span style="color:#5e7384">此内容由EEWORLD论坛网友<span style="font-size:medium">chenzhufly</span>原创,如需转载或用于商业用途需征得作者同意并注明出处</span></strong></p>

<p>&nbsp;</p>
</div><script>                                var loginstr = '<div class="locked">查看精华帖全部内容,请<a href="javascript:;"   style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
                               
                                if(parseInt(discuz_uid)==0){
                                                                                        (function($){
                                                        var postHeight = getTextHeight(400);
                                                        $(".showpostmsg").html($(".showpostmsg").html());
                                                        $(".showpostmsg").after(loginstr);
                                                        $(".showpostmsg").css({height:postHeight,overflow:"hidden"});
                                                })(jQuery);
                                }
</script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script>

strong161 发表于 2019-6-8 14:01

<p>坐等柱哥各种惊喜,然后把板子都拉涨价,我觉得可以便宜收一批备货了,等柱哥玩流了,我再加价出板子赚差价。</p>

chenzhufly 发表于 2019-6-8 16:25

<p><img height="28" src="https://bbs.eeworld.com.cn/static/editor/plugins/hkemoji/sticker/facebook/astonished-face_1f632.png" width="28" />&nbsp;壮哥 就是这么优秀</p>

<p>拉涨价 那不是我的罪过了</p>

chenzhufly 发表于 2019-6-8 18:30

<p>打印了Uboot中的内容,需要深入分析一下,然后就可以自己编译一个内核进一步学习了,<span style="color:#e74c3c"><span style="background-color:#ffffff">uboot 最好不要换了,换也没啥意思。</span></span></p>

<pre>
<code>
U-Boot 2015.07 (Jun 28 2017 - 21:05:18 +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&gt; print
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 &amp;&amp; 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 &amp;&amp; dfu 0 ram 0
dfu_ram_info=set dfu_alt_info ${kernel_image} ram 0x3000000 0x500000\\;${devicet                                                                     ree_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 ${loadbooten                                                                     v_addr} $filesize
initrd_high=0x20000000
ipaddr=192.168.0.115
jtagboot=echo TFTPing Linux to RAM... &amp;&amp; tftpboot ${kernel_load_address} ${kerne                                                                     l_image} &amp;&amp; tftpboot ${devicetree_load_address} ${devicetree_image} &amp;&amp; tftpboot                                                                        ${ramdisk_load_address} ${ramdisk_image} &amp;&amp; bootm ${kernel_load_address} ${ramdi                                                                     sk_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.. &amp;&amp; mmcinfo &amp;&amp; load                                                                        mmc 0 ${loadbit_addr} ${bitstream_image} &amp;&amp; fpga loadb 0 ${loadbit_addr} ${files                                                                     ize}
modeboot=nandboot
nandboot=echo Copying Linux from NAND flash to RAM... &amp;&amp; nand info &amp;&amp; run nandro                                                                     ot;nand read 0x100000 0x2220000 0x300000 &amp;&amp; fpga loadb 0 0x100000 0x300000 &amp;&amp; na                                                                     nd read ${kernel_load_address} 0x300000 ${kernel_size} &amp;&amp; nand read ${devicetree                                                                     _load_address} 0x800000 ${devicetree_size} &amp;&amp; bootm ${kernel_load_address} - ${d                                                                     evicetree_load_address}
nandboot0=echo Copying Linux from NAND flash to RAM... &amp;&amp; nand read ${kernel_loa                                                                     d_address} 0x300000 ${kernel_size} &amp;&amp; nand read ${devicetree_load_address} 0x800                                                                     000 ${devicetree_size} &amp;&amp; echo Copying ramdisk... &amp;&amp; nand read ${ramdisk_load_ad                                                                     dress} 0x820000 ${ramdisk_size} &amp;&amp; bootm ${kernel_load_address} ${ramdisk_load_a                                                                     ddress} ${devicetree_load_address}
nandroot=setenv bootargs 'console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=j                                                                     ffs2 noinitrd rw rootwait'
norboot=echo Copying Linux from NOR flash to RAM... &amp;&amp; cp.b 0xE2100000 ${kernel_                                                                     load_address} ${kernel_size} &amp;&amp; cp.b 0xE2600000 ${devicetree_load_address} ${dev                                                                     icetree_size} &amp;&amp; echo Copying ramdisk... &amp;&amp; cp.b 0xE2620000 ${ramdisk_load_addre                                                                     ss} ${ramdisk_size} &amp;&amp; bootm ${kernel_load_address} ${ramdisk_load_address} ${de                                                                     vicetree_load_address}
preboot=if test $modeboot = sdboot &amp;&amp; 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... &amp;&amp; sf probe 0 0 0 &amp;&amp; sf re                                                                     ad ${kernel_load_address} 0x100000 ${kernel_size} &amp;&amp; sf read ${devicetree_load_a                                                                     ddress} 0x600000 ${devicetree_size} &amp;&amp; echo Copying ramdisk... &amp;&amp; sf read ${ramd                                                                     isk_load_address} 0x620000 ${ramdisk_size} &amp;&amp; bootm ${kernel_load_address} ${ram                                                                     disk_load_address} ${devicetree_load_address}
ramdisk_image=uramdisk.image.gz
ramdisk_load_address=0x4000000
ramdisk_size=0xA00000
rsa_jtagboot=echo TFTPing Image to RAM... &amp;&amp; tftpboot 0x100000 ${boot_image} &amp;&amp;                                                                        zynqrsa 0x100000 &amp;&amp; bootm ${kernel_load_address} ${ramdisk_load_address} ${devic                                                                     etree_load_address}
rsa_nandboot=echo Copying Image from NAND flash to RAM... &amp;&amp; nand read 0x100000                                                                        0x0 ${boot_size} &amp;&amp; zynqrsa 0x100000 &amp;&amp; bootm ${kernel_load_address} ${ramdisk_l                                                                     oad_address} ${devicetree_load_address}
rsa_norboot=echo Copying Image from NOR flash to RAM... &amp;&amp; cp.b 0xE2100000 0x100                                                                     000 ${boot_size} &amp;&amp; zynqrsa 0x100000 &amp;&amp; bootm ${kernel_load_address} ${ramdisk_l                                                                     oad_address} ${devicetree_load_address}
rsa_qspiboot=echo Copying Image from QSPI flash to RAM... &amp;&amp; sf probe 0 0 0 &amp;&amp; s                                                                     f read 0x100000 0x0 ${boot_size} &amp;&amp; zynqrsa 0x100000 &amp;&amp; bootm ${kernel_load_addr                                                                     ess} ${ramdisk_load_address} ${devicetree_load_address}
rsa_sdboot=echo Copying Image from SD to RAM... &amp;&amp; load mmc 0 0x100000 ${boot_im                                                                     age} &amp;&amp; zynqrsa 0x100000 &amp;&amp; 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... &amp;&amp; lo                                                                     ad mmc 0 ${kernel_load_address} ${kernel_image} &amp;&amp; load mmc 0 ${devicetree_load_                                                                     address} ${devicetree_image} &amp;&amp; load mmc 0 ${ramdisk_load_address} ${ramdisk_ima                                                                     ge} &amp;&amp; bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_ad                                                                     dress}; fi
serverip=192.168.0.104
stderr=serial
stdin=serial
stdout=serial
thor_mmc=run dfu_mmc_info &amp;&amp; thordown 0 mmc 0
thor_ram=run dfu_ram_info &amp;&amp; thordown 0 ram 0
uenvboot=if run loadbootenv; then echo Loaded environment from ${bootenv}; run i                                                                     mportbootenv; fi; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcm                                                                     d; fi
usbboot=if usb start; then run uenvboot; echo Copying Linux from USB to RAM... &amp;                                                                     &amp; load usb 0 ${kernel_load_address} ${kernel_image} &amp;&amp; load usb 0 ${devicetree_l                                                                     oad_address} ${devicetree_image} &amp;&amp; load usb 0 ${ramdisk_load_address} ${ramdisk                                                                     _image} &amp;&amp; bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_loa                                                                     d_address}; fi

Environment size: 5314/131068 bytes
</code></pre>

<p>&nbsp;</p>

chenzhufly 发表于 2019-6-8 18:46

<p>结合Linux的log信息,可以得到以下一些信息</p>

<p>1、nand 分了9个区,9个区的定义如下,具体什么功能一目了然。</p>

<pre>
<code>
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"
</code></pre>

<p>2、Uboot启动,从nandflash依次读取相关信息到ram的对应位置</p>

<p>&nbsp; &nbsp; &nbsp;首先读取了bitstream</p>

<pre>
<code>
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/10/17"
time = "09:59:49"
bytes in bitstream = 2083740
zynq_align_dma_buffer: Align buffer at 100068 to 100000(swap 1)
</code></pre>

<p>接着加载linux系统</p>

<pre>
<code>NAND read: device 0 offset 0x300000, size 0x500000
5242880 bytes read: OK
</code></pre>

<p>接着读取device-tree,估计是为了加载ARM的相关功能做准备的</p>

<pre>
<code>NAND read: device 0 offset 0x800000, size 0x20000
131072 bytes read: OK
</code></pre>

<p><span style="color:#e74c3c">我推断Uboot中用的启动命令行是</span></p>

<pre>
<code>nandboot=echo Copying Linux from NAND flash to RAM... &amp;&amp; nand info &amp;&amp; run nandro                                                                     ot;nand read 0x100000 0x2220000 0x300000 &amp;&amp; fpga loadb 0 0x100000 0x300000 &amp;&amp; na                                                                     nd read ${kernel_load_address} 0x300000 ${kernel_size} &amp;&amp; nand read ${devicetree                                                                     _load_address} 0x800000 ${devicetree_size} &amp;&amp; bootm ${kernel_load_address} - ${d                                                                     evicetree_load_address}
</code></pre>

<p>相关的地址信息也可以从Uboot的log中查到,比如:</p>

<pre>
<code>kernel_load_address=0x2080000
kernel_size=0x500000

devicetree_load_address=0x2000000
devicetree_size=0x20000

</code></pre>

<p>3、Linux的启动命令行如下:</p>

<pre>
<code>Kernel command line: console=ttyPS0,115200 root=/dev/mtdblock6 rootfstype=jffs2                                                                        noinitrd rw rootwait
</code></pre>

<p>可以看出来使用的文件系统是jffs2</p>

chenzhufly 发表于 2019-6-8 20:12

<p>刚说不要改造Uboot,准备直接通过TFTP加载个linux就好了,居然发现把TFTP命令删掉了,够狠。</p>

<pre>
<code>zynq-uboot&gt; tftp 0x800000 uImage
Unknown command 'tftp' - try 'help'
</code></pre>

<p>Uboot支持的命令</p>

<pre>
<code>zynq-uboot&gt; help
?       - alias for 'help'
base    - print or set address offset
bdinfo- print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
bootvx- Boot vxWorks from an ELF image
bootz   - boot Linux zImage image from memory
clk   - CLK sub-system
cmp   - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
dcache- enable or disable data cache
dfu   - Device Firmware Upgrade
dhcp    - boot image via network using DHCP/TFTP protocol
dm      - Driver model low level access
echo    - echo args to console
editenv - edit environment variable
env   - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls- list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls- list files in a directory (default /)
ext4size- determine a file's size
ext4write- create a file in the root directory
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fatsize - determine a file's size
fatwrite- write file into a dos filesystem
fdt   - flattened device tree utility commands
fpga    - loadable FPGA image support
fstype- Look up a filesystem type
go      - start application at address 'addr'
gpio    - query and control gpio pins
help    - print command description/usage
icache- enable or disable instruction cache
iminfo- print header information for application image
imxtract- extract a part of a multi-image
itest   - return true/false on integer compare
load    - load binary file from a filesystem
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - list files in a directory (default /)
md      - memory display
mdio    - MDIO utility commands
mii   - MII utility commands
mm      - memory modify (auto-incrementing address)
mmc   - MMC sub system
mmcinfo - display MMC info
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nfs   - boot image via network using NFS protocol
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
reset   - Perform RESET of the CPU
run   - run commands in an environment variable
save    - save file to a filesystem
saveenv - save environment variables to persistent storage
setenv- set environment variables
sf      - SPI flash sub-system
showvar - print local hushshell variables
size    - determine a file's size
sleep   - delay execution for some time
source- run script from memory
spl   - SPL configuration
sspi    - SPI utility command
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
tftpput - TFTP put command, for uploading files to a server
thordown- TIZEN "THOR" downloader
true    - do nothing, successfully
usb   - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
</code></pre>

<p>看来只能使用loadb之类的命令,缺点就是加载的速度太慢</p>

chenzhufly 发表于 2019-6-8 20:15

<p>还有设置参数也不支持,应该是Uboot不知道写nandflash</p>

<pre>
<code>zynq-uboot&gt; saveenv
Saving Environment to SPI Flash...
Invalid bus 0 (err=-1)
*** Warning - spi_flash_probe() failed, using default environment
</code></pre>

<p>有些烦躁,uboot看来也要改</p>

chenzhufly 发表于 2019-6-8 20:21

<p>在使用loadb之前先测试一下,nand相关命令能否正常使用</p>

<pre>
<code>NAND erase: device 0 offset 0x300000, size 0x500000
Erasing at 0x7e0000 -- 100% complete.
OK
</code></pre>

<p>显示是OK的,上电重启,确实没法加载linux,说明命令是有效的</p>

<pre>
<code>
U-Boot 2015.07 (Jun 28 2017 - 21:05:18 +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
design filename = "top_ctrl;UserID=0XFFFFFFFF;Version=2016.4"
part number = "7z010clg400"
date = "2017/10/17"
time = "09:59:49"
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
Wrong Image Format for bootm command
ERROR: can't get kernel image!
zynq-uboot&gt;
</code></pre>

<p>接下来用loadb加载linux进去</p>

chenzhufly 发表于 2019-6-8 21:10

<p>loadb命令确实太慢了,下载个linux 3.8M大小的内核 居然要半个小时,耽误时间!</p>

<p></p>

chenzhufly 发表于 2019-6-8 21:45

<p>经过半个小时的等待,终于换了个linux系统,但是读取nand的时候出错了,哈哈,看来还要重新编译内核。。。</p>

<pre>
<code>
Booting Linux on physical CPU 0x0
Linux version 3.15.0-xilinx (fengyong@fengyong-X550JX) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-50) ) #1 SMP PREEMPT Thu Jul 19 15:38:46 PHT 2018
CPU: ARMv7 Processor revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: xlnx,zynq-7000
cma: CMA: reserved 128 MiB at 07000000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @cfd9f000 s9088 r8192 d15488 u32768
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: 120856K/262144K available (5249K kernel code, 263K rwdata, 1616K rodata, 200K init, 207K bss, 141288K reserved, 0K highmem)
Virtual kernel memory layout:
    vector: 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap: 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    lowmem: 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (14 MB)
      .text : 0xc0008000 - 0xc06bc6f4   (6866 kB)
      .init : 0xc06bd000 - 0xc06ef380   ( 201 kB)
      .data : 0xc06f0000 - 0xc0731ca0   ( 264 kB)
       .bss : 0xc0731cac - 0xc0765c64   ( 208 kB)
Preemptible hierarchical RCU implementation.
      Dump stacks of tasks blocking RCU-preempt GP.
      RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
slcr mapped to d0802000
zynq_clock_init: clkc starts at d0802100
Zynq clock init
sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207951633ns
timer #0 at d0804000, irq=43
Console: colour dummy device 80x30
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
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 0x4f4490 - 0x4f44e8
L310 cache controller enabled
l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72760000, Cache size: 512 kB
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
zynq device is 7z010
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
VCCPINT: 1000 mV
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 &lt;giometti@linux.it&gt;
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
cfg80211: Calling CRDA to update world regulatory domain
Switched to clocksource ttc_clocksource
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)
TCP: reno registered
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)
jffs2: version 2.2. (NAND) (SUMMARY)© 2001-2006 Red Hat, Inc.
msgmni has been set to 492
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-2364208
dma-pl330 f8003000.dmac:      DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
42c00000.serial: ttyUL2 at MMIO 0x42c00000 (irq = 61, base_baud = 0) is a uartlite
e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 59, base_baud = 3124996) is a xuartps
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 3124996) is a xuartps
console enabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to d086c000
Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
CAN device driver interface
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM at 0xe000b000 irq 54 (00:0a:35:00:01:22)
macb e000b000.ethernet eth0: attached PHY driver (mii_bus:phy_addr=e000b000.etherne:00, irq=-1)
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2014 Intel Corporation.
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
usbcore: registered new interface driver rtl8192cu
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver synaptics_usb
ft5x0x_ts_init successful
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 57
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at d0874000 with timeout 10s
cpufreq: __cpufreq_add_dev: CPU0: Running at unlisted freq: 666666 KHz
cpufreq_cpu0: failed to set clock rate: -16
cpufreq: __cpufreq_driver_target: Failed to change cpu frequency: -16
cpufreq: __cpufreq_add_dev: CPU0: Unlisted initial frequency changed to: 666666 KHz
cpufreq_cpu0: failed to set clock rate: -16
cpufreq: __cpufreq_driver_target: Failed to change cpu frequency: -16
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: no vqmmc regulator found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on e0100000.sdhci using ADMA
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: 128MiB, SLC, page size: 2048, OOB size: 64
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
Bad block table not found for chip 0
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
Bad block table not found for chip 0
Scanning device for bad blocks
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
</code></pre>

<p>&nbsp;</p>

chenzhufly 发表于 2019-6-8 22:49

<p>准备现在一份linux代码编译一下,从《Getting started with Xillinux for Zynq-7000》文档中找到一个下载地址</p>

<pre>
<code>$ git clone https://github.com/xillybus/xillinux-kernel.git</code></pre>

<p>文件似乎很大,又是个漫长的等待</p>

chenzhufly 发表于 2019-6-9 11:48

<p>分别从<a href="https://github.com/Xilinx?page=2" target="_blank">https://github.com/Xilinx?page=2</a>&nbsp;和&nbsp;<a href="https://github.com/xillybus/" target="_blank">https://github.com/xillybus/</a>&nbsp;这两个链接下载了linux 和 uboot,尝试这编译一下,错误太多,环境需要ubuntu16.04以上,GCC需要6.0以上,而我现在的环境是ubuntu12.04,不想花时间去重装系统了,果断放弃! 让小朋友去折腾编译环境吧,老夫认怂!</p>

<p>&nbsp;</p>

<p>回归到米尔提供的源码包,还是比较顺利的,编译顺利!</p>

<p>米尔光盘的下载地址:</p>

<p><a href="http://d.myirtech.com/MYD-Y7Z010_07S/MYD-Y7Z010-07S-V1_1-20180803.iso" target="_blank">http://d.myirtech.com/MYD-Y7Z010_07S/MYD-Y7Z010-07S-V1_1-20180803.iso</a></p>

<p></p>

chenzhufly 发表于 2019-6-9 18:10

<p>米尔的linux 3.15版本的nand驱动有些问题,也就是在前面提到的,加载MTD的时候,会报错。</p>

<pre>
<code>nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
nand: Unknown W29N01HV
nand: 128MiB, SLC, page size: 2048, OOB size: 64
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
Bad block table not found for chip 0
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
Bad block table not found for chip 0
Scanning device for bad blocks
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out
pl353_nand_cmd_function timed out</code></pre>

<p>终于通过调整pl353_nand.c的驱动调好,折腾死我了,终于把linux换了!</p>

<pre>
<code>
Booting Linux on physical CPU 0x0
Linux version 3.15.0-xilinx (root@chen) (gcc version 4.6.1 (Sourcery CodeBench L                                                                     ite 2011.09-50) ) #1 SMP PREEMPT Sun Jun 9 17:23:31 CST 2019
CPU: ARMv7 Processor revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: MYIR Zynq Development Board
cma: CMA: reserved 128 MiB at 07000000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @cfda0000 s9088 r8192 d15488 u32768
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: 120860K/262144K available (5249K kernel code, 263K rwdata, 1616K rodata,   </code></pre>

<p><span style="color:#e74c3c"><span style="background-color:#ffffff">但是还是进不去系统,不知道用户名和密码,这个估计是文件系统的问题了,从现在看来,当时应该直接换个文件系统就好了,也不至于需要这么折腾!</span></span></p>

<p>&nbsp;</p>

chenzhufly 发表于 2019-6-9 18:13

<p>也就是重新做个jffs2的文件系统或者yaffs2的文件系统,难度不大啦</p>

chenzhufly 发表于 2019-6-10 11:45

<p>准备还是用现成的文件系统改造一下,然后用用mkfs.jffs2 命令制作jffs2镜像文件。</p>

<p>&nbsp;</p>

<p>查看了一下W29N01HV的nand的page 和 block等信息,应该用下面的命令是可以的(待测试)</p>

<pre>
<code>mkfs.jffs2-s 0x800 -e 0x20000 -p 0x1000000 -drootfs/ -ojffs2.img
</code></pre>

<p>说明:<br />
页大小0x800 &nbsp; 2k<br />
块大小0x20000 &nbsp;128k<br />
jffs2分区总空间0x1000000即16M</p>

<p></p>

<p>为什么要分16M,主要是和前面linux log中的分区信息匹配</p>

<pre>
<code>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"</code></pre>

<p>&nbsp;</p>

zhuyebb 发表于 2019-6-10 13:02

好帖,必须支持一下!

leifengfirst 发表于 2019-6-10 14:32

<p>厉害,顶一下</p>

chenzhufly 发表于 2019-6-10 17:43

<p>准备试试tftpput命令,把nand中的jffs2文件读出来,然后加以修改</p>

<pre>
<code>tftpput - TFTP put command, for uploading files to a server</code></pre>

<p>&nbsp;</p>

chenzhufly 发表于 2019-6-10 21:39

<p>原来tftpboot就是以前tftp的功能,测试如下:</p>

<pre>
<code>
zynq-uboot&gt; tftpboot 0x20000000 uImage
Gem.e000b000:0 is connected to Gem.e000b000.Reconnecting to Gem.e000b000
Gem.e000b000 Waiting for PHY auto negotiation to complete...... done
Gem.e000b000----100----4047----
Using Gem.e000b000 device
TFTP from server 172.16.0.7; our IP address is 172.16.0.67
Filename 'uImage'.
Load address: 0x20000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####
         295.9 KiB/s
done
Bytes transferred = 3889848 (3b5ab8 hex)
</code></pre>

<p>&nbsp;</p>

chenzhufly 发表于 2019-6-10 22:21

<p>刷了个文件系统,终于可以进去了</p>

<pre>
<code>
welcome to myir board
myir login: root
@MYIR ~]#
#
#
</code></pre>

<p>&nbsp;</p>
页: [1] 2
查看完整版本: 基于Z7010的EBAZ4205矿板改造