Hi,
this is the first time I tried to install DietPi.
Iβm using a NanoPi NEO4 with a 8GB SD-Card.
After downloading, unpacking and writing the image to SD-Card the NEO4 starts as expected.
The NEO4 gets the correct IP from my DHCP server (IP is assigned to MAC address), and I can connect via ssh to start inital configuration.
No errors so far.
After about 30 minutes of updating I get this screen.
NanoPi M4/T4/NEO4 (aarch64) | IP: 192.168.200.16
βββββββββββββββββββββββββββββββββββββββββββββββββ€ DietPi-Set_software ββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Do you want to adjust the default global software password for DietPi-Software installations? We especially β
β recommend to change the default password "dietpi". This does not affect any existing software passwords. β
β β
β NB: This password will be saved and encrypted within "/var/lib/dietpi/dietpi-software/.GLOBAL_PW.bin" to be useable β
β by DietPi scripts for e.g. web application and database logins. We highly recommend to apply individual passwords β
β for each software title after first login. β
β β
β <Ok>
Connection to 192.168.200.16 closed by remote host.
Connection to 192.168.200.16 closed.
While reading this text connection is dropped
And afterwards the connection canβt be reestablished. Regardless of just waiting about one hour, or after reboot.
I have verified the whole procedure 3 times. But everytime the same problem.
I also checked if there are any problems with the SD-Cardβ¦
both setups are identical. There is no difference if you do it via SSH or connected via keyboard.
Best would be to have the device connect to screen and keyboard while trying to run the setup via SSH. Once the setup stop on SSH, login locally and check SSH server logs.
Both setups (console / ssh) are in fact not identical !
When doing a setup via ssh (without monitor and keyboard), the setup stops as described in my first post.
There is no network connection anymore!
Even if I disconnect power and connect monitor and keyboard and power on again after the network stops working, I get a blinking cursor only, no network, nothing usable β¦
β looks like a corrupted incomplete configuration.
When doing s setup via console the system reboots at the same point, but after reboot the setup contuinues and Iβm able to finish the configurationβ¦
After complete setup ssh was stable. No temporary disconnects.
Since I never wrote itβ¦ Iβm using the ethernet connection only.
After broken setup via ssh.: There is no network. I canβt even ping the device.
Both LEDβs at the RJ45 connector are flickering from time to time.
But my router did not report any dhcp requestsβ¦
Hmm, you could connect keyboard and monitor again, login without continueing the setup and use dmesg -w (to follow the recent dmesg output), and then SSH into it from another machine, finish the setup until the connection drops and have a look onto the monitor for the dmesg output.
With journalctl you had to use journalctl -f to follow the recent output.
It would be interesting for debugging, but I can understand if you donβt want to put so much effort into it, since itβs working when you finish the setup locally, instead of using SSH.
@Joulinar: Do you think this could be tested with my spare M4v2 (hardware is a bit different)?
Otherwise I have to shutdown my NEO4 doing my house automation for a while
My NEO4 runs and reboots perfect since many months (and has an actual DietPi system running), but the firstboot was executed about 0,5-1 year ago. So a short test with an actual image would be my investigation step.
To verify that the installation via console works as expected I tried to install DietPi again. And it failed.
But why?
Because i had 3 sd cards here, i checked them again with h2testw and all cards are ok. At the first glance all the cards from manufacturer Intenso are identical. But thats not true. One of the cards a little bit bigger in size. Donβt know if there are more internal differences.
After fiddeling around I found that all cards are booting with the Neo4 image as axpected. But only the bigger card is booting after reboot request after βset surveyβ.
So I resized the booting one to only 4GB. And the NEO4 still boots. Fine.
But when I clone the booting card to one of the other cards, I found that the clones are not booting.
To verify my clonig procedure is ok. I tried clonig to a bigger Sandisk card. And β¦
The system boots as expected.
Looks like there is a incompatibility (timing problem ?) with some SD-cards
Could be, especially on ridiculously cheap SD cards something like this might happen. But still strange that it did not happen if you complete the install via local console, right?
@MichaIng
The βtestingβ NEO4 image works without problems on known good SD-Cards in 2 scenarios.
via console / monitor.
headless via ssh. (Monitor and keyboad disconnected)
I had run bot tests with βmasterβ (8.10.) and βbetaβ (8.11.).
Connection was made via cable. WiFi not tested.
I also tested the 2 problem SD-Cards with the NEO4 testing image.
One card works without problems.
The other card stucks while first boot. Thats ok for me, since I get a clearly message on console and the inital system did not boot.