回答

收藏

米尔MYD-C7Z020开发板试用2 -- 烧写linux系统

其他 其他 3035 人阅读 | 0 人回复 | 2019-11-22

        这节学习下板MYD-C7Z020开发板linux系统的烧写,按照 linux开发手册有关linux系统烧写部分来操作,通过按照手册的步骤来学习系统烧写过程。


   一、材料准备

    需要TF卡和读卡器,我使用的是2G的TF卡。

   
    二、操作过程
   
    2.1、格式化TF卡


     a、使用 HP USB Disk Storage Format Tool v2.0.6 Portable软件来格式化TF卡。
     
HP USB Disk Storage Format Tool v2.0.6 Portable.rar (365.95 KB, 下载次数: 7)

     b、格式化格式选择FAT32
     

     

     c、格式化完成
     



    2.2、复制镜像文件
   
    a、这次使用的是系统自带的镜像文件,将资料光盘镜像文件里面的文件复制到TF卡根目录下。
    板卡芯片型号7Z020,所以选择对应的文件,这个文件下面有三个文件。
   

    b、三个对应的显示设备不一样,我现在没有显示器,就选择第三个文件,选择其他两个也可以,都可以通过串口来操作文件系统。
   

    c、TF卡里的文件
   



    2.3、烧写系统
   
    a、将开发板上的JP2闭合,JP3断开,插入TF卡。
   



    b、连接串口,打开串口调试软件,开发板上电,可以看到从TF卡引导系统
   


  1. U-Boot 2013.10 (May 25 2015 - 15:40:17)

  2. Memory: ECC disabled
  3. DRAM:  1 GiB
  4. myir_board_init
  5. MMC:   zynq_sdhci: 0
  6. SF: Detected W25Q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
  7. *** Warning - bad CRC, using default environment

  8. In:    serial
  9. Out:   serial
  10. Err:   serial
  11. Net:   Gem.e000b000
  12. Hit any key to stop autoboot:  0
  13. Device: zynq_sdhci
  14. Manufacturer ID: 1b
  15. OEM: 534d
  16. Name: 00000
  17. Tran Speed: 50000000
  18. Rd Block Len: 512
  19. SD version 3.0
  20. High Capacity: No
  21. Capacity: 1.8 GiB
  22. Bus Width: 4-bit
  23. reading uEnv.txt
  24. 415 bytes read in 8 ms (49.8 KiB/s)
  25. Loaded environment from uEnv.txt
  26. Importing environment from SD ...
  27. Running uenvcmd ...
  28. Loading bitstream from SD/MMC/eMMC to RAM..
  29. Device: zynq_sdhci
  30. Manufacturer ID: 1b
  31. OEM: 534d
  32. Name: 00000
  33. Tran Speed: 50000000
  34. Rd Block Len: 512
  35. SD version 3.0
  36. High Capacity: No
  37. Capacity: 1.8 GiB
  38. Bus Width: 4-bit
  39. reading 7z020.bit
  40. 4045676 bytes read in 220 ms (17.5 MiB/s)
  41.   design filename = "design_1_wrapper;UserID=0XFFFFFFFF;Version=2014.4"
  42.   part number = "7z020clg400"
  43.   date = "2014/10/01"
  44.   time = "18:38:15"
  45.   bytes in bitstream = 4045564
  46. zynq_load: Align buffer at 100070 to 100000(swap 1)
  47. Copying Linux from SD to RAM...
  48. reading uImage
  49. 3532040 bytes read in 193 ms (17.5 MiB/s)
  50. reading devicetree.dtb
  51. 10529 bytes read in 15 ms (684.6 KiB/s)
  52. reading uramdisk.image.gz
  53. 5968720 bytes read in 318 ms (17.9 MiB/s)
  54. ## Booting kernel from Legacy Image at 02080000 ...
  55.    Image Name:   Linux-3.15.0-xilinx
  56.    Image Type:   ARM Linux Kernel Image (uncompressed)
  57.    Data Size:    3531976 Bytes = 3.4 MiB
  58.    Load Address: 00008000
  59.    Entry Point:  00008000
  60.    Verifying Checksum ... OK
  61. ## Loading init Ramdisk from Legacy Image at 04000000 ...
  62.    Image Name:   Ramdisk
  63.    Image Type:   ARM Linux RAMDisk Image (gzip compressed)
  64.    Data Size:    5968656 Bytes = 5.7 MiB
  65.    Load Address: 00000000
  66.    Entry Point:  00000000
  67.    Verifying Checksum ... OK
  68. ## Flattened Device Tree blob at 02000000
  69.    Booting using the fdt blob at 0x2000000
  70.    Loading Kernel Image ... OK
  71.    Loading Ramdisk to 1fa4e000, end 1ffff310 ... OK
  72.    Loading Device Tree to 1fa48000, end 1fa4d920 ... OK

  73. Starting kernel ...

  74. Booting Linux on physical CPU 0x0
  75. Linux version 3.15.0-xilinx (fengyong@fengyong-X550JX) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-50) ) #1 SMP PREEMPT Wed Aug 22 11:06:09 PHT 2018
  76. CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
  77. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  78. Machine model: MYIR MYD-XC7Z0X0 Development Board
  79. cma: CMA: reserved 128 MiB at 27800000
  80. Memory policy: Data cache writealloc
  81. PERCPU: Embedded 8 pages/cpu @e701d000 s9088 r8192 d15488 u32768
  82. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 244240
  83. Kernel command line: console=ttyPS0,115200 root=/dev/ram rw earlyprintk
  84. PID hash table entries: 4096 (order: 2, 16384 bytes)
  85. Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
  86. Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
  87. Memory: 830388K/983040K available (4723K kernel code, 239K rwdata, 1476K rodata, 196K init, 205K bss, 152652K reserved, 204800K highmem)
  88. Virtual kernel memory layout:
  89.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  90.     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
  91.     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
  92.     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
  93.     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
  94.     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
  95.       .text : 0xc0008000 - 0xc0615e1c   (6200 kB)
  96.       .init : 0xc0616000 - 0xc0647380   ( 197 kB)
  97.       .data : 0xc0648000 - 0xc0683d60   ( 240 kB)
  98.        .bss : 0xc0683d6c - 0xc06b74f0   ( 206 kB)
  99. Preemptible hierarchical RCU implementation.
  100.         Dump stacks of tasks blocking RCU-preempt GP.
  101.         RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
  102. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
  103. NR_IRQS:16 nr_irqs:16 16
  104. slcr mapped to f0002000
  105. zynq_clock_init: clkc starts at f0002100
  106. Zynq clock init
  107. sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207951633ns
  108. timer #0 at f0004000, irq=43
  109. Console: colour dummy device 80x30
  110. Calibrating delay loop... 1325.46 BogoMIPS (lpj=6627328)
  111. pid_max: default: 32768 minimum: 301
  112. Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
  113. Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
  114. CPU: Testing write buffer coherency: ok
  115. CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  116. Setting up static identity map for 0x4750a8 - 0x475100
  117. L310 cache controller enabled
  118. l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72760000, Cache size: 512 kB
  119. CPU1: Booted secondary processor
  120. CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
  121. Brought up 2 CPUs
  122. SMP: Total of 2 processors activated.
  123. CPU: All CPU(s) started in SVC mode.
  124. devtmpfs: initialized
  125. VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
  126. regulator-dummy: no parameters
  127. NET: Registered protocol family 16
  128. DMA: preallocated 256 KiB pool for atomic coherent allocations
  129. cpuidle: using governor ladder
  130. cpuidle: using governor menu
  131. zynq device is 7z020
  132. hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
  133. hw-breakpoint: maximum watchpoint size is 4 bytes.
  134. zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0080000
  135. VCCPINT: 1000 mV
  136. vgaarb: loaded
  137. SCSI subsystem initialized
  138. usbcore: registered new interface driver usbfs
  139. usbcore: registered new interface driver hub
  140. usbcore: registered new device driver usb
  141. media: Linux media interface: v0.10
  142. Linux video capture interface: v2.00
  143. pps_core: LinuxPPS API ver. 1 registered
  144. pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  145. PTP clock support registered
  146. EDAC MC: Ver: 3.0.0
  147. Advanced Linux Sound Architecture Driver Initialized.
  148. Switched to clocksource ttc_clocksource
  149. NET: Registered protocol family 2
  150. TCP established hash table entries: 8192 (order: 3, 32768 bytes)
  151. TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
  152. TCP: Hash tables configured (established 8192 bind 8192)
  153. TCP: reno registered
  154. UDP hash table entries: 512 (order: 2, 16384 bytes)
  155. UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
  156. NET: Registered protocol family 1
  157. RPC: Registered named UNIX socket transport module.
  158. RPC: Registered udp transport module.
  159. RPC: Registered tcp transport module.
  160. RPC: Registered tcp NFSv4.1 backchannel transport module.
  161. Trying to unpack rootfs image as initramfs...
  162. rootfs image is not initramfs (no cpio magic); looks like an initrd
  163. Freeing initrd memory: 5828K (dfa4e000 - dffff000)
  164. hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
  165. futex hash table entries: 512 (order: 3, 32768 bytes)
  166. bounce pool size: 64 pages
  167. jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
  168. msgmni has been set to 1489
  169. io scheduler noop registered
  170. io scheduler deadline registered
  171. io scheduler cfq registered (default)
  172. dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-2364208
  173. dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
  174. e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 59, base_baud = 6249999) is a xuartps
  175. e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 6249999) is a xuartps
  176. console [ttyPS0] enabled
  177. xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f006a000
  178. [drm] Initialized drm 1.1.0 20060810
  179. brd: module loaded
  180. loop: module loaded
  181. m25p80 spi0.0: found w25q256, expected s25fl256s1
  182. m25p80 spi0.0: w25q256 (32768 Kbytes)
  183. 7 ofpart partitions found on MTD device spi0.0
  184. Creating 7 MTD partitions on "spi0.0":
  185. 0x000000000000-0x000000100000 : "qspi-boot"
  186. 0x000000100000-0x000000120000 : "qspi-ubootenv"
  187. 0x000000120000-0x000000720000 : "qspi-bitstream"
  188. 0x000000720000-0x000000d20000 : "qspi-kernel"
  189. 0x000000d20000-0x000000d40000 : "qspi-devicetree"
  190. 0x000000d40000-0x000001940000 : "qspi-rootfs"
  191. 0x000001940000-0x000002000000 : "data"
  192. CAN device driver interface
  193. libphy: MACB_mii_bus: probed
  194. macb e000b000.ethernet eth0: Cadence GEM at 0xe000b000 irq 54 (00:0a:35:00:01:22)
  195. macb e000b000.ethernet eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=e000b000.etherne:03, irq=-1)
  196. e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
  197. e1000e: Copyright(c) 1999 - 2014 Intel Corporation.
  198. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  199. ehci-pci: EHCI PCI platform driver
  200. ULPI transceiver vendor/product ID 0x0424/0x0007
  201. Found SMSC USB3320 ULPI transceiver.
  202. ULPI integrity check: passed.
  203. zynq-ehci zynq-ehci.0: Xilinx Zynq USB EHCI Host Controller
  204. zynq-ehci zynq-ehci.0: new USB bus registered, assigned bus number 1
  205. zynq-ehci zynq-ehci.0: irq 53, io mem 0x00000000
  206. zynq-ehci zynq-ehci.0: USB 2.0 started, EHCI 1.00
  207. hub 1-0:1.0: USB hub found
  208. hub 1-0:1.0: 1 port detected
  209. usbcore: registered new interface driver usb-storage
  210. mousedev: PS/2 mouse device common for all mice
  211. usbcore: registered new interface driver synaptics_usb
  212. ft5x0x_ts_init successful
  213. i2c /dev entries driver
  214. rtc-ds3232 0-0068: oscillator discontinuity flagged, time unreliable
  215. rtc-ds3232 0-0068: rtc core: registered ds3231 as rtc0
  216. sii902x input mode: YCbCr422
  217. cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 57
  218. cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f007a000 with timeout 10s
  219. zynq-edac f8006000.memory-controller: ecc not enabled
  220. cpufreq: __cpufreq_add_dev: CPU0: Running at unlisted freq: 666666 KHz
  221. cpufreq: __cpufreq_add_dev: CPU0: Unlisted initial frequency changed to: 666667 KHz
  222. Xilinx Zynq CpuIdle Driver started
  223. sdhci: Secure Digital Host Controller Interface driver
  224. sdhci: Copyright(c) Pierre Ossman
  225. sdhci-pltfm: SDHCI platform and OF driver helper
  226. mmc0: no vqmmc regulator found
  227. mmc0: no vmmc regulator found
  228. mmc0: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA
  229. mmc1: no vqmmc regulator found
  230. mmc1: no vmmc regulator found
  231. mmc1: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
  232. ledtrig-cpu: registered to indicate activity on CPUs
  233. usbcore: registered new interface driver usbhid
  234. usbhid: USB HID core driver
  235. TCP: cubic registered
  236. NET: Registered protocol family 17
  237. can: controller area network core (rev 20120528 abi 9)
  238. mmc0: BKOPS_EN bit is not set
  239. NET: Registered protocol family 29
  240. can: raw protocol (rev 20120528)
  241. can: broadcast manager protocol (rev 20120528 t)
  242. can: netlink gateway (rev 20130117) max_hops=1
  243. Registering SWP/SWPB emulation handler
  244. input: gpio-keys.3 as /devices/amba.1/gpio-keys.3/input/input0
  245. mmc0: new high speed MMC card at address 0001
  246. rtc-ds3232 0-0068: hctosys: unable to read the hardware clock
  247. ALSA device list:
  248.   No soundcards found.
  249. RAMDISK: gzip image found at block 0
  250. mmcblk0: mmc0:0001 Q2J54A 3.64 GiB
  251. mmcblk0boot0: mmc0:0001 Q2J54A partition 1 2.00 MiB
  252. mmcblk0boot1: mmc0:0001 Q2J54A partition 2 2.00 MiB
  253. mmcblk0rpmb: mmc0:0001 Q2J54A partition 3 512 KiB
  254. mmcblk0: p1
  255. mmcblk0boot1: unknown partition table
  256. mmcblk0boot0: unknown partition table
  257. usb 1-1: new high-speed USB device number 2 using zynq-ehci
  258. mmc1: new high speed SD card at address b368
  259. mmcblk1: mmc1:b368 00000 1.83 GiB
  260. mmcblk1: p1
  261. hub 1-1:1.0: USB hub found
  262. hub 1-1:1.0: 4 ports detected
  263. VFS: Mounted root (ext2 filesystem) on device 1:0.
  264. devtmpfs: mounted
  265. Freeing unused kernel memory: 196K (c0616000 - c0647000)
  266. Starting logging: OK
  267. Starting mdev...
  268. FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
  269. Initializing random number generator... random: dd urandom read with 38 bits of entropy available
  270. done.
  271. Starting network...

  272. welcome to myir board
  273. myir login:
复制代码

    d、输入命令:
       >myir login:root
       >[root@myir ~ ]# /updatesys.sh /mnt/mmcblk1p1
     输入命令后,开始烧写系统过程,烧写需要一些时间。
   
   
   

    等待片刻后,烧写完成。
   



   
    三、重启系统


    系统烧写完成后,关闭电源,将JP2断开,JP3断开,重新上电。
    启动进入系统。
   



    烧写系统完成。


分享到:
回复

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条