Open main menu

DAVE Developer's Wiki β

Changes

DESK-XZ7-L/Deployment/Standalone boot

15,317 bytes added, 12:51, 21 November 2022
Program root file system into SD card
* mount the <code>ext3/ext4</code> volume in the temporary directory
<pre class="workstation-terminal">
root@bora:~# mount /dev/mmcblk0p2 /mnt/ext
</pre>
<pre class="workstation-terminal">
root@bora:~# tar zxpf images/linux/rootfs.tar.gz -C /mnt/ext
</pre>
</pre>
Reboot Once restarted, the system and configure complete boot log can be like this one:<pre class="mw-collapsible mw-collapsed">U-Boot 2021.01 (Oct 12 2021 - 09:28:42 +0000) CPU: Zynq 7z020Silicon: v3.1DRAM: ECC disabled 1 GiBFlash: 0 BytesNAND: 0 MiBMMC: mmc@e0100000: 0Loading Environment from FAT... *** Warning - bad CRC, using default environment In: serial@e0001000Out: serial@e0001000Err: serial@e0001000Net:ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr -1, interface rgmii-ideth0: ethernet@e000b000Hit any key to stop autoboot: 0switch to partitions #0, OKmmc0 is current deviceScanning mmc 0:1...Found U-Boot script /boot.scrERROR: reserving fdt memory region failed (addr=3e000000 size=1000000)2710 bytes read in 22 ms (120.1 KiB/s)## Executing script at 03000000Trying to apply load boot images from mmc0ERROR: reserving fdt memory region failed (addr=3e000000 size=1000000)4847892 bytes read in 398 ms (11.6 MiB/s)## Loading kernel from FIT Image at 10000000 ... Using 'conf-system-top.dtb' configuration Verifying Hash Integrity ... OK Trying 'kernel-1' kernel subimage Description: Linux kernel Type: Kernel Image Compression: uncompressed Data Start: 0x100000f8 Data Size: 4826176 Bytes = 4.6 MiB Architecture: ARM OS: Linux Load Address: 0x00200000 Entry Point: 0x00200000 Hash algo: sha256 Hash value: e92c329ce6440944a9b8d2c581f9e2f668870af9b90648b321f5b2c996bfb47f Verifying Hash Integrity ... sha256+ OK## Loading fdt from FIT Image at 10000000 ... Using 'conf-system-top.dtb' configuration Verifying Hash Integrity ... OK Trying 'fdt-system-top.dtb' fdt subimage Description: Flattened Device Tree blob Type: Flat Device Tree Compression: uncompressed Data Start: 0x1049a644 Data Size: 19819 Bytes = 19.4 KiB Architecture: ARM Hash algo: sha256 Hash value: 021ac7fe236180abcd9d663112aeadec8c6a8c1be2e31e729504ea585d99ca42 Verifying Hash Integrity ... sha256+ OK Booting using the fdt blob at 0x1049a644 Loading Kernel ImageERROR: reserving fdt memory region failed (addr=3e000000 size=1000000) Loading Device Tree to 2fff8000, end 2ffffd6a ... OK Starting kernel ... Booting Linux on physical CPU 0x0Linux version 5.10.0-xilinx-v2021.2 (oe-user@oe-host) (arm-xilinx-linux-gnueabi-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Tue Oct 12 09:30:57 UTC 2021CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387dCPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cacheOF: fdt: Machine model: xlnx,zynq-7000earlycon: cdns0 at MMIO 0xe0001000 (options '115200n8')printk: bootconsole [cdns0] enabledMemory policy: Data cache writeallocOF: reserved mem: OVERLAP DETECTED!rproc@3e000000 (0x3e000000--0x3f000000) overlaps with vdev0vring0@3e800000 (0x3e800000--0x3e804000)Reserved memory: created DMA memory pool at 0x3e000000, size 16 MiBOF: reserved mem: initialized node rproc@3e000000, compatible id shared-dma-poolReserved memory: created DMA memory pool at 0x3e800000, size 0 MiBOF: reserved mem: initialized node vdev0vring0@3e800000, compatible id shared-dma-poolReserved memory: created DMA memory pool at 0x3e804000, size 0 MiBOF: reserved mem: initialized node vdev0vring1@3e804000, compatible id shared-dma-poolReserved memory: created DMA memory pool at 0x3e808000, size 1 MiBOF: reserved mem: initialized node vdev0buffer@3e808000, compatible id shared-dma-poolcma: Reserved 16 MiB at 0x3f000000Zone ranges: Normal [mem 0x0000000000000000-0x000000002fffffff] HighMem [mem 0x0000000030000000-0x000000003fffffff]Movable zone start for each nodeEarly memory node ranges node 0: [mem 0x0000000000000000-0x000000003dffffff] node 0: [mem 0x000000003f000000-0x000000003fffffff]Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]percpu: Embedded 15 pages/cpu s32396 r8192 d20852 u61440Built 1 zonelists, mobility grouping on. Total pages: 256320Kernel command line: console=ttyPS0,115200 earlycon root=/dev/mmcblk0p2 rw rootwaitDentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)mem auto-init: stack:off, heap alloc:off, heap free:offMemory: 993544K/1032192K available (7168K kernel code, 275K rwdata, 1940K rodata, 1024K init, 162K bss, 22264K reserved, 16384K cma-reserved, 229376K highmem)rcu: Preemptible hierarchical RCU implementation.rcu: RCU event tracing is enabled.rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. Trampoline variant of Tasks RCU enabled.rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16efuse mapped to (ptrval)slcr mapped to (ptrval)GIC physical location is 0xf8f01000L2C: platform modifies aux control register: 0x72360000 -> 0x72760000L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000L2C-310 erratum 769419 enabledL2C-310 enabling early BRESP for Cortex-A9L2C-310 full line of zeros enabled for Cortex-A9L2C-310 ID prefetch enabled, offset 1 linesL2C-310 dynamic clock gating enabled, standby mode enabledL2C-310 cache controller enabled, 8 ways, 512 kBL2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001random: get_random_bytes called from start_kernel+0x2c0/0x4a0 with crng_init=0zynq_clock_init: clkc starts at (ptrval)Zynq clock initsched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103nsclocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 nsSwitching to timer-based delay loop, resolution 3nsConsole: colour dummy device 80x30Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333)pid_max: default: 32768 minimum: 301Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)CPU: Testing write buffer coherency: okCPU0: Spectre v2: using BPIALL workaroundCPU0: thread -1, cpu 0, socket 0, mpidr 80000000Setting up static identity map for 0x100000 - 0x100060rcu: Hierarchical SRCU implementation.smp: Bringing up secondary CPUs ...CPU1: thread -1, cpu 1, socket 0, mpidr 80000001CPU1: Spectre v2: using BPIALL workaroundsmp: Brought up 1 node, 2 CPUsSMP: Total of 2 processors activated (1333.33 BogoMIPS).CPU: All CPU(s) started in SVC mode.devtmpfs: initializedVFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 nsfutex hash table entries: 512 (order: 3, 32768 bytes, linear)pinctrl core: initialized pinctrl subsystemNET: Registered protocol family 16DMA: preallocated 256 KiB pool for atomic coherent allocationsthermal_sys: Registered thermal governor 'step_wise'cpuidle: using governor menuhw-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 @ 0x(ptrval)e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 34, base_baud = 3125000) is a xuartpse0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 35, base_baud = 3125000) is a xuartpsprintk: console [ttyPS0] enabledprintk: console [ttyPS0] enabledprintk: bootconsole [cdns0] disabledprintk: bootconsole [cdns0] disabledvgaarb: loadedSCSI subsystem initializedusbcore: registered new configurationinterface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbmc: Linux media interface: v0.10videodev: Linux video capture interface: v2.00pps_core: LinuxPPS API ver. 1 registeredpps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>PTP clock support registeredEDAC MC: Ver: 3.0.0FPGA manager frameworkAdvanced Linux Sound Architecture Driver Initialized.clocksource: Switched to clocksource arm_global_timerNET: Registered protocol family 2tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)TCP: Hash tables configured (established 8192 bind 8192)UDP hash table entries: 512 (order: 2, 16384 bytes, linear)UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)NET: Registered protocol family 1RPC: Registered named UNIX socket transport module.RPC: Registered udp transport module.RPC: Registered tcp transport module.RPC: Registered tcp NFSv4.1 backchannel transport module.PCI: CLS 0 bytes, default 64hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters availableworkingset: timestamp_bits=14 max_order=18 bucket_order=4jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.bounce: pool size: 64 pagesio scheduler mq-deadline registeredio scheduler kyber registeredzynq-pinctrl 700.pinctrl: zynq pinctrl initializeddma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16brd: module loadedloop: module loadedspi_master spi0: cannot find modalias for /axi/spi@e000d000/flash@0spi_master spi0: Failed to create SPI device for /axi/spi@e000d000/flash@0libphy: Fixed MDIO Bus: probedCAN device driver interfacelibphy: MACB_mii_bus: probedmacb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 37 (00:0a:35:00:1e:53)e1000e: Intel(R) PRO/1000 Network Drivere1000e: Copyright(c) 1999 - 2015 Intel Corporation.ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driverehci-pci: EHCI PCI platform driverusbcore: registered new interface driver usb-storagei2c /dev entries drivercdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 31cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer with timeout 10sEDAC MC: ECC not enabledXilinx Zynq CpuIdle Driver startedsdhci: Secure Digital Host Controller Interface driversdhci: Copyright(c) Pierre Ossmansdhci-pltfm: SDHCI platform and OF driver helperledtrig-cpu: registered to indicate activity on CPUsclocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 nstimer #0 at (ptrval), irq=50usbcore: registered new interface driver usbhidusbhid: USB HID core drivermmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMAfpga_manager fpga0: Xilinx Zynq FPGA Manager registeredNET: Registered protocol family 10Segment Routing with IPv6sit: IPv6, IPv4 and MPLS over IPv4 tunneling driverNET: Registered protocol family 17can: controller area network coreNET: Registered protocol family 29can: raw protocolcan: broadcast manager protocolcan: netlink gateway - max_hops=1Registering SWP/SWPB emulation handlerof-fpga-region fpga-full: FPGA Region probedof_cfs_initof_cfs_init: OKALSA device list: No soundcards found.Waiting for root device /dev/mmcblk0p2...mmc0: new high speed SDHC card at address e624mmcblk0: mmc0:e624 SU08G 7.40 GiB mmcblk0: p1 p2EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)VFS: Mounted root (ext4 filesystem) on device 179:2.devtmpfs: mountedFreeing unused kernel memory: 1024KRun /sbin/init as init processINIT: version 2.97 bootingrandom: fast init doneStarting udevudevd[79]: starting version 3.2.9random: udevd: uninitialized urandom read (16 bytes read)random: udevd: uninitialized urandom read (16 bytes read)random: udevd: uninitialized urandom read (16 bytes read)udevd[80]: starting eudev-3.2.9remoteproc remoteproc0: remoteproc@0 is availableEXT4-fs (mmcblk0p2): re-mounted. Opts: (null)bootlogd: /dev/ttyPS0hwclock: Cannot access the Hardware Clock via any known method.hwclock: Use the --verbose option to see the details of our search for an access method.Fri Mar 9 12:34:56 UTC 2018hwclock: Cannot access the Hardware Clock via any known method.hwclock: Use the --verbose option to see the details of our search for an access method.Configuring packages on first boot.... (This may take several minutes. Please do not power off the machine.)Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...Running postinst /etc/rpm-postinsts/101-postfix-cfg...newaliases: fatal: could not find any active network interfacesupdate-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing) Removing any system startup links for run-postinsts ... /etc/rcS.d/S99run-postinstsINIT: Entering runlevel: 5Configuring network interfaces... udhcpc: started, v1.32.0udhcpc: sending discoverudhcpc: sending discoverudhcpc: sending discoverudhcpc: no lease, forking to backgrounddone.Starting system message bus: dbus.Starting haveged: haveged: command socket is listening at fd 3haveged: haveged starting up 
<pre class="workstationStarting Dropbear SSH server: Waiting for kernel randomness to be initialised...haveged: haveged: ver: 1.9.13; arch: generic; vend: ; build: (gcc 10.2.0 CTV); collect: 128K haveged: haveged: cpu: (VC); data: 16K (D); inst: 16K (D); idx: 12/40; sz: 15006/57790 haveged: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 8.00147 haveged: haveged: fills: 0, generated: 0 Generating 2048 bit rsa key, this may take a while...Public key portion is:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDUVSSH5GBRYKSqp/IabWPY1YjhUafEjPgQ3z5jeMumYluG9SVENoI2GzLZrfCFJyA0WRDCk+oTjBnrEHEKGChX/srqIvlM9P36/qOlP9/kY6gvpPWeawFQ1srgLX12rtqnE0oxy/eDo8a+IjUIyBz4zrTdtpZ88mT32e0Egiy1XuSUCWdfVy+cEjFLEVWojAUPW/AcxiyNZrjmPR2YGNSH9/Y8LgH6WZj5/2g68tOH6hrW+qpdO8T8jTCoG/5OBuYWUzGlOPk058CABHmcFmDoiH0wKInoVMyNiPZCotNF9+QpArSosTHAUlUwHZ4fzxbV57K3gBt8co6FKLAfO/mP root@boraFingerprint: sha1!! 62:38:60:ea:fb:84:ea:71:b1:3f:a5:e4:14:96:eb:26:e3:35:ef:fddropbear.Starting rpcbind daemon...done.starting statd: doneStarting atd: OKstarting DNS forwarder and DHCP server: dnsmasq... done.hwclock: Cannot access the Hardware Clock via any known method.hwclock: Use the --verbose option to see the details of our search for an access method.Starting internet superserver: inetd.NFS daemon support not enabled in kernelStarting ntpd: doneStarting system log daemon...0Mar 9 12:35:16 bora kernel: OF: reserved mem: OVERLAP DETECTED!Mar 9 12:35:16 bora kernel: rproc@3e000000 (0x3e000000--0x3f000000) overlaps with vdev0vring0@3e800000 (0x3e800000--0x3e804000)Mar 9 12:35:16 bora kernel: L2C: platform modifies aux control register: 0x72360000 -terminal">0x72760000=Mar 9 12:35:16 bora kernel: L2C: DT/platform modifies aux control register: 0x72360000 -> setenv bootcmd run mmcboot0x72760000Mar 9 12:35:16 bora kernel: hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.Mar 9 12:35:16 bora kernel: spi_master spi0: cannot find modalias for /axi/spi@e000d000/flash@0=> saveenvMar 9 12:35:16 bora kernel: spi_master spi0: Failed to create SPI device for /axi/spi@e000d000/flash@0Mar 9 12:35:16 bora kernel: urandom_read: 2 callbacks suppressedStarting internet superserver: xinetd.Starting Postfix...Creating aliases database ...postfix/postfix-script: starting the Postfix mail system SuccessfulStarting Lighttpd Web Server: lighttpd.* starting FTP Server: vsftpd... done.Starting crond: OKStarting tcf-agent: OK PetaLinux 2021.2 bora ttyPS0  root@bora:~#
</pre>
8,256
edits