TA的每日心情 | 衰 2021-1-8 19:16 |
---|
签到天数: 51 天 连续签到: 1 天 [LV.5]常住居民I
|
开发板上电
MYD-C7Z020开发板的启动有两种方式,分别是 从MicroSD 卡启动和 Quad -SPI 启动, 我们可以通过跳线 JP2、JP3进行设置(插上跳帽代表ON)
米尔科技的光盘中提供了编译完成的镜像文件。这里我们用的烧写方法为通过MicroSD卡启动Linux,进入Ramdisk 文件系统中的脚本烧写Bootloader内核到QSPI-Flash,烧写根文件系统到eMMC。
将光盘中的BOOT.bin、7z020.bin、devicetree.dtb、 uImage、rootfs.tar等文件拷贝到MicroSD卡中,如下图所示。
必须保证在根目录下,如果外接显示器的话,将7z020-hdmi.bit改为7z020.bit
将devictree-hdmi-720p/1080p.dtb改为devictree.dtb
将开发板的跳线帽JP2 闭合,JP3 断开,插入已烧写文件的MicroSD卡,连接串口波特率为115200,开发板上电。
开发板将引导进入Ramdisk 文件系统,进入Linux 命令行,输入命令开始更新。(登录名的root)
输入
/updatesys.sh /mnt/mmcblk1p1
脚本将把 BOOT.bin,7z010.bin 或 7z010.bin,devicetree.dtb,uImage 烧写到QSPI-Flash,把 rootfs.tar 烧写到 eMMC。
烧写完成之后,将JP2 断开,JP3断开,重新上电即可进入系统了。
启动日志如下
0
Copying Linux from QSPI flash to RAM...
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
SF: 4 bytes @ 0x120000 Read: OK
SF: 4045676 bytes @ 0x120004 Read: OK
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)
SF: 6291456 bytes @ 0x720000 Read: OK
SF: 131072 bytes @ 0xd20000 Read: OK
## Booting kernel from Legacy Image at 02080000 ...
Image Name: Linux-3.15.0-xilinx
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3532096 Bytes = 3.4 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 1fff8000, end 1ffff10e ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 3.15.0-xilinx (tom@dev-server) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-50) ) #2 SMP PREEMPT Mon May 25 13:46:04 CST 2015
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 @e701a000 s9088 r8192 d15488 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 244240
Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p1 rw earlyprintk rootfstype=ext4 rootwait ip=none devtmpfs.mount=1 hdmi
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: 836200K/983040K available (4723K kernel code, 239K rwdata, 1476K rodata, 196K init, 205K bss, 146840K 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 0x475088 - 0x4750e0
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.
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: s25fl256s1 (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)
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
usb 1-1: new high-speed USB device number 2 using zynq-ehci
xylonfb video mode: 1280x720-32@60
Console: switching to colour frame buffer device 160x45
xylonfb 1 registered
xylonfb 0 registered
input: gpio-keys.3 as /devices/amba.1/gpio-keys.3/input/input0
status: 0X10, sii902x.retries: 2
sii902x_poweroff
rtc-ds3232 0-0068: hctosys: unable to read the hardware clock
ALSA device list:
No soundcards found.
Waiting for root device /dev/mmcblk0p1...
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
mmc0: BKOPS_EN bit is not set
mmc0: new high speed MMC card at address 0001
mmcblk0: mmc0:0001 MMC04G 3.57 GiB
mmcblk0boot0: mmc0:0001 MMC04G partition 1 2.00 MiB
mmcblk0boot1: mmc0:0001 MMC04G partition 2 2.00 MiB
mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB
mmcblk0: p1
mmcblk0boot1: unknown partition table
mmcblk0boot0: unknown partition table
EXT4-fs (mmcblk0p1): recovery complete
EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:1.
devtmpfs: mounted
Freeing unused kernel memory: 196K (c0616000 - c0647000)
EXT4-fs (mmcblk0p1): re-mounted. Opts: data=ordered
Starting logging: OK
Starting mdev...
Initializing random number generator... random: dd urandom read with 50 bits of entropy available
done.
Starting network...
cat: /sys/class/rtc/rtc0/date: Invalid argument
Thu Oct 22 00:00:00 UTC 2015
welcome to myir board
myir login: sii902x_poweron
ROOT
Password:
Login incorrect
myir login: root |
|