depot: add usb_modem_drv archives

genodelabs/genode#4201
This commit is contained in:
Johannes Schlatow 2021-06-16 14:28:20 +02:00 committed by Christian Helmuth
parent ff57bf617b
commit 52a4293bbc
8 changed files with 63 additions and 3 deletions

View File

@ -0,0 +1,2 @@
Package for bundling wifi_drv and wifi_firmware

View File

@ -0,0 +1 @@
_/src/usb_modem_drv

View File

@ -0,0 +1 @@
2021-06-16 dd96cd0014c9d20b1f0e44333cd1361cfd8bf988

View File

@ -0,0 +1,12 @@
<runtime ram="16M" caps="300" binary="usb_modem_drv">
<requires> <uplink/> <usb/> <rm/> </requires>
<provides> <terminal/> </provides>
<config mac="02:00:00:00:01:01" mode="uplink_client"/>
<content>
<rom label="ld.lib.so"/>
<rom label="usb_modem_drv"/>
</content>
</runtime>

View File

@ -0,0 +1,32 @@
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/dde_linux)
MIRROR_FROM_REP_DIR := src/drivers/usb_modem \
src/lx_kit \
src/include \
lib/import/import-usb_modem_include.mk \
lib/import/import-usb_arch_include.mk \
lib/mk/usb_modem_include.mk \
$(foreach SPEC, \
arm arm_64 x86_32 x86_64, \
lib/mk/spec/$(SPEC)/lx_kit_setjmp.mk)
MIRROR_FROM_PORT_DIR := $(shell cd $(PORT_DIR); \
find src/drivers/usb_modem -type f | \
grep -v ".git")
MIRROR_FROM_PORT_DIR := $(filter-out $(MIRROR_FROM_REP_DIR), \
$(MIRROR_FROM_PORT_DIR))
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_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" ) > $@

View File

@ -0,0 +1 @@
2021-06-16 7410cea2eb1989efc4e7cd44ff36be590842f0c2

View File

@ -0,0 +1,8 @@
base
os
nic_session
uplink_session
usb_session
timer_session
terminal_session
nic_driver

View File

@ -8,6 +8,7 @@ only. QMI devices might be supported in the future.
Tested devices:
Huawai ME906s (P/V: 12d1:15c1)
Fibocom L830-EB-00 (P/V: 2cb7:0210)
Other devices can be added by enabling the MBIM configuration profile for the
USB device in ' Driver::Device::set_config' (main.cc) of this driver.
@ -16,11 +17,13 @@ Configuration snippet:
!<start name="usb_modem_drv">
! <resource name="RAM" quantum="10M"/>
! <requires>
! <service name="Uplink"/>
! </requires>
! <provides>
! <service name="Nic"/>
! <service name="Terminal"/>
! </provides>
! <config mac="02:00:00:00:01:01" />
! <config mac="02:00:00:00:01:01" mode="uplink_client"/>
!</start>
The driver offers two Genode sessions: The first one is a terminal session where