Debian (Stretch) Installer for ODROID-XU4/C2

Share here your ideas for new projects

Moderators: mdrjr, odroid, meveric

Debian (Stretch) Installer for ODROID-XU4/C2

Unread postby 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)
tobetter
 
Posts: 2238
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

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

Unread postby 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
mad_ady
 
Posts: 4215
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

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

Unread postby 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. :)
tobetter
 
Posts: 2238
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

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

Unread postby 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
rooted
 
Posts: 5297
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

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

Unread postby 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.
tobetter
 
Posts: 2238
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

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

Unread postby 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.
User avatar
rooted
 
Posts: 5297
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

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

Unread postby 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
moon.linux
 
Posts: 1124
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

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

Unread postby 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.
tobetter
 
Posts: 2238
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

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

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

Opps thanks for your tip: Yep thanks now it's installing the debain packages
moon.linux
 
Posts: 1124
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

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

Unread postby 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
tobetter
 
Posts: 2238
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1


Return to The Ideas

Who is online

Users browsing this forum: No registered users and 2 guests