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

Share here your ideas for new projects
User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 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: 10578
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)
Has thanked: 21 times
Been thanked: 167 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: 4265
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: 59 times
Been thanked: 235 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: 10578
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)
Has thanked: 21 times
Been thanked: 167 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: 4265
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: 59 times
Been thanked: 235 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: 7
Joined: Wed Sep 11, 2019 11:04 am
languages_spoken: english
ODROIDs: Odoird C2, Odroid N2
Has thanked: 6 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: 4265
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: 59 times
Been thanked: 235 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: 7
Joined: Wed Sep 11, 2019 11:04 am
languages_spoken: english
ODROIDs: Odoird C2, Odroid N2
Has thanked: 6 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: 4265
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: 59 times
Been thanked: 235 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: 7
Joined: Wed Sep 11, 2019 11:04 am
languages_spoken: english
ODROIDs: Odoird C2, Odroid N2
Has thanked: 6 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: 4265
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: 59 times
Been thanked: 235 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)

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

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

Unread post by xpduyson » Thu Sep 26, 2019 9:58 am

Hi, is there anyway to disable a single UAS drive with your odroidn2's buster? I have a 2.5" 5TB Seagate and this keep happening every couple of hours:

Code: Select all

Sep 25 19:02:21 odroidn2 kernel: [42406.772223@0] sd 2:0:0:0: [sdc] tag#29 uas_eh_abort_handler 0 uas-tag 30 inflight: CMD OUT 
Sep 25 19:02:21 odroidn2 kernel: [42406.772234@0] sd 2:0:0:0: [sdc] tag#29 CDB: Write(16) 8a 00 00 00 00 01 b3 c5 3f f0 00 00 00 08 00 00
Sep 25 19:02:21 odroidn2 kernel: [42406.772271@0] xhci-hcd xhci-hcd.0.auto: ERROR Transfer event for disabled endpoint or incorrect stream ring
Sep 25 19:02:21 odroidn2 kernel: [42406.781523@0] xhci-hcd xhci-hcd.0.auto: @00000000cf612e00 00000000 00000000 1b000000 03088001
...

Sep 25 19:02:21 odroidn2 kernel: [42407.285083@4] scsi host2: uas_eh_bus_reset_handler start
Sep 25 19:02:21 odroidn2 kernel: [42407.285115@0] xhci-hcd xhci-hcd.0.auto: ERROR Transfer event for disabled endpoint or incorrect stream ring
Sep 25 19:02:21 odroidn2 kernel: [42407.294757@0] xhci-hcd xhci-hcd.0.auto: @00000000cf6121c0 00000000 00000000 1b000000 03058000
..

Sep 25 19:02:22 odroidn2 kernel: [42407.776439@0] IRQRatio___ERR.irq:23 ratio:99
Sep 25 19:02:22 odroidn2 kernel: [42407.781480@0] t_isr:997  t_total:1004, cnt:55
Sep 25 19:02:22 odroidn2 kernel: [42407.786536@0] xhci-hcd xhci-hcd.0.auto: ERROR Transfer event for disabled endpoint or incorrect stream ring
Sep 25 19:02:22 odroidn2 kernel: [42407.795703@0] xhci-hcd xhci-hcd.0.auto: @00000000cf612520 00000000 00000000 1b000000 03058000
Sep 25 19:02:22 odroidn2 kernel: [42407.888360@0] usb 2-1.4: reset SuperSpeed USB device number 5 using xhci-hcd
Details of the drive:

Code: Select all

Bus 002 Device 005: ID 0bc2:ac35 Seagate RSS LLC
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.20
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x0bc2 Seagate RSS LLC
  idProduct          0xac35
  bcdDevice           17.07
  iManufacturer           1 Seagate
  iProduct                2 BUP Portable
  iSerial                 3 00000000xxxxxx
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0079
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              896mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        Command pipe (0x01)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        MaxStreams             32
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               7
        MaxStreams             32
        Data-out pipe (0x04)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000f0e
      BESL Link Power Management (LPM) Supported
    BESL value     3840 us
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat          32 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
Here are everything I tried:

1) Put /etc/modprobe.d/quirks.conf with options usb-storage quirks=0bc2:ac35:u, and run sudo update-initramfs -u, nothing changes after reboot.

2) Edit boot.scr. But everytime I tried to recompile it with mkimage, even with the original context, the blue led stay still and the whole system refuse to boot.

Code: Select all

trings boot.scr > sudo boot.ini
mkimage -C none -A arm64 -T script -d boot.ini boot.scr
I suspect I did something wrong the mkimage, because this is my first time working with mainline uboot. Funny thing is, the system boot just fine without boot.scr :D

3) I tried other distro that have boot.ini like armbian, meveric's buster, arch linux. Adding usb-storage.quirks=0bc2:ac35:u to bootargs works, but all of them still have USB/Ethernet problems. Ether I/O completely hangs after a while, eth0 reset to 100mbps, or just refuse to boot after the hangs.

That's all. For now I'm back to your Buster and let the drive reset itself, because this is the most stable state I have. Any help is appreciated!

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

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

Unread post by tobetter » Thu Sep 26, 2019 11:17 am

@xpduyon, can you check if your Buster has the package bootscript-odroidn2?

You can edit another file to change the bootargs instead of boot.scr directly. For example, open the file /usr/share/flash-kernel/ubootenv.d/S99misc and add single line setenv bootargs "${bootargs} usb-storage.quirks=0bc2:ac35:u" which you want to affect to kernel command line. So it would be like this.

Code: Select all

$ cat /usr/share/flash-kernel/ubootenv.d/S99misc
setenv bootargs "${bootargs} usb-storage.quirks=0bc2:ac35:u"
In order to apply the change to boot.scr after changing, please do run update-bootscript which will cover all step you did from 1) to 3). You can now reboot if there is no error.

Code: Select all

$ sudo update-bootscript
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.
$ sudo reboot
After reboot, your kernel will run with this command line.

Code: Select all

$ cat /proc/cmdline 
  console=ttyS0,115200n8 root=UUID=0ad15fdd-c94e-4683-9154-4df8887067b0 rootwait ro quiet max_freq_a73=180
0 max_freq_a53=1896 hdmimode=1080p60hz cvbsmode=480cvbs cvbscable=0 usb-storage.quirks=0bc2:ac35:u
Please do try it out and make sure that you have updated the kernel with the latest one.
These users thanked the author tobetter for the post:
xpduyson (Thu Sep 26, 2019 2:05 pm)

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

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

Unread post by xpduyson » Thu Sep 26, 2019 2:11 pm

Thanks for the solution. I have put the file inside the 4.9.y to make it work:

Code: Select all

sid@odroidn2:~$ cat /usr/share/flash-kernel/ubootenv.d/4.9.y/S99misc
setenv bootargs "${bootargs} usb-storage.quirks=0bc2:ac35:u"
And successfully disabled UAS for the drive!

Code: Select all

[  +0.125544] usb 2-1.4: new SuperSpeed USB device number 5 using xhci-hcd
[  +0.020821] usb 2-1.4: New USB device found, idVendor=0bc2, idProduct=ac35
[  +0.000006] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000003] usb 2-1.4: Product: BUP Portable
[  +0.000002] usb 2-1.4: Manufacturer: Seagate
[  +0.000003] usb 2-1.4: SerialNumber: 00000000xxxx
[  +0.000900] usb 2-1.4: UAS is blacklisted for this device, using usb-storage instead
[  +0.000048] usb 2-1.4: UAS is blacklisted for this device, using usb-storage instead

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

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

Unread post by tobetter » Thu Sep 26, 2019 4:45 pm

xpduyson wrote:
Thu Sep 26, 2019 2:11 pm
Thanks for the solution. I have put the file inside the 4.9.y to make it work:

Code: Select all

sid@odroidn2:~$ cat /usr/share/flash-kernel/ubootenv.d/4.9.y/S99misc
setenv bootargs "${bootargs} usb-storage.quirks=0bc2:ac35:u"
And successfully disabled UAS for the drive!

Code: Select all

[  +0.125544] usb 2-1.4: new SuperSpeed USB device number 5 using xhci-hcd
[  +0.020821] usb 2-1.4: New USB device found, idVendor=0bc2, idProduct=ac35
[  +0.000006] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000003] usb 2-1.4: Product: BUP Portable
[  +0.000002] usb 2-1.4: Manufacturer: Seagate
[  +0.000003] usb 2-1.4: SerialNumber: 00000000xxxx
[  +0.000900] usb 2-1.4: UAS is blacklisted for this device, using usb-storage instead
[  +0.000048] usb 2-1.4: UAS is blacklisted for this device, using usb-storage instead
Oh...right...I made an update to support 4.9.y and upstream kernel. Good to know it works.

FYI, in case if you want to try out upstream kernel you can install another package linux-image-odroid-upstream which will install Linux kernel 5.3.0. Please note that the upstream kernel is not tested enough and many features would not be supported.

Code: Select all

$ sudo apt update
$ sudo apt install linux-image-odroid-upstream
Also, you can install more than kernel versions and can switch between them.

For example, I have installed many version like this and currently running with 5.3 kernel.

Code: Select all

$ linux-version list 
4.9.170-odroidn2-arm64
4.9.180-odroidn2-arm64
4.9.182-odroidn2-arm64
4.9.185-odroidn2-arm64
4.9.187-odroidn2-arm64
4.9.190-odroidn2-arm64
5.3.0-odroid-upstream-arm64

$ uname -a
Linux debian 5.3.0-odroid-upstream-arm64 #1 SMP PREEMPT Wed, 18 Sep 2019 16:28:10 +0000 aarch64 GNU/Linux
If you are willing to switch to 4.9.190 kernel, please run flash-kernel command with the package name. Next reboot, you will run with 4.9.190 kernel while 5.3 kernel is installed and also can switch back again. Since this is the trial feature for ODROID, it would be good idea to make a copy of /boot/boot.scr before rebooting in case of failure with new kernel.

Code: Select all

$ sudo flash-kernel --force 4.9.190-odroidn2-arm64
[sudo] password for tobetter: 
Using DTB: amlogic/meson64_odroidn2.dtb
Installing /usr/lib/linux-image-4.9.190-odroidn2-arm64/amlogic/meson64_odroidn2.dtb into /boot/dtbs/4.9.19
0-odroidn2-arm64/amlogic/meson64_odroidn2.dtb
Taking backup of meson64_odroidn2.dtb.
Installing new meson64_odroidn2.dtb.
flash-kernel: forcing install of 4.9.190-odroidn2-arm64 instead of 5.3.0-odroid-upstream-arm64.
flash-kernel: WARNING: Installing any new kernel package might override this.
flash-kernel: installing version 4.9.190-odroidn2-arm64
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.
These users thanked the author tobetter for the post:
xpduyson (Thu Sep 26, 2019 5:36 pm)

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

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

Unread post by xpduyson » Thu Sep 26, 2019 6:35 pm

@tobetter The kernel switching is pretty useful. Two days ago I tried upstream and have redownload and install the whole kernel when I wanted to switch back to 4.9, wish I know this before.

Gonna try upstream again after a while, when I feel adventurous. Still very happy with 4.9 at the moment :D

artoxxx
Posts: 14
Joined: Sat Sep 28, 2019 4:24 am
languages_spoken: english
ODROIDs: HC2
Has thanked: 0
Been thanked: 2 times
Contact:

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

Unread post by artoxxx » Wed Oct 02, 2019 1:08 am

Hello,

Im using the Debian Netinstall ISO on my Odroid HC2.

I'm trying to install Linux headers but it's not working... See the following output I got :

Code: Select all

apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-5.3.0-odroid-upstream-armmp : Depends: linux-kbuild-5.3 but it is not installable
E: Unable to correct problems, you have held broken packages.
Here is my kernel :

Code: Select all

# uname -r
5.3.0-odroid-upstream-armmp
I tried this :

Code: Select all

# apt install linux-headers-5.3.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-5.3.0-rc7-all' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-rc8-all-armhf' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-rc8-odroid-upstream-armmp' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-rc8-common' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-all' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-common' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-rc8-all' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-all-armhf' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-rc7-all-armhf' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-odroid-upstream-armhf' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-odroid-upstream-armmp' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-rc7-common' for regex 'linux-headers-5.3.0'
Note, selecting 'linux-headers-5.3.0-rc7-odroid-upstream-armmp' for regex 'linux-headers-5.3.0'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-5.3.0-odroid-upstream-armmp : Depends: linux-kbuild-5.3 but it is not installable
 linux-headers-5.3.0-rc7-odroid-upstream-armmp : Depends: linux-kbuild-5.3 but it is not installable
 linux-headers-5.3.0-rc8-odroid-upstream-armmp : Depends: linux-kbuild-5.3 but it is not installable
E: Unable to correct problems, you have held broken packages.
Can anyone help me ? I'm a linux beginner
Thanks

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

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

Unread post by tobetter » Wed Oct 02, 2019 1:37 am

@artoxxx, for some reason *-kbuild was not able to be built and I have not investigated to fix it yet. If you need the source code of Linux v5.3 for ODROID-N2, please visit the link and you can use git clone ... and build it.

artoxxx
Posts: 14
Joined: Sat Sep 28, 2019 4:24 am
languages_spoken: english
ODROIDs: HC2
Has thanked: 0
Been thanked: 2 times
Contact:

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

Unread post by artoxxx » Wed Oct 02, 2019 2:01 am

tobetter wrote:
Wed Oct 02, 2019 1:37 am
@artoxxx, for some reason *-kbuild was not able to be built and I have not investigated to fix it yet. If you need the source code of Linux v5.3 for ODROID-N2, please visit the link and you can use git clone ... and build it.
Well... I need the kernel headers to compile this driver : https://github.com/Mange/rtl8192eu-linux-driver
Which link are you talking about ?

PS : I will write a topic in the "Projects" page on this forum for my project : Creating a RuTorrent interface + trafic redirection through Tor + FTP access for the torrents

airman
Posts: 1
Joined: Tue Nov 19, 2019 2:17 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

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

Unread post by airman » Tue Nov 19, 2019 9:18 am

It would be fantasic to have v9fs (Plan 9 9p remote filesystem protocol) in the odroidn2-arm64 kernel. Is that possible?

Post Reply

Return to “The Ideas”

Who is online

Users browsing this forum: No registered users and 2 guests