HA Green - how to build an installer SDCard?

As the title says, how can I build an installer SD card image (e.g. green-installer-20240410.img.xz)? Upon completing the buildroot run, I get haos_green-12.4.dev0.img.xz and haos_green-12.4.dev0.img.raucb, but there’s no info on how make a bootable SD image from these images.

Which guide are you following?

From here:

and the images were created in output/images (couldn’t find a /release directory) after

sudo scripts/enter.sh make green

And the normal way to create a bootable sdcard (i.e. Balena Etcher or similar) from your .img.xz image doesn’t work?

E.g.

Yes, the generated img.xz file when imaged to the SDCard did not boot.

The image green-installer-20240410.img.xz as obtained via Resetting the device – Home Assistant Green does work, though.

Is there something on the console (HDMI + USB keyboard)?

Nothing, HDMI remains off (no signal)…

the generated img.xz file when imaged to the SDCard did not boot.
INFO: ext4(overlay.ext4): cmd: “e2fsck -pvfD ‘/build/output/images/overlay.ext4’” (stderr):
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘spl’ from ‘spl.img’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘hassos-boot’ (in MBR) from ‘boot.vfat’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘hassos-kernel0’ (in MBR) from ‘kernel.img’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘hassos-system0’ (in MBR) from ‘/build/output/images/rootfs.erofs’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘hassos-kernel1’ (in MBR) …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘hassos-system1’ (in MBR) …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘hassos-bootstate’ (in MBR) …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘hassos-overlay’ (in MBR) from ‘overlay.ext4’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘hassos-data’ (in MBR) from ‘/build/output/images/data.ext4’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘[MBR]’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘[GPT header]’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘[GPT array]’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): adding primary partition ‘[GPT backup]’ …
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): writing GPT
INFO: hdimage(/build/output/images/haos_green-13.0.dev0.img): writing hybrid MBR
INFO: rauc(/build/output/images/haos_green-13.0.dev0.raucb): cmd: "mkdir -p '/build/output

Did you solve this problem? I’m having the same issue,
I also From Getting started with Home Assistant Operating System development | Home Assistant Developer Docs (home-assistant.io)

log:
DDR Version V1.10 20210810
ln
ddrconfig:0
LP4 MR14:0x4d
LPDDR4, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
tdqss: cs0 dqs0: 385ps, dqs1: 265ps, dqs2: 313ps, dqs3: 217ps,

change to: 324MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 528MHz
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x79

change to: 780MHz
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x5f

change to: 1056MHz(final freq)
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:29%
dram drv:40,odt:80
vref_ca:00000068
clk skew:0x42
cs 0:
the read training result:
DQS0:0x43, DQS1:0x44, DQS2:0x45, DQS3:0x3e,
min : 0xd 0xe 0x10 0xf 0x1 0x5 0x8 0x3 , 0xa 0x9 0x6 0x1 0xd 0xa 0x10 0x9 ,
0x12 0x10 0xf 0xb 0x4 0x0 0x2 0x5 , 0xd 0x7 0x6 0x1 0xd 0x10 0xb 0xf ,
mid :0x2e 0x2f 0x31 0x2f 0x23 0x26 0x29 0x25 ,0x2c 0x2b 0x27 0x24 0x2f 0x2c 0x30 0x2b ,
0x33 0x31 0x2e 0x2b 0x25 0x21 0x23 0x26 ,0x2d 0x28 0x26 0x23 0x2e 0x30 0x2b 0x2f ,
max :0x50 0x51 0x52 0x50 0x45 0x47 0x4a 0x47 ,0x4e 0x4e 0x49 0x47 0x51 0x4f 0x51 0x4e ,
0x54 0x52 0x4e 0x4b 0x47 0x42 0x44 0x47 ,0x4e 0x4a 0x46 0x45 0x4f 0x51 0x4c 0x4f ,
range:0x43 0x43 0x42 0x41 0x44 0x42 0x42 0x44 ,0x44 0x45 0x43 0x46 0x44 0x45 0x41 0x45 ,
0x42 0x42 0x3f 0x40 0x43 0x42 0x42 0x42 ,0x41 0x43 0x40 0x44 0x42 0x41 0x41 0x40 ,
the write training result:
DQS0:0x76, DQS1:0x65, DQS2:0x6c, DQS3:0x5f,
min :0x94 0x98 0x99 0x97 0x8b 0x8e 0x8e 0x91 0x91 ,0x7e 0x7f 0x7a 0x7a 0x84 0x84 0x85 0x85 0x81 ,
0x8c 0x8b 0x88 0x87 0x81 0x7d 0x80 0x86 0x86 ,0x83 0x81 0x7e 0x7c 0x86 0x87 0x84 0x88 0x7f ,
mid :0xb0 0xb3 0xb6 0xb3 0xa7 0xa9 0xaa 0xab 0xab ,0x9a 0x9a 0x95 0x95 0x9f 0x9d 0x9e 0x9d 0x9a ,
0xa8 0xa7 0xa2 0xa3 0x9c 0x95 0x99 0x9e 0xa0 ,0x9f 0x9b 0x99 0x98 0xa1 0xa2 0x9c 0xa2 0x99 ,
max :0xcd 0xcf 0xd3 0xcf 0xc4 0xc5 0xc7 0xc6 0xc6 ,0xb6 0xb6 0xb0 0xb1 0xba 0xb6 0xb7 0xb6 0xb4 ,
0xc4 0xc4 0xbd 0xc0 0xb7 0xae 0xb2 0xb6 0xba ,0xbb 0xb6 0xb4 0xb4 0xbc 0xbe 0xb4 0xbd 0xb3 ,
range:0x39 0x37 0x3a 0x38 0x39 0x37 0x39 0x35 0x35 ,0x38 0x37 0x36 0x37 0x36 0x32 0x32 0x31 0x33 ,
0x38 0x39 0x35 0x39 0x36 0x31 0x32 0x30 0x34 ,0x38 0x35 0x36 0x38 0x36 0x37 0x30 0x35 0x34 ,
CA Training result:
cs:0 min :0x46 0x40 0x3d 0x34 0x3e 0x35 0x3f ,0x45 0x3d 0x3c 0x34 0x3a 0x32 0x3e ,
cs:0 mid :0x82 0x82 0x79 0x76 0x79 0x76 0x6c ,0x80 0x7f 0x78 0x75 0x76 0x74 0x6b ,
cs:0 max :0xbf 0xc4 0xb6 0xb9 0xb4 0xb7 0x9a ,0xbc 0xc1 0xb5 0xb7 0xb3 0xb7 0x99 ,
cs:0 range:0x79 0x84 0x79 0x85 0x76 0x82 0x5b ,0x77 0x84 0x79 0x83 0x79 0x85 0x5b ,
out
U-Boot SPL board init
U-Boot SPL 2017.09 (Dec 09 2021 - 15:11:15)
rk3568_sdmmc_set_clk,rate=400000
unrecognized JEDEC id bytes: ff, ff, ff
Trying to boot from MMC2
rk3568_sdmmc_set_clk,rate=400000
rk3568_sdmmc_set_clk,rate=400000
rk3568_sdmmc_set_clk,rate=400000
rk3568_sdmmc_set_clk,rate=52000000
No misc partition
spl: partition error

Verified-boot: 0

Checking atf-1 0x00040000 … sha256(0d5225a4ab…) + OK

Checking u-boot 0x00a00000 … sha256(0be13226e8…) + OK

Checking fdt-1 0x00aaab28 … sha256(c03172500e…) + OK

Checking atf-2 0x00069000 … sha256(6ede7a3b44…) + OK

Checking atf-3 0x0006b000 … sha256(fde0ef262b…) + OK

Checking atf-4 0xfdcc1000 … sha256(3e94d16e6a…) + OK

Checking atf-5 0xfdcce000 … sha256(c9eb312bf2…) + OK

Checking atf-6 0xfdcd0000 … sha256(befba422b8…) + OK

Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 716.144 ms

INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-607-gbf602aff1:cl
NOTICE: BL31: Built : 10:16:03, Jun 5 2023
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: pmu v1 is valid 220114
INFO: dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO: dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO: dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO: dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9

U-Boot 2024.01 (Aug 09 2024 - 03:52:04 +0000)

DRAM: 2 GiB
PMIC: RK8090 (on=0x40, off=0x00)
Core: 301 devices, 28 uclasses, devicetree: separate
MMC: mmc@fe2b0000: 1, mmc@fe310000: 0
Loading Environment from nowhere… OK
In: serial@fe660000
Out: serial@fe660000
Err: serial@fe660000
Model: Home Assistant Green
UCLASS_I2C_EEPROM get error
Net: No ethernet found.
** Booting bootflow ‘[email protected]_1’ with script
boot devtype: mmc:1
switch to partitions #0, OK
mmc1 is current device
loading env…

MMC read: dev # 1, block # 1212416, count 64 … 64 blocks read: OK
0 bytes read in 0 ms
13 bytes read in 3 ms (3.9 KiB/s)
Loading standard device tree rk3566-ha-green.dtb
111951 bytes read in 13 ms (8.2 MiB/s)
Working FDT set to a100000
Trying to boot slot A, 0 attempts remaining. Loading kernel …
30788096 bytes read in 5838 ms (5 MiB/s)
storing env…

MMC write: dev # 1, block # 1212416, count 64 … 64 blocks written: OK
Starting kernel
Moving Image from 0x2080000 to 0x2200000, end=4000000

Flattened Device Tree blob at 0a100000

Booting using the fdt blob at 0xa100000
Working FDT set to a100000
Loading Device Tree to 000000007de7e000, end 000000007df01fff … OK
Working FDT set to 7de7e000

Starting kernel …