[OS] Debian Stretch

Post Reply
johnnyde94
Posts: 13
Joined: Fri Jun 07, 2019 5:48 pm
languages_spoken: english
ODROIDs: Xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by johnnyde94 »

Also, If i (or you lol) wanted to make a hybrid image with the benefits of armbian and GST how would I go about that or would there be no reason to do that?

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

Generally you don't need newer "images" as the images can be upgraded with apt procedures.
So yes.. 2 years ago is probably ok. There weren't any changes that required a new image, like a new model or something.

But I can hopefully publish a new image soon with Kernel 5.4 or 5.10 for the XU4.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

meveric wrote:
Sat Oct 31, 2020 5:15 pm
But I can hopefully publish a new image soon with Kernel 5.4 or 5.10 for the XU4.
That woul be very cool! 8)
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

odro-volti wrote:
Wed Nov 04, 2020 10:51 pm
meveric wrote:
Sat Oct 31, 2020 5:15 pm
But I can hopefully publish a new image soon with Kernel 5.4 or 5.10 for the XU4.
That woul be very cool! 8)
Not yet published but should work nonetheless (Kernel 4.14).
https://oph.mdrjr.net/meveric/images/testing/
These users thanked the author meveric for the post:
odro-volti (Wed Nov 11, 2020 12:53 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

johnnyde94
Posts: 13
Joined: Fri Jun 07, 2019 5:48 pm
languages_spoken: english
ODROIDs: Xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by johnnyde94 »

Is there someting going on with your server, I cant seem to reach the images.

mad_ady
Posts: 9090
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 597 times
Been thanked: 584 times
Contact:

Re: [OS] Debian Stretch

Post by mad_ady »

oph.mdrjr.net is down since the weekend. Hope it will recover soon.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Hi again!

The Buster-0.9 .img looks good! Larger /boot, clean lock-down of ssh session on reboot/shutdown ;-)

It still has kernel 4.14. If I update to 5.4 this here

https://www.hardkernel.com/blog-2/how-t ... oling-fan/

will most likely not work, or? I never got that working on Armbian with 5.4 kernel...
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

If your only goal is to control the fan then there's a good chance this will work.

The trip points do exist and you can change them the same way as it is in the guide.
BUT the fan_speed is not in there but I think is now only defined in the dtb file for the board, so you would have to change it via device tree compiler.

You can manually adjust the current speed in /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1 (if I'm not wrong), values go from 0-255.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

I start the fan at a trip point of 25°C with a low fan speed (60), to avoid fan going off every 1-2 min with higher fan speed, which is quite noisy to me.

I recently bought some of those blue passiv cooling devices, maybe I will replace the fan on 1-2 of my fan-XU4. But not fully decided yet, as my only XU4 with passive cooling is in a small (miniITX) enclosure and needs a fan on top (10 or 12 cm, very low noise Noctua) to avoid temps above 60°C (?) iirc even with low traffic on the NAS...

Still searching for the right cooling strategy... ;-)
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

Yes the passive cooler for the XU4 is not enough.
Especially in a case the heat will get stuck and the board will get hotter and hotter over time.

I normally do the same es you, low speed of the fan but always on to prevent it from going higher in the first place.

Passive cooler with large fan on top is also a very good solution. The cloudshell 2 is awesome for this.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

So: Is there in kernel 5.4 a way to implement 60 fan speed with a trip point of 25°C? ;-)
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

trip point 25°C yes it's possible.
Fan speed I'm not sure.
For sure it's possible i'm just not sure where and how.
I haven't seen anything in /sys yet, but I'm positive it's in the dtb at least and there it could be changed with device-tree compiler

https://github.com/hardkernel/linux/blo ... n.dtsi#L69

So the first speed is 120 which is a little less than 50% (as it goes from 0-255) so if you set the first trip point to 25°C it should spin slow, the second trip would be around 70% speed.
These users thanked the author meveric for the post:
odro-volti (Wed Nov 11, 2020 5:33 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Many thanks, will give it a try!

btw: I like blue LEDs (a little, at least ;-) ), but the XU4's blue heartbeat LED on my table is a nightmare. Any way to turn this off? :-D
kind regards

volti

User avatar
odroid
Site Admin
Posts: 36468
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1451 times
Been thanked: 990 times
Contact:

Re: [OS] Debian Stretch

Post by odroid »

odro-volti wrote:
Wed Nov 11, 2020 5:35 pm
btw: I like blue LEDs (a little, at least ;-) ), but the XU4's blue heartbeat LED on my table is a nightmare. Any way to turn this off? :-D
Try this guide.
https://wiki.odroid.com/common/applicat ... ed_control

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Many thanks, works like a charm!
kind regards

volti

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

meveric wrote:
Mon Aug 31, 2020 9:19 pm
There are 3 meta (actually 4 but one is no longer in use) packages:
linux-image-armhf-odroid-xu3 -> Kernel 3.10
linux-image-4.14-armhf-odroid-xu4 -> Kernel 4.14
linux-image-5.4-armhf-odroid-xu4 -> Kernel 5.4

If you install one of these the other should be removed.
Switching back to Kernel 3.10 could be somewhat problematic as the drivers for X11 changed a lot, but switching between 4.14 and 5.4 should be fine.

The same goes for the header files, same packages just linux-headers-....
I tried to install kernel 5.4 on an up-to-date install of the image, but got:

Code: Select all

apt install linux-image-5.4-armhf-odroid-xu4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-image-5.4.65+
The following packages will be REMOVED:
  linux-image-4.14-armhf-odroid-xu4
The following NEW packages will be installed:
  linux-image-5.4-armhf-odroid-xu4 linux-image-5.4.65+
0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 19.5 MB of archives.
After this operation, 64.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://oph.mdrjr.net/meveric all/xu3 armhf linux-image-5.4.65+ armhf 5.4.65-20201013-xu4 [19.5 MB]
Get:2 https://oph.mdrjr.net/meveric all/xu3 armhf linux-image-5.4-armhf-odroid-xu4 armhf 5.4.65-1 [1112 B]
Fetched 19.5 MB in 9s (2118 kB/s)                                                     
(Reading database ... 40763 files and directories currently installed.)
Removing linux-image-4.14-armhf-odroid-xu4 (4.14.180-1) ...
Selecting previously unselected package linux-image-5.4.65+.
(Reading database ... 40762 files and directories currently installed.)
Preparing to unpack .../linux-image-5.4.65+_5.4.65-20201013-xu4_armhf.deb ...
Unpacking linux-image-5.4.65+ (5.4.65-20201013-xu4) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.4.65+_5.4.65-20201013-xu4_armhf.deb (--unpack):
 trying to overwrite '/boot/exynos5422-odroidhc1.dtb', which is also in package linux-image-4.14.180+ 4.14.180-20201013-xu4
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package linux-image-5.4-armhf-odroid-xu4.
Preparing to unpack .../linux-image-5.4-armhf-odroid-xu4_5.4.65-1_armhf.deb ...
Unpacking linux-image-5.4-armhf-odroid-xu4 (5.4.65-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-5.4.65+_5.4.65-20201013-xu4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
...and after a reboot:

Code: Select all

uname -a
Linux odroid-buster 4.14.180+ #1 SMP PREEMPT Tue Oct 13 13:28:54 UTC 2020 armv7l GNU/Linux
What am I doing wrong?
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

Hmm nothing.

Since Kernel 5.4 and Kernel 4.14 do not know each other, it complains that the files from Kernel 4.14 are in the way and doesn't know what to do with it (they also exist in the Kernel 5.4 obviously).

You can safely delete the files it complains about:
/boot/exynos5422-odroidhc1.dtb
(and any other it may complain about as well)
and start the process again (or simply type apt install -f).
They will be recreated when Kernel 5.4 is installed.
odro-volti wrote:
Thu Nov 12, 2020 5:49 pm
...and after a reboot:

Code: Select all

uname -a
Linux odroid-buster 4.14.180+ #1 SMP PREEMPT Tue Oct 13 13:28:54 UTC 2020 armv7l GNU/Linux
What am I doing wrong?
I also highly recommend not to reboot on errors (especially not with Kernel related errors).
In worst case that renders your system unusable.
You were just lucky it wasn't further in the process.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

I know that the reboot is risky at that time, but I do the kernel update not on productive machines and always have an .img (dd) of the whole system before the update, so nothing lost... Tried the kernel in the past (see some posts above) and it didn't go smoothly at that time. ;-)
kind regards

volti

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Hmm, fun fact:
..trying to overwrite '/boot/exynos5422-odroidhc1.dtb'
but:

Code: Select all

root@odroid-buster:~# cd /boot
root@odroid-buster:/boot# ls -al
total 35853
drwxr-xr-x  2 root root   16384 Jan  1  1970 .
drwxr-xr-x 21 root root    1024 Oct 31 20:59 ..
-rwxr-xr-x  1 root root 2704571 Oct 13 13:35 System.map-4.14.180+
-rwxr-xr-x  1 root root    9958 Nov 12 08:43 boot.ini
-rwxr-xr-x  1 root root  151274 Oct 13 13:35 config-4.14.180+
-rwxr-xr-x  1 root root 7910339 Nov 10 15:43 initrd.img-4.14.180+
-rwxr-xr-x  1 root root 7247753 Nov 10 15:43 uInitrd
-rwxr-xr-x  1 root root 7247753 Nov 10 15:43 uInitrd-4.14.180+
-rwxr-xr-x  1 root root 5702280 Oct 13 13:35 vmlinuz-4.14.180+
-rwxr-xr-x  1 root root 5702280 Oct 31 20:49 zImage
I don't see any .dtb files... :-O
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

then maybe it was removed afterwards.
Try again.
If it still complains, you might have to uninstall Kernel 4.14 first.
At that point you should definitely NOT reboot until the new Kernel was installed successfully :D

But don't worry as long as the system is running even, if you uninstall the currently running kernel everything will still keep working (at least until reboot).
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Never uninstalled a kernel, what would be the correct command to do so? :-D
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

Same as with every other package apt remove <package-name>

You can check the output of:

Code: Select all

dpkg --list | grep linux-
which should list every package that is either linux-image or linux-headers and also show the version.
It should look similar to this:

Code: Select all

$ dpkg --list | grep linux-
ii  linux-headers-4.14-armhf-odroid-xu4                         4.14.180-1                           armhf        Linux Image/Headers Meta Package for ODROIDs
ii  linux-headers-4.14.180+                                     4.14.180-20201013-xu4                armhf        Linux kernel headers for 4.14.180+ on armhf
ii  linux-image-4.14-armhf-odroid-xu4                           4.14.180-1                           armhf        Linux Image/Headers Meta Package for ODROIDs
ii  linux-image-4.14.180+                                       4.14.180-20201013-xu4                armhf        Linux kernel, version 4.14.180+
everything that has 4.14 in it's name can be removed for example:

Code: Select all

apt remove linux-headers-4.14.180+ linux-image-4.14.180+
As this seems to be the only kernel that is currently installed on your system the above line should already match your system.

After that you can try to install linux-image-5.4-armhf-odroid-xu4 again and this time it should work :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Gburas
Posts: 128
Joined: Sat Sep 19, 2015 7:13 am
languages_spoken: English, Polish
ODROIDs: Xu4, N2
Location: Poland
Has thanked: 16 times
Been thanked: 3 times
Contact:

Re: [OS] Debian Stretch

Post by Gburas »

Hi Meveric again,
Today I want to reinstall my xu4, I found Your buster image in testing folder. Can I use it (and You will be updating this image through apt) or I need to reinstall whole image. I know it difficult question but I don't want to set it up again in a week or something.
As always thanks for your work.

Wysłane z mojego AC2003 przy użyciu Tapatalka


Gburas
Posts: 128
Joined: Sat Sep 19, 2015 7:13 am
languages_spoken: English, Polish
ODROIDs: Xu4, N2
Location: Poland
Has thanked: 16 times
Been thanked: 3 times
Contact:

Re: [OS] Debian Stretch

Post by Gburas »

i see that sudo package wasn`t there.....solved

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

Gburas wrote:
Fri Nov 13, 2020 7:43 am
Hi Meveric again,
Today I want to reinstall my xu4, I found Your buster image in testing folder. Can I use it (and You will be updating this image through apt) or I need to reinstall whole image.
Generally it will work as is and will get updates via apt procedures.
It won't stop working or not get any updates.
But it could be that at some point I decide to make the default Kernel 5.4 or 5.10 which is currently not installed on the system.
So why at that point the base image would have that Kernel already installed you would have to switch manually.
Aside from that nothing much will change.
Gburas wrote:
Fri Nov 13, 2020 7:43 am
I know it difficult question but I don't want to set it up again in a week or something.
That won't happen, the image won't change drastically that you need to reinstall it.
And even if I decide to do a drastically change the current image won't stop working. It will continue to get updates and so on.
Gburas wrote:
Fri Nov 13, 2020 8:25 am
i see that sudo package wasn`t there.....solved
sudo is generally not needed. You log on as root and have all privileges, so need for sudo.
But if you need sudo for a specific use-case, then sure you can install it, but it doesn't need to be "solved" ;)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Hi meveric, thanks for the detailed reply, will try the kernel update later today.

The system on the XU4 is an image of your Buster 0.9 release. After successful first boot (login via ssh as root) I did a

Code: Select all

useradd -m user
to create a non-root user for ssh with the respective home directory. But there is no .bash_history file in this home directory and if I press cursor UP I see only garbage in the command line

Code: Select all

$ ls -al
total 10
drwxr-xr-x 4 user user 1024 Nov 13 10:09 .
drwxr-xr-x 3 root  root  1024 Oct 31 21:01 ..
-rw-r--r-- 1 user user  220 Apr 18  2019 .bash_logout
-rw-r--r-- 1 user user 3526 Apr 18  2019 .bashrc
drwx------ 3 user user 1024 Oct 31 20:59 .gnupg
drwxr-xr-x 3 user user 1024 Nov 12 17:03 .local
-rw-r--r-- 1 user user  807 Apr 18  2019 .profile
And as you can see, there is no "username"@"hostname" at the command prompt when logged in as this user.

As I usually have to do su - when connected via ssh it's not a big deal, but apparently something is not as it should be...
kind regards

volti

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Kernel looks good now:

Code: Select all

apt install linux-image-5.4-armhf-odroid-xu4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-image-5.4.65+
The following NEW packages will be installed:
  linux-image-5.4-armhf-odroid-xu4 linux-image-5.4.65+
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 19.5 MB of archives.
After this operation, 64.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://oph.mdrjr.net/meveric all/xu3 armhf linux-image-5.4.65+ armhf 5.4.65-20201013-xu4 [19.5 MB]
Get:2 https://oph.mdrjr.net/meveric all/xu3 armhf linux-image-5.4-armhf-odroid-xu4 armhf 5.4.65-1 [1112 B]
Fetched 19.5 MB in 12s (1691 kB/s)                                                    
Selecting previously unselected package linux-image-5.4.65+.
(Reading database ... 17073 files and directories currently installed.)
Preparing to unpack .../linux-image-5.4.65+_5.4.65-20201013-xu4_armhf.deb ...
Unpacking linux-image-5.4.65+ (5.4.65-20201013-xu4) ...
Selecting previously unselected package linux-image-5.4-armhf-odroid-xu4.
Preparing to unpack .../linux-image-5.4-armhf-odroid-xu4_5.4.65-1_armhf.deb ...
Unpacking linux-image-5.4-armhf-odroid-xu4 (5.4.65-1) ...
Setting up linux-image-5.4.65+ (5.4.65-20201013-xu4) ...
update-initramfs: Generating /boot/initrd.img-5.4.65+
Image Name:   uInitrd
Created:      Fri Nov 13 10:18:21 2020
Image Type:   ARM Linux RAMDisk Image (uncompressed)
Data Size:    8063784 Bytes = 7874.79 KiB = 7.69 MiB
Load Address: 00000000
Entry Point:  00000000
Setting up linux-image-5.4-armhf-odroid-xu4 (5.4.65-1) ...
and after reboot

Code: Select all

uname -a
Linux odroid-buster 5.4.65+ #xu4 SMP PREEMPT Tue Oct 13 20:27:24 UTC 2020 armv7l GNU/Linux
kind regards

volti

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Hm, fan control is not so easy with this kernel, I have here:

Code: Select all

cat /sys/devices/virtual/thermal/thermal_zone0/temp
57000
and

Code: Select all

cat /sys/devices/virtual/thermal/thermal_zone{0,1,2,3}/trip_point_0_temp
60000
60000
60000
60000
 
so the fan is constantly turning on and off, makes me really nervous...

although in rc.local there is still

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Target fan speed (PWM): 0, 204, 220, 240
echo "0 60 120 240" > /sys/devices/platform/pwm-fan/hwmon/hwmon0/fan_speed

# Target temperature: 30??C, 50??C, 70??C
TRIP_POINT_0=25000
TRIP_POINT_1=55000
TRIP_POINT_2=70000

echo $TRIP_POINT_0 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp
echo $TRIP_POINT_0 > /sys/devices/virtual/thermal/thermal_zone1/trip_point_0_temp
echo $TRIP_POINT_0 > /sys/devices/virtual/thermal/thermal_zone2/trip_point_0_temp
echo $TRIP_POINT_0 > /sys/devices/virtual/thermal/thermal_zone3/trip_point_0_temp

echo $TRIP_POINT_1 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_1_temp
echo $TRIP_POINT_1 > /sys/devices/virtual/thermal/thermal_zone1/trip_point_1_temp
echo $TRIP_POINT_1 > /sys/devices/virtual/thermal/thermal_zone2/trip_point_1_temp
echo $TRIP_POINT_1 > /sys/devices/virtual/thermal/thermal_zone3/trip_point_1_temp

echo $TRIP_POINT_2 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_2_temp
echo $TRIP_POINT_2 > /sys/devices/virtual/thermal/thermal_zone1/trip_point_2_temp
echo $TRIP_POINT_2 > /sys/devices/virtual/thermal/thermal_zone2/trip_point_2_temp
echo $TRIP_POINT_2 > /sys/devices/virtual/thermal/thermal_zone3/trip_point_2_temp

exit 0
Setting the fan speed manually is apparently not possible, you can read it, but writing there is not persistent

Code: Select all

#echo "60" > /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1
#cat /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1
0
:-(
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

odro-volti wrote:
Fri Nov 13, 2020 7:11 pm
Hi meveric, thanks for the detailed reply, will try the kernel update later today.

The system on the XU4 is an image of your Buster 0.9 release. After successful first boot (login via ssh as root) I did a

Code: Select all

useradd -m user
to create a non-root user for ssh with the respective home directory. But there is no .bash_history file in this home directory and if I press cursor UP I see only garbage in the command line
I suggest using the "adduser <username>" command rather than useradd.
It has an interactive shell asking for passwords and such and will automatically create home directory and so on.

You can also use setup-odroid to create a new user with extra permissions.
odro-volti wrote:
Fri Nov 13, 2020 7:20 pm
Kernel looks good now:
That's good to see :)

regarding fan control:
can you set the trip point manually?
Maybe it doesn't like something in your rc.local script or it's performed at the wrong point and been reset afterwards.

I remember that some made a udev rule instead for setting trip points that should actually work better.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

meveric wrote:
Sat Nov 14, 2020 5:46 am

I suggest using the "adduser <username>" command rather than useradd.
It has an interactive shell asking for passwords and such and will automatically create home directory and so on.

You can also use setup-odroid to create a new user with extra permissions.
"useradd is native binary compiled with the system. But, adduser is a perl script which uses useradd binary in back-end."

https://superuser.com/questions/547966/ ... nd-useradd

...so I don't expect much of a difference, but I will give it a try on a fresh card with the buster 0.9 image. :-)
kind regards

volti

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Strange, but useradd worked as expected! :-D
kind regards

volti

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

...looking for udev rules for fan control I did not succeed and found reports on low samba throughput with kernel 5.4--- not good...

Will wait for kernel 5.9/5.10, hoping for better fan support.
kind regards

volti

User avatar
rooted
Posts: 8280
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 728 times
Been thanked: 307 times
Contact:

Re: [OS] Debian Stretch

Post by rooted »

I can control my fan on the kernel version I compiled (5.4.3), but it seems like I had to make some changes to the dts.

I don't have the source tree any longer, I deleted it because I needed the space but here is my running dtb which I decompiled back to source. Maybe it will help.

DTS:

http://paste.ubuntu.com/p/nvgH2SSmfS/

My kernel configuration:

http://paste.ubuntu.com/p/gc4sZqhckS/

To fully control the fan manually with scripts you need the following switch to be set to 0 which is missing, it either moved or the kernel needs a patch.

Code: Select all

/sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
But you can still control the PWM and trip points to make the fan quieter when it automatically comes on.
These users thanked the author rooted for the post:
odro-volti (Mon Nov 16, 2020 11:01 pm)

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

@rooted

Thanks for the details!

@meveric

Got a "feature request": For the next image, how about having a built-in non-root user (odroid, maybe?), so that you can disable root access via ssh directly in the image (good safety feature, imho...).
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

odro-volti wrote:
Mon Nov 16, 2020 11:01 pm
Got a "feature request": For the next image, how about having a built-in non-root user (odroid, maybe?), so that you can disable root access via ssh directly in the image (good safety feature, imho...).
This was done in the past and people started complaining that they had no root access, and the process to allow ssh as root was too complicated.
(first comment on the old Debian Jessie image: viewtopic.php?p=114770#p114770)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

...life is pain :-O

How can a clear thinking human log in to a machine via ssh as root (with password...)?
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

I normally use SSH keys as well, but for easy usage and for Linux beginners, that are not very familiar with the topic, it's the easiest way to start.

In fact it's much easier, for a knowledgeable user to harden access to the system (disable password access for root) than for an novice user to get access to a system that he's not familiar with to install and configure it for his purpose.

Please also keep in mind, that approx. 97% of all systems are not directly connected to the internet or are used in private household, where privilege escalation is not really an issue.

If no one can access your system from outside your own network, access to the system is not really endangered by this kind of access, and if you want to use it in an environment where it's facing the internet with SSH access, then you should be knowledgeable enough to secure your system.

I'm a Linux system administrator, believe me I was clenching my jaws as well, when I first changed this to allow root ssh login via password, but in the long run it's easier for most.
There are totally different issues that I see with other images/configuration, like running desktop as root user, that I feel much more worried about than allowing SSH access via password.
These users thanked the author meveric for the post:
odro-volti (Tue Nov 17, 2020 6:37 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Gburas
Posts: 128
Joined: Sat Sep 19, 2015 7:13 am
languages_spoken: English, Polish
ODROIDs: Xu4, N2
Location: Poland
Has thanked: 16 times
Been thanked: 3 times
Contact:

Re: [OS] Debian Stretch

Post by Gburas »

hi Meveric, could You run me throuht moving Your buster debian system from mmc to ssd. I have found some tutorials on forum, but want to be sure that i don`t brick anything? I understand that some part must stay on mmc.

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

first of all i suggest making a backup of the eMMC as an image.

Than the easiest should be to use my setup-odroid tool, as it has an option to move the OS the a external drive.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Gburas
Posts: 128
Joined: Sat Sep 19, 2015 7:13 am
languages_spoken: English, Polish
ODROIDs: Xu4, N2
Location: Poland
Has thanked: 16 times
Been thanked: 3 times
Contact:

Re: [OS] Debian Stretch

Post by Gburas »

Ok, will do, I forgot about your app. Thx

Wysłane z mojego AC2003 przy użyciu Tapatalka


odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

Hi meveric!

I tried to update a Buster 0.9 install and got:

Code: Select all

# apt update
Get:1 http://ftp.debian.org/debian buster InRelease [121 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]                           
Get:3 http://www.deb-multimedia.org buster InRelease [19.6 kB]                                                
Get:4 http://ftp.debian.org/debian buster-updates InRelease [51.9 kB]                                   
Get:5 http://ftp.debian.org/debian buster-backports InRelease [46.7 kB]                                       
Get:6 https://oph.mdrjr.net/meveric all InRelease [19.4 kB]            
Get:7 http://security.debian.org/debian-security buster/updates/main armhf Packages [250 kB]
Get:8 https://oph.mdrjr.net/meveric buster InRelease [4125 B]
Get:9 http://security.debian.org/debian-security buster/updates/main Translation-en [140 kB]
Get:10 http://ftp.debian.org/debian buster/main armhf Packages [7698 kB]
Get:11 http://www.deb-multimedia.org buster/main armhf Packages [113 kB]
Get:12 https://oph.mdrjr.net/meveric all/testing armhf Packages [7431 B]
Get:13 https://oph.mdrjr.net/meveric buster/main armhf Packages [20.5 kB]         
Get:14 http://ftp.debian.org/debian buster-backports/contrib Sources.diff/Index [27.8 kB]
Get:15 http://ftp.debian.org/debian buster-backports/non-free Sources.diff/Index [22.4 kB]
Get:16 http://ftp.debian.org/debian buster-backports/main Sources.diff/Index [27.8 kB]
Ign:16 http://ftp.debian.org/debian buster-backports/main Sources.diff/Index
Get:17 http://ftp.debian.org/debian buster-backports/main armhf Packages.diff/Index [27.8 kB]
Get:18 http://ftp.debian.org/debian buster-backports/main Translation-en.diff/Index [12.5 kB]
Get:19 http://ftp.debian.org/debian buster-backports/contrib armhf Packages.diff/Index [21.9 kB]
Get:20 http://ftp.debian.org/debian buster-backports/non-free armhf Packages.diff/Index [18.0 kB]
Get:21 http://ftp.debian.org/debian buster-backports/non-free Translation-en.diff/Index [17.0 kB]
Get:22 http://ftp.debian.org/debian buster-backports/contrib Sources 2020-11-27-0815.01.pdiff [1019 B]
Get:23 http://ftp.debian.org/debian buster-backports/contrib Sources 2020-12-01-0818.13.pdiff [29 B]
Get:24 http://ftp.debian.org/debian buster-backports/contrib Sources 2020-12-05-2008.41.pdiff [655 B]
Get:25 http://ftp.debian.org/debian buster-backports/contrib Sources 2020-12-06-0201.27.pdiff [29 B]
Get:26 http://ftp.debian.org/debian buster-backports/contrib Sources 2020-12-14-1405.54.pdiff [667 B]
Get:27 http://ftp.debian.org/debian buster-backports/contrib Sources 2020-12-14-2002.53.pdiff [29 B]
Get:28 http://ftp.debian.org/debian buster-backports/contrib Sources 2020-12-15-0800.18.pdiff [1000 B]
Get:28 http://ftp.debian.org/debian buster-backports/contrib Sources 2020-12-15-0800.18.pdiff [1000 B]
Get:29 http://ftp.debian.org/debian buster-backports/non-free Sources 2020-12-14-1405.54.pdiff [1767 B]
Get:29 http://ftp.debian.org/debian buster-backports/non-free Sources 2020-12-14-1405.54.pdiff [1767 B]
Get:30 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-24-2017.31.pdiff [285 B]
Get:31 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-25-1413.14.pdiff [6572 B]
Get:32 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-25-2013.43.pdiff [8246 B]
Get:33 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-26-1414.30.pdiff [334 B]
Get:34 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-27-0215.59.pdiff [859 B]
Get:35 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-27-2029.46.pdiff [283 B]
Get:36 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-28-0816.45.pdiff [560 B]
Get:37 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-28-1416.25.pdiff [296 B]
Get:38 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-29-1418.59.pdiff [306 B]
Get:39 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-11-30-1405.02.pdiff [193 B]
Get:40 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-01-1418.16.pdiff [197 B]
Get:41 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-02-1406.36.pdiff [1686 B]
Get:42 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-02-2009.28.pdiff [254 B]
Get:43 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-03-1413.01.pdiff [658 B]
Get:44 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-03-2018.00.pdiff [1063 B]
Get:45 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-04-0220.10.pdiff [326 B]
Get:46 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-04-0816.02.pdiff [1640 B]
Get:47 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-04-1417.14.pdiff [746 B]
Get:48 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-04-2017.12.pdiff [2838 B]    
Get:49 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-05-0215.48.pdiff [2933 B]    
Get:50 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-05-2008.41.pdiff [177 B]     
Get:51 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-06-0201.27.pdiff [276 B]     
Get:52 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-07-0202.36.pdiff [204 B]     
Get:53 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-08-1405.29.pdiff [1098 B]    
Get:54 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-08-2003.46.pdiff [4459 B]    
Get:55 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-09-0202.31.pdiff [8439 B]    
Get:56 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-09-0801.42.pdiff [3612 B]    
Get:57 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-09-1403.13.pdiff [6182 B]    
Get:58 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-09-2000.42.pdiff [496 B]     
Get:59 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-10-0200.54.pdiff [1672 B]    
Get:60 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-10-0800.42.pdiff [797 B]     
Get:61 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-10-2000.20.pdiff [195 B]     
Get:62 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-11-0200.28.pdiff [447 B]     
Get:63 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-11-1400.05.pdiff [1518 B]    
Get:64 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-12-1404.23.pdiff [425 B]     
Get:65 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-12-2001.04.pdiff [197 B]     
Get:66 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-13-2000.42.pdiff [297 B]     
Get:67 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-14-0800.27.pdiff [1852 B]    
Get:68 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-14-1405.54.pdiff [16.4 kB]   
Get:69 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-14-2002.53.pdiff [4088 B]    
Get:70 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-15-0200.13.pdiff [823 B]     
Get:71 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-15-0800.18.pdiff [1028 B]    
Get:72 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-15-1400.34.pdiff [2156 B]    
Get:73 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-15-2000.19.pdiff [186 B]     
Get:74 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-16-0800.16.pdiff [691 B]     
Get:75 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-17-0805.11.pdiff [399 B]     
Get:76 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-18-0208.53.pdiff [177 B]     
Get:77 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-18-0800.54.pdiff [1677 B]    
Get:78 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-18-2000.25.pdiff [370 B]     
Get:78 http://ftp.debian.org/debian buster-backports/main armhf Packages 2020-12-18-2000.25.pdiff [370 B]     
Get:79 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-11-25-1413.14.pdiff [9722 B]    
Get:80 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-11-25-2013.43.pdiff [2792 B]    
Get:81 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-11-26-0822.42.pdiff [1228 B]    
Get:82 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-11-26-1414.30.pdiff [1347 B]    
Get:83 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-11-29-0219.14.pdiff [442 B]     
Get:84 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-01-2004.53.pdiff [476 B]     
Get:85 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-04-1417.14.pdiff [994 B]     
Get:86 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-04-2017.12.pdiff [5241 B]    
Get:87 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-09-0202.31.pdiff [12.1 kB]   
Get:88 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-09-1403.13.pdiff [136 B]     
Get:89 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-14-1405.54.pdiff [15.3 kB]   
Get:90 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-15-0200.13.pdiff [711 B]     
Get:91 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-15-0800.18.pdiff [1109 B]    
Get:92 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-17-0805.11.pdiff [227 B]     
Get:93 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-18-2000.25.pdiff [2648 B]    
Get:94 http://ftp.debian.org/debian buster-backports/contrib armhf Packages 2020-11-27-1417.44.pdiff [1563 B] 
Get:95 http://ftp.debian.org/debian buster-backports/contrib armhf Packages 2020-12-06-0201.27.pdiff [222 B]  
Get:96 http://ftp.debian.org/debian buster-backports/contrib armhf Packages 2020-12-15-1400.34.pdiff [1597 B] 
Get:93 http://ftp.debian.org/debian buster-backports/main Translation-en 2020-12-18-2000.25.pdiff [2648 B]    
Get:97 http://ftp.debian.org/debian buster-backports/non-free armhf Packages 2020-12-14-1405.54.pdiff [592 B]
...and now I have been waiting for some 10 min, but nothing going forward. Any ideas what's going wrong here? :-)

-------------------------------------------------

Edit: Sorry, never had this, the ssh session was broken...

------------------------------------------------

But I have another question, in htop I have a process

Code: Select all

/sbin/wpa_supplicant -u -s- O /run/wpa_supplicant 
I read somewhere on stackexchange that the -O option makes wpa_supplicant listen on D-bus. As I don't use any wifi I disable this service usually on my raspberry pis. What is this process good for/doing on a machine without wifi?
kind regards

volti

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

... normally I have in the cmdline for the kernel

Code: Select all

ipv6.disable=1 
but I can't find the matching file in /boot, where are the kernel parameters for booting? :-)
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

odro-volti wrote:
Sun Dec 20, 2020 2:08 am
But I have another question, in htop I have a process

Code: Select all

/sbin/wpa_supplicant -u -s- O /run/wpa_supplicant 
I read somewhere on stackexchange that the -O option makes wpa_supplicant listen on D-bus. As I don't use any wifi I disable this service usually on my raspberry pis. What is this process good for/doing on a machine without wifi?
Even if the board itself doesn't have wifi there are a lot of people that use WiFI USB dongles, and one of the complains were that they can't use WiFi without having LAN first to install required packages and such.
I changed this, so the packages are pre-installed. If you setup /etc/network/interfaces for WLAN it works without having to install extra stuff, that why it's there.
odro-volti wrote:
Sun Dec 20, 2020 2:36 am
... normally I have in the cmdline for the kernel

Code: Select all

ipv6.disable=1 
but I can't find the matching file in /boot, where are the kernel parameters for booting? :-)
/boot/boot.ini is where all the settings is taking place. You probably just need to add it to bootargs commandline and that's it.

You can also set it in /etc/sysctrl.conf by adding the lines:

Code: Select all

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
which will also disable IPv6 (doesn't have to be on boot).
These users thanked the author meveric for the post:
odro-volti (Sun Dec 20, 2020 4:49 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

meveric wrote:
Sun Dec 20, 2020 3:04 am
odro-volti wrote:
Sun Dec 20, 2020 2:08 am
But I have another question, in htop I have a process

Code: Select all

/sbin/wpa_supplicant -u -s- O /run/wpa_supplicant 
I read somewhere on stackexchange that the -O option makes wpa_supplicant listen on D-bus. As I don't use any wifi I disable this service usually on my raspberry pis. What is this process good for/doing on a machine without wifi?
Even if the board itself doesn't have wifi there are a lot of people that use WiFI USB dongles, and one of the complains were that they can't use WiFi without having LAN first to install required packages and such.
I changed this, so the packages are pre-installed. If you setup /etc/network/interfaces for WLAN it works without having to install extra stuff, that why it's there.
odro-volti wrote:
Sun Dec 20, 2020 2:36 am
... normally I have in the cmdline for the kernel

Code: Select all

ipv6.disable=1 
but I can't find the matching file in /boot, where are the kernel parameters for booting? :-)
/boot/boot.ini is where all the settings is taking place. You probably just need to add it to bootargs commandline and that's it.

You can also set it in /etc/sysctrl.conf by adding the lines:

Code: Select all

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
which will also disable IPv6 (doesn't have to be on boot).
OK, I will disable the wpa_supplicant

Code: Select all

systemctl disable wpa_supplicant.service
as I really don't need it. See what happenz... ;-)

Is it possible to purge wpa_supplicant via

Code: Select all

apt purge wpa_supplicant
or is the package included in another package?

I added to the boot command line in /boot/boot.ini the ipv6.disable=1 and rebooted. The xu4 came back without ań ipv6 address. Looks OK...

Many thanks!
kind regards

volti

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

PS: Will changes to /boot/boot.ini survive the next kernel update (are there any kernel updates to the experimental buster image?)
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

odro-volti wrote:
Sun Dec 20, 2020 4:42 am
Is it possible to purge wpa_supplicant via

Code: Select all

apt purge wpa_supplicant
or is the package included in another package?
The package is called: wpasupplicant
odro-volti wrote:
Sun Dec 20, 2020 4:55 am
PS: Will changes to /boot/boot.ini survive the next kernel update (are there any kernel updates to the experimental buster image?)
Kernel updates do not touch boot.ini, and in the contrary to HardKernel, I don't overwrite boot.ini I, I patch boot.ini, therefore changes made to it should stay as they are.
A Kernel update is in the pipeline, I'm just trying to fix some other things first.
These users thanked the author meveric for the post:
odro-volti (Sun Dec 20, 2020 5:13 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

odro-volti
Posts: 76
Joined: Fri Apr 12, 2019 4:35 pm
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: [OS] Debian Stretch

Post by odro-volti »

hi again and happy new year!

i would like to play a little with wireguard, but the kernel is obviously too old to include it

Code: Select all

uname -a
Linux fam3-1120 4.14.180+ #1 SMP PREEMPT Tue Oct 13 13:28:54 UTC 2020 armv7l GNU/Linux

cat /etc/issue
Debian GNU/Linux 10 \n \l
are the packages in the repo (didn't try yet, don't want to break anything) and are there any caveats for using wireguard on the experimental Buster image for XU4?
kind regards

volti

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

there should be a dkms package.

just search for wireguard, you probably find a dkms package and check what version it is.
One version worked with Kernel 4.9 and above which was tested on C4/N2 so that should work with Kernel 4.14 as well.
You might have to use backports though, depending on the version that is available.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

rookieist
Posts: 5
Joined: Sun Jan 17, 2021 3:02 am
languages_spoken: english, German
ODROIDs: Odroid HC1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by rookieist »

I try to install Debian Stretch - struggling already at an early stage... this is what I did so far:

Downloaded the Debian Stretch image, following the link on page 1 of this post. Checked the integrity of the zipped image with quickhash-gui. Flashed it to a 32GB SD card (checked before with F3X) using Balena Etcher. First error: It did not reboot automatically after partitioning and configuring SSH, so I did manually. I can SSH the HC1 now. There was a risk warning after my first attempt to get access via SSH (host key has changed...) which I solved using the command "ssh-keygen -R". I did the upgrades afterwards ("apt-get update && apt-get upgrade && apt-get dist-upgrade") and with "apt-get install console-setup keyboard-configuration" and "dpkg-reconfigure keyboard-configuration" tried to adjust the system setup.
Here came the second error message: -bash: dpkg-reconfigure: command not found

What's my mistake? (just to mention: I'm a complete newbie to this kind of work...)

More details from my command line:

root@debian-stretch:~# apt-get install console-setup keyboard-configuration
Reading package lists... Done
Building dependency tree
Reading state information... Done
console-setup is already the newest version (1.164).
keyboard-configuration is already the newest version (1.164).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Not using locking for read only lock file /var/lib/dpkg/lock
W: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chmod 0700 of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: Not using locking for read only lock file /var/cache/apt/archives/lock
root@debian-stretch:~# dpkg-reconfigure keyboard-configuration
-bash: dpkg-reconfigure: command not found
root@debian-stretch:~#

Any help very much appreciated.
Thanks!!!

User avatar
meveric
Posts: 11382
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 59 times
Been thanked: 443 times
Contact:

Re: [OS] Debian Stretch

Post by meveric »

so it says something about a read only filesystem.
This normally only happens if the image is damaged, for example due to bad SD cards.
Since you haven't done much yes, I suggest flashing the image again and try all over.
The system should do a reboot automatically after the first boot. If not there might already be something wrong.
Also check with df -h if it resized the rootfs to full size of your SD card and also that the command mount says "/" is mounted as rw (read and write) and not as ro (read only).

You can also try my Debian Buster image: https://oph.mdrjr.net/meveric/images/testing/ it should work as well but is a bit newer.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 0 guests