Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
* SOLVED * orangepi 4 stuck starting root partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
JumboAg
Apprentice
Apprentice


Joined: 03 Mar 2007
Posts: 205
Location: Dallas, TX

PostPosted: Tue Mar 19, 2024 2:43 am    Post subject: * SOLVED * orangepi 4 stuck starting root partition Reply with quote

I'm setting up an orangepi 4 using the standard gentoo-sources kernel and am stuck.

boot volume = ext4
root volume = xfs

u-boot can find everything, no errors before it hands over to start the kernel. When systemd is starting everything, its hanging indefinitely at "A start job is running for /dev/..... " (the root UUID)

It's probably something silly I'm overlooking....

u-boot
Code:
U-Boot 2022.04-armbian (Nov 25 2023 - 12:47:16 +0000)

SoC: Rockchip rk3399
Reset cause: RST
Model: OrangePi 4 AI board
DRAM:  3.9 GiB
PMIC:  RK808
Core:  224 devices, 22 uclasses, devicetree: separate
MMC:   mmc@fe320000: 1, mmc@fe330000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: OrangePi 4 AI board
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0
starting USB...
Bus usb@fe380000: ehci_generic usb@fe380000: failed to get usb phy
Port not available.
Bus usb@fe3c0000: ehci_generic usb@fe3c0000: failed to get usb phy
Port not available.
USB is stopped. Please issue 'usb start' first.
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
3273 bytes read in 4 ms (798.8 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 1
280 bytes read in 3 ms (90.8 KiB/s)
22783738 bytes read in 965 ms (22.5 MiB/s)
32672256 bytes read in 1382 ms (22.5 MiB/s)
63055 bytes read in 12 ms (5 MiB/s)
Failed to load '/dtb/rockchip/overlay/rockchip-fixup.scr'
Unknown command 'kaslrseed' - try 'help'
Moving Image from 0x2080000 to 0x2200000, end=41c0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   Gentoo
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    22783674 Bytes = 21.7 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 f4944000, end f5efe6ba ... OK
   Loading Device Tree to 00000000f48cc000, end 00000000f4943fff ... OK

Starting kernel ...


kernel handoff
Code:
Welcome to Gentoo Linux dracut-060 (Initramfs)!

[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
         Expecting device /dev/disk/by-uuid…bce5-1af9-4787-876c-a96ee4e549f2...
[  OK  ] Reached target Initrd /usr File System.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Swaps.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Reached target Socket Units.
         Starting Create List of Static Device Nodes...
         Starting Journal Service...
         Starting Apply Kernel Variables...
         Starting Virtual Console Setup...
[  OK  ] Finished Create List of Static Device Nodes.
         Starting Create Static Device Nodes in /dev gracefully...
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Finished Create Static Device Nodes in /dev gracefully.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Virtual Console Setup.
         Starting dracut cmdline hook...
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
[  OK  ] Reached target Local File Systems.
[  OK  ] Started Journal Service.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
[  OK  ] Finished dracut cmdline hook.
         Starting Rule-based Manager for Device Events and Files...
[  OK  ] Started Rule-based Manager for Device Events and Files.
         Starting Coldplug All udev Devices...
[  OK  ] Created slice Slice /system/modprobe.
         Starting Load Kernel Module configfs...
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Finished Coldplug All udev Devices.
         Mounting Kernel Configuration File System...
[  OK  ] Reached target Preparation for Remote File Systems.
[  OK  ] Reached target Remote File Systems.
         Starting dracut pre-mount hook...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Basic System.
[  OK  ] Finished dracut pre-mount hook.
[  OK  ] Stopped Virtual Console Setup.
         Stopping Virtual Console Setup...
         Starting Virtual Console Setup...
[  OK  ] Finished Virtual Console Setup.
[**    ] A start job is running for /dev/dis…876c-a96ee4e549f2 (18s / no limit)


XFS is in my kernel...
Code:
root@orangepi4-lts:/mnt/gentoo/boot# grep XFS config-6.6.21-gentoo
CONFIG_XFS_FS=y
CONFIG_XFS_SUPPORT_V4=y
CONFIG_XFS_SUPPORT_ASCII_CI=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
# CONFIG_XFS_ONLINE_SCRUB is not set
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
CONFIG_VXFS_FS=m


blkid
Code:
 
/dev/mmcblk2p2: UUID="6ae5adcb-419e-45a6-9694-9dc4776408ad" TYPE="swap" PARTUUID="fa84e76b-02"
/dev/mmcblk2p3: UUID="0f58bce5-1af9-4787-876c-a96ee4e549f2" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="fa84e76b-03"
/dev/mmcblk2p1: UUID="49287eda-822b-43cc-9840-e8f8bed7aef4" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="fa84e76b-01"


fstab
Code:

UUID=0f58bce5-1af9-4787-876c-a96ee4e549f2 /     xfs     defaults,noatime 0 1
UUID=6ae5adcb-419e-45a6-9694-9dc4776408ad      none    swap    sw 0 0
UUID=49287eda-822b-43cc-9840-e8f8bed7aef4      /boot   ext4    defaults 1 2



Looking for ideas on things to look for.


Last edited by JumboAg on Fri Apr 19, 2024 5:30 am; edited 1 time in total
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1250
Location: Richmond Hill, Canada

PostPosted: Tue Mar 26, 2024 7:14 pm    Post subject: Reply with quote

JumboAg,

have you tried to break into rescue shell and see what is going on?
Back to top
View user's profile Send private message
JumboAg
Apprentice
Apprentice


Joined: 03 Mar 2007
Posts: 205
Location: Dallas, TX

PostPosted: Fri Mar 29, 2024 3:05 am    Post subject: Reply with quote

ping, I'm not sure what the issue is/was. I think something was wrong with my initramfs. I deleted the file and redid it and got past that issue. Now I'm stuck with a non working HDMI port, but I think that's a device tree issue and am poking the libre devs about it.
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1250
Location: Richmond Hill, Canada

PostPosted: Fri Mar 29, 2024 2:10 pm    Post subject: Reply with quote

JumboAg,

I am under impression that solve the HDMI display problem previously.

Is this a new box?
Back to top
View user's profile Send private message
JumboAg
Apprentice
Apprentice


Joined: 03 Mar 2007
Posts: 205
Location: Dallas, TX

PostPosted: Fri Mar 29, 2024 2:24 pm    Post subject: Reply with quote

It's the same SoC I was playing with a year ago, just a totally new SD card and OS install. Something changed that it isn't liking. I'll keep poking at it. It's not the only board that doesn't always play nice with video. Got a libre rockchip board that also isnt wanting to work with a monitor (though console over a uart works perfectly)
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1250
Location: Richmond Hill, Canada

PostPosted: Fri Mar 29, 2024 4:53 pm    Post subject: Reply with quote

JumboAg wrote:
It's the same SoC I was playing with a year ago, just a totally new SD card and OS install. Something changed that it isn't liking. I'll keep poking at it. It's not the only board that doesn't always play nice with video. Got a libre rockchip board that also isnt wanting to work with a monitor (though console over a uart works perfectly)


Have you try kernel command line option "video=" as you did in this topic?

If you tried, then please share boot messages (dmesg output). If u-boot was able to put output in HDMI but kernel did not than it is possible that missing kernel driver cause this condition.
Back to top
View user's profile Send private message
JumboAg
Apprentice
Apprentice


Joined: 03 Mar 2007
Posts: 205
Location: Dallas, TX

PostPosted: Fri Apr 19, 2024 5:30 am    Post subject: Reply with quote

I finally figured this one out - or at least a workaround. Using extlinux, I cant get it to load the DTB and overlays correctly, but orangepi does a boot.scr thing it will automatically search for compiled in its u-boot code. I stopped trying to use extlinux (which I wanted for flexibility) and instead just renamed my kernel to the default name the search for and moved my initramfs to a mkimage format that u-boot understands. Was able to finally boot from there.

Some day I'll find the time to learn how to chain dtb files (overlays) together, but for now since I only know how to do a single one... I went with a hybrid approach.

Got video now and wired ethernet. Dont have the wifi driver loading (yet) but I think that's a kernel parameter thing. Will keep playing with it. For now, I'll mark this resolved
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum