Skip to content

Commit 719f378

Browse files
author
Linus Walleij
committed
gemini: Activate serial USB console on the DNS-313
This brings up a serial console on the USB device port of the DNS-313 by: - Activating the usbgadget feature - Selecting the usbgadget-acm package - Adding an inittab that opens a console at ttyGS0 which is the device side of ttyACMn of a connected host Link: http://patchwork.ozlabs.org/project/openwrt/patch/[email protected]/ Cc: Chuanhong Guo <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent cb65021 commit 719f378

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

target/linux/gemini/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
77
ARCH:=arm
88
BOARD:=gemini
99
BOARDNAME:=Cortina Systems CS351x
10-
FEATURES:=squashfs pci rtc usb dt gpio display ext4 rootfs-part boot-part
10+
FEATURES:=squashfs pci rtc usb usbgadget dt gpio display ext4 rootfs-part boot-part
1111
CPU_TYPE:=fa526
1212
SUBTARGETS:=generic
1313

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
. /lib/functions.sh
2+
3+
case "$(board_name)" in
4+
dlink,dns-313)
5+
uci set usbgadget.@preset[0].name="acm"
6+
uci set usbgadget.@preset[0].UDC="69000000.usb"
7+
uci commit usbgadget
8+
;;
9+
esac
10+
11+
exit 0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
::sysinit:/etc/init.d/rcS S boot
2+
::shutdown:/etc/init.d/rcS K shutdown
3+
::askconsole:/usr/libexec/login.sh
4+
ttyGS0::askfirst:/usr/libexec/login.sh

target/linux/gemini/image/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ define Device/dlink_dns-313
170170
DEVICE_VENDOR := D-Link
171171
DEVICE_MODEL := DNS-313 1-Bay Network Storage Enclosure
172172
DEVICE_DTS := gemini-dlink-dns-313
173-
DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES)
173+
DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) usbgadget-acm
174174
BLOCKSIZE := 1k
175175
FILESYSTEMS := ext4
176176
IMAGES := factory.bin.gz

0 commit comments

Comments
 (0)