LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-10-2022, 09:32 AM   #61
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled

Hi sndwvs,

I have news! I installed Manjaro ARM 22.06 onto the eMMC, and it worked like a charm, out of the box, without any hacking required.
* the internal display worked fine
* the internal display worked fine after u-boot handed it over to the kernel
* when the graphical u-boot interface was loaded, I could use the keyboard for user input (in the u-boot printout, input: said "serial", same as in case of your u-boot image.)

It uses kernel 5.18.14-1-MANJARO-ARM.
I tried to look for uEnv.txt to increase the verbosity of the kernel related messages, but I did not find uEnv.txt on the Manjaro image!

On top of this:

* the Manjaro firmware image doesn't show that "DDR Version 1.27 20211018" output on serial any longer.
* with Manjaro's firmware in place, I'm yet again able to boot from the micro SD card slot!
* with Manjaro's firmware in place, I'm able to boot your image from the 8th of August! The built-in display works as well.
* with the 5.19 kernel, the internal emmc is still mmcblk2:

Code:
root@pinebook-pro:~# lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mtdblock0     31:0    0    16M  0 disk 
mmcblk1      179:0    0  59.5G  0 disk 
`-mmcblk1p1  179:1    0  59.5G  0 part /
mmcblk2      179:32   0  58.2G  0 disk 
|-mmcblk2p1  179:33   0 457.8M  0 part 
`-mmcblk2p2  179:34   0  57.8G  0 part 
mmcblk2boot0 179:64   0     4M  1 disk 
mmcblk2boot1 179:96   0     4M  1 disk
This is the log of the boot(s):

Code:
U-Boot TPL 2022.04-3 (Jun 12 2022 - 13:30:23)
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 2022.04-3 (Jun 12 2022 - 13:30:23 +0000)
Trying to boot from MMC1


U-Boot 2022.04-3 (Jun 12 2022 - 13:30:23 +0000) Manjaro Linux ARM

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 Pinebook Pro
DRAM:  3.9 GiB
PMIC:  RK808
Core:  309 devices, 31 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.
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3a0000: USB OHCI 1.0
Bus usb@fe3c0000: USB EHCI 1.00
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@fe380000 for devices... 1 USB Device(s) found
scanning bus usb@fe3a0000 for devices... 2 USB Device(s) found
scanning bus usb@fe3c0000 for devices... 3 USB Device(s) found
scanning bus usb@fe3e0000 for devices... 1 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
Hit any key to stop autoboot:  0

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 /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1:      Manjaro ARM
Retrieving file: /initramfs-linux.img
Retrieving file: /Image
append: initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=f7abbd6e-8408-4e5c-8023-f3b816a7b716 rw rootwait audit=0 splash plymouth.ignore-serial-consoles
Retrieving file: /dtbs/rockchip/rk3399-pinebook-pro.dtb
Moving Image from 0x2080000 to 0x2200000, end=39e0000
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Ramdisk to f46ea000, end f4f16a27 ... OK
   Loading Device Tree to 00000000f46d2000, end 00000000f46e952a ... OK

Starting kernel ...

[FAILED] Failed to start Wait for Network to be Configured.
[ 6086.211319] sd-umoun[5911]: Failed to unmount /oldroot: Device or resource busy
[ 6086.214826] sd-umoun[5912]: Failed to unmount /oldroot/dev: Device or resource busy
[ 6086.222876] shutdown[1]: Failed to finalize file systems, ignoring.
[ 6086.373453] reboot: Power down



MANJARO REBOOT



U-Boot TPL 2022.04-3 (Jun 12 2022 - 13:30:23)
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 2022.04-3 (Jun 12 2022 - 13:30:23 +0000)
Trying to boot from MMC1


U-Boot 2022.04-3 (Jun 12 2022 - 13:30:23 +0000) Manjaro Linux ARM

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 Pinebook Pro
DRAM:  3.9 GiB
PMIC:  RK808
Core:  309 devices, 31 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.
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3a0000: USB OHCI 1.0
Bus usb@fe3c0000: USB EHCI 1.00
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@fe380000 for devices... 1 USB Device(s) found
scanning bus usb@fe3a0000 for devices... 2 USB Device(s) found
scanning bus usb@fe3c0000 for devices... 3 USB Device(s) found
scanning bus usb@fe3e0000 for devices... 1 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
Hit any key to stop autoboot:  0

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 /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1:      Manjaro ARM
Retrieving file: /initramfs-linux.img
Retrieving file: /Image
append: initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=f7abbd6e-8408-4e5c-8023-f3b816a7b716 rw rootwait audit=0 splash plymouth.ignore-serial-consoles
Retrieving file: /dtbs/rockchip/rk3399-pinebook-pro.dtb
Moving Image from 0x2080000 to 0x2200000, end=3a30000
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Ramdisk to f46f0000, end f4f16f1c ... OK
   Loading Device Tree to 00000000f46d8000, end 00000000f46ef52a ... OK

Starting kernel ...

:: running early hook [udev]
Starting version 251.3-1-arch
:: running early hook [plymouth]
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Finished Hold until boot process finishes up.
[  OK  ] Finished Terminate Plymouth Boot Screen.

Manjaro Linux 5.18.14-1-MANJARO-ARM (ttyS2)



TRYING TO BOOT Slarm64 (20220808) from the SD card...


U-Boot TPL 2022.04-3 (Jun 12 2022 - 13:30:23)
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 2022.04-3 (Jun 12 2022 - 13:30:23 +0000)
Trying to boot from MMC1


U-Boot 2022.04-3 (Jun 12 2022 - 13:30:23 +0000) Manjaro Linux ARM

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 Pinebook Pro
DRAM:  3.9 GiB
PMIC:  RK808
Core:  309 devices, 31 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.
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3a0000: USB OHCI 1.0
Bus usb@fe3c0000: USB EHCI 1.00
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@fe380000 for devices... 1 USB Device(s) found
scanning bus usb@fe3a0000 for devices... 2 USB Device(s) found
scanning bus usb@fe3c0000 for devices... 3 USB Device(s) found
scanning bus usb@fe3e0000 for devices... 1 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
Hit any key to stop autoboot:  0

Device 0: unknown device
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
2640 bytes read in 6 ms (429.7 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 1
193 bytes read in 5 ms (37.1 KiB/s)
85260 bytes read in 20 ms (4.1 MiB/s)
30007808 bytes read in 3151 ms (9.1 MiB/s)
384 bytes read in 10 ms (37.1 KiB/s)
Applying kernel provided DT overlay rockchip-rk3399-opp-2ghz.dtbo
fdt - flattened device tree utility commands

Usage:
fdt addr [-c]  <addr> [<length>]   - Set the [control] fdt location to <addr>
fdt move   <fdt> <newaddr> <length> - Copy the fdt to <addr> and make it active
fdt resize [<extrasize>]            - Resize fdt to size + padding to 4k addr + some optional <extrasize> if needed
fdt print  <path> [<prop>]          - Recursive print starting at <path>
fdt list   <path> [<prop>]          - Print one level starting at <path>
fdt get value <var> <path> <prop>   - Get <property> and store in <var>
fdt get name <var> <path> <index>   - Get name of node <index> and store in <var>
fdt get addr <var> <path> <prop>    - Get start address of <property> and store in <var>
fdt get size <var> <path> [<prop>]  - Get size of [<property>] or num nodes and store in <var>
fdt set    <path> <prop> [<val>]    - Set <property> [to <val>]
fdt mknode <path> <node>            - Create a new node after <path>
fdt rm     <path> [<prop>]          - Delete the node or <property>
fdt header [get <var> <member>]     - Display header info
                                      get - get header member <member> and store it in <var>
fdt bootcpu <id>                    - Set boot cpuid
fdt memory <addr> <size>            - Add/Update memory node
fdt rsvmem print                    - Show current mem reserves
fdt rsvmem add <addr> <size>        - Add a mem reserve
fdt rsvmem delete <index>           - Delete a mem reserves
fdt chosen [<start> <end>]          - Add/update the /chosen branch in the tree
                                        <start>/<end> - initrd start/end addr
NOTE: Dereference aliases by omitting the leading '/', e.g. fdt print ethernet0.
267 bytes read in 10 ms (25.4 KiB/s)
Applying kernel provided DT overlay rockchip-pcie-gen2.dtbo
fdt - flattened device tree utility commands

Usage:
fdt addr [-c]  <addr> [<length>]   - Set the [control] fdt location to <addr>
fdt move   <fdt> <newaddr> <length> - Copy the fdt to <addr> and make it active
fdt resize [<extrasize>]            - Resize fdt to size + padding to 4k addr + some optional <extrasize> if needed
fdt print  <path> [<prop>]          - Recursive print starting at <path>
fdt list   <path> [<prop>]          - Print one level starting at <path>
fdt get value <var> <path> <prop>   - Get <property> and store in <var>
fdt get name <var> <path> <index>   - Get name of node <index> and store in <var>
fdt get addr <var> <path> <prop>    - Get start address of <property> and store in <var>
fdt get size <var> <path> [<prop>]  - Get size of [<property>] or num nodes and store in <var>
fdt set    <path> <prop> [<val>]    - Set <property> [to <val>]
fdt mknode <path> <node>            - Create a new node after <path>
fdt rm     <path> [<prop>]          - Delete the node or <property>
fdt header [get <var> <member>]     - Display header info
                                      get - get header member <member> and store it in <var>
fdt bootcpu <id>                    - Set boot cpuid
fdt memory <addr> <size>            - Add/Update memory node
fdt rsvmem print                    - Show current mem reserves
fdt rsvmem add <addr> <size>        - Add a mem reserve
fdt rsvmem delete <index>           - Delete a mem reserves
fdt chosen [<start> <end>]          - Add/update the /chosen branch in the tree
                                        <start>/<end> - initrd start/end addr
NOTE: Dereference aliases by omitting the leading '/', e.g. fdt print ethernet0.
Error applying DT overlays, restoring original DT
85260 bytes read in 20 ms (4.1 MiB/s)
9599520 bytes read in 1012 ms (9 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=3f40000
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    9599456 Bytes = 9.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 f45f0000, end f4f179e0 ... OK
   Loading Device Tree to 00000000f45d8000, end 00000000f45efd0b ... OK

Starting kernel ...

[    1.859028] fusb302 4-0022: Unable to request IRQ for INT_N GPIO! 0
[    1.953929] mmc1: tuning execution failed: -5
[    1.954352] mmc1: error -5 whilst initialising SD card
[    2.147127] mmc1: tuning execution failed: -5
[    2.504578] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
initrd-5.19.0:  Loading kernel modules from initrd image:
insmod /lib/modules/5.19.0/kernel/fs/xfs/xfs.ko
insmod /lib/modules/5.19.0/kernel/drivers/md/dm-mod.ko
insmod /lib/modules/5.19.0/kernel/drivers/md/dm-bufio.ko
insmod /lib/modules/5.19.0/kernel/drivers/md/dm-snapshot.ko
initrd-5.19.0:  exiting
INIT: version 3.04 booting
Creating static nodes in /dev.
Starting udevd:  /sbin/udevd --daemon
Triggering udev events:  /sbin/udevadm trigger --action=add
[   19.305257] OF: graph: no port node found in /i2c@ff3d0000/fusb30x@22
[   19.574552] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[   19.791818] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[   19.809865] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3
[   19.900635] rockchip-dp ff970000.edp: no DP phy configured
[   20.326443] udevd[559]: Unable to EVIOCGABS device "/dev/input/event4"
[   20.326468] udevd[559]: Unable to EVIOCGABS device "/dev/input/event4"
[   20.326481] udevd[559]: Unable to EVIOCGABS device "/dev/input/event4"
[   20.326493] udevd[559]: Unable to EVIOCGABS device "/dev/input/event4"
[   20.776942] udevd[562]: Unable to EVIOCGABS device "/dev/input/event9"
[   20.778274] udevd[562]: Unable to EVIOCGABS device "/dev/input/event9"
[   20.779054] udevd[562]: Unable to EVIOCGABS device "/dev/input/event9"
[   20.779810] udevd[562]: Unable to EVIOCGABS device "/dev/input/event9"
[   20.780690] udevd[562]: Error calling EVIOCSKEYCODE on device node '/dev/input/event9' (scan code 0x70066, key code 142): Invalid argument
[   20.782950] udevd[562]: Error calling EVIOCSKEYCODE on device node '/dev/input/event9' (scan code 0x700a5, key code 224): Invalid argument
[   20.784359] udevd[562]: Error calling EVIOCSKEYCODE on device node '/dev/input/event9' (scan code 0x700a6, key code 225): Invalid argument
[   20.786886] udevd[557]: Unable to EVIOCGABS device "/dev/input/event5"
[   20.787204] udevd[556]: Unable to EVIOCGABS device "/dev/input/event7"
[   20.787204] udevd[550]: Unable to EVIOCGABS device "/dev/input/event8"
[   20.787229] udevd[556]: Unable to EVIOCGABS device "/dev/input/event7"
[   20.787241] udevd[556]: Unable to EVIOCGABS device "/dev/input/event7"
[   20.787253] udevd[556]: Unable to EVIOCGABS device "/dev/input/event7"
[   20.787296] udevd[556]: Error calling EVIOCSKEYCODE on device node '/dev/input/event7' (scan code 0x70066, key code 142): Invalid argument
[   20.787318] udevd[556]: Error calling EVIOCSKEYCODE on device node '/dev/input/event7' (scan code 0x700a5, key code 224): Invalid argument
[   20.787337] udevd[556]: Error calling EVIOCSKEYCODE on device node '/dev/input/event7' (scan code 0x700a6, key code 225): Invalid argument
[   20.787507] udevd[557]: Unable to EVIOCGABS device "/dev/input/event5"
[   20.788069] udevd[550]: Unable to EVIOCGABS device "/dev/input/event8"
[   20.788713] udevd[557]: Unable to EVIOCGABS device "/dev/input/event5"
[   20.789237] udevd[550]: Unable to EVIOCGABS device "/dev/input/event8"
[   20.789823] udevd[557]: Unable to EVIOCGABS device "/dev/input/event5"
[   20.790380] udevd[550]: Unable to EVIOCGABS device "/dev/input/event8"
[   20.791520] udevd[557]: Error calling EVIOCSKEYCODE on device node '/dev/input/event5' (scan code 0x70066, key code 142): Invalid argument
[   20.791803] udevd[563]: Error calling EVIOCSKEYCODE on device node '/dev/input/event6' (scan code 0x70066, key code 142): Invalid argument
[   20.791818] udevd[563]: Error calling EVIOCSKEYCODE on device node '/dev/input/event6' (scan code 0x700a5, key code 224): Invalid argument
[   20.791830] udevd[563]: Error calling EVIOCSKEYCODE on device node '/dev/input/event6' (scan code 0x700a6, key code 225): Invalid argument
[   20.792578] udevd[550]: Error calling EVIOCSKEYCODE on device node '/dev/input/event8' (scan code 0x70066, key code 142): Invalid argument
[   20.793632] udevd[557]: Error calling EVIOCSKEYCODE on device node '/dev/input/event5' (scan code 0x700a5, key code 224): Invalid argument
[   20.794208] udevd[550]: Error calling EVIOCSKEYCODE on device node '/dev/input/event8' (scan code 0x700a5, key code 224): Invalid argument
[   20.794766] udevd[557]: Error calling EVIOCSKEYCODE on device node '/dev/input/event5' (scan code 0x700a6, key code 225): Invalid argument
[   20.795342] udevd[550]: Error calling EVIOCSKEYCODE on device node '/dev/input/event8' (scan code 0x700a6, key code 225): Invalid argument
Setting the system clock rate:  /sbin/adjtimex --tick 10000 --frequency 0
Setting system time from the hardware clock (localtime):  Wed Aug 10 12:09:06 UTC 2022
Testing root filesystem status:  read-only filesystem
Checking root filesystem:
fsck from util-linux 2.38.1
linuxroot: clean, 176643/418496 files, 1249398/1672192 blocks
Remounting root device with read-write enabled.
mount: /dev/mmcblk1p1 mounted on /.
Updating module dependency list for 5.19.0:  /sbin/depmod --quick
Configuring kernel parameters:  /sbin/sysctl -e --system
* Applying /etc/sysctl.d/10-ext4_tune.conf ...
vm.dirty_writeback_centisecs = 100
vm.dirty_expire_centisecs = 100
Checking non-root filesystems:
fsck from util-linux 2.38.1
Mounting non-root local filesystems:
tmpfs on /dev/shm type tmpfs (rw)
shm on /dev/shm type tmpfs (rw)
Seeding 256 bits and crediting
Saving 256 bits of creditable seed for next boot
INIT: Entering runlevel: 3
Going multiuser...
Updating shared library links:  /sbin/ldconfig &
setterm: cannot (un)set powersave mode: Inappropriate ioctl for device
Starting syslogd daemon:  /usr/sbin/syslogd -s
Updating hardware database index:  /sbin/udevadm hwdb --update
Triggering udev events:  /sbin/udevadm trigger --action=change
Starting the network interfaces...
Starting system message bus:  /usr/bin/dbus-uuidgen --ensure ; /usr/bin/dbus-daemon --system
Starting elogind:  /lib64/elogind/elogind --daemon
Starting Bluetooth services:  bluetoothd hciconfig sdptool hciattach
Starting OpenSSH SSH daemon:  /usr/sbin/sshd
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
Starting NTP daemon:  /usr/sbin/ntpd -g -u ntp:ntp
Enabled CPU frequency scaling governor:  ondemand
Compiling GSettings XML schema files:
  /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &
Starting crond:  /usr/sbin/crond -l notice
Loading /usr/share/kbd/keymaps/i386/qwerty/us.map.gz
Running script /etc/rc.d/rc.local:
Resizing SD card file-system
resize2fs 1.46.5 (30-Dec-2021)
Creating 128Mb emergency swap area


=======================================================================

if you want to transfer the system to SDcard to internal memory (eMMC or NAND),
follow transfer-to-disk

=======================================================================

slarm64 GNU/Linux (ttyS2)
Kernel 5.19.0 (aarch64)

pinebook-pro login:
 
Old 08-10-2022, 10:13 AM   #62
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Rep: Reputation: Disabled
Hi wowbaggerHU,

Good news, it looks like the problem is in the bootloader, I will create a new image with a different type of bootloader.

update: try a new image, and also write it to emmc

Last edited by sndwvs; 08-10-2022 at 09:57 PM.
 
Old 08-12-2022, 03:54 AM   #63
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Hi sndwvs,

So, I tried your latest image...

* with manjaro's bootloader on the emmc, it booted from the micro-SD slot, and after u-boot handed over control to the kernel, the display went blank for about 20 seconds, and it only came back after the initrd started init from the SD card. The graphical login did not start, because it complained about libxcvt.so missing in the logs.

* I then dumped your image onto the emmc, and u-boot loaded fine in graphical mode on the display, but the keyboard did not work, and neither did your image it start up from the emmc, or with the micro-SD card plugged in (it tried to load it from the SD card). It got stuck during boot just like earlier.
Furthermore, I tried to boot Manjaro from the SD card, and this u-boot managed to load the kernel from the SD card, but it got stuck as well, unfortunately. So my guess would be that it's still something in your u-boot, that prevents the kernel(s) from loading (even Manjaro's).
 
Old 08-24-2022, 07:41 AM   #64
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Hi sndwvs,

Any idea that we could try?
 
Old 08-24-2022, 08:17 AM   #65
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Rep: Reputation: Disabled
Hi wowbaggerHU,

Downgraded u-boot (2022.04) and ATF (2.6). Try rewriting the bootloader on EMMC idbloader.img, u-boot.itb.
 
Old 09-18-2022, 12:00 PM   #66
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
Downgraded u-boot (2022.04) and ATF (2.6). Try rewriting the bootloader on EMMC idbloader.img, u-boot.itb.
Hi sndws,

I installed idbloader.img as instructed previously, and having no knowledge where to put u-boot.itb, I put it onto the /boot directory of the root file system.
That however did not change a thing:
  • u-boot loaded fine in graphical mode on the display
  • but the keyboard did not work
  • neither did your image it start up from the emmc
  • or with the micro-SD card plugged in
  • it got stuck during boot just like earlier.
  • I tried to boot Manjaro from the SD card, and this u-boot managed to load the kernel from the SD card, but it got stuck as well, unfortunately.

Code:
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/boot.scr
2640 bytes read in 18 ms (142.6 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
193 bytes read in 15 ms (11.7 KiB/s)
85260 bytes read in 46 ms (1.8 MiB/s)
30007808 bytes read in 1307 ms (21.9 MiB/s)
384 bytes read in 33 ms (10.7 KiB/s)
Applying kernel provided DT overlay rockchip-rk3399-opp-2ghz.dtbo
267 bytes read in 33 ms (7.8 KiB/s)
Applying kernel provided DT overlay rockchip-pcie-gen2.dtbo
2698 bytes read in 36 ms (72.3 KiB/s)
Applying kernel provided DT fixup script (rockchip-fixup.scr)
## Executing script at 09000000
Failed to load '/boot/uInitrd'
Moving Image from 0x2080000 to 0x2200000, end=3f40000
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Device Tree to 00000000f4e8d000, end 00000000f4f0afff ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.19.0 (root@firefly-rk3399) (gcc (GCC) 11.2.0, GNU ld version 2.37-slack15) #1 SMP PREEMPT Wed Aug 10 21:08:45 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 0xf77c8040-0xf77c9fff]
[    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.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 s81576 r8192 d29016 u118784
[    0.000000] pcpu-alloc: s81576 r8192 d29016 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=UUID=32539e08-a5c0-4084-9f32-0932043d95e3 ro rootwait rootfstype=ext4 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: 3821328K/4061184K available (15872K kernel code, 2680K rwdata, 6232K rodata, 4352K init, 568K bss, 108784K 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]  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] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    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] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    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.002830] Console: colour dummy device 80x25
[    0.003268] printk: console [tty1] enabled
[    0.003673] printk: bootconsole [uart8250] disabled
For the time being I will put Manjaro back as the primary OS.
 
Old 09-18-2022, 12:12 PM   #67
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Rep: Reputation: Disabled
Hi wowbaggerHU,

You need to look at detail 8, but something is not clear what the problem is, it feels like the root disk is still waiting.

u-boot write:
Code:
dd if=idbloader.img of=/dev/<disk> seek=64
dd if=u-boot.itb of=/dev/<disk> seek=16384
or
Code:
dd if=idbloader.img of=/dev/<disk> seek=64
dd if=uboot.img of=/dev/<disk> seek=16384
dd if=trust.img of=/dev/<disk> seek=24576

Last edited by sndwvs; 09-18-2022 at 12:15 PM.
 
Old 09-18-2022, 12:15 PM   #68
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
You need to look at detail 8, but something is not clear what the problem is, it feels like the root disk is still waiting.
Hi sndwvs, this is already with verbosity set to level 8 and initrd removed.
 
Old 09-18-2022, 12:18 PM   #69
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
Hi sndwvs, this is already with verbosity set to level 8 and initrd removed.
required when using UUID uInitrd.
 
Old 09-18-2022, 12:21 PM   #70
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
required when using UUID uInitrd.
Well, I first tried without removing it, with the default verbosity, and it too hung while booting. Then I adjusted the verbosity and removed the initrd.
For the near future I won't have time to pursue this unfortunately.
 
  


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 10:03 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