Jump to content

denni_isl

Members
  • Posts

    125
  • Joined

  • Last visited

Posts posted by denni_isl

  1. Just a brief question.

    Is it possible to pass something similar to this into armbianEnv.txt?

     

    bootargs=root=/dev/mmcblk1p1 rw rootwait console=tty0 console=ttyMSM0,115200n8 rootfs=ext4 noinitrd selinux=0
    bootcmd=ext4load mmc 1:1 ${kernel_addr_r} /boot/uImage; ext4load mmc 1:1 ${fdt_addr_r} /boot/apq8016-sbc.dtb; bootm ${kernel_addr_r} - ${fdt_addr_r}
    uenvcmd=run bootcmd

     

    Actually particularly to be more precise -

    bootcmd=ext4load mmc 1:1 ${fdt_addr_r} /boot/apq8016-sbc.dtb;

     

     

  2. This is the error message from - Armbian_20.05.1_Firefly-rk3399_focal_current_5.4.43.img.xz

    It hangs on -

    [    3.197491] rk808-rtc rk808-rtc: registered as rtc0                                                     
    [    3.198558] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!                              
    [    3.199193] fan53555-reg: supplied by vcc_sys                              

     

    Spoiler

    Starting kernel ...                                                                                        
                                                                                                               
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]                                     
    [    0.000000] Linux version 5.4.43-rockchip64 (root@builder) (gcc version 8.3.0 (GNU Toolchain for the A-0
    [    0.000000] Machine model: Firefly-RK3399 Board                                                         
    [    0.000000] efi: Getting EFI parameters from FDT:                                                       
    [    0.000000] efi: UEFI not found.                                                                        
    [    0.000000] cma: Reserved 128 MiB at 0x00000000ecc00000                                                 
    [    0.000000] NUMA: No NUMA configuration found                                                           
    [    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000f7ffffff]                          
    [    0.000000] NUMA: NODE_DATA [mem 0xf77e2800-0xf77e3fff]                                                 
    [    0.000000] Zone ranges:                                                                                
    [    0.000000]   DMA32    [mem 0x0000000000200000-0x00000000f7ffffff]                                      
    [    0.000000]   Normal   empty                                                                            
    [    0.000000] Movable zone start for each node                                                            
    [    0.000000] Early memory node ranges                                                                    
    [    0.000000]   node   0: [mem 0x0000000000200000-0x00000000f7ffffff]                                     
    [    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000000f7ffffff]                            
    [    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: MIGRATE_INFO_TYPE not supported.                                                      
    [    0.000000] psci: SMC Calling Convention v1.0                                                           
    [    0.000000] percpu: Embedded 23 pages/cpu s53592 r8192 d32424 u94208                                    
    [    0.000000] Detected VIPT I-cache on CPU0                                                               
    [    0.000000] CPU features: detected: ARM erratum 845719                                                  
    [    0.000000] CPU features: detected: GIC system register CPU interface                                   
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 999432                               
    [    0.000000] Policy zone: DMA32                                                                          
    [    0.000000] Kernel command line: root=UUID=65c6f601-0fdf-4eba-81e0-5d7346e31be4 rootwait rootfstype=ext1
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)                  
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)                    
    [    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off                                      
    [    0.000000] Memory: 3813528K/4061184K available (11964K kernel code, 1414K rwdata, 4656K rodata, 1024K )
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1                                  
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.                                           
    [    0.000000] rcu:     RCU event tracing is enabled.                                                      
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=6.                             
    [    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=6                                
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0                                              
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode                                                 
    [    0.000000] GICv3: 256 SPIs implemented                                                                 
    [    0.000000] GICv3: 0 Extended SPIs implemented                                                          
    [    0.000000] GICv3: Distributor has no Range Selector support                                            
    [    0.000000] GICv3: 16 PPIs implemented                                                                  
    [    0.000000] GICv3: no VLPI support, no direct LPI support                                               
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000                              
    [    0.000000] ITS [mem 0xfee20000-0xfee3ffff]                                                             
    [    0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @f6c80000 (flat, esz 8, psz 64K, shr 0)     
    [    0.000000] ITS: using cache flushing for cmd queue                                                     
    [    0.000000] GICv3: using LPI property table @0x00000000f6c40000                                         
    [    0.000000] GIC: using cache flushing for LPI property table                                            
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000f6c50000                          
    [    0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cp}
    [    0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }    
    [    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x484 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns                 
    [    0.001569] Console: colour dummy device 80x25                                                          
    [    0.002562] printk: console [tty1] enabled                                                              
    [    0.002682] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS ()
    [    0.002724] pid_max: default: 32768 minimum: 301                                                        
    [    0.002876] LSM: Security Framework initializing                                                        
    [    0.002925] Yama: becoming mindful.                                                                     
    [    0.003112] AppArmor: AppArmor initialized                                                              
    [    0.003209] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)                        
    [    0.003260] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)                   
    [    0.003344] *** VALIDATE tmpfs ***                                                                      
    [    0.004048] *** VALIDATE proc ***                                                                       
    [    0.004375] *** VALIDATE cgroup1 ***                                                                    
    [    0.004400] *** VALIDATE cgroup2 ***                                                                    
    [    0.027777] ASID allocator initialised with 32768 entries                                               
    [    0.035774] rcu: Hierarchical SRCU implementation.                                                      
    [    0.045946] Platform MSI: interrupt-controller@fee20000 domain created                                  
    [    0.046416] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created        
    [    0.048683] EFI services will not be available.                                                         
    [    0.056500] smp: Bringing up secondary CPUs ...                                                         
    [    0.088742] Detected VIPT I-cache on CPU1                                                               
    [    0.088780] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000                              
    [    0.088797] GICv3: CPU1: using allocated LPI pending table @0x00000000f6c60000                          
    [    0.088845] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]                                  
    [    0.120832] Detected VIPT I-cache on CPU2                                                               
    [    0.120860] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000                              
    [    0.120875] GICv3: CPU2: using allocated LPI pending table @0x00000000f6c70000                          
    [    0.120909] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]                                  
    [    0.152948] Detected VIPT I-cache on CPU3                                                               
    [    0.152976] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000                              
    [    0.152991] GICv3: CPU3: using allocated LPI pending table @0x00000000f6d00000                          
    [    0.153024] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]                                  
    [    0.185079] CPU features: detected: EL2 vector hardening                                                
    [    0.185090] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware                                           
    [    0.185099] Detected PIPT I-cache on CPU4                                                               
    [    0.185130] GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000                            
    [    0.185144] GICv3: CPU4: using allocated LPI pending table @0x00000000f6d10000                          
    [    0.185181] CPU4: Booted secondary processor 0x0000000100 [0x410fd082]                                  
    [    0.217199] Detected PIPT I-cache on CPU5                                                               
    [    0.217226] GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000                            
    [    0.217239] GICv3: CPU5: using allocated LPI pending table @0x00000000f6d20000                          
    [    0.217267] CPU5: Booted secondary processor 0x0000000101 [0x410fd082]                                  
    [    0.217402] smp: Brought up 1 node, 6 CPUs                                                              
    [    0.217793] SMP: Total of 6 processors activated.                                                       
    [    0.217816] CPU features: detected: 32-bit EL0 Support                                                  
    [    0.217840] CPU features: detected: CRC32 instructions                                                  
    [    0.219065] CPU: All CPU(s) started at EL2                                                              
    [    0.219127] alternatives: patching kernel code                                                          
    [    0.222454] devtmpfs: initialized                                                                       
    [    0.242509] Registered cp15_barrier emulation handler                                                   
    [    0.242554] Registered setend emulation handler                                                         
    [    0.243077] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 764504178510000s
    [    0.243163] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)                             
    [    0.249247] xor: measuring software checksum speed                                                      
    [    0.289310]    8regs     :  1188.000 MB/sec                                                             
    [    0.329337]    32regs    :  2756.000 MB/sec                                                             
    [    0.369412]    arm64_neon:  2345.000 MB/sec                                                             
    [    0.369427] xor: using function: 32regs (2756.000 MB/sec)                                               
    [    0.369536] pinctrl core: initialized pinctrl subsystem                                                 
    [    0.370415] DMI not present or invalid.                                                                 
    [    0.370805] NET: Registered protocol family 16                                                          
    [    0.386631] DMA: preallocated 2048 KiB pool for atomic allocations                                      
    [    0.386656] audit: initializing netlink subsys (disabled)                                               
    [    0.386872] audit: type=2000 audit(0.384:1): state=initialized audit_enabled=0 res=1                    
    [    0.388262] cpuidle: using governor menu                                                                
    [    0.388576] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.                               
    [    0.389919] Serial: AMBA PL011 UART driver                                                              
    [    0.430182] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages                                
    [    0.430209] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages                                
    [    0.430227] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages                                
    [    0.430244] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages                                
    [    0.440198] cryptd: max_cpu_qlen set to 1000                                                            
    [    0.525810] raid6: neonx8   gen()  1324 MB/s                                                            
    [    0.593955] raid6: neonx8   xor()  1191 MB/s                                                            
    [    0.662139] raid6: neonx4   gen()  1005 MB/s                                                            
    [    0.730232] raid6: neonx4   xor()   996 MB/s                                                            
    [    0.798386] raid6: neonx2   gen()   927 MB/s                                                            
    [    0.866539] raid6: neonx2   xor()  1082 MB/s                                                            
    [    0.934682] raid6: neonx1   gen()   718 MB/s                                                            
    [    1.002812] raid6: neonx1   xor()   831 MB/s                                                            
    [    1.070973] raid6: int64x8  gen()   718 MB/s                                                            
    [    1.139115] raid6: int64x8  xor()   532 MB/s                                                            
    [    1.207221] raid6: int64x4  gen()   642 MB/s                                                            
    [    1.275346] raid6: int64x4  xor()   554 MB/s                                                            
    [    1.343468] raid6: int64x2  gen()   471 MB/s                                                            
    [    1.411594] raid6: int64x2  xor()   499 MB/s                                                            
    [    1.479888] raid6: int64x1  gen()   345 MB/s                                                            
    [    1.547871] raid6: int64x1  xor()   338 MB/s                                                            
    [    1.547885] raid6: using algorithm neonx8 gen() 1324 MB/s                                               
    [    1.547898] raid6: .... xor() 1191 MB/s, rmw enabled                                                    
    [    1.547912] raid6: using neon recovery algorithm                                                        
    [    1.549504] vcc3v3_pcie: supplied by dc_12v                                                             
    [    1.550483] vcc_sys: supplied by dc_12v                                                                 
    [    1.550963] iommu: Default domain type: Translated                                                      
    [    1.553256] vgaarb: loaded                                                                              
    [    1.553726] SCSI subsystem initialized                                                                  
    [    1.554207] usbcore: registered new interface driver usbfs                                              
    [    1.554272] usbcore: registered new interface driver hub                                                
    [    1.554381] usbcore: registered new device driver usb                                                   
    [    1.554995] pps_core: LinuxPPS API ver. 1 registered                                                    
    [    1.555012] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>    
    [    1.555040] PTP clock support registered                                                                
    [    1.555297] EDAC MC: Ver: 3.0.0                                                                         
    [    1.556310] NetLabel: Initializing                                                                      
    [    1.556327] NetLabel:  domain hash size = 128                                                           
    [    1.556339] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO                                            
    [    1.556412] NetLabel:  unlabeled traffic allowed by default                                             
    [    1.556876] clocksource: Switched to clocksource arch_sys_counter                                       
    [    1.557095] VFS: Disk quotas dquot_6.6.0                                                                
    [    1.557172] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)                              
    [    1.557268] *** VALIDATE ramfs ***                                                                      
    [    1.557292] *** VALIDATE hugetlbfs ***                                                                  
    [    1.557970] AppArmor: AppArmor Filesystem Enabled                                                       
    [    1.566917] thermal_sys: Registered thermal governor 'fair_share'                                       
    [    1.566922] thermal_sys: Registered thermal governor 'bang_bang'                                        
    [    1.566943] thermal_sys: Registered thermal governor 'step_wise'                                        
    [    1.566958] thermal_sys: Registered thermal governor 'user_space'                                       
    [    1.566973] thermal_sys: Registered thermal governor 'power_allocator'                                  
    [    1.567536] NET: Registered protocol family 2                                                           
    [    1.568287] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)           
    [    1.568471] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)                  
    [    1.569040] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)                         
    [    1.569719] TCP: Hash tables configured (established 32768 bind 32768)                                  
    [    1.569904] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)                                
    [    1.570074] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)                           
    [    1.570417] NET: Registered protocol family 1                                                           
    [    1.570458] PCI: CLS 0 bytes, default 64                                                                
    [    1.570656] Trying to unpack rootfs image as initramfs...                                               
    [    1.843399] Freeing initrd memory: 16244K                                                               
    [    1.844491] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available               
    [    1.844893] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available               
    [    1.845386] kvm [1]: IPA Size Limit: 40bits                                                             
    [    1.846019] kvm [1]: vgic-v2@fff20000                                                                   
    [    1.846060] kvm [1]: GIC system register CPU interface enabled                                          
    [    1.846281] kvm [1]: vgic interrupt IRQ10                                                               
    [    1.846530] kvm [1]: Hyp mode initialized successfully                                                  
    [    2.159767] Initialise system trusted keyrings                                                          
    [    2.159819] Key type blacklist registered                                                               
    [    2.160000] workingset: timestamp_bits=44 max_order=20 bucket_order=0                                   
    [    2.165741] zbud: loaded                                                                                
    [    2.167537] squashfs: version 4.0 (2009/01/31) Phillip Lougher                                          
    [    2.168363] fuse: init (API version 7.31)                                                               
    [    2.168460] *** VALIDATE fuse ***                                                                       
    [    2.168479] *** VALIDATE fuse ***                                                                       
    [    2.169748] Platform Keyring initialized                                                                
    [    2.205408] Key type asymmetric registered                                                              
    [    2.205433] Asymmetric key parser 'x509' registered                                                     
    [    2.205500] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)                        
    [    2.205731] io scheduler mq-deadline registered                                                         
    [    2.205751] io scheduler kyber registered                                                               
    [    2.205919] io scheduler bfq registered                                                                 
    [    2.208989] vcc5v0_host: supplied by vcc_sys                                                            
    [    2.220690] rockchip-pcie f8000000.pcie: no vpcie12v regulator found                                    
    [    2.220732] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found                                    
    [    2.220763] rockchip-pcie f8000000.pcie: no vpcie1v8 regulator found                                    
    [    2.220794] rockchip-pcie f8000000.pcie: no vpcie0v9 regulator found                                    
    [    2.776914] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!                               
    [    2.777014] rockchip-pcie: probe of f8000000.pcie failed with error -110                                
    [    2.782652] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330                      
    [    2.782680] dma-pl330 ff6d0000.dma-controller:       DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events2
    [    2.783917] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330                      
    [    2.783943] dma-pl330 ff6e0000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Event6
    [    2.787186] pwm-regulator: supplied by regulator-dummy                                                  
    [    2.787452] vcc3v3_sys: supplied by vcc_sys                                                             
    [    2.788607] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled                                    
    [    2.791469] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 38, base_baud = 1500000) is a 16550A       
    [    2.792259] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 39, base_baud = 1500000) is a 16550A       
    [    2.903979] printk: console [ttyS2] enabled                                                             
    [    2.905468] Serial: AMBA driver                                                                         
    [    2.906995] cacheinfo: Unable to detect cache hierarchy for CPU 0                                       
    [    2.918257] loop: module loaded                                                                         
    [    2.922944] libphy: Fixed MDIO Bus: probed                                                              
    [    2.923631] tun: Universal TUN/TAP device driver, 1.6                                                   
    [    2.925086] thunder_xcv, ver 1.0                                                                        
    [    2.925418] thunder_bgx, ver 1.0                                                                        
    [    2.925746] nicpf, ver 1.0                                                                              
    [    2.926948] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k                                          
    [    2.927469] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.                                         
    [    2.928039] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k                             
    [    2.928658] igb: Copyright (c) 2007-2014 Intel Corporation.                                             
    [    2.929218] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k                   
    [    2.929914] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.                                         
    [    2.930691] sky2: driver version 1.30                                                                   
    [    2.931649] VFIO - User Level meta-driver version: 0.3                                                  
    [    2.938490] OF: graph: no port node found in /syscon@ff770000/usb2-phy@e450/otg-port                    
    [    2.946565] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                                  
    [    2.947166] ehci-pci: EHCI PCI platform driver                                                          
    [    2.947598] ehci-platform: EHCI generic platform driver                                                 
    [    2.950300] ehci-platform fe380000.usb: EHCI Host Controller                                            
    [    2.950828] ehci-platform fe380000.usb: new USB bus registered, assigned bus number 1                   
    [    2.951655] ehci-platform fe380000.usb: irq 31, io mem 0xfe380000                                       
    [    2.964910] ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00                                      
    [    2.965696] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04              
    [    2.966438] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1                          
    [    2.967084] usb usb1: Product: EHCI Host Controller                                                     
    [    2.967525] usb usb1: Manufacturer: Linux 5.4.43-rockchip64 ehci_hcd                                    
    [    2.968093] usb usb1: SerialNumber: fe380000.usb                                                        
    [    2.969032] hub 1-0:1.0: USB hub found                                                                  
    [    2.969404] hub 1-0:1.0: 1 port detected                                                                
    [    2.972281] ehci-platform fe3c0000.usb: EHCI Host Controller                                            
    [    2.972805] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 2                   
    [    2.973629] ehci-platform fe3c0000.usb: irq 33, io mem 0xfe3c0000                                       
    [    2.988905] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00                                      
    [    2.989659] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04              
    [    2.990399] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1                          
    [    2.991045] usb usb2: Product: EHCI Host Controller                                                     
    [    2.991484] usb usb2: Manufacturer: Linux 5.4.43-rockchip64 ehci_hcd                                    
    [    2.992052] usb usb2: SerialNumber: fe3c0000.usb                                                        
    [    2.992941] hub 2-0:1.0: USB hub found                                                                  
    [    2.993311] hub 2-0:1.0: 1 port detected                                                                
    [    2.994246] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver                                      
    [    2.994811] ohci-pci: OHCI PCI platform driver                                                          
    [    2.995254] ohci-platform: OHCI generic platform driver                                                 
    [    2.995927] ohci-platform fe3a0000.usb: Generic Platform OHCI controller                                
    [    2.996540] ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 3                   
    [    2.997385] ohci-platform fe3a0000.usb: irq 32, io mem 0xfe3a0000                                       
    [    3.061206] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04              
    [    3.061946] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1                          
    [    3.062593] usb usb3: Product: Generic Platform OHCI controller                                         
    [    3.063124] usb usb3: Manufacturer: Linux 5.4.43-rockchip64 ohci_hcd                                    
    [    3.063691] usb usb3: SerialNumber: fe3a0000.usb                                                        
    [    3.064556] hub 3-0:1.0: USB hub found                                                                  
    [    3.064943] hub 3-0:1.0: 1 port detected                                                                
    [    3.065775] ohci-platform fe3e0000.usb: Generic Platform OHCI controller                                
    [    3.066388] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 4                   
    [    3.067189] ohci-platform fe3e0000.usb: irq 34, io mem 0xfe3e0000                                       
    [    3.129103] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04              
    [    3.129845] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1                          
    [    3.130491] usb usb4: Product: Generic Platform OHCI controller                                         
    [    3.131022] usb usb4: Manufacturer: Linux 5.4.43-rockchip64 ohci_hcd                                    
    [    3.131590] usb usb4: SerialNumber: fe3e0000.usb                                                        
    [    3.132459] hub 4-0:1.0: USB hub found                                                                  
    [    3.132829] hub 4-0:1.0: 1 port detected                                                                
    [    3.134387] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller                                              
    [    3.134897] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 5                     
    [    3.135748] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010
    [    3.136599] xhci-hcd xhci-hcd.0.auto: irq 227, io mem 0xfe800000                                        
    [    3.137523] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04              
    [    3.138263] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1                          
    [    3.138910] usb usb5: Product: xHCI Host Controller                                                     
    [    3.139350] usb usb5: Manufacturer: Linux 5.4.43-rockchip64 xhci-hcd                                    
    [    3.139919] usb usb5: SerialNumber: xhci-hcd.0.auto                                                     
    [    3.140812] hub 5-0:1.0: USB hub found                                                                  
    [    3.141202] hub 5-0:1.0: 1 port detected                                                                
    [    3.141845] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller                                              
    [    3.142347] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 6                     
    [    3.143038] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed                                  
    [    3.143682] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.                
    [    3.144528] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04              
    [    3.145284] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1                          
    [    3.145931] usb usb6: Product: xHCI Host Controller                                                     
    [    3.146371] usb usb6: Manufacturer: Linux 5.4.43-rockchip64 xhci-hcd                                    
    [    3.146939] usb usb6: SerialNumber: xhci-hcd.0.auto                                                     
    [    3.147839] hub 6-0:1.0: USB hub found                                                                  
    [    3.148208] hub 6-0:1.0: 1 port detected                                                                
    [    3.149043] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller                                              
    [    3.149552] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 7                     
    [    3.150389] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010
    [    3.151269] xhci-hcd xhci-hcd.1.auto: irq 228, io mem 0xfe900000                                        
    [    3.152158] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04              
    [    3.152915] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1                          
    [    3.153562] usb usb7: Product: xHCI Host Controller                                                     
    [    3.154001] usb usb7: Manufacturer: Linux 5.4.43-rockchip64 xhci-hcd                                    
    [    3.154570] usb usb7: SerialNumber: xhci-hcd.1.auto                                                     
    [    3.155454] hub 7-0:1.0: USB hub found                                                                  
    [    3.155823] hub 7-0:1.0: 1 port detected                                                                
    [    3.156466] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller                                              
    [    3.156994] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 8                     
    [    3.157687] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed                                  
    [    3.158336] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.                
    [    3.159172] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04              
    [    3.159911] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1                          
    [    3.160557] usb usb8: Product: xHCI Host Controller                                                     
    [    3.161012] usb usb8: Manufacturer: Linux 5.4.43-rockchip64 xhci-hcd                                    
    [    3.161580] usb usb8: SerialNumber: xhci-hcd.1.auto                                                     
    [    3.162465] hub 8-0:1.0: USB hub found                                                                  
    [    3.162835] hub 8-0:1.0: 1 port detected                                                                
    [    3.163670] usbcore: registered new interface driver usb-storage                                        
    [    3.166705] mousedev: PS/2 mouse device common for all mice                                             
    [    3.168386] i2c /dev entries driver                                                                     
    [    3.171201] rk808 0-001b: chip id: 0x0                                                                  
    [    3.175700] rk808-regulator rk808-regulator: there is no dvs0 gpio                                      
    [    3.176280] rk808-regulator rk808-regulator: there is no dvs1 gpio                                      
    [    3.176935] DCDC_REG1: supplied by vcc_sys                                                              
    [    3.178213] DCDC_REG2: supplied by vcc_sys                                                              
    [    3.179116] DCDC_REG3: supplied by vcc_sys                                                              
    [    3.179734] DCDC_REG4: supplied by vcc_sys                                                              
    [    3.180692] LDO_REG1: supplied by vcc_sys                                                               
    [    3.182301] LDO_REG2: supplied by vcc_sys                                                               
    [    3.182857] vcc2v8_dvp: Bringing 3000000uV into 2800000-2800000uV                                       
    [    3.184273] LDO_REG3: supplied by vcc_sys                                                               
    [    3.185739] LDO_REG4: supplied by vcc_sys                                                               
    [    3.187184] LDO_REG5: supplied by vcc_sys                                                               
    [    3.188519] LDO_REG6: supplied by vcc_sys                                                               
    [    3.190004] LDO_REG7: supplied by vcc_sys                                                               
    [    3.191321] LDO_REG8: supplied by vcc_sys                                                               
    [    3.192780] SWITCH_REG1: supplied by vcc3v3_sys                                                         
    [    3.193506] SWITCH_REG2: supplied by vcc3v3_sys                                                         
    [    3.197491] rk808-rtc rk808-rtc: registered as rtc0                                                     
    [    3.198558] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!                              
    [    3.199193] fan53555-reg: supplied by vcc_sys                                                           

     

     

    And u-boot printenv

     

    Spoiler

    printenv
    altbootcmd=setenv boot_syslinux_conf extlinux/extlinux-rollback.conf;run distro_bootcmd
    arch=arm
    baudrate=1500000
    board=evb_rk3399
    board_name=evb_rk3399
    boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
    boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnumi
    boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
    boot_net_usb_start=usb start
    boot_pci_enum=pci enum
    boot_prefixes=/ /boot/
    boot_script_dhcp=boot.scr.uimg
    boot_scripts=boot.scr.uimg boot.scr
    boot_syslinux_conf=extlinux/extlinux.conf
    boot_targets=mmc1 mmc0 nvme0 usb0 pxe dhcp sf0
    bootcmd=run distro_bootcmd
    bootcmd_dhcp=run boot_net_usb_start; run boot_pci_enum; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtf;
    bootcmd_mmc0=devnum=0; run mmc_boot
    bootcmd_mmc1=devnum=1; run mmc_boot
    bootcmd_nvme0=devnum=0; run nvme_boot
    bootcmd_pxe=run boot_net_usb_start; run boot_pci_enum; dhcp; if pxe get; then pxe boot; fi
    bootcmd_sf0=busnum=0; run sf_boot
    bootcmd_usb0=devnum=0; run usb_boot
    bootdelay=0
    cpu=armv8
    cpuid#=544d463939322e3030000000000d898a
    distro_bootcmd=setenv nvme_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
    efi_dtb_prefixes=/ /dtb/ /dtb/current/
    eth1addr=26:e0:17:46:a8:c0
    ethaddr=26:e0:17:46:a8:a0
    fdt_addr_r=0x01f00000
    fdtcontroladdr=f5f194d0
    fdtfile=rockchip/rk3399-firefly.dtb
    kernel_addr_r=0x02080000
    load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
    mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
    nvme_boot=run boot_pci_enum; run nvme_init; if nvme dev ${devnum}; then devtype=nvme; run scan_dev_for_boot_part; fi
    nvme_init=if ${nvme_need_init}; then setenv nvme_need_init false; nvme scan; fi
    partitions=uuid_disk=${uuid_gpt_disk};name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt;
    pxefile_addr_r=0x00600000
    ramdisk_addr_r=0x06000000
    scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run sc;
    scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devt
    scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefie
    scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinui
    scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-e
    scan_sf_for_scripts=${devtype} read ${scriptaddr} ${script_offset_f} ${script_size_f}; source ${scriptaddr}; echo SCRIPT FAILED: continuing...
    script_offset_f=0xffe000
    script_size_f=0x2000
    scriptaddr=0x00500000
    serial#=19d9d710df333dee
    sf_boot=if sf probe ${busnum}; then devtype=sf; run scan_sf_for_scripts; fi
    soc=rk3399
    stderr=serial@ff1a0000
    stdin=serial@ff1a0000
    stdout=serial@ff1a0000
    usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
    vendor=rockchip

    Environment size: 4774/32764 bytes
    =>

     

  3. Hi folks,

    This is a bit strange.   One core is constantly at 100% on a  firefly-rk3399 board.

    It seems to be because of some emmc issues according to this output.

     

    Quote

    $ ps aux --sort=-pcpu | head
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root       226 91.9  0.0      0     0 ?        R    09:23   5:41 [kworker/u12:1+brcmf_wq/mmc0:0001:1]

     

    Quote

    uname -a
    Linux firefly-rk3399 5.8.17-rockchip64 #20.08.21 SMP PREEMPT Sat Oct 31 08:22:59 CET 2020 aarch64 GNU/Linux

     

    journalctl -f

     

    Spoiler

    journalctl -f
    -- Logs begin at Sun 2020-11-22 09:23:31 UTC. --
    Nov 22 09:24:55 firefly-rk3399 systemd[1]: Reached target Graphical Interface.
    Nov 22 09:24:55 firefly-rk3399 systemd[1]: Starting Update UTMP about System Runlevel Changes...
    Nov 22 09:24:55 firefly-rk3399 systemd[1]: systemd-update-utmp-runlevel.service: Succeeded.
    Nov 22 09:24:55 firefly-rk3399 systemd[1]: Started Update UTMP about System Runlevel Changes.
    Nov 22 09:24:55 firefly-rk3399 systemd[1]: Startup finished in 16.550s (kernel) + 1min 31.073s (userspace) = 1min 47.623s.
    Nov 22 09:25:01 firefly-rk3399 CRON[2474]: pam_unix(cron:session): session opened for user root by (uid=0)
    Nov 22 09:25:01 firefly-rk3399 CRON[2475]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    Nov 22 09:25:01 firefly-rk3399 CRON[2474]: pam_unix(cron:session): session closed for user root
    Nov 22 09:26:44 firefly-rk3399 su[2751]: (to root) steini on pts/1
    Nov 22 09:26:44 firefly-rk3399 su[2751]: pam_unix(su:session): session opened for user root by (uid=1000)
    Nov 22 09:28:04 firefly-rk3399 sudo[2815]:   steini : TTY=pts/2 ; PWD=/home/steini ; USER=root ; COMMAND=/usr/bin/apt install px
    Nov 22 09:28:04 firefly-rk3399 sudo[2815]: pam_unix(sudo:session): session opened for user root by (uid=0)
    Nov 22 09:28:25 firefly-rk3399 sudo[2815]: pam_unix(sudo:session): session closed for user root
    Nov 22 09:30:01 firefly-rk3399 CRON[3075]: pam_unix(cron:session): session opened for user root by (uid=0)
    Nov 22 09:30:01 firefly-rk3399 CRON[3076]: (root) CMD (/usr/lib/armbian/armbian-truncate-logs)
    Nov 22 09:30:01 firefly-rk3399 CRON[3075]: pam_unix(cron:session): session closed for user root
    Nov 22 09:34:50 firefly-rk3399 dbus-daemon[741]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.70' (uid=1000 pid=2518 comm="/usr/lib/firefox-esr/firefox-esr ")
    Nov 22 09:34:50 firefly-rk3399 systemd[1]: Starting Hostname Service...
    Nov 22 09:34:50 firefly-rk3399 dbus-daemon[741]: [system] Successfully activated service 'org.freedesktop.hostname1'
    Nov 22 09:34:50 firefly-rk3399 systemd[1]: Started Hostname Service.
    Nov 22 09:34:50 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:50 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:51 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:51 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:51 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:52 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:52 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:52 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:52 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:52 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:34:52 firefly-rk3399 org.gtk.vfs.Daemon[1527]: mkdir failed on directory /var/cache/samba: Permission denied
    Nov 22 09:35:01 firefly-rk3399 CRON[3447]: pam_unix(cron:session): session opened for user root by (uid=0)
    Nov 22 09:35:01 firefly-rk3399 CRON[3448]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    Nov 22 09:35:01 firefly-rk3399 CRON[3447]: pam_unix(cron:session): session closed for user root
    Nov 22 09:35:20 firefly-rk3399 systemd[1]: systemd-hostnamed.service: Succeeded.
    Nov 22 09:38:39 firefly-rk3399 systemd[1]: Starting Cleanup of Temporary Directories...
    Nov 22 09:38:39 firefly-rk3399 systemd-tmpfiles[3625]: [/usr/lib/tmpfiles.d/speech-dispatcher.conf:1] Line references path below legacy directory /var/run/, updating /var/run/speech-dispatcher → /run/speech-dispatcher; please update the tmpfiles.d/ drop-in file accordingly.
    Nov 22 09:38:39 firefly-rk3399 systemd-tmpfiles[3625]: [/usr/lib/tmpfiles.d/speech-dispatcher.conf:2] Line references path below legacy directory /var/run/, updating /var/run/speech-dispatcher/.cache → /run/speech-dispatcher/.cache; please update the tmpfiles.d/ drop-in file accordingly.
    Nov 22 09:38:39 firefly-rk3399 systemd-tmpfiles[3625]: [/usr/lib/tmpfiles.d/speech-dispatcher.conf:3] Line references path below legacy directory /var/run/, updating /var/run/speech-dispatcher/.speech-dispatcher → /run/speech-dispatcher/.speech-dispatcher; please update the tmpfiles.d/ drop-in file accordingly.
    Nov 22 09:38:39 firefly-rk3399 systemd-tmpfiles[3625]: [/usr/lib/tmpfiles.d/speech-dispatcher.conf:4] Line references path below legacy directory /var/run/, updating /var/run/speech-dispatcher/.cache/speech-dispatcher → /run/speech-dispatcher/.cache/speech-dispatcher; please update the tmpfiles.d/ drop-in file accordingly.
    Nov 22 09:38:39 firefly-rk3399 systemd-tmpfiles[3625]: [/usr/lib/tmpfiles.d/speech-dispatcher.conf:5] Line references path below legacy directory /var/run/, updating /var/run/speech-dispatcher/log → /run/speech-dispatcher/log; please update the tmpfiles.d/ drop-in file accordingly.
    Nov 22 09:38:39 firefly-rk3399 systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
    Nov 22 09:38:39 firefly-rk3399 systemd[1]: Started Cleanup of Temporary Directories.

     

    This is htop

     

    htop_cpu1.png

  4. 5 hours ago, balbes150 said:

    As an assumption, it is possible that u-boot specifies the name of the DTB file, which is not suitable for recent kernels. You can try to force the use of a different DTB (via armbianuEnv.txt) and try to check other DTB options. Sometimes there are "miracles" and someone else's DTB can work.

     

    This did it!  Did add - device_tree=/boot/dtb/rockchip/firefly-rk3399.dtb in armbianEnv.txt and start 20.02.7 kernel 5.4.28 from Mars 28

     

    Spoiler

    DDR Version 1.24 20191016
    In
    Channel 0: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    Channel 1: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    256B stride
    ch 0 ddrconfig = 0x101, ddrsize = 0x2020
    ch 1 ddrconfig = 0x101, ddrsize = 0x2020
    pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
    OUT
    Boot1: 2019-03-14, version: 1.19
    CPUId = 0x0
    ChipType = 0x10, 244
    SdmmcInit=2 0
    BootCapSize=100000
    UserCapSize=119276MB
    FwPartOffset=2000 , 100000
    mmc0:cmd5,20
    SdmmcInit=0 0
    BootCapSize=0
    UserCapSize=61056MB
    FwPartOffset=2000 , 0
    StorageInit ok = 65106
    SecureMode = 0
    SecureInit read PBA: 0x4
    SecureInit read PBA: 0x404
    SecureInit read PBA: 0x804
    SecureInit read PBA: 0xc04
    SecureInit read PBA: 0x1004
    SecureInit read PBA: 0x1404
    SecureInit read PBA: 0x1804
    SecureInit read PBA: 0x1c04
    SecureInit ret = 0, SecureMode = 0
    atags_set_bootdev: ret:(0)
    GPT 0x3380ec0 signature is wrong
    recovery gpt...
    GPT 0x3380ec0 signature is wrong
    recovery gpt fail!
    LoadTrust Addr:0x4000
    No find bl30.bin
    No find bl32.bin
    Load uboot, ReadLba = 2000
    Load OK, addr=0x200000, size=0xa5474
    RunBL31 0x40000
    NOTICE:  BL31: v1.3(debug):42583b6
    NOTICE:  BL31: Built : 07:55:13, Oct 15 2019
    NOTICE:  BL31: Rockchip release version: v1.1
    INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
    INFO:    Using opteed sec cpu_context!
    INFO:    boot cpu mask: 0
    WARNING: check_cpu_wfie: 1, 0, 69632, error!
    WARNING: check_cpu_wfie: 1, 1, 139264, error!
    INFO:    plat_rockchip_pmu_init(1190): pd status e
    INFO:    BL31: Initializing runtime services
    WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will K
    ERROR:   Error initializing runtime service opteed_fast
    INFO:    BL31: Preparing for EL3 exit to normal world
    INFO:    Entry point address = 0x200000
    INFO:    SPSR = 0x3c9


    U-Boot 2020.01-armbian (Mar 28 2020 - 17:02:29 +0100)

    Model: Firefly-RK3399 Board
    DRAM:  3.9 GiB
    PMIC:  RK808
    MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0
    Loading Environment from MMC... *** Warning - bad CRC, using default environment

    In:    serial@ff1a0000
    Out:   serial@ff1a0000
    Err:   serial@ff1a0000
    Model: Firefly-RK3399 Board
    rockchip_dnl_key_pressed: adc_channel_single_shot fail!
    Net:   eth0: ethernet@fe300000
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    ** No partition table - mmc 0 **
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found U-Boot script /boot/boot.scr
    2940 bytes read in 7 ms (410.2 KiB/s)
    ## Executing script at 00500000
    Boot script loaded from mmc 1
    152 bytes read in 6 ms (24.4 KiB/s)
    7285953 bytes read in 315 ms (22.1 MiB/s)
    20787712 bytes read in 884 ms (22.4 MiB/s)
    74432 bytes read in 12 ms (5.9 MiB/s)
    2698 bytes read in 10 ms (262.7 KiB/s)
    Applying kernel provided DT fixup script (rockchip-fixup.scr)
    ## Executing script at 39000000
    ## Loading init Ramdisk from Legacy Image at 06000000 ...
       Image Name:   uInitrd
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
       Data Size:    7285889 Bytes = 6.9 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 01f00000
       Booting using the fdt blob at 0x1f00000
       Loading Ramdisk to f582f000, end f5f21c81 ... OK
       Loading Device Tree to 00000000f57b4000, end 00000000f582efff ... OK

    Starting kernel ...


    Armbian 20.02.7 Buster ttyS2

    firefly-rk3399 login:
    CTRL-A Z for help | 1500000 8N1 | NOR | Minicom 2.7.1 | VT102 | Online 35:15 | ttyUSB0

     

    But it was not sufficient to bring up Armbian_20.08.1_Firefly-rk3399_focal_current_5.8.6.img

    ( do always clean the SD between the attempts with - dd if=/dev/zero of=/dev/sdc bs=4096 status=progress) 

     

    This is a good reading about dtb and overlays - https://www.raspberrypi.org/documentation/configuration/device-tree.md

     

     

     

  5. 15 hours ago, piter75 said:

    Both look perfectly well except for the fact that the latest one does not boot :(

     

    Can you also try one of the v20.02.7 images available in the archive? https://archive.armbian.com/firefly-rk3399/archive/

    I'd like to find the most precise point where it stopped working.

     

    This image Armbian_20.02.7_Firefly-rk3399_bullseye_legacy_4.4.213  - legacy did work.  Will try current next.  

    And this is the messages from the serial output from ttyFIQ0

     

    Spoiler

    In
    soft reset
    SRX
    Channel 0: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    Channel 1: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    256B stride
    ch 0 ddrconfig = 0x101, ddrsize = 0x2020
    ch 1 ddrconfig = 0x101, ddrsize = 0x2020
    pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
    OUT
    Boot1: 2019-03-14, version: 1.19
    CPUId = 0x0
    ChipType = 0x10, 307
    SdmmcInit=2 0
    BootCapSize=100000
    UserCapSize=119276MB
    FwPartOffset=2000 , 100000
    mmc0:cmd5,20
    SdmmcInit=0 0
    BootCapSize=0
    UserCapSize=61056MB
    FwPartOffset=2000 , 0
    StorageInit ok = 65578
    SecureMode = 0
    SecureInit read PBA: 0x4
    SecureInit read PBA: 0x404
    SecureInit read PBA: 0x804
    SecureInit read PBA: 0xc04
    SecureInit read PBA: 0x1004
    SecureInit read PBA: 0x1404
    SecureInit read PBA: 0x1804
    SecureInit read PBA: 0x1c04
    SecureInit ret = 0, SecureMode = 0
    atags_set_bootdev: ret:(0)
    GPT 0x3380ec0 signature is wrong
    recovery gpt...
    GPT 0x3380ec0 signature is wrong
    recovery gpt fail!
    LoadTrust Addr:0x4000
    No find bl30.bin
    No find bl32.bin
    Load uboot, ReadLba = 2000
    Load OK, addr=0x200000, size=0xa5474
    RunBL31 0x40000
    NOTICE:  BL31: v1.3(debug):42583b6
    NOTICE:  BL31: Built : 07:55:13, Oct 15 2019
    NOTICE:  BL31: Rockchip release version: v1.1
    INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
    INFO:    Using opteed sec cpu_context!
    INFO:    boot cpu mask: 0
    INFO:    plat_rockchip_pmu_init(1190): pd status 3e
    INFO:    BL31: Initializing runtime services
    WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will K
    ERROR:   Error initializing runtime service opteed_fast
    INFO:    BL31: Preparing for EL3 exit to normal world
    INFO:    Entry point address = 0x200000
    INFO:    SPSR = 0x3c9


    U-Boot 2020.01-armbian (Mar 28 2020 - 16:55:52 +0100)

    Model: Firefly-RK3399 Board
    DRAM:  3.9 GiB
    PMIC:  RK808
    MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0
    Loading Environment from MMC... *** Warning - bad CRC, using default environment

    In:    serial@ff1a0000
    Out:   serial@ff1a0000
    Err:   serial@ff1a0000
    Model: Firefly-RK3399 Board
    rockchip_dnl_key_pressed: adc_channel_single_shot fail!
    Net:   eth0: ethernet@fe300000
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    ** No partition table - mmc 0 **
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found U-Boot script /boot/boot.scr
    2940 bytes read in 6 ms (478.5 KiB/s)
    ## Executing script at 00500000
    Boot script loaded from mmc 1
    151 bytes read in 5 ms (29.3 KiB/s)
    7990082 bytes read in 345 ms (22.1 MiB/s)
    20559880 bytes read in 877 ms (22.4 MiB/s)
    101691 bytes read in 13 ms (7.5 MiB/s)
    ## Loading init Ramdisk from Legacy Image at 06000000 ...
       Image Name:   uInitrd
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
       Data Size:    7990018 Bytes = 7.6 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 01f00000
       Booting using the fdt blob at 0x1f00000
       Loading Ramdisk to f5784000, end f5f22b02 ... OK
    ERROR: reserving fdt memory region failed (addr=0 size=0)
       Loading Device Tree to 00000000f5702000, end 00000000f5783fff ... OK

    Starting kernel ...


    Armbian 20.02.7 Bullseye ttyFIQ0

    firefly-rk3399 login:
    CTRL-A Z for help | 1500000 8N1 | NOR | Minicom 2.7.1 | VT102 | Online 32:43 | ttyUSB0            

     

    Current - Armbian_20.02.7_Firefly-rk3399_buster_current_5.4.28_desktop is not working,

    this is the output.

     

    Spoiler

    DDR Version 1.24 20191016
    In
    Channel 0: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    Channel 1: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    256B stride
    ch 0 ddrconfig = 0x101, ddrsize = 0x2020
    ch 1 ddrconfig = 0x101, ddrsize = 0x2020
    pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
    OUT
    Boot1: 2019-03-14, version: 1.19
    CPUId = 0x0
    ChipType = 0x10, 243
    SdmmcInit=2 0
    BootCapSize=100000
    UserCapSize=119276MB
    FwPartOffset=2000 , 100000
    mmc0:cmd5,20
    SdmmcInit=0 0
    BootCapSize=0
    UserCapSize=61056MB
    FwPartOffset=2000 , 0
    StorageInit ok = 65063
    SecureMode = 0
    SecureInit read PBA: 0x4
    SecureInit read PBA: 0x404
    SecureInit read PBA: 0x804
    SecureInit read PBA: 0xc04
    SecureInit read PBA: 0x1004
    SecureInit read PBA: 0x1404
    SecureInit read PBA: 0x1804
    SecureInit read PBA: 0x1c04
    SecureInit ret = 0, SecureMode = 0
    atags_set_bootdev: ret:(0)
    GPT 0x3380ec0 signature is wrong
    recovery gpt...
    GPT 0x3380ec0 signature is wrong
    recovery gpt fail!
    LoadTrust Addr:0x4000
    No find bl30.bin
    No find bl32.bin
    Load uboot, ReadLba = 2000
    Load OK, addr=0x200000, size=0xa5474
    RunBL31 0x40000
    NOTICE:  BL31: v1.3(debug):42583b6
    NOTICE:  BL31: Built : 07:55:13, Oct 15 2019
    NOTICE:  BL31: Rockchip release version: v1.1
    INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
    INFO:    Using opteed sec cpu_context!
    INFO:    boot cpu mask: 0
    INFO:    plat_rockchip_pmu_init(1190): pd status 3e
    INFO:    BL31: Initializing runtime services
    WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will K
    ERROR:   Error initializing runtime service opteed_fast
    INFO:    BL31: Preparing for EL3 exit to normal world
    INFO:    Entry point address = 0x200000
    INFO:    SPSR = 0x3c9


    U-Boot 2020.01-armbian (Mar 28 2020 - 17:02:29 +0100)

    Model: Firefly-RK3399 Board
    DRAM:  3.9 GiB
    PMIC:  RK808
    MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0
    Loading Environment from MMC... *** Warning - bad CRC, using default environment

    In:    serial@ff1a0000
    Out:   serial@ff1a0000
    Err:   serial@ff1a0000
    Model: Firefly-RK3399 Board
    rockchip_dnl_key_pressed: adc_channel_single_shot fail!
    Net:   eth0: ethernet@fe300000
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    ** No partition table - mmc 0 **
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found U-Boot script /boot/boot.scr
    2940 bytes read in 7 ms (410.2 KiB/s)
    ## Executing script at 00500000
    Boot script loaded from mmc 1
    102 bytes read in 5 ms (19.5 KiB/s)
    7285953 bytes read in 316 ms (22 MiB/s)
    20787712 bytes read in 884 ms (22.4 MiB/s)
    74432 bytes read in 12 ms (5.9 MiB/s)
    2698 bytes read in 9 ms (292 KiB/s)
    Applying kernel provided DT fixup script (rockchip-fixup.scr)
    ## Executing script at 39000000
    ## Loading init Ramdisk from Legacy Image at 06000000 ...
       Image Name:   uInitrd
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
       Data Size:    7285889 Bytes = 6.9 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 01f00000
       Booting using the fdt blob at 0x1f00000
       Loading Ramdisk to f582f000, end f5f21c81 ... OK
       Loading Device Tree to 00000000f57b4000, end 00000000f582efff ... OK

    Starting kernel ...


    CTRL-A Z for help | 1500000 8N1 | NOR | Minicom 2.7.1 | VT102 | Online 33:18 | ttyUSB0 

     

    Perhaps some issues with the dtb file with the current kernel as balbes150 did suggest.  

     

     

  6. 2 hours ago, piter75 said:

    Armbian does not use those hardware eMMC partitions.

     

    Can you try to boot this image (https://users.armbian.com/piter75/Armbian_20.11.0-trunk_Firefly-rk3399_buster_current_5.9.9_minimal.img.xz) with SD and provide console logs - it should be more verbose that the default one.

     

    This is the output

     

    Spoiler

    U-Boot 2020.07-armbian (Nov 19 2020 - 14:46:07 +0100)

    SoC: Rockchip rk3399
    Reset cause: POR
    Model: Firefly-RK3399 Board
    DRAM:  3.9 GiB
    PMIC:  RK808
    Cannot find regulator pwm init_voltage
    MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
    Loading Environment from MMC... *** Warning - bad CRC, using default environment

    In:    serial@ff1a0000
    Out:   serial@ff1a0000
    Err:   serial@ff1a0000
    Model: Firefly-RK3399 Board
    Net:   eth0: ethernet@fe300000
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found U-Boot script /boot/boot.scr
    3185 bytes read in 6 ms (517.6 KiB/s)
    ## Executing script at 00500000
    Boot script loaded from mmc 1
    117 bytes read in 4 ms (28.3 KiB/s)
    12434832 bytes read in 534 ms (22.2 MiB/s)
    27574784 bytes read in 1170 ms (22.5 MiB/s)
    76119 bytes read in 11 ms (6.6 MiB/s)
    2698 bytes read in 9 ms (292 KiB/s)
    Applying kernel provided DT fixup script (rockchip-fixup.scr)
    ## Executing script at 09000000
    ## Loading init Ramdisk from Legacy Image at 06000000 ...
       Image Name:   uInitrd
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
       Data Size:    12434768 Bytes = 11.9 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 01f00000
       Booting using the fdt blob at 0x1f00000
       Loading Ramdisk to f533a000, end f5f15d50 ... OK
       Loading Device Tree to 00000000f52bf000, end 00000000f5339fff ... OK

    Starting kernel ...


    CTRL-A Z for help | 1500000 8N1 | NOR | Minicom 2.7.1 | VT102 | Online 15:48 | ttyUSB0 

     

    And for comparison  the image actually working - Armbian_19.11.7_Firefly-rk3399_bionic_legacy_4.4.208_desktop

     

    Spoiler

    U-Boot 2019.10-armbian (Jan 05 2020 - 23:21:21 +0100)

    Model: Firefly-RK3399 Board
    DRAM:  3.9 GiB
    MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0
    Loading Environment from EXT4...
    ** Unable to use mmc 0:auto for loading the env **
    In:    serial@ff1a0000
    Out:   serial@ff1a0000
    Err:   serial@ff1a0000
    Model: Firefly-RK3399 Board
    rockchip_dnl_key_pressed: adc_channel_single_shot fail!
    Net:   eth0: ethernet@fe300000
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    ** No partition table - mmc 0 **
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found U-Boot script /boot/boot.scr
    2940 bytes read in 6 ms (478.5 KiB/s)
    ## Executing script at 00500000
    Boot script loaded from mmc 1
    187 bytes read in 5 ms (36.1 KiB/s)
    8626223 bytes read in 548 ms (15 MiB/s)
    20492296 bytes read in 1290 ms (15.1 MiB/s)
    101178 bytes read in 15 ms (6.4 MiB/s)
    ## Loading init Ramdisk from Legacy Image at 04000000 ...
       Image Name:   uInitrd
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
       Data Size:    8626159 Bytes = 8.2 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 01f00000
       Booting using the fdt blob at 0x1f00000
       Loading Ramdisk to f56e7000, end f5f20fef ... OK
    ERROR: reserving fdt memory region failed (addr=0 size=0)
       Loading Device Tree to 00000000f5665000, end 00000000f56e6fff ... OK

    Starting kernel ...

    [   55.308735] mali ff9a0000.gpu: Failed to get pvtm
    [   55.317459] ERROR: Bad of_node_put() on /gpu@ff9a0000
    [   60.044499] CONFIG-ERROR) dhd_conf_set_bufiovar: country setting failed -2

    Armbian 19.11.7 Bionic ttyFIQ0

    firefly login:
    CTRL-A Z for help | 1500000 8N1 | NOR | Minicom 2.7.1 | VT102 | Online 15:52 | ttyUSB0

     

     

     

  7. Those partitions do always remain on the emmc;

    /dev/mmcblk1boot0

    /dev/mmcblk1rpmb - (Replay Protected Memory Block) "information is always available to the authorized users" .   This is probably

    they key of the vendors (manufacturers) ultimate power over the product.  

     

    Some well-known use cases include software version authentication - This might be the case.

     

    "Secured: write protect can be enabled and disabled only for those who are authorized to
    use the RPMB."

     

    Boot partitions can be permanent, secured or power-on write protected.

     

    So the takeaway from this thread is probably this information - that the newer armbian images for firefly-rk3399 are probably lacking access through the mechanism of Replay Protected Memory Block on the emmc drive.  

     

    - My rockpro64 does not have any /dev/mmcblk1rpmb partition - just read only /dev/mmcblk2boot0 - which I have not studied yet.

     

    Some reading;

    https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwi23oiOpo7tAhVvMewKHXaFCrsQFjACegQIAxAC&url=https%3A%2F%2Fdocuments.westerndigital.com%2Fcontent%2Fdam%2Fdoc-library%2Fen_us%2Fassets%2Fpublic%2Fwestern-digital%2Fcollateral%2Fwhite-paper%2Fwhite-paper-emmc-security.pdf&usg=AOvVaw3vy_3cNBFO1aNLZVNwA-aK

  8. Spoiler

    setenv m "1080p60hz" setenv m_bpp "32"

    setenv condev "console=ttyS0,115200n8 console=tty0" # on both

    setenv bootargs "root=/dev/mmcblk0p1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes"

    setenv loadaddr "0x11000000"

    setenv dtb_loadaddr "0x1000000"

    setenv initrd_loadaddr "0x13000000"

    ext4load mmc 0:1 ${initrd_loadaddr} /boot/uInitrd

    ext4load mmc 0:1 ${loadaddr} /boot/Image

    ext4load mmc 0:1 ${dtb_loadaddr} /boot/meson64_odroidc2.dtb

    booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

     

    Something similar to above commands might be the right way to bring it up coorectly.

     

    Might try something similar to those commands to try to get to the images on the sd card.

    How is it possible to obtain the correct addresses corresponding to those?

    setenv loadaddr "0x11000000"

    setenv dtb_loadaddr "0x1000000"

    setenv initrd_loadaddr "0x13000000"

     

    Got those messages from u-boot trying to boot Armbian_20.05.2_Firefly-rk3399_buster_current_5.4.43_desktop image, after - Starting kernel ..................

     

    Spoiler

    Starting kernel ...

    SdmmcInit=2 0
    BootCapSize=100000
    UserCapSize=119276MB
    FwPartOffset=2000 , 100000
    mmc0:cmd5,20
    SdmmcInit=0 0
    BootCapSize=0
    UserCapSize=61056MB
    FwPartOffset=2000 , 0
    StorageInit ok = 65244
    SecureMode = 0
    SecureInit read PBA: 0x4
    SecureInit read PBA: 0x404
    SecureInit read PBA: 0x804
    SecureInit read PBA: 0xc04
    SecureInit read PBA: 0x1004
    SecureInit read PBA: 0x1404
    SecureInit read PBA: 0x1804
    SecureInit read PBA: 0x1c04
    SecureInit ret = 0, SecureMode = 0
    atags_set_bootdev: ret:(0)
    GPT 0x3380ec0 signature is wrong
    recovery gpt...
    GPT 0x3380ec0 signature is wrong
    recovery gpt fail!
    LoadTrust Addr:0x4000
    No find bl30.bin
    No find bl32.bin
    Load uboot, ReadLba = 2000
    Load OK, addr=0x200000, size=0xb1cb0
    RunBL31 0x40000
    NOTICE:  BL31: v1.3(debug):42583b6
    NOTICE:  BL31: Built : 07:55:13, Oct 15 2019
    NOTICE:  BL31: Rockchip release version: v1.1
    INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
    INFO:    Using opteed sec cpu_context!
    INFO:    boot cpu mask: 0
    INFO:    plat_rockchip_pmu_init(1190): pd status 3e
    INFO:    BL31: Initializing runtime services
    WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPK
    ERROR:   Error initializing runtime service opteed_fast
    INFO:    BL31: Preparing for EL3 exit to normal world
    INFO:    Entry point address = 0x200000
    INFO:    SPSR = 0x3c9

     

  9. This is the boot messages from trying to boot  Armbian_20.05.2_Firefly-rk3399_buster_current_5.4.43_desktop

    Spoiler

    U-Boot 2020.07-armbian (Sep 03 2020 - 19:56:25 +0200)

    SoC: Rockchip rk3399
    Reset cause: POR
    Model: Firefly-RK3399 Board
    DRAM:  3.9 GiB
    PMIC:  RK808
    Cannot find regulator pwm init_voltage
    MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
    Loading Environment from MMC... *** Warning - bad CRC, using default environment

    In:    serial@ff1a0000
    Out:   serial@ff1a0000
    Err:   serial@ff1a0000
    Model: Firefly-RK3399 Board
    Net:   eth0: ethernet@fe300000
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found U-Boot script /boot/boot.scr
    3185 bytes read in 5 ms (622.1 KiB/s)
    ## Executing script at 00500000
    Boot script loaded from mmc 1
    116 bytes read in 5 ms (22.5 KiB/s)
    15587897 bytes read in 664 ms (22.4 MiB/s)
    27275776 bytes read in 1157 ms (22.5 MiB/s)
    75813 bytes read in 11 ms (6.6 MiB/s)
    2698 bytes read in 9 ms (292 KiB/s)
    Applying kernel provided DT fixup script (rockchip-fixup.scr)
    ## Executing script at 09000000
    ## Loading init Ramdisk from Legacy Image at 06000000 ...
       Image Name:   uInitrd
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
       Data Size:    15587833 Bytes = 14.9 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 01f00000
       Booting using the fdt blob at 0x1f00000
       Loading Ramdisk to f5038000, end f5f159f9 ... OK
       Loading Device Tree to 00000000f4fbd000, end 00000000f5037fff ... OK

    Starting kernel ...

     

  10. There are always unallocated partitions left after emmc cleaning with blockthiscard /dev/mmcblk1rmp (unknown 4.2M)and /dev/mmcblkboot0 (read only 4.2M).

    It is like the vendor "firefly" is locking the hardware from the software (image) upgrade(?).

     

    and use ./upgrade_tool or rkdeveloptool to upload through usb otg -

    Btw. is there any way to open up the .img files from those partitions?     Is the Vendor in control here?  

    Did - dd if=/dev/zero of=/dev/mmcblk1 bs=4096 status=progress - the /dev/mmcblk1boot0 and /dev/mmcblk1rpmb are still there.

    - When booting from Armbian_20.05.2_Firefly-rk3399_buster_current_5.4.43_desktop - u-boot gives this message -


     

    Quote

    Cannot find regulator pwm init_voltage
    MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
    Loading Environment from MMC... *** Warning - bad CRC, using default environment

     

    First is how firefly wants to have the partition table - Android stile - Rockchip

    Then there is the "empty" emmc with the two boot partitions left.  

     

    gpt_partion_table_firefly_emmc.png

    mmcblk1boot0.png

    mmcblk1rpm.png

    sd_firefly_partiton_56MiB.png

  11. 5 hours ago, piter75 said:

    To be certain....

    Do I understand correctly that it works for you if you transfer the older Armbian (v19.11.7) from SD to eMMC (probably by the means of nand-sata-install) and then run the upgrade?

    Does the system boot with eMMC after the upgrade?

    If it boots... does it recognise the SD card that you insert while the system is running (booted with eMMC)?

     

    Yes,  this is correct but it just recognizance the SD card as a medium not as a booting. 

    If I update the SD card with v19.11.7 and and install it with armbian-config to emmc  it will not boot again.  

    If I install the v19.11.7 before doing apt update; apt upgrade update to the emmc and then it will bee a fully functional installation

    I do have a a SD image from 2017 that I can always boot up from though.

  12. Quote

    GPT 0x3380ec0 signature is wrong                                                
    recovery gpt...                                                                 
    GPT 0x3380ec0 signature is wrong                                                
    recovery gpt fail!                                                              
    LoadTrust Addr:0x4000                                                           
    No find bl30.bin                                                                
    No find bl32.bin                                                                
    Load uboot, ReadLba = 2000                                                      
    RunBL31 0x40000         

     

    Did try this in u-boot and get error

     

     

    And this

    Quote

    => booti
    Bad Linux ARM64 Image magic!

    then this

    extload mmc 1:1 0x00008000 /boot/Image
    ** No partition table - mmc 1 **

    and this

    ext4load mmc 0 0x00008000 /boot/dtb-5.8.6-rockchip64           
    ** Unrecognized filesystem type **

     

  13. Still struggling to get a newer version of Armbian.   Did try wipefs, blockthiscard, gui tools, dos partiotions, no partiotions, dd if=/dev/zero of=/dev/mmcblk1 (and the card) - just about everything to get the cards clean.   Now there is just one warning "Warning: Bad CRC, using default environment".   Did stop u-boot and >  saveenv - reset with image  Armbian_20.05.2_Firefly-rk3399_buster_current_5.4.43_desktop.img.xz -

     

    The image from January this year works - kernel 4.4.

     

    So this is interesting -

     

    Spoiler

    U-Boot 2020.04-armbian (Jun 03 2020 - 10:01:42 +0200)                           
                                                                                    
    SoC: Rockchip rk3399                                                            
    Reset cause: RST                                                                
    Model: Firefly-RK3399 Board                                                     
    DRAM:  3.9 GiB                                                                  
    PMIC:  RK808                                                                    
    MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0                                     
    Loading Environment from MMC... OK                                              
    In:    serial@ff1a0000                                                          
    Out:   serial@ff1a0000                                                          
    Err:   serial@ff1a0000                                                          
    Model: Firefly-RK3399 Board                                                     
    Net:   eth0: ethernet@fe300000                                                  
    Hit any key to stop autoboot:  0                                                
    switch to partitions #0, OK                                                     
    mmc1 is current device                                                          
    Scanning mmc 1:1...                                                             
    Found U-Boot script /boot/boot.scr                                              
    2940 bytes read in 6 ms (478.5 KiB/s)                                           
    ## Executing script at 00500000                                                 
    Boot script loaded from mmc 1                                                   
    102 bytes read in 4 ms (24.4 KiB/s)                                             
    12177392 bytes read in 520 ms (22.3 MiB/s)                                      
    19601920 bytes read in 835 ms (22.4 MiB/s)                                      
    74464 bytes read in 11 ms (6.5 MiB/s)                                           
    2698 bytes read in 8 ms (329.1 KiB/s)                                           
    Applying kernel provided DT fixup script (rockchip-fixup.scr)                   
    ## Executing script at 39000000                                                 
    ## Loading init Ramdisk from Legacy Image at 06000000 ...                       
       Image Name:   uInitrd                                                        
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)                  
       Data Size:    12177328 Bytes = 11.6 MiB                                      
       Load Address: 00000000                                                       
       Entry Point:  00000000                                                       
       Verifying Checksum ... OK                                                    
    ## Flattened Device Tree blob at 01f00000                                       
       Booting using the fdt blob at 0x1f00000                                      
       Loading Ramdisk to f5385000, end f5f21fb0 ... OK                             
       Loading Device Tree to 00000000f530a000, end 00000000f5384fff ... OK         
                                                                                    
    Starting kernel ...                                                             
                                            

     

    And the  working image from Jan 5 2020 - Armbian_19.11.7_Firefly-rk3399_bionic_legacy_4.4.208_desktop.img

     

    Spoiler

    U-Boot 2019.10-armbian (Jan 05 2020 - 23:21:21 +0100)                           
                                                                                    
    Model: Firefly-RK3399 Board                                                     
    DRAM:  3.9 GiB                                                                  
    MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0                                     
    Loading Environment from EXT4...                                                
    ** Unable to use mmc 0:auto for loading the env **                              
    In:    serial@ff1a0000                                                          
    Out:   serial@ff1a0000                                                          
    Err:   serial@ff1a0000                                                          
    Model: Firefly-RK3399 Board                                                     
    rockchip_dnl_key_pressed: adc_channel_single_shot fail!                         
    Net:   eth0: ethernet@fe300000                                                  
    Hit any key to stop autoboot:  0                                                
    switch to partitions #0, OK                                                     
    mmc0(part 0) is current device                                                  
    ** No partition table - mmc 0 **                                                
    switch to partitions #0, OK                                                     
    mmc1 is current device                                                          
    Scanning mmc 1:1...                                                             
    Found U-Boot script /boot/boot.scr                                              
    2940 bytes read in 6 ms (478.5 KiB/s)                                           
    ## Executing script at 00500000                                                 
    Boot script loaded from mmc 1                                                   
    188 bytes read in 5 ms (36.1 KiB/s)                                             
    9024550 bytes read in 572 ms (15 MiB/s)                                         
    20703240 bytes read in 1303 ms (15.2 MiB/s)                                     
    101691 bytes read in 16 ms (6.1 MiB/s)                                          
    2698 bytes read in 10 ms (262.7 KiB/s)                                          
    Applying kernel provided DT fixup script (rockchip-fixup.scr)                   
    ## Executing script at 39000000                                                 
    ## Loading init Ramdisk from Legacy Image at 04000000 ...                       
       Image Name:   uInitrd                                                        
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)                  
       Data Size:    9024486 Bytes = 8.6 MiB                                        
       Load Address: 00000000                                                       
       Entry Point:  00000000                                                       
       Verifying Checksum ... OK                                                    
    ## Flattened Device Tree blob at 01f00000                                       
       Booting using the fdt blob at 0x1f00000                                      
       Loading Ramdisk to f5686000, end f5f213e6 ... OK                             
    ERROR: reserving fdt memory region failed (addr=0 size=0)                       
       Loading Device Tree to 00000000f5604000, end 00000000f5685fff ... OK         
                                                                                    
    Starting kernel ...       

     

    Possible hint - The later (working) one (u-boot) starts on scanning dev 0 - mmc0(part 0) is current device    and does then scan dev 1

    Loading init Ramdisk from Legacy Image at 06000000 ... (not working)  and Loading init Ramdisk from Legacy Image at 04000000 ...  (working)

     

  14. This might be the actual case - a missing bl30.bin and bl32.bin - Think it is almost first in the boot process.

     

    * GPT 0x3380ec0 signature is wrong                                                                          
    recovery gpt fail!                                                                                        
    LoadTrust Addr:0x4000                                                                                     
    * No find bl30.bin                                                                                          
    No find bl32.bin                 

  15. 7 hours ago, piter75 said:

    Can you post the serial console output from the failed boot rather than the successful one? ;-)

     

    The testing image is Armbian_20.08.1_Firefly-rk3399_focal_current_5.8.6_desktop.img.xz

     

    Some error messages;

    *  Loading Environment from MMC... *** Warning - bad CRC, using default environment    

     

    * WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destineK
    ERROR:   Error initializing runtime service opteed_fast

     

    *  GPT 0x3380ec0 signature is wrong                                                                          
    recovery gpt...                                                                                           
    GPT 0x3380ec0 signature is wrong                                                                          
    recovery gpt fail!                       

     

    * LoadTrust Addr:0x4000                                                                                     
    No find bl30.bin                                                                                          
    No find bl32.bin   

     

    This is the messages from u-boot

     

     

    Spoiler

    DDR Version 1.24 20191016
    In
    Channel 0: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    Channel 1: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    256B stride
    ch 0 ddrconfig = 0x101, ddrsize = 0x2020
    ch 1 ddrconfig = 0x101, ddrsize = 0x2020
    pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
    OUT
    Boot1: 2019-03-14, version: 1.19
    CPUId = 0x0
    ChipType = 0x10, 243
    SdmmcInit=2 0
    BootCapSize=100000
    UserCapSize=119276MB
    FwPartOffset=2000 , 100000
    mmc0:cmd5,20
    SdmmcInit=0 0
    BootCapSize=0
    UserCapSize=61056MB
    FwPartOffset=2000 , 0
    StorageInit ok = 250209                                                                                   
    SecureMode = 0                                                                                            
    SecureInit read PBA: 0x4                                                                                  
    SecureInit read PBA: 0x404                                                                                
    SecureInit read PBA: 0x804                                                                                
    SecureInit read PBA: 0xc04                                                                                
    SecureInit read PBA: 0x1004                                                                               
    SecureInit read PBA: 0x1404                                                                               
    SecureInit read PBA: 0x1804                                                                               
    SecureInit read PBA: 0x1c04                                                                               
    SecureInit ret = 0, SecureMode = 0                                                                        
    atags_set_bootdev: ret:(0)                                                                                
    GPT 0x3380ec0 signature is wrong                                                                          
    recovery gpt...                                                                                           
    GPT 0x3380ec0 signature is wrong                                                                          
    recovery gpt fail!                                                                                        
    LoadTrust Addr:0x4000                                                                                     
    No find bl30.bin                                                                                          
    No find bl32.bin                                                                                          
    Load uboot, ReadLba = 2000                                                                                
    Load OK, addr=0x200000, size=0xb1cb0                                                                      
    RunBL31 0x40000                                                                                           
    NOTICE:  BL31: v1.3(debug):42583b6                                                                        
    NOTICE:  BL31: Built : 07:55:13, Oct 15 2019                                                              
    NOTICE:  BL31: Rockchip release version: v1.1                                                             
    INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3                          
    INFO:    Using opteed sec cpu_context!                                                                    
    INFO:    boot cpu mask: 0                                                                                 
    INFO:    plat_rockchip_pmu_init(1190): pd status 3e                                                       
    INFO:    BL31: Initializing runtime services                                                              
    WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destineK
    ERROR:   Error initializing runtime service opteed_fast                                                   
    INFO:    BL31: Preparing for EL3 exit to normal world                                                     
    INFO:    Entry point address = 0x200000                                                                   
    INFO:    SPSR = 0x3c9                                                                                     
                                                                                                              
                                                                                                              
    U-Boot 2020.07-armbian (Sep 03 2020 - 19:56:25 +0200)                                                     
                                                                                                              
    SoC: Rockchip rk3399                                                                                      
    Reset cause: POR                                                                                          
    Model: Firefly-RK3399 Board                                                                               
    DRAM:  3.9 GiB                                                                                            
    PMIC:  RK808                                                                                              
    Cannot find regulator pwm init_voltage                                                                    
    MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0                                                
    Loading Environment from MMC... *** Warning - bad CRC, using default environment                          
                                                                                                              
    In:    serial@ff1a0000                                                                                    
    Out:   serial@ff1a0000                                                                                    
    Err:   serial@ff1a0000                                                                                    
    Model: Firefly-RK3399 Board                                                                               
    Net:   eth0: ethernet@fe300000                                                                            
    Hit any key to stop autoboot:  0                                                                          
    switch to partitions #0, OK                                                                               
    mmc1 is current device                                                                                    
    Scanning mmc 1:1...                                                                                       
    Found U-Boot script /boot/boot.scr                                                                        
    3185 bytes read in 5 ms (622.1 KiB/s)                                                                     
    ## Executing script at 00500000                                                                           
    Boot script loaded from mmc 1                                                                             
    116 bytes read in 5 ms (22.5 KiB/s)                                                                       
    15587897 bytes read in 664 ms (22.4 MiB/s)                                                                
    27275776 bytes read in 1156 ms (22.5 MiB/s)                                                               
    75813 bytes read in 11 ms (6.6 MiB/s)                                                                     
    2698 bytes read in 9 ms (292 KiB/s)                                                                       
    Applying kernel provided DT fixup script (rockchip-fixup.scr)                                             
    ## Executing script at 09000000                                                                           
    ## Loading init Ramdisk from Legacy Image at 06000000 ...                                                 
       Image Name:   uInitrd                                                                                  
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)                                            
       Data Size:    15587833 Bytes = 14.9 MiB                                                                
       Load Address: 00000000                                                                                 
       Entry Point:  00000000                                                                                 
       Verifying Checksum ... OK                                                                              
    ## Flattened Device Tree blob at 01f00000                                                                 
       Booting using the fdt blob at 0x1f00000                                                                
       Loading Ramdisk to f5038000, end f5f159f9 ... OK                                                       
       Loading Device Tree to 00000000f4fbd000, end 00000000f5037fff ... OK                                   
                                                                                                              
    Starting kernel ...       

     

  16. 14 minutes ago, NicoD said:

    Did you also try the nightly images?
    You can also check in the archive for the latest working image. I don't know/think anyone has a board to test the images.
    https://archive.armbian.com/firefly-rk3399/archive/

     

    Actually i did not try the nightly images.   Just the those marked stable.    They did all stop in the the - starting kernel process.... with some prior errors.     My guess is that it is some issues with the connection between u-boot and the /boot directory in Armbian.  

  17. Have been struggling to install Armbian on Firefly rk3399 - did try many images from armbian.com/firefly-rk3399 with no luck at all.   Then I did stumble on a Arbmian image on a USB stick from 5 of January  this year  Armbian_19.11.7_Firefly-rk3399_bionic_legacy_4.4.208_desktop.img  which did work to my

    surprise.   Thought it had something to do with u-boot and partitions.    I did always stop on starting kernel ... with some prior errors.    

     

    Will try to install newer images for the sake of curiosity :-)

     

    Btw. have donated to the Armbian project twice - not so much, but some amount - as people should do.    

     

    This is the serial output from the successful starting of Armbian_19.11.17 image.   Firefly seems to be completely focused on android and the android partition method. 

     

    Spoiler

    Press CTRL-A Z for help on special keys

    DDR Version 1.24 20191016
    In
    Channel 0: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    Channel 1: DDR3, 800MHz
    Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
    256B stride
    ch 0 ddrconfig = 0x101, ddrsize = 0x2020
    ch 1 ddrconfig = 0x101, ddrsize = 0x2020
    pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
    OUT
    20492296 bytes read in 1290 ms (15.1 MiB/s)
    101178 bytes read in 14 ms (6.9 MiB/s)
    ## Loading init Ramdisk from Legacy Image at 04000000 ...
       Image Name:   uInitrd                                                        
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)                  
       Data Size:    8626159 Bytes = 8.2 MiB                                        
       Load Address: 00000000                                                       
       Entry Point:  00000000                                                       
       Verifying Checksum ... OK                                                    
    ## Flattened Device Tree blob at 01f00000                                       
       Booting using the fdt blob at 0x1f00000                                      
       Loading Ramdisk to f56e7000, end f5f20fef ... OK                             
    ERROR: reserving fdt memory region failed (addr=0 size=0)                       
       Loading Device Tree to 00000000f5665000, end 00000000f56e6fff ... OK         
                                                                                    
    Starting kernel ...                      

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines