[OS] Debian Stretch

RolandE
Posts: 41
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by RolandE » Mon Dec 10, 2018 3:16 pm

m_ba wrote:Hi,
I have installed firmware-realtek package, then wlan0 is available.
My problem is that wifi link is not stable, I mean link is still up but I lose
network access. So I continue using 3.14.79+ kernel as there is
an older driver 8192cu.
Kind regards,
M.
Hi,
thank you very much. I will try out
apt-get install firmware-realtek
Currently I have booted ubuntu with the kernel 3.16.60-28 and it is stable running the wlan.
For the old Raspberry Pi I have the same wlan adapter and it runs stable with kernel 4.14.78 and allkernels I used on the old Raspbeerry Pi.
I didn't even know that a special firmware-realtek exists. I thought that the kernel modules are enough to use the wlan adapter. I still don't know what this firmware does and if it's available e.g. for FreeBSD and freeBSD should run on the Raspberry Pis, too.
Anyway, firmware-realtek is exactly I was looking for and I will write my experience with it. Hopefully I don't need to downgrade the kernel.
For the kernel, has anyone tested the 4.14 or later kernel on Debian? How far is the progress in running the hardware with a 4x kernel on Odroid-C2? It's not important. I just ask for curiousity.
Kind regards,
Roland

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Mon Dec 10, 2018 4:12 pm

RolandE wrote:Where do I find rtlwifi/rtl8192cufw_TMSC.bin for Debian?
In Ubuntu it is in /lib/firmware/rtlwifi/rtl8192cufw_TMSC.bin
First you need to install firmware-realtek then you can find it under the same location as under Ubuntu.
m_ba wrote:Hi,
I have installed firmware-realtek package, then wlan0 is available.
My problem is that wifi link is not stable, I mean link is still up but I lose
network access. So I continue using 3.14.79+ kernel as there is
an older driver 8192cu.
Kind regards,
M.
Yes I had this as well with the ODROID C2 and some of the WiFi modules.
I found that 5G WLAN runs much better than 2.4G and I use a WiFi Model 4 from HardKernel with alternative drivers to make it more stable as well as the WiFi module 5.
I have several DKMS modules available for 8192 grade devices:

Code: Select all

8192cu-dkms - 8192cu driver in DKMS format.
rtl8192du-dkms - rtl8192du driver in DKMS format.
rtl8192eu-dkms - rtl8192eu driver in DKMS format.
Which might work as an alternative to the ones coming from HardKernel.
RolandE wrote:For the kernel, has anyone tested the 4.14 or later kernel on Debian? How far is the progress in running the hardware with a 4x kernel on Odroid-C2? It's not important. I just ask for curiousity.
Kind regards,
Roland
Kernel 4.14 on Debian: yes (on the ODROID XU4 for example)
Kernel 4.14 on ODROID C2: no, since it's not officially supported
For all I know with higher Kernels you get to boot and can SSH into the system, but you don't have GPU or Display support, means you can't connect it to a TV.
But there's a thread here in the forum about mainline Kernel support for the C2.. you should check that out for more information.
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.

m_ba
Posts: 2
Joined: Mon Dec 10, 2018 9:35 am
languages_spoken: english
ODROIDs: c2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by m_ba » Wed Dec 12, 2018 10:00 am

I use odroid module 3 wifi, because of an external antenna, which extends the range.
The range is really far better comparing to i.e. my raspberry edimax dongle.
But I'm gonna try modules 4 or 5, thanks tor the advice.
Michal

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Wed Dec 12, 2018 4:07 pm

m_ba wrote:I use odroid module 3 wifi, because of an external antenna, which extends the range.
The range is really far better comparing to i.e. my raspberry edimax dongle.
But I'm gonna try modules 4 or 5, thanks tor the advice.
Michal
You can also try the alternative DKMS modules and see if that helps (might be a newer version, but I'm not 100% sure).
WiFi Module 4 and 5 have no large antenna but are huge USB sticks so that extends a bit as well.
Especially the WiFi Module 5 is huge, so huge in fact, that it might block the USB port next to it.
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.

manuc0
Posts: 5
Joined: Tue Jan 16, 2018 9:25 pm
languages_spoken: english
ODROIDs: ODROID C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by manuc0 » Sun Dec 16, 2018 6:48 pm

Hello, when I activate RTC through setup-odroid got the following with errors and RTC is not active at all after reboot.
Could you please advise ? Thank you

Code: Select all

Reading package lists... Done
update-initramfs: Deleting /boot/initrd.img-3.16.60+
update-initramfs: Generating /boot/initrd.img-3.16.60+
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 25: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 26: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
ln: failed to create hard link '/boot/initrd.img-3.16.60+.dpkg-bak' => '/boot/initrd.img-3.16.60+': Operation not permitted
update-initramfs: Generating /boot/initrd.img-3.16.60+
Image Name:   uInitrd
Created:      Sun Dec 16 10:43:42 2018
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    5266713 Bytes = 5143.27 kB = 5.02 MB
Load Address: 00000000
Entry Point:  00000000
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 25: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 26: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
Reading package lists... Done
Building dependency tree
Reading state information... Done
device-tree-compiler is already the newest version (1.4.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
update-initramfs: Deleting /boot/initrd.img-3.16.60+
update-initramfs: Generating /boot/initrd.img-3.16.60+
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 25: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 26: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
ln: failed to create hard link '/boot/initrd.img-3.16.60+.dpkg-bak' => '/boot/initrd.img-3.16.60+': Operation not permitted
update-initramfs: Generating /boot/initrd.img-3.16.60+
Image Name:   uInitrd
Created:      Sun Dec 16 10:44:09 2018
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    5273945 Bytes = 5150.34 kB = 5.03 MB
Load Address: 00000000
Entry Point:  00000000
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 25: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 26: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
Reading package lists... Done
Building dependency tree
Reading state information... Done
device-tree-compiler is already the newest version (1.4.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Mon Dec 17, 2018 3:15 am

manuc0 wrote:Hello, when I activate RTC through setup-odroid got the following with errors and RTC is not active at all after reboot.
Could you please advise ? Thank you
Yes it seems under Debian Stretch that scripts reacts different from Debian Jessie, where this option worked fine.
Anyway, this was discussed just recently and you should be able to fix it the same way.
viewtopic.php?p=240431#p240431
manuc0 wrote:

Code: Select all

/etc/initramfs-tools/scripts/local-top/c2_init.sh: 25: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
/etc/initramfs-tools/scripts/local-top/c2_init.sh: 26: /etc/initramfs-tools/scripts/local-top/c2_init.sh: fbset: not found
ln: failed to create hard link '/boot/initrd.img-3.16.60+.dpkg-bak' => '/boot/initrd.img-3.16.60+': Operation not permitted
The errors above can be ignored, they are not real erros, and are perfectly fine.
The fbset is due to the fact fbset is not installed and only available during boot.
Which IS how it SHOULD be, or else during an upgrade it would change your screen resolution and you wouldn't be able to use the desktop anymore and would have to reboot.
The second is a issue with the filesystem the bootfs is on. The boot partition is a fat32 system so the boot.ini can be edited even if you have a Windows PC. But fat32 does not support links, which is the error you see.
Still nothing to worry about it just tries to create a backup, but that's not required.
Once again, both errors can be ignored and have nothing to do with the RTC issue.
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.

crodroid
Posts: 3
Joined: Sat Dec 22, 2018 12:43 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by crodroid » Sat Dec 22, 2018 12:49 am

Hello. I am unable to update the linux kernel using apt from your repo built into this distribution. It appears the scripts fail to create /boot/uImage-x.x.x. If I manually create, and apt -f install it corrects the issue, however, I have noticed this behavior for quite some time. I thought it was a missing symlink or something that may have been part of an earlier release, but it still fails to install the updated kernel images each time and requires manual intervention to complete the install. See below for error, and below that for fix:

Code: Select all

The following NEW packages will be installed:
  linux-headers-3.16.61+ linux-image-3.16.61+
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 19.5 MB of archives.
After this operation, 102 MB of additional disk space will be used.
Get:1 https://oph.mdrjr.net/meveric all/c2 arm64 linux-image-3.16.61+ arm64 3.16.61-20181220-C2 [12.5 MB]
Get:2 https://oph.mdrjr.net/meveric all/c2 arm64 linux-headers-3.16.61+ arm64 3.16.61-20181220-C2 [6,973 kB]
Fetched 19.5 MB in 3s (5,304 kB/s)
Preconfiguring packages ...
Selecting previously unselected package linux-image-3.16.61+.
(Reading database ... 39097 files and directories currently installed.)
Preparing to unpack .../linux-image-3.16.61+_3.16.61-20181220-C2_arm64.deb ...
Examining /etc/kernel/preinst.d/
Done.
Unpacking linux-image-3.16.61+ (3.16.61-20181220-C2) ...
Selecting previously unselected package linux-headers-3.16.61+.
Preparing to unpack .../linux-headers-3.16.61+_3.16.61-20181220-C2_arm64.deb ...
Unpacking linux-headers-3.16.61+ (3.16.61-20181220-C2) ...
Setting up linux-image-3.16.61+ (3.16.61-20181220-C2) ...

Hmm. There is a symbolic link /lib/modules/3.16.61+/build
However, I can not read it: No such file or directory
Therefore, I am deleting /lib/modules/3.16.61+/build


Hmm. The package shipped with a symbolic link /lib/modules/3.16.61+/source
However, I can not read the target: No such file or directory
Therefore, I am deleting /lib/modules/3.16.61+/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/Image 3.16.61+ /boot/vmlinuz-3.16.61+
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.61+ /boot/vmlinuz-3.16.61+
run-parts: executing /etc/kernel/postinst.d/copy_dtb 3.16.61+ /boot/vmlinuz-3.16.61+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.61+ /boot/vmlinuz-3.16.61+
update-initramfs: Generating /boot/initrd.img-3.16.61+
Image Name:   uInitrd
Created:      Fri Dec 21 09:34:30 2018
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    5266578 Bytes = 5143.14 kB = 5.02 MB
Load Address: 00000000
Entry Point:  00000000
run-parts: executing /etc/kernel/postinst.d/uImage 3.16.61+ /boot/vmlinuz-3.16.61+
cp: cannot stat '/boot/uImage-3.16.61+': No such file or directory
run-parts: /etc/kernel/postinst.d/uImage exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.61+.postinst line 391.
dpkg: error processing package linux-image-3.16.61+ (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-headers-3.16.61+ (3.16.61-20181220-C2) ...
Examining /etc/kernel/header_postinst.d.
Errors were encountered while processing:
linux-image-3.16.61+
E: Sub-process /usr/bin/dpkg returned an error code (1)
And the fix:

Code: Select all

root@odroid-stretch64:~# cp /boot/uImage /boot/uImage-3.16.61+
root@odroid-stretch64:~# apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.16.61+ (3.16.61-20181220-C2) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/Image 3.16.61+ /boot/vmlinuz-3.16.61+
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.61+ /boot/vmlinuz-3.16.61+
run-parts: executing /etc/kernel/postinst.d/copy_dtb 3.16.61+ /boot/vmlinuz-3.16.61+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.61+ /boot/vmlinuz-3.16.61+
update-initramfs: Generating /boot/initrd.img-3.16.61+
Image Name:   uInitrd
Created:      Fri Dec 21 09:35:31 2018
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    5266578 Bytes = 5143.14 kB = 5.02 MB
Load Address: 00000000
Entry Point:  00000000
run-parts: executing /etc/kernel/postinst.d/uImage 3.16.61+ /boot/vmlinuz-3.16.61+
run-parts: executing /etc/kernel/postinst.d/uInitrd 3.16.61+ /boot/vmlinuz-3.16.61+
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
   Affected packages: linux-image-3.16.61+:arm64
I believe this issue is related to the scripts provided with the actual package, but I'm not certain. Do you have a fix for this so kernel updates will flow smoothly next time around? Thank you for your time.

crodroid
Posts: 3
Joined: Sat Dec 22, 2018 12:43 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by crodroid » Sat Dec 22, 2018 2:14 am

I have checked and the uInitrd script in /etc/initramfs-tools/hooks/ is identical to the one you have posted here, so it must not be that.

Colby

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Sat Dec 22, 2018 2:22 am

sorry... I checked your output again, and it seems to be an issue with uImage, not uInitrd.

That part of the script is not even relevant for the C2.
Please delete /boot/uImage* these files are not used, and the script is only triggered, cause /boot/uImage exists, which is not part of the Kernel of the ODROID C2.
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.

crodroid
Posts: 3
Joined: Sat Dec 22, 2018 12:43 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by crodroid » Sat Dec 22, 2018 2:26 am

Thank you, that seems to have fixed it.

Appreciate the help.

pld
Posts: 4
Joined: Fri Jul 01, 2016 9:40 pm
languages_spoken: english, polish
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by pld » Fri Apr 05, 2019 12:23 am

Hi there,

I have a quick question. I found this:
viewtopic.php?t=22717&start=900
Do you have plans to upgrade to mainline kernel?

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Fri Apr 05, 2019 2:56 am

As long as it's not officially supported by HardKernel the answer is: no.
As far as I know there's still not everything working on mainline, so you would limit yourself with what you can do.

If this Kernel is used by HardKernel for their images as well, then yes I will also support this Kernel.
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.

aberrio
Posts: 43
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by aberrio » Fri Apr 26, 2019 2:50 am

Hi,

Recomendation if an Android emulator that works? I tried Anbox and did not work.

Regards,

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Fri Apr 26, 2019 4:04 am

none that I know of, most people probably just install Android instead of an emulator anyway.
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.

aberrio
Posts: 43
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by aberrio » Fri Apr 26, 2019 5:58 am

Hi,

I had Android installed but new apps are not working on marshmallow, are you planning to compile another version?

Regards, MN

marg
Posts: 24
Joined: Wed Feb 10, 2016 6:14 am
languages_spoken: english
ODROIDs: C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by marg » Mon May 06, 2019 3:43 am

Hello Meveric,

Hello ,

I want to try my powers with python , so i got 16x2 lcd.
I'v done everything as here : https://magazine.odroid.com/article/i2c ... erial-lcd/

But when i try to detect lcd i2cdetect -y -r 1 / 2
gives no connection ,

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Does it had to be enabled any somewhere ?
Thanks for the support.

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Mon May 06, 2019 5:27 am

sadly I can't help you with that. This is not my field of experience.
I only know that you need to use a special version of WiringPi for the ODROID and can't just use any version, or the version from RPi.
That's all I know.
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.

brad
Posts: 964
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 H2 (64 bit ftw)
Location: Australia
Has thanked: 16 times
Been thanked: 32 times
Contact:

Re: [OS] Debian Stretch

Unread post by brad » Mon May 06, 2019 5:38 pm

marg wrote:
Mon May 06, 2019 3:43 am
But when i try to detect lcd i2cdetect -y -r 1 / 2
im not sure why -r is being used but try these commands to see which i2c interface the device is connected (note 0 and 1 without the -r)

Code: Select all

sudo i2cdetect -y 0
sudo i2cdetect -y 1

marg
Posts: 24
Joined: Wed Feb 10, 2016 6:14 am
languages_spoken: english
ODROIDs: C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by marg » Tue May 07, 2019 5:17 am

meveric wrote:
Mon May 06, 2019 5:27 am
sadly I can't help you with that. This is not my field of experience.
I only know that you need to use a special version of WiringPi for the ODROID and can't just use any version, or the version from RPi.
That's all I know.
Well i hope some HK staff will help.
As far i readed that i need to blacklist w1_gpio to prevent from launching : https://wiki.odroid.com/accessory/displ ... ld/c/start
i'v done this : add “w1_gpio” in /etc/modprobe.d/blacklist-odroid.conf file
but lsmod still showing its used, why the blacklist dont work ? :


lsmod

Code: Select all

lsmod
Module                  Size  Used by
sg                     30697  0
spidev                  6643  0
spi_gpio                6551  0
w1_gpio                 3801  0
spi_bitbang             4055  1 spi_gpio
wire                   28753  1 w1_gpio    <--------------
meson_gpiomem           4064  0
gxbb_wdt                3411  0
sx865x                  5235  0
aml_i2c                16826  0
ip_tables              17301  0
ipv6                  386213  16
autofs4                27654  2


marg
Posts: 24
Joined: Wed Feb 10, 2016 6:14 am
languages_spoken: english
ODROIDs: C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by marg » Tue May 07, 2019 6:21 am

brad wrote:
Mon May 06, 2019 5:38 pm
marg wrote:
Mon May 06, 2019 3:43 am
But when i try to detect lcd i2cdetect -y -r 1 / 2
im not sure why -r is being used but try these commands to see which i2c interface the device is connected (note 0 and 1 without the -r)

Code: Select all

sudo i2cdetect -y 0
sudo i2cdetect -y 1
0 is not recognized at all - only @ 1 and 2 thers some output
But the same - dont see anything connected.

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Tue May 07, 2019 3:37 pm

marg wrote:
Tue May 07, 2019 5:17 am
Well i hope some HK staff will help.
As far i readed that i need to blacklist w1_gpio to prevent from launching : https://wiki.odroid.com/accessory/displ ... ld/c/start
i'v done this : add “w1_gpio” in /etc/modprobe.d/blacklist-odroid.conf file
but lsmod still showing its used, why the blacklist dont work ? :


lsmod

Code: Select all

lsmod
Module                  Size  Used by
sg                     30697  0
spidev                  6643  0
spi_gpio                6551  0
w1_gpio                 3801  0
spi_bitbang             4055  1 spi_gpio
wire                   28753  1 w1_gpio    <--------------
meson_gpiomem           4064  0
gxbb_wdt                3411  0
sx865x                  5235  0
aml_i2c                16826  0
ip_tables              17301  0
ipv6                  386213  16
autofs4                27654  2

have you rebooted the system after you added w1_gpio to the blacklist file? This only works if the driver is not yet loaded, which means only at boot.
Can you show us the content of your /etc/modprobe.d/blacklist-odroid.conf file?
Also can you try rmmod w1_gpio? This should unload the driver on an already running system.
You might have to do a rmmod wire first as well, as wire apparently uses the w1_gpio driver.
Question is, if "wire" also needs to be blacklisted.
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.

marg
Posts: 24
Joined: Wed Feb 10, 2016 6:14 am
languages_spoken: english
ODROIDs: C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by marg » Wed May 08, 2019 4:28 am

meveric wrote:
Tue May 07, 2019 3:37 pm

have you rebooted the system after you added w1_gpio to the blacklist file?
YES ofc

This only works if the driver is not yet loaded, which means only at boot.

Can you show us the content of your /etc/modprobe.d/blacklist-odroid.conf file?
its only :

w1_gpio


Also can you try rmmod w1_gpio? This should unload the driver on an already running system.
This works - its unloading. But after reboot its back again - looks like this blacklist dont work

You might have to do a rmmod wire first as well, as wire apparently uses the w1_gpio driver.
Question is, if "wire" also needs to be blacklisted.

wiki says its need to be blacklisted only w1_gpio

UPDATE :

I added " blacklist w1_gpio " comment - that worked. Its blocked :)

But the i2cdetect still dont see it :(


I'v readed that there need to be loaded modules, i added them to /etc/modules :

i2c-dev
aml_i2c

but the lsmod dont show that i2c-dev is not loaded - ther's only aml_i2c - maybe that's why it don't see it ?

thanks for help man

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Wed May 08, 2019 5:37 am

there is no module called i2c-dev, maybe it only existed on Kernel 3.14, but we since changed to Kernel 3.16.
There is only i2c-gpio and i2c-tiny-usb I'd say it would probably be the former.
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.

marg
Posts: 24
Joined: Wed Feb 10, 2016 6:14 am
languages_spoken: english
ODROIDs: C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by marg » Wed May 08, 2019 5:43 am

meveric wrote:
Wed May 08, 2019 5:37 am
there is no module called i2c-dev, maybe it only existed on Kernel 3.14, but we since changed to Kernel 3.16.
There is only i2c-gpio and i2c-tiny-usb I'd say it would probably be the former.
Good to know...
I added i2c-gpio - but still no detect.
:(

RolandE
Posts: 41
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by RolandE » Wed Jul 17, 2019 11:18 pm

Hello,
unfortunately I am late writing an answer as the time was a bit turbulent for me. Now I have hopefully more time to do some experiements with my Odroid C2 and Debian. What I remember was, that I got the wlan working. By the way, is there a new Debian stretch release for the Odroid C2?
Thank you Meveric for your help :)
Kind regards,
Roland

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Wed Jul 17, 2019 11:50 pm

What do you mean by "new Debain Stretch release"?
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.

RolandE
Posts: 41
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by RolandE » Thu Jul 18, 2019 4:30 pm

Hello Meveric,
I wanted to ask if there is a new Debian release for the C2 or if something has changed since last December?
Kind regards,
Roland

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Thu Jul 18, 2019 6:41 pm

I normally just updating the packages and driver and not the image itself as you can update it with normal apt-get procedures.

In time there will be a Debian Buster version, but currently that Debian Stretch version is still valid and just got updates in the background.
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.

RolandE
Posts: 41
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by RolandE » Thu Jul 18, 2019 11:40 pm

Thank you Merveric.

RolandE
Posts: 41
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by RolandE » Wed Aug 28, 2019 6:12 pm

Hello Merveric hello Debian experts,
I did some new tests. The wifi works when I log into the graphical login (I run the graphical.target). Now I wanted to start the wifi connection during the boot time and not only after loggin into my odroid c2 on Debian. I checked what I have done on Raspbian. There I have a /etc/wpa_supplicant/wpa_supplicant.conf
with the following content:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="FRITZ!Box 7390"
psk="WPA Password"
key_mgmt=WPA-PSK
}
(instead of "WPA Password" there is the WPA key/passwod)
Now when I login X11 I get directly connected to my fritzbox but it does not connect to the wifi without login into the machine.

I also looked into
/lib/systemd/system/wpa_supplicant@.service
and there is everything like on my Raspberry PI. The only difference is that I boot my Raspberry into the multi-user.target (text console mode). So I tried this with my odroid c2 but it did not help.
Then I got:
Aug 28 00:24:47 localhost NetworkManager[340]: <info> [1566951887.3881] device (wlan0): set-hw-addr: set MAC address to CE:DB:73:F6:0D:3F (scanning)
Aug 28 00:24:47 localhost kernel: [ 7940.083921] rtl8192cu: MAC auto ON okay!
Aug 28 00:24:47 localhost kernel: [ 7940.170803] rtl8192cu: Tx queue select: 0x05
Aug 28 00:24:47 localhost kernel: [ 7940.551099] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Aug 28 00:24:47 localhost NetworkManager[340]: <info> [1566951887.8645] device (wlan0): supplicant interface state: inactive -> disabled
Aug 28 00:24:47 localhost NetworkManager[340]: <info> [1566951887.8664] device (wlan0): supplicant interface state: disabled -> inactive
Aug 28 00:24:47 localhost wpa_supplicant[420]: wlan0: Reject scan trigger since one is already pending

Starting with network cable worked and after login it tried to connect to the wlan. After disconnecting the network cable I got connected with my wlan (wifi) in the text console without error messages.
What do I have to do that an automatic wlan connection is done without login into the odroid machine?
Kind regards,
Roland

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Thu Aug 29, 2019 3:02 am

My Guess:

Network Manager will automatically configure all devices that were not previously configured.
You configured wpasupplicant, but you did not configure the WLAN adapter. Therefore Network Manager wants to do this and "steals" it from the system.

My Idea:

In order to prevent Network Manager to steal the WLAN adapter you should add a line for it in /etc/network/interfaces, as the Network Manager will ignore all devices that are configured here.
In fact it's probably easier to configure the WLAN adapter completely under /etc/network/interfaces, rather than using wpasupplicant (viewtopic.php?p=257420#p257420).
These users thanked the author meveric for the post:
RolandE (Thu Aug 29, 2019 3:18 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.

RolandE
Posts: 41
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by RolandE » Thu Aug 29, 2019 3:17 am

Hi Meveric,
thank you very much. I will try that out.
The strange thing is that the wlan connects just when I log in. There is somewhere a setting that tells the wlan adapter just to work when I am logged in.
Let's see if the /etc/network/interfaces works even when I am not logged in. That is helpful to use it as server without display or when I have problems with my display.
Kind regards,
Roland

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Thu Aug 29, 2019 3:20 am

RolandE wrote:
Thu Aug 29, 2019 3:17 am
The strange thing is that the wlan connects just when I log in. There is somewhere a setting that tells the wlan adapter just to work when I am logged in.
The Network Manager stores it's passwords in the gnome keyring which is encrypted for your user.
Login into the system "decrypts" your keyring and Network Manager can use the password to connect to WLAN, before that, the Network Manager does not know the password to connect to the network.
These users thanked the author meveric for the post:
RolandE (Fri Aug 30, 2019 7:15 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.

RolandE
Posts: 41
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by RolandE » Fri Aug 30, 2019 7:16 am

Hi Meveric,
thank you very much. Now it works. I now use /etc/network/interfaces to automatic connect to my wlan.
Best regards,
Roland

rmentjens
Posts: 5
Joined: Sat Jan 31, 2015 3:00 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Regenerate SSH host keys

Unread post by rmentjens » Fri Sep 13, 2019 8:11 pm

Just installed debian stretch for my C2 (meverick)

I used to regenerate the ssh host keys as follows

rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server

However this results in not being able te login with putty through the network. Not even after reboot.

I have to login with the serial module and then do

service ssh restart

after that logging in via the network works again but after every reboot login via port 22 is not working.

What should i do?

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Fri Sep 13, 2019 10:21 pm

First question would be why did you regenerate the SSH keys?

Have you checked if SSH is even running "before" you "restart" it?
Maybe it's no longer started automatically?

What's the output of: systemctl status sshd.service
Maybe you disabled the ssh daemon and currently just start it manually with your restart command?
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.

rmentjens
Posts: 5
Joined: Sat Jan 31, 2015 3:00 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by rmentjens » Fri Sep 13, 2019 11:05 pm

Hello Meveric, Tnx much for the quick reply.

Regenerating seemed to me a good idea. Security wise.

The funny thing is that I just did the procedure again. And logging in via the network works just fine... So the problem did not come back.

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Fri Sep 13, 2019 11:11 pm

rmentjens wrote:
Fri Sep 13, 2019 11:05 pm
Hello Meveric, Tnx much for the quick reply.

Regenerating seemed to me a good idea. Security wise.
I don't understand why this would increase security.
The SSH Keys are re-generated when you first boot the image.
Each image therefore has their own SSH keys (basically what you did manually is already done when you first boot the image)....
I don't know why randomly recreating these keys would improve security.
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.

rmentjens
Posts: 5
Joined: Sat Jan 31, 2015 3:00 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by rmentjens » Sat Sep 14, 2019 12:53 am

Well I didn't know that. Good to know.

Problem is back after i edited fstab I think I made a mistake there so the C2 will not boot correctly. After I delete what I have added to fstab the C2 boots normally and I can login.

So the problem is me, editing fstab. Going to look into that.

rmentjens
Posts: 5
Joined: Sat Jan 31, 2015 3:00 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Unread post by rmentjens » Sat Sep 14, 2019 2:48 am

This is what
root@Tabun:~# systemctl status sshd.service
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
led)
Active: inactive (dead)

after

service ssh restart
root@Tabun:~# systemctl status sshd.service
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
led)
Active: active (running) since Fri 2019-09-13 19:41:46 CEST; 6s ag
o
Process: 397 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 400 (sshd)
CGroup: /system.slice/ssh.service
└─400 /usr/sbin/sshd -D

Sep 13 19:41:46 Tabun systemd[1]: Starting OpenBSD Secure Shell server...
Sep 13 19:41:46 Tabun sshd[400]: Server listening on 0.0.0.0 port 22.
Sep 13 19:41:46 Tabun sshd[400]: Server listening on :: port 22.
Sep 13 19:41:46 Tabun systemd[1]: Started OpenBSD Secure Shell server.

Now logging in is no problem. So the conclusion that the entry in fstab is preventing the C2 from booting fully.

Strange is that there is nothing special in my fstab. The exact line is below copied from an other odroid ( c1 with jessie) the UUID comes from blkid

UUID=ea0e0b6c-8850-495c-a7b5-3da2d4d7de57 /media/usb0 ext4 defaults 0 0

User avatar
meveric
Posts: 10431
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
Has thanked: 16 times
Been thanked: 126 times
Contact:

Re: [OS] Debian Stretch

Unread post by meveric » Sat Sep 14, 2019 2:56 am

does /media/usb0 exist?
It could also be that as long as the device is not found it will prevent the system from booting, you should add nofail as a mount option which tells the system not to throw an error or wait forever if the device is not found.

Active: inactive (dead) means sshd is not running at all. Maybe you disabled it by accident?
Try systemctl enable sshd.service this should activate it at boot time.
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.

rmentjens
Posts: 5
Joined: Sat Jan 31, 2015 3:00 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch SOLVED

Unread post by rmentjens » Sat Sep 14, 2019 2:10 pm

i didn't disable it.

the C2 works great now. what I did:
I reformated the disk made a new ext4 fs on sda1 got the new UUID with blkid, changed the UUID field in fstab.

Now the C2 boots an fstab mounts the disk to /media/usb0.

I think what did happen is what you discribed. it waited forever because it could not mount the disk. And so it never got to boot up the ssh daemon

I think it is obvious that I am on a beginner level. But I am learning:-)

Thank You for your support Meveric! And also Thank you for the debian images for my C1 and C2.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest