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 07-27-2022, 10:49 AM   #16
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled

no, there were no new patches, the question was more whether the kernel was vanilla.
that is, at the moment the new image is launched without problems, but the kernel itself does not want to work in a hard system?

then you need to look at dtb and the core itself.
 
Old 07-28-2022, 07:17 AM   #17
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Okay, so I booted from the micro-SD card, and chrooted into my installed environment.
Then I upgraded the kernel, and all related packages, so I'm currently working with 5.18.14.
Then I updated the installed packages on the installed system, so the code running there should be the latest version available.

The problem is that after init is started, it just seems to hang there. Also, the screen is still blank. All I'm seeing during boot with respect to the installed system is through the serial console.
 
Old 07-28-2022, 09:52 AM   #18
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
The problem is that after init is started, it just seems to hang there. Also, the screen is still blank. All I'm seeing during boot with respect to the installed system is through the serial console.
that's the point that the kernel is workable, the difference is only in the location and type of fs. I think the system on the map will boot even without an initrd.
 
Old 07-28-2022, 09:54 AM   #19
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
that's the point that the kernel is workable, the difference is only in the location and type of fs. I think the system on the map will boot even without an initrd.
What do you mean by map? The internal storage/emmc?
 
Old 07-28-2022, 10:01 AM   #20
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
What do you mean by map? The internal storage/emmc?
Yes.
Аnd changes were made to fstab the same as uEnv.txt? also for more output can be added to uEnv.txt extraargs=dyndbg="file * +p" (info)
 
Old 07-28-2022, 10:16 AM   #21
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
Yes.
Аnd changes were made to fstab the same as uEnv.txt?
What do you mean exactly?
The system has been running for more than half a year now.
The fstab should be unchanged, from its previous state, and should contain f2fs for the root fs entry.
But I will double check it tomorrow to be on the safe side.
 
Old 07-28-2022, 10:24 AM   #22
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
What do you mean exactly?
The system has been running for more than half a year now.
The fstab should be unchanged, from its previous state, and should contain f2fs for the root fs entry.
But I will double check it tomorrow to be on the safe side.
As far as I understand, when switching to the 5.18.14 kernel, we changed rootdev in uEnv.txt, the same section should be in fstab.
 
Old 07-29-2022, 05:36 AM   #23
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
This is what I have in /etc/fstab

Code:
#
# /etc/fstab: static file system information
#
# <file system>        <mount point>   <type>   <options>                        <dump> <pass>
shm                    /dev/shm        tmpfs    defaults                         0      0
devpts                 /dev/pts        devpts   noexec,nosuid,gid=tty,mode=0620  0      0
sysfs                  /sys            sysfs    defaults                         0      0
proc                   /proc           proc     defaults                         0      0

/dev/mmcblk2p2         /               f2fs     noatime,nodiratime,defaults      0      1
/dev/mmcblk2p1         /boot           ext4     noatime,nodiratime,data=writeback,errors=remount-ro       0       1
/swapfile              none            swap     defaults,pri=0                                            0       0
/dev/nvme0n1p1         /home           f2fs     defaults,noatime,nodiratime                               0       0
tmpfs                  /tmp            tmpfs    rw,nodev,nosuid,noexec,size=2G          0      0
and /boot/uEnv.txt

Code:
verbosity=8
console=both
fdtfile=rockchip/rk3399-pinebook-pro.dtb
rootdev=/dev/mmcblk2p2
rootfstype=f2fs
overlays=rockchip-rk3399-opp-2ghz rockchip-pcie-gen2
overlay_prefix=rockchip
These settings aling well to the changes I've made: I added an ext4 /boot partition and moved / to f2fs, plus I added an NVME SSD.
I only copied the

Code:
overlays=rockchip-rk3399-opp-2ghz rockchip-pcie-gen2
overlay_prefix=rockchip
part of uEnv.txt as only that part was missing. The rest seems to be just fine.
But even after doing this change, the screen will stay off and the boot process will stop.

I will now try the extraargs parameter you suggested.

Last edited by wowbaggerHU; 07-29-2022 at 05:39 AM.
 
Old 07-29-2022, 06:20 AM   #24
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
This is what I got as boot log:

https://drive.google.com/file/d/1MAv...ew?usp=sharing
 
Old 07-29-2022, 07:08 AM   #25
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
While I see mmc0 (mmc1, as I understand it, this is a memory card that is not inserted) and nvme0n1p1, so the root partition cannot be mmcblk2p2, it must be mmcblk0p2 and is registered in fstab and uEnv.txt
 
Old 07-29-2022, 07:14 AM   #26
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
This is when I booted from the SD card:

lsblk:

Code:
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   128M  0 part 
`-mmcblk2p2  179:34   0  58.1G  0 part 
mmcblk2boot0 179:64   0     4M  1 disk 
mmcblk2boot1 179:96   0     4M  1 disk 
nvme0n1      259:0    0 465.8G  0 disk 
`-nvme0n1p1  259:1    0 465.8G  0 part
blkid:

Code:
/dev/nvme0n1p1: LABEL="home" UUID="8a507586-2762-4c63-afda-763ba48f46f6" BLOCK_SIZE="4096" TYPE="f2fs" PARTUUID="93662112-c166-7d4b-b5df-ad4432b9a40a"
/dev/mmcblk2p2: LABEL="root" UUID="2d5e08d9-b3c8-4d48-a17c-a74e47cbb27a" BLOCK_SIZE="4096" TYPE="f2fs" PARTUUID="af9494f7-02"
/dev/mmcblk2p1: LABEL="boot" UUID="64dc5c4e-cc36-4ee5-aa7f-67f3808db687" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="af9494f7-01"
/dev/mmcblk1p1: LABEL="linuxroot" UUID="dc8178df-f720-497b-8b01-a555b0fedc70" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="794733d8-01"
This arrangement has been like this until now, and apparently is so even now as I am getting this with your latest SD card image.
Plus if it would be mmcblk0pX, then the root partition would not mount even in ro mode, which would result in a kernel panic.

Last edited by wowbaggerHU; 07-29-2022 at 07:17 AM.
 
Old 07-29-2022, 07:50 AM   #27
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
and in boot on EMMC a new kernel?
 
Old 07-29-2022, 08:39 AM   #28
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
Yes /boot resides on mmcblk2p1, and it holds the kernel, initrd and dtbs.
 
Old 07-29-2022, 08:53 AM   #29
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
then it’s strange, it’s loaded from the sdcard but not from eMMC, but the difference is in the location and fs.
 
Old 07-31-2022, 08:08 AM   #30
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Original Poster
Rep: Reputation: Disabled
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?
 
  


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 09:36 PM.

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