PineBook Pro update and upgrade to 5.18.12: unable to boot
slarm64This forum is for the discussion of slarm64.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
PineBook Pro update and upgrade to 5.18.12: unable to boot
Hi Members,
I just decided to upgrade my slarm64 installation on my PineBook Pro, and I decided to upgrade the kernel image to the official 5.18.12 as well, knowing that doing so will likely break something.
Well, it did. Now my PBP is not booting, not even the power LED turns on. The serial console shows something like this:
Code:
���ٽ�+��E��ʭ�����щ������Z�NOTICE: BL31: v2.3():v2.3
NOTICE: BL31: Built : 15�c��Q[�=���Wz���������x������SOQḲ��������>��������������Q�{����e��uᎨ���ѹp�����ˊ���������&j���x�u}����;8s�����ѫq���������8��*�ں8�������o�&���Ȫ����鮲u�ъ�����"�������x�qKqU���������"��b�b�勫����ڽ���b�����n�bպq8r���)������q�����>������q���,)�,ک����&9����7������ʹ��,��꩹�����
=�׆��У#C�����$����b�c< �l���v}���{�yu9���,���*ʊ銼���z�ᚹ��ꎼ���x]�{�yu9�kb������&���Ḻ�"�����n�b�SO����������x�S����2:��q�����ySY�
The baud rate was set to 115000 with no flow-control.
I'm currently in the process of building my own installer image with images-build-kit to try to boot from a micro-SD card.
Stay tuned.
images-build-kit fails with this message in the build.log:
Code:
CC plat/rockchip/rk3399/drivers/dram/dfs.c
CC plat/rockchip/rk3399/drivers/dram/dram.c
CC plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c
CC plat/rockchip/rk3399/drivers/dram/suspend.c
CC plat/rockchip/rk3399/drivers/gpio/rk3399_gpio.c
CC plat/rockchip/rk3399/drivers/pmu/m0_ctl.c
CC plat/rockchip/rk3399/drivers/pmu/pmu.c
make -C plat/rockchip/rk3399/drivers/m0 BUILD=/data/build/pinebook-pro/build/source/arm-trusted-firmware/build/rk3399/release/m0
make[1]: Entering directory '/data/build/pinebook-pro/build/source/arm-trusted-firmware/plat/rockchip/rk3399/drivers/m0'
CC src/dram.c
/data/build/pinebook-pro/build/source/gcc-arm-10.3-2021.07-aarch64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-gcc -g -mcpu=cortex-m0 -mthumb -Wall -O3 -nostdlib -mfloat-abi=soft -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-common -Iinclude/ -I../../include/shared/ -MMD -MT /data/build/pinebook-pro/build/source/arm-trusted-firmware/build/rk3399/release/m0/dram.o -c src/dram.c -o /data/build/pinebook-pro/build/source/arm-trusted-firmware/build/rk3399/release/m0/dram.o
Assembler messages:
Error: unknown architecture `armv6s-m'
Error: unrecognized option -march=armv6s-m
make[1]: *** [Makefile:125: /data/build/pinebook-pro/build/source/arm-trusted-firmware/build/rk3399/release/m0/dram.o] Error 1
make[1]: Leaving directory '/data/build/pinebook-pro/build/source/arm-trusted-firmware/plat/rockchip/rk3399/drivers/m0'
make: *** [plat/rockchip/rk3399/platform.mk:110: /data/build/pinebook-pro/build/source/arm-trusted-firmware/build/rk3399/release/m0/rk3399m0.bin] Error 2
That light ONLY comes on when the boot code (generally uboot) hands off and the kernel gets control. I would hope you have an SD card with a known good image that you can use to boot the PBP from, this will give you a LOT better access to address the problem.
I just decided to upgrade my slarm64 installation on my PineBook Pro, and I decided to upgrade the kernel image to the official 5.18.12 as well, knowing that doing so will likely break something.
Well, it did. Now my PBP is not booting, not even the power LED turns on. The serial console shows something like this:
Code:
���ٽ�+��E��ʭ�����щ������Z�NOTICE: BL31: v2.3():v2.3
NOTICE: BL31: Built : 15�c��Q[�=���Wz���������x������SOQḲ��������>��������������Q�{������e��uᎨ���ѹp�����ˊ���������&j���x���u}����;8s�����ѫq���������8��*�ں8�������o�&���Ȫ����鮲u�ъ�����"�������x�qKqU���������"��b�b�勫����ڽ���b�����n�bպq8r���)������q�����>������q���,)�,ک����&9����7��������ʹ��,��꩹�����
=�׆��У#C�����$������b�c< �l���v}���{�yu9���,���*ʊ銼���z�ᚹ��ꎼ���x]�{�yu9�k��b������&���Ḻ�"�����n�b�SO����������x�S����2:����q�������ySY�
The baud rate was set to 115000 with no flow-control.
I'm currently in the process of building my own installer image with images-build-kit to try to boot from a micro-SD card.
Stay tuned.
Thanks wowbaggerHU,
speed for tty debug for PineBook Pro 1500000
the ATF version was incorrect.
Yes, thanks for pointing that one out. I knew it wasn't the standard 115200, but then again, I only remembered 115000 and not 150000. Also, minicom ignored the 150000 value and defaulted back to 115200.
But now, here is the boot log:
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
1651 bytes read in 12 ms (133.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
96 bytes read in 9 ms (9.8 KiB/s)
Failed to load '/dtb/rk3399-pinebook-pro.dtb'
29702656 bytes read in 1316 ms (21.5 MiB/s)
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!
5496252 bytes read in 251 ms (20.9 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 5496188 Bytes = 5.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
SCRIPT FAILED: continuing...
PCIe link training gen1 timeout!
Device 0: unknown device
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.
failed to find ep-gpios property
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.
failed to find ep-gpios property
No ethernet found.
No ethernet found.
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)
Yes, thanks for pointing that one out. I knew it wasn't the standard 115200, but then again, I only remembered 115000 and not 150000. Also, minicom ignored the 150000 value and defaulted back to 115200.
But now, here is the boot log:
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
1651 bytes read in 12 ms (133.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
96 bytes read in 9 ms (9.8 KiB/s)
Failed to load '/dtb/rk3399-pinebook-pro.dtb'
29702656 bytes read in 1316 ms (21.5 MiB/s)
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!
5496252 bytes read in 251 ms (20.9 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 5496188 Bytes = 5.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
SCRIPT FAILED: continuing...
PCIe link training gen1 timeout!
Device 0: unknown device
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.
failed to find ep-gpios property
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.
failed to find ep-gpios property
No ethernet found.
No ethernet found.
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)
Failed to load '/dtb/rk3399-pinebook-pro.dtb'
Everything is clear, now in uEnv.txt the path to dtb has the prefix rockchip or allwinner or amlogic according to the structure of the installed dtb.
Failed to load '/dtb/rk3399-pinebook-pro.dtb'
Everything is clear, now in uEnv.txt the path to dtb has the prefix rockchip or allwinner or amlogic according to the structure of the installed dtb.
Okay, I fixed that. Now I get 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
1651 bytes read in 12 ms (133.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
105 bytes read in 9 ms (10.7 KiB/s)
84290 bytes read in 41 ms (2 MiB/s)
29702656 bytes read in 1314 ms (21.6 MiB/s)
5496252 bytes read in 251 ms (20.9 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 5496188 Bytes = 5.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 f49e8000, end f4f25d7c ... OK
Loading Device Tree to 00000000f496b000, end 00000000f49e7fff ... OK
Starting kernel ...
[ 1.674386] fusb302 4-0022: Unable to request IRQ for INT_N GPIO! 0
[ 2.934731] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 2.935432] CPU: 0 PID: 1 Comm: init Not tainted 5.18.12 #1
[ 2.935945] Hardware name: Pine64 Pinebook Pro (DT)
[ 2.936388] Call trace:
[ 2.936616] dump_backtrace+0xb0/0x120
[ 2.936980] show_stack+0x18/0x70
[ 2.937297] dump_stack_lvl+0x68/0x84
[ 2.937643] dump_stack+0x18/0x34
[ 2.937954] panic+0x168/0x360
[ 2.938246] make_task_dead+0x0/0xf0
[ 2.938586] do_group_exit+0x34/0xa0
[ 2.938924] __arm64_sys_exit_group+0x18/0x20
[ 2.939332] invoke_syscall+0x48/0x114
[ 2.939686] el0_svc_common.constprop.0+0x44/0xfc
[ 2.940123] do_el0_svc+0x28/0x90
[ 2.940436] el0_svc+0x34/0xac
[ 2.940726] el0t_64_sync_handler+0xa4/0x130
[ 2.941124] el0t_64_sync+0x18c/0x190
[ 2.941469] SMP: stopping secondary CPUs
[ 2.941843] Kernel Offset: disabled
[ 2.942163] CPU features: 0x100,00020909,00001086
[ 2.942596] Memory Limit: none
[ 2.942898] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 ]---
Maybe I will try to boot from micro-SD, and chroot into the original environment, and will try to rebuild uinitrd. I'll see what added value that will bring.
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
1651 bytes read in 12 ms (133.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
105 bytes read in 9 ms (10.7 KiB/s)
84290 bytes read in 41 ms (2 MiB/s)
29702656 bytes read in 1314 ms (21.6 MiB/s)
5496252 bytes read in 251 ms (20.9 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 5496188 Bytes = 5.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 f49e8000, end f4f25d7c ... OK
Loading Device Tree to 00000000f496b000, end 00000000f49e7fff ... OK
Starting kernel ...
[ 1.674386] fusb302 4-0022: Unable to request IRQ for INT_N GPIO! 0
[ 2.934731] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 2.935432] CPU: 0 PID: 1 Comm: init Not tainted 5.18.12 #1
[ 2.935945] Hardware name: Pine64 Pinebook Pro (DT)
[ 2.936388] Call trace:
[ 2.936616] dump_backtrace+0xb0/0x120
[ 2.936980] show_stack+0x18/0x70
[ 2.937297] dump_stack_lvl+0x68/0x84
[ 2.937643] dump_stack+0x18/0x34
[ 2.937954] panic+0x168/0x360
[ 2.938246] make_task_dead+0x0/0xf0
[ 2.938586] do_group_exit+0x34/0xa0
[ 2.938924] __arm64_sys_exit_group+0x18/0x20
[ 2.939332] invoke_syscall+0x48/0x114
[ 2.939686] el0_svc_common.constprop.0+0x44/0xfc
[ 2.940123] do_el0_svc+0x28/0x90
[ 2.940436] el0_svc+0x34/0xac
[ 2.940726] el0t_64_sync_handler+0xa4/0x130
[ 2.941124] el0t_64_sync+0x18c/0x190
[ 2.941469] SMP: stopping secondary CPUs
[ 2.941843] Kernel Offset: disabled
[ 2.942163] CPU features: 0x100,00020909,00001086
[ 2.942596] Memory Limit: none
[ 2.942898] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 ]---
Maybe I will try to boot from micro-SD, and chroot into the original environment, and will try to rebuild uinitrd. I'll see what added value that will bring.
It looks like the root partition has changed, try booting from the new image and see what EMMC.
It looks like the root partition has changed, try booting from the new image and see what EMMC.
Yes, I likely forgot to add f2fs support to the uinitrd (but then again, judging from the output of rebuild-uinitrd.sh, f2fs support should be built into the kernel).
Either way, I chrooted into my original environment and rebuilt uinitrd (with the 5.18.12 kernel version that is currently installed in the original environment).
All I got was a blank screen with a power led emitting steady green light. (Earlier when I got the kernel panic it flashed red/green.)
This is all the output I saw on the serial console:
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
1651 bytes read in 12 ms (133.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
105 bytes read in 8 ms (12.7 KiB/s)
84290 bytes read in 41 ms (2 MiB/s)
29702656 bytes read in 1314 ms (21.6 MiB/s)
12164331 bytes read in 541 ms (21.4 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 12164267 Bytes = 11.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to f438c000, end f4f25cab ... OK
Loading Device Tree to 00000000f430f000, end 00000000f438bfff ... OK
Starting kernel ...
[ 2.121380] fusb302 4-0022: Unable to request IRQ for INT_N GPIO! 0
Yes, I likely forgot to add f2fs support to the uinitrd (but then again, judging from the output of rebuild-uinitrd.sh, f2fs support should be built into the kernel).
Either way, I chrooted into my original environment and rebuilt uinitrd (with the 5.18.12 kernel version that is currently installed in the original environment).
All I got was a blank screen with a power led emitting steady green light. (Earlier when I got the kernel panic it flashed red/green.)
This is all the output I saw on the serial console:
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
1651 bytes read in 12 ms (133.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
105 bytes read in 8 ms (12.7 KiB/s)
84290 bytes read in 41 ms (2 MiB/s)
29702656 bytes read in 1314 ms (21.6 MiB/s)
12164331 bytes read in 541 ms (21.4 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=3ee0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 12164267 Bytes = 11.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to f438c000, end f4f25cab ... OK
Loading Device Tree to 00000000f430f000, end 00000000f438bfff ... OK
Starting kernel ...
[ 2.121380] fusb302 4-0022: Unable to request IRQ for INT_N GPIO! 0
F2FS is built in the kernel, so there is no need to rebuild the initrd.
Code:
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_CHECK_FS=y
# CONFIG_F2FS_FAULT_INJECTION is not set
# CONFIG_F2FS_FS_COMPRESSION is not set
CONFIG_F2FS_IOSTAT=y
# CONFIG_F2FS_UNFAIR_RWSEM is not set
for more information change in uEnv.txt verbosity=8
And after that it just hangs there.
I will try to start up a console on the serial port.
Also, I have to note that there is no output on the display. It remains black.
Plus there is a console configured in inittab, but apparently it is not being started, because there is no login prompt on the serial port.
Last edited by wowbaggerHU; 07-27-2022 at 07:23 AM.
I used the 5.18.12 version kernel that was the most recent version there, but after I started this thread you built, packaged and posted 5.18.14.
Do you expect any significant changes between the two kernel versions, or were there any differences in how you built or packaged it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.