# Reflash your iHost with your own Linux distribution

**URL:** <https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102>\
**Category:** eWeLink CUBE\
**Created:** [April 27, 2023, 7:10am UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102 "2023-04-27T07:10:14Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![JordanWise](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jordanwise/32/1660_2.png) [@JordanWise](https://forum.ewelink.cc/u/JordanWise)\
**Post date:** [July 6, 2023, 1:47am UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/25 "2023-07-06T01:47:42Z")

</div>

default login:  
username **root**  
password **aibridge**  
see the pic I added

---

<div class="post-metadata">

**Author:** ![pmknowles](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@pmknowles](https://forum.ewelink.cc/u/pmknowles)\
**Post date:** [July 7, 2023, 4:54pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/26 "2023-07-07T16:54:10Z")

</div>

Thanks, not sure how I missed that!

---

<div class="post-metadata">

**Author:** ![marcnarain2810](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@marcnarain2810](https://forum.ewelink.cc/u/marcnarain2810)\
**Post date:** [July 24, 2023, 4:12pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/29 "2023-07-24T16:12:42Z")

</div>

Hey! So I tried flashing Linux on the ihost. I turned maskrom mode on (green flashing light) downloaded all the drivers after that I opened the flash tool and I put in the Linux for ihost image. There are two variants on the forum for flashing I first used the Chinese version because I didn’t saw the other one until later. The chine version failed flashing and now the lights are red. After that I discovered the English and newer version of the flash tool but it wouldn’t want to go into maskrom mode. After a bit of thinkering it’s in maskrom mode but it keeps failing to flash or do anything whatsoever ( see attached picture). Can someone please help me with this? Thanks  
[Schermafbeelding 2023-07-13 231208|690x355](https://forum.ewelink.cc/uploads/short-url/hyeGeAIlwdb0tG3f39f0NATgt0Q.jpeg)

---

<div class="post-metadata">

**Author:** ![cliff](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@cliff](https://forum.ewelink.cc/u/cliff)\
**Post date:** [August 1, 2023, 3:05pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/30 "2023-08-01T15:05:26Z")

</div>

Darn. I haven’t tried flashing it yet, because I still have hope that at least with access to the USB port, I will be able to fully use the iHost for Home Assistant (with full access for Zigbee Home Assistant (ZHA)).  
@JordanWise - Do you know if there is any newer version out there?  
Thanks and cheers

---

<div class="post-metadata">

**Author:** ![malwar](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@malwar](https://forum.ewelink.cc/u/malwar)\
**Post date:** [August 12, 2023, 10:12am UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/31 "2023-08-12T10:12:18Z")

</div>

i have flashed, how i can install hassios? dpkg and apt not found

---

<div class="post-metadata">

**Author:** ![cliff](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@cliff](https://forum.ewelink.cc/u/cliff)\
**Post date:** [August 14, 2023, 4:43pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/32 "2023-08-14T16:43:11Z")

</div>

Any luck, @malwar ?

---

<div class="post-metadata">

**Author:** ![Alexie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/alexie/32/1593_2.png) [@Alexie](https://forum.ewelink.cc/u/Alexie)\
**Post date:** [September 6, 2023, 2:58pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/33 "2023-09-06T14:58:47Z")

</div>

It does not support dpkg…

If you want to install home assistance on this linux os, you can do so through python. Of course, you can also install HA core through docker.

---

<div class="post-metadata">

**Author:** ![cliff](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@cliff](https://forum.ewelink.cc/u/cliff)\
**Post date:** [September 9, 2023, 6:04pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/34 "2023-09-09T18:04:31Z")

</div>

Thanks @Alexie  
Will the HA installation have access to the onboard Zigbee controller?

---

<div class="post-metadata">

**Author:** ![dipalomeri](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dipalomeri](https://forum.ewelink.cc/u/dipalomeri)\
**Post date:** [September 9, 2023, 7:09pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/35 "2023-09-09T19:09:38Z")

</div>

I got enough tilting at windmills so disconnectet iHost and flashed my old amlogic TV Box with armbian (on SD card), then Python and Home Assistant core. It works great. Very stable and power consumbtion is 1.52 Watt with running HA and zigbe dongle connected (ZHA).  
First of all I don’t think it is possible to give HA access to zigbee coordinator on iHost. You can do that only with your own linux flashed on iHost, but it’ll take at least a year.  
But there is one improvementon iHost. Look at attached picture

 ![86edb2248d09e125fd8b66bcda412038ae03f66e](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/4/43602f7478da20fefc2560c176acf11fc6416010.jpeg)  
Unfortunately it is only replacement solution but you can use zigbee dongle in HA on iHost in ZHA mode.  
I suggest to read this forum:

> **["Sonoff iHost" (smart home hub/computer) from ITead - Can it be hacked to run...](https://community.home-assistant.io/t/sonoff-ihost-smart-home-hub-computer-from-itead-can-it-be-hacked-to-run-home-assistant-os-with-bluetooth-thread-matter-and-zha-integrations/545962/19)**
>
> the ihost in the current shape I had gotten last week was not that great or a real mess. You do not have access to the command line therefore no chance to move your installation files to a save place cause with the first update from HA announced...

---

<div class="post-metadata">

**Author:** ![Alexie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/alexie/32/1593_2.png) [@Alexie](https://forum.ewelink.cc/u/Alexie)\
**Post date:** [September 11, 2023, 2:32am UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/37 "2023-09-11T02:32:49Z")

</div>

Thank you for your information. I took a quick look at your retweet and, as Tim L mentioned, if you’re familiar with both HAOS and building a linux distro, there’s not much difficulty in porting HAOS to ihost.

If you are having trouble building your own distro, you can contact us here and we will help you in the best possible way.

---

<div class="post-metadata">

**Author:** ![malwar](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@malwar](https://forum.ewelink.cc/u/malwar)\
**Post date:** [September 11, 2023, 10:09am UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/38 "2023-09-11T10:09:05Z")

</div>

then once the flash is done  
log in with ssh  
ssh root@ihost.local  
pswd aibridge

> docker volume create portainer\_data  
> docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer\_data:/data portainer/portainer-ce:latest

log in to portainer [https://ihost.local:8443](https://ihost.local:8443)  
enter your credentials.  
go to stacks - add stacks

copy the following

> version: “3.7”  
> services:  
> homeassistant:  
> container\_name: homeassistant  
> image: “[ghcr.io/home-assistant/home-assistant:stable](http://ghcr.io/home-assistant/home-assistant:stable)”  
> volumes:  
> - /root/hassio/config:/config  
> - /etc/localtime:/etc/localtime:ro  
> - /run/dbus:/run/dbus:ro  
> - /dev:/dev:ro  
> restart: unless-stopped  
> devices:  
> - “/dev/ttyS0:/dev/ttyS0”  
> - “/dev/ttyS3:/dev/ttyS3”  
> - “/dev/ttyS4:/dev/ttyS4”  
> - “/dev/ttyFIQ0:/dev/ttyFIQ0”  
> privileged: true  
> network\_mode: host  
> configurator:  
> container\_name: configurator  
> image: causticlab/hass-configurator-docker:latest  
> restart: always  
> network\_mode: host  
> labels:  
> - “com.centurylinklabs.watchtower.enable=true” # for Watchtower automatic updates  
> ports:  
> - “3218:3218/tcp”  
> volumes:  
> - /root/hassio/config/:/config # map this volume to your hassio config directory  
> environment:  
> - HC\_BASEPATH=/config  
> - HC\_HASS\_API\_PASSWORD=  
> - HC\_IGNORE\_SSL=True  
> esphome:  
> container\_name: esphome  
> image: [ghcr.io/esphome/esphome](http://ghcr.io/esphome/esphome)  
> volumes:  
> - /root/esphome:/config  
> - /etc/localtime:/etc/localtime:ro  
> restart: always  
> privileged: true  
> tailscale:  
> container\_name: tailscale  
> image: tailscale/tailscale  
> restart: unless-stopped  
> volumes:  
> - /var/lib:/var/lib  
> - /dev/net/tun:/dev/net/tun  
> #- $ {DOCKERFOLDER}/Tailscale/var/lib:/var/lib:rw  
> privileged: true  
> network\_mode: host  
> #env\_file:  
> #- $ {DOCKERFOLDER}/Enviroement.env  
> #dns:  
> # - $ {DNS}  
> cap\_add:  
> - NET\_ADMIN  
> - NET\_RAW  
> environment:  
> - TS\_EXTRA\_ARGS=–advertise-exit-node  
> - TS\_ROUTES=192.168.1.0/24  
> - TS\_AUTHKEY=tskey-auth-

press on action button

this is my disk situation

Filesystem Size Used Avail Use% Mounted on  
/dev/root 7.3G 3.8G 3.2G 55% /  
devtmpfs 873M 0 873M 0% /dev  
tmpfs 874M 0 874M 0% /dev/shm  
tmpfs 874M 348K 873M 1% /tmp  
tmpfs 874M 336K 873M 1% /run  
cgroup 874M 0 874M 0% /sys/fs/cgroup  
overlay 7.3G 3.8G 3.2G 55% /var/lib/docker/overlay2/d067fcd82043db4fd0e6fe6112e148a7a06337c42dc2b1227604bc759b3b1308/merged  
overlay 7.3G 3.8G 3.2G 55% /var/lib/docker/overlay2/52d6ab5187382316d4785dab61880da7db3367df7ef9b9dfe55330487e1ab9b2/merged  
overlay 7.3G 3.8G 3.2G 55% /var/lib/docker/overlay2/3bee5798110d95c372b86eb38683dcbe01491ac97382302ec00afe7a87a2bc8b/merged  
overlay 7.3G 3.8G 3.2G 55% /var/lib/docker/overlay2/4c8d82bfc6708182552ea64d61cd0c498f892559a39e98ddd23398e2cdddc09c/merged

I tried to mount the sdcard to the docker overlay folder but at startup it doesn’t always start despite being inserted in fstab. does anyone know how to tell docker that its folder is somewhere else?

---

<div class="post-metadata">

**Author:** ![hiconkong](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/hiconkong/32/8660_2.png) [@hiconkong](https://forum.ewelink.cc/u/hiconkong)\
**Post date:** [September 11, 2023, 12:24pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/39 "2023-09-11T12:24:43Z")

</div>

Firstly, stop your dockerd:  
`/etc/init.d/S60dockerd stop`

make sure your sdcard is in ext4 format,and mount on rootfs:  
`mount -t ext4 /dev/mmcblk2p1 /mnt/sdcard`

and then mount your sdcard dir to docker workspace:  
`mount --bind /your/sdcard/path/to/dockerd /var/lib/docker/`  
`mount --bind /your/sdcard/path/to/containerd /etc/docker/`

finally, restart dockerd:  
`/etc/init.d/S60dockerd restart`

_ **or** _

edit `/etc/init.d/S60dockerd` to chang root dir, locate at `DAEMON_ARGS` Options and fill in:  
`DAEMON_ARGS="--data-root=/path/to/your/sdcard/"`

---

<div class="post-metadata">

**Author:** ![malwar](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@malwar](https://forum.ewelink.cc/u/malwar)\
**Post date:** [September 11, 2023, 1:43pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/40 "2023-09-11T13:43:08Z")

</div>

for me work only bluetooth with hassio.  
zigbee no  
wifi no  
button no

there is a solutions?

---

<div class="post-metadata">

**Author:** ![darkxst](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@darkxst](https://forum.ewelink.cc/u/darkxst)\
**Post date:** [September 11, 2023, 2:23pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/41 "2023-09-11T14:23:33Z")

</div>

Zigbee works, just put /dev/ttyS4 in ZHA setup (baudrate is 115200) .  
Wifi - probably not  
Buttons (and LEDs) will require a custom HA integration to work

---

<div class="post-metadata">

**Author:** ![Alexie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/alexie/32/1593_2.png) [@Alexie](https://forum.ewelink.cc/u/Alexie)\
**Post date:** [September 11, 2023, 3:44pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/42 "2023-09-11T15:44:31Z")

</div>

Both WiFi and BLE can be implemented using the RTL8723 module - the driver for this module should already be installed on this image.

---

<div class="post-metadata">

**Author:** ![sapphire.younes](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sapphire.younes](https://forum.ewelink.cc/u/sapphire.younes)\
**Post date:** [September 12, 2023, 2:09pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/43 "2023-09-12T14:09:02Z")

</div>

hello it would be nice if you described in video the steps for novices who want to try to install homeassistant supervisor

---

<div class="post-metadata">

**Author:** ![cliff](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@cliff](https://forum.ewelink.cc/u/cliff)\
**Post date:** [September 12, 2023, 3:14pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/44 "2023-09-12T15:14:15Z")

</div>

Not there quite yet. 😁  
But the pieces are forming. And I believe that once it is possible, sales for the iHost will go up with the enormous user base Home Assistant has. Sonoff has in the past done well with keeping the door open to the community. Thanks for that.

I myself for instance have several NSPro Panels. Two with the original software and two running on a different environment. Without that option I only would have bought one (if at all).

---

<div class="post-metadata">

**Author:** ![darkxst](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@darkxst](https://forum.ewelink.cc/u/darkxst)\
**Post date:** [September 13, 2023, 5:17am UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/45 "2023-09-13T05:17:32Z")

</div>

It is not possible to run supervisor on this Image, you can only run HA Docker.

I am one kernel away from having an initial build of HAOS though.

---

<div class="post-metadata">

**Author:** ![malwar](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@malwar](https://forum.ewelink.cc/u/malwar)\
**Post date:** [September 18, 2023, 8:44pm UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/46 "2023-09-18T20:44:15Z")

</div>

for the YC1175 MCU chip is there a datasheet or a way to control it from serial? this should control the leds. how can I do? I only understood that it is on uart3.

Zigbee works great.  
To mount the SD card, unfortunately it happens that at startup it doesn’t always mount it automatically, not even with fstab. maybe some service interferes with the mounting

thanks u

---

<div class="post-metadata">

**Author:** ![Alexie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/alexie/32/1593_2.png) [@Alexie](https://forum.ewelink.cc/u/Alexie)\
**Post date:** [September 19, 2023, 2:05am UTC](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102/47 "2023-09-19T02:05:41Z")

</div>

[RK1109 and YC1175 serial communication commands.pdf](https://forum.ewelink.cc/uploads/short-url/7o1FjHFqYV4Tq32pVL2sspdCLHb.pdf) (1.0 MB)

[Previous page](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102.md?page=1)

[Next page](https://forum.ewelink.cc/t/reflash-your-ihost-with-your-own-linux-distribution/17102.md?page=3)
