LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64
User Name
Password
slarm64 This forum is for the discussion of slarm64.

Notices


Reply
  Search this Thread
Old 07-31-2022, 08:30 AM   #31
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled

Quote:
Originally Posted by wowbaggerHU View Post
I copied some files from the SD card image to the emmc card that were old on the emmc, and were not updated during the kernel upgrades.
These were:

Code:
root@janos-work:~# LANG=en_US ls -l /media/janos/linuxroot/boot/
total 49792
-rw-r--r-- 1 root root     2568 Jul 24 03:41 boot.cmd
-rw-r--r-- 1 root root     2640 Jul 24 03:41 boot.scr
-rw-r--r-- 1 root root   172032 Jul 24 00:16 idbloader.img
-rw-r--r-- 1 root root  4194304 Jul 24 00:16 rkspi_loader.img
-rw-r--r-- 1 root root  1005968 Jul 24 00:16 u-boot.itb
root@janos-work:~#
Currently the boot fails with the following:

Code:
U-Boot TPL 2020.10-rk3399 (Dec 10 2020 - 15:55:26)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...
   
U-Boot SPL 2020.10-rk3399 (Dec 10 2020 - 15:55:26 +0100)
Trying to boot from MMC2
   
   
U-Boot 2020.10-rk3399 (Dec 10 2020 - 15:57:06 +0100)
   
SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 Pinebook Pro
DRAM:  3.9 GiB
PMIC:  RK808
MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from SPIFlash... Invalid bus 0 (err=-19)
*** Warning - spi_flash_probe_bus_cs() failed, using default environment
   
In:    serial
Out:   serial
Err:   serial
Model: Pine64 Pinebook Pro
Net:   No ethernet found.
starting USB...
Bus usb@fe380000: failed to get usb phy
Port not available.
Bus usb@fe3a0000: failed to get usb phy
Port not available.
Bus usb@fe3c0000: failed to get usb phy
Port not available.
Bus usb@fe3e0000: failed to get usb phy
Port not available.
Bus dwc3: Failed to get PHY0 for dwc3
Port not available.
Bus dwc3: Failed to get PHY0 for dwc3
Port not available.
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2640 bytes read in 12 ms (214.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
Failed to load '/boot/uEnv.txt'
Failed to load '/boot/dtb/rockchip/rk3399-pinebook-pro.dtb'
Failed to load '/boot/Image'
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Failed to load '/boot/dtb/rockchip/overlay/-fixup.scr'
Failed to load '/boot/uInitrd'
Bad Linux ARM64 Image magic!
SCRIPT FAILED: continuing...

Device 0: Vendor: 0x15b7 Rev: 211070WD Prod: 200125803728        
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
... is now current device
** Unrecognized filesystem type **
starting USB...
Bus usb@fe380000: failed to get usb phy
Port not available.
Bus usb@fe3a0000: failed to get usb phy
Port not available.
Bus usb@fe3c0000: failed to get usb phy
Port not available.
Bus usb@fe3e0000: failed to get usb phy
Port not available.
Bus dwc3: Failed to get PHY0 for dwc3
Port not available.
Bus dwc3: Failed to get PHY0 for dwc3
Port not available.
USB is stopped. Please issue 'usb start' first.
starting USB...
Bus usb@fe380000: failed to get usb phy
Port not available.
Bus usb@fe3a0000: failed to get usb phy
Port not available.
Bus usb@fe3c0000: failed to get usb phy
Port not available.
Bus usb@fe3e0000: failed to get usb phy
Port not available.
Bus dwc3: Failed to get PHY0 for dwc3
Port not available.
Bus dwc3: Failed to get PHY0 for dwc3
Port not available.
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-rk3399-pinebook-pro-rk3399
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-rk3399
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
Bus usb@fe380000: failed to get usb phy
Port not available.
Bus usb@fe3a0000: failed to get usb phy
Port not available.
Bus usb@fe3c0000: failed to get usb phy
Port not available.
Bus usb@fe3e0000: failed to get usb phy
Port not available.
Bus dwc3: Failed to get PHY0 for dwc3
Port not available.
Bus dwc3: Failed to get PHY0 for dwc3
Port not available.
No ethernet found.
No ethernet found.
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)
Is there perhaps something that I have to update in these files?
your boot is on a separate partition, so it does not find files (maybe because of this there was a problem of not loading the system, the wrong kernel was used)
so your bootloader looks for everything in the root / try to create a folder /boot in this partition and transfer everything there.
 
1 members found this post helpful.
Old 08-01-2022, 02:45 AM   #32
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
your boot is on a separate partition, so it does not find files (maybe because of this there was a problem of not loading the system, the wrong kernel was used)
so your bootloader looks for everything in the root / try to create a folder /boot in this partition and transfer everything there.
So, created a symlink on the boot partition that links boot to .
That way, the kernel is successfully booted, but again it seems to be stuck at the same place when control is transferred to init. (I don't know if it's the init from the initrd or the rootfs.)
 
Old 08-01-2022, 03:00 AM   #33
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
I did an extra step and rebuilt the initrd on the internal flash. The size of the unitrd file changed, so I hoped to see some improvement, but unfortunately it behaved the same way.
I see one other option, that would be to use the initrd that came in your image. I will try that in a few hours.
 
Old 08-01-2022, 03:23 AM   #34
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
I did an extra step and rebuilt the initrd on the internal flash. The size of the unitrd file changed, so I hoped to see some improvement, but unfortunately it behaved the same way.
I see one other option, that would be to use the initrd that came in your image. I will try that in a few hours.
initrd is especially unnecessary in your case, you can check for sdcard by deleting it.

I also encountered a similar problem on roсk pi 4 stopped when initializing pcie, the problem was solved by updating the u-boot to version 2022.07
 
Old 08-01-2022, 04:23 AM   #35
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
initrd is especially unnecessary in your case, you can check for sdcard by deleting it.

I also encountered a similar problem on roсk pi 4 stopped when initializing pcie, the problem was solved by updating the u-boot to version 2022.07
I believe it may be something similar. This time I deleted the uinitrd, and got the following output. It is waiting on mmcblk2p2, which as I far as I can see was not detected (only the NVMe SSD.) Plus it is complaining about the device tree overlays.
How do I upgrade u-boot on the internal flash?

Code:
U-Boot TPL 2020.10-rk3399 (Dec 10 2020 - 15:55:26)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2020.10-rk3399 (Dec 10 2020 - 15:55:26 +0100)
Trying to boot from MMC2


U-Boot 2020.10-rk3399 (Dec 10 2020 - 15:57:06 +0100)

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 Pinebook Pro
DRAM:  3.9 GiB
PMIC:  RK808
MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from SPIFlash... Invalid bus 0 (err=-19)
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Pine64 Pinebook Pro
Net:   No ethernet found.
...
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2640 bytes read in 12 ms (214.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
212 bytes read in 11 ms (18.6 KiB/s)
84290 bytes read in 44 ms (1.8 MiB/s)
29702656 bytes read in 1328 ms (21.3 MiB/s)
376 bytes read in 40 ms (8.8 KiB/s)
Applying kernel provided DT overlay rockchip-rk3399-opp-2ghz.dtbo

267 bytes read in 40 ms (5.9 KiB/s)
Applying kernel provided DT overlay rockchip-pcie-gen2.dtbo

Error applying DT overlays, restoring original DT
84290 bytes read in 42 ms (1.9 MiB/s)
Failed to load '/boot/uInitrd'
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Device Tree to 00000000f4f0e000, end 00000000f4f25941 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.18.14 (root@firefly-rk3399) (gcc (GCC) 11.2.0, GNU ld version 2.37-slack15) #1 SMP PREEMPT Sun Jul 24 01:18:11 EEST 2022
[    0.000000] Machine model: Pine64 Pinebook Pro
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xf77ca040-0xf77cbfff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000]   DMA32    empty
[    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] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 999432
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=/dev/mmcblk2p2 ro rootwait rootfstype=f2fs init=/sbin/init console=ttyS2,1500000n8 console=tty1 consoleblank=0 loglevel=8 usb-storage.quirks=  earlycon=uart8250,mmio32,0xff1a0000
...
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.002889] Console: colour dummy device 80x25
[    0.003327] printk: console [tty1] enabled
[    0.003728] printk: bootconsole [uart8250] disabled
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.18.14 (root@firefly-rk3399) (gcc (GCC) 11.2.0, GNU ld version 2.37-slack15) #1 SMP PREEMPT Sun Jul 24 01:18:11 EEST 2022
[    0.000000] Machine model: Pine64 Pinebook Pro
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
...
[    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] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] cma: Reserved 128 MiB at 0x00000000e9000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 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.2
[    0.000000] percpu: Embedded 29 pages/cpu s81704 r8192 d28888 u118784
[    0.000000] pcpu-alloc: s81704 r8192 d28888 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 999432
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=/dev/mmcblk2p2 ro rootwait rootfstype=f2fs init=/sbin/init console=ttyS2,1500000n8 console=tty1 consoleblank=0 loglevel=8 usb-storage.quirks=  earlycon=uart8250,mmio32,0xff1a0000
[    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: 3821716K/4061184K available (15680K kernel code, 2702K rwdata, 6108K rodata, 4352K init, 508K bss, 108396K reserved, 131072K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] trace event string verifier disabled
[    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]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of 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] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
[    0.000000] ITS [mem 0xfee20000-0xfee3ffff]
[    0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @500000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x00000000004d0000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000004e0000
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.002889] Console: colour dummy device 80x25
[    0.003327] printk: console [tty1] enabled
[    0.003728] printk: bootconsole [uart8250] disabled
[    0.004303] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.004345] pid_max: default: 32768 minimum: 301
[    0.004483] LSM: Security Framework initializing
[    0.004543] Yama: becoming mindful.
[    0.004689] AppArmor: AppArmor initialized
[    0.004850] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.004902] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.008151] cblist_init_generic: Setting adjustable number of callback queues.
[    0.008196] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.008380] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.008562] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.008945] rcu: Hierarchical SRCU implementation.
[    0.010128] Platform MSI: interrupt-controller@fee20000 domain created
[    0.010679] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
[    0.013018] EFI services will not be available.
[    0.013866] smp: Bringing up secondary CPUs ...
[    0.014971] Detected VIPT I-cache on CPU1
[    0.015022] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000
[    0.015045] GICv3: CPU1: using allocated LPI pending table @0x00000000004f0000
[    0.015115] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.016271] Detected VIPT I-cache on CPU2
[    0.016311] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000
[    0.016331] GICv3: CPU2: using allocated LPI pending table @0x0000000000580000
[    0.016380] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.017487] Detected VIPT I-cache on CPU3
[    0.017525] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000
[    0.017545] GICv3: CPU3: using allocated LPI pending table @0x0000000000590000
[    0.017590] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.018698] CPU features: detected: Spectre-v2
[    0.018715] CPU features: detected: Spectre-BHB
[    0.018727] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.018734] Detected PIPT I-cache on CPU4
[    0.018771] GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000
[    0.018790] GICv3: CPU4: using allocated LPI pending table @0x00000000005a0000
[    0.018836] CPU4: Booted secondary processor 0x0000000100 [0x410fd082]
[    0.020008] Detected PIPT I-cache on CPU5
[    0.020042] GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000
[    0.020060] GICv3: CPU5: using allocated LPI pending table @0x00000000005b0000
[    0.020099] CPU5: Booted secondary processor 0x0000000101 [0x410fd082]
[    0.020249] smp: Brought up 1 node, 6 CPUs
[    0.020639] SMP: Total of 6 processors activated.
[    0.020663] CPU features: detected: 32-bit EL0 Support
[    0.020684] CPU features: detected: 32-bit EL1 Support
[    0.020708] CPU features: detected: CRC32 instructions
[    0.022210] CPU: All CPU(s) started at EL2
[    0.022293] alternatives: patching kernel code
[    0.025372] devtmpfs: initialized
[    0.040929] Registered cp15_barrier emulation handler
[    0.040973] Registered setend emulation handler
[    0.041196] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.041264] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.044285] pinctrl core: initialized pinctrl subsystem
[    0.044944] DMI not present or invalid.
[    0.045740] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.049691] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[    0.051116] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.053298] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.053398] audit: initializing netlink subsys (disabled)
[    0.053677] audit: type=2000 audit(0.052:1): state=initialized audit_enabled=0 res=1
[    0.054839] thermal_sys: Registered thermal governor 'fair_share'
[    0.054848] thermal_sys: Registered thermal governor 'bang_bang'
[    0.054868] thermal_sys: Registered thermal governor 'step_wise'
[    0.054882] thermal_sys: Registered thermal governor 'user_space'
[    0.055422] cpuidle: using governor menu
[    0.055670] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.055914] ASID allocator initialised with 65536 entries
[    0.057170] Serial: AMBA PL011 UART driver
[    0.086356] platform ff770000.syscon:phy@f780: Fixing up cyclic dependency with fe330000.mmc
[    0.093125] platform ff970000.edp: Fixing up cyclic dependency with ff8f0000.vop
[    0.093210] platform ff970000.edp: Fixing up cyclic dependency with ff900000.vop
[    0.104224] rockchip-gpio ff720000.gpio: probed /pinctrl/gpio@ff720000
[    0.105062] rockchip-gpio ff730000.gpio: probed /pinctrl/gpio@ff730000
[    0.105928] rockchip-gpio ff780000.gpio: probed /pinctrl/gpio@ff780000
[    0.106737] rockchip-gpio ff788000.gpio: probed /pinctrl/gpio@ff788000
[    0.107478] rockchip-gpio ff790000.gpio: probed /pinctrl/gpio@ff790000
[    0.109299] platform edp-panel: Fixing up cyclic dependency with ff970000.edp
...
[    0.859045] iommu: Default domain type: Translated
[    0.859073] iommu: DMA domain TLB invalidation policy: strict mode
[    0.859567] SCSI subsystem initialized
[    0.859841] libata version 3.00 loaded.
[    0.860135] usbcore: registered new interface driver usbfs
[    0.860194] usbcore: registered new interface driver hub
[    0.860255] usbcore: registered new device driver usb
[    0.860879] pps_core: LinuxPPS API ver. 1 registered
[    0.860896] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.860924] PTP clock support registered
[    0.861266] EDAC MC: Ver: 3.0.0
[    0.862559] NetLabel: Initializing
[    0.862578] NetLabel:  domain hash size = 128
[    0.862592] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.862670] NetLabel:  unlabeled traffic allowed by default
[    0.862827] vgaarb: loaded
[    0.863322] clocksource: Switched to clocksource arch_sys_counter
[    0.919466] VFS: Disk quotas dquot_6.6.0
[    0.919557] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.920449] AppArmor: AppArmor Filesystem Enabled
[    0.930884] NET: Registered PF_INET protocol family
[    0.931188] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.934293] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.934509] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.934601] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.935080] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    0.935778] TCP: Hash tables configured (established 32768 bind 32768)
[    0.935944] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.936112] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.936471] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.936516] NET: Registered PF_XDP protocol family
[    0.936537] PCI: CLS 0 bytes, default 64
[    0.937765] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.938295] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.939184] kvm [1]: IPA Size Limit: 40 bits
...
[    0.943662] Initialise system trusted keyrings
[    0.943748] Key type blacklist registered
[    0.944003] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.950847] zbud: loaded
[    0.952839] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.953682] fuse: init (API version 7.36)
[    0.955232] integrity: Platform Keyring initialized
[    1.018220] xor: measuring software checksum speed
[    1.021638]    8regs           :  2912 MB/sec
[    1.024807]    32regs          :  3132 MB/sec
[    1.029196]    arm64_neon      :  2255 MB/sec
[    1.029212] xor: using function: 32regs (3132 MB/sec)
[    1.029232] Key type asymmetric registered
[    1.029246] Asymmetric key parser 'x509' registered
[    1.031341] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    1.031451] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.031704] io scheduler mq-deadline registered
[    1.031723] io scheduler kyber registered
[    1.031867] io scheduler bfq registered
[    1.059217] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.059256] dma-pl330 ff6d0000.dma-controller:       DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[    1.060861] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.060890] dma-pl330 ff6e0000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    1.130736] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.134685] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 41, base_baud = 1500000) is a 16550A
[    1.134888] serial serial0: tty port ttyS0 registered
[    1.136434] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 42, base_baud = 1500000) is a 16550A
[    1.252901] printk: console [ttyS2] enabled
[    1.254793] Serial: AMBA driver
[    1.259571] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.269158] loop: module loaded
[    1.274814] tun: Universal TUN/TAP device driver, 1.6
[    1.276422] thunder_xcv, ver 1.0
[    1.276759] thunder_bgx, ver 1.0
[    1.277099] nicpf, ver 1.0
[    1.278464] e1000e: Intel(R) PRO/1000 Network Driver
[    1.278912] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.279525] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.280011] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.280540] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.281100] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.281908] sky2: driver version 1.30
[    1.282945] VFIO - User Level meta-driver version: 0.3
[    1.293464] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.294075] ehci-pci: EHCI PCI platform driver
[    1.294510] ehci-platform: EHCI generic platform driver
[    1.297412] ehci-platform fe3c0000.usb: EHCI Host Controller
[    1.297945] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 1
[    1.298799] ehci-platform fe3c0000.usb: irq 36, io mem 0xfe3c0000
[    1.315348] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00
[    1.316158] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18
[    1.316905] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.317552] usb usb1: Product: EHCI Host Controller
[    1.317992] usb usb1: Manufacturer: Linux 5.18.14 ehci_hcd
[    1.318483] usb usb1: SerialNumber: fe3c0000.usb
[    1.319479] hub 1-0:1.0: USB hub found
[    1.319859] hub 1-0:1.0: 1 port detected
[    1.320939] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.321509] ohci-pci: OHCI PCI platform driver
[    1.321957] ohci-platform: OHCI generic platform driver
[    1.322751] ohci-platform fe3e0000.usb: Generic Platform OHCI controller
[    1.323393] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 2
[    1.324205] ohci-platform fe3e0000.usb: irq 37, io mem 0xfe3e0000
[    1.387541] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.18
[    1.388286] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.388934] usb usb2: Product: Generic Platform OHCI controller
[    1.389466] usb usb2: Manufacturer: Linux 5.18.14 ohci_hcd
[    1.389959] usb usb2: SerialNumber: fe3e0000.usb
[    1.390914] hub 2-0:1.0: USB hub found
[    1.391292] hub 2-0:1.0: 1 port detected
[    1.393154] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    1.393670] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 3
[    1.394505] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x8000000002010010
[    1.395431] xhci-hcd xhci-hcd.0.auto: irq 75, io mem 0xfe900000
[    1.396212] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    1.396721] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 4
[    1.397415] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    1.398178] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18
[    1.398922] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.399725] usb usb3: Product: xHCI Host Controller
[    1.400170] usb usb3: Manufacturer: Linux 5.18.14 xhci-hcd
[    1.400663] usb usb3: SerialNumber: xhci-hcd.0.auto
[    1.401667] hub 3-0:1.0: USB hub found
[    1.402049] hub 3-0:1.0: 1 port detected
[    1.402827] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.403719] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.18
[    1.404465] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.405112] usb usb4: Product: xHCI Host Controller
[    1.405551] usb usb4: Manufacturer: Linux 5.18.14 xhci-hcd
[    1.406043] usb usb4: SerialNumber: xhci-hcd.0.auto
[    1.406992] hub 4-0:1.0: USB hub found
[    1.407394] hub 4-0:1.0: 1 port detected
[    1.408244] usbcore: registered new interface driver usb-storage
[    1.411430] mousedev: PS/2 mouse device common for all mice
[    1.413332] i2c_dev: i2c /dev entries driver
[    1.418130] rk808 0-001b: chip id: 0x0
[    1.423195] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    1.423959] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    1.424522] rk808-regulator rk808-regulator: max buck steps per change: 8
[    1.439657] rk808-rtc rk808-rtc: registered as rtc0
[    1.440656] rk808-rtc rk808-rtc: setting system clock to 2022-08-01T08:36:51 UTC (1659343011)
[    1.443088] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
[    1.447209] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected!
[    1.456428] dw_wdt ff848000.watchdog: No valid TOPs array specified
[    1.459381] sdhci: Secure Digital Host Controller Interface driver
[    1.459943] sdhci: Copyright(c) Pierre Ossman
[    1.460355] Synopsys Designware Multimedia Card Interface Driver
[    1.462514] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.462907] dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode.
[    1.463552] dwmmc_rockchip fe320000.mmc: IDMAC supports 32-bit address mode.
[    1.463702] dwmmc_rockchip fe310000.mmc: Using internal DMA controller.
[    1.464339] dwmmc_rockchip fe320000.mmc: Using internal DMA controller.
[    1.464897] dwmmc_rockchip fe310000.mmc: Version ID is 270a
[    1.465495] dwmmc_rockchip fe320000.mmc: Version ID is 270a
[    1.466046] dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 31,32 bit host data width,256 deep fifo
[    1.466646] dwmmc_rockchip fe320000.mmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
[    1.467413] ledtrig-cpu: registered to indicate activity on CPUs
[    1.467707] dwmmc_rockchip fe310000.mmc: allocated mmc-pwrseq
[    1.467720] mmc_host mmc0: card is non-removable.
[    1.468995] dwmmc_rockchip fe320000.mmc: Got CD GPIO
[    1.470461] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.471377] hid: raw HID events driver (C) Jiri Kosina
[    1.471984] usbcore: registered new interface driver usbhid
[    1.472487] usbhid: USB HID core driver
[    1.473547] fusb302 4-0022: Can't get property of role, set role to default DRP
[    1.482481] fusb302 4-0022: Unable to request IRQ for INT_N GPIO! 0
[    1.483118] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    1.483391] fusb302: probe of 4-0022 failed with error -22
[    1.490197] drop_monitor: Initializing network drop monitor service
[    1.491539] NET: Registered PF_INET6 protocol family
[    1.495291] Segment Routing with IPv6
[    1.495713] In-situ OAM (IOAM) with IPv6
[    1.496152] NET: Registered PF_PACKET protocol family
[    1.496786] 8021q: 802.1Q VLAN Support v1.8
[    1.497253] Key type dns_resolver registered
[    1.499247] registered taskstats version 1
[    1.499676] Loading compiled-in X.509 certificates
[    1.503956] Loaded X.509 cert 'Build time autogenerated kernel key: 1e956c1a9c9de70cfa16fd1ed19514425965390b'
[    1.506057] zswap: loaded using pool lzo/zbud
[    1.507086] Key type ._fscrypt registered
[    1.507494] Key type .fscrypt registered
[    1.507852] Key type fscrypt-provisioning registered
[    1.510579] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
[    1.511637] Key type encrypted registered
[    1.512022] AppArmor: AppArmor sha1 policy hashing enabled
[    1.575362] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    1.587432] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    1.590165] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges:
[    1.590874] rockchip-pcie f8000000.pcie:      MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000
[    1.591701] rockchip-pcie f8000000.pcie:       IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000
[    1.593437] rockchip-pcie f8000000.pcie: no vpcie12v regulator found
[    1.633679] rockchip-pcie f8000000.pcie: wait 1000 ms (from device tree) before bus scan
[    1.699094] mmc_host mmc0: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[    1.733179] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.36
[    1.733921] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.734561] usb 1-1: Product: USB2.0 Hub
[    1.735836] hub 1-1:1.0: USB hub found
[    1.736555] hub 1-1:1.0: 4 ports detected
[    2.023338] usb 1-1.2: new high-speed USB device number 3 using ehci-platform
[    2.181051] usb 1-1.2: New USB device found, idVendor=0c45, idProduct=6321, bcdDevice= 0.00
[    2.181805] usb 1-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    2.182459] usb 1-1.2: Product: USB Camera
[    2.182830] usb 1-1.2: Manufacturer: Sonix Technology Co., Ltd.
[    2.348462] dwmmc_rockchip fe310000.mmc: Successfully tuned phase to 53
[    2.354852] mmc0: new ultra high speed SDR104 SDIO card at address 0001
[    2.655843] rockchip-pcie f8000000.pcie: PCI host bridge to bus 0000:00
[    2.656461] pci_bus 0000:00: root bus resource [bus 00-1f]
[    2.656983] pci_bus 0000:00: root bus resource [mem 0xfa000000-0xfbdfffff]
[    2.657616] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xfbe00000-0xfbefffff])
[    2.658535] pci 0000:00:00.0: [1d87:0100] type 01 class 0x060400
[    2.659263] pci 0000:00:00.0: supports D1
[    2.659666] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.667881] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.668921] pci 0000:01:00.0: [15b7:5009] type 00 class 0x010802
[    2.669572] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    2.670307] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x000000ff 64bit]
[    2.670991] pci 0000:01:00.0: Max Payload Size set to 256 (was 128, max 512)
[    2.672278] pci 0000:01:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    2.690436] pci_bus 0000:01: busn_res: [bus 01-1f] end is updated to 01
[    2.691093] pci 0000:00:00.0: BAR 14: assigned [mem 0xfa000000-0xfa0fffff]
[    2.691766] pci 0000:01:00.0: BAR 0: assigned [mem 0xfa000000-0xfa003fff 64bit]
[    2.692487] pci 0000:01:00.0: BAR 4: assigned [mem 0xfa004000-0xfa0040ff 64bit]
[    2.693201] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.693666] pci 0000:00:00.0:   bridge window [mem 0xfa000000-0xfa0fffff]
[    2.694598] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    2.695692] pcieport 0000:00:00.0: PME: Signaling with IRQ 89
[    2.696808] pcieport 0000:00:00.0: AER: enabled with IRQ 89
[    2.698131] nvme nvme0: pci function 0000:01:00.0
[    2.698633] nvme 0000:01:00.0: enabling device (0000 -> 0002)
[    2.706612] WCN: marlin_init entry!
[    2.708109] input: gpio-key-lid as /devices/platform/gpio-key-lid/input/input0
[    2.709891] input: gpio-key-power as /devices/platform/gpio-key-power/input/input1
[    2.734845] nvme nvme0: allocated 32 MiB host memory buffer.
[    2.741168] nvme nvme0: 6/0/0 default/read/poll queues
[    2.750156]  nvme0n1: p1
[    2.751242] Waiting for root device /dev/mmcblk2p2...
 
Old 08-01-2022, 05:18 AM   #36
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
I believe it may be something similar. This time I deleted the uinitrd, and got the following output. It is waiting on mmcblk2p2, which as I far as I can see was not detected (only the NVMe SSD.) Plus it is complaining about the device tree overlays.
How do I upgrade u-boot on the internal flash?

Code:
[    2.348462] dwmmc_rockchip fe310000.mmc: Successfully tuned phase to 53
[    2.354852] mmc0: new ultra high speed SDR104 SDIO card at address 0001
[    2.655843] rockchip-pcie f8000000.pcie: PCI host bridge to bus 0000:00
[    2.656461] pci_bus 0000:00: root bus resource [bus 00-1f]
[    2.656983] pci_bus 0000:00: root bus resource [mem 0xfa000000-0xfbdfffff]
[    2.657616] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xfbe00000-0xfbefffff])
[    2.658535] pci 0000:00:00.0: [1d87:0100] type 01 class 0x060400
[    2.659263] pci 0000:00:00.0: supports D1
[    2.659666] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.667881] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.668921] pci 0000:01:00.0: [15b7:5009] type 00 class 0x010802
[    2.669572] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    2.670307] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x000000ff 64bit]
[    2.670991] pci 0000:01:00.0: Max Payload Size set to 256 (was 128, max 512)
[    2.672278] pci 0000:01:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    2.690436] pci_bus 0000:01: busn_res: [bus 01-1f] end is updated to 01
[    2.691093] pci 0000:00:00.0: BAR 14: assigned [mem 0xfa000000-0xfa0fffff]
[    2.691766] pci 0000:01:00.0: BAR 0: assigned [mem 0xfa000000-0xfa003fff 64bit]
[    2.692487] pci 0000:01:00.0: BAR 4: assigned [mem 0xfa004000-0xfa0040ff 64bit]
[    2.693201] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.693666] pci 0000:00:00.0:   bridge window [mem 0xfa000000-0xfa0fffff]
[    2.694598] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    2.695692] pcieport 0000:00:00.0: PME: Signaling with IRQ 89
[    2.696808] pcieport 0000:00:00.0: AER: enabled with IRQ 89
[    2.698131] nvme nvme0: pci function 0000:01:00.0
[    2.698633] nvme 0000:01:00.0: enabling device (0000 -> 0002)
[    2.706612] WCN: marlin_init entry!
[    2.708109] input: gpio-key-lid as /devices/platform/gpio-key-lid/input/input0
[    2.709891] input: gpio-key-power as /devices/platform/gpio-key-power/input/input1
[    2.734845] nvme nvme0: allocated 32 MiB host memory buffer.
[    2.741168] nvme nvme0: 6/0/0 default/read/poll queues
[    2.750156]  nvme0n1: p1
[    2.751242] Waiting for root device /dev/mmcblk2p2...
nvme is determined by the logs. it is not clear why there is no mmcblk2 interface (it could not change to mmcblk1)
write to the internal emmc after loading from the card (be sure to check the interface so as not to break something)
Code:
dd if=idbloader.img of=/dev/mmcblk2 seek=64 status=noxfer
dd if=uboot.img of=/dev/mmcblk2 seek=16384 status=noxfer
dd if=trust.img of=/dev/mmcblk2 seek=24576 status=noxfer
check for files before recording idbloader.img, uboot.img, trust.img

u-boot v2022.07

Last edited by sndwvs; 08-01-2022 at 06:42 AM.
 
1 members found this post helpful.
Old 08-01-2022, 08:05 AM   #37
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
nvme is determined by the logs. it is not clear why there is no mmcblk2 interface (it could not change to mmcblk1)
write to the internal emmc after loading from the card (be sure to check the interface so as not to break something)
Code:
dd if=idbloader.img of=/dev/mmcblk2 seek=64 status=noxfer
dd if=uboot.img of=/dev/mmcblk2 seek=16384 status=noxfer
dd if=trust.img of=/dev/mmcblk2 seek=24576 status=noxfer
check for files before recording idbloader.img, uboot.img, trust.img

u-boot v2022.07
I dumped these firmwares onto the internal mmc card as was requested. I used your package with today's date.
Now there is video console for u-boot! Until now, the display only activated once the kernel booted, and I was flying blind until then (only serial console was available.)
However that ends the list of good news unfortunately. Now the boot gets stuck even eariler than before.
After u-boot loads the kernel, the display gets garbled, and I get the following output on the serial console:

Code:
DDR Version 1.25 20210517
In
channel 0
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
channel 0
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
channel 0, cs 0, advanced training done
channel 0, cs 1, advanced training done
channel 1, cs 0, advanced training done
channel 1, cs 1, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x3AA1FAA1, stride = 0xD
ddr_set_rate to 328MHZ
ddr_set_rate to 666MHZ
ddr_set_rate to 416MHZ, ctl_index 0
ddr_set_rate to 856MHZ, ctl_index 1
support 416 856 328 666 MHz, current 856MHz
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 347
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=59640MB
FwPartOffset=2000 , 100000
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
SdmmcInit=0 1
StorageInit ok = 71199
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 0x3335db8 signature is wrong
recovery gpt...
GPT 0x3335db8 signature is wrong
recovery gpt fail!
Trust Addr:0x4000, 0x58334c42
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xd9a28
RunBL31 0x40000 @ 103338 us
NOTICE:  BL31: v1.3(release):845ee93
NOTICE:  BL31: Built : 15:51:11, Jul 22 2020
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(1196): 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 return SMC_UNK
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 2022.07-rk3399 (Aug 01 2022 - 13:37:59 +0300)

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 Pinebook Pro
DRAM:  3.9 GiB
Core:  318 devices, 34 uclasses, devicetree: separate
MMC:   mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0
Loading Environment from SPIFlash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   vidconsole
Err:   vidconsole
Model: Pine64 Pinebook Pro
Net:   No ethernet found.
Hit any key to stop autoboot:  0
starting USB...
Bus usb@fe380000: ehci_generic usb@fe380000: Failed to get clocks (ret=-19)
Port not available.
Bus usb@fe3a0000: USB OHCI 1.0
Bus usb@fe3c0000: ehci_generic usb@fe3c0000: Failed to get clocks (ret=-19)
Port not available.
Bus usb@fe3e0000: USB OHCI 1.0
Bus usb@fe800000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fe900000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fe3a0000 for devices... 1 USB Device(s) found
scanning bus usb@fe3e0000 for devices... 2 USB Device(s) found
scanning bus usb@fe800000 for devices... 1 USB Device(s) found
scanning bus usb@fe900000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2640 bytes read in 12 ms (214.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
212 bytes read in 11 ms (18.6 KiB/s)
84290 bytes read in 43 ms (1.9 MiB/s)
29702656 bytes read in 1328 ms (21.3 MiB/s)
376 bytes read in 41 ms (8.8 KiB/s)
Applying kernel provided DT overlay rockchip-rk3399-opp-2ghz.dtbo
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
267 bytes read in 40 ms (5.9 KiB/s)
Applying kernel provided DT overlay rockchip-pcie-gen2.dtbo
failed on fdt_overlay_apply(): FDT_ERR_BADMAGIC
base fdt does did not have a /__symbols__ node
make sure you've compiled with -@
Error applying DT overlays, restoring original DT
84290 bytes read in 42 ms (1.9 MiB/s)
Failed to load '/boot/uInitrd'
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Device Tree to 00000000f4ef5000, end 00000000f4f0c941 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.18.14 (root@firefly-rk3399) (gcc (GCC) 11.2.0, GNU ld version 2.37-slack15) #1 SMP PREEMPT Sun Jul 24 01:18:11 EEST 2022
[    0.000000] Machine model: Pine64 Pinebook Pro
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xf77ca040-0xf77cbfff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000]   DMA32    empty
[    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] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] cma: Reserved 128 MiB at 0x00000000e9000000
[    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 29 pages/cpu s81704 r8192 d28888 u118784
[    0.000000] pcpu-alloc: s81704 r8192 d28888 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 999432
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=/dev/mmcblk2p2 ro rootwait rootfstype=f2fs init=/sbin/init console=ttyS2,1500000n8 console=tty1 consoleblank=0 loglevel=8 usb-storage.quirks=  earlycon=uart8250,mmio32,0xff1a0000
[    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: 3821716K/4061184K available (15680K kernel code, 2702K rwdata, 6108K rodata, 4352K init, 508K bss, 108396K reserved, 131072K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] trace event string verifier disabled
[    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]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of 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] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
[    0.000000] ITS [mem 0xfee20000-0xfee3ffff]
[    0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @500000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x00000000004d0000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000004e0000
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.002808] Console: colour dummy device 80x25
[    0.003243] printk: console [tty1] enabled
[    0.003642] printk: bootconsole [uart8250] disabled
After this, the output seemingly stops, and nothing happens.

Why is there console=tty1 in the kernel command line?

Last edited by wowbaggerHU; 08-01-2022 at 08:08 AM.
 
Old 08-01-2022, 08:52 AM   #38
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
I dumped these firmwares onto the internal mmc card as was requested. I used your package with today's date.
Now there is video console for u-boot! Until now, the display only activated once the kernel booted, and I was flying blind until then (only serial console was available.)
However that ends the list of good news unfortunately. Now the boot gets stuck even eariler than before.
After u-boot loads the kernel, the display gets garbled, and I get the following output on the serial console:

Code:
DDR Version 1.25 20210517
In
channel 0
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
channel 0
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
channel 0, cs 0, advanced training done
channel 0, cs 1, advanced training done
channel 1, cs 0, advanced training done
channel 1, cs 1, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x3AA1FAA1, stride = 0xD
ddr_set_rate to 328MHZ
ddr_set_rate to 666MHZ
ddr_set_rate to 416MHZ, ctl_index 0
ddr_set_rate to 856MHZ, ctl_index 1
support 416 856 328 666 MHz, current 856MHz
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 347
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=59640MB
FwPartOffset=2000 , 100000
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
SdmmcInit=0 1
StorageInit ok = 71199
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 0x3335db8 signature is wrong
recovery gpt...
GPT 0x3335db8 signature is wrong
recovery gpt fail!
Trust Addr:0x4000, 0x58334c42
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xd9a28
RunBL31 0x40000 @ 103338 us
NOTICE:  BL31: v1.3(release):845ee93
NOTICE:  BL31: Built : 15:51:11, Jul 22 2020
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(1196): 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 return SMC_UNK
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 2022.07-rk3399 (Aug 01 2022 - 13:37:59 +0300)

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 Pinebook Pro
DRAM:  3.9 GiB
Core:  318 devices, 34 uclasses, devicetree: separate
MMC:   mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0
Loading Environment from SPIFlash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   vidconsole
Err:   vidconsole
Model: Pine64 Pinebook Pro
Net:   No ethernet found.
Hit any key to stop autoboot:  0
starting USB...
Bus usb@fe380000: ehci_generic usb@fe380000: Failed to get clocks (ret=-19)
Port not available.
Bus usb@fe3a0000: USB OHCI 1.0
Bus usb@fe3c0000: ehci_generic usb@fe3c0000: Failed to get clocks (ret=-19)
Port not available.
Bus usb@fe3e0000: USB OHCI 1.0
Bus usb@fe800000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fe900000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fe3a0000 for devices... 1 USB Device(s) found
scanning bus usb@fe3e0000 for devices... 2 USB Device(s) found
scanning bus usb@fe800000 for devices... 1 USB Device(s) found
scanning bus usb@fe900000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2640 bytes read in 12 ms (214.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
212 bytes read in 11 ms (18.6 KiB/s)
84290 bytes read in 43 ms (1.9 MiB/s)
29702656 bytes read in 1328 ms (21.3 MiB/s)
376 bytes read in 41 ms (8.8 KiB/s)
Applying kernel provided DT overlay rockchip-rk3399-opp-2ghz.dtbo
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
267 bytes read in 40 ms (5.9 KiB/s)
Applying kernel provided DT overlay rockchip-pcie-gen2.dtbo
failed on fdt_overlay_apply(): FDT_ERR_BADMAGIC
base fdt does did not have a /__symbols__ node
make sure you've compiled with -@
Error applying DT overlays, restoring original DT
84290 bytes read in 42 ms (1.9 MiB/s)
Failed to load '/boot/uInitrd'
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Device Tree to 00000000f4ef5000, end 00000000f4f0c941 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.18.14 (root@firefly-rk3399) (gcc (GCC) 11.2.0, GNU ld version 2.37-slack15) #1 SMP PREEMPT Sun Jul 24 01:18:11 EEST 2022
[    0.000000] Machine model: Pine64 Pinebook Pro
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xf77ca040-0xf77cbfff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000]   DMA32    empty
[    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] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] cma: Reserved 128 MiB at 0x00000000e9000000
[    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 29 pages/cpu s81704 r8192 d28888 u118784
[    0.000000] pcpu-alloc: s81704 r8192 d28888 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 999432
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=/dev/mmcblk2p2 ro rootwait rootfstype=f2fs init=/sbin/init console=ttyS2,1500000n8 console=tty1 consoleblank=0 loglevel=8 usb-storage.quirks=  earlycon=uart8250,mmio32,0xff1a0000
[    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: 3821716K/4061184K available (15680K kernel code, 2702K rwdata, 6108K rodata, 4352K init, 508K bss, 108396K reserved, 131072K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] trace event string verifier disabled
[    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]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of 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] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
[    0.000000] ITS [mem 0xfee20000-0xfee3ffff]
[    0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @500000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x00000000004d0000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000004e0000
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.002808] Console: colour dummy device 80x25
[    0.003243] printk: console [tty1] enabled
[    0.003642] printk: bootconsole [uart8250] disabled
After this, the output seemingly stops, and nothing happens.
try changing mmcblk2p2 to mmcblk1p2, and try ejecting the nvme drive

Quote:
Originally Posted by wowbaggerHU View Post
Why is there console=tty1 in the kernel command line?
so that the output is on tty1 and on ttyS2

Last edited by sndwvs; 08-01-2022 at 08:59 AM.
 
Old 08-01-2022, 09:16 AM   #39
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
try changing mmcblk2p2 to mmcblk1p2, and try ejecting the nvme drive


so that the output is on tty1 and on ttyS2
Something is fishy here...
Even though I have inserted the SD card, it will boot from the internal emmc storage, rather than the card!
Even though outputs for u-boot are on the video console, it still expects input over serial, therefore I can type anything on the keyboard, it doesn't care about it, therefore I can't stop the boot process without serial connection.
 
Old 08-01-2022, 09:56 AM   #40
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
that's right emmc in bootloader read priority after spi. regarding u-boot and keyboard it is configured in u-boot.

but since while we are marking time, it is worth trying the following:
  1. backup emmc
  2. write a fresh image to the SDcard
  3. disable nvme
  4. boot from SDcard
  5. transfer system to emmc (transfer-to-disk)
  6. remove sdcard and boot from emmc
  7. connect nvme and boot from emmc
  8. check nvme is working
  9. look at emmc numbering (mmcblk?p1)
  10. with the results to fix the work of the backed up system
 
Old 08-02-2022, 07:43 AM   #41
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
  1. backup emmc
  2. write a fresh image to the SDcard
  3. disable nvme
  4. boot from SDcard
  5. transfer system to emmc (transfer-to-disk)
  6. remove sdcard and boot from emmc
  7. connect nvme and boot from emmc
  8. check nvme is working
  9. look at emmc numbering (mmcblk?p1)
  10. with the results to fix the work of the backed up system
Between step 2 and 4, I will have to clear the emmc, as I installed the bootloader there. As long as it's in place it won't try to boot from the SD card. (If my understanding is correct.)
 
Old 08-02-2022, 11:15 AM   #42
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
Between step 2 and 4, I will have to clear the emmc, as I installed the bootloader there. As long as it's in place it won't try to boot from the SD card. (If my understanding is correct.)
In step 5, the bootloader will be overwritten. And then without the sdcard will be checked.
 
Old 08-02-2022, 11:48 AM   #43
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Okay, but as I said when, the emmc is in its place (with the new u-boot) (it's fixed storage, that I can't insert when the device is powered on) it will not boot from the micro-SD card. Therefore I will have to erase it first, then install it into the motherboard, then perhaps I will be able to boot from the SD card, and once the system is running from the SD card then I can transfer the installation to the emmc storage.
 
Old 08-02-2022, 12:51 PM   #44
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
it is enough to erase emmc 100-250mb and it should switch to booting from the sdcard.
Code:
dd if=/dev/zero of=/dev/mmcblk2 bs=1M count=250
 
Old 08-03-2022, 03:42 AM   #45
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
At step 4, I am stuck, as the system won't boot from the SD card.
The first 250 MB of the emmc card has been cleared, and this is what I get on the serial console, and the machine is in a reboot loop:

Code:
DDR Version 1.25 20210517
In
channel 0
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
channel 0
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x81
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
channel 0, cs 0, advanced training done
channel 0, cs 1, advanced training done
channel 1, cs 0, advanced training done
channel 1, cs 1, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x3AA1FAA1, stride = 0xD
ddr_set_rate to 328MHZddr_set_rate to 666MHZ
ddr_set_rate to 416MHZ, ctl_index 0
ddr_set_rate to 856MHZ, ctl_index 1
support 416 856 328 666 MHz, current 856MHz
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 347
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=59640MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
mmc0:cmd7,10
mmc0:cmd5,20
mmc0:cmd7,10
mmc0:cmd5,20
mmc0:cmd7,10
SdmmcInit=0 1
StorageInit ok = 111644
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 0x3335db8 signature is wrong
recovery gpt...
GPT 0x3335db8 signature is wrong
recovery gpt fail!
Trust Addr:0x4000, 0x0
Trust Addr:0x4400, 0x0
Trust Addr:0x4800, 0x0
Trust Addr:0x4c00, 0x0
Trust Addr:0x5000, 0x0
Trust Addr:0x5400, 0x0
Trust Addr:0x5800, 0x0
Trust Addr:0x5c00, 0x0
Addr:0x4000 No find trust.img!
LoadTrustBL error:-3
UsbBoot ...137763
powerOn 149992
Usb re Boot. 6149988
Usb re Boot. 12149991
Usb re Boot. 18149996
SoftReset
=============== REBOOTS HERE ===============
DDR Version 1.25 20210517
In 
soft reset
SRX
channel 0
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot Loader updates available for the RockPro64 and PineBook Pro drmozes Slackware - ARM 8 05-15-2022 02:14 PM
[SOLVED] Slarm64 on Pinebook Pro - black screen after kernel upgrade wowbaggerHU Slackware - ARM 5 08-25-2021 06:54 AM
LXer: Pinebook Pro Linux Laptop Is Back in Stock and You Can Get One for Only $220 USD LXer Syndicated Linux News 0 03-30-2021 08:33 AM
Video : New PINE64 Products. PineBook Pro, PinePhone, PineCam, PineH64 NicoD SBC Linux - Embedded & Single-board computer 2 02-06-2019 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration