genode/repos/os/run/i2c_mcp9808.run

85 lines
1.7 KiB
Plaintext
Raw Normal View History

assert_spec arm_v8a
create_boot_directory
import_from_depot [depot_user]/src/[base_src]
import_from_depot [depot_user]/src/init
2024-05-30 13:46:57 +00:00
import_from_depot [depot_user]/src/platform
build {
core
timer
drivers/i2c
test/i2c_mcp9808
}
install_config {
<config>
<parent-provides>
<service name="ROM"/>
<service name="IRQ"/>
<service name="IO_MEM"/>
<service name="PD"/>
<service name="RM"/>
<service name="CPU"/>
<service name="LOG"/>
</parent-provides>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>
<default caps="100"/>
<start name="timer">
<resource name="RAM" quantum="1M"/>
<provides><service name="Timer"/></provides>
</start>
2024-05-30 13:46:57 +00:00
<start name="platform" caps="800" managing_system="yes">
<binary name="imx8mq_platform"/>
<resource name="RAM" quantum="4M"/>
<provides>
<service name="Platform"/>
<service name="Regulator"/>
</provides>
<config>
2024-05-30 13:46:57 +00:00
<policy label_prefix="imx8q_evk_i2c"> <device name="i2c2"/> </policy>
</config>
</start>
2024-05-30 13:46:57 +00:00
<start name="imx8q_evk_i2c">
<resource name="RAM" quantum="1M"/>
<provides> <service name="I2c"/> </provides>
<config bus_no="2" verbose="yes">
<policy label_prefix="MCP_9808" bus_address="0x18"/>
</config>
<route>
<any-service> <parent/> <any-child/> </any-service>
</route>
</start>
<start name="i2c_mcp9808">
<resource name="RAM" quantum="1M"/>
<route>
2024-05-30 13:46:57 +00:00
<service name="I2c"> <child name="imx8q_evk_i2c" label="MCP_9808"/> </service>
<any-service> <parent/> </any-service>
</route>
</start>
</config>
}
file copy [select_from_repositories board/[board]/devices] [run_dir]/genode/devices
build_boot_image [build_artifacts]
run_genode_until forever