Jump to content

Recommended Posts

Posted

Hello,

 

Here is the end goal of what I am trying to achieve: I am using a rockpro64 and would like to be able to boot from SPI into a rootfs present on an encrypted hdd RAID.

 

I tried building an image with root encryption enabled but apparently, has stated on the wiki, it is possible that no prompt will be shown during the boot process. This is exactly what is happening to me, the boot process halts without showing anyway of entering the passphrase.

 

Is there a way to solve this issue ? Or to reach my goal with a different method ?

 

Many thanks !!

Posted

Moved to Common issues / peer to peer technical support

 

I never tried to do something like this, so a bit of a shot in the dark, but have you tried using a serial debugging cable?

Posted (edited)

Using the serial connection doesn't provide extra information, the boot process halts after  "Starting kernel ..."

The OS is Debian Buster.

 

Here is the serial output:

 

  Reveal hidden contents

 

Edited by TRS-80
put long output inside spoiler
Posted

When using an encrypted root, it needs to be unlocked and prepared for mount in the kernel initramfs. This part runs after u-boot, but before SystemD takes over. It also have slightly different rules on where kernel output goes, where it only goes to one "console", which is specified in the kernel arguments (visible after boot in /proc/cmdline).

 

If memory serves, the last "console=" argument takes priority during initramfs (though its hazy sometimes and it might be the first). You may need to adjust the order of the kernel arguments to make your password prompt appear on VGA or serial console (whichever you expect).

 

I don't have a rockpro64 to test with, but you should verify that it's not doing something silly like going to a serial port with a different baud rate than your uboot. FYI, RK3399's use an odd baud rate of 1.5 megabaud.

Posted

So if I understand it correctly, the board is actually booting, but the output is sent to the wrong output stream ?

 

  Quote

You may need to adjust the order of the kernel arguments to make your password prompt appear on VGA or serial console (whichever you expect).

Expand  

 

Could you explain how to modify this parameter ?

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines