Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

* SOLVED * orangepi 4 stuck starting root partition

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
JumboAg
Apprentice
Apprentice
User avatar
Posts: 224
Joined: Sat Mar 03, 2007 11:13 pm
Location: Dallas, TX

* SOLVED * orangepi 4 stuck starting root partition

  • Quote

Post by JumboAg » Tue Mar 19, 2024 2:43 am

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: Select all

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: Select all

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: Select all

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: Select all

 
/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: Select all

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.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2186
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Tue Mar 26, 2024 7:14 pm

JumboAg,

have you tried to break into rescue shell and see what is going on?
Top
JumboAg
Apprentice
Apprentice
User avatar
Posts: 224
Joined: Sat Mar 03, 2007 11:13 pm
Location: Dallas, TX

  • Quote

Post by JumboAg » Fri Mar 29, 2024 3:05 am

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.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2186
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Fri Mar 29, 2024 2:10 pm

JumboAg,

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

Is this a new box?
Top
JumboAg
Apprentice
Apprentice
User avatar
Posts: 224
Joined: Sat Mar 03, 2007 11:13 pm
Location: Dallas, TX

  • Quote

Post by JumboAg » Fri Mar 29, 2024 2:24 pm

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)
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2186
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Fri Mar 29, 2024 4:53 pm

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.
Top
JumboAg
Apprentice
Apprentice
User avatar
Posts: 224
Joined: Sat Mar 03, 2007 11:13 pm
Location: Dallas, TX

  • Quote

Post by JumboAg » Fri Apr 19, 2024 5:30 am

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
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic