ROC-RK3328-CC Linux内核移植

这两天在ROC-RK3328-CC平台上做了Linux内核移植的实验,即将Firefly官方提供的Linux-SDK更换为Linux官方提供的SDK,版本为Linux 4.17.19。由于Linux44.17版已经对该平台提供了支持,所以除了对两处Makefile文件进行修改、添加了三个工具文件外,没有做其它变动,config使用默认设置。编译过程一切顺利,烧版也很成功,只是在启动的过程中出现了问题,希望大神给予指导。

下面是启动信息:

DDR version 1.13 20180428
ID:0x805 N
In
DDR4
333MHz
Bus Width=32 Col=10 Bank=4 Bank Group=2 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
ddrconfig:19
OUT
Boot1 Release Time: Sep  7 2018 15:49:55, version: 2.49
ChipType = 0x11, 207
mmc2:cmd19,100
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=14910MB
FwPartOffset=2000 , 2000
SdmmcInit=0 NOT PRESENT
StorageInit ok = 19266
Raw SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
GPT part:  0, name:            uboot, start:0x4000, size:0x2000
GPT part:  1, name:            trust, start:0x6000, size:0x2000
GPT part:  2, name:             boot, start:0xa000, size:0x10000
GPT part:  3, name:           backup, start:0x2a000, size:0x10000
GPT part:  4, name:           rootfs, start:0x5a000, size:0x1cc4fdf
find partition:uboot OK. first_lba:0x4000.
find partition:trust OK. first_lba:0x6000.
LoadTrust Addr:0x6000
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0xce990
RunBL31 0x10000
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-194-g646eecc5 #61 Wed Dec  5 06:31:51 UTC 2018 aarch64)

INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.4

INF [0x0] TEE-CORE:init_teecore:83: teecore inits done

U-Boot 2017.09-g0b1f585323-dirty (Feb 20 2020 - 21:38:50 +0800)

Model: Firefly ROC-RK3328-CC
DRAM:  2 GiB
Relocation Offset is: 7dbf5000
Sysmem: init
Using default environment

rksdmmc@ff500000: 1, rksdmmc@ff520000: 0
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0(part 0) is current device
Bootdev: mmc 0
PartType: EFI
get part misc fail -1
boot mode: None
Load FDT from boot part
DTB: rk-kernel.dtb
In:    serial
Out:   serial
Err:   serial
Model: Firefly roc-rk3328-cc
rockchip_dnl_key_pressed adc_channel_single_shot fail! ret=-22
CLK: (sync kernel. arm: enter 600000 KHz, init 600000 KHz, kernel 0N/A)
  apll 400000 KHz
  dpll 664000 KHz
  cpll 1200000 KHz
  gpll 491009 KHz
  npll 600000 KHz
  armclk 600000 KHz
  aclk_bus 150000 KHz
  hclk_bus 75000 KHz
  pclk_bus 75000 KHz
  aclk_peri 150000 KHz
  hclk_peri 75000 KHz
  pclk_peri 75000 KHz
Net:
Warning: ethernet@ff540000 (eth0) using random MAC address - 9e:92:8e:94:df:04
eth0: ethernet@ff540000
Hit key to stop autoboot('CTRL+C'):  0
android_bootloader_boot_flow Could not find misc partition
ANDROID: reboot reason: "(none)"
Fdt Ramdisk skip relocation
FDT load addr 0x10f00000 size 157 KiB
Booting kernel at 0x00280000 with fdt at 0x8300000...

## Booting Android Image at 0x0027f800 ...
Kernel load addr 0x00280000 size 17643 KiB
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   XIP Kernel Image ... OK
   Using Device Tree in place at 0000000008300000, end 000000000830a8ac
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
Total: 3832.498 ms

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 4.17.19-g17982fadb9b5-dirty (msw@msw-Z97M-D3H) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #2 SMP PREEMPT Thu Feb 20 21:41:51 CST 2020
[    0.000000] Machine model: Firefly roc-rk3328-cc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7efc8680-0x7efca17f]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000083fffff]
[    0.000000]   node   0: [mem 0x000000000a200000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] random: get_random_bytes called from start_kernel+0xa4/0x414 with crng_init=0
[    0.000000] percpu: Embedded 24 pages/cpu @        (ptrval) s57880 r8192 d32232 u98304
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 507912
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: storagemedia=emmc androidboot.mode=emmc androidboot.slot_suffix= androidboot.serialno=1cb27b34a6de9e11
[    0.000000] Memory: 1996516K/2064384K available (10236K kernel code, 1322K rwdata, 4808K rodata, 1216K init, 387K bss, 51484K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    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] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000981] Console: colour dummy device 80x25
[    0.001799] console [tty0] enabled
[    0.001918] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.001961] pid_max: default: 32768 minimum: 301
[    0.002096] Security Framework initialized
[    0.003422] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.004157] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.004240] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.004288] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.023937] ASID allocator initialised with 32768 entries
[    0.031924] Hierarchical SRCU implementation.
[    0.043241] EFI services will not be available.
[    0.048025] smp: Bringing up secondary CPUs ...
[    0.080306] Detected VIPT I-cache on CPU1
[    0.080387] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.112397] Detected VIPT I-cache on CPU2
[    0.112463] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.144512] Detected VIPT I-cache on CPU3
[    0.144577] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.144706] smp: Brought up 1 node, 4 CPUs
[    0.144842] SMP: Total of 4 processors activated.
[    0.144865] CPU features: detected: 32-bit EL0 Support
[    0.150221] CPU: All CPU(s) started at EL2
[    0.150269] alternatives: patching kernel code
[    0.151512] devtmpfs: initialized
[    0.161139] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.161254] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.162283] pinctrl core: initialized pinctrl subsystem
[    0.165449] DMI not present or invalid.
[    0.166109] NET: Registered protocol family 16
[    0.166738] audit: initializing netlink subsys (disabled)
[    0.166979] audit: type=2000 audit(0.164:1): state=initialized audit_enabled=0 res=1
[    0.177050] cpuidle: using governor menu
[    0.177689] vdso: 2 pages (1 code @         (ptrval), 1 data @         (ptrval))
[    0.177750] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.179451] DMA: preallocated 256 KiB pool for atomic allocations
[    0.181808] Serial: AMBA PL011 UART driver
[    0.226498] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.227217] cryptd: max_cpu_qlen set to 1000
[    0.228329] ACPI: Interpreter disabled.
[    0.231068] vcc_sys: supplied by dc_12v
[    0.231781] vcc_host1_5v: supplied by vcc_sys
[    0.232853] vgaarb: loaded
[    0.233400] SCSI subsystem initialized
[    0.234638] usbcore: registered new interface driver usbfs
[    0.234770] usbcore: registered new interface driver hub
[    0.234950] usbcore: registered new device driver usb
[    0.236379] pps_core: LinuxPPS API ver. 1 registered
[    0.236428] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.236495] PTP clock support registered
[    0.236807] EDAC MC: Ver: 3.0.0
[    0.238904] Advanced Linux Sound Architecture Driver Initialized.
[    0.240326] clocksource: Switched to clocksource arch_sys_counter
[    0.240639] VFS: Disk quotas dquot_6.6.0
[    0.240744] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.241009] pnp: PnP ACPI: disabled
[    0.255268] NET: Registered protocol family 2
[    0.256143] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)
[    0.256274] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.256639] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.257095] TCP: Hash tables configured (established 16384 bind 16384)
[    0.257363] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.257478] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.257802] NET: Registered protocol family 1
[    0.258456] RPC: Registered named UNIX socket transport module.
[    0.258492] RPC: Registered udp transport module.
[    0.258512] RPC: Registered tcp transport module.
[    0.258531] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.259837] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.260211] kvm [1]: 8-bit VMID
[    0.261802] kvm [1]: vgic interrupt IRQ1
[    0.261988] kvm [1]: Hyp mode initialized successfully
[    0.267672] Initialise system trusted keyrings
[    0.267942] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    0.280283] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.281775] NFS: Registering the id_resolver key type
[    0.281853] Key type id_resolver registered
[    0.281874] Key type id_legacy registered
[    0.281908] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.282221] 9p: Installing v9fs 9p2000 file system support
[    0.282461] pstore: using deflate compression
[    0.286786] Key type asymmetric registered
[    0.286830] Asymmetric key parser 'x509' registered
[    0.287202] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.287256] io scheduler noop registered
[    0.287276] io scheduler deadline registered
[    0.287690] io scheduler cfq registered (default)
[    0.287734] io scheduler mq-deadline registered
[    0.287755] io scheduler kyber registered
[    0.301739] EINJ: ACPI disabled.
[    0.309296] dma-pl330 ff1f0000.dmac: Loaded driver for PL330 DMAC-241330
[    0.309352] dma-pl330 ff1f0000.dmac:         DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    0.320257] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.324484] ff130000.serial: ttyS2 at MMIO 0xff130000 (irq = 12, base_baud = 1500000) is a 16550A
[    0.394780] console [ttyS2] enabled
[    0.396965] SuperH (H)SCI(F) driver initialized
[    0.398012] msm_serial: driver initialized
[    0.412526] loop: module loaded
[    0.419754] libphy: Fixed MDIO Bus: probed
[    0.420997] tun: Universal TUN/TAP device driver, 1.6
[    0.423085] thunder_xcv, ver 1.0
[    0.423492] thunder_bgx, ver 1.0
[    0.423868] nicpf, ver 1.0
[    0.424868] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.425422] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.426051] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    0.426685] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.427275] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.427989] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.429242] sky2: driver version 1.30
[    0.430903] VFIO - User Level meta-driver version: 0.3
[    0.432950] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[    0.433812] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[    0.568424] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    0.570550] dwc2 ff580000.usb: DWC OTG Controller
[    0.571042] dwc2 ff580000.usb: new USB bus registered, assigned bus number 1
[    0.571738] dwc2 ff580000.usb: irq 26, io mem 0xff580000
[    0.573306] hub 1-0:1.0: USB hub found
[    0.573719] hub 1-0:1.0: 1 port detected
[    0.575825] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.576485] ehci-pci: EHCI PCI platform driver
[    0.576993] ehci-platform: EHCI generic platform driver
[    0.579977] ehci-platform ff5c0000.usb: EHCI Host Controller
[    0.580569] ehci-platform ff5c0000.usb: new USB bus registered, assigned bus number 2
[    0.581764] ehci-platform ff5c0000.usb: irq 27, io mem 0xff5c0000
[    0.596349] ehci-platform ff5c0000.usb: USB 2.0 started, EHCI 1.00
[    0.597926] hub 2-0:1.0: USB hub found
[    0.598348] hub 2-0:1.0: 1 port detected
[    0.599360] ehci-orion: EHCI orion driver
[    0.600014] ehci-exynos: EHCI EXYNOS driver
[    0.600697] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.601309] ohci-pci: OHCI PCI platform driver
[    0.601831] ohci-platform: OHCI generic platform driver
[    0.602698] ohci-platform ff5d0000.usb: Generic Platform OHCI controller
[    0.603342] ohci-platform ff5d0000.usb: new USB bus registered, assigned bus number 3
[    0.604524] ohci-platform ff5d0000.usb: irq 28, io mem 0xff5d0000
[    0.669476] hub 3-0:1.0: USB hub found
[    0.669896] hub 3-0:1.0: 1 port detected
[    0.670899] ohci-exynos: OHCI EXYNOS driver
[    0.672515] usbcore: registered new interface driver usb-storage
[    0.678400] i2c /dev entries driver
[    0.682350] rk808 1-0018: chip id: 0x8050
[    0.691251] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    0.691862] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    0.692544] DCDC_REG1: supplied by vcc_sys
[    0.695650] DCDC_REG2: supplied by vcc_sys
[    0.697695] DCDC_REG3: supplied by vcc_sys
[    0.698431] DCDC_REG4: supplied by vcc_sys
[    0.700162] LDO_REG1: supplied by vcc_io
[    0.704152] LDO_REG2: supplied by vcc_io
[    0.708133] LDO_REG3: supplied by vcc_io
[    0.714023] rk3x-i2c ff160000.i2c: Initialized RK3xxx I2C bus at         (ptrval)
[    0.724063] sdhci: Secure Digital Host Controller Interface driver
[    0.724672] sdhci: Copyright(c) Pierre Ossman
[    0.725587] Synopsys Designware Multimedia Card Interface Driver
[    0.727330] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.728255] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.728894] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.729481] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fifo
[    0.730389] vcc_sd: supplied by vcc_io
[    0.743712] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.758104] dwmmc_rockchip ff520000.dwmmc: IDMAC supports 32-bit address mode.
[    0.758962] dwmmc_rockchip ff520000.dwmmc: Using internal DMA controller.
[    0.759572] dwmmc_rockchip ff520000.dwmmc: Version ID is 270a
[    0.760149] dwmmc_rockchip ff520000.dwmmc: DW MMC controller at irq 24,32 bit host data width,256 deep fifo
[    0.761134] mmc_host mmc1: card is non-removable.
[    0.772451] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.786685] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.788909] ledtrig-cpu: registered to indicate activity on CPUs
[    0.790940] usbcore: registered new interface driver usbhid
[    0.791546] usbhid: USB HID core driver
[    0.795877] NET: Registered protocol family 17
[    0.796440] 9pnet: Installing 9P2000 support
[    0.796951] Key type dns_resolver registered
[    0.798201] registered taskstats version 1
[    0.798615] Loading compiled-in X.509 certificates
[    0.810842] hctosys: unable to open rtc device (rtc0)
[    0.812778] vcc_sd: disabling
[    0.813080] ALSA device list:
[    0.813344]   No soundcards found.
[    0.814024] ttyS2 - failed to request DMA
[    0.814646] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.815312] Please append a correct "root=" boot option; here are the available partitions:
[    0.816058] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.816795] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.17.19-g17982fadb9b5-dirty #2
[    0.817477] Hardware name: Firefly roc-rk3328-cc (DT)
[    0.817928] Call trace:
[    0.818165]  dump_backtrace+0x0/0x198
[    0.818494]  show_stack+0x14/0x20
[    0.818793]  dump_stack+0x98/0xbc
[    0.819096]  panic+0x12c/0x29c
[    0.819375]  mount_block_root+0x188/0x274
[    0.819732]  mount_root+0x144/0x178
[    0.820046]  prepare_namespace+0x138/0x180
[    0.820413]  kernel_init_freeable+0x208/0x22c
[    0.820805]  kernel_init+0x10/0x108
[    0.821118]  ret_from_fork+0x10/0x18
[    0.821445] SMP: stopping secondary CPUs
[    0.821798] Kernel Offset: disabled
[    0.822112] CPU features: 0x20802004
[    0.822432] Memory Limit: none
[    0.822714] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

看你这个打印信息,貌似是没有加载到这个根文件系统。
你用的dts文件是自己的还是官方的?
官方的dts文件是在chosen节点,有包含root的挂载地址这样。

Lazyfan 发表于 2020-2-24 14:55
看你这个打印信息,貌似是没有加载到这个根文件系统。
你用的dts文件是自己的还是官方的?
官方的dts文件 …

是的,总是找不到分区,不过今天把它解决了,就是给内核添加启动参数,指明root分区。
不过又出现了新的问题。

添加启动参数之后运行结果
chosen {
	bootargs = "root=/dev/mmcblk0p5 rw rootfstype=ext4 rootwait systemd.gpt_auto=0";
	stdout-path = "serial2:1500000n8";
};

DDR version 1.13 20180428
ID:0x805 N
In
DDR4
333MHz
Bus Width=32 Col=10 Bank=4 Bank Group=2 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
ddrconfig:19
OUT
Boot1 Release Time: Sep  7 2018 15:49:55, version: 2.49
ChipType = 0x11, 207
mmc2:cmd19,100
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=14910MB
FwPartOffset=2000 , 2000
SdmmcInit=0 NOT PRESENT
StorageInit ok = 19195
Raw SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
GPT part:  0, name:            uboot, start:0x4000, size:0x2000
GPT part:  1, name:            trust, start:0x6000, size:0x2000
GPT part:  2, name:             boot, start:0xa000, size:0x10000
GPT part:  3, name:           backup, start:0x2a000, size:0x10000
GPT part:  4, name:           rootfs, start:0x5a000, size:0x1cc4fdf
find partition:uboot OK. first_lba:0x4000.
find partition:trust OK. first_lba:0x6000.
LoadTrust Addr:0x6000
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0xce990
RunBL31 0x10000
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-194-g646eecc5 #61 Wed Dec  5 06:31:51 UTC 20)

INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.4

INF [0x0] TEE-CORE:init_teecore:83: teecore inits done

U-Boot 2017.09-g0b1f585323-dirty (Feb 24 2020 - 18:54:01 +0800)

Model: Firefly ROC-RK3328-CC
DRAM:  2 GiB
Relocation Offset is: 7dbf5000
Sysmem: init
Using default environment

rksdmmc@ff500000: 1, rksdmmc@ff520000: 0
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0(part 0) is current device
Bootdev: mmc 0
PartType: EFI
get part misc fail -1
boot mode: None
Load FDT from boot part
DTB: rk-kernel.dtb
In:    serial
Out:   serial
Err:   serial
Model: Firefly roc-rk3328-cc
rockchip_dnl_key_pressed adc_channel_single_shot fail! ret=-22
CLK: (sync kernel. arm: enter 600000 KHz, init 600000 KHz, kernel 0N/A)
  apll 400000 KHz
  dpll 664000 KHz
  cpll 1200000 KHz
  gpll 491009 KHz
  npll 600000 KHz
  armclk 600000 KHz
  aclk_bus 150000 KHz
  hclk_bus 75000 KHz
  pclk_bus 75000 KHz
  aclk_peri 150000 KHz
  hclk_peri 75000 KHz
  pclk_peri 75000 KHz
Net:
Warning: ethernet@ff540000 (eth0) using random MAC address - be:93:4b:db:0e:d4
eth0: ethernet@ff540000
Hit key to stop autoboot('CTRL+C'):  0
android_bootloader_boot_flow Could not find misc partition
ANDROID: reboot reason: "(none)"
Fdt Ramdisk skip relocation
FDT load addr 0x10f00000 size 34 KiB
Booting kernel at 0x00280000 with fdt at 0x8300000...

## Booting Android Image at 0x0027f800 ...
Kernel load addr 0x00280000 size 16257 KiB
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   XIP Kernel Image ... OK
   Using Device Tree in place at 0000000008300000, end 000000000830b25a
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
Total: 3800.934 ms

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 4.20.0 (msw@msw-Z97M-D3H) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05))0
[    0.000000] Machine model: Firefly roc-rk3328-cc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7dfc7840-0x7dfc8fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000083fffff]
[    0.000000]   node   0: [mem 0x000000000a200000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] random: get_random_bytes called from start_kernel+0xa4/0x414 with crng_init=0
[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s55384 r8192 d30632 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 507912
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: storagemedia=emmc androidboot.mode=emmc androidboot.slot_suffix= android4
[    0.000000] Memory: 1981312K/2064384K available (10876K kernel code, 704K rwdata, 3572K rodata, 1024K ini)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    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] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    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: 4s
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000959] Console: colour dummy device 80x25
[    0.001821] printk: console [tty0] enabled
[    0.001965] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lp)
[    0.002007] pid_max: default: 32768 minimum: 301
[    0.002155] LSM: Security Framework initializing
[    0.003543] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.004298] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.004381] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.004432] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.027928] ASID allocator initialised with 32768 entries
[    0.035910] rcu: Hierarchical SRCU implementation.
[    0.045586] EFI services will not be available.
[    0.052002] smp: Bringing up secondary CPUs ...
[    0.084257] Detected VIPT I-cache on CPU1
[    0.084339] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.116346] Detected VIPT I-cache on CPU2
[    0.116417] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.148451] Detected VIPT I-cache on CPU3
[    0.148519] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.148641] smp: Brought up 1 node, 4 CPUs
[    0.148782] SMP: Total of 4 processors activated.
[    0.148806] CPU features: detected: 32-bit EL0 Support
[    0.148829] CPU features: detected: CRC32 instructions
[    0.152452] CPU: All CPU(s) started at EL2
[    0.152498] alternatives: patching kernel code
[    0.154088] devtmpfs: initialized
[    0.164679] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 s
[    0.164774] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.166689] xor: measuring software checksum speed
[    0.204578]    8regs     :  1152.000 MB/sec
[    0.244637]    8regs_prefetch:  1026.000 MB/sec
[    0.284705]    32regs    :  1415.000 MB/sec
[    0.324766]    32regs_prefetch:  1191.000 MB/sec
[    0.324789] xor: using function: 32regs (1415.000 MB/sec)
[    0.324825] pinctrl core: initialized pinctrl subsystem
[    0.326831] DMI not present or invalid.
[    0.327404] NET: Registered protocol family 16
[    0.328155] audit: initializing netlink subsys (disabled)
[    0.328413] audit: type=2000 audit(0.324:1): state=initialized audit_enabled=0 res=1
[    0.333416] cpuidle: using governor menu
[    0.334048] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.334107] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.335884] DMA: preallocated 256 KiB pool for atomic allocations
[    0.337297] Serial: AMBA PL011 UART driver
[    0.380885] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.382168] cryptd: max_cpu_qlen set to 1000
[    0.450148] raid6: int64x1  gen()   206 MB/s
[    0.518119] raid6: int64x1  xor()   222 MB/s
[    0.586235] raid6: int64x2  gen()   328 MB/s
[    0.654275] raid6: int64x2  xor()   299 MB/s
[    0.722465] raid6: int64x4  gen()   493 MB/s
[    0.790537] raid6: int64x4  xor()   370 MB/s
[    0.858727] raid6: int64x8  gen()   574 MB/s
[    0.926827] raid6: int64x8  xor()   373 MB/s
[    0.994914] raid6: neonx1   gen()   363 MB/s
[    1.063023] raid6: neonx1   xor()   425 MB/s
[    1.131094] raid6: neonx2   gen()   581 MB/s
[    1.199200] raid6: neonx2   xor()   602 MB/s
[    1.267282] raid6: neonx4   gen()   752 MB/s
[    1.335384] raid6: neonx4   xor()   720 MB/s
[    1.403537] raid6: neonx8   gen()   798 MB/s
[    1.471623] raid6: neonx8   xor()   755 MB/s
[    1.471643] raid6: using algorithm neonx8 gen() 798 MB/s
[    1.471666] raid6: .... xor() 755 MB/s, rmw enabled
[    1.471687] raid6: using neon recovery algorithm
[    1.472409] ACPI: Interpreter disabled.
[    1.473640] sdmmc-regulator GPIO handle specifies active low - ignored
[    1.474833] vcc_sys: supplied by dc_12v
[    1.475629] vcc_host1_5v: supplied by vcc_sys
[    1.477137] vgaarb: loaded
[    1.477681] SCSI subsystem initialized
[    1.478669] usbcore: registered new interface driver usbfs
[    1.478812] usbcore: registered new interface driver hub
[    1.479067] usbcore: registered new device driver usb
[    1.479838] pps_core: LinuxPPS API ver. 1 registered
[    1.479884] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.479951] PTP clock support registered
[    1.480256] EDAC MC: Ver: 3.0.0
[    1.481648] Advanced Linux Sound Architecture Driver Initialized.
[    1.483276] clocksource: Switched to clocksource arch_sys_counter
[    1.483853] pnp: PnP ACPI: disabled
[    1.496346] NET: Registered protocol family 2
[    1.497282] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)
[    1.497406] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    1.497688] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    1.498089] TCP: Hash tables configured (established 16384 bind 16384)
[    1.498338] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    1.498458] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    1.498769] NET: Registered protocol family 1
[    1.499533] RPC: Registered named UNIX socket transport module.
[    1.499574] RPC: Registered udp transport module.
[    1.499593] RPC: Registered tcp transport module.
[    1.499613] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.501012] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    1.501423] kvm [1]: 8-bit VMID
[    1.501456] kvm [1]: IPA Size Limit: 40bits
[    1.502369] kvm [1]: vgic interrupt IRQ1
[    1.502544] kvm [1]: Hyp mode initialized successfully
[    1.513061] Initialise system trusted keyrings
[    1.513355] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    1.526095] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.527741] NFS: Registering the id_resolver key type
[    1.527815] Key type id_resolver registered
[    1.527835] Key type id_legacy registered
[    1.527866] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.528197] SGI XFS with security attributes, no debug enabled
[    1.530913] 9p: Installing v9fs 9p2000 file system support
[    1.539673] Key type asymmetric registered
[    1.539719] Asymmetric key parser 'x509' registered
[    1.539829] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.539862] io scheduler noop registered
[    1.539883] io scheduler deadline registered
[    1.540188] io scheduler cfq registered (default)
[    1.540225] io scheduler mq-deadline registered
[    1.540247] io scheduler kyber registered
[    1.546751] EINJ: ACPI disabled.
[    1.551876] dma-pl330 ff1f0000.dmac: Loaded driver for PL330 DMAC-241330
[    1.551943] dma-pl330 ff1f0000.dmac:         DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    1.559026] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.562553] ff130000.serial: ttyS2 at MMIO 0xff130000 (irq = 12, base_baud = 1500000) is a 16550A
[    1.646425] printk: console [ttyS2] enabled
[    1.662673] loop: module loaded
[    1.667418] libphy: Fixed MDIO Bus: probed
[    1.668848] tun: Universal TUN/TAP device driver, 1.6
[    1.670477] thunder_xcv, ver 1.0
[    1.670886] thunder_bgx, ver 1.0
[    1.671353] nicpf, ver 1.0
[    1.672349] hclge is initializing
[    1.672688] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.673341] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.673924] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    1.674463] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.675067] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    1.675732] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.676325] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    1.677040] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.677872] sky2: driver version 1.30
[    1.678945] VFIO - User Level meta-driver version: 0.3
[    1.680862] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[    1.681724] dwc2 ff580000.usb: Linked as a consumer to regulator.0
[    1.682297] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[    1.811419] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    1.813724] dwc2 ff580000.usb: DWC OTG Controller
[    1.814211] dwc2 ff580000.usb: new USB bus registered, assigned bus number 1
[    1.814902] dwc2 ff580000.usb: irq 26, io mem 0xff580000
[    1.816451] hub 1-0:1.0: USB hub found
[    1.816868] hub 1-0:1.0: 1 port detected
[    1.818984] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.819646] ehci-pci: EHCI PCI platform driver
[    1.820160] ehci-platform: EHCI generic platform driver
[    1.823076] ehci-platform ff5c0000.usb: EHCI Host Controller
[    1.823651] ehci-platform ff5c0000.usb: new USB bus registered, assigned bus number 2
[    1.824942] ehci-platform ff5c0000.usb: irq 27, io mem 0xff5c0000
[    1.839306] ehci-platform ff5c0000.usb: USB 2.0 started, EHCI 1.00
[    1.840883] hub 2-0:1.0: USB hub found
[    1.841314] hub 2-0:1.0: 1 port detected
[    1.842330] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.842949] ohci-pci: OHCI PCI platform driver
[    1.843519] ohci-platform: OHCI generic platform driver
[    1.844408] ohci-platform ff5d0000.usb: Generic Platform OHCI controller
[    1.845046] ohci-platform ff5d0000.usb: new USB bus registered, assigned bus number 3
[    1.846164] ohci-platform ff5d0000.usb: irq 28, io mem 0xff5d0000
[    1.908394] hub 3-0:1.0: USB hub found
[    1.908842] hub 3-0:1.0: 1 port detected
[    1.910607] usbcore: registered new interface driver usb-storage
[    1.914567] i2c /dev entries driver
[    1.917660] rk808 1-0018: chip id: 0x8050
[    1.926311] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    1.926927] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    1.927642] DCDC_REG1: supplied by vcc_sys
[    1.930652] DCDC_REG2: supplied by vcc_sys
[    1.932747] DCDC_REG3: supplied by vcc_sys
[    1.933477] DCDC_REG4: supplied by vcc_sys
[    1.935168] LDO_REG1: supplied by vcc_io
[    1.939230] LDO_REG2: supplied by vcc_io
[    1.943304] LDO_REG3: supplied by vcc_io
[    1.949231] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.9
[    1.950621] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.11
[    1.951534] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.11
[    1.952365] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.9
[    1.955429] cpu cpu0: Linked as a consumer to regulator.7
[    1.956007] cpu cpu0: Dropping the link to regulator.7
[    1.956697] cpu cpu0: Linked as a consumer to regulator.7
[    1.959525] sdhci: Secure Digital Host Controller Interface driver
[    1.960102] sdhci: Copyright(c) Pierre Ossman
[    1.960761] Synopsys Designware Multimedia Card Interface Driver
[    1.962421] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    1.963451] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    1.964074] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    1.964660] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fio
[    1.965579] vcc_sd: supplied by vcc_io
[    1.966040] dwmmc_rockchip ff500000.dwmmc: Linked as a consumer to regulator.2
[    1.966773] dwmmc_rockchip ff500000.dwmmc: Dropping the link to regulator.2
[    1.968387] dwmmc_rockchip ff520000.dwmmc: IDMAC supports 32-bit address mode.
[    1.969228] dwmmc_rockchip ff520000.dwmmc: Using internal DMA controller.
[    1.969838] dwmmc_rockchip ff520000.dwmmc: Version ID is 270a
[    1.970397] dwmmc_rockchip ff520000.dwmmc: DW MMC controller at irq 24,32 bit host data width,256 deep fio
[    1.971433] mmc_host mmc0: card is non-removable.
[    1.983363] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    1.995562] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.996878] ledtrig-cpu: registered to indicate activity on CPUs
[    1.998933] usbcore: registered new interface driver usbhid
[    1.999540] usbhid: USB HID core driver
[    2.002658] NET: Registered protocol family 17
[    2.003386] 9pnet: Installing 9P2000 support
[    2.003878] Key type dns_resolver registered
[    2.005099] registered taskstats version 1
[    2.005513] Loading compiled-in X.509 certificates
[    2.007462] Btrfs loaded, crc32c=crc32c-generic
[    2.021629] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.9
[    2.022946] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.11
[    2.023828] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.11
[    2.024611] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.9
[    2.026415] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    2.027505] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    2.028151] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    2.028714] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fio
[    2.029747] dwmmc_rockchip ff500000.dwmmc: Linked as a consumer to regulator.2
[    2.030490] dwmmc_rockchip ff500000.dwmmc: Dropping the link to regulator.2
[    2.032312] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.9
[    2.033656] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.11
[    2.034493] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.11
[    2.035338] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.9
[    2.037173] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    2.038261] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    2.038882] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    2.039452] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fio
[    2.040428] dwmmc_rockchip ff500000.dwmmc: Linked as a consumer to regulator.2
[    2.041162] dwmmc_rockchip ff500000.dwmmc: Dropping the link to regulator.2
[    2.042381] hctosys: unable to open rtc device (rtc0)
[    2.044215] vcc_sd: disabling
[    2.044551] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = )
[    2.045535] ALSA device list:
[    2.045813]   No soundcards found.
[    2.046171] mmc0: new high speed MMC card at address 0001
[    2.048305] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB
[    2.049796] mmcblk0boot0: mmc0:0001 AJTD4R partition 1 4.00 MiB
[    2.051439] mmcblk0boot1: mmc0:0001 AJTD4R partition 2 4.00 MiB
[    2.052280] mmcblk0rpmb: mmc0:0001 AJTD4R partition 3 4.00 MiB, chardev (244:0)
[    2.056281]  mmcblk0: p1 p2 p3 p4 p5
[    2.060806] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.9
[    2.062185] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.11
[    2.063092] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.11
[    2.063235] random: fast init done
[    2.063948] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.9
[    2.065809] EXT4-fs (mmcblk0p5): recovery complete
[    2.066156] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    2.066272] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    2.067818] VFS: Mounted root (ext4 filesystem) on device 179:5.
[    2.067861] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    2.068970] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    2.069546] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fio
[    2.070166] devtmpfs: mounted
[    2.070528] dwmmc_rockchip ff500000.dwmmc: Linked as a consumer to regulator.2
[    2.071369] Freeing unused kernel memory: 1024K
[    2.071896] dwmmc_rockchip ff500000.dwmmc: Dropping the link to regulator.2
[    2.107313] Run /sbin/init as init process
[    2.427122] systemd[1]: System time before build time, advancing clock.
[    2.456245] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +)
[    2.458577] systemd[1]: Code should not be reached 'Couldn't identify architecture. You need to patch sys.
[    2.461734] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005
[    2.462444] CPU: 2 PID: 1 Comm: systemd Not tainted 4.20.0 #1
[    2.462953] Hardware name: Firefly roc-rk3328-cc (DT)
[    2.463401] Call trace:
[    2.463641]  dump_backtrace+0x0/0x158
[    2.463970]  show_stack+0x14/0x20
[    2.464270]  dump_stack+0x8c/0xac
[    2.464573]  panic+0x13c/0x2ac
[    2.464851]  do_exit+0x994/0x998
[    2.465143]  do_group_exit+0x34/0x98
[    2.465466]  get_signal+0x1d8/0x480
[    2.465782]  do_notify_resume+0x2ac/0x390
[    2.466141]  work_pending+0x8/0x10
[    2.466453] SMP: stopping secondary CPUs
[    2.466809] Kernel Offset: disabled
[    2.467122] CPU features: 0x2,20802004
[    2.467455] Memory Limit: none
[    2.467737] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005 ]---

Lazyfan 发表于 2020-2-24 14:55
看你这个打印信息,貌似是没有加载到这个根文件系统。
你用的dts文件是自己的还是官方的?
官方的dts文件 …

dts文件是linux kernel自带的,不是Firefly提供的,少了很多,只有rk3328.dtsi和rk3328-roc-cc.dts。

ifuxiao.net 发表于 2020-2-24 22:49
dts文件是linux kernel自带的,不是Firefly提供的,少了很多,只有rk3328.dtsi和rk3328-roc-cc.dts。

最后一行的exitcode值应该是关键,但是我不知道这个值是代表什么意思。
你试试用官方的启动参数,看看行不行?
chosen {
bootargs = “rockchip_jtag earlyprintk=uart8250-32bit,0xff130000 swiotlb=1 kpti=0 console=ttyFIQ0 rw root=PARTUUID=614e0000-0000 roo tfstype=ext4 rootwait systemd.gpt_auto=0”;
stdout-path = “serial2:1500000n8”;
};

Lazyfan 发表于 2020-2-25 09:48
最后一行的exitcode值应该是关键,但是我不知道这个值是代表什么意思。
你试试用官方的启动参数,看看行 …

今天上午已经解决了,是因为我用firefly提供的arch/arm64/Makefile 替换了系统自带的文件,它们之间有许多变量定义不一样,所以造成了系统不识别的问题。今天已经进行了多次实验,linux5.20.0、linux5.5.0均已通过。但现在新的问题又出现了,就是显示器没有显示,除了检查到有HDMI信号外,没有任何反应。

# 1. 修改SDK根目录(即kernel根目录)下ARCH类型和交叉编译器位置
# 2. 修改arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts,添加内核启动参数
	bootargs = "root=/dev/mmcblk0p5 rw rootfstype=ext4 rootwait systemd.gpt_auto=0";
# 3. 拷贝logo.bmp到SDK根目录(即kernel根目录)
# 4.手动生成boot.img及resource.img
	利用firefly提供的mkkrnlimg、resource_tool及mkbootimg三个工具(在firefly提供的linux-sdk/kernel/scripts目录下),手动生成boot.img和resource.img。在此之前必须先执行./build.sh kernel,完成kernel编译,否则会报找不文件的错误。
# 说明
	1. 这里之所以没有修改arch/arm64/Makefile,是因为加入自动生成代码后一致报错,在不修改原代码的情况下没有解决,因此改为手动生成boot.img和resource.img两人个文件。
	2. 切记:arch/arm64/Makefile不要用firefly提供的linux-sdk中的相应文件替换,由于版本不一样,两人文件一些变量定义不一样,虽然可以编译通过,
	但会出现无法识别系统结构类型的错误,在不清楚的情况下,只需要将自动boot生成代码加到文件尾部即可,或手动生成需要的文件,切记!切记!切记。
	3. 目前已经实验了linux4.20.0和linux5.5.0,均以实现正常启动(除显示问题外)。
	3. 目前还有显示器不显示的问题没有解决。

DDR version 1.13 20180428
ID:0x805 N
In
DDR4
333MHz
Bus Width=32 Col=10 Bank=4 Bank Group=2 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
ddrconfig:19
OUT
Boot1 Release Time: Sep  7 2018 15:49:55, version: 2.49
ChipType = 0x11, 207
mmc2:cmd19,100
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=14910MB
FwPartOffset=2000 , 2000
SdmmcInit=0 NOT PRESENT
StorageInit ok = 19179
Raw SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
GPT part:  0, name:            uboot, start:0x4000, size:0x2000
GPT part:  1, name:            trust, start:0x6000, size:0x2000
GPT part:  2, name:             boot, start:0xa000, size:0x10000
GPT part:  3, name:           backup, start:0x2a000, size:0x10000
GPT part:  4, name:           rootfs, start:0x5a000, size:0x1cc4fdf
find partition:uboot OK. first_lba:0x4000.
find partition:trust OK. first_lba:0x6000.
LoadTrust Addr:0x6000
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0xce990
RunBL31 0x10000
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-194-g646eecc5 #61 Wed Dec  5 06:31:51 UTC 2018 aa)

INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.4

INF [0x0] TEE-CORE:init_teecore:83: teecore inits done

U-Boot 2017.09-g0b1f585323-dirty (Feb 25 2020 - 12:02:54 +0800)

Model: Firefly ROC-RK3328-CC
DRAM:  2 GiB
Relocation Offset is: 7dbf5000
Sysmem: init
Using default environment

rksdmmc@ff500000: 1, rksdmmc@ff520000: 0
Card did not respond to voltage select!
mmc_init: -95, time 9
GPT: my_lba incorrect: 4E494843414D0A31 != 1d1efff
GPT: my_lba incorrect: 4E494843414D0A31 != 1d1efff
Repair the backup gpt table OK!
Repair the backup gpt table OK!
switch to partitions #0, OK
mmc0(part 0) is current device
Bootdev: mmc 0
PartType: EFI
get part misc fail -1
boot mode: None
Load FDT from boot part
DTB: rk-kernel.dtb
In:    serial
Out:   serial
Err:   serial
Model: Firefly roc-rk3328-cc
rockchip_dnl_key_pressed adc_channel_single_shot fail! ret=-22
CLK: (sync kernel. arm: enter 600000 KHz, init 600000 KHz, kernel 0N/A)
  apll 400000 KHz
  dpll 664000 KHz
  cpll 1200000 KHz
  gpll 491009 KHz
  npll 600000 KHz
  armclk 600000 KHz
  aclk_bus 150000 KHz
  hclk_bus 75000 KHz
  pclk_bus 75000 KHz
  aclk_peri 150000 KHz
  hclk_peri 75000 KHz
  pclk_peri 75000 KHz
Net:
Warning: ethernet@ff540000 (eth0) using random MAC address - 0e:1a:d8:2a:e3:fd
eth0: ethernet@ff540000
Hit key to stop autoboot('CTRL+C'):  0
android_bootloader_boot_flow Could not find misc partition
ANDROID: reboot reason: "(none)"
Fdt Ramdisk skip relocation
FDT load addr 0x10f00000 size 160 KiB
Booting kernel at 0x00280000 with fdt at 0x8300000...

## Booting Android Image at 0x0027f800 ...
Kernel load addr 0x00280000 size 18695 KiB
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   XIP Kernel Image ... OK
   Using Device Tree in place at 0000000008300000, end 000000000830b25e
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
Total: 3901.546 ms

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 4.20.0 (msw@msw-Z97M-D3H) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #1 S0
[    0.000000] Machine model: Firefly roc-rk3328-cc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7dfc7840-0x7dfc8fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000083fffff]
[    0.000000]   node   0: [mem 0x000000000a200000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] random: get_random_bytes called from start_kernel+0xa4/0x414 with crng_init=0
[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s55704 r8192 d30312 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 507912
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: storagemedia=emmc androidboot.mode=emmc androidboot.slot_suffix= androidboot.0
[    0.000000] Memory: 1978876K/2064384K available (10748K kernel code, 1414K rwdata, 5100K rodata, 1344K init, 3)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    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] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    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: 440795s
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001195] Console: colour dummy device 80x25
[    0.002036] printk: console [tty0] enabled
[    0.002198] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=960)
[    0.002239] pid_max: default: 32768 minimum: 301
[    0.002384] LSM: Security Framework initializing
[    0.003821] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.004528] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.004612] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.004659] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.027921] ASID allocator initialised with 32768 entries
[    0.035906] rcu: Hierarchical SRCU implementation.
[    0.047426] EFI services will not be available.
[    0.052004] smp: Bringing up secondary CPUs ...
[    0.084263] Detected VIPT I-cache on CPU1
[    0.084342] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.116350] Detected VIPT I-cache on CPU2
[    0.116417] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.148445] Detected VIPT I-cache on CPU3
[    0.148507] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.148630] smp: Brought up 1 node, 4 CPUs
[    0.148760] SMP: Total of 4 processors activated.
[    0.148784] CPU features: detected: 32-bit EL0 Support
[    0.148806] CPU features: detected: CRC32 instructions
[    0.152466] CPU: All CPU(s) started at EL2
[    0.152517] alternatives: patching kernel code
[    0.154076] devtmpfs: initialized
[    0.164582] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.164706] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.166606] pinctrl core: initialized pinctrl subsystem
[    0.169806] DMI not present or invalid.
[    0.170587] NET: Registered protocol family 16
[    0.171443] audit: initializing netlink subsys (disabled)
[    0.171729] audit: type=2000 audit(0.168:1): state=initialized audit_enabled=0 res=1
[    0.174672] cpuidle: using governor menu
[    0.175499] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.175555] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.178019] DMA: preallocated 256 KiB pool for atomic allocations
[    0.180434] Serial: AMBA PL011 UART driver
[    0.229589] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.230292] cryptd: max_cpu_qlen set to 1000
[    0.231663] ACPI: Interpreter disabled.
[    0.233390] sdmmc-regulator GPIO handle specifies active low - ignored
[    0.234611] vcc_sys: supplied by dc_12v
[    0.235313] vcc_host1_5v: supplied by vcc_sys
[    0.237006] vgaarb: loaded
[    0.237812] SCSI subsystem initialized
[    0.238832] usbcore: registered new interface driver usbfs
[    0.238979] usbcore: registered new interface driver hub
[    0.239165] usbcore: registered new device driver usb
[    0.240614] pps_core: LinuxPPS API ver. 1 registered
[    0.240659] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.240758] PTP clock support registered
[    0.241068] EDAC MC: Ver: 3.0.0
[    0.243181] Advanced Linux Sound Architecture Driver Initialized.
[    0.244648] clocksource: Switched to clocksource arch_sys_counter
[    0.244936] VFS: Disk quotas dquot_6.6.0
[    0.245043] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.245437] pnp: PnP ACPI: disabled
[    0.260886] NET: Registered protocol family 2
[    0.261885] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)
[    0.262012] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.262310] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.262713] TCP: Hash tables configured (established 16384 bind 16384)
[    0.262963] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.263098] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.263405] NET: Registered protocol family 1
[    0.264059] RPC: Registered named UNIX socket transport module.
[    0.264090] RPC: Registered udp transport module.
[    0.264110] RPC: Registered tcp transport module.
[    0.264128] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.265983] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.266367] kvm [1]: 8-bit VMID
[    0.266398] kvm [1]: IPA Size Limit: 40bits
[    0.267510] kvm [1]: vgic interrupt IRQ1
[    0.267686] kvm [1]: Hyp mode initialized successfully
[    0.277760] Initialise system trusted keyrings
[    0.278039] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    0.291002] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.292395] NFS: Registering the id_resolver key type
[    0.292470] Key type id_resolver registered
[    0.292491] Key type id_legacy registered
[    0.292522] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.292928] 9p: Installing v9fs 9p2000 file system support
[    0.302918] Key type asymmetric registered
[    0.302961] Asymmetric key parser 'x509' registered
[    0.303070] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.303105] io scheduler noop registered
[    0.303125] io scheduler deadline registered
[    0.303433] io scheduler cfq registered (default)
[    0.303465] io scheduler mq-deadline registered
[    0.303486] io scheduler kyber registered
[    0.319837] EINJ: ACPI disabled.
[    0.328131] dma-pl330 ff1f0000.dmac: Loaded driver for PL330 DMAC-241330
[    0.328188] dma-pl330 ff1f0000.dmac:         DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    0.340311] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.345043] ff130000.serial: ttyS2 at MMIO 0xff130000 (irq = 12, base_baud = 1500000) is a 16550A
[    0.419296] printk: console [ttyS2] enabled
[    0.421788] SuperH (H)SCI(F) driver initialized
[    0.422884] msm_serial: driver initialized
[    0.438418] loop: module loaded
[    0.446800] libphy: Fixed MDIO Bus: probed
[    0.448228] tun: Universal TUN/TAP device driver, 1.6
[    0.450400] thunder_xcv, ver 1.0
[    0.450813] thunder_bgx, ver 1.0
[    0.451195] nicpf, ver 1.0
[    0.452298] hclge is initializing
[    0.452704] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    0.453366] hns3: Copyright (c) 2017 Huawei Corporation.
[    0.453953] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.454488] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.455095] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    0.455729] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.456302] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.457051] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.458423] sky2: driver version 1.30
[    0.460169] VFIO - User Level meta-driver version: 0.3
[    0.462601] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[    0.463468] dwc2 ff580000.usb: Linked as a consumer to regulator.0
[    0.464042] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[    0.592737] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    0.595191] dwc2 ff580000.usb: DWC OTG Controller
[    0.595681] dwc2 ff580000.usb: new USB bus registered, assigned bus number 1
[    0.596373] dwc2 ff580000.usb: irq 26, io mem 0xff580000
[    0.597859] hub 1-0:1.0: USB hub found
[    0.598282] hub 1-0:1.0: 1 port detected
[    0.600457] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.601126] ehci-pci: EHCI PCI platform driver
[    0.601635] ehci-platform: EHCI generic platform driver
[    0.604627] ehci-platform ff5c0000.usb: EHCI Host Controller
[    0.605217] ehci-platform ff5c0000.usb: new USB bus registered, assigned bus number 2
[    0.606464] ehci-platform ff5c0000.usb: irq 27, io mem 0xff5c0000
[    0.620677] ehci-platform ff5c0000.usb: USB 2.0 started, EHCI 1.00
[    0.622273] hub 2-0:1.0: USB hub found
[    0.622699] hub 2-0:1.0: 1 port detected
[    0.623737] ehci-orion: EHCI orion driver
[    0.624412] ehci-exynos: EHCI EXYNOS driver
[    0.625087] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.625694] ohci-pci: OHCI PCI platform driver
[    0.626237] ohci-platform: OHCI generic platform driver
[    0.627133] ohci-platform ff5d0000.usb: Generic Platform OHCI controller
[    0.627773] ohci-platform ff5d0000.usb: new USB bus registered, assigned bus number 3
[    0.629003] ohci-platform ff5d0000.usb: irq 28, io mem 0xff5d0000
[    0.693733] hub 3-0:1.0: USB hub found
[    0.694159] hub 3-0:1.0: 1 port detected
[    0.695149] ohci-exynos: OHCI EXYNOS driver
[    0.696811] usbcore: registered new interface driver usb-storage
[    0.703238] i2c /dev entries driver
[    0.707198] rk808 1-0018: chip id: 0x8050
[    0.716244] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    0.716900] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    0.717542] DCDC_REG1: supplied by vcc_sys
[    0.720597] DCDC_REG2: supplied by vcc_sys
[    0.722709] DCDC_REG3: supplied by vcc_sys
[    0.723485] DCDC_REG4: supplied by vcc_sys
[    0.725326] LDO_REG1: supplied by vcc_io
[    0.729317] LDO_REG2: supplied by vcc_io
[    0.733362] LDO_REG3: supplied by vcc_io
[    0.741620] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.9
[    0.743012] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.11
[    0.743891] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.11
[    0.744760] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.9
[    0.751218] cpu cpu0: Linked as a consumer to regulator.7
[    0.751802] cpu cpu0: Dropping the link to regulator.7
[    0.752528] cpu cpu0: Linked as a consumer to regulator.7
[    0.755946] sdhci: Secure Digital Host Controller Interface driver
[    0.756527] sdhci: Copyright(c) Pierre Ossman
[    0.757705] Synopsys Designware Multimedia Card Interface Driver
[    0.759637] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.760705] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.761326] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.761888] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fifo
[    0.762800] vcc_sd: supplied by vcc_io
[    0.763259] dwmmc_rockchip ff500000.dwmmc: Linked as a consumer to regulator.2
[    0.763991] dwmmc_rockchip ff500000.dwmmc: Dropping the link to regulator.2
[    0.765459] dwmmc_rockchip ff520000.dwmmc: IDMAC supports 32-bit address mode.
[    0.766305] dwmmc_rockchip ff520000.dwmmc: Using internal DMA controller.
[    0.766913] dwmmc_rockchip ff520000.dwmmc: Version ID is 270a
[    0.767470] dwmmc_rockchip ff520000.dwmmc: DW MMC controller at irq 24,32 bit host data width,256 deep fifo
[    0.768422] mmc_host mmc0: card is non-removable.
[    0.780771] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.795167] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.797799] ledtrig-cpu: registered to indicate activity on CPUs
[    0.800396] usbcore: registered new interface driver usbhid
[    0.800997] usbhid: USB HID core driver
[    0.806425] NET: Registered protocol family 17
[    0.807058] 9pnet: Installing 9P2000 support
[    0.807538] Key type dns_resolver registered
[    0.808861] registered taskstats version 1
[    0.809249] Loading compiled-in X.509 certificates
[    0.824356] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.9
[    0.825708] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.11
[    0.826545] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.11
[    0.827328] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.9
[    0.830212] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.831334] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.831960] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.832508] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fifo
[    0.833608] dwmmc_rockchip ff500000.dwmmc: Linked as a consumer to regulator.2
[    0.834361] dwmmc_rockchip ff500000.dwmmc: Dropping the link to regulator.2
[    0.837878] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.9
[    0.839208] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.11
[    0.839418] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
[    0.840064] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.11
[    0.841093] mmc0: new high speed MMC card at address 0001
[    0.841645] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.9
[    0.844195] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB
[    0.845914] mmcblk0boot0: mmc0:0001 AJTD4R partition 1 4.00 MiB
[    0.846838] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.847601] mmcblk0boot1: mmc0:0001 AJTD4R partition 2 4.00 MiB
[    0.848426] mmcblk0rpmb: mmc0:0001 AJTD4R partition 3 4.00 MiB, chardev (240:0)
[    0.848455] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.849740] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.850307] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fifo
[    0.851296] dwmmc_rockchip ff500000.dwmmc: Linked as a consumer to regulator.2
[    0.852039] dwmmc_rockchip ff500000.dwmmc: Dropping the link to regulator.2
[    0.853414] hctosys: unable to open rtc device (rtc0)
[    0.855397] vcc_sd: disabling
[    0.855708] ALSA device list:
[    0.855974]   No soundcards found.
[    0.858636]  mmcblk0: p1 p2 p3 p4 p5
[    0.864945] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.9
[    0.866287] rockchip-iodomain ff100000.syscon:io-domains: Linked as a consumer to regulator.11
[    0.867116] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.11
[    0.867895] rockchip-iodomain ff100000.syscon:io-domains: Dropping the link to regulator.9
[    0.869159] random: fast init done
[    0.871502] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.872535] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    0.873392] VFS: Mounted root (ext4 filesystem) on device 179:5.
[    0.874331] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.874956] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.875508] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 23,32 bit host data width,256 deep fifo
[    0.875893] devtmpfs: mounted
[    0.876490] dwmmc_rockchip ff500000.dwmmc: Linked as a consumer to regulator.2
[    0.877547] dwmmc_rockchip ff500000.dwmmc: Dropping the link to regulator.2
[    0.877570] Freeing unused kernel memory: 1344K
[    0.900672] Run /sbin/init as init process
[    1.219444] systemd[1]: System time before build time, advancing clock.
[    1.248319] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVI)
[    1.250785] systemd[1]: Detected architecture arm64.

Welcome to Ubuntu 18.04.2 LTS!

[    1.269449] systemd[1]: Set hostname to <firefly>.
[    1.488705] systemd[1]: File /lib/systemd/system/systemd-udevd.service:34 configures an IP firewall (IPAddress.
[    1.490219] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first lo)
[    1.752556] random: systemd: uninitialized urandom read (16 bytes read)
[    1.753459] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    1.764838] random: systemd: uninitialized urandom read (16 bytes read)
[    1.766304] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    1.776905] random: systemd: uninitialized urandom read (16 bytes read)
[    1.778292] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    1.789384] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    1.801190] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket.
         Mounting POSIX Message Queue File System...
         Starting Set the console keyboard layout...
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Create Static Device Nodes in /dev...
         Starting Remount Root and Kernel File Systems...
         Mounting Huge Pages File System...
[  OK  ] Reached target Swap.
[  OK  ] Listening on udev Control Socket.
         Starting udev Coldplug all Devices...
         Mounting Kernel Debug File System...
[  OK  ] Listening on Syslog Socket.
         Starting Load Kernel Modules...
[  OK  ] Reached target User and Group Name Lookups.
[  OK  ] Listening on Journal Audit Socket.
         Starting Journal Service...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Slices.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Load Kernel Modules.
         Mounting Kernel Configuration File System...
         Starting Apply Kernel Variables...
         Starting Load/Save Random Seed...
         Starting udev Kernel Device Manager...
[  OK  ] Started Journal Service.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Load/Save Random Seed.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Set the console keyboard layout.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Set console font and keymap...
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Set console font and keymap.
         Starting Create Volatile Files and Directories...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Name Resolution...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Reached target System Initialization.
         Starting Socket activation for snappy daemon.
[  OK  ] Started Message of the Day.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Paths.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Listening on Socket activation for snappy daemon.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Regular background program processing daemon.
         Starting System Logging Service...
         Starting Restore /etc/resolv.conf i��…fore the ppp link was shut down...
         Starting LSB: automatic crash report generation...
         Starting Accounts Service...
         Starting Login Service...
         Starting Resize root filesystem to fit available disk space...
         Starting Disk Manager...
[  OK  ] Started D-Bus System Message Bus.
         Starting WPA supplicant...
         Starting Network Manager...
[  OK  ] Started Set the CPU Frequency Scaling governor.
         Starting Dispatcher daemon for systemd-networkd...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Snappy daemon...
         Starting Adbd for linux...
         Starting Modem Manager...
[  OK  ] Started System Logging Service.
[  OK  ] Started Restore /etc/resolv.conf if��…before the ppp link was shut down.
[  OK  ] Found device /dev/ttyS2.
[  OK  ] Started Login Service.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started LSB: automatic crash report generation.
[FAILED] Failed to start Adbd for linux.
See 'systemctl status adbd.service' for details.
         Starting Authorization Manager...
[  OK  ] Started Authorization Manager.
[  OK  ] Started Accounts Service.
[  OK  ] Started Disk Manager.
[  OK  ] Started Modem Manager.
         Starting Hostname Service...
[    5.846876] squashfs: SQUASHFS error: Filesystem uses "xz" compression. This is not supported
[  OK  ] Started Snappy daemon.
[  OK  ] Started Hostname Service.
         Starting Wait until snapd is fully seeded...
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting /etc/rc.local Compatibility...
         Starting Permit User Sessions...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Permit User Sessions.
         Starting Hold until boot process finishes up...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started Serial Getty on ttyS2.
         Starting Set console scheme...

Ubuntu 18.04.2 LTS firefly ttyS2

firefly login: root (automatic login)

[  OK  ] Started Set console scheme.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenBSD Secure Shell server.
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.20.0 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

[  OK  ] Started Dispatcher daemon for systemd-networkd.
[  OK  ] Started Resize root filesystem to fit available disk space.
[  OK  ] Created slice User Slice of root.
[  OK  ] Started Session 1 of user root.
         Starting User Manager for UID 0...
         Starting Setup rockchip platform environment...
[  OK  ] Started User Manager for UID 0.
[  OK  ] Started Setup rockchip platform environment.
         Starting Light Display Manager...
root@firefly:~# [  OK  ] Started Light Display Manager.

Lazyfan 发表于 2020-2-25 09:48
最后一行的exitcode值应该是关键,但是我不知道这个值是代表什么意思。
你试试用官方的启动参数,看看行 …

用官方的直接卡住了,通过多次反复实验,只需加上boot=/dev/mmcblk0p5 rw rootfstyhpe=ext4 rootwait即可。直接用官方提供的会卡在kernel启动的时候,显示如下:

## Booting Android Image at 0x0027f800 ...
Kernel load addr 0x00280000 size 18695 KiB
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   XIP Kernel Image ... OK
   Using Device Tree in place at 0000000008300000, end 000000000830b25e
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
Total: 3901.546 ms
Starting kernel ...

通过不断摸索,终于可以显示了,但好像只在kernel阶段显示了logo,在ubuntu启动以后就什么也不显示,显示器黑屏。在终端下一下都正常,网络等均可以使用,就是看不到桌面。

添加如下代码,可以正常启动,在kernel启动阶段,显示器有显示,但似乎进不了桌面。
chosen {
		bootargs = "root=/dev/mmcblk0p5 rw rootfstype=ext4 rootwait systemd.gpt_auto=0";
		stdout-path = "serial2:1500000n8";
};

reserved-memory {
    #address-cells = <2>;
    #size-cells = <2>;
    ranges;

    drm_logo: drm-logo@00000000 {
      compatible = "rockchip,drm-logo";
      reg = <0x0 0x0 0x0 0x0>;
    };
};
&display_subsystem {
  logo-memory-region = <&drm_logo>;
  status = "okay";
  route {
    route_hdmi: route-hdmi {
      status = "disabled";
      logo,uboot = "logo.bmp";
      logo,kernel = "logo_kernel.bmp";
      logo,mode = "center";
      charge_logo,mode = "center";
      connect = <&vop_out_hdmi>;
    };
  };
};

&route_hdmi {
  status = "okay";
};

DDR version 1.13 20180428
ID:0x805 N
In
SRX
DDR4
333MHz
Bus Width=32 Col=10 Bank=4 Bank Group=2 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
ddrconfig:19
OUT
Boot1 Release Time: Sep  7 2018 15:49:55, version: 2.49
ChipType = 0x11, 272
mmc2:cmd19,100
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=14910MB
FwPartOffset=2000 , 2000
SdmmcInit=0 NOT PRESENT
StorageInit ok = 19592
Raw SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
GPT part:  0, name:            uboot, start:0x4000, size:0x2000
GPT part:  1, name:            trust, start:0x6000, size:0x2000
GPT part:  2, name:             boot, start:0xa000, size:0x10000
GPT part:  3, name:           backup, start:0x2a000, size:0x10000
GPT part:  4, name:           rootfs, start:0x5a000, size:0x1cc4fdf
find partition:uboot OK. first_lba:0x4000.
find partition:trust OK. first_lba:0x6000.
LoadTrust Addr:0x6000
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0xce990
RunBL31 0x10000
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-194-g646eecc5 #61 Wed Dec  5 06:31:51 UTC )

INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.4

INF [0x0] TEE-CORE:init_teecore:83: teecore inits done

U-Boot 2017.09-g0b1f585323-dirty (Feb 26 2020 - 17:05:44 +0800)

Model: Firefly ROC-RK3328-CC
DRAM:  2 GiB
Relocation Offset is: 7dbf5000
Sysmem: init
Using default environment

rksdmmc@ff500000: 1, rksdmmc@ff520000: 0
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0(part 0) is current device
Bootdev: mmc 0
PartType: EFI
get part misc fail -1
boot mode: normal
Load FDT from boot part
DTB: rk-kernel.dtb
Can't get crtc id, default set to id = 0
start get public phy
Warn: can't find phy driver
In:    serial
Out:   serial
Err:   serial
Model: Firefly roc-rk3328-cc
rockchip_dnl_key_pressed adc_channel_single_shot fail! ret=-22
Rockchip UBOOT DRM driver version: v1.0.1
use default hdmi phy table
xfer: num: 2, addr: 0x50
xfer: num: 2, addr: 0x50
Monitor has basic audio support
Could not find baseparameter partition
mode:1920x1080
CEA mode used vic=16
final pixclk = 148500000 tmdsclk = 148500000
start Inno HDMI PHY Power On
tmdsclock = 148500000; chipversion = 2
Inno HDMI PHY Power On
sink has audio support
hdmi_set_clk_regenerator: fs=48000Hz ftdms=148.500MHz N=6144 cts=148500
CLK: (sync kernel. arm: enter 600000 KHz, init 600000 KHz, kernel 0N/A)
  apll 400000 KHz
  dpll 664000 KHz
  cpll 1200000 KHz
  gpll 491009 KHz
  npll 600000 KHz
  armclk 600000 KHz
  aclk_bus 150000 KHz
  hclk_bus 75000 KHz
  pclk_bus 75000 KHz
  aclk_peri 150000 KHz
  hclk_peri 75000 KHz
  pclk_peri 75000 KHz
Net:
Warning: ethernet@ff540000 (eth0) using random MAC address - ba:e1:0b:dc:a2:19
eth0: ethernet@ff540000
Hit key to stop autoboot('CTRL+C'):  0
android_bootloader_boot_flow Could not find misc partition
ANDROID: reboot reason: "(none)"
Fdt Ramdisk skip relocation
FDT load addr 0x10f00000 size 162 KiB
Booting kernel at 0x00280000 with fdt at 0x8300000...

## Booting Android Image at 0x0027f800 ...
Kernel load addr 0x00280000 size 23737 KiB
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   XIP Kernel Image ... OK
   Using Device Tree in place at 0000000008300000, end 000000000830bdaf
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
Can't find file:logo_kernel.bmp
Total: 4271.507 ms

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.5.0 (msw@msw-Z97M-D3H) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)0
[    0.000000] Machine model: Firefly roc-rk3328-cc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7db3e100-0x7db3ffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000083fffff]
[    0.000000]   node   0: [mem 0x000000000a200000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 22 pages/cpu s53144 r8192 d28776 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 507912
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: storagemedia=emmc androidboot.mode=emmc androidboot.slot_suffix= andro0
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x3bfff000-0x3ffff000] (64MB)
[    0.000000] Memory: 1900384K/2064384K available (11452K kernel code, 1720K rwdata, 5860K rodata, 4672K )
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    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] random: get_random_bytes called from start_kernel+0x2b8/0x454 with crng_init=0
[    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:s
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001746] Console: colour dummy device 80x25
[    0.002532] printk: console [tty0] enabled
[    0.002713] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS ()
[    0.002756] pid_max: default: 32768 minimum: 301
[    0.002916] LSM: Security Framework initializing
[    0.003042] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.003091] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.027916] ASID allocator initialised with 32768 entries
[    0.035899] rcu: Hierarchical SRCU implementation.
[    0.048141] EFI services will not be available.
[    0.056165] smp: Bringing up secondary CPUs ...
[    0.088449] Detected VIPT I-cache on CPU1
[    0.088540] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.120549] Detected VIPT I-cache on CPU2
[    0.120630] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.152656] Detected VIPT I-cache on CPU3
[    0.152733] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.152878] smp: Brought up 1 node, 4 CPUs
[    0.153006] SMP: Total of 4 processors activated.
[    0.153029] CPU features: detected: 32-bit EL0 Support
[    0.153053] CPU features: detected: CRC32 instructions
[    0.164377] CPU: All CPU(s) started at EL2
[    0.164482] alternatives: patching kernel code
[    0.166849] devtmpfs: initialized
[    0.178634] KASLR disabled due to lack of seed
[    0.179391] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 764504178510000s
[    0.179459] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.181531] pinctrl core: initialized pinctrl subsystem
[    0.183844] thermal_sys: Registered thermal governor 'fair_share'
[    0.183849] thermal_sys: Registered thermal governor 'step_wise'
[    0.183889] thermal_sys: Registered thermal governor 'power_allocator'
[    0.184498] DMI not present or invalid.
[    0.185189] NET: Registered protocol family 16
[    0.190841] DMA: preallocated 256 KiB pool for atomic allocations
[    0.190915] audit: initializing netlink subsys (disabled)
[    0.191297] audit: type=2000 audit(0.188:1): state=initialized audit_enabled=0 res=1
[    0.193365] cpuidle: using governor menu
[    0.193646] NET: Registered protocol family 42
[    0.194219] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.238538] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.238585] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.238611] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.238636] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.242465] cryptd: max_cpu_qlen set to 1000
[    0.249197] ACPI: Interpreter disabled.
[    0.252283] vcc_sys: supplied by dc_12v
[    0.252961] vcc_host1_5v: supplied by vcc_sys
[    0.254309] iommu: Default domain type: Translated
[    0.255861] vgaarb: loaded
[    0.256491] SCSI subsystem initialized
[    0.257236] usbcore: registered new interface driver usbfs
[    0.257328] usbcore: registered new interface driver hub
[    0.257457] usbcore: registered new device driver usb
[    0.258082] pps_core: LinuxPPS API ver. 1 registered
[    0.258108] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.258159] PTP clock support registered
[    0.258216] EDAC MC: Ver: 3.0.0
[    0.260264] FPGA manager framework
[    0.260439] Advanced Linux Sound Architecture Driver Initialized.
[    0.261949] clocksource: Switched to clocksource arch_sys_counter
[    0.262399] VFS: Disk quotas dquot_6.6.0
[    0.262520] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.262876] pnp: PnP ACPI: disabled
[    0.273436] NET: Registered protocol family 2
[    0.274356] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.274451] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.274689] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.275092] TCP: Hash tables configured (established 16384 bind 16384)
[    0.275344] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.275451] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.276019] NET: Registered protocol family 1
[    0.276794] RPC: Registered named UNIX socket transport module.
[    0.276831] RPC: Registered udp transport module.
[    0.276850] RPC: Registered tcp transport module.
[    0.276869] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.276903] PCI: CLS 0 bytes, default 64
[    0.278544] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.278978] kvm [1]: IPA Size Limit: 40bits
[    0.280178] kvm [1]: vgic interrupt IRQ1
[    0.280364] kvm [1]: Hyp mode initialized successfully
[    0.292163] Initialise system trusted keyrings
[    0.292503] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    0.304270] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.305533] NFS: Registering the id_resolver key type
[    0.305608] Key type id_resolver registered
[    0.305628] Key type id_legacy registered
[    0.305658] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.332112] Key type asymmetric registered
[    0.332156] Asymmetric key parser 'x509' registered
[    0.332260] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.332291] io scheduler mq-deadline registered
[    0.332311] io scheduler kyber registered
[    0.345226] IPMI message handler: version 39.2
[    0.345836] EINJ: ACPI disabled.
[    0.354447] dma-pl330 ff1f0000.dmac: Loaded driver for PL330 DMAC-241330
[    0.354497] dma-pl330 ff1f0000.dmac:         DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    0.362396] Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled
[    0.365987] ff130000.serial: ttyS2 at MMIO 0xff130000 (irq = 12, base_baud = 1500000) is a 16550A
[    0.440159] printk: console [ttyS2] enabled
[    0.444901] brd: module loaded
[    0.458457] loop: module loaded
[    0.464972] libphy: Fixed MDIO Bus: probed
[    0.466500] rk_gmac-dwmac ff540000.ethernet: IRQ eth_wake_irq not found
[    0.467120] rk_gmac-dwmac ff540000.ethernet: IRQ eth_lpi not found
[    0.467858] rk_gmac-dwmac ff540000.ethernet: PTP uses main clock
[    0.468570] rk_gmac-dwmac ff540000.ethernet: clock input or output? (input).
[    0.469215] rk_gmac-dwmac ff540000.ethernet: TX delay(0x24).
[    0.469732] rk_gmac-dwmac ff540000.ethernet: RX delay(0x18).
[    0.470307] rk_gmac-dwmac ff540000.ethernet: integrated PHY? (no).
[    0.470937] rk_gmac-dwmac ff540000.ethernet: cannot get clock clk_mac_speed
[    0.471568] rk_gmac-dwmac ff540000.ethernet: clock input from PHY
[    0.477134] rk_gmac-dwmac ff540000.ethernet: init for RGMII
[    0.478008] rk_gmac-dwmac ff540000.ethernet: User ID: 0x10, Synopsys ID: 0x35
[    0.478668] rk_gmac-dwmac ff540000.ethernet:         DWMAC1000
[    0.479147] rk_gmac-dwmac ff540000.ethernet: DMA HW capability register supported
[    0.479825] rk_gmac-dwmac ff540000.ethernet: RX Checksum Offload Engine supported
[    0.480503] rk_gmac-dwmac ff540000.ethernet: COE Type 2
[    0.480981] rk_gmac-dwmac ff540000.ethernet: TX Checksum insertion supported
[    0.481617] rk_gmac-dwmac ff540000.ethernet: Wake-Up On Lan supported
[    0.482274] rk_gmac-dwmac ff540000.ethernet: Normal descriptors
[    0.482813] rk_gmac-dwmac ff540000.ethernet: Ring mode enabled
[    0.483347] rk_gmac-dwmac ff540000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.484084] rk_gmac-dwmac ff540000.ethernet: device MAC address ca:0b:a5:21:b6:e7
[    0.577593] libphy: stmmac: probed
[    0.577966] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    0.578828] mdio_bus stmmac-0:01: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    0.581119] usbcore: registered new interface driver rtl8150
[    0.581705] usbcore: registered new interface driver r8152
[    0.582319] usbcore: registered new interface driver asix
[    0.582863] usbcore: registered new interface driver ax88179_178a
[    0.583458] usbcore: registered new interface driver cdc_ether
[    0.584040] usbcore: registered new interface driver rndis_host
[    0.584642] usbcore: registered new interface driver cdc_ncm
[    0.585207] usbcore: registered new interface driver qmi_wwan
[    0.585774] usbcore: registered new interface driver cdc_mbim
[    0.586639] VFIO - User Level meta-driver version: 0.3
[    0.589258] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[    0.590198] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[    0.718042] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    0.719230] dwc2 ff580000.usb: DWC OTG Controller
[    0.719697] dwc2 ff580000.usb: new USB bus registered, assigned bus number 1
[    0.720391] dwc2 ff580000.usb: irq 32, io mem 0xff580000
[    0.721891] hub 1-0:1.0: USB hub found
[    0.722330] hub 1-0:1.0: 1 port detected
[    0.724518] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.725123] ehci-pci: EHCI PCI platform driver
[    0.725577] ehci-platform: EHCI generic platform driver
[    0.728672] ehci-platform ff5c0000.usb: EHCI Host Controller
[    0.729227] ehci-platform ff5c0000.usb: new USB bus registered, assigned bus number 2
[    0.730147] ehci-platform ff5c0000.usb: irq 33, io mem 0xff5c0000
[    0.745978] ehci-platform ff5c0000.usb: USB 2.0 started, EHCI 1.00
[    0.747569] hub 2-0:1.0: USB hub found
[    0.747960] hub 2-0:1.0: 1 port detected
[    0.748961] ehci-orion: EHCI orion driver
[    0.749628] ehci-exynos: EHCI EXYNOS driver
[    0.750233] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.750880] ohci-pci: OHCI PCI platform driver
[    0.751379] ohci-platform: OHCI generic platform driver
[    0.752310] ohci-platform ff5d0000.usb: Generic Platform OHCI controller
[    0.752945] ohci-platform ff5d0000.usb: new USB bus registered, assigned bus number 3
[    0.753823] ohci-platform ff5d0000.usb: irq 34, io mem 0xff5d0000
[    0.819047] hub 3-0:1.0: USB hub found
[    0.819450] hub 3-0:1.0: 1 port detected
[    0.820423] ohci-exynos: OHCI EXYNOS driver
[    0.821841] usbcore: registered new interface driver cdc_wdm
[    0.822547] usbcore: registered new interface driver usb-storage
[    0.827259] i2c /dev entries driver
[    0.830951] rk808 1-0018: chip id: 0x8050
[    0.840223] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    0.840882] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    0.841528] DCDC_REG1: supplied by vcc_sys
[    0.845016] DCDC_REG2: supplied by vcc_sys
[    0.847359] DCDC_REG3: supplied by vcc_sys
[    0.848061] DCDC_REG4: supplied by vcc_sys
[    0.849681] LDO_REG1: supplied by vcc_io
[    0.853347] LDO_REG2: supplied by vcc_io
[    0.856785] LDO_REG3: supplied by vcc_io
[    0.865694] rockchip-thermal ff250000.tsadc: Missing tshut mode property, using default (cru)
[    0.866572] rockchip-thermal ff250000.tsadc: Missing tshut-polarity property, using default (low)
[    0.870985] energy_model: pd0: hertz/watts ratio non-monotonically decreasing: em_cap_state 1 >= em_cap0
[    0.874017] sdhci: Secure Digital Host Controller Interface driver
[    0.874581] sdhci: Copyright(c) Pierre Ossman
[    0.875340] Synopsys Designware Multimedia Card Interface Driver
[    0.876793] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.877470] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.878193] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.878761] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 29,32 bit host data width,256 deep o
[    0.879681] vcc_sd: supplied by vcc_io
[    0.880873] dwmmc_rockchip ff520000.dwmmc: IDMAC supports 32-bit address mode.
[    0.881547] dwmmc_rockchip ff520000.dwmmc: Using internal DMA controller.
[    0.882189] dwmmc_rockchip ff520000.dwmmc: Version ID is 270a
[    0.882751] dwmmc_rockchip ff520000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep o
[    0.884350] mmc_host mmc0: card is non-removable.
[    0.897536] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.911663] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.913732] ledtrig-cpu: registered to indicate activity on CPUs
[    0.915764] usbcore: registered new interface driver usbhid
[    0.916344] usbhid: USB HID core driver
[    0.921725] Initializing XFRM netlink socket
[    0.922778] NET: Registered protocol family 10
[    0.924351] Segment Routing with IPv6
[    0.924758] NET: Registered protocol family 17
[    0.925201] NET: Registered protocol family 15
[    0.925650] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scrip.
[    0.926929] Key type dns_resolver registered
[    0.927900] registered taskstats version 1
[    0.928272] Loading compiled-in X.509 certificates
[    0.950555] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.951254] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.951879] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.952429] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 29,32 bit host data width,256 deep o
[    0.960608] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.961288] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.961894] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.962478] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 29,32 bit host data width,256 deep o
[    0.965832] hctosys: unable to open rtc device (rtc0)
[    0.967840] ALSA device list:
[    0.968133]   No soundcards found.
[    0.968984] Waiting for root device /dev/mmcblk0p5...
[    0.983667] mmc_host mmc0: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ d)
[    0.985221] random: fast init done
[    0.992802] dwmmc_rockchip ff520000.dwmmc: All phases work, using default phase 0.
[    0.993537] mmc0: new HS200 MMC card at address 0001
[    0.999039] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB
[    0.999855] mmcblk0boot0: mmc0:0001 AJTD4R partition 1 4.00 MiB
[    1.000775] mmcblk0boot1: mmc0:0001 AJTD4R partition 2 4.00 MiB
[    1.001543] mmcblk0rpmb: mmc0:0001 AJTD4R partition 3 4.00 MiB, chardev (243:0)
[    1.009761]  mmcblk0: p1 p2 p3 p4 p5
[    1.019765] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    1.020447] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    1.021055] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    1.021605] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 29,32 bit host data width,256 deep o
[    1.035181] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    1.035993] VFS: Mounted root (ext4 filesystem) on device 179:5.
[    1.037873] devtmpfs: mounted
[    1.041099] Freeing unused kernel memory: 4672K
[    1.065990] Run /sbin/init as init process
[    1.259357] systemd[1]: System time before build time, advancing clock.
[    1.283491] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK)
[    1.285890] systemd[1]: Detected architecture arm64.

Welcome to Ubuntu 18.04.2 LTS!

[    1.326737] systemd[1]: Set hostname to <firefly>.
[    1.334640] systemd[1]: Couldn't move remaining userspace processes, ignoring: Input/output error
[    1.521474] systemd[1]: File /lib/systemd/system/systemd-udevd.service:34 configures an IP firewall (IP.
[    1.523051] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the f)
[    1.750531] random: systemd: uninitialized urandom read (16 bytes read)
[    1.751724] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    1.762147] random: systemd: uninitialized urandom read (16 bytes read)
[    1.762830] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    1.774114] random: systemd: uninitialized urandom read (16 bytes read)
[    1.774789] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[    1.786280] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Created slice System Slice.
[  OK  ] Listening on Journal Socket.
         Starting Set the console keyboard layout...
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Listening on udev Control Socket.
         Mounting Kernel Debug File System...
[  OK  ] Listening on udev Kernel Socket.
         Starting udev Coldplug all Devices...
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Remount Root and Kernel File Systems...
         Mounting POSIX Message Queue File System...
         Mounting Huge Pages File System...
[  OK  ] Reached target Slices.
         Starting Load Kernel Modules...
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Started Load Kernel Modules.
         Mounting Kernel Configuration File System...
         Starting Apply Kernel Variables...
         Starting Load/Save Random Seed...
         Starting udev Kernel Device Manager...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Set the console keyboard layout.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Set console font and keymap...
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Set console font and keymap.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Name Resolution...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Name Resolution.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Reached target Paths.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Message of the Day.
[  OK  ] Reached target Timers.
         Starting Socket activation for snappy daemon.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Listening on Socket activation for snappy daemon.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Restore /etc/resolv.conf i��…fore the ppp link was shut down...
         Starting Dispatcher daemon for systemd-networkd...
         Starting System Logging Service...
         Starting LSB: automatic crash report generation...
         Starting Accounts Service...
         Starting Modem Manager...
         Starting Adbd for linux...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Set the CPU Frequency Scaling governor.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
         Starting WPA supplicant...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Resize root filesystem to fit available disk space...
         Starting Disk Manager...
         Starting Login Service...
         Starting Snappy daemon...
[  OK  ] Started System Logging Service.
[  OK  ] Started Restore /etc/resolv.conf if��…before the ppp link was shut down.
[FAILED] Failed to start Adbd for linux.
See 'systemctl status adbd.service' for details.
[  OK  ] Found device /dev/ttyS2.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Login Service.
         Starting Authorization Manager...
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Started Authorization Manager.
[  OK  ] Started Accounts Service.
         Starting Hostname Service...
[  OK  ] Started Disk Manager.
[  OK  ] Started Modem Manager.
[  OK  ] Started Hostname Service.
[    5.308493] Filesystem uses "xz" compression. This is not supported
[  OK  ] Started Snappy daemon.
         Starting Wait until snapd is fully seeded...
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting OpenBSD Secure Shell server...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Permit User Sessions.
         Starting Hold until boot process finishes up...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started Serial Getty on ttyS2.
         Starting Set console scheme...
[  OK  ] Started Set console scheme.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenBSD Secure Shell server.

Ubuntu 18.04.2 LTS firefly ttyS2

firefly login: root (automatic login)

Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 5.5.0 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

[  OK  ] Started Resize root filesystem to fit available disk space.
[  OK  ] Created slice User Slice of root.
[  OK  ] Started Session 1 of user root.
         Starting User Manager for UID 0...
         Starting Setup rockchip platform environment...
[  OK  ] Started User Manager for UID 0.
[  OK  ] Started Setup rockchip platform environment.
         Starting Light Display Manager...
root@firefly:~# [  OK  ] Started Light Display Manager.
[  OK  ] Stopped Light Display Manager.
         Starting Light Display Manager...
[  OK  ] Started Light Display Manager.
[  OK  ] Stopped Light Display Manager.
         Starting Light Display Manager...
[  OK  ] Started Light Display Manager.
[  OK  ] Started Wait until snapd is fully seeded.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

整了一天了,还是没有解决显示问题。
启动时显示的信息为:

[ 0.950348] inno-hdmi-phy ff430000.phy: failed to register clock: -17
[ 0.951244] inno-hdmi-phy: probe of ff430000.phy failed with error -17

正常应该是这样的:
[ 0.855840] inno-hdmi-phy ff430000.hdmiphy: phy had been powered up

经过无数次的实验,现在已经有了进展,但任然没有显示。

U-Boot 2017.09-g0b1f585323-dirty (Mar 12 2020 - 09:01:54 +0800)

Model: Firefly ROC-RK3328-CC
DRAM:  2 GiB
Relocation Offset is: 7dbf5000
Sysmem: init
Using default environment

rksdmmc@ff500000: 1, rksdmmc@ff520000: 0
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0(part 0) is current device
Bootdev: mmc 0
PartType: EFI
get part misc fail -1
boot mode: normal
Load FDT from boot part
DTB: rk-kernel.dtb
Can't get crtc id, default set to id = 0
start get public phy
use default hdmi phy table
inno hdmi phy init success, save it
In:    serial
Out:   serial
Err:   serial
Model: Firefly roc-rk3328-cc
rockchip_dnl_key_pressed adc_channel_single_shot fail! ret=-22
Rockchip UBOOT DRM driver version: v1.0.1
use default hdmi phy table
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
can't get edid block:0
failed to get edid
Could not find baseparameter partition
mode:1920x1080
CEA mode used vic=16
final pixclk = 148500000 tmdsclk = 148500000
start Inno HDMI PHY Power On
tmdsclock = 148500000; chipversion = 2
Inno HDMI PHY Power On
sink has audio support
hdmi_set_clk_regenerator: fs=48000Hz ftdms=148.500MHz N=6144 cts=148500
CLK: (sync kernel. arm: enter 600000 KHz, init 600000 KHz, kernel 0N/A)
  apll 400000 KHz
  dpll 664000 KHz
  cpll 1200000 KHz
  gpll 491009 KHz
  npll 600000 KHz
  armclk 600000 KHz
  aclk_bus 150000 KHz
  hclk_bus 75000 KHz
  pclk_bus 75000 KHz
  aclk_peri 150000 KHz
  hclk_peri 75000 KHz
  pclk_peri 75000 KHz
Net:
Warning: ethernet@ff540000 (eth0) using random MAC address - 7a:9c:21:04:a9:7d
eth0: ethernet@ff540000
Hit key to stop autoboot('CTRL+C'):  0
android_bootloader_boot_flow Could not find misc partition
ANDROID: reboot reason: "(none)"
Fdt Ramdisk skip relocation
FDT load addr 0x10f00000 size 307 KiB
Booting kernel at 0x00280000 with fdt at 0x8300000...

## Booting Android Image at 0x0027f800 ...
Kernel load addr 0x00280000 size 18971 KiB
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   XIP Kernel Image ... OK
   Using Device Tree in place at 0000000008300000, end 000000000830bb27
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
Total: 4010.781 ms

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.5.0 (msw@msw-Z97M-D3H) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #7 SMP PREEMPT Fri Mar 13 18:10:24 CST 2020
[    0.000000] Machine model: Firefly roc-rk3328-cc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7db19100-0x7db1afff]
[    0.000000] Zone ranges:
[    0.000000]   DMA[mem 0x0000000000200000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000083fffff]
[    0.000000]   node   0: [mem 0x000000000a200000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 22 pages/cpu s52824 r8192 d29096 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 507912
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: storagemedia=emmc androidboot.mode=emmc androidboot.slot_suffix= androidboot.serialno=1cb27b34a6de9e11  rw rootwait root=/dev/mmcblk0p50
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x3bfff000-0x3ffff000] (64MB)
[    0.000000] Memory: 1905028K/2064384K available (11068K kernel code, 794K rwdata, 4568K rodata, 2496K init, 425K bss, 126588K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    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] random: get_random_bytes called from start_kernel+0x2b8/0x454 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ my device 80x25
[    0.001650] printk: console [tty0] enabled
[    0.001810] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.001853] pid_max: default: 32768 minimum: 301
[    0.002011] LSM: Security Framework initializing
[    0.002134] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.002181] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.027870] ASID allocator initialised with 32768 entries
[    0.035846] rcu: Hierarchical SRCU implementation.
[    0.045456] EFI services will not be available.
[    0.051948] smp: Bringing up secondary CPUs ...
[    0.084220] Detected VIPT I-cache on CPU1
[    0.084306] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.116323] Detected VIPT I-cache on CPU2
[    0.116400] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.148435] Detected VIPT I-cache on CPU3
[    0.148509] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.148661] smp: Brought up 1 node, 4 CPUs
[    0.148792] SMP: Total of 4 processors activated.
[    0.148815] CPU features: detected: 32-bit EL0 Support
[    0.148838] CPU features: detected: CRC32 instructions
[    0.159687] CPU: All CPU(s) started at EL2
[    0.159792] alternatives: patching kernel code
[    0.162161] devtmpfs: initialized
[    0.173818] KASLR disabled due to lack of seed
[    0.174574] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.174639] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.176726] pinctrl core: initialized pinctrl subsystem
[    0.177897] thermal_sys: Registered thermal governor 'step_wise'
[    0.177905] thermal_sys: Registered thermal governor 'power_allocator'
[    0.178479] DMI not present or invalid.
[    0.179035] NET: Registered protocol family 16
[    0.182098] DMA: preallocated 256 KiB pool for atomic allocations
[    0.182172] audit: initializing netlink subsys (disabled)
[    0.182534] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.184155] cpuidle: using governor menu
[    0.184849] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.186365] Serial: AMBA PL011 UART driver
[    0.222050] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.222097] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.222123] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.222147] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.225876] cryptd: max_cpu_qlen set to 1000
[    0.232090] ACPI: Interpreter disabled.
[    0.234362] vcc_sys: supplied by dc_12v
[    0.234957] vcc_host1_5v: supplied by vcc_sys
[    0.235921] iommu: Default domain type: Translated
[    0.237401] vgaarb: loaded
[    0.237976] SCSI subsystem initialized
[    0.238722] usbcore: registered new interface driver usbfs
[    0.238816] usbcore: registered new interface driver hub
[    0.238941] usbcore: registered new device driver usb
[    0.239470] pps_core: LinuxPPS API ver. 1 registered
[    0.239493] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.239540] PTP clock support registered
[    0.239712] EDAC MC: Ver: 3.0.0
[    0.240610] FPGA manager framework
[    0.240765] Advanced Linux Sound Architecture Driver Initialized.
[    0.242394] clocksource: Switched to clocksource arch_sys_counter
[    0.242836] VFS: Disk quotas dquot_6.6.0
[    0.242944] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.243283] pnp: PnP ACPI: disabled
[    0.252706] NET: Registered protocol family 2
[    0.253371] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.253459] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.253695] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.254099] TCP: Hash tables configured (established 16384 bind 16384)
[    0.254340] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.254518] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.255023] NET: Registered protocol family 1
[    0.255764] RPC: Registered named UNIX socket transport module.
[    0.255797] RPC: Registered udp transport module.
[    0.255816] RPC: Registered tcp transport module.
[    0.255834] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.255870] PCI: CLS 0 bytes, default 64
[    0.257395] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.257811] kvm [1]: IPA Size Limit: 40bits
[    0.258892] kvm [1]: vgic interrupt IRQ1
[    0.259075] kvm [1]: Hyp mode initialized successfully
[    0.270955] Initialise system trusted keyrings
[    0.271320] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    0.283040] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.284375] NFS: Registering the id_resolver key type
[    0.284445] Key type id_resolver registered
[    0.284464] Key type id_legacy registered
[    0.284494] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.284808] 9p: Installing v9fs 9p2000 file system support
[    0.311005] Key type asymmetric registered
[    0.311049] Asymmetric key parser 'x509' registered
[    0.311149] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.311180] io scheduler mq-deadline registered
[    0.311200] io scheduler kyber registered
[    0.318293] EINJ: ACPI disabled.
[    0.320971] dma-pl330 ff1f0000.dmac: Loaded driver for PL330 DMAC-241330
[    0.321021] dma-pl330 ff1f0000.dmac:   DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    0.326758] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.329447] ff130000.serial: ttyS2 at MMIO 0xff130000 (irq = 12, base_baud = 1500000) is a 16550A
[    0.403168] printk: console [ttyS2] enabled

[    0.410874] rockchip-vop ff370000.vop: Adding to iommu group 1
[    0.412255] dw_hdmi_rockchip dw_hdmi_rockchip_probe: component_add
[    0.413151] rockchip_drm_drv: rockchip_drm_init:platform_driver_register
[    0.417246] rockchip-drm display-subsystem: bound ff370000.vop (ops vop_component_ops)

[    0.425304] dwhdmi-rockchip ff3c0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (inno_dw_hdmi_phy2)

[    0.427531] dwhdmi-rockchip ff3c0000.hdmi: registered DesignWare HDMI I2C bus driver

[    0.429440] rockchip-drm display-subsystem: bound ff3c0000.hdmi (ops dw_hdmi_rockchip_ops)
[    0.430190] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.430862] [drm] No driver support for vblank timestamp query.

[    1.286453] ------------[ cut here ]------------
[    1.286459] [CRTC:35:crtc-0] vblank wait timed out
[    1.286544] WARNING: CPU: 1 PID: 1 at drivers/gpu/drm/drm_atomic_helper.c:1463 drm_atomic_helper_wait_for_vblanks.part.27+0x2d0/0x2d8
[    1.286548] Modules linked in:
[    1.286564] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.5.0 #7
[    1.286569] Hardware name: Firefly roc-rk3328-cc (DT)
[    1.286577] pstate: 60000005 (nZCv daif -PAN -UAO)
[    1.286586] pc : drm_atomic_helper_wait_for_vblanks.part.27+0x2d0/0x2d8
[    1.286595] lr : drm_atomic_helper_wait_for_vblanks.part.27+0x2d0/0x2d8
[    1.286599] sp : ffff80001002b470
[    1.286603] x29: ffff80001002b470 x28: 0000000000000000
[    1.286611] x27: ffff800010e87fd8 x26: 0000000000000001
[    1.286618] x25: ffff800010e88048 x24: ffff00007a9fd500
[    1.286626] x23: ffff00007a503800 x22: ffff800011249000
[    1.286636] x21: ffff00007d32a080 x20: 0000000000000000
[    1.286643] x19: 0000000000000000 x18: ffffffffffffffff
[    1.286651] x17: 0000000000000001 x16: 0000000010624dd3
[    1.286658] x15: ffff8000112498c8 x14: 00000000fffffff0
[    1.286666] x13: ffff800011317008 x12: ffff800011261438
[    1.286674] x11: ffff800011261000 x10: ffff800011316000
[    1.286681] x9 : 0000000000000000 x8 : ffff800011316b98
[    1.286688] x7 : 0000000000000000 x6 : 0000000006974929
[    1.286695] x5 : 0000000000000000 x4 : 0000000000000000
[    1.286702] x3 : 00000000ffffffff x2 : ffff8000112614b8
[    1.286710] x1 : e036ae57baad5500 x0 : 0000000000000000
[    1.286718] Call trace:
[    1.286729]  drm_atomic_helper_wait_for_vblanks.part.27+0x2d0/0x2d8
[    1.286737]  drm_atomic_helper_commit_tail_rpm+0x60/0x78
[    1.286745]  commit_tail+0x9c/0x170
[    1.286753]  drm_atomic_helper_commit+0x168/0x180
[    1.286763]  drm_atomic_commit+0x48/0x58
[    1.286773]  drm_client_modeset_commit_atomic.isra.16+0x174/0x228
[    1.286779]  drm_client_modeset_commit_force+0x60/0x198
[    1.286788]  drm_fb_helper_restore_fbdev_mode_unlocked+0x70/0xc8
[    1.286795]  drm_fb_helper_set_par+0x2c/0x60
[    1.286804]  fbcon_init+0x4e0/0x570
[    1.286813]  visual_init+0xb0/0x108
[    1.286821]  do_bind_con_driver+0x1d4/0x3c8
[    1.286829]  do_take_over_console+0x148/0x1d8
[    1.286838]  do_fbcon_takeover+0x6c/0xe8
[    1.286844]  fbcon_fb_registered+0x13c/0x150
[    1.286852]  register_framebuffer+0x1c4/0x338
[    1.286860]  __drm_fb_helper_initial_config_and_unlock+0x2cc/0x478
[    1.286868]  drm_fb_helper_initial_config+0x40/0x50
[    1.286877]  rockchip_drm_fbdev_init+0x5c/0x100
[    1.286883]  rockchip_drm_bind+0x174/0x1c8
[    1.286894]  try_to_bring_up_master+0x15c/0x1c0
[    1.286903]  component_master_add_with_match+0xc0/0x108
[    1.286910]  rockchip_drm_platform_probe+0x1ac/0x2c0
[    1.286917]  platform_drv_probe+0x50/0xa8
[    1.286927]  really_probe+0x108/0x360
[    1.286935]  driver_probe_device+0x58/0x100
[    1.286943]  device_driver_attach+0x6c/0x78
[    1.286951]  __driver_attach+0xb0/0xf0
[    1.286958]  bus_for_each_dev+0x68/0xc8
[    1.286966]  driver_attach+0x20/0x28
[    1.286973]  bus_add_driver+0x160/0x1f0
[    1.286981]  driver_register+0x60/0x110
[    1.286987]  __platform_driver_register+0x40/0x48
[    1.286997]  rockchip_drm_init+0x1b0/0x1d8
[    1.287006]  do_one_initcall+0x58/0x1a0
[    1.287015]  kernel_init_freeable+0x19c/0x20c
[    1.287027]  kernel_init+0x10/0x108
[    1.287034]  ret_from_fork+0x10/0x1c
[    1.287047] ---[ end trace eaf638c6bba5cc86 ]---

本帖最后由 liuhw 于 2022-4-27 13:47 编辑

楼主,请教一下,哪里可以看到教如何编译修改Ubuntu的固件教程? 我一直不知道该怎么开始弄

ifuxiao.net 发表于 2020-2-27 21:48
整了一天了,还是没有解决显示问题。
启动时显示的信息为:

试试https://github.com/armbian/build 构建工具,ROC-RK3399-PC rk3399-firefly开源板 5.4内核都可以;目前是声音没有,好像替换官方dtb文件HDMI有声音

大佬,我的刷了系统后自动进入recovery模式,自动重启,大概是什么原因?
no mmc device at slot 1
do_rkimg_test found IDB in SDcard
rksdmmc@ff500000: 1 (eMMC), rksdmmc@ff520000: 0
do_rkimg_test found IDB in SDcard
Bootdev (atags): mmc 1
MMC1: High Speed, 52Mhz
PartType: EFI
boot mode: recovery
Load FDT from recovery part
DTB: rk-kernel.dtb
start get public phy
use default hdmi phy table
inno hdmi phy init success, save it
Warn: can’t find connect driver
In: serial
Out: serial
Err: serial
Model: Firefly ROC-RK3328-CC
enter Recovery mode!

ifuxiao.net 发表于 2020-2-24 22:46
是的,总是找不到分区,不过今天把它解决了,就是给内核添加启动参数,指明root分区。
不过又出现了新的 …

我也遇到了类似的问题,这是我的log:
[ 1.382533] Run /sbin/init as init process
[ 1.535339] systemd[1]: System time before build time, advancing clock.
[ 2.151363] dwmmc_rockchip ff520000.mmc: Successfully tuned phase to 246
[ 2.159550] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 2.160279] CPU: 2 PID: 1 Comm: systemd Not tainted 5.19.0-rc8-00107-g7ce9d7b10d44-dirty #8
[ 2.161036] Hardware name: Firefly ROC-RK3328-PC (DT)
[ 2.161495] Call trace:
[ 2.161723] dump_backtrace.part.6+0xd8/0xe8
[ 2.162134] show_stack+0x14/0x60
[ 2.162447] dump_stack_lvl+0x64/0x7c
[ 2.162790] dump_stack+0x14/0x2c
[ 2.163098] panic+0x17c/0x388
[ 2.163391] do_exit+0x8cc/0x990
[ 2.163706] do_group_exit+0x30/0xa0
[ 2.164045] __arm64_sys_exit_group+0x14/0x18
[ 2.164460] invoke_syscall+0x40/0xf8
[ 2.164814] el0_svc_common.constprop.3+0x6c/0xf8
[ 2.165260] do_el0_svc+0x28/0xc8
[ 2.165578] el0_svc+0x1c/0x58
[ 2.165881] el0t_64_sync_handler+0x94/0xb8
[ 2.166281] el0t_64_sync+0x15c/0x160
[ 2.166636] SMP: stopping secondary CPUs
[ 2.167065] Kernel Offset: 0x80000 from 0xffff800008000000
[ 2.167570] PHYS_OFFSET: 0x0
[ 2.167843] CPU features: 0x000,00120010,00001086
[ 2.168280] Memory Limit: none
[ 2.168576] —[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]—

请问楼主最后是怎么解决的?谢谢。