[OS] Debian Stretch

Post Reply
prein
Posts: 1
Joined: Tue Sep 03, 2019 4:09 pm
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by prein » Thu Nov 21, 2019 6:09 am

Running on the C2 with the latest update/upgrade/dist-upgrade I encounter USB problems. Devices seem to disappear/reappear causing all sorts of problems

Here is part of /var/log/messages:

Code: Select all

Nov 20 21:14:31 localhost kernel: [11350.014624] usb 1-1.2: USB disconnect, device number 29
Nov 20 21:14:31 localhost kernel: [11350.019740] usb 1-1.2.1: USB disconnect, device number 30
Nov 20 21:14:31 localhost kernel: [11350.026359] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1
Nov 20 21:14:31 localhost kernel: [11350.041205] ftdi_sio 1-1.2.1:1.0: device disconnected
Nov 20 21:14:31 localhost kernel: [11350.046575] usb 1-1.2.3: USB disconnect, device number 31
Nov 20 21:14:31 localhost kernel: [11350.051530] usb 1-1.2.3.1: USB disconnect, device number 32
Nov 20 21:14:32 localhost kernel: [11350.296419] usb 1-1.2: new full-speed USB device number 33 using dwc_otg
Nov 20 21:14:32 localhost kernel: [11350.396656] usb 1-1.2: not running at top speed; connect to a high speed hub
Nov 20 21:14:32 localhost kernel: [11350.404254] hub 1-1.2:1.0: USB hub found
Nov 20 21:14:32 localhost kernel: [11350.409677] hub 1-1.2:1.0: 4 ports detected
Nov 20 21:14:32 localhost kernel: [11350.786411] usb 1-1.2.1: new full-speed USB device number 34 using dwc_otg
Nov 20 21:14:32 localhost kernel: [11351.015256] ftdi_sio 1-1.2.1:1.0: FTDI USB Serial Device converter detected
Nov 20 21:14:32 localhost kernel: [11351.021628] usb 1-1.2.1: Detected FT232RL
Nov 20 21:14:32 localhost kernel: [11351.026554] usb 1-1.2.1: Number of endpoints 2
Nov 20 21:14:32 localhost kernel: [11351.031377] usb 1-1.2.1: Endpoint 1 MaxPacketSize 64
Nov 20 21:14:32 localhost kernel: [11351.036091] usb 1-1.2.1: Endpoint 2 MaxPacketSize 64
Nov 20 21:14:32 localhost kernel: [11351.040799] usb 1-1.2.1: Setting MaxPacketSize 64
Nov 20 21:14:32 localhost kernel: [11351.045842] usb 1-1.2.1: FTDI USB Serial Device converter now attached to ttyUSB1
Nov 20 21:14:33 localhost kernel: [11351.246362] usb 1-1.2.3: new full-speed USB device number 35 using dwc_otg
Nov 20 21:14:33 localhost kernel: [11351.466688] usb 1-1.2.3: not running at top speed; connect to a high speed hub
Nov 20 21:14:33 localhost kernel: [11351.474030] hub 1-1.2.3:1.0: USB hub found
Nov 20 21:14:33 localhost kernel: [11351.478957] hub 1-1.2.3:1.0: 4 ports detected
Nov 20 21:14:33 localhost kernel: [11351.876338] usb 1-1.2.3.1: new full-speed USB device number 36 using dwc_otg
Nov 20 21:14:34 localhost kernel: [11352.105689] cdc_acm 1-1.2.3.1:1.0: ttyACM1: USB ACM device
How can I debug the problem?

LucGIS
Posts: 9
Joined: Tue Nov 29, 2016 5:06 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by LucGIS » Wed May 13, 2020 5:21 am

My apt seems to be stuck on an kernel error. Anyone knows how to solve this?

# apt-get update
Ign:1 http://ftp.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease
Hit:3 http://ftp.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.debian.org/debian stretch-backports InRelease
Hit:5 http://ftp.debian.org/debian stretch-proposed-updates InRelease
Hit:6 http://ftp.debian.org/debian stretch Release
Hit:9 https://download.docker.com/linux/debian stretch InRelease
Hit:7 https://oph.mdrjr.net/meveric all InRelease
Hit:8 https://oph.mdrjr.net/meveric stretch InRelease
Reading package lists... Done

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_GB.utf8",
LC_MONETARY = "en_GB.utf8",
LC_MEASUREMENT = "en_GB.utf8",
LC_NUMERIC = "en_GB.utf8",
LC_PAPER = "en_GB.utf8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up linux-image-3.16.75+ (3.16.75-20191021-C2) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/Image 3.16.75+ /boot/vmlinuz-3.16.75+
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.75+ /boot/vmlinuz-3.16.75+
run-parts: executing /etc/kernel/postinst.d/copy_dtb 3.16.75+ /boot/vmlinuz-3.16.75+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.75+ /boot/vmlinuz-3.16.75+
update-initramfs: Generating /boot/initrd.img-3.16.75+
E: /usr/share/initramfs-tools/hooks/zz-busybox-initramfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.16.75+ with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.75+.postinst line 391.
dpkg: error processing package linux-image-3.16.75+ (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.16.82+ (3.16.82-20200317-C2) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/Image 3.16.82+ /boot/vmlinuz-3.16.82+
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.82+ /boot/vmlinuz-3.16.82+
run-parts: executing /etc/kernel/postinst.d/copy_dtb 3.16.82+ /boot/vmlinuz-3.16.82+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.82+ /boot/vmlinuz-3.16.82+
update-initramfs: Generating /boot/initrd.img-3.16.82+
E: /usr/share/initramfs-tools/hooks/zz-busybox-initramfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.16.82+ with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.82+.postinst line 391.
dpkg: error processing package linux-image-3.16.82+ (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-arm64-odroid-c2:
linux-image-arm64-odroid-c2 depends on linux-image-3.16.82+; however:
Package linux-image-3.16.82+ is not configured yet.

dpkg: error processing package linux-image-arm64-odroid-c2 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.16.75+
linux-image-3.16.82+
linux-image-arm64-odroid-c2
E: Sub-process /usr/bin/dpkg returned an error code (1)

User avatar
meveric
Posts: 11027
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
Has thanked: 39 times
Been thanked: 354 times
Contact:

Re: [OS] Debian Stretch

Post by meveric » Wed May 13, 2020 6:16 am

not sure why, but it seems the script is somehow broken now, but I don't know why.
You can fix it manually if you change the file:

/usr/share/initramfs-tools/hooks/zz-busybox-initramfs

and exchange:
BB_BIN=/bin/busybox
to
BB_BIN=/usr/lib/initramfs-tools/bin/busybox

this should fix it.
Why it's suddenly broken, I don't know.
I'll see if I can fix the package without breaking anything else.
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.

LucGIS
Posts: 9
Joined: Tue Nov 29, 2016 5:06 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by LucGIS » Fri May 15, 2020 3:26 am

I did something really stupid, because I was trying to fix it myself too :s

Now my ODROID won't boot. Is there any chance on fixing it when mounted on a laptop Linux OS? I can see the boot partition, it has the following files:
-rw-r--r-- 1 6833 May 12 21:53 boot.ini
-rw-r--r-- 1 2696 Jan 1 1980 boot.ini~
-rw-r--r-- 1 6807 Nov 22 15:32 boot.ini.orig
-rw-r--r-- 1 315 Jun 19 2017 boot.ini.rej
-rw-r--r-- 1 114064 Oct 21 2019 config-3.16.75+
-rw-r--r-- 1 114065 Mar 17 18:23 config-3.16.82+
drwxr-xr-x 2 2048 Nov 18 2016 .fseventsd
-rw-r--r-- 1 13810608 May 12 22:42 Image
-rw-r--r-- 1 4605034 May 12 22:42 initrd.img-3.16.75+
-rw-r--r-- 1 4605239 May 12 22:42 initrd.img-3.16.82+
-rw-r--r-- 1 30004 Mar 17 18:52 meson64_odroidc2.dtb
drwxr-xr-x 4 2048 Nov 18 2016 .Spotlight-V100
-rw-r--r-- 1 3094852 Oct 21 2019 System.map-3.16.75+
-rw-r--r-- 1 3095343 Mar 17 18:51 System.map-3.16.82+
-rw-r--r-- 1 4605303 May 12 22:42 uInitrd
-rw-r--r-- 1 4018339 Mar 18 2018 uInitrd-3.14.79+
-rw-r--r-- 1 4024629 May 3 2018 uInitrd-3.16.55+
-rw-r--r-- 1 4605098 May 12 22:42 uInitrd-3.16.75+
-rw-r--r-- 1 4605303 May 12 22:42 uInitrd-3.16.82+
-rw-r--r-- 1 13794224 Oct 21 2019 vmlinuz-3.16.75+
-rw-r--r-- 1 13810608 Mar 17 18:51 vmlinuz-3.16.82+

User avatar
meveric
Posts: 11027
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
Has thanked: 39 times
Been thanked: 354 times
Contact:

Re: [OS] Debian Stretch

Post by meveric » Fri May 15, 2020 4:18 am

I think it's missing the Image.gz file and instead has just the Image file.
I think you can just do a gzip -9 Image and it should boot again.
rest seems to be fine.
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.

LucGIS
Posts: 9
Joined: Tue Nov 29, 2016 5:06 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by LucGIS » Fri May 15, 2020 3:28 pm

Hi meveric,

Thanks for your quick replies.

I did as you told and gzipped the Image.
Connected the emmc on the ODROID C2
Powered on, but it seems to hang again.
I tried to connect the ODROID to an external monitor, so I can have some more insight on what is going on and where it might have a problem during boot.

I was trying to check the /var/log/boot.log but the file is not there.

Any more ideas on how to check what is going on, so I (we) can fix it :D?

User avatar
meveric
Posts: 11027
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
Has thanked: 39 times
Been thanked: 354 times
Contact:

Re: [OS] Debian Stretch

Post by meveric » Fri May 15, 2020 3:59 pm

/var/log/syslog should be more helpful but I'm not sure if it's already mounted at that boot stage.

I can probably pack and upload the content of my bootfs somewhere so you can replace what's on yours hopefully that will fix 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.

LucGIS
Posts: 9
Joined: Tue Nov 29, 2016 5:06 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by LucGIS » Fri May 15, 2020 4:24 pm

Hi,

That would be great!

Cheers

LucGIS
Posts: 9
Joined: Tue Nov 29, 2016 5:06 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by LucGIS » Mon May 18, 2020 4:35 am

meveric wrote:
Fri May 15, 2020 3:59 pm
/var/log/syslog should be more helpful but I'm not sure if it's already mounted at that boot stage.

I can probably pack and upload the content of my bootfs somewhere so you can replace what's on yours hopefully that will fix it.
Hi meveric,

I hope you are still willing to help me out here :D

Cheers

User avatar
meveric
Posts: 11027
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
Has thanked: 39 times
Been thanked: 354 times
Contact:

Re: [OS] Debian Stretch

Post by meveric » Mon May 18, 2020 7:47 am

Hi LucGIS
sorry it took me so long but I've uploaded the files:
https://oph.mdrjr.net/meveric/other/C2/boot.tar.xz

They look very similar the what you have so I wonder if that's really the issue here.
I still suggest making a backup of your files first, just in case.
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.

LucGIS
Posts: 9
Joined: Tue Nov 29, 2016 5:06 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by LucGIS » Wed May 20, 2020 11:27 pm

Hi meveric,

It worked. My ODROID C2 booted and Dockers started running again :D

Thank!

Cheers,

Luc

LucGIS
Posts: 9
Joined: Tue Nov 29, 2016 5:06 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Stretch

Post by LucGIS » Thu May 21, 2020 12:08 am

But my hwclock is not working :( Dokcer is running for years it says on docker ps :o

# date
Wed May 20 17:06:51 CEST 2020

# hwclock --show
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc to read the time failed: Input/output error

# hwclock --systohc
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc to read the time failed: Input/output error
hwclock: ioctl(RTC_SET_TIME) to /dev/rtc to set the time failed.: Input/output error

Any thoughts?

User avatar
meveric
Posts: 11027
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
Has thanked: 39 times
Been thanked: 354 times
Contact:

Re: [OS] Debian Stretch

Post by meveric » Thu May 21, 2020 6:11 am

You probably have to activate clock again, as it needs to add some stuff on the Kernel, which I did not on my image.
Use the setup-odroid tool to activate RTC, not sure if it works it's been a while since I tested 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.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest