Buildroot support for H2

Post Reply
Spacecase
Posts: 5
Joined: Wed Feb 05, 2020 2:10 pm
languages_spoken: english
ODROIDs: H2
Has thanked: 2 times
Been thanked: 0
Contact:

Buildroot support for H2

Unread post by Spacecase » Wed Feb 05, 2020 2:46 pm

I am reaching out to Hardkernel engineers to find out if Buildroot configuration files can be provided for the H2 like they are for the XU4 and C2.

User avatar
odroid
Site Admin
Posts: 33649
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 500 times
Been thanked: 504 times
Contact:

Re: Buildroot support for H2

Unread post by odroid » Wed Feb 05, 2020 6:12 pm

We've not used the Buildroot on any x86 platforms.

Spacecase
Posts: 5
Joined: Wed Feb 05, 2020 2:10 pm
languages_spoken: english
ODROIDs: H2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Buildroot support for H2

Unread post by Spacecase » Thu Feb 06, 2020 3:33 pm

Does that mean it's out of the question? There are Buildroot configurations for the Intel NUC. Wouldn't the process be similar?

https://github.com/OpenNuvoton/NUC970_Buildroot

User avatar
odroid
Site Admin
Posts: 33649
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 500 times
Been thanked: 504 times
Contact:

Re: Buildroot support for H2

Unread post by odroid » Thu Feb 06, 2020 4:07 pm

The latest official buildroot-2019.11 stable version will work with your H2 board probably even it has slightly old Kernel 4.18.10.
Try using pc_x86_64_efi_defconfig with /buildroot-2019.11/board/pc target board configuration.
https://github.com/buildroot/buildroot/ ... _defconfig

BTW, what are you going to make with the Buildroot?
You are the first person who has asked it since we launched the H2 almost 15 months ago.
These users thanked the author odroid for the post:
Spacecase (Fri Feb 07, 2020 1:47 am)

Spacecase
Posts: 5
Joined: Wed Feb 05, 2020 2:10 pm
languages_spoken: english
ODROIDs: H2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Buildroot support for H2

Unread post by Spacecase » Fri Feb 07, 2020 1:43 am

The Home Assistant operating system is based on Buildroot now. There are plans for future versions of HA to have tighter integration between the supervisor and the underlying OS, versus using a generic linux distribution.

The H2 is a nice alternative to a NUC or a PC as a host system. It allows the use Visual Studio Code on the host for configuring the integrated peripheral devices and creating automations. ARM hosts do not currently support VSC.

https://www.home-assistant.io/hassio/installation/
https://github.com/home-assistant/operating-system
https://github.com/home-assistant/opera ... hardkernel
https://github.com/home-assistant/hassio-installer

User avatar
mad_ady
Posts: 7558
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 391 times
Been thanked: 296 times
Contact:

Re: Buildroot support for H2

Unread post by mad_ady » Fri Feb 07, 2020 3:49 am

I think you can try to run the NUC hassio version on the H2.
Regarding vscode you can use it on x86 and connect via its ssh plugin to armhf or arm64 host. For arm64 you need the insiders edition. I use it and love it.
These users thanked the author mad_ady for the post:
Spacecase (Fri Feb 07, 2020 5:04 am)

Spacecase
Posts: 5
Joined: Wed Feb 05, 2020 2:10 pm
languages_spoken: english
ODROIDs: H2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Buildroot support for H2

Unread post by Spacecase » Fri Feb 07, 2020 5:03 am

mad_ady wrote:
Fri Feb 07, 2020 3:49 am
I think you can try to run the NUC hassio version on the H2.
What happens when the peripherals ICs are different (e.g. the NIC)?

User avatar
mad_ady
Posts: 7558
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 391 times
Been thanked: 296 times
Contact:

Re: Buildroot support for H2

Unread post by mad_ady » Fri Feb 07, 2020 2:14 pm

You may need to tweak the kernel config and create a more generic kernel. You can get /proc/config.gz from ubuntu 19.10 for instance and build your image with that kernel version.

Though, for Home Assistant use, using the H2 as a dedicated server is a waste of resources. You'd be better off running either a hypervisor + vms, or a regular linux + hassio docker on top. It's easier to build and allows you to use the hardware for other things as well...

Spacecase
Posts: 5
Joined: Wed Feb 05, 2020 2:10 pm
languages_spoken: english
ODROIDs: H2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Buildroot support for H2

Unread post by Spacecase » Sat Feb 08, 2020 2:03 am

mad_ady wrote:
Fri Feb 07, 2020 2:14 pm
You may need to tweak the kernel config and create a more generic kernel. You can get /proc/config.gz from ubuntu 19.10 for instance and build your image with that kernel version.

Though, for Home Assistant use, using the H2 as a dedicated server is a waste of resources. You'd be better off running either a hypervisor + vms, or a regular linux + hassio docker on top. It's easier to build and allows you to use the hardware for other things as well...
I do this already and it works well. At the moment, I don't wish to disturb the configuration to experiment with Buildroot. Getting the system to its current state was a learning experience for me. Thankfully, I had a little background in using Unix systems, but for many it would be a barrier.

Ultimately, the hope is to avoid maintaining both the OS and HA. If a Buildroot configuration for the H2 would exist, HA developers might adopt the H2 as a supported platform. That will allow the OS and the HA supervisor to be a managed, secure, unified image. If supported, the H2 will be an alternate more-affordable x86 platform.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest