Debian (Stretch) Installer for ODROID-XU4/C2

Share here your ideas for new projects
Post Reply
User avatar
tobetter
Posts: 2635
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by tobetter » Tue May 01, 2018 4:14 pm

I spent some time to hack the Debian Stretch Installer to run on ODROID-C2 and XU4, you can set up your ODROID boards with up to date packages and set up disk partitions and other stuff what Debian installer supports.

ODROID-XU3/4 ODROID-C2 Instruction to start Debian Installer
  • 1. The installer image size only about 30MB, you can flash it to uSD with dd or other flashing tools.
    2. After flashing the image, insert your uSD to the slot on your ODROID board
    3. Attach HDMI and USB keyboard to run Debian Installer menus
    4. Attach other storage devices (eMMC or USB storages) to the board
    5. After power-up, text-based Debian Installer screen will come to HDMI display
    6. You will be asked to setup partitions or user/password and packages to install
    7. After everything is done, Debian Installer will ask you to reboot your board then you will have new Debian Stretch as you set up
This installer is intended to set up Debian Stretch with upstream U-boot (2018.01) and Linux kernel (4.17-rc3), but not tested to run full desktop environment with OpenGL yet. I think this installer is ok to run the upstream kernel for the headless system, would keep updating the upstream kernel, possibly weekly basis, through my Launchpad.

If you are interested to use this installer and want to have other kernel configuration to add, please request to here or my Launchpad (https://launchpad.net/odroid-image)

User avatar
mad_ady
Posts: 5228
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1
Location: Bucharest, Romania
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by mad_ady » Tue May 01, 2018 5:06 pm

Nice. What did you do about selecting a video mode suitable for most users? Is the resolution autodetected, or did you force something like 640x480?
I think you should submit a short article/guide for odroid magazine

User avatar
tobetter
Posts: 2635
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by tobetter » Tue May 01, 2018 8:32 pm

mad_ady wrote:Nice. What did you do about selecting a video mode suitable for most users? Is the resolution autodetected, or did you force something like 640x480?
I think you should submit a short article/guide for odroid magazine
Thanks, currently it supports 1920x1280 only by default. I was thinking of spending some time to set 640x480 as normal installer but I didn't yet, it's worth to get some feedback for this before adding more hacks such add preseeding or U-boot config. I'm already kind of exhausted to make this. :)

User avatar
rooted
Posts: 6271
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by rooted » Wed May 02, 2018 6:39 am

Very nice, I will test this on my clouds hell ( <-- nice autocorrect) soon.

OMV has got to go!

User avatar
tobetter
Posts: 2635
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by tobetter » Wed May 02, 2018 6:47 am

rooted wrote:Very nice, I will test this on my clouds hell ( <-- nice autocorrect) soon.

OMV has got to go!
Thank you for your interesting, please let me know the problems you encounter later and please keep in mind that this is sort of trivial yet, not same as pre-built images. By the way, I've tried to install and set up OMV from the installation itself but seems Stretch doesn't like OMV. If there is a way to install OMV on Stretch, we can add it to installer menu.

User avatar
rooted
Posts: 6271
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by rooted » Wed May 02, 2018 8:00 am

I know mate, I only used OMV (Armbian) for convenience but it isn't convenient when things constantly break and it isn't done the Debian way but the way they (Armbian) think is correct. Makes fixing things hard.

Shouldn't confuse Armbian with OMV, but since it's the base OS I often do.

moon.linux
Posts: 1162
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by moon.linux » Wed May 02, 2018 1:21 pm

@tobetter I tried your c2 image and it failed to bootup.

Code: Select all

GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;
TE: 377235
no sdio debug board detected

BL2 Built : 11:44:26, Nov 25 2015.
gxb gfb13a3b-c2 - jcao@wonton

Board ID = 8
set vcck to 1100 mv
set vddee to 1050 mv
CPU clk: 1536MHz
DDR channel setting: DDR0 Rank0+1 same
DDR0: 2048MB(auto) @ 912MHz(2T)-13
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x000000b0
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x00009ef0
Sending bl30........................................OK.
Run bl30...
Load bl301 from SD, src: 0x0001c200, des: 0x01000000, size: 0x000018c0
Wait bl30...Done
Sending bl301.......OK.
Run bl301...
src: 0x00020200, des: 0x10100000, size: 0x00011130


--- UART initialized after reboot ---
[Reset cause: unknown]
[Image: unknown, amlogic_v1.1.3046-00db630-dirty 2016-08-31 09:24:14 tao.zeng@droid04]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: ef Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x00063340
be ad de d f0 ad ba ef be ad de not ES chip
[0.492095 Inits done]
secure task start!
high task start!
low task start!
NOTICE:  BL3-1: v1.0(debug):4d2e34d
NOTICE:  BL3-1: Built : 17:08:35, Oct 29 2015
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9


U-Boot 2018.01-00003-ge1065cb8c6-dirty (Mar 17 2018 - 03:37:31 +0000) odroid-c2

DRAM:  2 GiB
MMC:   mmc@72000: 0, mmc@74000: 1
Using default environment

In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
566 bytes read in 2 ms (276.4 KiB/s)
## Executing script at 1f000000
reading /install.a64/uInitrd
12745767 bytes read in 558 ms (21.8 MiB/s)
reading /install.a64/uImage
17809984 bytes read in 771 ms (22 MiB/s)
reading /install.a64/meson-gxbb-odroidc2.dtb
22745 bytes read in 4 ms (5.4 MiB/s)
## Booting kernel from Legacy Image at 01080000 ...
   Image Name:
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:    17809920 Bytes = 17 MiB
   Load Address: 01080000
   Entry Point:  01080000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    12745703 Bytes = 12.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   Loading Kernel Image ... OK
   Loading Ramdisk to 7d343000, end 7df6abe7 ... OK
   Loading Device Tree to 000000007d33a000, end 000000007d3428d8 ... OK

Starting kernel ...

[    0.573340] meson_gx_pwrc_vpu c8100000.sys-ctrl:power-controller-vpu: failed to get reset lines
[    1.754557] phy phy-c0000000.phy.0: phy poweron failed --> -22

User avatar
tobetter
Posts: 2635
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by tobetter » Wed May 02, 2018 1:25 pm

moon.linux wrote:@tobetter I tried your c2 image and it failed to bootup.

Code: Select all

GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;
TE: 377235
no sdio debug board detected

BL2 Built : 11:44:26, Nov 25 2015.
gxb gfb13a3b-c2 - jcao@wonton

Board ID = 8
set vcck to 1100 mv
set vddee to 1050 mv
CPU clk: 1536MHz
DDR channel setting: DDR0 Rank0+1 same
DDR0: 2048MB(auto) @ 912MHz(2T)-13
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x000000b0
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x00009ef0
Sending bl30........................................OK.
Run bl30...
Load bl301 from SD, src: 0x0001c200, des: 0x01000000, size: 0x000018c0
Wait bl30...Done
Sending bl301.......OK.
Run bl301...
src: 0x00020200, des: 0x10100000, size: 0x00011130


--- UART initialized after reboot ---
[Reset cause: unknown]
[Image: unknown, amlogic_v1.1.3046-00db630-dirty 2016-08-31 09:24:14 tao.zeng@droid04]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: ef Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x00063340
be ad de d f0 ad ba ef be ad de not ES chip
[0.492095 Inits done]
secure task start!
high task start!
low task start!
NOTICE:  BL3-1: v1.0(debug):4d2e34d
NOTICE:  BL3-1: Built : 17:08:35, Oct 29 2015
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9


U-Boot 2018.01-00003-ge1065cb8c6-dirty (Mar 17 2018 - 03:37:31 +0000) odroid-c2

DRAM:  2 GiB
MMC:   mmc@72000: 0, mmc@74000: 1
Using default environment

In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
566 bytes read in 2 ms (276.4 KiB/s)
## Executing script at 1f000000
reading /install.a64/uInitrd
12745767 bytes read in 558 ms (21.8 MiB/s)
reading /install.a64/uImage
17809984 bytes read in 771 ms (22 MiB/s)
reading /install.a64/meson-gxbb-odroidc2.dtb
22745 bytes read in 4 ms (5.4 MiB/s)
## Booting kernel from Legacy Image at 01080000 ...
   Image Name:
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:    17809920 Bytes = 17 MiB
   Load Address: 01080000
   Entry Point:  01080000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    12745703 Bytes = 12.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   Loading Kernel Image ... OK
   Loading Ramdisk to 7d343000, end 7df6abe7 ... OK
   Loading Device Tree to 000000007d33a000, end 000000007d3428d8 ... OK

Starting kernel ...

[    0.573340] meson_gx_pwrc_vpu c8100000.sys-ctrl:power-controller-vpu: failed to get reset lines
[    1.754557] phy phy-c0000000.phy.0: phy poweron failed --> -22
Probably you should check your HDMI display if it shows 1920x1080 resolution screen. Debian installer doesn't proceed in serial console at all.

moon.linux
Posts: 1162
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by moon.linux » Wed May 02, 2018 2:03 pm

Opps thanks for your tip: Yep thanks now it's installing the debain packages

User avatar
tobetter
Posts: 2635
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by tobetter » Wed May 16, 2018 8:31 pm

I've updated kernel package with v4.14-rc5. If you have Debian Stretch installed with my installer, please do run two apt commands and reboot your ODROID-C2 or ODROID-XU4.

Code: Select all

$ sudo apt update
$ sudo apt upgrade
If you like to change the kernel configuration, please post your request to here.
https://answers.launchpad.net/odroid-image

andrewufrank
Posts: 31
Joined: Sun Nov 15, 2015 6:16 pm
languages_spoken: english
ODROIDs: xu4
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by andrewufrank » Tue Oct 23, 2018 3:25 am

I tried a download of your image today, but the installation failed with "no kernel found on this mirror". Could you indicate on which mirror one of the required kernels are found or update the image to include an available kernel.
I like the idea to use the standard debian installer - feels familiar. Interesting approach!
andrew

User avatar
tobetter
Posts: 2635
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by tobetter » Thu Feb 07, 2019 1:07 am

Somehow my server was ruined and have not been working for a while. So I've rebuilt the server and correct the build farm to run daily basis build and keep the installer up-to-date.

You can download the Debian Stretch Installer from "http://ppa.linuxfactory.or.kr/installer/", you can flash them to MicroSD using 'dd' command or 'Etcher'.
For ODROID-XU4 : http://ppa.linuxfactory.or.kr/installer ... _armhf.img
For ODROID-C2 : http://ppa.linuxfactory.or.kr/installer ... _arm64.img

Once the installation is started, you would be asked to select a kernel version to install. Here, you can select 'linux-image-odroid-upstream' package. This package will install the recent kernel uploaded to my PPA server. The current kernel version is vanilla Linux kernel 5.0.0-rc5.

For ODROID-XU4, there is another upstream package built from Memeka's branch, this can be installed after installation is completed.

Please note that for the installation, you need to connect HDMI display and USB keyboard.

User avatar
tobetter
Posts: 2635
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: Debian (Stretch) Installer for ODROID-XU4/C2

Unread post by tobetter » Sun Feb 17, 2019 10:40 pm

Debian (Stretch) Netinst for ODROID-N2 is ready

You can download the installer image from the link, please do flash the image to your Micro SD card to boot from it.
http://ppa.linuxfactory.or.kr/installer ... _arm64.img
  • Known issues
    - The installer must be boot from Micro SD and must be attached even after the installation is completely finished. This is because the installer erases the boot loader if root file system is the same as the storage where the Debian installer is copied to. I expected to replace the bootloader from Micro SD or eMMC. But it's not finished yet.
    - The /boot partition must be selected and configured to be in eMMC or Micro SD even though the whole system is being installed to USB storage. This is because of the lack of U-boot feature that the current U-boot does not load the boot script 'boot.ini' or 'boot.scr' from the USB storage by default.
    - Other than this, all installation steps are the same as genuine Debian Netboot Installer.
  • Before the installation
    - USB keyboard and HDMI display must be attached, USB-serial port is not required.
    - Ethernet cable must be attached since this installer installs and update the packages through the network only. After the installation is done, all system will have up-to-date packages.
    - You can select packages as original Debian installer, but graphics accelerator or multimedia packages are not yet supported.
    - The kernel version of ODROID-N2 will keep updating from Hardkernel's kernel branch and can add a kernel flavor (kvm or headless) build if requested.
    - For the kernel version, the current version is based on 4.9 and upstream kernel is not ready yet.
Please note that this is the unofficial Debian installer image which has the hack for ODROID boards and is built to install the Debian Stretch natively on the ODROID boards. Once your ODROID is installed with this Image, your system will work like a regular Debian system and some Debian packages will be updated - especially Linux kernel packages - from my personal package repository ppa.linuxfactory.or.kr and most of the packages will be updated from genuine Debian repositories.

Post Reply

Return to “The Ideas”

Who is online

Users browsing this forum: No registered users and 1 guest