OrangePi应用笔记:将uboot、boot.scr、kernel、dtb、rootfs打包为一个镜像

2024-05-03 20:32

本文主要是介绍OrangePi应用笔记:将uboot、boot.scr、kernel、dtb、rootfs打包为一个镜像,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

第一步:创建  output 文件夹,进入output文件夹并将 

sun50i-h5-orangepi-pc2.dtb

u-boot-sunxi-with-spl.bin

uImage

boot.scr

rootfs(本人在这里还没有自己制作根文件系统,用的是开发板厂家提供的文件系统)

五个文件拷贝到该文件夹下,以备后边打包使用;

第二步:创建 script 文件夹(与第一步中output同级),进入script文件夹,创建 build_image.sh 文件,并将如下内容拷贝到文件中:

#!/bin/bash
################################################################
##
##
## Build Release Image
################################################################
set -eif [ -z $ROOT ]; thenROOT=`cd .. && pwd`
fiif [ -z $1 ]; thenPLATFORM="OrangePiH5_PC2"
elsePLATFORM=$1
fiOUTPUT="$ROOT/output"
IMAGE="$OUTPUT/${PLATFORM}.img"
ROOTFS="$OUTPUT/rootfs"
disk_size="1200"if [ -z "$disk_size" ]; thendisk_size=100 #MiB
fiif [ "$disk_size" -lt 60 ]; thenecho "Disk size must be at least 60 MiB"exit 2
fiecho "Creating image $IMAGE of size $disk_size MiB ..."boot0="$ROOT/output/u-boot-sunxi-with-spl.bin"
bootscr="$ROOT/output/boot.scr"# Partition Setup
boot0_position=8      # KiB
part_position=20480   # KiB
boot_size=50          # MiBset -x# Create beginning of disk
dd if=/dev/zero bs=1M count=$((part_position/1024)) of="$IMAGE"
dd if="$boot0" conv=notrunc bs=1k seek=$boot0_position of="$IMAGE"# Create boot file system (VFAT)
dd if=/dev/zero bs=1M count=${boot_size} of=${IMAGE}1
mkfs.vfat -n BOOT ${IMAGE}1mcopy -m -i ${IMAGE}1 ${OUTPUT}/boot.scr :: || true
mcopy -m -i ${IMAGE}1 ${OUTPUT}/uImage :: || true
mcopy -m -i ${IMAGE}1 ${OUTPUT}/sun50i-h5-orangepi-pc2.dtb :: || truedd if=${IMAGE}1 conv=notrunc oflag=append bs=1M seek=$((part_position/1024)) of="$IMAGE"
rm -f ${IMAGE}1# Create additional ext4 file system for rootfs
dd if=/dev/zero bs=1M count=$((disk_size-boot_size-part_position/1024)) of=${IMAGE}2
mkfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${IMAGE}2if [ ! -d /media/tmp ]; thenmkdir -p /media/tmp
fimount -t ext4 ${IMAGE}2 /media/tmp
# Add rootfs into Image
cp -rfa $OUTPUT/rootfs/* /media/tmpumount /media/tmpdd if=${IMAGE}2 conv=notrunc oflag=append bs=1M seek=$((part_position/1024+boot_size)) of="$IMAGE"
rm -f ${IMAGE}2if [ -d /media/tmp ]; thenrm -rf /media/tmp
fi# Add partition table
cat <<EOF | fdisk "$IMAGE"
o
n
p
1
$((part_position*2))
+${boot_size}M
t
c
n
p
2
$((part_position*2 + boot_size*1024*2))t
2
83
w
EOFsync
clear

 

执行 sudo ./build_image.sh

耐心等待...................

结束后在第一步创建的output文件夹中生成 OrangePiH5_PC2.img 镜像,将该镜像写入SD卡(方法自己百度),将SD卡插入开发板启动打印如下信息:


U-Boot SPL 2018.07 (Aug 07 2018 - 18:02:30 +0800)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL3-1: Running on H5 (1718) in SRAM A2 (@0x44000)
NOTICE:  Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):4fe12b7
NOTICE:  BL3-1: Built : 17:31:07, Aug  7 2018
NOTICE:  PLL_CPUX: 90001521
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9U-Boot 2018.07 (Aug 07 2018 - 18:02:30 +0800) Allwinner TechnologyCPU:   Allwinner H5 (SUN50I)
Model: OrangePi PC 2
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environmentFailed (-5)
In:    serial
Out:   vidconsole
Err:   vidconsole
Allwinner mUSB OTG (Peripheral)
Net:   phy interface7
eth0: ethernet@1c30000
Warning: usb_ether using MAC address from ROM
, eth1: usb_ether
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 2 USB Device(s) foundscanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  2  1  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
454 bytes read in 1 ms (443.4 KiB/s)
## Executing script at 4fc00000
Unknown command 'OMMON' - try 'help'
Unknown command 'ettings' - try 'help'
12537928 bytes read in 554 ms (21.6 MiB/s)
15230 bytes read in 3 ms (4.8 MiB/s)
## Booting kernel from Legacy Image at 40080000 ...Image Name:   OrangePiH5Image Type:   AArch64 Linux Kernel Image (uncompressed)Data Size:    12537864 Bytes = 12 MiBLoad Address: 40080000Entry Point:  40080000Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.Loading Kernel Image ... OKLoading Device Tree to 0000000049ff9000, end 0000000049fffb7d ... OKStarting kernel ...[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 4.16.11 (liang@liang-VirtualBox) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #12 SMP Tue Aug 7 03:54:00 CST 2018
[    0.000000] Machine model: Xunlong Orange Pi PC 2
[    0.000000] earlycon: uart0 at MMIO32 0x0000000001c28000 (options '')
[    0.000000] bootconsole [uart0] enabled
[    0.000000] cma: Reserved 16 MiB at 0x000000007d000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] random: get_random_bytes called from start_kernel+0xa8/0x3dc with crng_init=0
[    0.000000] percpu: Embedded 22 pages/cpu @        (ptrval) s50456 r8192 d31464 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 249984
[    0.000000] Kernel command line: console=ttyS0,115200 earlycon=uart,mmio32,0x01c28000 root=/dev/mmcblk0p2 rootwait panic=10
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Memory: 968452K/1015808K available (7678K kernel code, 468K rwdata, 1676K rodata, 2048K init, 297K bss, 30972K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008146] Console: colour dummy device 80x25
[    0.012601] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.022945] pid_max: default: 32768 minimum: 301
[    0.027656] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.034362] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.042368] ASID allocator initialised with 32768 entries
[    0.047830] Hierarchical SRCU implementation.
[    0.052604] smp: Bringing up secondary CPUs ...
[    0.058175] Detected VIPT I-cache on CPU1
[    0.058229] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.058919] Detected VIPT I-cache on CPU2
[    0.058951] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.059600] Detected VIPT I-cache on CPU3
[    0.059629] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.059690] smp: Brought up 1 node, 4 CPUs
[    0.095347] SMP: Total of 4 processors activated.
[    0.100044] CPU features: detected feature: 32-bit EL0 Support
[    0.105875] CPU features: detected feature: Kernel page table isolation (KPTI)
[    0.114461] CPU: All CPU(s) started at EL2
[    0.118573] alternatives: patching kernel code
[    0.123648] devtmpfs: initialized
[    0.129936] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.139776] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.146680] pinctrl core: initialized pinctrl subsystem
[    0.152550] NET: Registered protocol family 16
[    0.157581] vdso: 2 pages (1 code @         (ptrval), 1 data @         (ptrval))
[    0.164986] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.172743] DMA: preallocated 256 KiB pool for atomic allocations
[    0.188411] SCSI subsystem initialized
[    0.192499] usbcore: registered new interface driver usbfs
[    0.198005] usbcore: registered new interface driver hub
[    0.203358] usbcore: registered new device driver usb
[    0.208539] pps_core: LinuxPPS API ver. 1 registered
[    0.213507] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.222636] PTP clock support registered
[    0.226722] Advanced Linux Sound Architecture Driver Initialized.
[    0.233370] clocksource: Switched to clocksource arch_sys_counter
[    0.245317] NET: Registered protocol family 2
[    0.250031] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes)
[    0.257705] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.264830] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.271510] TCP: Hash tables configured (established 8192 bind 8192)
[    0.277971] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.283922] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.290410] NET: Registered protocol family 1
[    0.295115] RPC: Registered named UNIX socket transport module.
[    0.301025] RPC: Registered udp transport module.
[    0.305736] RPC: Registered tcp transport module.
[    0.310433] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.318329] workingset: timestamp_bits=62 max_order=18 bucket_order=0
[    0.330050] NFS: Registering the id_resolver key type
[    0.335132] Key type id_resolver registered
[    0.339307] Key type id_legacy registered
[    0.344162] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.351548] io scheduler noop registered
[    0.355478] io scheduler deadline registered
[    0.359902] io scheduler cfq registered (default)
[    0.364618] io scheduler mq-deadline registered
[    0.369140] io scheduler kyber registered
[    0.373656] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.381039] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.391019] sun50i-h5-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.433300] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.441562] console [ttyS0] disabled
[    0.465677] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 25, base_baud = 1500000) is a U6_16550A
[    0.474668] console [ttyS0] enabled
[    0.474668] console [ttyS0] enabled
[    0.481629] bootconsole [uart0] disabled
[    0.481629] bootconsole [uart0] disabled
[    0.490180] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.496924] libphy: Fixed MDIO Bus: probed
[    0.501017] CAN device driver interface
[    0.505521] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.511518] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.517710] ohci-platform: OHCI generic platform driver
[    0.523050] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.529682] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 1
[    0.537651] ohci-platform 1c1a400.usb: irq 10, io mem 0x01c1a400
[    0.618057] hub 1-0:1.0: USB hub found
[    0.621826] hub 1-0:1.0: 1 port detected
[    0.626946] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.633734] sun6i-rtc 1f00000.rtc: RTC enabled
[    0.638215] i2c /dev entries driver
[    0.641884] IR NEC protocol handler initialized
[    0.646417] IR RC5(x/sz) protocol handler initialized
[    0.651460] IR RC6 protocol handler initialized
[    0.655993] IR JVC protocol handler initialized
[    0.660515] IR Sony protocol handler initialized
[    0.665131] IR SANYO protocol handler initialized
[    0.669827] IR Sharp protocol handler initialized
[    0.674532] IR MCE Keyboard/mouse protocol handler initialized
[    0.680346] IR XMP protocol handler initialized
[    0.685073] Registered IR keymap rc-empty
[    0.689132] rc rc0: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0
[    0.695858] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0/input0
[    0.703350] input: MCE IR Keyboard/Mouse (sunxi-ir) as /devices/virtual/input/input1
[    0.711230] sunxi-ir 1f02000.ir: initialized sunXi IR driver
[    0.717406] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.726143] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    0.755897] sunxi-mmc 1c0f000.mmc: base:0x        (ptrval) irq:7
[    0.762719] usbcore: registered new interface driver usbhid
[    0.768302] usbhid: USB HID core driver
[    0.772994] sun4i-codec 1c22c00.codec: ASoC: codec-analog@1f015c0 not registered
[    0.780405] sun4i-codec 1c22c00.codec: Failed to register our card
[    0.786930] NET: Registered protocol family 17
[    0.791382] can: controller area network core (rev 20170425 abi 9)
[    0.797626] NET: Registered protocol family 29
[    0.802065] can: raw protocol (rev 20170425)
[    0.806345] can: broadcast manager protocol (rev 20170425 t)
[    0.812000] can: netlink gateway (rev 20170425) max_hops=1
[    0.817662] Key type dns_resolver registered
[    0.828840] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.882001] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.897351] mmc0: new high speed SDHC card at address aaaa
[    0.903925] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    0.913503]  mmcblk0: p1 p2
[    0.953419] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 50006 (expect 58000)
[    0.962726] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.968397] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.975621] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.981273] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.988495] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.993462] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.000332] libphy: stmmac: probed
[    1.004113] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    1.010258] libphy: mdio_mux: probed
[    1.013855] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    1.020201] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    1.026893] libphy: mdio_mux: probed
[    1.030473] dwmac-sun8i 1c30000.ethernet: Switch mux to external PHY
[    1.037652] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    1.044288] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 2
[    1.052218] ohci-platform 1c1b400.usb: irq 12, io mem 0x01c1b400
[    1.127989] hub 2-0:1.0: USB hub found
[    1.131758] hub 2-0:1.0: 1 port detected
[    1.136222] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    1.142840] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 3
[    1.150723] ohci-platform 1c1c400.usb: irq 14, io mem 0x01c1c400
[    1.227934] hub 3-0:1.0: USB hub found
[    1.231701] hub 3-0:1.0: 1 port detected
[    1.236114] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    1.242732] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 4
[    1.250657] ohci-platform 1c1d400.usb: irq 16, io mem 0x01c1d400
[    1.327955] hub 4-0:1.0: USB hub found
[    1.331726] hub 4-0:1.0: 1 port detected
[    1.336164] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.347116] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.352859] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 5
[    1.361142] hub 5-0:1.0: USB hub found
[    1.364930] hub 5-0:1.0: 1 port detected
[    1.369876] sun4i-codec 1c22c00.codec: ASoC: codec-analog@1f015c0 not registered
[    1.377293] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.383861] sun6i-rtc 1f00000.rtc: hctosys: unable to read the hardware clock
[    1.391190] usb0-vbus: disabling
[    1.394438] ALSA device list:
[    1.397401]   No soundcards found.
[    1.405094] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.416502] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.428982] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.436296] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.573384] usb 2-1: new low-speed USB device number 2 using ohci-platform
[    1.683399] usb 3-1: new low-speed USB device number 2 using ohci-platform
[    1.809634] random: fast init done
[    1.825455] EXT4-fs (mmcblk0p2): recovery complete
[    1.831825] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.839967] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.850483] devtmpfs: mounted
[    1.854571] Freeing unused kernel memory: 2048K
[    1.872505] input: PixArt USB Optical Mouse as /devices/platform/soc/1c1b400.usb/usb2/2-1/2-1:1.0/0003:093A:2510.0001/input/input2
[    1.884480] hid-generic 0003:093A:2510.0001: input: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-1c1b400.usb-1/input0
[    1.896632] sun4i-codec 1c22c00.codec: ASoC: codec-analog@1f015c0 not registered
[    1.904048] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.957645] input: Logitech USB Keyboard as /devices/platform/soc/1c1c400.usb/usb3/3-1/3-1:1.0/0003:046D:C31C.0002/input/input3
[    2.033926] hid-generic 0003:046D:C31C.0002: input: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-1c1c400.usb-1/input0
[    2.046033] sun4i-codec 1c22c00.codec: ASoC: codec-analog@1f015c0 not registered
[    2.053453] sun4i-codec 1c22c00.codec: Failed to register our card
[    2.067858] input: Logitech USB Keyboard as /devices/platform/soc/1c1c400.usb/usb3/3-1/3-1:1.1/0003:046D:C31C.0003/input/input4
[    2.128780] systemd[1]: System time before build time, advancing clock.
[    2.143570] hid-generic 0003:046D:C31C.0003: input: USB HID v1.10 Device [Logitech USB Keyboard] on usb-1c1c400.usb-1/input1
[    2.145544] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    2.155559] sun4i-codec 1c22c00.codec: ASoC: codec-analog@1f015c0 not registered
[    2.169937] sun4i-codec 1c22c00.codec: Failed to register our card
[    2.178329] random: systemd: uninitialized urandom read (16 bytes read)
[    2.186875] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    2.205205] systemd[1]: Detected architecture arm64.Welcome to [1mUbuntu 16.04.4 LTS[0m![    2.246947] systemd[1]: Set hostname to <liang>.
[    2.263177] random: systemd: uninitialized urandom read (16 bytes read)
[    2.272228] random: systemd: uninitialized urandom read (16 bytes read)
[    2.517048] systemd[1]: Listening on Syslog Socket.
[[0;32m  OK  [0m] Listening on Syslog Socket.
[    2.553593] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[[0;32m  OK  [0m] Listening on /dev/initctl Compatibility Named Pipe.
[    2.583452] systemd[1]: Reached target Remote File Systems (Pre).
[[0;32m  OK  [0m] Reached target Remote File Systems (Pre).
[    2.613516] systemd[1]: Listening on udev Kernel Socket.
[[0;32m  OK  [0m] Listening on udev Kernel Socket.
[    2.656549] systemd[1]: Listening on Journal Socket (/dev/log).
[[0;32m  OK  [0m] Listening on Journal Socket (/dev/log).
[    2.693650] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[[0;32m  OK  [0m] Started Forward Password Requests to Wall Directory Watch.
[    2.723582] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[[0;32m  OK  [0m] Started Dispatch Password Requests to Console Directory Watch.
[[0;32m  OK  [0m] Created slice User and Session Slice.
[[0;32m  OK  [0m] Listening on fsck to fsckd communication Socket.
[[0;32m  OK  [0m] Started Trigger resolvconf update for networkd DNS.
[[0;32m  OK  [0m] Reached target Paths.
[[0;32m  OK  [0m] Reached target Remote File Systems.
[[0;32m  OK  [0m] Reached target Encrypted Volumes.
[[0;32m  OK  [0m] Reached target Swap.
[[0;32m  OK  [0m] Created slice System Slice.
[[0;32m  OK  [0m] Created slice system-systemd\x2dfsck.slice.
[[0;32m  OK  [0m] Reached target Slices.
[[0;32m  OK  [0m] Created slice system-serial\x2dgetty.slice.
[[0;32m  OK  [0m] Listening on Journal Socket.Starting Create Static Device Nodes in /dev...Starting File System Check on Root Device...Starting Nameserver information manager...Starting Set console keymap...Starting Journal Service...Mounting Debug File System...Starting Load Kernel Modules...
[[0;32m  OK  [0m] Listening on udev Control Socket.
[[0;32m  OK  [0m] Mounted Debug File System.
[[0;32m  OK  [0m] Started Journal Service.
[[0;32m  OK  [0m] Started Create Static Device Nodes in /dev.
[[0;32m  OK  [0m] Started File System Check on Root Device.
[[0;1;31mFAILED[0m] Failed to start Set console keymap.
See 'systemctl status keyboard-setup.service' for details.
[[0;32m  OK  [0m] Started Load Kernel Modules.
[[0;32m  OK  [0m] Started Nameserver information manager.
[[0;32m  OK  [0m] Started File System Check Daemon to report status.
[[0;32m  OK  [0m] Reached target Network (Pre).Starting Apply Kernel Variables...Starting Remount Root and Kernel File Systems...Starting udev Kernel Device Manager...
[[0;32m  OK  [0m] Started Apply Kernel Variables.
[[0;32m  OK  [0m] Started Remount Root and Kernel File Systems.
[[0;32m  OK  [0m] Started udev Kernel Device Manager.Starting Flush Journal to Persistent Storage...Starting udev Coldplug all Devices...Starting Load/Save Random Seed...
[[0;32m  OK  [0m] Reached target Local File Systems (Pre).
[[0;32m  OK  [0m] Started Load/Save Random Seed.
[[0;32m  OK  [0m] Started Flush Journal to Persistent Storage.
[[0;32m  OK  [0m] Started udev Coldplug all Devices.
[[0;32m  OK  [0m] Found device /dev/ttyS0.
[[0;32m  OK  [0m] Found device /dev/mmcblk0p1.Starting File System Check on /dev/mmcblk0p1...
[[0;32m  OK  [0m] Started File System Check on /dev/mmcblk0p1.Mounting /boot...
[[0;32m  OK  [0m] Mounted /boot.
[[0;32m  OK  [0m] Reached target Local File Systems.Starting Raise network interfaces...Starting Set console font and keymap...
[[0;32m  OK  [0m] Started ifup for eth0.Starting Create Volatile Files and Directories...
[[0;32m  OK  [0m] Started Create Volatile Files and Directories.Starting Update UTMP about System Boot/Shutdown...Starting Network Time Synchronization...
[    5.448469] sun4i-codec 1c22c00.codec: ASoC: codec-analog@1f015c0 not registered
[    5.456002] sun4i-codec 1c22c00.codec: Failed to register our card
[[0;32m  OK  [0m] Started Set console font and keymap.
[[0;32m  OK  [0m] Started Network Time Synchronization.
[[0;32m  OK  [0m] Reached target System Time Synchronized.
[[0;32m  OK  [0m] Created slice system-getty.slice.
[[0;32m  OK  [0m] Started Update UTMP about System Boot/Shutdown.
[[0;32m  OK  [0m] Reached target System Initialization.
[[0;32m  OK  [0m] Started Daily Cleanup of Temporary Directories.
[[0;32m  OK  [0m] Started Daily apt download activities.
[[0;32m  OK  [0m] Started Daily apt upgrade and clean activities.
[[0;32m  OK  [0m] Reached target Timers.
[[0;32m  OK  [0m] Listening on D-Bus System Message Bus Socket.
[[0;32m  OK  [0m] Reached target Sockets.
[[0;32m  OK  [0m] Reached target Basic System.
[[0;32m  OK  [0m] Started CPU corekeeper.Starting Permit User Sessions...Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...Starting System Logging Service...
[[0;32m  OK  [0m] Started Regular background program processing daemon.Starting Fix eth0 mac address to uEnv.txt...Starting Initializes zram swaping...Starting Login Service...
[[0;32m  OK  [0m] Started D-Bus System Message Bus.Starting Generate SSH keys if not there...
[[0;32m  OK  [0m] Started System Logging Service.
[[0;32m  OK  [0m] Started Permit User Sessions.
[[0;32m  OK  [0m] Started Fix eth0 mac address to uEnv.txt.
[[0;1;31mFAILED[0m] Failed to start Initializes zram swaping.
See 'systemctl status zram-config.service' for details.
[[0;32m  OK  [0m] Started Generate SSH keys if not there.
[[0;32m  OK  [0m] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[[0;32m  OK  [0m] Started Login Service.
[[0;32m  OK  [0m] Started Serial Getty on ttyS0.Starting Set console scheme...
[[0;32m  OK  [0m] Started Set console scheme.Ubuntu 16.04.4 LTS liang ttyS0liang login: 

 

这篇关于OrangePi应用笔记:将uboot、boot.scr、kernel、dtb、rootfs打包为一个镜像的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/957584

相关文章

在 Spring Boot 中实现异常处理最佳实践

《在SpringBoot中实现异常处理最佳实践》本文介绍如何在SpringBoot中实现异常处理,涵盖核心概念、实现方法、与先前查询的集成、性能分析、常见问题和最佳实践,感兴趣的朋友一起看看吧... 目录一、Spring Boot 异常处理的背景与核心概念1.1 为什么需要异常处理?1.2 Spring B

如何在 Spring Boot 中实现 FreeMarker 模板

《如何在SpringBoot中实现FreeMarker模板》FreeMarker是一种功能强大、轻量级的模板引擎,用于在Java应用中生成动态文本输出(如HTML、XML、邮件内容等),本文... 目录什么是 FreeMarker 模板?在 Spring Boot 中实现 FreeMarker 模板1. 环

Spring Boot中JSON数值溢出问题从报错到优雅解决办法

《SpringBoot中JSON数值溢出问题从报错到优雅解决办法》:本文主要介绍SpringBoot中JSON数值溢出问题从报错到优雅的解决办法,通过修改字段类型为Long、添加全局异常处理和... 目录一、问题背景:为什么我的接口突然报错了?二、为什么会发生这个错误?1. Java 数据类型的“容量”限制

C语言中位操作的实际应用举例

《C语言中位操作的实际应用举例》:本文主要介绍C语言中位操作的实际应用,总结了位操作的使用场景,并指出了需要注意的问题,如可读性、平台依赖性和溢出风险,文中通过代码介绍的非常详细,需要的朋友可以参... 目录1. 嵌入式系统与硬件寄存器操作2. 网络协议解析3. 图像处理与颜色编码4. 高效处理布尔标志集合

Spring Boot 整合 SSE的高级实践(Server-Sent Events)

《SpringBoot整合SSE的高级实践(Server-SentEvents)》SSE(Server-SentEvents)是一种基于HTTP协议的单向通信机制,允许服务器向浏览器持续发送实... 目录1、简述2、Spring Boot 中的SSE实现2.1 添加依赖2.2 实现后端接口2.3 配置超时时

Spring Boot读取配置文件的五种方式小结

《SpringBoot读取配置文件的五种方式小结》SpringBoot提供了灵活多样的方式来读取配置文件,这篇文章为大家介绍了5种常见的读取方式,文中的示例代码简洁易懂,大家可以根据自己的需要进... 目录1. 配置文件位置与加载顺序2. 读取配置文件的方式汇总方式一:使用 @Value 注解读取配置方式二

Java中的Lambda表达式及其应用小结

《Java中的Lambda表达式及其应用小结》Java中的Lambda表达式是一项极具创新性的特性,它使得Java代码更加简洁和高效,尤其是在集合操作和并行处理方面,:本文主要介绍Java中的La... 目录前言1. 什么是Lambda表达式?2. Lambda表达式的基本语法例子1:最简单的Lambda表

将Java程序打包成EXE文件的实现方式

《将Java程序打包成EXE文件的实现方式》:本文主要介绍将Java程序打包成EXE文件的实现方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录如何将Java程序编程打包成EXE文件1.准备Java程序2.生成JAR包3.选择并安装打包工具4.配置Launch4

Spring Boot 集成 Quartz并使用Cron 表达式实现定时任务

《SpringBoot集成Quartz并使用Cron表达式实现定时任务》本篇文章介绍了如何在SpringBoot中集成Quartz进行定时任务调度,并通过Cron表达式控制任务... 目录前言1. 添加 Quartz 依赖2. 创建 Quartz 任务3. 配置 Quartz 任务调度4. 启动 Sprin

Python结合PyWebView库打造跨平台桌面应用

《Python结合PyWebView库打造跨平台桌面应用》随着Web技术的发展,将HTML/CSS/JavaScript与Python结合构建桌面应用成为可能,本文将系统讲解如何使用PyWebView... 目录一、技术原理与优势分析1.1 架构原理1.2 核心优势二、开发环境搭建2.1 安装依赖2.2 验