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

Orange Pi One login issue #5749

Closed
symbios24 opened this issue Sep 17, 2022 · 26 comments
Closed

Orange Pi One login issue #5749

symbios24 opened this issue Sep 17, 2022 · 26 comments
Labels
Enhancement 💨 Installer 💠 Issues related to DietPi-Installer and/or pre-image used Solution available 🥂 Definite solution has been done
Milestone

Comments

@symbios24
Copy link

Hello there

I made a custom image for the orange pi one by using the quide here and selecting the generic H3 from the boards section

I have one issue when i put the root/dietpi password it takes me for a sec to the main after-login screen and then it goes back again to login screen asking the username/password again this can go on forever,,only the dietpi/dietpi login works correct but i don't have root access like this
Is there a fix for the root login issue ??

I used the latest Bullseye Image from Armbian

Armbian_22.08.1_Orangepione_bullseye_current_5.15.63

Thanks

@MichaIng
Copy link
Owner

Many thanks for your report.

When you login as dietpi, does it show the same behaviour when you run sudo -s and/or sudo -i, starting an interactive resp. login root subshell?

@symbios24
Copy link
Author

symbios24 commented Sep 17, 2022

You mean if i login with the dietpi/dietpi account if it shows the same screen after with the ip/temp etc info ??

@Joulinar
Copy link
Collaborator

if logged in with user dietpi, is sudo -s and/or sudo -i working to switch to user root

@symbios24
Copy link
Author

symbios24 commented Sep 17, 2022

sudo -s is working is reloading the main screen with root account enabled

sudo -i is not working it says: sudo /usr/bin/zsh command not found

@MichaIng
Copy link
Owner

Ahh, zsh is configured as default shell. Did you select it when logging into the Armbian image the first time? Looks like we should reset it to bash in dietpi-installer.

@MichaIng MichaIng added Installer 💠 Issues related to DietPi-Installer and/or pre-image used Enhancement 💨 and removed Investigating 🤔 labels Sep 17, 2022
@MichaIng MichaIng added this to the v8.9 milestone Sep 17, 2022
@symbios24
Copy link
Author

Yes i selected the zsh in the first login in armbian

@symbios24
Copy link
Author

How can i fix that manual now?
Or should i wait until the next dietpi update to re-install it?

@MichaIng
Copy link
Owner

MichaIng commented Sep 17, 2022

From the dietpi session, run:

sudo usermod -s /bin/bash root

MichaIng added a commit that referenced this issue Sep 17, 2022
- DietPi-Installer | The root user home directory and login shell are now reset to /root and /bin/bash, as expected by the fresh DietPi system. Many thanks to @symbios24 for reporting a case where root logins did fail because zsh was the login shell, but missing on a fresh DietPi system: #5749
@MichaIng MichaIng added the Solution available 🥂 Definite solution has been done label Sep 17, 2022
@MichaIng
Copy link
Owner

Done now as well by dietpi-installer: 3e94f09

@symbios24
Copy link
Author

Thanks a lot

@MichaIng MichaIng mentioned this issue Sep 17, 2022
@MichaIng
Copy link
Owner

Marking as done.

@symbios24
Copy link
Author

Hi i have one question i see dietpi releases of bookworm also is this in beta/testing stage or its official released?

@Joulinar
Copy link
Collaborator

It is testing, same as bookworm itself.

@MichaIng
Copy link
Owner

As long as you can live with breaking changes being shipped with package upgrades, and that the one or the other software install might not work yet, you are welcome to help testing 🙂: https://github.com/MichaIng/DietPi/wiki/Debian-Bookworm-testing

@symbios24
Copy link
Author

Hi again, orange pi one has a usb otg port i cannot acticate following the guide for armbian that it worked before,ibut after installing dietpi the method is not working,s there a way rto activate the usb otg port in dietpi??

@MichaIng
Copy link
Owner

Can you link the guide or show the steps you did? Usually it should work via device tree overlay on Armbian and DietPi just the same way.

@MichaIng MichaIng mentioned this issue Sep 24, 2022
@symbios24
Copy link
Author

symbios24 commented Sep 25, 2022

How can i de-activate the swap and delete it as is never been used and is taking half my cards space,i cannot do it from the drive manager,any other way??

@Joulinar
Copy link
Collaborator

What is the issue using drive manager? There you should be able to set a value of 0 to disable SWAP.

@symbios24
Copy link
Author

I use a small card 4gb and the swap is set to 1.5gb when i select it is says its not possible to set bigger size i think,can i set it al least 100mb?
As i only use dietpi as a hotspot.

@Joulinar
Copy link
Collaborator

I guess you like to disable? Did you tried 0 as value?

@symbios24
Copy link
Author

symbios24 commented Sep 25, 2022

I cannot enter inside the swap menu to configure it,it says something about the minimum size, probably coz i use a small card

MichaIng added a commit that referenced this issue Sep 25, 2022
- Init v8.10
- DietPi-Drive_Manager | Resolved an issue where it was not possible to disable the swap file with less than 2 GiB available free space on that drive. The check was meant to prevent the creation of a swap file with limited free space, while disabling/removing a swap file should of course always be possible. Furthermore the 2 GiB free space requirement has been removed completely, which has no point on non-system drives and is too strict even on system drives which, depending on the setup, can run fine with much less free space. Many thanks to @symbios24 for reporting this issue: #5749 (comment)
@MichaIng
Copy link
Owner

A bug in the drive manager indeed. Fixed with: ab9523f
It didn't allow to change the swap file size at all, if not at least 2 GiB free space were available. This of course doesn't make sense when it's about disabling the swap file. Also, if there is a swap file on that drive currently, then it's size needs to be taken into account as well. And last but not least, this 2 GiB free space requirement doesn't make so much sense at all, e.g. when external drives are used for the swap file only and generally on non-system drives. Only on the root filesystem a certain free space is important, but this can be, depending on the setup, much less than 2 GiB of course.

@MichaIng
Copy link
Owner

Ah, to remove the swap file on your system:

/boot/dietpi/func/dietpi-set_swapfile 0

@symbios24
Copy link
Author

Can you link the guide or show the steps you did? Usually it should work via device tree overlay on Armbian and DietPi just the same way
.
I usually do this to enable the usb otg port in Armbian:

cd /boot/dtb
sudo cp sun8i-h3-orangepi-one.dtb sun8i-h3-orangepi-one.dtb.old
sudo dtc -I dtb -O dts -o sun8i-h3-orangepi-one.dts sun8i-h3-orangepi-one.dtb
sudo sed -i -e 's/dr_mode = "otg";/dr_mode = "host";/g' sun8i-h3-orangepi-one.dts
sudo dtc -I dts -O dtb -o sun8i-h3-orangepi-one.dtb sun8i-h3-orangepi-one.dts

But after installing dietpi this method is not working anymore.

@MichaIng
Copy link
Owner

sudo sed -i -e 's/dr_mode = "otg";/dr_mode = "host";/g' sun8i-h3-orangepi-one.dts

But this disables OTG mode and enables host mode. The two words need to be exchanged.

There is no related device tree overlay in:

ls -l /boot/dtb/rockchip/overlay

mtekman pushed a commit to mtekman/DietPi that referenced this issue Oct 31, 2022
- Init v8.10
- DietPi-Drive_Manager | Resolved an issue where it was not possible to disable the swap file with less than 2 GiB available free space on that drive. The check was meant to prevent the creation of a swap file with limited free space, while disabling/removing a swap file should of course always be possible. Furthermore the 2 GiB free space requirement has been removed completely, which has no point on non-system drives and is too strict even on system drives which, depending on the setup, can run fine with much less free space. Many thanks to @symbios24 for reporting this issue: MichaIng#5749 (comment)
@serbyxp
Copy link

serbyxp commented Dec 31, 2023

you seen this @MichaIng ?

https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/packages/pack-uboot/sun50iw9/bin/dts/orangepizero2w-u-boot-current.dts

I was in the middle of doing a new defconfig for the orangepi2w ( well I did make one) but the dts building using the uboot/uboot github wasn't working out for me, so I started poking around for the orangepi zero 2w one, and found that. But doing the compare of the orangepi zero3 and the ornagepi zero2w ( all the data sheets, including the power rails etc) for the defconfig, its basically exactly the same as the orangepi zero3 defconifg. Just the network adapter is different (zero3 = motorcomm) the zero2w doesnt have one ( I didnt see one on the usb / eth adapter board either)... but the old opi zero2 is totally different in every aspect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 💨 Installer 💠 Issues related to DietPi-Installer and/or pre-image used Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

4 participants