XU4 - install and run Hass.io from eMMC

Post Reply
johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

Hi

Is it possible to run the XU4 image of Hass.io from the eMMC? If so how?

Thanks
Last edited by johnjoemorgan on Sun Mar 24, 2019 5:46 pm, edited 1 time in total.

igorpec
Posts: 642
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 32 times
Been thanked: 83 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by igorpec »

johnjoemorgan wrote:
Wed Mar 20, 2019 2:37 pm
Hi

Is it possible to run the XU4 image of Hass.io from the eMMC? Is so how?

Thanks
I have no idea about the state of Hass.io image ... but as you were already told - probably the best installation of hass.io will be running their Docker instance.

Very simple:

1. Download image and burn directly to eMMC. Boot from eMMC and do first run, create user, ... (if you don't have eMMC card reader, boot from SD card and use nand-sata-install utility ... after transfer is done, power down, switch to eMMC boot and proceed booting from eMMc)
2. Run armbian-config -> software -> 3rd party -> Hass.io
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

The other thread was asking a similar but different question .. but noted.

"Download image and burn directly to eMMC." Would you have a link on hand? Will have another bash at it tomorrow

igorpec
Posts: 642
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 32 times
Been thanked: 83 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by igorpec »

johnjoemorgan wrote:
Wed Mar 20, 2019 10:37 pm
The other thread was asking a similar but different question .. but noted.

"Download image and burn directly to eMMC." Would you have a link on hand? Will have another bash at it tomorrow
You don't have this?
Image

https://www.hardkernel.com/shop/emmc-mo ... s-upgrade/

Image(s): https://www.armbian.com/odroid-xu4/
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

mad_ady
Posts: 8320
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 434 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by mad_ady »

When burning images it's best to use etcher.
I'll give the official images a try hopefully tomorrow or on friday...

johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

I have the Hardkernel burner and use Etcher but can't for love nor money find the Docker Image for XU4/Docker/Hass.io

Maybe I'm 'search blind' ;-0

johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

LOL - OK So I need my eyes tested. I have tried the Stretch and it failed. Can't remember the reason right now but will go for a clean (chip and brain) install again tomorrow

Thanks again guys

igorpec
Posts: 642
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 32 times
Been thanked: 83 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by igorpec »

I have tried the Stretch and it failed.
armbian + apt update and upgrade + armbian-config -> software -> softy -> Hass.io (you don't need to install docker separately. everything is done in this process)

Once installed, you need to wait some time before Hass service is up. Several minutes.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

@iporpec

**Many thanks** - followed your instructions and everything is installed.

Docker (and so Hassio) are on IP 172.17.0.1

I have tried to find info on this but, how do we get that to 192.168.x.x

igorpec
Posts: 642
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 32 times
Been thanked: 83 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by igorpec »

johnjoemorgan wrote:
Thu Mar 21, 2019 8:31 pm
@iporpec

**Many thanks** - followed your instructions and everything is installed.

Docker (and so Hassio) are on IP 172.17.0.1

I have tried to find info on this but, how do we get that to 192.168.x.x
Service becomes available after several minutes on http://192.158.x.x:8123 Did you wait long enough?
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

Yep It was running for a few hours last night while I tried to figure things out.

Network info is:

docker0 - 172.17.0.1
enx001e06366682 - 192.168.0.21
hassio - 172.30.32.1

==============

So just this second I had to turn on some lights connected to my current set up, I noticed that the URL was:

192.168.0.5:8123/lovelace/default_view

I had been trying this for the XU4

192.168.0.21:8123

trying

192.168.0.5:8123/lovelace/default_view

which resolved to

http://192.168.0.21:8123/frontend_es5/onboarding.html

And that sound you heard? That was my palm hitting my forehead!

So, forgoing my newbie mistakes, the process is practically effortless and recommended against the other installs I've been trying and reading about

@iporpec ... You're on my Christmas card list mate! Thanks!

I'll start migrating from my old (Cubie Truck) install next week and report back on the performance/stability differences

igorpec
Posts: 642
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 32 times
Been thanked: 83 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by igorpec »

Hehe, you are welcome.
the process is practically effortless
Exactly :) That's why I was surprised you have reported problems at first.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

OK Found a problem straight off.

No add-ons are available and I see the error:

“[hassio.arch] Can’t detect underlay machine type!”

The solutions is here:

https://community.home-assistant.io/t/s ... on/83636/5

But as we pulled the image from a 'built-in' script how can we apply that? Is there another way?

I'll be needing MQTT, LetsEncrpt etc.

NOTE - I did update to the latest Hass.io version but that should not have created this problem. Should I reinstall?

johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

**Update** got some time today to come back to this.

Installed Armbian (clean install from flash)

Image(s): https://www.armbian.com/odroid-xu4/

then ref:

https://github.com/home-assistant/hassi ... all-hassio

Installed/checked:

docker-ce
bash
jq
curl
avahi-daemon
dbus
apparmor-utils
network-manager

Then:

Run as root (sudo su):

curl -sL https://raw.githubusercontent.com/home- ... io_install | bash -s -- -m odroid-xu

****

This now gives us a working Hassio with add-ons

mad_ady
Posts: 8320
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 434 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by mad_ady »

I tried to run the hass.io image on an orange emmc and you're right - it fails to boot. Something is broken in their u-boot:

Code: Select all

MMC Device 0 (eMMC): 29.1 GiB
Info eMMC rst_n_func status = enabled
Card did not respond to voltage select!
mmc_init: -95, time 11
*** Warning - bad CRC, using default environment

Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
** Invalid partition 2 **


Any ideas where to report the issue for hass.io?

mad_ady
Posts: 8320
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 434 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by mad_ady »


millerce
Posts: 1
Joined: Tue Jun 25, 2019 10:38 am
languages_spoken: english
ODROIDs: HC1, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by millerce »

OK, here's the problem as I see it. The Hass.io images are flashed with etcher- doing so kills everything on the eMMC including the hidden boot partition. From what I can see, the XU3/XU4 eMMC Bootloader Recovery also kills everything on the eMMC. Is there a tool out there that can flash an image to a partition?

mad_ady
Posts: 8320
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 434 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by mad_ady »

Etcher (and dd) can't normally write to the hidden emmc blocks.

igorpec
Posts: 642
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 32 times
Been thanked: 83 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by igorpec »

millerce wrote:
Sat Jun 29, 2019 11:55 pm
OK, here's the problem as I see it. The Hass.io images are flashed with etcher- doing so kills everything on the eMMC including the hidden boot partition. From what I can see, the XU3/XU4 eMMC Bootloader Recovery also kills everything on the eMMC. Is there a tool out there that can flash an image to a partition?
You can restore boot loader (if this is the problem???) by booting armbian form SD card. Than you ran nand-sata-install utility and update boot loader. Then install system to it or unplug eMMC and flash OS directly to it.

In case this doesn't work, there could be an hw issue.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

cseyler
Posts: 1
Joined: Mon Sep 17, 2018 8:11 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by cseyler »

I've the same issue.

If I restore the emmc with the SD Card + emmc procedure, the odroid boot correclty to android. But once i write the hassio image either with etcher or win32image (ordoid version), the odroid does not boot anymore (the led stay blue).
The hassio image seems overwrite the emmc bootloader, adn the recovery procedure overwite the entire image.

igorpec
Posts: 642
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 32 times
Been thanked: 83 times
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by igorpec »

cseyler wrote:
Sat Sep 14, 2019 6:44 am
The hassio image seems overwrite the emmc bootloader
That's why its recommended to use a Docker image (armbian-config -> software ...) ... on top of OS that supports hardware well.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

r4nd0m
Posts: 9
Joined: Tue Dec 19, 2017 3:40 am
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by r4nd0m »

These users thanked the author r4nd0m for the post:
rooted (Sat Nov 02, 2019 3:37 pm)

m0thman
Posts: 14
Joined: Mon Sep 14, 2015 10:54 pm
languages_spoken: english, russian
ODROIDs: XU4 + CloudShell
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by m0thman »

The new link is here. Did not tried it yet.
https://github.com/home-assistant/opera ... oid-xu4.md

johnjoemorgan
Posts: 11
Joined: Thu Mar 14, 2019 8:43 pm
languages_spoken: english
ODROIDs: xu4q
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 - install and run Hass.io from eMMC

Post by johnjoemorgan »

Trying to do this now

How to you get to the Linux prompt in HassOS?

"Alternatively, you can try flash HassOS to both an SD and eMMC, then boot off the SD with the eMMC also plugged in, then run

dd if=/dev/mmcblk1 of=/dev/mmcblk0boot0 bs=512 skip=1 seek=0 count=16381

at the Linux prompt. "

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 7 guests