TA的每日心情 | 开心 2025-9-22 14:25 |
|---|
签到天数: 1085 天 连续签到: 1 天 [LV.10]以坛为家III
版主
- 积分
- 1173
|
这节学习下板MYD-C7Z020开发板linux系统的烧写,按照 linux开发手册有关linux系统烧写部分来操作,通过按照手册的步骤来学习系统烧写过程。
一、材料准备
需要TF卡和读卡器,我使用的是2G的TF卡。
二、操作过程
2.1、格式化TF卡
a、使用 HP USB Disk Storage Format Tool v2.0.6 Portable软件来格式化TF卡。
b、格式化格式选择FAT32
c、格式化完成
2.2、复制镜像文件
a、这次使用的是系统自带的镜像文件,将资料光盘镜像文件里面的文件复制到TF卡根目录下。
板卡芯片型号7Z020,所以选择对应的文件,这个文件下面有三个文件。
b、三个对应的显示设备不一样,我现在没有显示器,就选择第三个文件,选择其他两个也可以,都可以通过串口来操作文件系统。
c、TF卡里的文件
2.3、烧写系统
a、将开发板上的JP2闭合,JP3断开,插入TF卡。
b、连接串口,打开串口调试软件,开发板上电,可以看到从TF卡引导系统
- U-Boot 2013.10 (May 25 2015 - 15:40:17)
- Memory: ECC disabled
- DRAM: 1 GiB
- myir_board_init
- MMC: zynq_sdhci: 0
- SF: Detected W25Q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
- *** Warning - bad CRC, using default environment
- In: serial
- Out: serial
- Err: serial
- Net: Gem.e000b000
- Hit any key to stop autoboot: 0
- Device: zynq_sdhci
- Manufacturer ID: 1b
- OEM: 534d
- Name: 00000
- Tran Speed: 50000000
- Rd Block Len: 512
- SD version 3.0
- High Capacity: No
- Capacity: 1.8 GiB
- Bus Width: 4-bit
- reading uEnv.txt
- 415 bytes read in 8 ms (49.8 KiB/s)
- Loaded environment from uEnv.txt
- Importing environment from SD ...
- Running uenvcmd ...
- Loading bitstream from SD/MMC/eMMC to RAM..
- Device: zynq_sdhci
- Manufacturer ID: 1b
- OEM: 534d
- Name: 00000
- Tran Speed: 50000000
- Rd Block Len: 512
- SD version 3.0
- High Capacity: No
- Capacity: 1.8 GiB
- Bus Width: 4-bit
- reading 7z020.bit
- 4045676 bytes read in 220 ms (17.5 MiB/s)
- design filename = "design_1_wrapper;UserID=0XFFFFFFFF;Version=2014.4"
- part number = "7z020clg400"
- date = "2014/10/01"
- time = "18:38:15"
- bytes in bitstream = 4045564
- zynq_load: Align buffer at 100070 to 100000(swap 1)
- Copying Linux from SD to RAM...
- reading uImage
- 3532040 bytes read in 193 ms (17.5 MiB/s)
- reading devicetree.dtb
- 10529 bytes read in 15 ms (684.6 KiB/s)
- reading uramdisk.image.gz
- 5968720 bytes read in 318 ms (17.9 MiB/s)
- ## Booting kernel from Legacy Image at 02080000 ...
- Image Name: Linux-3.15.0-xilinx
- Image Type: ARM Linux Kernel Image (uncompressed)
- Data Size: 3531976 Bytes = 3.4 MiB
- Load Address: 00008000
- Entry Point: 00008000
- Verifying Checksum ... OK
- ## Loading init Ramdisk from Legacy Image at 04000000 ...
- Image Name: Ramdisk
- Image Type: ARM Linux RAMDisk Image (gzip compressed)
- Data Size: 5968656 Bytes = 5.7 MiB
- Load Address: 00000000
- Entry Point: 00000000
- Verifying Checksum ... OK
- ## Flattened Device Tree blob at 02000000
- Booting using the fdt blob at 0x2000000
- Loading Kernel Image ... OK
- Loading Ramdisk to 1fa4e000, end 1ffff310 ... OK
- Loading Device Tree to 1fa48000, end 1fa4d920 ... OK
- Starting kernel ...
- 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 Wed Aug 22 11:06:09 PHT 2018
- CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
- CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
- Machine model: MYIR MYD-XC7Z0X0 Development Board
- cma: CMA: reserved 128 MiB at 27800000
- Memory policy: Data cache writealloc
- PERCPU: Embedded 8 pages/cpu @e701d000 s9088 r8192 d15488 u32768
- Built 1 zonelists in Zone order, mobility grouping on. Total pages: 244240
- Kernel command line: console=ttyPS0,115200 root=/dev/ram rw earlyprintk
- PID hash table entries: 4096 (order: 2, 16384 bytes)
- Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
- Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
- Memory: 830388K/983040K available (4723K kernel code, 239K rwdata, 1476K rodata, 196K init, 205K bss, 152652K reserved, 204800K highmem)
- Virtual kernel memory layout:
- vector : 0xffff0000 - 0xffff1000 ( 4 kB)
- fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
- vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
- lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
- pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
- modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
- .text : 0xc0008000 - 0xc0615e1c (6200 kB)
- .init : 0xc0616000 - 0xc0647380 ( 197 kB)
- .data : 0xc0648000 - 0xc0683d60 ( 240 kB)
- .bss : 0xc0683d6c - 0xc06b74f0 ( 206 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 f0002000
- zynq_clock_init: clkc starts at f0002100
- Zynq clock init
- sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207951633ns
- timer #0 at f0004000, irq=43
- Console: colour dummy device 80x30
- Calibrating delay loop... 1325.46 BogoMIPS (lpj=6627328)
- pid_max: default: 32768 minimum: 301
- Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
- Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
- CPU: Testing write buffer coherency: ok
- CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
- Setting up static identity map for 0x4750a8 - 0x475100
- 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 7z020
- 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 @ 0xf0080000
- 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 <giometti@linux.it>
- PTP clock support registered
- EDAC MC: Ver: 3.0.0
- Advanced Linux Sound Architecture Driver Initialized.
- Switched to clocksource ttc_clocksource
- NET: Registered protocol family 2
- TCP established hash table entries: 8192 (order: 3, 32768 bytes)
- TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
- TCP: Hash tables configured (established 8192 bind 8192)
- TCP: reno registered
- UDP hash table entries: 512 (order: 2, 16384 bytes)
- UDP-Lite hash table entries: 512 (order: 2, 16384 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.
- Trying to unpack rootfs image as initramfs...
- rootfs image is not initramfs (no cpio magic); looks like an initrd
- Freeing initrd memory: 5828K (dfa4e000 - dffff000)
- hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
- futex hash table entries: 512 (order: 3, 32768 bytes)
- bounce pool size: 64 pages
- jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
- msgmni has been set to 1489
- 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
- e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 59, base_baud = 6249999) is a xuartps
- e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 6249999) is a xuartps
- console [ttyPS0] enabled
- xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f006a000
- [drm] Initialized drm 1.1.0 20060810
- brd: module loaded
- loop: module loaded
- m25p80 spi0.0: found w25q256, expected s25fl256s1
- m25p80 spi0.0: w25q256 (32768 Kbytes)
- 7 ofpart partitions found on MTD device spi0.0
- Creating 7 MTD partitions on "spi0.0":
- 0x000000000000-0x000000100000 : "qspi-boot"
- 0x000000100000-0x000000120000 : "qspi-ubootenv"
- 0x000000120000-0x000000720000 : "qspi-bitstream"
- 0x000000720000-0x000000d20000 : "qspi-kernel"
- 0x000000d20000-0x000000d40000 : "qspi-devicetree"
- 0x000000d40000-0x000001940000 : "qspi-rootfs"
- 0x000001940000-0x000002000000 : "data"
- 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 [Generic PHY] (mii_bus:phy_addr=e000b000.etherne:03, irq=-1)
- e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
- e1000e: Copyright(c) 1999 - 2014 Intel Corporation.
- ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- ehci-pci: EHCI PCI platform driver
- ULPI transceiver vendor/product ID 0x0424/0x0007
- Found SMSC USB3320 ULPI transceiver.
- ULPI integrity check: passed.
- zynq-ehci zynq-ehci.0: Xilinx Zynq USB EHCI Host Controller
- zynq-ehci zynq-ehci.0: new USB bus registered, assigned bus number 1
- zynq-ehci zynq-ehci.0: irq 53, io mem 0x00000000
- zynq-ehci zynq-ehci.0: USB 2.0 started, EHCI 1.00
- hub 1-0:1.0: USB hub found
- hub 1-0:1.0: 1 port detected
- usbcore: registered new interface driver usb-storage
- 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-ds3232 0-0068: oscillator discontinuity flagged, time unreliable
- rtc-ds3232 0-0068: rtc core: registered ds3231 as rtc0
- sii902x input mode: YCbCr422
- cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 57
- cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f007a000 with timeout 10s
- zynq-edac f8006000.memory-controller: ecc not enabled
- cpufreq: __cpufreq_add_dev: CPU0: Running at unlisted freq: 666666 KHz
- cpufreq: __cpufreq_add_dev: CPU0: Unlisted initial frequency changed to: 666667 KHz
- 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 e0101000.sdhci [e0101000.sdhci] using ADMA
- mmc1: no vqmmc regulator found
- mmc1: no vmmc regulator found
- mmc1: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
- ledtrig-cpu: registered to indicate activity on CPUs
- usbcore: registered new interface driver usbhid
- usbhid: USB HID core driver
- TCP: cubic registered
- NET: Registered protocol family 17
- can: controller area network core (rev 20120528 abi 9)
- mmc0: BKOPS_EN bit is not set
- 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
- input: gpio-keys.3 as /devices/amba.1/gpio-keys.3/input/input0
- mmc0: new high speed MMC card at address 0001
- rtc-ds3232 0-0068: hctosys: unable to read the hardware clock
- ALSA device list:
- No soundcards found.
- RAMDISK: gzip image found at block 0
- mmcblk0: mmc0:0001 Q2J54A 3.64 GiB
- mmcblk0boot0: mmc0:0001 Q2J54A partition 1 2.00 MiB
- mmcblk0boot1: mmc0:0001 Q2J54A partition 2 2.00 MiB
- mmcblk0rpmb: mmc0:0001 Q2J54A partition 3 512 KiB
- mmcblk0: p1
- mmcblk0boot1: unknown partition table
- mmcblk0boot0: unknown partition table
- usb 1-1: new high-speed USB device number 2 using zynq-ehci
- mmc1: new high speed SD card at address b368
- mmcblk1: mmc1:b368 00000 1.83 GiB
- mmcblk1: p1
- hub 1-1:1.0: USB hub found
- hub 1-1:1.0: 4 ports detected
- VFS: Mounted root (ext2 filesystem) on device 1:0.
- devtmpfs: mounted
- Freeing unused kernel memory: 196K (c0616000 - c0647000)
- Starting logging: OK
- Starting mdev...
- FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
- Initializing random number generator... random: dd urandom read with 38 bits of entropy available
- done.
- Starting network...
- welcome to myir board
- myir login:
复制代码
d、输入命令:
>myir login:root
>[root@myir ~ ]# /updatesys.sh /mnt/mmcblk1p1
输入命令后,开始烧写系统过程,烧写需要一些时间。
等待片刻后,烧写完成。
三、重启系统
系统烧写完成后,关闭电源,将JP2断开,JP3断开,重新上电。
启动进入系统。
烧写系统完成。
|
|