Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to lock on aarch64 #56

Closed
HalosGhost opened this issue Sep 18, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@HalosGhost
Copy link

commented Sep 18, 2017

I have a pinebook running alarm. After having built physlock for aarch64 and installed it, it fails to run with the following error:

physlock: /dev/console: VT_GETSTATE: Inappropriate ioctl for device

Any idea what this problem might stem from or if there is a simple way to fix it?

@muennich

This comment has been minimized.

Copy link
Owner

commented Sep 18, 2017

Do you have any console= options on your kernel command line (grep console /proc/cmdline)? Does it work if you change the CONSOLE_DEVICE variable in your config.h to /dev/tty0?

@HalosGhost

This comment has been minimized.

Copy link
Author

commented Sep 18, 2017

Yes, I do actually. Here's the whole /proc/cmdline:

console=ttyS0,115200n8 enforcing=0 cma-384M no_console_suspend androidboot.serialno=<snip> androidboot.hardware=sun50iw1p1 androidboot.selinux=permissive earlyprintk=sunxi-uart,0x01c28000 loglevel=8 root=/dev/mmcblk0p2 eth0_speed=auto

Though this is a weird embedded platform, I do have access to modify those arguments (though they were set by-default so I am a little wary of modifying them).

And yes! changing that option in config.h solves the issue. Is this just an oddity of the cmdline arguments on my machine?

muennich added a commit that referenced this issue Sep 18, 2017

Correct path of foreground virtual console
/dev/console is not the same as /dev/tty0. Was not aware of that a couple of
years ago when I wrote physlock.

Fixes issue #56.
@muennich

This comment has been minimized.

Copy link
Owner

commented Sep 18, 2017

You are just the first one who uses physlock on a device with a serial console. Using /dev/tty0 is the correct device for the foreground virtual console, not /dev/console.

Thanks for reporting the issue and have fun.

@muennich muennich closed this Sep 18, 2017

@HalosGhost

This comment has been minimized.

Copy link
Author

commented Sep 18, 2017

Cheers, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.