Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Share here your ideas for new projects
User avatar
tobetter
Posts: 3903
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by tobetter » Thu Jun 06, 2019 3:24 pm

sha256 wrote:The only issue I've seen so far is that MATE (x11?) doesn't detect any monitor type. So there are no refresh rate options and the monitor display never fully shuts off from inactivity (it goes black due to screensaver, but the backlight remains on forever). It's no dealbreaker but it'd be nice to fix at some point. Just reporting.
Thanks, not able to promise I will fix it but I am also considering to make install desktop packages on installation. So...let me update it when I can resolve it.

"Tapatalk wishes you to have fun with ODROID"


sha256
Posts: 85
Joined: Sat Dec 12, 2015 8:01 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by sha256 » Wed Jun 12, 2019 1:38 am

Also just to warn anyone doing this that the N2 Audio Jack doesn't work under MATE/x11. It didn't cross my mind despite the x11 drivers thing that an audio jack would need a driver. I'm using a USB audio interface instead. ^ Thanks

User avatar
meveric
Posts: 10450
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 16 times
Been thanked: 127 times
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by meveric » Wed Jun 12, 2019 2:58 am

I have Audio Jack working under Debian Stretch on the N2 on MATE/X11 desktop. Requires some configuration of PulseAudio, but in the end it works 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
tobetter
Posts: 3903
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by tobetter » Wed Jun 12, 2019 8:08 am

meveric wrote:
Wed Jun 12, 2019 2:58 am
I have Audio Jack working under Debian Stretch on the N2 on MATE/X11 desktop. Requires some configuration of PulseAudio, but in the end it works fine.
That's the proof your distro image is better. :) Are you able to share the package?

sha256
Posts: 85
Joined: Sat Dec 12, 2015 8:01 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by sha256 » Wed Jun 12, 2019 9:12 am

Yeah that would be great (save me some usb power), there are simply no devices other than some system default in the sound preferences panel so I assumed a driver is missing. Tried to search but couldn't figure out how/if this related to the N2 Ubuntu audio instructions on the wiki (already lost the link) and had a usb interface just lying there.

User avatar
meveric
Posts: 10450
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 16 times
Been thanked: 127 times
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by meveric » Wed Jun 12, 2019 3:30 pm

tobetter wrote:
Wed Jun 12, 2019 8:08 am
meveric wrote:
Wed Jun 12, 2019 2:58 am
I have Audio Jack working under Debian Stretch on the N2 on MATE/X11 desktop. Requires some configuration of PulseAudio, but in the end it works fine.
That's the proof your distro image is better. :) Are you able to share the package?
There is no package or anything, you just need to configure it correctly:
viewtopic.php?p=258846#p258846
These users thanked the author meveric for the post:
tobetter (Wed Jun 12, 2019 4:17 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

sha256
Posts: 85
Joined: Sat Dec 12, 2015 8:01 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by sha256 » Sat Jun 15, 2019 4:21 am

Hey, only tried the audio jack but that actually worked, thanks

Code: Select all

sudo sed -r -i 's/^(### Load audio drivers statically.*)$/\### Load Odroid N2 drivers statically\
load-module module-alsa-sink device="hw:0,1" sink_name=analog_output\
load-module module-alsa-sink device="hw:0,0" sink_name=hdmi_output\
load-module module-combine sink_name=hdmi_analog slaves=hdmi_output,analog_output\
\n\1/' /etc/pulse/default.pa

sha256
Posts: 85
Joined: Sat Dec 12, 2015 8:01 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by sha256 » Sat Jul 06, 2019 5:27 pm

Fatal: Trying to mkfs.ext4 a 4TB USB3 disk encrypted with cryptsetup 2.1.0, kernel 4.9 - any settings (luks1 vs luks2, argon vs pkf, ...) - results in 3GB ram being sucked up by cryptsetup and within 10 seconds full system lockup and eventually system suicide, with nothing in dmesg or journalctl. Couldn't limit cryptsetup memory with cgroups or don't know how to do it right. Only able to handle smaller containers (why I did not notice)? mkfs.ext4 without cryptsetup fine.

I was able to format fine under Odroid's Ubuntu 18 on a XU4, cryptsetup 2.0.2, kernel 4.14.

Kernel incompatibility? Unless someone already knows the answer, I will use Ubuntu 18 because of time and fear. I was pleasantly surprised to find Ubuntu 18 already has limited luks2 support so I can live with it for a few more years. Unless there are more ideas I will try this again only once Odroid updates the kernel past 4.19 and 'stable' Debian installer. Thanks

User avatar
tobetter
Posts: 3903
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by tobetter » Sat Jul 06, 2019 6:08 pm

I am not sure whether or not it's kernel problem since you had success with 4.14 on XU4 while problem happens with 4.9 on N2. I am wondering if another Ubuntu disro on N2 4.9 kernel can make difference since they share the kernel but some kernel config is different.

Is the typo what you say 4.19?

"Tapatalk wishes you to have fun with ODROID"


sha256
Posts: 85
Joined: Sat Dec 12, 2015 8:01 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by sha256 » Sat Jul 06, 2019 7:30 pm

I meant: N2 = 4.9, XU4 = 4.14, but I may wait until Odroid release 4.19 or higher (5) because that matches the official Buster release.

I don't have much time/risk to try Ubuntu on N2 or Buster on XU4, so I relegate my N2 to being a VNC client and playing music and the XU4s for real jobs (put them on a UPS power for the whole battery thing).

It was worth a shot but for my needs this isn't ready. Eventually I'll replace it all with Debian (I'm not giving up). Appreciate the effort.

xpduyson
Posts: 3
Joined: Wed Sep 11, 2019 11:04 am
languages_spoken: english
ODROIDs: Odoird C2, Odroid N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by xpduyson » Wed Sep 11, 2019 11:50 am

Thanks for your effort! I tried the Odroid N2 Buster Netinst but it seem like the installer can't detect my Logitech Unifying Receiver so I unable to use the keyboard :\ The heartbeat led still blink so I think the installer image still boot fine.

Details of the unifying dongle:

Code: Select all

$ lsusb -D /dev/bus/usb/001/004

Device: ID 046d:c52b Logitech, Inc. Unifying Receiver
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x046d Logitech, Inc.
  idProduct          0xc52b Unifying Receiver
  bcdDevice           12.08
  iManufacturer           1 Logitech
  iProduct                2 USB Receiver
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           84
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          4 RQR12.08_B0030
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      59
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               8
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     148
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               2
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      93
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               2
Device Status:     0x0000
  (Bus Powered)

User avatar
tobetter
Posts: 3903
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by tobetter » Wed Sep 11, 2019 11:56 am

xpduyson wrote:
Wed Sep 11, 2019 11:50 am
Thanks for your effort! I tried the Odroid N2 Buster Netinst but it seem like the installer can't detect my Logitech Unifying Receiver so I unable to use the keyboard :\ The heartbeat led still blink so I think the installer image still boot fine.
Oh...sorry, can you try to use another keyboard for the installation? Since it would take long to rebuild the installer image. I believe your receiver would work with the stock Linux kernel after installing.

xpduyson
Posts: 3
Joined: Wed Sep 11, 2019 11:04 am
languages_spoken: english
ODROIDs: Odoird C2, Odroid N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by xpduyson » Wed Sep 11, 2019 12:35 pm

tobetter wrote:
Wed Sep 11, 2019 11:56 am
Oh...sorry, can you try to use another keyboard for the installation? Since it would take long to rebuild the installer image. I believe your receiver would work with the stock Linux kernel after installing.
Thanks for reply. Unfortunately I don't have any other keyboard nearby :( Will try again if I found an wired one.

User avatar
tobetter
Posts: 3903
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by tobetter » Wed Sep 11, 2019 12:51 pm

xpduyson wrote:
Wed Sep 11, 2019 12:35 pm
tobetter wrote:
Wed Sep 11, 2019 11:56 am
Oh...sorry, can you try to use another keyboard for the installation? Since it would take long to rebuild the installer image. I believe your receiver would work with the stock Linux kernel after installing.
Thanks for reply. Unfortunately I don't have any other keyboard nearby :( Will try again if I found an wired one.
Sorry to hear that, one thing you could try out is to change the boot.ini to install with Debian pressed.

1. Uncomment the line #33 to enable Debian preseed.
2. You can customize the basic information from line #20 to #24. One thing you have to be careful is not to use space in di_user_fullname.
3. You can select the storage where you want to install. By default, it's set to eMMC. If you uncomment line #29 or #31, the Debian will be installed to uSD or USB storage. For USB storage, if you do have more than 1 drive and not sure the device node of the target driver, dettach the drives except you are willing to install, that will become /dev/sda.
4. After modifying the file boot.ini and save, attach it to ODROID-N2. On next power cycle, the installer will start and will install to the target storage.

Code: Select all

 16 #
 17 # Debian Installer
 18 #
 19 setenv di_profile "buster/minimal.cfg"
 20 setenv di_hostname "buster"
 21 setenv di_domain "odroid.com"
 22 setenv di_user_fullname "WhoAmI"
 23 setenv di_username "odroid"
 24 setenv di_user_password "odroid"
 25 
 26 # eMMC
 27 setenv partman "partman-auto/disk=/dev/mmcblk0"
 28 # Micro SD card
 29 #setenv partman "partman-auto/disk=/dev/mmcblk1"
 30 # USB Storage
 31 #setenv partman "partman-auto/disk=/dev/sda"
 32 
 33 #setenv preseed "auto=true preseed/url=http://ppa.linuxfactory.or.kr/installer/prese    ed/${di_profile} netcfg/get_hostname=${di_hostname} netcfg/get_domain=${di_domain} p    asswd/user-fullname=${di_user_fullname} passwd/username=${di_username} passwd/user-p    assword=${di_user_password} passwd/user-password-again=${di_user_password} ${partman    } anna/no_kernel_modules=true"
 34 
 35 setenv bootargs "root=UUID=F7DC-5DDE ${condev} ${bootargs} ${videoargs} ${preseed}"
These users thanked the author tobetter for the post:
xpduyson (Wed Sep 11, 2019 3:14 pm)

xpduyson
Posts: 3
Joined: Wed Sep 11, 2019 11:04 am
languages_spoken: english
ODROIDs: Odoird C2, Odroid N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by xpduyson » Wed Sep 11, 2019 3:27 pm

tobetter wrote:
Wed Sep 11, 2019 12:51 pm

Sorry to hear that, one thing you could try out is to change the boot.ini to install with Debian pressed.
It worked! After installed, the HDMI output just a black screen (was fine during installation progress), but it still can be controlled via ssh and i'm gonna run it headless anyway so no big deal. Can confirm the unifying adapter work as it response to Ctrl-Alt-Del.

Thanks again for this netinstall. This is exactly what I needed :D

User avatar
tobetter
Posts: 3903
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Debian (Stretch/Buster) Netboot installer for ODROID-XU4/C2/N2

Unread post by tobetter » Wed Sep 11, 2019 3:33 pm

xpduyson wrote:
Wed Sep 11, 2019 3:27 pm
tobetter wrote:
Wed Sep 11, 2019 12:51 pm

Sorry to hear that, one thing you could try out is to change the boot.ini to install with Debian pressed.
It worked! After installed, the HDMI output just a black screen (was fine during installation progress), but it still can be controlled via ssh and i'm gonna run it headless anyway so no big deal. Can confirm the unifying adapter work as it response to Ctrl-Alt-Del.

Thanks again for this netinstall. This is exactly what I needed :D
Glad to hear it works, you are the first one who tried to preseed installation on ODROID-N2. :D
These users thanked the author tobetter for the post (total 2):
xpduyson (Wed Sep 11, 2019 3:44 pm) • odroid (Wed Sep 11, 2019 4:41 pm)

Post Reply

Return to “The Ideas”

Who is online

Users browsing this forum: No registered users and 1 guest