[OS] Debian Stretch

RolandE
Posts: 38
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 0
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: 10389
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: 15 times
Been thanked: 117 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: 10389
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: 15 times
Been thanked: 117 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: 10389
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: 15 times
Been thanked: 117 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: 10389
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: 15 times
Been thanked: 117 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: 10389
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: 15 times
Been thanked: 117 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: 39
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: 10389
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: 15 times
Been thanked: 117 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: 39
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: 10389
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: 15 times
Been thanked: 117 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: 955
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2
Location: Australia
Has thanked: 14 times
Been thanked: 28 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: 10389
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: 15 times
Been thanked: 117 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: 10389
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: 15 times
Been thanked: 117 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: 38
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 0
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: 10389
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: 15 times
Been thanked: 117 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: 38
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 0
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: 10389
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: 15 times
Been thanked: 117 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: 38
Joined: Sun Nov 04, 2018 11:30 pm
languages_spoken: english, deutsch
ODROIDs: Odroid-C2, Odroid Xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

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

Thank you Merveric.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest