From nobody Tue Feb 15 08:13:38 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0643D19BC8E0 for ; Tue, 15 Feb 2022 08:13:58 +0000 (UTC) (envelope-from mjl@luckie.org.nz) Received: from out2106.sparkbusinessmail.co.nz (out2106.sparkbusinessmail.co.nz [122.56.84.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JyYl80Lgtz3kr9 for ; Tue, 15 Feb 2022 08:13:54 +0000 (UTC) (envelope-from mjl@luckie.org.nz) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sparkbusinessmail.co.nz; s=alpha; t=1644912821; bh=LnYO/zv3o783cC3lCbjy52F+/wDBHP/WwDYx3rJry2I=; h=Date:From:To:Subject:Message-ID; b=eresd4XSTvjqEEAvVcMTN/TuCzqfhFc6xex5s1VdPmDC6noHse79gUmg3db8N5ssW eX2Ma0MG//UPVG+0rjMRuESVaMMR3lLrT2L+aOplTNMOopJ6darCmayPmXeqsZaFCG ZKUNtf/PE/Ny/ejJhc1WKm98w6qYePNSwpO1WZRs= SMX-Results: classifications=clean SMX-S1C: gggruggvucftvghtrhhoucdtuddrgedvvddrjeefgdduudeiucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuuffoigeuuhhsihhnvghsshenuceurghilhhouhhtmecufedttdenucenucfjughr peffhffvuffkgggtuggfsehttddttddtredvnecuhfhrohhmpeforghtthhhvgifucfnuhgtkhhivg cuoehmjhhlsehluhgtkhhivgdrohhrghdrnhiiqeenucggtffrrghtthgvrhhnpedtueetuddtjeff tddvtefhheetffeghfetvedtieffheefgfetgffhvdeihfehtdenucfkphepuddukedrleefrdduje elrdduieehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddukedrleef rddujeelrdduieehpdhmrghilhhfrhhomhepmhhjlheslhhutghkihgvrdhorhhgrdhniidpnhgspg hrtghpthhtohepuddprhgtphhtthhopehfrhgvvggsshguqdgrrhhmsehfrhgvvggsshgurdhorhhg pdhmohguvgepshhmthhpohhuthdpshhpfhepnhgvuhhtrhgrlh SMX-S1V: clean SMX-S1S: 0 Received: from spandex.luckie.org.nz ([118.93.179.165]) by smtp.sparkbusinessmail.co.nz with ESMTP (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) id 620B60B3-2A952A55@mta2103.omr; Tue, 15 Feb 2022 08:13:41 +0000 Received: from mjl by spandex.luckie.org.nz with local (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nJsxu-000NwY-G9 for freebsd-arm@freebsd.org; Tue, 15 Feb 2022 21:13:38 +1300 Date: Tue, 15 Feb 2022 21:13:38 +1300 From: Matthew Luckie To: freebsd-arm@freebsd.org Subject: DLink DWM-222 revision A2 Message-ID: List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.1.5 (2021-12-30) X-Rspamd-Queue-Id: 4JyYl80Lgtz3kr9 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sparkbusinessmail.co.nz header.s=alpha header.b=eresd4XS; dmarc=none; spf=none (mx1.freebsd.org: domain of mjl@luckie.org.nz has no SPF policy when checking 122.56.84.53) smtp.mailfrom=mjl@luckie.org.nz X-Spamd-Result: default: False [-4.40 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[sparkbusinessmail.co.nz:s=alpha]; RECEIVED_SPAMHAUS_PBL(0.00)[118.93.179.165:received]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[luckie.org.nz]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[sparkbusinessmail.co.nz:dkim]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[sparkbusinessmail.co.nz:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:4648, ipnet:122.56.84.0/24, country:NZ]; RCVD_IN_DNSWL_LOW(-0.10)[122.56.84.53:from] X-ThisMailContainsUnwantedMimeParts: N Hi, I purchased a DLink DWM-222 4G LTE USB stick, which is at revision A2 and requires new device IDs. I embed a patch below that has the new IDs. Its been more than 10 years since I've done make buildworld, and I would prefer not to buildworld -- the CPU is a low-powered Intel atom running an i386 kernel. Can someone let me know what the minimum set of steps I require to get a new u3g kernel module plus anything else necessary? If I have to buildworld, let me know. Thanks, Matthew --- usbdevs.orig 2022-01-12 20:35:11.417935000 +1300 +++ usbdevs 2022-02-15 20:54:11.843014000 +1300 @@ -1749,10 +1749,12 @@ product DLINK DWM157_2 0x7d0e DWM-157 product DLINK DWR510 0x7e12 DWR-510 product DLINK DWM222 0x7e35 DWM-222 +product DLINK DWM222_2 0x7e3d DWM-222 product DLINK DWM157_CD_2 0xa407 DWM-157 CD-ROM Mode product DLINK DWM157_CD 0xa707 DWM-157 CD-ROM Mode product DLINK DWR510_CD 0xa805 DWR-510 CD-ROM Mode product DLINK DWM222_CD 0xab00 DWM-222 CD-ROM Mode +product DLINK DWM222_CD_2 0xac01 DWM-222 CD-ROM Mode product DLINK DSB650 0xabc1 10/100 Ethernet product DLINK DUBH7 0xf103 DUB-H7 USB 2.0 7-Port Hub product DLINK2 RTL8192SU_1 0x3300 RTL8192SU --- u3g.c.orig 2022-01-12 20:35:08.878410000 +1300 +++ u3g.c 2022-02-15 20:55:30.705116000 +1300 @@ -242,6 +242,8 @@ U3G_DEV(DLINK, DWM157_2, 0), U3G_DEV(DLINK, DWM222_CD, U3GINIT_SCSIEJECT), U3G_DEV(DLINK, DWM222, 0), + U3G_DEV(DLINK, DWM222_CD_2, U3GINIT_SCSIEJECT), + U3G_DEV(DLINK, DWM222_2, 0), U3G_DEV(DLINK3, DWM652, 0), U3G_DEV(HP, EV2200, 0), U3G_DEV(HP, HS2300, 0),