2021-02-22 13:38:31 +00:00
|
|
|
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
|
2021-02-22 13:38:31 +00:00
|
|
|
|
2022-04-27 13:55:24 +00:00
|
|
|
build {
|
2021-02-22 13:38:31 +00:00
|
|
|
core
|
|
|
|
timer
|
|
|
|
drivers/i2c
|
|
|
|
test/i2c_mcp9808
|
|
|
|
}
|
|
|
|
|
2022-04-27 13:55:24 +00:00
|
|
|
install_config {
|
2021-02-22 13:38:31 +00:00
|
|
|
<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"/>
|
2021-02-22 13:38:31 +00:00
|
|
|
<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>
|
2021-02-22 13:38:31 +00:00
|
|
|
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="imx8q_evk_i2c">
|
2021-02-22 13:38:31 +00:00
|
|
|
<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>
|
2021-02-22 13:38:31 +00:00
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
</start>
|
|
|
|
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2022-04-27 13:55:24 +00:00
|
|
|
file copy [select_from_repositories board/[board]/devices] [run_dir]/genode/devices
|
2023-05-04 14:18:04 +00:00
|
|
|
|
|
|
|
build_boot_image [build_artifacts]
|
2021-02-22 13:38:31 +00:00
|
|
|
|
|
|
|
run_genode_until forever
|