Add pkg/drivers_interactive-panda
This package has been tested with the framebuffer.run and demo.run scripts on the Pandaboard ES Rev B.
This commit is contained in:
3
recipes/pkg/drivers_interactive-panda/README
Normal file
3
recipes/pkg/drivers_interactive-panda/README
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
Device drivers needed to run interactive
|
||||
scenarios on the OMAP4-based Pandaboard ES
|
||||
6
recipes/pkg/drivers_interactive-panda/archives
Normal file
6
recipes/pkg/drivers_interactive-panda/archives
Normal file
@@ -0,0 +1,6 @@
|
||||
_/src/panda_drivers
|
||||
_/src/input_filter
|
||||
_/src/report_rom
|
||||
_/src/usb_hid_drv
|
||||
_/src/panda_usb_host_drv
|
||||
_/raw/drivers_interactive-panda
|
||||
1
recipes/pkg/drivers_interactive-panda/hash
Normal file
1
recipes/pkg/drivers_interactive-panda/hash
Normal file
@@ -0,0 +1 @@
|
||||
2020-06-24 9b1bac7ed8a8ad552e127e2b01ec094caf4f0eba
|
||||
7
recipes/raw/drivers_interactive-panda/content.mk
Normal file
7
recipes/raw/drivers_interactive-panda/content.mk
Normal file
@@ -0,0 +1,7 @@
|
||||
content: drivers.config input_filter.config en_us.chargen special.chargen
|
||||
|
||||
drivers.config input_filter.config:
|
||||
cp $(REP_DIR)/recipes/raw/drivers_interactive-panda/$@ $@
|
||||
|
||||
en_us.chargen special.chargen:
|
||||
cp $(GENODE_DIR)/repos/os/src/server/input_filter/$@ $@
|
||||
96
recipes/raw/drivers_interactive-panda/drivers.config
Normal file
96
recipes/raw/drivers_interactive-panda/drivers.config
Normal file
@@ -0,0 +1,96 @@
|
||||
<config>
|
||||
<parent-provides>
|
||||
<service name="IRQ"/>
|
||||
<service name="IO_MEM"/>
|
||||
<service name="ROM"/>
|
||||
<service name="PD"/>
|
||||
<service name="RM"/>
|
||||
<service name="CPU"/>
|
||||
<service name="LOG"/>
|
||||
<service name="Timer"/>
|
||||
</parent-provides>
|
||||
|
||||
<default caps="100"/>
|
||||
|
||||
<service name="Framebuffer">
|
||||
<default-policy> <child name="fb_drv"/> </default-policy> </service>
|
||||
|
||||
<service name="Input">
|
||||
<default-policy> <child name="input_filter"/> </default-policy> </service>
|
||||
|
||||
<start name="fb_drv">
|
||||
<binary name="omap4_fb_drv"/>
|
||||
<resource name="RAM" quantum="10M"/>
|
||||
<provides> <service name="Framebuffer"/> </provides>
|
||||
<config/>
|
||||
<route>
|
||||
<service name="IRQ"> <parent/> </service>
|
||||
<service name="IO_MEM"> <parent/> </service>
|
||||
<service name="ROM"> <parent/> </service>
|
||||
<service name="PD"> <parent/> </service>
|
||||
<service name="CPU"> <parent/> </service>
|
||||
<service name="LOG"> <parent/> </service>
|
||||
<service name="Timer"> <parent/> </service>
|
||||
</route>
|
||||
</start>
|
||||
|
||||
<start name="report_rom">
|
||||
<resource name="RAM" quantum="1M"/>
|
||||
<provides> <service name="Report"/> <service name="ROM"/> </provides>
|
||||
<config verbose="yes">
|
||||
<default-policy report="usb_host_drv -> devices"/>
|
||||
</config>
|
||||
<route> <any-service> <parent/> </any-service> </route>
|
||||
</start>
|
||||
|
||||
<start name="omap4_gpio_drv" caps="100">
|
||||
<resource name="RAM" quantum="2M"/>
|
||||
<provides> <service name="Gpio"/> </provides>
|
||||
<config/>
|
||||
<route> <any-service> <parent/> </any-service> </route>
|
||||
</start>
|
||||
|
||||
<start name="usb_host_drv" caps="150">
|
||||
<binary name="panda_usb_host_drv"/>
|
||||
<resource name="RAM" quantum="10M"/>
|
||||
<provides> <service name="Usb"/> </provides>
|
||||
<config bios_handoff="yes">
|
||||
<report devices="yes"/>
|
||||
<policy label_prefix="usb_hid_drv" class="0x3"/>
|
||||
</config>
|
||||
<route>
|
||||
<service name="Gpio"> <child name="omap4_gpio_drv"/> </service>
|
||||
<service name="Report"> <child name="report_rom"/> </service>
|
||||
<any-service> <parent/> </any-service>
|
||||
</route>
|
||||
</start>
|
||||
|
||||
<start name="usb_hid_drv" caps="140">
|
||||
<resource name="RAM" quantum="10M"/>
|
||||
<provides> <service name="Input"/> </provides>
|
||||
<config use_report="yes"/>
|
||||
<route>
|
||||
<service name="Usb"> <child name="usb_host_drv"/> </service>
|
||||
<service name="ROM" label="report"> <child name="report_rom"/> </service>
|
||||
<any-service> <parent/> </any-service>
|
||||
</route>
|
||||
</start>
|
||||
|
||||
<start name="input_filter" caps="80">
|
||||
<resource name="RAM" quantum="1280K"/>
|
||||
<provides> <service name="Input"/> </provides>
|
||||
<route>
|
||||
<service name="ROM" label="config">
|
||||
<parent label="input_filter.config"/>
|
||||
</service>
|
||||
<service name="Input" label="usb">
|
||||
<child name="usb_hid_drv"/>
|
||||
</service>
|
||||
<service name="ROM"> <parent/> </service>
|
||||
<service name="PD"> <parent/> </service>
|
||||
<service name="CPU"> <parent/> </service>
|
||||
<service name="LOG"> <parent/> </service>
|
||||
<service name="Timer"> <parent/> </service>
|
||||
</route>
|
||||
</start>
|
||||
</config>
|
||||
1
recipes/raw/drivers_interactive-panda/hash
Normal file
1
recipes/raw/drivers_interactive-panda/hash
Normal file
@@ -0,0 +1 @@
|
||||
2020-06-24 08cc8c08b202405e4798e444407d472b4efce370
|
||||
26
recipes/raw/drivers_interactive-panda/input_filter.config
Normal file
26
recipes/raw/drivers_interactive-panda/input_filter.config
Normal file
@@ -0,0 +1,26 @@
|
||||
<config>
|
||||
<input label="usb"/>
|
||||
<output>
|
||||
<chargen>
|
||||
<accelerate max="50" sensitivity_percent="1000" curve="127">
|
||||
<button-scroll>
|
||||
<input name="usb"/>
|
||||
<vertical button="BTN_MIDDLE" speed_percent="-10"/>
|
||||
<horizontal button="BTN_MIDDLE" speed_percent="-10"/>
|
||||
</button-scroll>
|
||||
</accelerate>
|
||||
<mod1>
|
||||
<key name="KEY_LEFTSHIFT"/> <key name="KEY_RIGHTSHIFT"/>
|
||||
</mod1>
|
||||
<mod2>
|
||||
<key name="KEY_LEFTCTRL"/> <key name="KEY_RIGHTCTRL"/>
|
||||
</mod2>
|
||||
<mod3>
|
||||
<key name="KEY_RIGHTALT"/> <!-- AltGr -->
|
||||
</mod3>
|
||||
<repeat delay_ms="230" rate_ms="90"/>
|
||||
<include rom="en_us.chargen"/>
|
||||
<include rom="special.chargen"/>
|
||||
</chargen>
|
||||
</output>
|
||||
</config>
|
||||
15
recipes/src/panda_drivers/content.mk
Normal file
15
recipes/src/panda_drivers/content.mk
Normal file
@@ -0,0 +1,15 @@
|
||||
include $(GENODE_DIR)/repos/base/recipes/src/content.inc
|
||||
|
||||
MIRROR_FROM_OS_REP_DIR := include/gpio
|
||||
|
||||
content: src/drivers $(MIRROR_FROM_OS_REP_DIR)
|
||||
|
||||
$(MIRROR_FROM_OS_REP_DIR):
|
||||
mkdir -p $(dir $@)
|
||||
cp -r $(GENODE_DIR)/repos/os/$@ $@
|
||||
|
||||
src/drivers:
|
||||
mkdir -p $@/framebuffer
|
||||
cp -r $(REP_DIR)/src/drivers/framebuffer/spec/omap4/* $@/framebuffer
|
||||
mkdir -p $@/gpio
|
||||
cp -r $(REP_DIR)/src/drivers/gpio/spec/omap4/* $@/gpio
|
||||
1
recipes/src/panda_drivers/hash
Normal file
1
recipes/src/panda_drivers/hash
Normal file
@@ -0,0 +1 @@
|
||||
2020-06-24 543ac25b17bca30952765c7953a7279ac0eab6eb
|
||||
7
recipes/src/panda_drivers/used_apis
Normal file
7
recipes/src/panda_drivers/used_apis
Normal file
@@ -0,0 +1,7 @@
|
||||
base
|
||||
os
|
||||
blit
|
||||
framebuffer_session
|
||||
input_session
|
||||
gpio_session
|
||||
timer_session
|
||||
2
recipes/src/panda_usb_host_drv/content.mk
Normal file
2
recipes/src/panda_usb_host_drv/content.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
MIRROR_FROM_REP_DIR := src/drivers/usb_host/spec/panda
|
||||
include $(REP_DIR)/recipes/src/usb_host_drv.inc
|
||||
1
recipes/src/panda_usb_host_drv/hash
Normal file
1
recipes/src/panda_usb_host_drv/hash
Normal file
@@ -0,0 +1 @@
|
||||
2020-06-24 69bd6a7fb1071881ddd6a2c8c9a2284274ab4ce9
|
||||
7
recipes/src/panda_usb_host_drv/used_apis
Normal file
7
recipes/src/panda_usb_host_drv/used_apis
Normal file
@@ -0,0 +1,7 @@
|
||||
base
|
||||
os
|
||||
usb_session
|
||||
gpio_session
|
||||
platform_session
|
||||
timer_session
|
||||
report_session
|
||||
36
recipes/src/usb_host_drv.inc
Normal file
36
recipes/src/usb_host_drv.inc
Normal file
@@ -0,0 +1,36 @@
|
||||
LIB_MK := lib/mk/usb_host_include.mk lib/import/import-usb_arch_include.mk \
|
||||
$(foreach SPEC,arm arm_64 x86_32 x86_64,lib/mk/spec/$(SPEC)/lx_kit_setjmp.mk)
|
||||
|
||||
DDE_LINUX_REP_DIR := $(GENODE_DIR)/repos/dde_linux
|
||||
|
||||
PORT_DIR := $(call port_dir,$(DDE_LINUX_REP_DIR)/ports/dde_linux)
|
||||
|
||||
MIRROR_FROM_DDE_LINUX_REP_DIR := $(LIB_MK) \
|
||||
lib/import/import-usb_host_include.mk \
|
||||
src/include src/lx_kit \
|
||||
$(shell cd $(DDE_LINUX_REP_DIR); \
|
||||
find src/drivers/usb_host -type f -name "*.h" \
|
||||
-or -name "*.c" \
|
||||
-or -name "*.inc" \
|
||||
-or -name "README")
|
||||
|
||||
MIRROR_FROM_PORT_DIR := $(shell cd $(PORT_DIR); find src/drivers/usb_host -type f | grep -v ".git")
|
||||
MIRROR_FROM_PORT_DIR := $(filter-out $(MIRROR_FROM_DDE_LINUX_REP_DIR),$(MIRROR_FROM_PORT_DIR))
|
||||
|
||||
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_DDE_LINUX_REP_DIR) $(MIRROR_FROM_PORT_DIR)
|
||||
|
||||
$(MIRROR_FROM_REP_DIR):
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
$(MIRROR_FROM_DDE_LINUX_REP_DIR):
|
||||
mkdir -p $(dir $@)
|
||||
cp -r $(DDE_LINUX_REP_DIR)/$@ $@
|
||||
|
||||
$(MIRROR_FROM_PORT_DIR):
|
||||
mkdir -p $(dir $@)
|
||||
cp $(PORT_DIR)/$@ $@
|
||||
|
||||
content: LICENSE
|
||||
LICENSE:
|
||||
( echo "GNU General Public License version 2, see:"; \
|
||||
echo "https://www.kernel.org/pub/linux/kernel/COPYING" ) > $@
|
||||
Reference in New Issue
Block a user