[OS] Debian Stretch

Moderators: mdrjr, odroid

Re: [OS] Debian Stretch

Unread postby meveric » Sat Apr 14, 2018 6:05 pm

I just uploaded a new version of Kodi yesterday that fixes the last issue that I had with it.
So Kodi is available and working for Debian Stretch.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby nogareth » Sat Apr 14, 2018 6:13 pm

Great !

Now i just need to find another Micro-SD within my Sparepart-dumpster to give it a try.
Btw: Is gbit lan and Usb3.0 Working Properly ?
I've read a while ago that there are Problems when using the 4.x Kernel?
nogareth
 
Posts: 166
Joined: Sun Jan 25, 2015 3:40 am
languages_spoken: english , german
ODROIDs: XU3

Re: [OS] Debian Stretch

Unread postby meveric » Sat Apr 14, 2018 7:23 pm

well at least for me it's working... seems to be a case by case issue. but mine is running 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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby merlinux » Mon Apr 16, 2018 3:30 pm

Thanks meveric!
Just installed RC2 and it is working fine after a few tweaks.
First the auto expand script failed on my setup (I did have both an emmc and an sdcard with unique UUIDs).It did expand the partition but didnt grow the Filesystem to use the entire space. easy fix with parted. I didnt try it with just an sdcard so I cant tell if its working as it is meant to be.
As someone else posted, after installing the desktop with "setup-odroid", I needed to manually install xcf86-video-armsoc-odroid pkg in order to get a functionning xserver.
And digging things further I noticed that I was missing acceleration and proper symlinks with LIBEGL and libGLES, until I realised that libMali.so was missing entirely :) So setup-odroid also missed malit628-odroid. After installing it everything is ok
merlinux
 
Posts: 3
Joined: Sat Dec 17, 2016 5:53 pm
languages_spoken: english
ODROIDs: odroid c2

Re: [OS] Debian Stretch

Unread postby meveric » Mon Apr 16, 2018 5:28 pm

Thanks for the feedback, I'll check on the setup-odroid script, as this script in there should manage the installation of malit628-odroid and xf86-video-armsoc-odroid.

Edit:
Well on the first look the script looks fine, which is not surprising, as the part for installing GPU and DDX has not changed at all.
So I guess I have to try a complete fresh installation to track down the 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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby merlinux » Mon Apr 16, 2018 6:56 pm

@meveric I think I know why.
I had a look at your code and when you do "cat /proc/device-tree/model" it now returns "Hardkernel Odroid XU4" instead of XU3 like in the old kernel.
I think you just need another or statement to set the board to exynos5 ;)
merlinux
 
Posts: 3
Joined: Sat Dec 17, 2016 5:53 pm
languages_spoken: english
ODROIDs: odroid c2

Re: [OS] Debian Stretch

Unread postby meveric » Mon Apr 16, 2018 7:49 pm

merlinux wrote:@meveric I think I know why.
I had a look at your code and when you do "cat /proc/device-tree/model" it now returns "Hardkernel Odroid XU4" instead of XU3 like in the old kernel.
I think you just need another or statement to set the board to exynos5 ;)

Normally that shouldn't matter, as it first tests for /proc/cpuinfo and only if this returns without result it will use /proc/device-tree/model.
Code: Select all
bash -x setup-odroid
+ board_info
++ cat /proc/cpuinfo
++ grep Hardware
++ awk '{print $3}'
+ BOARD=ODROID-XU3
+ '[' xODROID-XU3 == x ']'
+ '[' xODROID-XU3 == xHardkernel ']'
+ case $BOARD in
+ board=exynos5
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby nogareth » Mon Apr 16, 2018 11:55 pm

Did i miss something , or is there a known problem with Egl?

Ive setup my system from scratch, used setup-odroid to install Mate desktop and Kodi. Everything fine so far , but the Desktop is sluggish as hell, and also is Kodi.
When i try to run Glmark2-es2, Egl seems to be available , but it is also slow as hell.
Code: Select all
martin@brick:~$ glmark2-es2
=======================================================
    glmark2 2014.03+git20150611.fa71af2d
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-T628
    GL_VERSION:    OpenGL ES 3.1 v1.r14p0-01rel0.0fe2d25ca074016740f8ab3fb451b151
=======================================================
[build] use-vbo=false: FPS: 9 FrameTime: 111.111 ms
[build] use-vbo=true: FPS: 9 FrameTime: 111.111 ms
[texture] texture-filter=nearest: FPS: 9 FrameTime: 111.111 ms
=======================================================
                                  glmark2 Score: 9
=======================================================



When Looking at the packet-manager , all packages related to Mali,Mfc or Samsung Firmware seem to be installed.
Also /var/log/Xorg.0.log or dmesg do not seem to comply about anything gpu related.
nogareth
 
Posts: 166
Joined: Sun Jan 25, 2015 3:40 am
languages_spoken: english , german
ODROIDs: XU3

Re: [OS] Debian Stretch

Unread postby meveric » Tue Apr 17, 2018 12:25 am

can you check if xf86-video-armsoc-odroid is installed as well?
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby nogareth » Tue Apr 17, 2018 12:30 am

Yep, should be installed:

Code: Select all
Statusinformationen werden eingelesen.... Fertig
xf86-video-armsoc-odroid ist schon die neueste Version (20180321-1.4.1-1+deb9).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


according to Xorg.conf it should be in use.

Code: Select all
# X.Org X server configuration file for xfree86-video-mali

Section "Device"
        Identifier      "Mali-Fbdev"
        Driver          "armsoc"
        Option          "NoG2D"                 "true"
        Option          "NoHardwareMouse"       "true"
        Option          "NoFlip"                "false"
        Option          "fbdev"                 "/dev/fb0"
        Option          "Debug"                 "false"
        Option          "DPMS"                  "false"
        Option          "Fimg2DExa"             "true"
        Option          "DRI2"                  "true"
        Option          "DRI2_PAGE_FLIP"        "false"
#       Option          "Fimg2DExaSolid"        "false"
#       Option          "Fimg2DExaCopy"         "false"
        Option          "Fimg2DExaComposite"    "true"
        Option          "SWcursorLCD"           "false"
EndSection

Section "Screen"
        Identifier   "Default Screen"
        Device       "Mali-Fbdev"
        DefaultDepth 24
EndSection

Section "DRI"
        Mode 0666
EndSection

nogareth
 
Posts: 166
Joined: Sun Jan 25, 2015 3:40 am
languages_spoken: english , german
ODROIDs: XU3

Re: [OS] Debian Stretch

Unread postby meveric » Tue Apr 17, 2018 12:40 am

hmm xorg.conf seems to be wrong.. the "NoG2D" option should be "false" not "true" as you're running on Kernel 4.14.
And instead the "NoFlip" option should be "true".
Can you do a apt-get install --reinstall xf86-video-armsoc-odroid and check these values again?
The installer is suppose to check the version of the Kernel either 4.x or 3.x and if 4.x is found should set NoG2D to false and NoFlip to true.
If that's not the case, please change them manually and try again (you need to reboot).
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby nogareth » Tue Apr 17, 2018 12:55 am

This didn't change anything , even if Purged before.

Code: Select all
root@brick:/etc/X11# apt-get install xf86-video-armsoc-odroid
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden NEUEN Pakete werden installiert:
  xf86-video-armsoc-odroid
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 33,5 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 143 kB Plattenplatz zusätzlich benutzt.
Holen:1 https://oph.mdrjr.net/meveric stretch/main armhf xf86-video-armsoc-odroid armhf 20180321-1.4.1-1+deb9 [33,5 kB]
Es wurden 33,5 kB in 1 s geholt (27,0 kB/s).
Vormals nicht ausgewähltes Paket xf86-video-armsoc-odroid wird gewählt.
(Lese Datenbank ... 209360 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../xf86-video-armsoc-odroid_20180321-1.4.1-1+deb9_armhf.deb ...
Entpacken von xf86-video-armsoc-odroid (20180321-1.4.1-1+deb9) ...
xf86-video-armsoc-odroid (20180321-1.4.1-1+deb9) wird eingerichtet ...
/var/lib/dpkg/info/xf86-video-armsoc-odroid.postinst: 5: [: xODROID-XU3: unexpected operator
/var/lib/dpkg/info/xf86-video-armsoc-odroid.postinst: 5: [: xODROID-XU3: unexpected operator
/var/lib/dpkg/info/xf86-video-armsoc-odroid.postinst: 70: [: xexynos: unexpected operator
Trigger für man-db (2.7.6.1-2) werden verarbeitet ...



Code: Select all

# X.Org X server configuration file for xfree86-video-mali

Section "Device"
        Identifier      "Mali-Fbdev"
        Driver          "armsoc"
        Option          "NoG2D"                 "true"
        Option          "NoHardwareMouse"       "true"
        Option          "NoFlip"                "false"
        Option          "fbdev"                 "/dev/fb0"
        Option          "Debug"                 "false"
        Option          "DPMS"                  "false"
        Option          "Fimg2DExa"             "true"
        Option          "DRI2"                  "true"
        Option          "DRI2_PAGE_FLIP"        "false"
#       Option          "Fimg2DExaSolid"        "false"
#       Option          "Fimg2DExaCopy"         "false"
        Option          "Fimg2DExaComposite"    "true"
        Option          "SWcursorLCD"           "false"
EndSection

Section "Screen"
        Identifier   "Default Screen"
        Device       "Mali-Fbdev"
        DefaultDepth 24
EndSection

Section "DRI"
        Mode 0666
EndSection

nogareth
 
Posts: 166
Joined: Sun Jan 25, 2015 3:40 am
languages_spoken: english , german
ODROIDs: XU3

Re: [OS] Debian Stretch

Unread postby meveric » Tue Apr 17, 2018 1:00 am

nogareth wrote:
Code: Select all
xf86-video-armsoc-odroid (20180321-1.4.1-1+deb9) wird eingerichtet ...
/var/lib/dpkg/info/xf86-video-armsoc-odroid.postinst: 5: [: xODROID-XU3: unexpected operator
/var/lib/dpkg/info/xf86-video-armsoc-odroid.postinst: 5: [: xODROID-XU3: unexpected operator
/var/lib/dpkg/info/xf86-video-armsoc-odroid.postinst: 70: [: xexynos: unexpected operator

Looks like there's an issue with the post installation script. I will look at it.
Please change the values as explained manually in the xorg.conf and restart the system, that should solve the issue at hand. I will fix the post installation script in the meantime.

Edit:
Found the issue.
The shebang of the postinst script is wrong.. it's /bin/sh while it should be /bin/bash.
I'll upload a new version.
Should be available in a few minutes.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby nogareth » Tue Apr 17, 2018 1:18 am

I*ve Changed the options manually and rebooted without any effect.

Code: Select all
martin@brick:/etc/X11$ cat xorg.conf
# X.Org X server configuration file for xfree86-video-mali

Section "Device"
        Identifier      "Mali-Fbdev"
        Driver          "armsoc"
        Option          "NoG2D"                 "false"
        Option          "NoHardwareMouse"       "true"
        Option          "NoFlip"                "true"
        Option          "fbdev"                 "/dev/fb0"
        Option          "Debug"                 "false"
        Option          "DPMS"                  "false"
        Option          "Fimg2DExa"             "true"
        Option          "DRI2"                  "true"
        Option          "DRI2_PAGE_FLIP"        "false"
#       Option          "Fimg2DExaSolid"        "false"
#       Option          "Fimg2DExaCopy"         "false"
        Option          "Fimg2DExaComposite"    "true"
        Option          "SWcursorLCD"           "false"
EndSection

Section "Screen"
        Identifier   "Default Screen"
        Device       "Mali-Fbdev"
        DefaultDepth 24
EndSection

Section "DRI"
        Mode 0666
EndSection



At least Samba is Lightning fast with the new Kernel!! (about 112Mb/s both ways, before ~80up ~60 down) :D
I guess you cant have everything at once ! ;)
Right now i have no time to dig further , i think ill try again tomorrow.
nogareth
 
Posts: 166
Joined: Sun Jan 25, 2015 3:40 am
languages_spoken: english , german
ODROIDs: XU3

Re: [OS] Debian Stretch

Unread postby meveric » Tue Apr 17, 2018 1:26 am

The new package is uploaded.. can you try installing it again?
Code: Select all
apt-get update
apt-get install xf86-video-armsoc-odroid
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby vnlevanduoc » Sun May 13, 2018 2:45 pm

I have a problem to ask

I am using Odroid HC1, with a 500GB hard drive

I installed LAMP on my system, and I want to transfer MySql data from memory card to 500Gb hard drive is not?

I have found many instructions on the network but then configured to re-enable the server it is not ....

Which you can do to help me.

Thank you!
vnlevanduoc
 
Posts: 7
Joined: Sun May 13, 2018 2:43 pm
languages_spoken: english

Re: [OS] Debian Stretch

Unread postby meveric » Sun May 13, 2018 5:34 pm

if you use the setup-odroid tool that is installed (make sure you have the latest version) you should be able to move the entire rootfs to the harddrive and use the SD card only for the Kernel.
This includes mysql as well, which is why you should stop mysql first before you move the rootfs.
If you only want mysql database on the HDD, you need to stop the database first and then copy /var/lib/mysql on your HDD and make a symlink to your harddrive, for this the HDD needs to be ext4 formatted.

The manual steps would look something like this (assuming your HDD is mounted under /mnt/hdd):
Code: Select all
systemctl stop mariadb.service
cp -av /var/lib/mysql /mnt/hdd/
mv /var/lib/mysql{,.bak}
ln -s /mnt/hdd/mysql /var/lib/mysql
systemctl start mariadb.service


But I guess copying the entire SD to the HDD and booting from there is easier.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby vnlevanduoc » Sun May 13, 2018 6:33 pm

Thank Meveric!

But let me ask what is

When I use "setup-odroid" to "rootfs" I can understand this

As all SD data will be transferred to HDD and SD will only do kernel work

So after I use "setup-odroid" and I install another software, it is installed in SD or in HDD?

p / s: Sorry I'm not good at english :)
vnlevanduoc
 
Posts: 7
Joined: Sun May 13, 2018 2:43 pm
languages_spoken: english

Re: [OS] Debian Stretch

Unread postby meveric » Sun May 13, 2018 8:46 pm

setup-odroid will move the content of the entire SD card to HDD.
Once you reboot, the system will be started from HDD and everything you install will be installed on the HDD and no longer on the SD card.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby vnlevanduoc » Mon May 14, 2018 10:47 am

Thank you
I try using "setup-odroid" and "rootfs"
But after completion => restart
The system is not going to be why?
vnlevanduoc
 
Posts: 7
Joined: Sun May 13, 2018 2:43 pm
languages_spoken: english

Re: [OS] Debian Stretch

Unread postby meveric » Mon May 14, 2018 1:55 pm

Hard to tell "why" without more information.
Did you update the system first to have the latest version of setup-odroid installed?
There was an update recently that should make the HDD process more solid.

You should be able to edit the boot.ini on the SD card. Make sure the bootrootfs entry has the following UUID:
Code: Select all
root=UUID=e139ce78-9841-40fe-8823-96a304a09859
that way it will return booting from SD card again and you can try again.

Or flash a new image and make sure to do a complete system update first:
Code: Select all
apt-get update && apt-get upgrade && apt-get dist-upgrade

then try again and see if it works with a new system.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby vnlevanduoc » Mon May 14, 2018 8:39 pm



Here is the Video steps I made with setup-odroid

You see what's wrong

Thank you
vnlevanduoc
 
Posts: 7
Joined: Sun May 13, 2018 2:43 pm
languages_spoken: english

Re: [OS] Debian Stretch

Unread postby meveric » Tue May 15, 2018 3:48 pm

ok, the process looked liked it finished normally.
Can you show me the setenv bootrootfs line in the boot.ini of the SD card?

I will try later today as well, as I luckily have a free HDD to test this with.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby vnlevanduoc » Tue May 15, 2018 4:59 pm

Is this line?
Code: Select all
setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=/dev/mapper/hdd-root rootwait ro fsck.repair=yes net.ifnames=0"
vnlevanduoc
 
Posts: 7
Joined: Sun May 13, 2018 2:43 pm
languages_spoken: english

Re: [OS] Debian Stretch

Unread postby meveric » Tue May 15, 2018 5:05 pm

Yes that's the line and the line looks fine.

So I currently can't tell you what could have gone wrong.
I will try it later today when I'm back from work with my spare HDD to see what could be the issue.

Do you have another Linux PC, or a PC to boot a live image from Linux from? So we can check what's on the HDD?
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby vnlevanduoc » Tue May 15, 2018 5:19 pm

Currently I do not have any computer running Linux
How do I check?
vnlevanduoc
 
Posts: 7
Joined: Sun May 13, 2018 2:43 pm
languages_spoken: english

Re: [OS] Debian Stretch

Unread postby meveric » Tue May 15, 2018 5:26 pm

If you have another PC with Linux you can plugin the harddrive and see if everything is on it as it should be.
But if you don't there's not much you can do.

As I said I will try looking into it later today.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby vnlevanduoc » Tue May 15, 2018 5:52 pm

I try changing
Code: Select all
setenv to bootrootfs

To
Code: Select all
setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro fsck.repair=yes net.ifnames=0"

My HC-1 has started ...

After booting up your hard drive, I see that you have an upgrade
Code: Select all
https://oph.mdrjr.net/meveric all / xu3 armhf linux-image-4.14.40


I can not upgrade
It reports a path error
vnlevanduoc
 
Posts: 7
Joined: Sun May 13, 2018 2:43 pm
languages_spoken: english

Re: [OS] Debian Stretch

Unread postby meveric » Wed May 16, 2018 8:24 pm

I checked further into the issue and found that the process of creating the partition, copying the data and such is working perfectly fine no issue on this end,
BUT there seems to be an issue with Debian Stretch itself.

When the system boots it starts the HDD normally but can't find the partition, this is due to missing LVM support in the Initramfs environment, which I do not understand.
This should be part of the initramfs, but apparently is not and all commands to activate LVM are not available at boot time and cause of this the harddrive can't be mounted.

I have to find out what I need to do to include LVM into initramfs (as it was the case on Debian Jessie).

Edit:
Ok found the issue :(
The initramfs-hook to recreate the uInitrd file is missing.. I will upload a new setup-odroid that will fix that.

Edit 2:
Ok problem fixed new package for setup-odroid is uploaded and should make sure that uInitrd is created correctly and with that harddrive should work fine.

Thanks for the report and helping fixing this 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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Thu May 17, 2018 2:22 am

Hi,

Does this image had support got USB3. I installed on a cloudshell 2 and the LCD does not show information but, when I connect a monitor I can see the information there.

Regards,
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Thu May 17, 2018 4:57 am

USB3 support is given through the Kernel and is a default that was always activated for many years by now.
To use the LCD Display you have to install the correct packages:
Code: Select all
apt-get install cloudshell-lcd cloudshell2-fan odroid-cloudshell


Please note, that the LCD is only used to display status informations not a desktop or command promt.

You can also follow the guide in the wiki on how to setup the cloudshell and the LCD for 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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Thu May 17, 2018 11:36 pm

Hi,

I followed both wiki and I am aware that the LCD is for information only, I made the observation the information show up when I connect a monitor.
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Fri May 18, 2018 5:48 am

Hmm I admit I haven't tried it with Debian Stretch yet, only Debian Jessie, but there shouldn't be much of an issue.
The output should always be on /dev/fb0 which is HDMI if you have HDMI connected at boot time. If you had no HDMI connected at boot, then /dev/fb0 should be the LCD display.

Try logging in via SSH and check for /dev/fb0 and /dev/fb1 do you have one or both?
Is the LCD running at all (back light on)?
What's the output of lsmod?
what does /etc/X11/xorg.conf look like?

The text is actually put to /dev/tty1 which is rendered on the first framebuffer (/dev/fb0).
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Fri May 18, 2018 7:59 am

Try logging in via SSH and check for /dev/fb0 and /dev/fb1 do you have one or both?

I have fb0

Is the LCD running at all (back light on)?

The LCD is black and the back light is on.

What's the output of lsmod?

    root@fileserver:~# lsmod
    Module Size Used by
    ipt_REJECT 16384 3
    nf_reject_ipv4 16384 1 ipt_REJECT
    xt_pkttype 16384 3
    nf_log_ipv4 16384 10
    nf_log_common 16384 1 nf_log_ipv4
    xt_LOG 16384 10
    xt_limit 16384 10
    xt_conntrack 16384 4
    iptable_filter 16384 1
    iptable_nat 16384 0
    nf_conntrack_ipv4 16384 5
    nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
    nf_nat_ipv4 16384 1 iptable_nat
    nf_nat 24576 1 nf_nat_ipv4
    xt_CT 16384 2
    nf_conntrack 102400 5 nf_conntrack_ipv4,xt_CT,xt_conntrack,nf_nat_ipv4,nf_nat
    libcrc32c 16384 2 nf_conntrack,nf_nat
    iptable_raw 16384 1
    iptable_mangle 16384 0
    sg 32768 0
    evdev 24576 0
    input_leds 16384 0
    w1_gpio 16384 0
    wire 24576 1 w1_gpio
    uio_pdrv_genirq 16384 0
    gpio_keys 20480 0
    uio 16384 1 uio_pdrv_genirq
    exynos_gpiomem 16384 0
    fbtft 36864 0
    ip_tables 24576 4 iptable_mangle,iptable_filter,iptable_raw,iptable_nat
    ipv6 380928 28
    sd_mod 40960 2
    uas 20480 0
    usb_storage 49152 2 uas
    scsi_mod 135168 4 sd_mod,usb_storage,uas,sg
    usbhid 45056 0
    extcon_usb_gpio 16384 0

what does /etc/X11/xorg.conf look like?

There is not xorg.conf file.

Regards,
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Fri May 18, 2018 1:58 pm

hmm I'm not sure, but it seems like the fb_ili9340 module is not loaded which is the driver for the LCD.

What does your /etc/modules look like?
Should look something like this:
Code: Select all
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

spi-s3c64xx
spidev
fbtft_device


Also make sure you have the file /etc/modprobe.d/odroid-cloudshell.conf
Code: Select all
options fbtft_device name=hktft9340 busnum=1 rotate=270 speed=35000000
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Sat May 19, 2018 3:36 am

Hi,

What does your /etc/modules look like?


Looks like

Code: Select all
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

spi_s3c64xx
fbtft_device
spidev


Also make sure you have the file /etc/modprobe.d/odroid-cloudshell.conf


This is what the file shows

Code: Select all
options fbtft_device name=hktft9340 busnum=1 rotate=270


Regards,
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Sat May 19, 2018 4:22 am

Only thing I see is a different order in the /etc/modules file.
I'm not 100% sure but I know that at least one of the SPIs needed to be loaded before the fbtft or else it would fail.. not sure if both needed to be loaded.

Have you checked /var/log/syslog or dmesg for any errors?
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Sat May 19, 2018 4:40 am

Hi,

I did not check, I am formatting a new SD card and will try again.

Regards,
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby aberrio » Sat May 19, 2018 4:56 am

Hi,

SOLVED

I did followed the WIKI this time. I did follow https://magazine.odroid.com/wp-content/ ... df#page=34 and did not work.

At least I have some information on the LCD now.

Regards,
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Sat May 19, 2018 5:17 am

Glad it's working :)
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Mon May 21, 2018 10:47 pm

Hi,

I am having an issues after

apt-get update && apt-get upgrade && apt-get dist-upgrade

When update to image 4.14.40 the system does not provide an IP. I followed the wiki an used the script. I can see blue and yellow light on the board but unable to have an IP not even rebooting after system upgrade.

Workaround used image 4.14.28 works like a charm transfer to hdd and doing an upgrade
Code: Select all
apt-get update && apt-get upgrade && apt-get dist-upgrade

getting the following error
Code: Select all
Unpacking linux-image-4.14-armhf-odroid-xu4 (4.14.40-1) over (4.14.28-1) ...
Preparing to unpack .../11-setup-odroid_0.0.1-40_all.deb ...
Unpacking setup-odroid (0.0.1-40) over (0.0.1-38) ...
Setting up linux-headers-4.14.40+ (4.14.40-20180515-xu4) ...
Setting up setup-odroid (0.0.1-40) ...
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- boot.ini   2016-01-15 23:46:10.000000000 +0100
|+++ boot.ini.new       2016-01-18 21:48:39.000000000 +0100
--------------------------
File to patch:

hitting Enter the finished and
Code: Select all
uname -r
showing
Code: Select all
4.14.40+


Would you please look why doing the upgrade at the begging the system does not provide an IP

Regards,
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Mon May 21, 2018 11:55 pm

hmm a patch for the boot.ini fails.. let me check although I wonder why it fails now as the patches weren't touch in a very long time.

can you show me the /boot/boot.ini file?

wonder if the file got damaged.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Tue May 22, 2018 12:07 am

Hi,

Do you want everything in the boot.ini?
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Tue May 22, 2018 12:37 am

Yes that would be good, that way I can compare and also try to figure out what patch failed.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Tue May 22, 2018 2:12 am

i,

Here we go! There were two more error after that.


Regards,
Attachments
boot.ini
(9.58 KiB) Downloaded 59 times
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Tue May 22, 2018 2:59 am

hmm on the first glance the boot.ini looks fine.. I'll try to manually install the setup-odroid package that is suppose to patch it and see what I can find out about the failing patch.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Tue May 22, 2018 4:35 am

Thank you, Please look also, into the issues why updateing to image 4.14.40+ first failed to provide an IP?

Regards,

AL
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Tue May 22, 2018 3:28 pm

I just tried a fresh image.
First boot with Kernel 4.14.28 everything booted up fine.
I did an update and setup-odroid was installed, no problems, especially not about not finding the boot.ini
Kernel 4.14.40 was installed normally as well, I rebooted and everything came up as expected.
Kernel 4.14.40 was running, I have a IP address and can do updates or installations.

The error above saying it can't find the boot.ini puzzles me. Did you change anything on the partition layout?
Normally the bootfs (mmcblk0p1) is mounted to /boot/ and this is where the patches are to be applied. Have you changed this so the bootfs is no longer mounted to /boot ?

I cannot recreate the issue above. I started with a clean image and the update went through without any issues.
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.
User avatar
meveric
 
Posts: 9208
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

Re: [OS] Debian Stretch

Unread postby aberrio » Tue May 22, 2018 10:06 pm

Hi,

I did not change anything outside the normal. This is what I did on HC2

First process
create a fresh sd boot device
boot the hc2
update upgrade dist-upgrade
reboot
make two partitions followed the wiki
hc2 boot from hdd both lights on
unable to detect ip with angry ip

Second process
Created a new sd card
update upgrade dist-upgrade
run the script
transfer system to the hdd
reboot
same problem both lights on nic port on and connected
no ip shows on angry ip

workaround

fresh cd
boot
just upgrade
transfer system to hdd
reboot , system boot from hdd have ip
upgrade and dist-upgrade
three errors press enter and process finished
reboot
system operational.

Does 4.14.40+ has any issue with HC2?

Regards,
aberrio
 
Posts: 23
Joined: Sat May 12, 2018 3:50 am
languages_spoken: english
ODROIDs: XU4,HC2

Re: [OS] Debian Stretch

Unread postby meveric » Tue May 22, 2018 11:44 pm

The Kernel is the same for all boards, it should be found as a XU4 I believe.
can you add board=${board_name} to the final boot args command.. looking like this in the boot.ini:
Code: Select all
# final boot args
setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor} board=${board_name} ${hdmi_phy_control}"


if you do a cat /proc/cmdline it should give you the content of the board_name... it should return as xu4.

aberrio wrote:Second process
Created a new sd card
update upgrade dist-upgrade
run the script
transfer system to the hdd
reboot
same problem both lights on nic port on and connected
no ip shows on angry ip


This process looks mostly ok, but I strongly suggest do do a reboot BEFORE you move everything to the HDD.
As the process to move everything to the HDD involves changing the initramfs which is used during booting.
But since you "use" a different initramfs before and after the boot, I'm not 100% sure this process finishes as expected (although it should).
Better boot Kernel 4.14.40 BEFORE you move the rootfs to the HDD.
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.
User avatar
meveric
 
Posts: 9208
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

PreviousNext

Return to Other OS

Who is online

Users browsing this forum: No registered users and 1 guest