├── .gitignore
├── LICENSE
├── README.md
├── build
├── cdemu.service
├── cdemu
│ ├── deb-packages
│ │ ├── cdemu-client_3.2.5-1_all.deb
│ │ ├── cdemu-client_3.2.5-1_armhf.buildinfo
│ │ ├── cdemu-client_3.2.5-1_armhf.changes
│ │ ├── cdemu-daemon-dbg_3.2.7-1_armhf.deb
│ │ ├── cdemu-daemon_3.2.7-1_armhf.buildinfo
│ │ ├── cdemu-daemon_3.2.7-1_armhf.changes
│ │ ├── cdemu-daemon_3.2.7-1_armhf.deb
│ │ ├── gir1.2-mirage-3.2_3.2.9-1_armhf.deb
│ │ ├── image-analyzer_3.2.6-1_all.deb
│ │ ├── image-analyzer_3.2.6-1_armhf.buildinfo
│ │ ├── image-analyzer_3.2.6-1_armhf.changes
│ │ ├── libmirage11-dbg_3.2.9-1_armhf.deb
│ │ ├── libmirage11-dev_3.2.9-1_armhf.deb
│ │ ├── libmirage11-doc_3.2.9-1_all.deb
│ │ ├── libmirage11_3.2.9-1_armhf.deb
│ │ ├── libmirage_3.2.9-1_armhf.buildinfo
│ │ ├── libmirage_3.2.9-1_armhf.changes
│ │ ├── vhba-dkms_20240917-1_all.deb
│ │ ├── vhba-module_20240917-1_armhf.buildinfo
│ │ └── vhba-module_20240917-1_armhf.changes
│ ├── etc-pulse-client.conf
│ └── etc
│ │ └── dbus1
│ │ └── system.d
│ │ ├── cdemu-daemon-dbus.conf
│ │ └── pulseadio-system.conf
├── firsboot
├── instructions.txt
├── kernel
│ ├── additional-packages.txt
│ ├── config-kernel-final-6-12-20
│ ├── config-kernel-working-6-6-78
│ ├── instructions.kernel
│ ├── kernel-patches-for-gadget-mode.html
│ └── large-iso-patch.patch
└── st7789
│ └── __init__.py
├── inst
├── config.txt
├── new-wifi-onboot.service
├── new-wifi_example.json
├── new-wifi_hidden_example.json
├── setup.sh
├── usbode.service
└── usbode
│ ├── module
│ ├── Makefile
│ ├── README.md
│ └── cdrom_redirect.c
│ ├── network-updater.py
│ ├── scripts
│ ├── alsa-settings-iqaudio.sh
│ ├── cd_gadget_setup.sh
│ ├── cleanup_mode.sh
│ ├── disablegadget.sh
│ ├── enablegadget.sh
│ ├── exfat_gadget_setup.sh
│ ├── force_eject_iso.sh
│ └── pbonly.state
│ ├── usbode.py
│ └── waveshare
│ ├── Font.ttf
│ ├── SH1106.py
│ ├── __pycache__
│ ├── SH1106.cpython-37.pyc
│ ├── config.cpython-311.pyc
│ └── config.cpython-37.pyc
│ ├── configi2c.py
│ ├── configspi.py
│ ├── i2c_detect.py
│ ├── key_demo.py
│ ├── main.py
│ ├── pic.bmp
│ └── pic.jpg
└── llama-specific
├── README.md
├── other-method-to-boot
└── README.md
├── src
├── DOSDisk
│ ├── AUTOEXEC.BAT
│ ├── CONFIG.SYS
│ ├── RAMFD.SYS
│ ├── USBASPI1.SYS
│ └── USBCD1.SYS
└── isolinux
│ ├── gfxboot.c32
│ ├── isolinux.bin
│ ├── isolinux.cfg
│ ├── ldlinux.c32
│ ├── libcom32.c32
│ ├── libutil.c32
│ ├── memdisk
│ ├── menu.c32
│ └── w98_boot.ima
└── xDelta-Patch
├── README.md
└── Win98_llama_modded.xdelta
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # USBODE: the USB Optical Drive Emulator
2 | USBODE uses a Raspberry Pi Zero to emulate optical drives on retro computers equipped with USB. It appears to your computer as a standard CD drive, and you can load up .ISO files stored on the Pi's MicroSD card. It can be easily configured over a web interface, and it can also take advantage of the Waveshare OLED hat.
3 |
4 | ## What can it do?
5 | By emulating a CD-ROM drive with USBODE, you can:
6 | - Store a collection of ISO files on the SD card and quickly switch between them.
7 | - Install and run CD-based games without the need for physical media. This includes multi-disc titles.
8 | - Boot from the drive to install an operating system or use recovery media.
9 | Note: It may not work with some forms of CD-ROM copy protection. Also, there is no CUE/BIN support _yet_.
10 |
11 | ## Requirements:
12 | 1. A Raspberry Pi Zero W or Zero 2 W (USBODE is optimized for the Pi Zero 2 W)
13 | 2. A MicroSD card. 32 GB or greater is recommended, however 8 GB is the absolute minimum. A fast card (e.g. A1 or A2) will improve boot and load times.
14 | 3. A setup computer with the ability to mount and image the MicroSD card.
15 | 4. A USB cable with male Type A on one side, and male [Micro B](https://en.wikipedia.org/wiki/USB_hardware#/media/File:MicroB_USB_Plug.jpg) on the other. Micro B is what most people think of as an ordinary Micro USB cable (as opposed to [Mini](https://en.wikipedia.org/wiki/USB_hardware#/media/File:Cable_Mini_USB.jpg)). This cable needs to be capable of data transfer, not just power.
16 | 5. The latest [USB-ODE Release Image](https://github.com/danifunker/usbode/releases).
17 | 6. The [Raspberry Pi Imager](https://www.raspberrypi.com/software/) application.
18 | 7. A target computer with a USB port that will be utilizing USBODE.
19 |
20 | ## USBODE Initial Setup
21 | (From v1.8 onward; v1.7 and prior uses a different process)
22 | 1. Plug your Micro SD card into your setup computer.
23 | 2. Open the Raspberry Pi Imager tool. Under `Choose Device`, select the model of Pi you're using. Under `Choose OS`, select the USB-ODE image you downloaded. Under `Choose Storage`, select your MicroSD card.
24 | 3. Preconfigure your hostname, login info (for SSH), Wi-Fi information, and locale.
25 | - Note, the Pi Zero W and Pi Zero W 2 support 2.4 GHz networks up to Wireless N (802.11N). They do not support 5 GHz networks. If your router broadcasts in both modes, input the name that the 2.4 GHz mode uses. It's fine if both modes use the same name.
26 | 4. Once the Pi Imager Tool has completed, it will notify you. Eject the card and insert it into your Pi Zero.
27 | 5. Connect the Pi Zero to your setup computer. The Pi Zero has two Micro USB connections ports: one labeled USB and the other labeled PWR. Insert the Micro B end of the cable into the port labeled USB. The Pi’s indicator LED will begin flashing soon after.
28 | 6. The Pi will perform an initial setup boot, which can take a while (See the bullet on card speeds under "Other Notes"). When the initial setup is complete, a drive called IMGSTORE should appear on your setup computer. You can copy ISO images into this folder now if you’d like.
29 | 7. You should now be able to access the USBODE browser interface by entering its IP address (or the Hostname if you defined that earlier) in a web-browser. If your router automatically assigns IP addresses via DHCP, log into your router’s web interface to see the IP assigned to your Pi Zero device. See the section below on navigating the USBODE browser interface.
30 | - If you see "The connection has timed out", it is likely still booting. If you see a 500 error, this is usually resolved by rebooting the Pi.
31 |
32 | The setup should now be complete. If you have any difficulties, help is available on [Discord](https://discord.gg/na2qNrvdFY).
33 |
34 | ## Using USBODE on the target computer
35 | 1. Shut down the target computer.
36 | 2. Connect the Pi Zero to the target computer. As above, the Micro B end of the cable needs to be plugged into the Pi's `USB` port, not `PWR`. The other end will plug into any of the target computer's USB ports.
37 | 3. Turn on the target computer. The Pi Zero's indicator LED will start blinking.
38 | 4. Once the target computer boots, it should be able to see the USBODE as a standard CD-ROM drive. See the Browser Interface section below to load images.
39 |
40 | ## Copying Images onto USBODE
41 | USBODE stores your ISO images on the MicroSD card in a folder labeled IMGSTORE. You'll need to put ISO files directly into this folder. There are three ways to do this:
42 | - Connect the Pi Zero to your setup computer via USB.
43 | - Remove the MicroSD card from the Pi Zero and connect it directly to your setup computer. Transfer speeds are probably the fastest with this option.
44 | - Connect to USBODE via SSH.
45 |
46 | ## Using the USBODE Browser Interface
47 | The browser interface is used to switch modes, load an image, and shutdown the device.
48 |
49 | ### Switching Modes:
50 | USBODE has two modes. _Mode 1: CD-Emulator_ and _Mode 2: Ex-FAT Storage Device_.
51 |
52 | Use the _/switch_ link in the browser interface to switch between Modes 1 and 2.
53 |
54 | In Mode 1, USBODE serves a single ISO image to the target computer. The target computer sees the image as CD-ROM media. In Mode 2, USBODE presents itself to a computer (target or setup) as a storage device named IMGSTORE. To copy images from a computer to USBODE storage, you must be in Mode 2.
55 |
56 | ### Loading an Image:
57 | The image currently being served is displayed on the browser page after the text _Currently Serving_. To change the image being served, first make sure you are in Mode 1 then click _Load Another Image_. This will navigate to a page listing all the images stored on the device. Click on the image you would like to load, and you'll see a page informing you that it is attempting to mount the image. Click _Return to USBODE homepage_ to confirm that the image was loaded.
58 |
59 | ### Shutting Down USBODE:
60 | On the USBODE homepage, click _Shutdown the pi_. The LED indicator will flash for several seconds and eventually turn off. It is now safe to unplug the device from the computer.
61 |
62 | ## Troubleshooting
63 |
64 | ### My target computer doesn't see the Pi as an Optical Drive.
65 | This is likely because the ODE is stuck in Mode 2 or Mode 0. See below for a resolution.
66 |
67 | ### Windows: My computer doesn't see the `imgstore` partition on my SD card after imaging with the Pi Imager.
68 | The partition is there, but did not get assigned a drive letter. Manually assigning a drive letter with your preferred tool will make it appear. If you're unfamiliar, search for "disk" in the Start Menu and one of the first results should be "Create and format hard disk partitions". Once it loads, find your SD card in the lower list of disks. You should see that there are three partitions on it, including imgstore. Right-click on `imgstore`, and select "Change Drive Letter and Paths". Click Add, then add whatever drive letter is most convenient for you. It should then immediately appear in Explorer for you to drag files to.
69 |
70 | ### How can I boot from the USBODE if it isn't ready until after my computer POSTs?
71 | Use the `Pause/Break` key when you first see the POST screen. This will give the Pi enough time to boot. Once it's ready, load up an image using the browser interface (or a Hat if you have one). Then, press the `Enter` key to resume the POST. You should be able to go into the BIOS and select it as a bootable device at this time.
72 |
73 | ## Other notes
74 | - USBODE supports the Waveshare 1.3" OLED HAT in SPI and I2C modes, giving you a very easy-to-navigate interface on the Pi itself. For details, visit (https://www.waveshare.com/wiki/1.3inch_OLED_HAT).
75 | - If the device is in Mode 1, you can establish an FTP, SSH, or SFTP connection to it to transfer images. Keep in mind that the transfer speed of this will be limited to 802.11N speeds.
76 | - You can change which Wi-Fi network the Pi is associated with. Put the MicroSD card into your computer, and open the `bootfs` volume. From there, copy the file `new-wifi_example.json` and rename the copy `new-wifi.json`. In that file, enter your new SSID and password. Safely eject the MicroSD card and place it back into the Raspberry Pi. The file will be read about 5 seconds after the USBODE starts, and it will attempt to connect to the new wifi. If any issues occur, shutdown the USBODE and plug the SD card back into the computer, and review the file named `new-wifi-output.txt` in the `bootfs` volume.
77 | - Since the `configfs` settings are reloaded between configurations, and entirely destroyed on a reboot, I have opted to store the most recently loaded ISO filename into `/opt/usbode/usbode-iso.txt`. Not having this file should not cause any issues, since there is a setup endpoint that can be used for initial configuration, however I haven't tested that code path yet.
78 | - Card Speeds and Long Boot Times: The Pi will take some time to perform its initial boot. On a C10/UHS1 card (with no 'A' class specification) and a first-gen Raspberry Pi Zero W, we saw initial boot times approaching 10 minutes. We hope this is the worst-case scenario. Subsequent boots were closer to a minute or so. Faster cards, especially those with the A1 specification (designed more for random read/writes as opposed to streaming video), will provide faster boots. Also, using a second gen Raspberry Pi Zero W 2 should grant additional speed benefits.
79 |
80 | ## Llama-ITX Notes
81 | 1. This works best with only a single ISO file being loaded
82 | 2. If booting from scratch, on my Pi Zero 2 W it takes about 45 seconds to boot up into the ISO, so if you are cold booting the Llama and want to boot from disk, wait a bit in the BIOS screen.
83 | 3. Only a single USB is required to be connected to the Pi Zero 2 W for this application (so far) it CAN work with the data-only connection (USB Port closer to the HDMI/MicroSD slots)
84 | 4. When operating in storage mode, be reminded this is an interface via ExFAT, so it will not be possible to access the filesystem on Operating Systems prior to Windows XP with the hotfix installed.
85 |
86 | ## Known Limitations
87 | - DOS - Due to limitations in `USBASPI1.SYS`, switching between modes 2 and 1 requires a reboot. The Pi has to disconnect from your machine and reconnect when swapping modes.
88 |
89 | ## Todo
90 | - Add support for mounting Bin/Cue, enabling CDDA
91 |
92 | ## Strech goals:
93 | - Make some way to change the mounted ISO through a DOS program or TSR? I have no experience with this and would appreciate any expertise you may have to offer.
94 | - Make a second USB interface, perhaps a COM port, to be able to communicate with the app.
95 |
96 | Feel free to contribute to the project.
97 |
98 | ## Discord Server
99 | For updates on this project please visit the discord server here: (https://discord.gg/na2qNrvdFY)
100 |
101 | ## YouTube Video
102 | I created a [YouTube video](https://www.youtube.com/watch?v=o7qsI4J0sys) which covers the old installation process. The new process is almost the same, just no files are required to copy after imaging the device.
103 |
104 | This project is also featured on video on [PhilsComputerLab](https://www.youtube.com/channel/UCj9IJ2QvygoBJKSOnUgXIRA)!
105 | Here is his [first video](https://www.youtube.com/watch?v=Is3ULD0ZXnI).
106 |
107 | Please like and subscribe to Phil so you can stay up to date on this project and many other cool retro computing things!
108 |
109 | ## Donations
110 | Support me on ko-fi!
111 | (https://ko-fi.com/danifunker)
112 |
113 | Readme updated by [Zarf](https://github.com/Zarf-42) and wayneknight_rider.
114 |
--------------------------------------------------------------------------------
/build/cdemu.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=CDEmu daemon
3 | Requires=dbus.service pulseaudio.service
4 | After=multi-user.target
5 |
6 | [Service]
7 | ExecStart=/usr/local/bin/cdemu-daemon --ctl-device=/dev/vhba_ctl --config-file "/opt/cdemu-daemon/daemon.conf" --bus system
8 | Restart=on-failure
9 | User=root
10 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/cdemu-client_3.2.5-1_all.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/cdemu-client_3.2.5-1_all.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/cdemu-client_3.2.5-1_armhf.buildinfo:
--------------------------------------------------------------------------------
1 | Format: 1.0
2 | Source: cdemu-client
3 | Binary: cdemu-client
4 | Architecture: all
5 | Version: 3.2.5-1
6 | Checksums-Md5:
7 | 7f4f8abbb6833d152a290c1182af95a4 33620 cdemu-client_3.2.5-1_all.deb
8 | Checksums-Sha1:
9 | 6d971a70ad55b3a12d58c578963136415cdce2fc 33620 cdemu-client_3.2.5-1_all.deb
10 | Checksums-Sha256:
11 | 0b747a36121e7d8afca0753437a7ccd50ca3ddb6970242573f1f03426e01695f 33620 cdemu-client_3.2.5-1_all.deb
12 | Build-Origin: Raspbian
13 | Build-Architecture: armhf
14 | Build-Date: Mon, 07 Apr 2025 19:31:41 -0400
15 | Build-Tainted-By:
16 | merged-usr-via-aliased-dirs
17 | Installed-Build-Depends:
18 | autoconf (= 2.71-3),
19 | automake (= 1:1.16.5-1.3),
20 | autopoint (= 0.21-12),
21 | autotools-dev (= 20220109.1),
22 | base-files (= 12.4+rpi1+deb12u8),
23 | base-passwd (= 3.6.1),
24 | bash (= 5.2.15-2),
25 | bash-completion (= 1:2.11-6),
26 | binutils (= 2.40-2+rpi2),
27 | binutils-arm-linux-gnueabihf (= 2.40-2+rpi2),
28 | binutils-common (= 2.40-2+rpi2),
29 | bsdextrautils (= 2.38.1-5+deb12u3),
30 | bsdutils (= 1:2.38.1-5+deb12u3),
31 | build-essential (= 12.9),
32 | bzip2 (= 1.0.8-5+b2),
33 | ca-certificates (= 20230311),
34 | cmake (= 3.25.1-1),
35 | cmake-data (= 3.25.1-1),
36 | coreutils (= 9.1-1),
37 | cpp (= 4:12.2.0-3+rpi1),
38 | cpp-12 (= 12.2.0-14+rpi1),
39 | dash (= 0.5.12-2),
40 | debconf (= 1.5.82),
41 | debhelper (= 13.11.4),
42 | debianutils (= 5.7-0.5~deb12u1),
43 | dh-autoreconf (= 20),
44 | dh-python (= 5.20230130+deb12u1),
45 | dh-strip-nondeterminism (= 1.13.1-1),
46 | diffutils (= 1:3.8-4),
47 | dpkg (= 1.22.6~bpo12+rpt3),
48 | dpkg-dev (= 1.22.6~bpo12+rpt3),
49 | dwz (= 0.15-1),
50 | file (= 1:5.44-3),
51 | findutils (= 4.9.0-4),
52 | g++ (= 4:12.2.0-3+rpi1),
53 | g++-12 (= 12.2.0-14+rpi1),
54 | gcc (= 4:12.2.0-3+rpi1),
55 | gcc-12 (= 12.2.0-14+rpi1),
56 | gcc-12-base (= 12.2.0-14+rpi1),
57 | gettext (= 0.21-12),
58 | gettext-base (= 0.21-12),
59 | grep (= 3.8-5),
60 | groff-base (= 1.22.4-10),
61 | gzip (= 1.12-1),
62 | hostname (= 3.23+nmu1),
63 | init-system-helpers (= 1.65.2),
64 | install-info (= 6.8-6+b1),
65 | intltool (= 0.51.0-6),
66 | intltool-debian (= 0.35.0+20060710.6),
67 | libacl1 (= 2.3.1-3),
68 | libarchive-zip-perl (= 1.68-1),
69 | libarchive13 (= 3.6.2-1+deb12u2),
70 | libasan8 (= 12.2.0-14+rpi1),
71 | libatomic1 (= 12.2.0-14+rpi1),
72 | libattr1 (= 1:2.5.1-4),
73 | libaudit-common (= 1:3.0.9-1),
74 | libaudit1 (= 1:3.0.9-1),
75 | libbinutils (= 2.40-2+rpi2),
76 | libblkid1 (= 2.38.1-5+deb12u3),
77 | libbrotli1 (= 1.0.9-2+b3),
78 | libbz2-1.0 (= 1.0.8-5+b2),
79 | libc-bin (= 2.36-9+rpt2+deb12u9),
80 | libc-dev-bin (= 2.36-9+rpt2+deb12u9),
81 | libc6 (= 2.36-9+rpt2+deb12u9),
82 | libc6-dev (= 2.36-9+rpt2+deb12u9),
83 | libcap-ng0 (= 0.8.3-1+b1),
84 | libcap2 (= 1:2.66-4),
85 | libcc1-0 (= 12.2.0-14+rpi1),
86 | libclone-perl (= 0.46-1),
87 | libcom-err2 (= 1.47.0-2),
88 | libcrypt-dev (= 1:4.4.33-2),
89 | libcrypt1 (= 1:4.4.33-2),
90 | libctf-nobfd0 (= 2.40-2+rpi2),
91 | libctf0 (= 2.40-2+rpi2),
92 | libcurl4 (= 7.88.1-10+rpi1+deb12u12),
93 | libdb5.3 (= 5.3.28+dfsg2-1),
94 | libdebconfclient0 (= 0.270),
95 | libdebhelper-perl (= 13.11.4),
96 | libdpkg-perl (= 1.22.6~bpo12+rpt3),
97 | libelf1 (= 0.188-2.1+rpi1),
98 | libencode-locale-perl (= 1.05-3),
99 | libexpat1 (= 2.5.0-1+deb12u1),
100 | libffi8 (= 3.4.4-1),
101 | libfile-listing-perl (= 6.15-1),
102 | libfile-stripnondeterminism-perl (= 1.13.1-1),
103 | libgcc-12-dev (= 12.2.0-14+rpi1),
104 | libgcc-s1 (= 12.2.0-14+rpi1),
105 | libgcrypt20 (= 1.10.1-3),
106 | libgdbm-compat4 (= 1.23-3),
107 | libgdbm6 (= 1.23-3),
108 | libgmp10 (= 2:6.2.1+dfsg1-1.1),
109 | libgnutls30 (= 3.7.9-2+deb12u3),
110 | libgomp1 (= 12.2.0-14+rpi1),
111 | libgpg-error0 (= 1.46-1),
112 | libgssapi-krb5-2 (= 1.20.1-2+deb12u2),
113 | libhogweed6 (= 3.8.1-2),
114 | libhtml-parser-perl (= 3.81-1),
115 | libhtml-tagset-perl (= 3.20-6),
116 | libhtml-tree-perl (= 5.07-3),
117 | libhttp-cookies-perl (= 6.10-1),
118 | libhttp-date-perl (= 6.05-2),
119 | libhttp-message-perl (= 6.44-1),
120 | libhttp-negotiate-perl (= 6.01-2),
121 | libicu72 (= 72.1-3),
122 | libidn2-0 (= 2.3.3-1+b2),
123 | libio-html-perl (= 1.004-3),
124 | libio-socket-ssl-perl (= 2.081-2),
125 | libisl23 (= 0.25-1.1),
126 | libjansson4 (= 2.14-2),
127 | libjsoncpp25 (= 1.9.5-4),
128 | libk5crypto3 (= 1.20.1-2+deb12u2),
129 | libkeyutils1 (= 1.6.3-2),
130 | libkrb5-3 (= 1.20.1-2+deb12u2),
131 | libkrb5support0 (= 1.20.1-2+deb12u2),
132 | libldap-2.5-0 (= 2.5.13+dfsg-5+rpi1),
133 | liblwp-mediatypes-perl (= 6.04-2),
134 | liblwp-protocol-https-perl (= 6.10-1),
135 | liblz4-1 (= 1.9.4-1+rpi1+b1),
136 | liblzma5 (= 5.4.1-1),
137 | libmagic-mgc (= 1:5.44-3),
138 | libmagic1 (= 1:5.44-3),
139 | libmd0 (= 1.0.4-2),
140 | libmount1 (= 2.38.1-5+deb12u3),
141 | libmpc3 (= 1.3.1-1),
142 | libmpfr6 (= 4.2.0-1),
143 | libncursesw6 (= 6.4-4),
144 | libnet-http-perl (= 6.22-1),
145 | libnet-ssleay-perl (= 1.92-2+b2),
146 | libnettle8 (= 3.8.1-2),
147 | libnghttp2-14 (= 1.52.0-1+deb12u2),
148 | libnsl-dev (= 1.3.0-2),
149 | libnsl2 (= 1.3.0-2),
150 | libp11-kit0 (= 0.24.1-2),
151 | libpam-modules (= 1.5.2-6+rpt2+deb12u1),
152 | libpam-modules-bin (= 1.5.2-6+rpt2+deb12u1),
153 | libpam-runtime (= 1.5.2-6+rpt2+deb12u1),
154 | libpam0g (= 1.5.2-6+rpt2+deb12u1),
155 | libpcre2-8-0 (= 10.42-1),
156 | libperl5.36 (= 5.36.0-7+deb12u1),
157 | libpipeline1 (= 1.5.7-1),
158 | libpkgconf3 (= 1.8.1-1),
159 | libproc2-0 (= 2:4.0.2-3),
160 | libpsl5 (= 0.21.2-1),
161 | libpython3-stdlib (= 3.11.2-1),
162 | libpython3.11-minimal (= 3.11.2-6+deb12u4),
163 | libpython3.11-stdlib (= 3.11.2-6+deb12u4),
164 | libreadline8 (= 8.2-1.3),
165 | libregexp-ipv6-perl (= 0.03-3),
166 | librhash0 (= 1.4.3-3),
167 | librtmp1 (= 2.4+20151223.gitfa8646d.1-2+b2),
168 | libsasl2-2 (= 2.1.28+dfsg-10),
169 | libsasl2-modules-db (= 2.1.28+dfsg-10),
170 | libseccomp2 (= 2.5.4-1+rpi1+deb12u1),
171 | libselinux1 (= 3.4-1+b2),
172 | libsmartcols1 (= 2.38.1-5+deb12u3),
173 | libsqlite3-0 (= 3.40.1-2+deb12u1),
174 | libssh2-1 (= 1.10.0-3+b1),
175 | libssl3 (= 3.0.15-1~deb12u1+rpt1),
176 | libstdc++-12-dev (= 12.2.0-14+rpi1),
177 | libstdc++6 (= 12.2.0-14+rpi1),
178 | libsub-override-perl (= 0.09-4),
179 | libsystemd0 (= 252.31-1~deb12u1+rpi1),
180 | libtasn1-6 (= 4.19.0-2),
181 | libtimedate-perl (= 2.3300-2),
182 | libtinfo6 (= 6.4-4),
183 | libtirpc-common (= 1.3.3+ds-1),
184 | libtirpc-dev (= 1.3.3+ds-1),
185 | libtirpc3 (= 1.3.3+ds-1),
186 | libtool (= 2.4.7-7~deb12u1),
187 | libtry-tiny-perl (= 0.31-2),
188 | libubsan1 (= 12.2.0-14+rpi1),
189 | libuchardet0 (= 0.0.7-1),
190 | libudev1 (= 252.31-1~deb12u1+rpi1),
191 | libunistring2 (= 1.0-2),
192 | liburi-perl (= 5.17-1),
193 | libuuid1 (= 2.38.1-5+deb12u3),
194 | libuv1 (= 1.44.2-1+rpi1),
195 | libwww-perl (= 6.68-1),
196 | libwww-robotrules-perl (= 6.02-1),
197 | libxml-parser-perl (= 2.46-4),
198 | libxml2 (= 2.9.14+dfsg-1.3~deb12u1),
199 | libzstd1 (= 1.5.4+dfsg2-5),
200 | linux-libc-dev (= 1:6.6.51-1+rpt3),
201 | login (= 1:4.13+dfsg1-1),
202 | m4 (= 1.4.19-3),
203 | make (= 4.3-4.1),
204 | man-db (= 2.11.2-2),
205 | mawk (= 1.3.4.20200120-3.1),
206 | media-types (= 10.0.0),
207 | ncurses-base (= 6.4-4),
208 | ncurses-bin (= 6.4-4),
209 | netbase (= 6.4),
210 | openssl (= 3.0.15-1~deb12u1+rpt1),
211 | patch (= 2.7.6-7),
212 | perl (= 5.36.0-7+deb12u1),
213 | perl-base (= 5.36.0-7+deb12u1),
214 | perl-modules-5.36 (= 5.36.0-7+deb12u1),
215 | perl-openssl-defaults (= 7+b1),
216 | pkg-config (= 1.8.1-1),
217 | pkgconf (= 1.8.1-1),
218 | pkgconf-bin (= 1.8.1-1),
219 | po-debconf (= 1.0.21+nmu1),
220 | procps (= 2:4.0.2-3),
221 | python3 (= 3.11.2-1),
222 | python3-distutils (= 3.11.2-3),
223 | python3-lib2to3 (= 3.11.2-3),
224 | python3-minimal (= 3.11.2-1),
225 | python3.11 (= 3.11.2-6+deb12u4),
226 | python3.11-minimal (= 3.11.2-6+deb12u4),
227 | readline-common (= 8.2-1.3),
228 | rpcsvc-proto (= 1.4.3-1),
229 | sed (= 4.9-1),
230 | sensible-utils (= 0.0.17+nmu1),
231 | sysvinit-utils (= 3.06-4),
232 | tar (= 1.34+dfsg-1.2),
233 | usr-is-merged (= 37~deb12u1),
234 | util-linux (= 2.38.1-5+deb12u3),
235 | util-linux-extra (= 2.38.1-5+deb12u3),
236 | xz-utils (= 5.4.1-1),
237 | zlib1g (= 1:1.2.13.dfsg-1+rpt1)
238 | Environment:
239 | DEB_BUILD_OPTIONS="parallel=4"
240 | LANG="en_GB.UTF-8"
241 | SOURCE_DATE_EPOCH="1396695600"
242 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/cdemu-client_3.2.5-1_armhf.changes:
--------------------------------------------------------------------------------
1 | Format: 1.8
2 | Date: Sat, 05 Apr 2014 12:00:00 +0100
3 | Source: cdemu-client
4 | Binary: cdemu-client
5 | Architecture: all
6 | Version: 3.2.5-1
7 | Distribution: debian
8 | Urgency: low
9 | Maintainer: Henrik Stokseth
10 | Changed-By: Henrik Stokseth
11 | Description:
12 | cdemu-client - Command-line client to control CDEmu daemon
13 | Closes: 705409
14 | Changes:
15 | cdemu-client (3.2.5-1) debian; urgency=low
16 | .
17 | * Initial Release. Closes: #705409
18 | Checksums-Sha1:
19 | 6d971a70ad55b3a12d58c578963136415cdce2fc 33620 cdemu-client_3.2.5-1_all.deb
20 | 20a5217ff39693ccee95679d13204ea89b194298 7215 cdemu-client_3.2.5-1_armhf.buildinfo
21 | Checksums-Sha256:
22 | 0b747a36121e7d8afca0753437a7ccd50ca3ddb6970242573f1f03426e01695f 33620 cdemu-client_3.2.5-1_all.deb
23 | 5c1ad1595ccf51992917d2b62491891d0259c62cf46fb232ad17b574d2bd2b66 7215 cdemu-client_3.2.5-1_armhf.buildinfo
24 | Files:
25 | 7f4f8abbb6833d152a290c1182af95a4 33620 utils optional cdemu-client_3.2.5-1_all.deb
26 | 09bc7a0ea60ded6453ce311459a26cd3 7215 utils optional cdemu-client_3.2.5-1_armhf.buildinfo
27 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/cdemu-daemon-dbg_3.2.7-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/cdemu-daemon-dbg_3.2.7-1_armhf.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/cdemu-daemon_3.2.7-1_armhf.buildinfo:
--------------------------------------------------------------------------------
1 | Format: 1.0
2 | Source: cdemu-daemon
3 | Binary: cdemu-daemon cdemu-daemon-dbg
4 | Architecture: armhf
5 | Version: 3.2.7-1
6 | Checksums-Md5:
7 | 442f3c876377acee0708512ddb3134a8 171180 cdemu-daemon-dbg_3.2.7-1_armhf.deb
8 | 35530e560b5b82c80630205a2b26f927 57980 cdemu-daemon_3.2.7-1_armhf.deb
9 | Checksums-Sha1:
10 | 5e677deeb277b181b2e9a55f9ee00726ffc00570 171180 cdemu-daemon-dbg_3.2.7-1_armhf.deb
11 | db8d54b54c7d2b5f58b4ef904f9ec1ecb051b7b7 57980 cdemu-daemon_3.2.7-1_armhf.deb
12 | Checksums-Sha256:
13 | 7393cd8a6a619fe901af83b0aec71bc8782b5f563ea05f2e0e4bd4d1e0c758f9 171180 cdemu-daemon-dbg_3.2.7-1_armhf.deb
14 | 0650f57291ac647551b679ba6d7a86a63ffb96b811c29f2fcc9fe95f15ef5b8b 57980 cdemu-daemon_3.2.7-1_armhf.deb
15 | Build-Origin: Raspbian
16 | Build-Architecture: armhf
17 | Build-Date: Mon, 07 Apr 2025 19:27:07 -0400
18 | Build-Tainted-By:
19 | merged-usr-via-aliased-dirs
20 | Installed-Build-Depends:
21 | autoconf (= 2.71-3),
22 | automake (= 1:1.16.5-1.3),
23 | autopoint (= 0.21-12),
24 | autotools-dev (= 20220109.1),
25 | base-files (= 12.4+rpi1+deb12u8),
26 | base-passwd (= 3.6.1),
27 | bash (= 5.2.15-2),
28 | binutils (= 2.40-2+rpi2),
29 | binutils-arm-linux-gnueabihf (= 2.40-2+rpi2),
30 | binutils-common (= 2.40-2+rpi2),
31 | bsdextrautils (= 2.38.1-5+deb12u3),
32 | bsdutils (= 1:2.38.1-5+deb12u3),
33 | build-essential (= 12.9),
34 | bzip2 (= 1.0.8-5+b2),
35 | ca-certificates (= 20230311),
36 | cmake (= 3.25.1-1),
37 | cmake-data (= 3.25.1-1),
38 | coreutils (= 9.1-1),
39 | cpp (= 4:12.2.0-3+rpi1),
40 | cpp-12 (= 12.2.0-14+rpi1),
41 | dash (= 0.5.12-2),
42 | debconf (= 1.5.82),
43 | debhelper (= 13.11.4),
44 | debianutils (= 5.7-0.5~deb12u1),
45 | dh-autoreconf (= 20),
46 | dh-strip-nondeterminism (= 1.13.1-1),
47 | diffutils (= 1:3.8-4),
48 | dpkg (= 1.22.6~bpo12+rpt3),
49 | dpkg-dev (= 1.22.6~bpo12+rpt3),
50 | dwz (= 0.15-1),
51 | file (= 1:5.44-3),
52 | findutils (= 4.9.0-4),
53 | g++ (= 4:12.2.0-3+rpi1),
54 | g++-12 (= 12.2.0-14+rpi1),
55 | gcc (= 4:12.2.0-3+rpi1),
56 | gcc-12 (= 12.2.0-14+rpi1),
57 | gcc-12-base (= 12.2.0-14+rpi1),
58 | gettext (= 0.21-12),
59 | gettext-base (= 0.21-12),
60 | gir1.2-glib-2.0 (= 1.74.0-3+b1),
61 | gir1.2-mirage-3.2 (= 3.2.9-1),
62 | grep (= 3.8-5),
63 | groff-base (= 1.22.4-10),
64 | gzip (= 1.12-1),
65 | hostname (= 3.23+nmu1),
66 | init-system-helpers (= 1.65.2),
67 | install-info (= 6.8-6+b1),
68 | intltool (= 0.51.0-6),
69 | intltool-debian (= 0.35.0+20060710.6),
70 | libacl1 (= 2.3.1-3),
71 | libao-common (= 1.2.2+20180113-1.1),
72 | libao-dev (= 1.2.2+20180113-1.1),
73 | libao4 (= 1.2.2+20180113-1.1),
74 | libarchive-zip-perl (= 1.68-1),
75 | libarchive13 (= 3.6.2-1+deb12u2),
76 | libasan8 (= 12.2.0-14+rpi1),
77 | libatomic1 (= 12.2.0-14+rpi1),
78 | libattr1 (= 1:2.5.1-4),
79 | libaudit-common (= 1:3.0.9-1),
80 | libaudit1 (= 1:3.0.9-1),
81 | libbinutils (= 2.40-2+rpi2),
82 | libblkid-dev (= 2.38.1-5+deb12u3),
83 | libblkid1 (= 2.38.1-5+deb12u3),
84 | libbrotli1 (= 1.0.9-2+b3),
85 | libbz2-1.0 (= 1.0.8-5+b2),
86 | libc-bin (= 2.36-9+rpt2+deb12u9),
87 | libc-dev-bin (= 2.36-9+rpt2+deb12u9),
88 | libc6 (= 2.36-9+rpt2+deb12u9),
89 | libc6-dev (= 2.36-9+rpt2+deb12u9),
90 | libcap-ng0 (= 0.8.3-1+b1),
91 | libcap2 (= 1:2.66-4),
92 | libcc1-0 (= 12.2.0-14+rpi1),
93 | libclone-perl (= 0.46-1),
94 | libcom-err2 (= 1.47.0-2),
95 | libcrypt-dev (= 1:4.4.33-2),
96 | libcrypt1 (= 1:4.4.33-2),
97 | libctf-nobfd0 (= 2.40-2+rpi2),
98 | libctf0 (= 2.40-2+rpi2),
99 | libcurl4 (= 7.88.1-10+rpi1+deb12u12),
100 | libdb5.3 (= 5.3.28+dfsg2-1),
101 | libdebconfclient0 (= 0.270),
102 | libdebhelper-perl (= 13.11.4),
103 | libdpkg-perl (= 1.22.6~bpo12+rpt3),
104 | libelf1 (= 0.188-2.1+rpi1),
105 | libencode-locale-perl (= 1.05-3),
106 | libexpat1 (= 2.5.0-1+deb12u1),
107 | libffi-dev (= 3.4.4-1),
108 | libffi8 (= 3.4.4-1),
109 | libfile-listing-perl (= 6.15-1),
110 | libfile-stripnondeterminism-perl (= 1.13.1-1),
111 | libgcc-12-dev (= 12.2.0-14+rpi1),
112 | libgcc-s1 (= 12.2.0-14+rpi1),
113 | libgcrypt20 (= 1.10.1-3),
114 | libgdbm-compat4 (= 1.23-3),
115 | libgdbm6 (= 1.23-3),
116 | libgirepository-1.0-1 (= 1.74.0-3+b1),
117 | libglib2.0-0 (= 2.74.6-2+deb12u5),
118 | libglib2.0-bin (= 2.74.6-2+deb12u5),
119 | libglib2.0-data (= 2.74.6-2+deb12u5),
120 | libglib2.0-dev (= 2.74.6-2+deb12u5),
121 | libglib2.0-dev-bin (= 2.74.6-2+deb12u5),
122 | libgmp10 (= 2:6.2.1+dfsg1-1.1),
123 | libgnutls30 (= 3.7.9-2+deb12u3),
124 | libgomp1 (= 12.2.0-14+rpi1),
125 | libgpg-error0 (= 1.46-1),
126 | libgssapi-krb5-2 (= 1.20.1-2+deb12u2),
127 | libhogweed6 (= 3.8.1-2),
128 | libhtml-parser-perl (= 3.81-1),
129 | libhtml-tagset-perl (= 3.20-6),
130 | libhtml-tree-perl (= 5.07-3),
131 | libhttp-cookies-perl (= 6.10-1),
132 | libhttp-date-perl (= 6.05-2),
133 | libhttp-message-perl (= 6.44-1),
134 | libhttp-negotiate-perl (= 6.01-2),
135 | libicu72 (= 72.1-3),
136 | libidn2-0 (= 2.3.3-1+b2),
137 | libio-html-perl (= 1.004-3),
138 | libio-socket-ssl-perl (= 2.081-2),
139 | libisl23 (= 0.25-1.1),
140 | libjansson4 (= 2.14-2),
141 | libjsoncpp25 (= 1.9.5-4),
142 | libk5crypto3 (= 1.20.1-2+deb12u2),
143 | libkeyutils1 (= 1.6.3-2),
144 | libkrb5-3 (= 1.20.1-2+deb12u2),
145 | libkrb5support0 (= 1.20.1-2+deb12u2),
146 | libldap-2.5-0 (= 2.5.13+dfsg-5+rpi1),
147 | liblwp-mediatypes-perl (= 6.04-2),
148 | liblwp-protocol-https-perl (= 6.10-1),
149 | liblz4-1 (= 1.9.4-1+rpi1+b1),
150 | liblzma5 (= 5.4.1-1),
151 | libmagic-mgc (= 1:5.44-3),
152 | libmagic1 (= 1:5.44-3),
153 | libmd0 (= 1.0.4-2),
154 | libmirage11 (= 3.2.9-1),
155 | libmirage11-dev (= 3.2.9-1),
156 | libmount-dev (= 2.38.1-5+deb12u3),
157 | libmount1 (= 2.38.1-5+deb12u3),
158 | libmpc3 (= 1.3.1-1),
159 | libmpfr6 (= 4.2.0-1),
160 | libncursesw6 (= 6.4-4),
161 | libnet-http-perl (= 6.22-1),
162 | libnet-ssleay-perl (= 1.92-2+b2),
163 | libnettle8 (= 3.8.1-2),
164 | libnghttp2-14 (= 1.52.0-1+deb12u2),
165 | libnsl-dev (= 1.3.0-2),
166 | libnsl2 (= 1.3.0-2),
167 | libp11-kit0 (= 0.24.1-2),
168 | libpam-modules (= 1.5.2-6+rpt2+deb12u1),
169 | libpam-modules-bin (= 1.5.2-6+rpt2+deb12u1),
170 | libpam-runtime (= 1.5.2-6+rpt2+deb12u1),
171 | libpam0g (= 1.5.2-6+rpt2+deb12u1),
172 | libpcre2-16-0 (= 10.42-1),
173 | libpcre2-32-0 (= 10.42-1),
174 | libpcre2-8-0 (= 10.42-1),
175 | libpcre2-dev (= 10.42-1),
176 | libpcre2-posix3 (= 10.42-1),
177 | libperl5.36 (= 5.36.0-7+deb12u1),
178 | libpipeline1 (= 1.5.7-1),
179 | libpkgconf3 (= 1.8.1-1),
180 | libproc2-0 (= 2:4.0.2-3),
181 | libpsl5 (= 0.21.2-1),
182 | libpython3-stdlib (= 3.11.2-1),
183 | libpython3.11-minimal (= 3.11.2-6+deb12u4),
184 | libpython3.11-stdlib (= 3.11.2-6+deb12u4),
185 | libreadline8 (= 8.2-1.3),
186 | libregexp-ipv6-perl (= 0.03-3),
187 | librhash0 (= 1.4.3-3),
188 | librtmp1 (= 2.4+20151223.gitfa8646d.1-2+b2),
189 | libsasl2-2 (= 2.1.28+dfsg-10),
190 | libsasl2-modules-db (= 2.1.28+dfsg-10),
191 | libseccomp2 (= 2.5.4-1+rpi1+deb12u1),
192 | libselinux1 (= 3.4-1+b2),
193 | libselinux1-dev (= 3.4-1+b2),
194 | libsepol-dev (= 3.4-2.1),
195 | libsepol2 (= 3.4-2.1),
196 | libsmartcols1 (= 2.38.1-5+deb12u3),
197 | libsqlite3-0 (= 3.40.1-2+deb12u1),
198 | libssh2-1 (= 1.10.0-3+b1),
199 | libssl3 (= 3.0.15-1~deb12u1+rpt1),
200 | libstdc++-12-dev (= 12.2.0-14+rpi1),
201 | libstdc++6 (= 12.2.0-14+rpi1),
202 | libsub-override-perl (= 0.09-4),
203 | libsystemd0 (= 252.31-1~deb12u1+rpi1),
204 | libtasn1-6 (= 4.19.0-2),
205 | libtimedate-perl (= 2.3300-2),
206 | libtinfo6 (= 6.4-4),
207 | libtirpc-common (= 1.3.3+ds-1),
208 | libtirpc-dev (= 1.3.3+ds-1),
209 | libtirpc3 (= 1.3.3+ds-1),
210 | libtool (= 2.4.7-7~deb12u1),
211 | libtry-tiny-perl (= 0.31-2),
212 | libubsan1 (= 12.2.0-14+rpi1),
213 | libuchardet0 (= 0.0.7-1),
214 | libudev1 (= 252.31-1~deb12u1+rpi1),
215 | libunistring2 (= 1.0-2),
216 | liburi-perl (= 5.17-1),
217 | libuuid1 (= 2.38.1-5+deb12u3),
218 | libuv1 (= 1.44.2-1+rpi1),
219 | libwww-perl (= 6.68-1),
220 | libwww-robotrules-perl (= 6.02-1),
221 | libxml-parser-perl (= 2.46-4),
222 | libxml2 (= 2.9.14+dfsg-1.3~deb12u1),
223 | libzstd1 (= 1.5.4+dfsg2-5),
224 | linux-libc-dev (= 1:6.6.51-1+rpt3),
225 | login (= 1:4.13+dfsg1-1),
226 | m4 (= 1.4.19-3),
227 | make (= 4.3-4.1),
228 | man-db (= 2.11.2-2),
229 | mawk (= 1.3.4.20200120-3.1),
230 | media-types (= 10.0.0),
231 | ncurses-base (= 6.4-4),
232 | ncurses-bin (= 6.4-4),
233 | netbase (= 6.4),
234 | openssl (= 3.0.15-1~deb12u1+rpt1),
235 | patch (= 2.7.6-7),
236 | perl (= 5.36.0-7+deb12u1),
237 | perl-base (= 5.36.0-7+deb12u1),
238 | perl-modules-5.36 (= 5.36.0-7+deb12u1),
239 | perl-openssl-defaults (= 7+b1),
240 | pkg-config (= 1.8.1-1),
241 | pkgconf (= 1.8.1-1),
242 | pkgconf-bin (= 1.8.1-1),
243 | po-debconf (= 1.0.21+nmu1),
244 | procps (= 2:4.0.2-3),
245 | python3 (= 3.11.2-1),
246 | python3-distutils (= 3.11.2-3),
247 | python3-lib2to3 (= 3.11.2-3),
248 | python3-minimal (= 3.11.2-1),
249 | python3.11 (= 3.11.2-6+deb12u4),
250 | python3.11-minimal (= 3.11.2-6+deb12u4),
251 | readline-common (= 8.2-1.3),
252 | rpcsvc-proto (= 1.4.3-1),
253 | sed (= 4.9-1),
254 | sensible-utils (= 0.0.17+nmu1),
255 | sysvinit-utils (= 3.06-4),
256 | tar (= 1.34+dfsg-1.2),
257 | usr-is-merged (= 37~deb12u1),
258 | util-linux (= 2.38.1-5+deb12u3),
259 | util-linux-extra (= 2.38.1-5+deb12u3),
260 | uuid-dev (= 2.38.1-5+deb12u3),
261 | xz-utils (= 5.4.1-1),
262 | zlib1g (= 1:1.2.13.dfsg-1+rpt1),
263 | zlib1g-dev (= 1:1.2.13.dfsg-1+rpt1)
264 | Environment:
265 | DEB_BUILD_OPTIONS="parallel=4"
266 | LANG="en_GB.UTF-8"
267 | SOURCE_DATE_EPOCH="1396695600"
268 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/cdemu-daemon_3.2.7-1_armhf.changes:
--------------------------------------------------------------------------------
1 | Format: 1.8
2 | Date: Sat, 05 Apr 2014 12:00:00 +0100
3 | Source: cdemu-daemon
4 | Binary: cdemu-daemon cdemu-daemon-dbg
5 | Architecture: armhf
6 | Version: 3.2.7-1
7 | Distribution: debian
8 | Urgency: low
9 | Maintainer: Henrik Stokseth
10 | Changed-By: Henrik Stokseth
11 | Description:
12 | cdemu-daemon - Main CDEmu daemon
13 | cdemu-daemon-dbg - Main CDEmu daemon (debugging symbols)
14 | Closes: 705409
15 | Changes:
16 | cdemu-daemon (3.2.7-1) debian; urgency=low
17 | .
18 | * Initial Release. Closes: #705409
19 | Checksums-Sha1:
20 | 5e677deeb277b181b2e9a55f9ee00726ffc00570 171180 cdemu-daemon-dbg_3.2.7-1_armhf.deb
21 | 44f3b901d88ce1f9a0010fe810e979e21398ee23 8264 cdemu-daemon_3.2.7-1_armhf.buildinfo
22 | db8d54b54c7d2b5f58b4ef904f9ec1ecb051b7b7 57980 cdemu-daemon_3.2.7-1_armhf.deb
23 | Checksums-Sha256:
24 | 7393cd8a6a619fe901af83b0aec71bc8782b5f563ea05f2e0e4bd4d1e0c758f9 171180 cdemu-daemon-dbg_3.2.7-1_armhf.deb
25 | f8f8d801625a8cc8a36970a992af09f98a0de729ecdfff4b8552ae3065b1f9d4 8264 cdemu-daemon_3.2.7-1_armhf.buildinfo
26 | 0650f57291ac647551b679ba6d7a86a63ffb96b811c29f2fcc9fe95f15ef5b8b 57980 cdemu-daemon_3.2.7-1_armhf.deb
27 | Files:
28 | 442f3c876377acee0708512ddb3134a8 171180 debug optional cdemu-daemon-dbg_3.2.7-1_armhf.deb
29 | 249e8a0bbb21eb7e0a80fc6267bc81ee 8264 misc optional cdemu-daemon_3.2.7-1_armhf.buildinfo
30 | 35530e560b5b82c80630205a2b26f927 57980 misc optional cdemu-daemon_3.2.7-1_armhf.deb
31 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/cdemu-daemon_3.2.7-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/cdemu-daemon_3.2.7-1_armhf.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/gir1.2-mirage-3.2_3.2.9-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/gir1.2-mirage-3.2_3.2.9-1_armhf.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/image-analyzer_3.2.6-1_all.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/image-analyzer_3.2.6-1_all.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/image-analyzer_3.2.6-1_armhf.buildinfo:
--------------------------------------------------------------------------------
1 | Format: 1.0
2 | Source: image-analyzer
3 | Binary: image-analyzer
4 | Architecture: all
5 | Version: 3.2.6-1
6 | Checksums-Md5:
7 | fe9700247d7887f643de68dcf00e706c 27600 image-analyzer_3.2.6-1_all.deb
8 | Checksums-Sha1:
9 | 5ae433b63fa1536effbd863bb172270c6b9e76b9 27600 image-analyzer_3.2.6-1_all.deb
10 | Checksums-Sha256:
11 | 15ca6d693a4e387a4e997df8c9d34ad47211ff5f6109ca73fb2bfb2b5d634275 27600 image-analyzer_3.2.6-1_all.deb
12 | Build-Origin: Raspbian
13 | Build-Architecture: armhf
14 | Build-Date: Mon, 07 Apr 2025 19:19:23 -0400
15 | Build-Tainted-By:
16 | merged-usr-via-aliased-dirs
17 | Installed-Build-Depends:
18 | autoconf (= 2.71-3),
19 | automake (= 1:1.16.5-1.3),
20 | autopoint (= 0.21-12),
21 | autotools-dev (= 20220109.1),
22 | base-files (= 12.4+rpi1+deb12u8),
23 | base-passwd (= 3.6.1),
24 | bash (= 5.2.15-2),
25 | binutils (= 2.40-2+rpi2),
26 | binutils-arm-linux-gnueabihf (= 2.40-2+rpi2),
27 | binutils-common (= 2.40-2+rpi2),
28 | bsdextrautils (= 2.38.1-5+deb12u3),
29 | bsdutils (= 1:2.38.1-5+deb12u3),
30 | build-essential (= 12.9),
31 | bzip2 (= 1.0.8-5+b2),
32 | ca-certificates (= 20230311),
33 | cmake (= 3.25.1-1),
34 | cmake-data (= 3.25.1-1),
35 | coreutils (= 9.1-1),
36 | cpp (= 4:12.2.0-3+rpi1),
37 | cpp-12 (= 12.2.0-14+rpi1),
38 | dash (= 0.5.12-2),
39 | debconf (= 1.5.82),
40 | debhelper (= 13.11.4),
41 | debianutils (= 5.7-0.5~deb12u1),
42 | dh-autoreconf (= 20),
43 | dh-python (= 5.20230130+deb12u1),
44 | dh-strip-nondeterminism (= 1.13.1-1),
45 | diffutils (= 1:3.8-4),
46 | dpkg (= 1.22.6~bpo12+rpt3),
47 | dpkg-dev (= 1.22.6~bpo12+rpt3),
48 | dwz (= 0.15-1),
49 | file (= 1:5.44-3),
50 | findutils (= 4.9.0-4),
51 | g++ (= 4:12.2.0-3+rpi1),
52 | g++-12 (= 12.2.0-14+rpi1),
53 | gcc (= 4:12.2.0-3+rpi1),
54 | gcc-12 (= 12.2.0-14+rpi1),
55 | gcc-12-base (= 12.2.0-14+rpi1),
56 | gettext (= 0.21-12),
57 | gettext-base (= 0.21-12),
58 | grep (= 3.8-5),
59 | groff-base (= 1.22.4-10),
60 | gzip (= 1.12-1),
61 | hostname (= 3.23+nmu1),
62 | init-system-helpers (= 1.65.2),
63 | install-info (= 6.8-6+b1),
64 | intltool (= 0.51.0-6),
65 | intltool-debian (= 0.35.0+20060710.6),
66 | libacl1 (= 2.3.1-3),
67 | libarchive-zip-perl (= 1.68-1),
68 | libarchive13 (= 3.6.2-1+deb12u2),
69 | libasan8 (= 12.2.0-14+rpi1),
70 | libatomic1 (= 12.2.0-14+rpi1),
71 | libattr1 (= 1:2.5.1-4),
72 | libaudit-common (= 1:3.0.9-1),
73 | libaudit1 (= 1:3.0.9-1),
74 | libbinutils (= 2.40-2+rpi2),
75 | libblkid1 (= 2.38.1-5+deb12u3),
76 | libbrotli1 (= 1.0.9-2+b3),
77 | libbz2-1.0 (= 1.0.8-5+b2),
78 | libc-bin (= 2.36-9+rpt2+deb12u9),
79 | libc-dev-bin (= 2.36-9+rpt2+deb12u9),
80 | libc6 (= 2.36-9+rpt2+deb12u9),
81 | libc6-dev (= 2.36-9+rpt2+deb12u9),
82 | libcap-ng0 (= 0.8.3-1+b1),
83 | libcap2 (= 1:2.66-4),
84 | libcc1-0 (= 12.2.0-14+rpi1),
85 | libclone-perl (= 0.46-1),
86 | libcom-err2 (= 1.47.0-2),
87 | libcrypt-dev (= 1:4.4.33-2),
88 | libcrypt1 (= 1:4.4.33-2),
89 | libctf-nobfd0 (= 2.40-2+rpi2),
90 | libctf0 (= 2.40-2+rpi2),
91 | libcurl4 (= 7.88.1-10+rpi1+deb12u12),
92 | libdb5.3 (= 5.3.28+dfsg2-1),
93 | libdebconfclient0 (= 0.270),
94 | libdebhelper-perl (= 13.11.4),
95 | libdpkg-perl (= 1.22.6~bpo12+rpt3),
96 | libelf1 (= 0.188-2.1+rpi1),
97 | libencode-locale-perl (= 1.05-3),
98 | libexpat1 (= 2.5.0-1+deb12u1),
99 | libffi8 (= 3.4.4-1),
100 | libfile-listing-perl (= 6.15-1),
101 | libfile-stripnondeterminism-perl (= 1.13.1-1),
102 | libgcc-12-dev (= 12.2.0-14+rpi1),
103 | libgcc-s1 (= 12.2.0-14+rpi1),
104 | libgcrypt20 (= 1.10.1-3),
105 | libgdbm-compat4 (= 1.23-3),
106 | libgdbm6 (= 1.23-3),
107 | libgmp10 (= 2:6.2.1+dfsg1-1.1),
108 | libgnutls30 (= 3.7.9-2+deb12u3),
109 | libgomp1 (= 12.2.0-14+rpi1),
110 | libgpg-error0 (= 1.46-1),
111 | libgssapi-krb5-2 (= 1.20.1-2+deb12u2),
112 | libhogweed6 (= 3.8.1-2),
113 | libhtml-parser-perl (= 3.81-1),
114 | libhtml-tagset-perl (= 3.20-6),
115 | libhtml-tree-perl (= 5.07-3),
116 | libhttp-cookies-perl (= 6.10-1),
117 | libhttp-date-perl (= 6.05-2),
118 | libhttp-message-perl (= 6.44-1),
119 | libhttp-negotiate-perl (= 6.01-2),
120 | libicu72 (= 72.1-3),
121 | libidn2-0 (= 2.3.3-1+b2),
122 | libio-html-perl (= 1.004-3),
123 | libio-socket-ssl-perl (= 2.081-2),
124 | libisl23 (= 0.25-1.1),
125 | libjansson4 (= 2.14-2),
126 | libjsoncpp25 (= 1.9.5-4),
127 | libk5crypto3 (= 1.20.1-2+deb12u2),
128 | libkeyutils1 (= 1.6.3-2),
129 | libkrb5-3 (= 1.20.1-2+deb12u2),
130 | libkrb5support0 (= 1.20.1-2+deb12u2),
131 | libldap-2.5-0 (= 2.5.13+dfsg-5+rpi1),
132 | liblwp-mediatypes-perl (= 6.04-2),
133 | liblwp-protocol-https-perl (= 6.10-1),
134 | liblz4-1 (= 1.9.4-1+rpi1+b1),
135 | liblzma5 (= 5.4.1-1),
136 | libmagic-mgc (= 1:5.44-3),
137 | libmagic1 (= 1:5.44-3),
138 | libmd0 (= 1.0.4-2),
139 | libmount1 (= 2.38.1-5+deb12u3),
140 | libmpc3 (= 1.3.1-1),
141 | libmpfr6 (= 4.2.0-1),
142 | libncursesw6 (= 6.4-4),
143 | libnet-http-perl (= 6.22-1),
144 | libnet-ssleay-perl (= 1.92-2+b2),
145 | libnettle8 (= 3.8.1-2),
146 | libnghttp2-14 (= 1.52.0-1+deb12u2),
147 | libnsl-dev (= 1.3.0-2),
148 | libnsl2 (= 1.3.0-2),
149 | libp11-kit0 (= 0.24.1-2),
150 | libpam-modules (= 1.5.2-6+rpt2+deb12u1),
151 | libpam-modules-bin (= 1.5.2-6+rpt2+deb12u1),
152 | libpam-runtime (= 1.5.2-6+rpt2+deb12u1),
153 | libpam0g (= 1.5.2-6+rpt2+deb12u1),
154 | libpcre2-8-0 (= 10.42-1),
155 | libperl5.36 (= 5.36.0-7+deb12u1),
156 | libpipeline1 (= 1.5.7-1),
157 | libproc2-0 (= 2:4.0.2-3),
158 | libpsl5 (= 0.21.2-1),
159 | libpython3-stdlib (= 3.11.2-1),
160 | libpython3.11-minimal (= 3.11.2-6+deb12u4),
161 | libpython3.11-stdlib (= 3.11.2-6+deb12u4),
162 | libreadline8 (= 8.2-1.3),
163 | libregexp-ipv6-perl (= 0.03-3),
164 | librhash0 (= 1.4.3-3),
165 | librtmp1 (= 2.4+20151223.gitfa8646d.1-2+b2),
166 | libsasl2-2 (= 2.1.28+dfsg-10),
167 | libsasl2-modules-db (= 2.1.28+dfsg-10),
168 | libseccomp2 (= 2.5.4-1+rpi1+deb12u1),
169 | libselinux1 (= 3.4-1+b2),
170 | libsmartcols1 (= 2.38.1-5+deb12u3),
171 | libsqlite3-0 (= 3.40.1-2+deb12u1),
172 | libssh2-1 (= 1.10.0-3+b1),
173 | libssl3 (= 3.0.15-1~deb12u1+rpt1),
174 | libstdc++-12-dev (= 12.2.0-14+rpi1),
175 | libstdc++6 (= 12.2.0-14+rpi1),
176 | libsub-override-perl (= 0.09-4),
177 | libsystemd0 (= 252.31-1~deb12u1+rpi1),
178 | libtasn1-6 (= 4.19.0-2),
179 | libtimedate-perl (= 2.3300-2),
180 | libtinfo6 (= 6.4-4),
181 | libtirpc-common (= 1.3.3+ds-1),
182 | libtirpc-dev (= 1.3.3+ds-1),
183 | libtirpc3 (= 1.3.3+ds-1),
184 | libtool (= 2.4.7-7~deb12u1),
185 | libtry-tiny-perl (= 0.31-2),
186 | libubsan1 (= 12.2.0-14+rpi1),
187 | libuchardet0 (= 0.0.7-1),
188 | libudev1 (= 252.31-1~deb12u1+rpi1),
189 | libunistring2 (= 1.0-2),
190 | liburi-perl (= 5.17-1),
191 | libuuid1 (= 2.38.1-5+deb12u3),
192 | libuv1 (= 1.44.2-1+rpi1),
193 | libwww-perl (= 6.68-1),
194 | libwww-robotrules-perl (= 6.02-1),
195 | libxml-parser-perl (= 2.46-4),
196 | libxml2 (= 2.9.14+dfsg-1.3~deb12u1),
197 | libzstd1 (= 1.5.4+dfsg2-5),
198 | linux-libc-dev (= 1:6.6.51-1+rpt3),
199 | login (= 1:4.13+dfsg1-1),
200 | m4 (= 1.4.19-3),
201 | make (= 4.3-4.1),
202 | man-db (= 2.11.2-2),
203 | mawk (= 1.3.4.20200120-3.1),
204 | media-types (= 10.0.0),
205 | ncurses-base (= 6.4-4),
206 | ncurses-bin (= 6.4-4),
207 | netbase (= 6.4),
208 | openssl (= 3.0.15-1~deb12u1+rpt1),
209 | patch (= 2.7.6-7),
210 | perl (= 5.36.0-7+deb12u1),
211 | perl-base (= 5.36.0-7+deb12u1),
212 | perl-modules-5.36 (= 5.36.0-7+deb12u1),
213 | perl-openssl-defaults (= 7+b1),
214 | po-debconf (= 1.0.21+nmu1),
215 | procps (= 2:4.0.2-3),
216 | python3 (= 3.11.2-1),
217 | python3-distutils (= 3.11.2-3),
218 | python3-lib2to3 (= 3.11.2-3),
219 | python3-minimal (= 3.11.2-1),
220 | python3.11 (= 3.11.2-6+deb12u4),
221 | python3.11-minimal (= 3.11.2-6+deb12u4),
222 | readline-common (= 8.2-1.3),
223 | rpcsvc-proto (= 1.4.3-1),
224 | sed (= 4.9-1),
225 | sensible-utils (= 0.0.17+nmu1),
226 | sysvinit-utils (= 3.06-4),
227 | tar (= 1.34+dfsg-1.2),
228 | usr-is-merged (= 37~deb12u1),
229 | util-linux (= 2.38.1-5+deb12u3),
230 | util-linux-extra (= 2.38.1-5+deb12u3),
231 | xz-utils (= 5.4.1-1),
232 | zlib1g (= 1:1.2.13.dfsg-1+rpt1)
233 | Environment:
234 | DEB_BUILD_OPTIONS="parallel=4"
235 | LANG="en_GB.UTF-8"
236 | SOURCE_DATE_EPOCH="1396695600"
237 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/image-analyzer_3.2.6-1_armhf.changes:
--------------------------------------------------------------------------------
1 | Format: 1.8
2 | Date: Sat, 05 Apr 2014 12:00:00 +0100
3 | Source: image-analyzer
4 | Binary: image-analyzer
5 | Architecture: all
6 | Version: 3.2.6-1
7 | Distribution: debian
8 | Urgency: low
9 | Maintainer: Henrik Stokseth
10 | Changed-By: Henrik Stokseth
11 | Description:
12 | image-analyzer - Mirage Image Analyzer
13 | Closes: 705409
14 | Changes:
15 | image-analyzer (3.2.6-1) debian; urgency=low
16 | .
17 | * Initial Release. Closes: #705409
18 | Checksums-Sha1:
19 | 5ae433b63fa1536effbd863bb172270c6b9e76b9 27600 image-analyzer_3.2.6-1_all.deb
20 | 20bbe37382dc30b0edbfa47fac1af59935e14145 7095 image-analyzer_3.2.6-1_armhf.buildinfo
21 | Checksums-Sha256:
22 | 15ca6d693a4e387a4e997df8c9d34ad47211ff5f6109ca73fb2bfb2b5d634275 27600 image-analyzer_3.2.6-1_all.deb
23 | 936c87103d62f7d437192df4cf756b8fb2e2a670855f521e4cea6898f66d54fc 7095 image-analyzer_3.2.6-1_armhf.buildinfo
24 | Files:
25 | fe9700247d7887f643de68dcf00e706c 27600 utils optional image-analyzer_3.2.6-1_all.deb
26 | 09fd78af8bc710c5d2f8227832ec06c8 7095 utils optional image-analyzer_3.2.6-1_armhf.buildinfo
27 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/libmirage11-dbg_3.2.9-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/libmirage11-dbg_3.2.9-1_armhf.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/libmirage11-dev_3.2.9-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/libmirage11-dev_3.2.9-1_armhf.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/libmirage11-doc_3.2.9-1_all.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/libmirage11-doc_3.2.9-1_all.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/libmirage11_3.2.9-1_armhf.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/libmirage11_3.2.9-1_armhf.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/libmirage_3.2.9-1_armhf.buildinfo:
--------------------------------------------------------------------------------
1 | Format: 1.0
2 | Source: libmirage
3 | Binary: gir1.2-mirage-3.2 libmirage11 libmirage11-dbg libmirage11-dev libmirage11-doc
4 | Architecture: all armhf
5 | Version: 3.2.9-1
6 | Checksums-Md5:
7 | fd2d76818c318169626a17be0be9f21e 13308 gir1.2-mirage-3.2_3.2.9-1_armhf.deb
8 | af3b08fa72eac2bf2ffaa235de82d089 716256 libmirage11-dbg_3.2.9-1_armhf.deb
9 | 2736b671d20faa113b9a3ea6de7c60f2 57144 libmirage11-dev_3.2.9-1_armhf.deb
10 | d5c62535a8de34d4b93025dc3697c80f 72184 libmirage11-doc_3.2.9-1_all.deb
11 | 02e636c24de215f3eb3a025f2b75f01b 189520 libmirage11_3.2.9-1_armhf.deb
12 | Checksums-Sha1:
13 | 34b0b3f97234e4dfa8991d000c0d323daa415cf0 13308 gir1.2-mirage-3.2_3.2.9-1_armhf.deb
14 | b9270f115457e5e17759630bd2aa902518de85e3 716256 libmirage11-dbg_3.2.9-1_armhf.deb
15 | 202759f4be8681edab6b192a0b82c0ce79fdc718 57144 libmirage11-dev_3.2.9-1_armhf.deb
16 | c6c9120f11d3cb75b107efd282dd48ddda1c7bc0 72184 libmirage11-doc_3.2.9-1_all.deb
17 | d4f5aad7d6cb8673fb901933628db20b987e2ad8 189520 libmirage11_3.2.9-1_armhf.deb
18 | Checksums-Sha256:
19 | a14cdec94b9062324d27cb0439b4a52f16e296403c8840c138840485d651e9ee 13308 gir1.2-mirage-3.2_3.2.9-1_armhf.deb
20 | ba82d4f8c635780537a61dedbffe8b72ea15579a179d74e6a00e806a99ce726d 716256 libmirage11-dbg_3.2.9-1_armhf.deb
21 | 587c9ac6cde66abea9cb11ae705d3d0e75aaf6f30cce5316bf88fcc42bbd15d9 57144 libmirage11-dev_3.2.9-1_armhf.deb
22 | 1ddef5680b1d2dcd26995742e7746067bb61eb3069a2f3a36230935db1944d28 72184 libmirage11-doc_3.2.9-1_all.deb
23 | 69a42d261ad0687eb4d3ccd4600f1d1155f1dbcce14cc05cf41ab1301418a380 189520 libmirage11_3.2.9-1_armhf.deb
24 | Build-Origin: Raspbian
25 | Build-Architecture: armhf
26 | Build-Date: Mon, 07 Apr 2025 19:09:58 -0400
27 | Build-Tainted-By:
28 | merged-usr-via-aliased-dirs
29 | Installed-Build-Depends:
30 | autoconf (= 2.71-3),
31 | automake (= 1:1.16.5-1.3),
32 | autopoint (= 0.21-12),
33 | autotools-dev (= 20220109.1),
34 | base-files (= 12.4+rpi1+deb12u8),
35 | base-passwd (= 3.6.1),
36 | bash (= 5.2.15-2),
37 | binutils (= 2.40-2+rpi2),
38 | binutils-arm-linux-gnueabihf (= 2.40-2+rpi2),
39 | binutils-common (= 2.40-2+rpi2),
40 | bsdextrautils (= 2.38.1-5+deb12u3),
41 | bsdutils (= 1:2.38.1-5+deb12u3),
42 | build-essential (= 12.9),
43 | bzip2 (= 1.0.8-5+b2),
44 | ca-certificates (= 20230311),
45 | cmake (= 3.25.1-1),
46 | cmake-data (= 3.25.1-1),
47 | coreutils (= 9.1-1),
48 | cpp (= 4:12.2.0-3+rpi1),
49 | cpp-12 (= 12.2.0-14+rpi1),
50 | dash (= 0.5.12-2),
51 | debconf (= 1.5.82),
52 | debhelper (= 13.11.4),
53 | debianutils (= 5.7-0.5~deb12u1),
54 | dh-autoreconf (= 20),
55 | dh-strip-nondeterminism (= 1.13.1-1),
56 | diffutils (= 1:3.8-4),
57 | docbook (= 4.5-10),
58 | docbook-to-man (= 1:2.0.0-45),
59 | docbook-xml (= 4.5-12),
60 | docbook-xsl (= 1.79.2+dfsg-2),
61 | dpkg (= 1.22.6~bpo12+rpt3),
62 | dpkg-dev (= 1.22.6~bpo12+rpt3),
63 | dwz (= 0.15-1),
64 | file (= 1:5.44-3),
65 | findutils (= 4.9.0-4),
66 | g++ (= 4:12.2.0-3+rpi1),
67 | g++-12 (= 12.2.0-14+rpi1),
68 | gcc (= 4:12.2.0-3+rpi1),
69 | gcc-12 (= 12.2.0-14+rpi1),
70 | gcc-12-base (= 12.2.0-14+rpi1),
71 | gettext (= 0.21-12),
72 | gettext-base (= 0.21-12),
73 | gir1.2-freedesktop (= 1.74.0-3+b1),
74 | gir1.2-glib-2.0 (= 1.74.0-3+b1),
75 | gobject-introspection (= 1.74.0-3+b1),
76 | grep (= 3.8-5),
77 | groff-base (= 1.22.4-10),
78 | gtk-doc-tools (= 1.33.2-1),
79 | gzip (= 1.12-1),
80 | hostname (= 3.23+nmu1),
81 | init-system-helpers (= 1.65.2),
82 | install-info (= 6.8-6+b1),
83 | intltool (= 0.51.0-6),
84 | intltool-debian (= 0.35.0+20060710.6),
85 | libacl1 (= 2.3.1-3),
86 | libarchive-zip-perl (= 1.68-1),
87 | libarchive13 (= 3.6.2-1+deb12u2),
88 | libasan8 (= 12.2.0-14+rpi1),
89 | libatomic1 (= 12.2.0-14+rpi1),
90 | libattr1 (= 1:2.5.1-4),
91 | libaudit-common (= 1:3.0.9-1),
92 | libaudit1 (= 1:3.0.9-1),
93 | libbinutils (= 2.40-2+rpi2),
94 | libblkid-dev (= 2.38.1-5+deb12u3),
95 | libblkid1 (= 2.38.1-5+deb12u3),
96 | libbrotli1 (= 1.0.9-2+b3),
97 | libbz2-1.0 (= 1.0.8-5+b2),
98 | libbz2-dev (= 1.0.8-5+b2),
99 | libc-bin (= 2.36-9+rpt2+deb12u9),
100 | libc-dev-bin (= 2.36-9+rpt2+deb12u9),
101 | libc6 (= 2.36-9+rpt2+deb12u9),
102 | libc6-dev (= 2.36-9+rpt2+deb12u9),
103 | libcap-ng0 (= 0.8.3-1+b1),
104 | libcap2 (= 1:2.66-4),
105 | libcc1-0 (= 12.2.0-14+rpi1),
106 | libclone-perl (= 0.46-1),
107 | libcom-err2 (= 1.47.0-2),
108 | libcrypt-dev (= 1:4.4.33-2),
109 | libcrypt1 (= 1:4.4.33-2),
110 | libctf-nobfd0 (= 2.40-2+rpi2),
111 | libctf0 (= 2.40-2+rpi2),
112 | libcurl4 (= 7.88.1-10+rpi1+deb12u12),
113 | libdb5.3 (= 5.3.28+dfsg2-1),
114 | libdebconfclient0 (= 0.270),
115 | libdebhelper-perl (= 13.11.4),
116 | libdpkg-perl (= 1.22.6~bpo12+rpt3),
117 | libelf1 (= 0.188-2.1+rpi1),
118 | libencode-locale-perl (= 1.05-3),
119 | libexpat1 (= 2.5.0-1+deb12u1),
120 | libffi-dev (= 3.4.4-1),
121 | libffi8 (= 3.4.4-1),
122 | libfile-listing-perl (= 6.15-1),
123 | libfile-stripnondeterminism-perl (= 1.13.1-1),
124 | libflac-dev (= 1.4.2+ds-2),
125 | libflac12 (= 1.4.2+ds-2),
126 | libgcc-12-dev (= 12.2.0-14+rpi1),
127 | libgcc-s1 (= 12.2.0-14+rpi1),
128 | libgcrypt20 (= 1.10.1-3),
129 | libgdbm-compat4 (= 1.23-3),
130 | libgdbm6 (= 1.23-3),
131 | libgirepository-1.0-1 (= 1.74.0-3+b1),
132 | libgirepository1.0-dev (= 1.74.0-3+b1),
133 | libglib2.0-0 (= 2.74.6-2+deb12u5),
134 | libglib2.0-bin (= 2.74.6-2+deb12u5),
135 | libglib2.0-data (= 2.74.6-2+deb12u5),
136 | libglib2.0-dev (= 2.74.6-2+deb12u5),
137 | libglib2.0-dev-bin (= 2.74.6-2+deb12u5),
138 | libgmp10 (= 2:6.2.1+dfsg1-1.1),
139 | libgnutls30 (= 3.7.9-2+deb12u3),
140 | libgomp1 (= 12.2.0-14+rpi1),
141 | libgpg-error0 (= 1.46-1),
142 | libgssapi-krb5-2 (= 1.20.1-2+deb12u2),
143 | libhogweed6 (= 3.8.1-2),
144 | libhtml-parser-perl (= 3.81-1),
145 | libhtml-tagset-perl (= 3.20-6),
146 | libhtml-tree-perl (= 5.07-3),
147 | libhttp-cookies-perl (= 6.10-1),
148 | libhttp-date-perl (= 6.05-2),
149 | libhttp-message-perl (= 6.44-1),
150 | libhttp-negotiate-perl (= 6.01-2),
151 | libicu72 (= 72.1-3),
152 | libidn2-0 (= 2.3.3-1+b2),
153 | libio-html-perl (= 1.004-3),
154 | libio-socket-ssl-perl (= 2.081-2),
155 | libisl23 (= 0.25-1.1),
156 | libjansson4 (= 2.14-2),
157 | libjsoncpp25 (= 1.9.5-4),
158 | libk5crypto3 (= 1.20.1-2+deb12u2),
159 | libkeyutils1 (= 1.6.3-2),
160 | libkrb5-3 (= 1.20.1-2+deb12u2),
161 | libkrb5support0 (= 1.20.1-2+deb12u2),
162 | libldap-2.5-0 (= 2.5.13+dfsg-5+rpi1),
163 | liblwp-mediatypes-perl (= 6.04-2),
164 | liblwp-protocol-https-perl (= 6.10-1),
165 | liblz4-1 (= 1.9.4-1+rpi1+b1),
166 | liblzma-dev (= 5.4.1-1),
167 | liblzma5 (= 5.4.1-1),
168 | libmagic-mgc (= 1:5.44-3),
169 | libmagic1 (= 1:5.44-3),
170 | libmd0 (= 1.0.4-2),
171 | libmount-dev (= 2.38.1-5+deb12u3),
172 | libmount1 (= 2.38.1-5+deb12u3),
173 | libmp3lame0 (= 3.100-6),
174 | libmpc3 (= 1.3.1-1),
175 | libmpfr6 (= 4.2.0-1),
176 | libmpg123-0 (= 1.31.2-1+deb12u1),
177 | libmpg123-dev (= 1.31.2-1+deb12u1),
178 | libncursesw6 (= 6.4-4),
179 | libnet-http-perl (= 6.22-1),
180 | libnet-ssleay-perl (= 1.92-2+b2),
181 | libnettle8 (= 3.8.1-2),
182 | libnghttp2-14 (= 1.52.0-1+deb12u2),
183 | libnsl-dev (= 1.3.0-2),
184 | libnsl2 (= 1.3.0-2),
185 | libogg-dev (= 1.3.5-3),
186 | libogg0 (= 1.3.5-3),
187 | libopus-dev (= 1.3.1-3),
188 | libopus0 (= 1.3.1-3),
189 | libosp5 (= 1.5.2-13),
190 | libout123-0 (= 1.31.2-1+deb12u1),
191 | libp11-kit0 (= 0.24.1-2),
192 | libpam-modules (= 1.5.2-6+rpt2+deb12u1),
193 | libpam-modules-bin (= 1.5.2-6+rpt2+deb12u1),
194 | libpam-runtime (= 1.5.2-6+rpt2+deb12u1),
195 | libpam0g (= 1.5.2-6+rpt2+deb12u1),
196 | libpcre2-16-0 (= 10.42-1),
197 | libpcre2-32-0 (= 10.42-1),
198 | libpcre2-8-0 (= 10.42-1),
199 | libpcre2-dev (= 10.42-1),
200 | libpcre2-posix3 (= 10.42-1),
201 | libperl5.36 (= 5.36.0-7+deb12u1),
202 | libpipeline1 (= 1.5.7-1),
203 | libpkgconf3 (= 1.8.1-1),
204 | libproc2-0 (= 2:4.0.2-3),
205 | libpsl5 (= 0.21.2-1),
206 | libpython3-stdlib (= 3.11.2-1),
207 | libpython3.11-minimal (= 3.11.2-6+deb12u4),
208 | libpython3.11-stdlib (= 3.11.2-6+deb12u4),
209 | libreadline8 (= 8.2-1.3),
210 | libregexp-ipv6-perl (= 0.03-3),
211 | librhash0 (= 1.4.3-3),
212 | librtmp1 (= 2.4+20151223.gitfa8646d.1-2+b2),
213 | libsamplerate0 (= 0.2.2-3),
214 | libsamplerate0-dev (= 0.2.2-3),
215 | libsasl2-2 (= 2.1.28+dfsg-10),
216 | libsasl2-modules-db (= 2.1.28+dfsg-10),
217 | libseccomp2 (= 2.5.4-1+rpi1+deb12u1),
218 | libselinux1 (= 3.4-1+b2),
219 | libselinux1-dev (= 3.4-1+b2),
220 | libsepol-dev (= 3.4-2.1),
221 | libsepol2 (= 3.4-2.1),
222 | libsmartcols1 (= 2.38.1-5+deb12u3),
223 | libsndfile1 (= 1.2.0-1),
224 | libsndfile1-dev (= 1.2.0-1),
225 | libsqlite3-0 (= 3.40.1-2+deb12u1),
226 | libssh2-1 (= 1.10.0-3+b1),
227 | libssl3 (= 3.0.15-1~deb12u1+rpt1),
228 | libstdc++-12-dev (= 12.2.0-14+rpi1),
229 | libstdc++6 (= 12.2.0-14+rpi1),
230 | libsub-override-perl (= 0.09-4),
231 | libsyn123-0 (= 1.31.2-1+deb12u1),
232 | libsystemd0 (= 252.31-1~deb12u1+rpi1),
233 | libtasn1-6 (= 4.19.0-2),
234 | libtimedate-perl (= 2.3300-2),
235 | libtinfo6 (= 6.4-4),
236 | libtirpc-common (= 1.3.3+ds-1),
237 | libtirpc-dev (= 1.3.3+ds-1),
238 | libtirpc3 (= 1.3.3+ds-1),
239 | libtool (= 2.4.7-7~deb12u1),
240 | libtry-tiny-perl (= 0.31-2),
241 | libubsan1 (= 12.2.0-14+rpi1),
242 | libuchardet0 (= 0.0.7-1),
243 | libudev1 (= 252.31-1~deb12u1+rpi1),
244 | libunistring2 (= 1.0-2),
245 | liburi-perl (= 5.17-1),
246 | libuuid1 (= 2.38.1-5+deb12u3),
247 | libuv1 (= 1.44.2-1+rpi1),
248 | libvorbis-dev (= 1.3.7-1),
249 | libvorbis0a (= 1.3.7-1),
250 | libvorbisenc2 (= 1.3.7-1),
251 | libvorbisfile3 (= 1.3.7-1),
252 | libwww-perl (= 6.68-1),
253 | libwww-robotrules-perl (= 6.02-1),
254 | libxml-parser-perl (= 2.46-4),
255 | libxml2 (= 2.9.14+dfsg-1.3~deb12u1),
256 | libxslt1.1 (= 1.1.35-1+deb12u1),
257 | libzstd1 (= 1.5.4+dfsg2-5),
258 | linux-libc-dev (= 1:6.6.51-1+rpt3),
259 | login (= 1:4.13+dfsg1-1),
260 | m4 (= 1.4.19-3),
261 | make (= 4.3-4.1),
262 | man-db (= 2.11.2-2),
263 | mawk (= 1.3.4.20200120-3.1),
264 | media-types (= 10.0.0),
265 | ncurses-base (= 6.4-4),
266 | ncurses-bin (= 6.4-4),
267 | netbase (= 6.4),
268 | opensp (= 1.5.2-13),
269 | openssl (= 3.0.15-1~deb12u1+rpt1),
270 | patch (= 2.7.6-7),
271 | perl (= 5.36.0-7+deb12u1),
272 | perl-base (= 5.36.0-7+deb12u1),
273 | perl-modules-5.36 (= 5.36.0-7+deb12u1),
274 | perl-openssl-defaults (= 7+b1),
275 | pkg-config (= 1.8.1-1),
276 | pkgconf (= 1.8.1-1),
277 | pkgconf-bin (= 1.8.1-1),
278 | po-debconf (= 1.0.21+nmu1),
279 | procps (= 2:4.0.2-3),
280 | python3 (= 3.11.2-1),
281 | python3-distutils (= 3.11.2-3),
282 | python3-lib2to3 (= 3.11.2-3),
283 | python3-lxml (= 4.9.2-1),
284 | python3-mako (= 1.2.4+ds-1),
285 | python3-markdown (= 3.4.1-2),
286 | python3-markupsafe (= 2.1.2-1),
287 | python3-minimal (= 3.11.2-1),
288 | python3-pkg-resources (= 66.1.1-1),
289 | python3-pygments (= 2.14.0+dfsg-1),
290 | python3.11 (= 3.11.2-6+deb12u4),
291 | python3.11-minimal (= 3.11.2-6+deb12u4),
292 | readline-common (= 8.2-1.3),
293 | rpcsvc-proto (= 1.4.3-1),
294 | sed (= 4.9-1),
295 | sensible-utils (= 0.0.17+nmu1),
296 | sgml-base (= 1.31),
297 | sgml-data (= 2.0.11+nmu1),
298 | sysvinit-utils (= 3.06-4),
299 | tar (= 1.34+dfsg-1.2),
300 | usr-is-merged (= 37~deb12u1),
301 | util-linux (= 2.38.1-5+deb12u3),
302 | util-linux-extra (= 2.38.1-5+deb12u3),
303 | uuid-dev (= 2.38.1-5+deb12u3),
304 | xml-core (= 0.18+nmu1),
305 | xsltproc (= 1.1.35-1+deb12u1),
306 | xz-utils (= 5.4.1-1),
307 | zlib1g (= 1:1.2.13.dfsg-1+rpt1),
308 | zlib1g-dev (= 1:1.2.13.dfsg-1+rpt1)
309 | Environment:
310 | DEB_BUILD_OPTIONS="parallel=4"
311 | LANG="en_GB.UTF-8"
312 | SOURCE_DATE_EPOCH="1396695600"
313 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/libmirage_3.2.9-1_armhf.changes:
--------------------------------------------------------------------------------
1 | Format: 1.8
2 | Date: Sat, 05 Apr 2014 12:00:00 +0100
3 | Source: libmirage
4 | Binary: gir1.2-mirage-3.2 libmirage11 libmirage11-dbg libmirage11-dev libmirage11-doc
5 | Architecture: armhf all
6 | Version: 3.2.9-1
7 | Distribution: debian
8 | Urgency: low
9 | Maintainer: Henrik Stokseth
10 | Changed-By: Henrik Stokseth
11 | Description:
12 | gir1.2-mirage-3.2 - CD-ROM image access library (typelib files)
13 | libmirage11 - CD-ROM image access library
14 | libmirage11-dbg - CD-ROM image access library (debugging symbols)
15 | libmirage11-dev - CD-ROM image access library (development files)
16 | libmirage11-doc - CD-ROM image access library (documentation)
17 | Closes: 705409
18 | Changes:
19 | libmirage (3.2.9-1) debian; urgency=low
20 | .
21 | * Initial Release. Closes: #705409
22 | Checksums-Sha1:
23 | 34b0b3f97234e4dfa8991d000c0d323daa415cf0 13308 gir1.2-mirage-3.2_3.2.9-1_armhf.deb
24 | b9270f115457e5e17759630bd2aa902518de85e3 716256 libmirage11-dbg_3.2.9-1_armhf.deb
25 | 202759f4be8681edab6b192a0b82c0ce79fdc718 57144 libmirage11-dev_3.2.9-1_armhf.deb
26 | c6c9120f11d3cb75b107efd282dd48ddda1c7bc0 72184 libmirage11-doc_3.2.9-1_all.deb
27 | d4f5aad7d6cb8673fb901933628db20b987e2ad8 189520 libmirage11_3.2.9-1_armhf.deb
28 | d5a6d016c5571720922f81c5bb952524ae1d33d5 10143 libmirage_3.2.9-1_armhf.buildinfo
29 | Checksums-Sha256:
30 | a14cdec94b9062324d27cb0439b4a52f16e296403c8840c138840485d651e9ee 13308 gir1.2-mirage-3.2_3.2.9-1_armhf.deb
31 | ba82d4f8c635780537a61dedbffe8b72ea15579a179d74e6a00e806a99ce726d 716256 libmirage11-dbg_3.2.9-1_armhf.deb
32 | 587c9ac6cde66abea9cb11ae705d3d0e75aaf6f30cce5316bf88fcc42bbd15d9 57144 libmirage11-dev_3.2.9-1_armhf.deb
33 | 1ddef5680b1d2dcd26995742e7746067bb61eb3069a2f3a36230935db1944d28 72184 libmirage11-doc_3.2.9-1_all.deb
34 | 69a42d261ad0687eb4d3ccd4600f1d1155f1dbcce14cc05cf41ab1301418a380 189520 libmirage11_3.2.9-1_armhf.deb
35 | 371a8c2c296d8abb122a59a25babd27b6861ce42c645cb6c5bdcd6d9e574f0c1 10143 libmirage_3.2.9-1_armhf.buildinfo
36 | Files:
37 | fd2d76818c318169626a17be0be9f21e 13308 introspection optional gir1.2-mirage-3.2_3.2.9-1_armhf.deb
38 | af3b08fa72eac2bf2ffaa235de82d089 716256 debug optional libmirage11-dbg_3.2.9-1_armhf.deb
39 | 2736b671d20faa113b9a3ea6de7c60f2 57144 libdevel optional libmirage11-dev_3.2.9-1_armhf.deb
40 | d5c62535a8de34d4b93025dc3697c80f 72184 doc optional libmirage11-doc_3.2.9-1_all.deb
41 | 02e636c24de215f3eb3a025f2b75f01b 189520 libs optional libmirage11_3.2.9-1_armhf.deb
42 | 2e868e790f1c857ea1c69ded4c2cce3a 10143 libs optional libmirage_3.2.9-1_armhf.buildinfo
43 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/vhba-dkms_20240917-1_all.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/build/cdemu/deb-packages/vhba-dkms_20240917-1_all.deb
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/vhba-module_20240917-1_armhf.buildinfo:
--------------------------------------------------------------------------------
1 | Format: 1.0
2 | Source: vhba-module
3 | Binary: vhba-dkms
4 | Architecture: all
5 | Version: 20240917-1
6 | Checksums-Md5:
7 | d9185c73e8a8dd680e604ff5a6d3ba1e 10496 vhba-dkms_20240917-1_all.deb
8 | Checksums-Sha1:
9 | 5709dbb782a6756055d5b864c2ceb59eb53ae8a1 10496 vhba-dkms_20240917-1_all.deb
10 | Checksums-Sha256:
11 | 791d116f161d261e68badf255d7110c17a7fe2111880ee76968c6442ba1ca392 10496 vhba-dkms_20240917-1_all.deb
12 | Build-Origin: Raspbian
13 | Build-Architecture: armhf
14 | Build-Date: Mon, 07 Apr 2025 19:15:36 -0400
15 | Build-Tainted-By:
16 | merged-usr-via-aliased-dirs
17 | Installed-Build-Depends:
18 | autoconf (= 2.71-3),
19 | automake (= 1:1.16.5-1.3),
20 | autopoint (= 0.21-12),
21 | autotools-dev (= 20220109.1),
22 | base-files (= 12.4+rpi1+deb12u8),
23 | base-passwd (= 3.6.1),
24 | bash (= 5.2.15-2),
25 | binutils (= 2.40-2+rpi2),
26 | binutils-arm-linux-gnueabihf (= 2.40-2+rpi2),
27 | binutils-common (= 2.40-2+rpi2),
28 | bsdextrautils (= 2.38.1-5+deb12u3),
29 | bsdutils (= 1:2.38.1-5+deb12u3),
30 | build-essential (= 12.9),
31 | bzip2 (= 1.0.8-5+b2),
32 | coreutils (= 9.1-1),
33 | cpp (= 4:12.2.0-3+rpi1),
34 | cpp-12 (= 12.2.0-14+rpi1),
35 | dash (= 0.5.12-2),
36 | debconf (= 1.5.82),
37 | debhelper (= 13.11.4),
38 | debianutils (= 5.7-0.5~deb12u1),
39 | dh-autoreconf (= 20),
40 | dh-dkms (= 3.0.10-8+deb12u1),
41 | dh-strip-nondeterminism (= 1.13.1-1),
42 | diffutils (= 1:3.8-4),
43 | dkms (= 3.0.10-8+deb12u1),
44 | dpkg (= 1.22.6~bpo12+rpt3),
45 | dpkg-dev (= 1.22.6~bpo12+rpt3),
46 | dwz (= 0.15-1),
47 | file (= 1:5.44-3),
48 | findutils (= 4.9.0-4),
49 | g++ (= 4:12.2.0-3+rpi1),
50 | g++-12 (= 12.2.0-14+rpi1),
51 | gcc (= 4:12.2.0-3+rpi1),
52 | gcc-12 (= 12.2.0-14+rpi1),
53 | gcc-12-base (= 12.2.0-14+rpi1),
54 | gettext (= 0.21-12),
55 | gettext-base (= 0.21-12),
56 | grep (= 3.8-5),
57 | groff-base (= 1.22.4-10),
58 | gzip (= 1.12-1),
59 | hostname (= 3.23+nmu1),
60 | init-system-helpers (= 1.65.2),
61 | install-info (= 6.8-6+b1),
62 | intltool-debian (= 0.35.0+20060710.6),
63 | kmod (= 30+20221128-1),
64 | libacl1 (= 2.3.1-3),
65 | libarchive-zip-perl (= 1.68-1),
66 | libasan8 (= 12.2.0-14+rpi1),
67 | libatomic1 (= 12.2.0-14+rpi1),
68 | libattr1 (= 1:2.5.1-4),
69 | libaudit-common (= 1:3.0.9-1),
70 | libaudit1 (= 1:3.0.9-1),
71 | libbinutils (= 2.40-2+rpi2),
72 | libblkid1 (= 2.38.1-5+deb12u3),
73 | libbz2-1.0 (= 1.0.8-5+b2),
74 | libc-bin (= 2.36-9+rpt2+deb12u9),
75 | libc-dev-bin (= 2.36-9+rpt2+deb12u9),
76 | libc6 (= 2.36-9+rpt2+deb12u9),
77 | libc6-dev (= 2.36-9+rpt2+deb12u9),
78 | libcap-ng0 (= 0.8.3-1+b1),
79 | libcap2 (= 1:2.66-4),
80 | libcc1-0 (= 12.2.0-14+rpi1),
81 | libcom-err2 (= 1.47.0-2),
82 | libcrypt-dev (= 1:4.4.33-2),
83 | libcrypt1 (= 1:4.4.33-2),
84 | libctf-nobfd0 (= 2.40-2+rpi2),
85 | libctf0 (= 2.40-2+rpi2),
86 | libdb5.3 (= 5.3.28+dfsg2-1),
87 | libdebconfclient0 (= 0.270),
88 | libdebhelper-perl (= 13.11.4),
89 | libdpkg-perl (= 1.22.6~bpo12+rpt3),
90 | libelf1 (= 0.188-2.1+rpi1),
91 | libfile-stripnondeterminism-perl (= 1.13.1-1),
92 | libgcc-12-dev (= 12.2.0-14+rpi1),
93 | libgcc-s1 (= 12.2.0-14+rpi1),
94 | libgcrypt20 (= 1.10.1-3),
95 | libgdbm-compat4 (= 1.23-3),
96 | libgdbm6 (= 1.23-3),
97 | libgmp10 (= 2:6.2.1+dfsg1-1.1),
98 | libgomp1 (= 12.2.0-14+rpi1),
99 | libgpg-error0 (= 1.46-1),
100 | libgssapi-krb5-2 (= 1.20.1-2+deb12u2),
101 | libicu72 (= 72.1-3),
102 | libisl23 (= 0.25-1.1),
103 | libjansson4 (= 2.14-2),
104 | libk5crypto3 (= 1.20.1-2+deb12u2),
105 | libkeyutils1 (= 1.6.3-2),
106 | libkmod2 (= 30+20221128-1),
107 | libkrb5-3 (= 1.20.1-2+deb12u2),
108 | libkrb5support0 (= 1.20.1-2+deb12u2),
109 | liblz4-1 (= 1.9.4-1+rpi1+b1),
110 | liblzma5 (= 5.4.1-1),
111 | libmagic-mgc (= 1:5.44-3),
112 | libmagic1 (= 1:5.44-3),
113 | libmd0 (= 1.0.4-2),
114 | libmount1 (= 2.38.1-5+deb12u3),
115 | libmpc3 (= 1.3.1-1),
116 | libmpfr6 (= 4.2.0-1),
117 | libnsl-dev (= 1.3.0-2),
118 | libnsl2 (= 1.3.0-2),
119 | libpam-modules (= 1.5.2-6+rpt2+deb12u1),
120 | libpam-modules-bin (= 1.5.2-6+rpt2+deb12u1),
121 | libpam-runtime (= 1.5.2-6+rpt2+deb12u1),
122 | libpam0g (= 1.5.2-6+rpt2+deb12u1),
123 | libpcre2-8-0 (= 10.42-1),
124 | libperl5.36 (= 5.36.0-7+deb12u1),
125 | libpipeline1 (= 1.5.7-1),
126 | libseccomp2 (= 2.5.4-1+rpi1+deb12u1),
127 | libselinux1 (= 3.4-1+b2),
128 | libsmartcols1 (= 2.38.1-5+deb12u3),
129 | libssl3 (= 3.0.15-1~deb12u1+rpt1),
130 | libstdc++-12-dev (= 12.2.0-14+rpi1),
131 | libstdc++6 (= 12.2.0-14+rpi1),
132 | libsub-override-perl (= 0.09-4),
133 | libsystemd0 (= 252.31-1~deb12u1+rpi1),
134 | libtinfo6 (= 6.4-4),
135 | libtirpc-common (= 1.3.3+ds-1),
136 | libtirpc-dev (= 1.3.3+ds-1),
137 | libtirpc3 (= 1.3.3+ds-1),
138 | libtool (= 2.4.7-7~deb12u1),
139 | libubsan1 (= 12.2.0-14+rpi1),
140 | libuchardet0 (= 0.0.7-1),
141 | libudev1 (= 252.31-1~deb12u1+rpi1),
142 | libunistring2 (= 1.0-2),
143 | libuuid1 (= 2.38.1-5+deb12u3),
144 | libxml2 (= 2.9.14+dfsg-1.3~deb12u1),
145 | libzstd1 (= 1.5.4+dfsg2-5),
146 | linux-libc-dev (= 1:6.6.51-1+rpt3),
147 | login (= 1:4.13+dfsg1-1),
148 | lsb-release (= 12.0-1),
149 | m4 (= 1.4.19-3),
150 | make (= 4.3-4.1),
151 | man-db (= 2.11.2-2),
152 | mawk (= 1.3.4.20200120-3.1),
153 | ncurses-base (= 6.4-4),
154 | ncurses-bin (= 6.4-4),
155 | patch (= 2.7.6-7),
156 | perl (= 5.36.0-7+deb12u1),
157 | perl-base (= 5.36.0-7+deb12u1),
158 | perl-modules-5.36 (= 5.36.0-7+deb12u1),
159 | po-debconf (= 1.0.21+nmu1),
160 | rpcsvc-proto (= 1.4.3-1),
161 | sed (= 4.9-1),
162 | sensible-utils (= 0.0.17+nmu1),
163 | sysvinit-utils (= 3.06-4),
164 | tar (= 1.34+dfsg-1.2),
165 | usr-is-merged (= 37~deb12u1),
166 | util-linux (= 2.38.1-5+deb12u3),
167 | util-linux-extra (= 2.38.1-5+deb12u3),
168 | xz-utils (= 5.4.1-1),
169 | zlib1g (= 1:1.2.13.dfsg-1+rpt1)
170 | Environment:
171 | DEB_BUILD_OPTIONS="parallel=4"
172 | LANG="en_GB.UTF-8"
173 | SOURCE_DATE_EPOCH="1396695600"
174 |
--------------------------------------------------------------------------------
/build/cdemu/deb-packages/vhba-module_20240917-1_armhf.changes:
--------------------------------------------------------------------------------
1 | Format: 1.8
2 | Date: Sat, 05 Apr 2014 12:00:00 +0100
3 | Source: vhba-module
4 | Binary: vhba-dkms
5 | Architecture: all
6 | Version: 20240917-1
7 | Distribution: debian
8 | Urgency: low
9 | Maintainer: Henrik Stokseth
10 | Changed-By: Henrik Stokseth
11 | Description:
12 | vhba-dkms - VHBA virtual host bus adapter module
13 | Closes: 705409
14 | Changes:
15 | vhba-module (20240917-1) debian; urgency=low
16 | .
17 | * Initial Release. Closes: #705409
18 | Checksums-Sha1:
19 | 5709dbb782a6756055d5b864c2ceb59eb53ae8a1 10496 vhba-dkms_20240917-1_all.deb
20 | b2a1425757bc9d3cbb8612bd4ca6d7784be180cb 5096 vhba-module_20240917-1_armhf.buildinfo
21 | Checksums-Sha256:
22 | 791d116f161d261e68badf255d7110c17a7fe2111880ee76968c6442ba1ca392 10496 vhba-dkms_20240917-1_all.deb
23 | b5a18968094da77afb73b8176c2b5fcf002999aef1e7964a1cbacd1731739db7 5096 vhba-module_20240917-1_armhf.buildinfo
24 | Files:
25 | d9185c73e8a8dd680e604ff5a6d3ba1e 10496 misc optional vhba-dkms_20240917-1_all.deb
26 | 76eaafcc072029d4b25db17c25c04342 5096 misc optional vhba-module_20240917-1_armhf.buildinfo
27 |
--------------------------------------------------------------------------------
/build/cdemu/etc-pulse-client.conf:
--------------------------------------------------------------------------------
1 | # This file is part of PulseAudio.
2 | #
3 | # PulseAudio is free software; you can redistribute it and/or modify
4 | # it under the terms of the GNU Lesser General Public License as published by
5 | # the Free Software Foundation; either version 2 of the License, or
6 | # (at your option) any later version.
7 | #
8 | # PulseAudio is distributed in the hope that it will be useful, but
9 | # WITHOUT ANY WARRANTY; without even the implied warranty of
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 | # General Public License for more details.
12 | #
13 | # You should have received a copy of the GNU Lesser General Public License
14 | # along with PulseAudio; if not, see .
15 |
16 | ## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
17 | ## more information. Default values are commented out. Use either ; or # for
18 | ## commenting.
19 |
20 | ; default-sink =
21 | ; default-source =
22 | ; default-server =
23 | ; default-dbus-server =
24 |
25 | autospawn = no
26 | ; daemon-binary = /usr/bin/pulseaudio
27 | ; extra-arguments = --log-target=syslog
28 |
29 | ; cookie-file =
30 |
31 | ; enable-shm = yes
32 | ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
33 |
34 | ; auto-connect-localhost = no
35 | ; auto-connect-display = no
36 |
--------------------------------------------------------------------------------
/build/cdemu/etc/dbus1/system.d/cdemu-daemon-dbus.conf:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/build/cdemu/etc/dbus1/system.d/pulseadio-system.conf:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
21 |
22 |
23 |
24 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/build/firsboot:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | reboot_pi () {
4 | umount "$FWLOC"
5 | mount / -o remount,ro
6 | sync
7 | reboot -f "$BOOT_PART_NUM"
8 | sleep 5
9 | exit 0
10 | }
11 |
12 | get_variables () {
13 | ROOT_PART_DEV=$(findmnt / -no source)
14 | ROOT_DEV_NAME=$(lsblk -no pkname "$ROOT_PART_DEV")
15 | ROOT_DEV="/dev/${ROOT_DEV_NAME}"
16 |
17 | BOOT_PART_DEV=$(findmnt "$FWLOC" -no source)
18 | BOOT_PART_NAME=$(lsblk -no kname "$BOOT_PART_DEV")
19 | BOOT_DEV_NAME=$(lsblk -no pkname "$BOOT_PART_DEV")
20 | BOOT_PART_NUM=$(cat "/sys/block/${BOOT_DEV_NAME}/${BOOT_PART_NAME}/partition")
21 |
22 | OLD_DISKID=$(fdisk -l "$ROOT_DEV" | sed -n 's/Disk identifier: 0x\([^ ]*\)/\1/p')
23 | }
24 |
25 | mountpoint -q /proc || mount -t proc proc /proc
26 | mountpoint -q /sys || mount -t sysfs sys /sys
27 | mountpoint -q /run || mount -t tmpfs tmp /run
28 | mkdir -p /run/systemd
29 |
30 | mount / -o remount,rw
31 |
32 | if ! FWLOC=$(/usr/lib/raspberrypi-sys-mods/get_fw_loc); then
33 | whiptail --msgbox "Could not determine firmware partition" 20 60
34 | poweroff -f
35 | fi
36 |
37 | mount "$FWLOC" -o rw
38 |
39 | source "${FWLOC}/setup.sh"
--------------------------------------------------------------------------------
/build/instructions.txt:
--------------------------------------------------------------------------------
1 | ## Scratch not instructions on building the image
2 |
3 | 1) Download 2024-11-19-raspios-bookworm-armhf-lite.img.xz `https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-11-19/`
4 | 2) Dump the image onto a new SDcard
5 | 3) Once setup is complete for the Pi Zero / Zero 2 W, copy the same image onto the device somewhere
6 | 4) Clone this repo - https://github.com/cinderblock/RaspberryPi-Image-Edit, we will use chroot.sh
7 | 5) chroot into the image
8 | 6) apt update -y && apt install -y python3-flask curl vim
9 | 7) mv the file `/lib/raspberrypi-sys-mods/firstboot` to `/lib/raspberrypi-sys-mods/firstbootpost`
10 | 8) Create a new file `/lib/raspberrypi-sys-mods/firstboot` with the contents of `firstboot` in this folder.
11 | 9) Extract the initfs using the following instructions
12 | * `mkdir -p /tmp/initfs`
13 | * `cd /tmp/initfs`
14 | * `cat /boot/initramfs7l | unzstd -- |cpio -idvm `
15 | * edit the file `/tmp/initfs/scripts/local-premount/firstboot` and change line 56 from `do_resize` to `log_warning_msg "Resize skipped due to resizing in another section for USBODE"`
16 | * `cd /tmp/initfs`
17 | * `find . -print0| sort -z | cpio --null -H newc --quiet -o > ../initramfs.img`
18 | * `cd ..`
19 | * `cat initramfs.img | zstd >> /boot/initrd.img-6.6.51+rpt-rpi-v8`
20 | * repeat this for each of the initramfs files
21 | * once all mondifications have been done to the image, use `CTRL + D` to exit the mode.
22 | 10) Copy the file back to a computer
23 | 11) use xz on the .img file to make a new one.
24 |
25 | /usr/share/initramfs-tools# vi scripts/local-premount/firstboot
26 |
27 | Also did the following things on 04/18/2025:
28 |
29 | apt-mark hold linux-image-rpi-v8 linux-image-rpi-v7l linux-image-rpi-v7 linux-image-rpi-v6 linux-headers-rpi-v7l linux-headers-rpi-v7 linux-headers-rpi-v6 initramfs-tools initramfs-tools-core
30 |
31 | also installed the following packages:
32 | cdemu cdplay cmus python3-smbus python3-spidev python3-pil python3-pip alsa-base 7zip git
33 |
--------------------------------------------------------------------------------
/build/kernel/additional-packages.txt:
--------------------------------------------------------------------------------
1 | sudo apt install -y flex bison libncurses-dev libssl-dev
2 |
--------------------------------------------------------------------------------
/build/kernel/instructions.kernel:
--------------------------------------------------------------------------------
1 | To get the hash of the official build being used by RPI:
2 |
3 | Go to the raspberry pi repo: https://github.com/raspberrypi/firmware
4 |
5 | Go into releases and find what the version you are trying to build from.
6 |
7 | Navigate to extras/git_hash and grab that git hash.
8 |
9 | next, go to the raspberry pi linux kernel repo, clone the branch of the kernel version that you want, do not use --depth=1 .
10 |
11 | Get the current kernel config from /boot/config-$(uname -r) and copy that to `.config` in the new kernel source
12 |
13 | Next, go and perform menuconfig and continue on from there...
14 |
15 | Once built, test it out.
16 |
17 | If it's working, go ahead and do
18 |
19 | make deb-pkg
20 |
21 | Then we can install the packages locally afterwards, the headers and the modules will get installed the same way that it's officially done.
--------------------------------------------------------------------------------
/build/kernel/large-iso-patch.patch:
--------------------------------------------------------------------------------
1 | diff --git a/drivers/usb/gadget/function/storage_common.c b/drivers/usb/gadget/function/storage_common.c
2 | index b883b8b7b05b..468f7622b11d 100644
3 | --- a/drivers/usb/gadget/function/storage_common.c
4 | +++ b/drivers/usb/gadget/function/storage_common.c
5 | @@ -242,15 +242,8 @@ int fsg_lun_open(struct fsg_lun *curlun, const char *filename)
6 |
7 | num_sectors = size >> blkbits; /* File size in logic-block-size blocks */
8 | min_sectors = 1;
9 | - if (curlun->cdrom) {
10 | + if (curlun->cdrom)
11 | min_sectors = 300; /* Smallest track is 300 frames */
12 | - if (num_sectors >= 256*60*75) {
13 | - num_sectors = 256*60*75 - 1;
14 | - LINFO(curlun, "file too big: %s\n", filename);
15 | - LINFO(curlun, "using only first %d blocks\n",
16 | - (int) num_sectors);
17 | - }
18 | - }
19 | if (num_sectors < min_sectors) {
20 | LINFO(curlun, "file too small: %s\n", filename);
21 | rc = -ETOOSMALL;
22 |
23 |
24 |
--------------------------------------------------------------------------------
/build/st7789/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2014 Adafruit Industries
2 | # Author: Tony DiCola
3 | #
4 | # Permission is hereby granted, free of charge, to any person obtaining a copy
5 | # of this software and associated documentation files (the "Software"), to deal
6 | # in the Software without restriction, including without limitation the rights
7 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | # copies of the Software, and to permit persons to whom the Software is
9 | # furnished to do so, subject to the following conditions:
10 | #
11 | # The above copyright notice and this permission notice shall be included in
12 | # all copies or substantial portions of the Software.
13 | #
14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | # THE SOFTWARE.
21 | import numbers
22 | import time
23 |
24 | import gpiod
25 | import gpiodevice
26 | import numpy
27 | import spidev
28 | from gpiod.line import Direction, Value
29 |
30 | __version__ = "1.0.1"
31 |
32 | OUTL = gpiod.LineSettings(direction=Direction.OUTPUT, output_value=Value.INACTIVE)
33 |
34 | BG_SPI_CS_BACK = 0
35 | BG_SPI_CS_FRONT = 1
36 |
37 | SPI_CLOCK_HZ = 16000000
38 |
39 | ST7789_NOP = 0x00
40 | ST7789_SWRESET = 0x01
41 | ST7789_RDDID = 0x04
42 | ST7789_RDDST = 0x09
43 |
44 | ST7789_SLPIN = 0x10
45 | ST7789_SLPOUT = 0x11
46 | ST7789_PTLON = 0x12
47 | ST7789_NORON = 0x13
48 |
49 | ST7789_INVOFF = 0x20
50 | ST7789_INVON = 0x21
51 | ST7789_DISPOFF = 0x28
52 | ST7789_DISPON = 0x29
53 |
54 | ST7789_CASET = 0x2A
55 | ST7789_RASET = 0x2B
56 | ST7789_RAMWR = 0x2C
57 | ST7789_RAMRD = 0x2E
58 |
59 | ST7789_PTLAR = 0x30
60 | ST7789_MADCTL = 0x36
61 | ST7789_COLMOD = 0x3A
62 |
63 | ST7789_FRMCTR1 = 0xB1
64 | ST7789_FRMCTR2 = 0xB2
65 | ST7789_FRMCTR3 = 0xB3
66 | ST7789_INVCTR = 0xB4
67 | ST7789_DISSET5 = 0xB6
68 |
69 | ST7789_GCTRL = 0xB7
70 | ST7789_GTADJ = 0xB8
71 | ST7789_VCOMS = 0xBB
72 |
73 | ST7789_LCMCTRL = 0xC0
74 | ST7789_IDSET = 0xC1
75 | ST7789_VDVVRHEN = 0xC2
76 | ST7789_VRHS = 0xC3
77 | ST7789_VDVS = 0xC4
78 | ST7789_VMCTR1 = 0xC5
79 | ST7789_FRCTRL2 = 0xC6
80 | ST7789_CABCCTRL = 0xC7
81 |
82 | ST7789_RDID1 = 0xDA
83 | ST7789_RDID2 = 0xDB
84 | ST7789_RDID3 = 0xDC
85 | ST7789_RDID4 = 0xDD
86 |
87 | ST7789_GMCTRP1 = 0xE0
88 | ST7789_GMCTRN1 = 0xE1
89 |
90 | ST7789_PWCTR6 = 0xFC
91 |
92 |
93 | class ST7789(object):
94 | """Representation of an ST7789 TFT LCD."""
95 |
96 | def __init__(
97 | self,
98 | port,
99 | cs,
100 | dc,
101 | backlight=None,
102 | rst=None,
103 | width=240,
104 | height=240,
105 | rotation=90,
106 | invert=True,
107 | spi_speed_hz=4000000,
108 | offset_left=0,
109 | offset_top=0,
110 | ):
111 | """Create an instance of the display using SPI communication.
112 |
113 | Must provide the GPIO pin number for the D/C pin and the SPI driver.
114 |
115 | Can optionally provide the GPIO pin number for the reset pin as the rst parameter.
116 |
117 | :param port: SPI port number
118 | :param cs: SPI chip-select number (0 or 1 for BCM
119 | :param backlight: Pin for controlling backlight
120 | :param rst: Reset pin for ST7789
121 | :param width: Width of display connected to ST7789
122 | :param height: Height of display connected to ST7789
123 | :param rotation: Rotation of display connected to ST7789
124 | :param invert: Invert display
125 | :param spi_speed_hz: SPI speed (in Hz)
126 |
127 | """
128 | if rotation not in [0, 90, 180, 270]:
129 | raise ValueError(f"Invalid rotation {rotation}")
130 |
131 | if width != height and rotation in [90, 270]:
132 | raise ValueError(
133 | f"Invalid rotation {rotation} for {width}x{height} resolution"
134 | )
135 |
136 | gpiodevice.friendly_errors = True
137 |
138 | self._spi = spidev.SpiDev(port, cs)
139 | self._spi.mode = 0
140 | self._spi.lsbfirst = False
141 | self._spi.max_speed_hz = spi_speed_hz
142 |
143 | self._dc = dc
144 | self._rst = rst
145 | self._width = width
146 | self._height = height
147 | self._rotation = rotation
148 | self._invert = invert
149 |
150 | self._offset_left = offset_left
151 | self._offset_top = offset_top
152 |
153 | # Set DC as output.
154 | self._dc = gpiodevice.get_pin(dc, "st7789-dc", OUTL)
155 |
156 | # Setup backlight as output (if provided).
157 | if backlight is not None:
158 | self._bl = gpiodevice.get_pin(backlight, "st7789-bl", OUTL)
159 | self.set_pin(self._bl, False)
160 | time.sleep(0.1)
161 | self.set_pin(self._bl, True)
162 |
163 | # Setup reset as output (if provided).
164 | if rst is not None:
165 | self._rst = gpiodevice.get_pin(rst, "st7789-rst", OUTL)
166 |
167 | self._init()
168 |
169 | def set_pin(self, pin, state):
170 | lines, offset = pin
171 | lines.set_value(offset, Value.ACTIVE if state else Value.INACTIVE)
172 |
173 | def send(self, data, is_data=True, chunk_size=4096):
174 | """Write a byte or array of bytes to the display. Is_data parameter
175 | controls if byte should be interpreted as display data (True) or command
176 | data (False). Chunk_size is an optional size of bytes to write in a
177 | single SPI transaction, with a default of 4096.
178 | """
179 | # Set DC low for command, high for data.
180 | self.set_pin(self._dc, is_data)
181 | # Convert scalar argument to list so either can be passed as parameter.
182 | if isinstance(data, numbers.Number):
183 | data = [data & 0xFF]
184 | # Write data a chunk at a time.
185 | for start in range(0, len(data), chunk_size):
186 | end = min(start + chunk_size, len(data))
187 | self._spi.xfer(data[start:end])
188 |
189 | def set_backlight(self, value):
190 | """Set the backlight on/off."""
191 | if self._bl is not None:
192 | self.set_pin(self._bl, value)
193 |
194 | @property
195 | def width(self):
196 | return (
197 | self._width
198 | if self._rotation == 0 or self._rotation == 180
199 | else self._height
200 | )
201 |
202 | @property
203 | def height(self):
204 | return (
205 | self._height
206 | if self._rotation == 0 or self._rotation == 180
207 | else self._width
208 | )
209 |
210 | def command(self, data):
211 | """Write a byte or array of bytes to the display as command data."""
212 | self.send(data, False)
213 |
214 | def data(self, data):
215 | """Write a byte or array of bytes to the display as display data."""
216 | self.send(data, True)
217 |
218 | def reset(self):
219 | """Reset the display, if reset pin is connected."""
220 | if self._rst is not None:
221 | self.set_pin(self._rst, True)
222 | time.sleep(0.500)
223 | self.set_pin(self._rst, False)
224 | time.sleep(0.500)
225 | self.set_pin(self._rst, True)
226 | time.sleep(0.500)
227 |
228 | def _init(self):
229 | # Initialize the display.
230 |
231 | self.command(ST7789_SWRESET) # Software reset
232 | time.sleep(0.150) # delay 150 ms
233 |
234 | self.command(ST7789_MADCTL)
235 | self.data(0x70)
236 |
237 | self.command(ST7789_FRMCTR2) # Frame rate ctrl - idle mode
238 | self.data(0x0C)
239 | self.data(0x0C)
240 | self.data(0x00)
241 | self.data(0x33)
242 | self.data(0x33)
243 |
244 | self.command(ST7789_COLMOD)
245 | self.data(0x05)
246 |
247 | self.command(ST7789_GCTRL)
248 | self.data(0x14)
249 |
250 | self.command(ST7789_VCOMS)
251 | self.data(0x37)
252 |
253 | self.command(ST7789_LCMCTRL) # Power control
254 | self.data(0x2C)
255 |
256 | self.command(ST7789_VDVVRHEN) # Power control
257 | self.data(0x01)
258 |
259 | self.command(ST7789_VRHS) # Power control
260 | self.data(0x12)
261 |
262 | self.command(ST7789_VDVS) # Power control
263 | self.data(0x20)
264 |
265 | self.command(0xD0)
266 | self.data(0xA4)
267 | self.data(0xA1)
268 |
269 | self.command(ST7789_FRCTRL2)
270 | self.data(0x0F)
271 |
272 | self.command(ST7789_GMCTRP1) # Set Gamma
273 | self.data(0xD0)
274 | self.data(0x04)
275 | self.data(0x0D)
276 | self.data(0x11)
277 | self.data(0x13)
278 | self.data(0x2B)
279 | self.data(0x3F)
280 | self.data(0x54)
281 | self.data(0x4C)
282 | self.data(0x18)
283 | self.data(0x0D)
284 | self.data(0x0B)
285 | self.data(0x1F)
286 | self.data(0x23)
287 |
288 | self.command(ST7789_GMCTRN1) # Set Gamma
289 | self.data(0xD0)
290 | self.data(0x04)
291 | self.data(0x0C)
292 | self.data(0x11)
293 | self.data(0x13)
294 | self.data(0x2C)
295 | self.data(0x3F)
296 | self.data(0x44)
297 | self.data(0x51)
298 | self.data(0x2F)
299 | self.data(0x1F)
300 | self.data(0x1F)
301 | self.data(0x20)
302 | self.data(0x23)
303 |
304 | if self._invert:
305 | self.command(ST7789_INVON) # Invert display
306 | else:
307 | self.command(ST7789_INVOFF) # Don't invert display
308 |
309 | self.command(ST7789_SLPOUT)
310 |
311 | self.command(ST7789_DISPON) # Display on
312 | time.sleep(0.100) # 100 ms
313 |
314 | def begin(self):
315 | """Set up the display
316 |
317 | Deprecated. Included in __init__.
318 |
319 | """
320 | pass
321 |
322 | def set_window(self, x0=0, y0=0, x1=None, y1=None):
323 | """Set the pixel address window for proceeding drawing commands. x0 and
324 | x1 should define the minimum and maximum x pixel bounds. y0 and y1
325 | should define the minimum and maximum y pixel bound. If no parameters
326 | are specified the default will be to update the entire display from 0,0
327 | to width-1,height-1.
328 | """
329 | if x1 is None:
330 | x1 = self._width - 1
331 |
332 | if y1 is None:
333 | y1 = self._height - 1
334 |
335 | y0 += self._offset_top
336 | y1 += self._offset_top
337 |
338 | x0 += self._offset_left
339 | x1 += self._offset_left
340 |
341 | self.command(ST7789_CASET) # Column addr set
342 | self.data(x0 >> 8)
343 | self.data(x0 & 0xFF) # XSTART
344 | self.data(x1 >> 8)
345 | self.data(x1 & 0xFF) # XEND
346 | self.command(ST7789_RASET) # Row addr set
347 | self.data(y0 >> 8)
348 | self.data(y0 & 0xFF) # YSTART
349 | self.data(y1 >> 8)
350 | self.data(y1 & 0xFF) # YEND
351 | self.command(ST7789_RAMWR) # write to RAM
352 |
353 | def display(self, image):
354 | """Write the provided image to the hardware.
355 |
356 | :param image: Should be RGB format and the same dimensions as the display hardware.
357 |
358 | """
359 | # Set address bounds to entire display.
360 | self.set_window()
361 |
362 | # Convert image to 16bit RGB565 format and
363 | # flatten into bytes.
364 | pixelbytes = self.image_to_data(image, self._rotation)
365 |
366 | # Write data to hardware.
367 | for i in range(0, len(pixelbytes), 4096):
368 | self.data(pixelbytes[i : i + 4096])
369 |
370 | def image_to_data(self, image, rotation=0):
371 | if not isinstance(image, numpy.ndarray):
372 | image = numpy.array(image.convert("RGB"))
373 |
374 | # Rotate the image
375 | pb = numpy.rot90(image, rotation // 90).astype("uint16")
376 |
377 | # Mask and shift the 888 RGB into 565 RGB
378 | red = (pb[..., [0]] & 0xF8) << 8
379 | green = (pb[..., [1]] & 0xFC) << 3
380 | blue = (pb[..., [2]] & 0xF8) >> 3
381 |
382 | # Stick 'em together
383 | result = red | green | blue
384 |
385 | # Output the raw bytes
386 | return result.byteswap().tobytes()
387 |
--------------------------------------------------------------------------------
/inst/config.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://rptl.io/configtxt
3 | # Some settings may impact device functionality. See link above for details
4 |
5 | # Uncomment some or all of these to enable the optional hardware interfaces
6 | #dtparam=i2c_arm=on
7 | #dtparam=i2s=on
8 | dtparam=spi=on
9 |
10 | # Enable audio (loads snd_bcm2835)
11 | #dtparam=audio=on
12 | dtoverlay=dwc2,dr_mode=peripheral
13 |
14 | dtoverlay=rpi-codeczero
15 |
16 | # Additional overlays and parameters are documented
17 | # /boot/firmware/overlays/README
18 |
19 | # Automatically load overlays for detected cameras
20 | camera_auto_detect=1
21 |
22 | # Automatically load overlays for detected DSI displays
23 | display_auto_detect=1
24 |
25 | # Automatically load initramfs files, if found
26 | auto_initramfs=1
27 |
28 | # Enable DRM VC4 V3D driver
29 | dtoverlay=vc4-kms-v3d,noaudio,nohdmi
30 | max_framebuffers=1
31 |
32 | # Don't have the firmware create an initial video= setting in cmdline.txt.
33 | # Use the kernel's default instead.
34 | disable_fw_kms_setup=1
35 |
36 | # Disable compensation for displays with overscan
37 | disable_overscan=1
38 |
39 | # Run as fast as firmware / board allows
40 | arm_boost=1
41 |
42 | #Tweaking for fast boot
43 | disable_poe_fan=1
44 | disable_touchscreen=1
45 | camera_auto_detect=0
46 | display_auto_detect=0
47 | dtoverlay=disable-bt
48 | boot_delay=0
49 |
50 | [cm4]
51 | # Enable host mode on the 2711 built-in XHCI USB controller.
52 | # This line should be removed if the legacy DWC2 controller is required
53 | # (e.g. for USB device mode) or if USB support is not required.
54 | otg_mode=1
55 |
56 | [cm5]
57 | dtoverlay=dwc2,dr_mode=host
58 |
59 | [all]
60 |
--------------------------------------------------------------------------------
/inst/new-wifi-onboot.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Check for Wi-Fi settings change on boot
3 | After=multi-user.target
4 |
5 | [Service]
6 | Type=oneshot
7 | ExecStart=/usr/bin/python3 /opt/usbode/network-updater.py
8 |
9 | [Install]
10 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/inst/new-wifi_example.json:
--------------------------------------------------------------------------------
1 | {
2 | "SSID": "YourNetworkSSID",
3 | "Password": "YourNetworkPassword",
4 | "IsSSIDHidden": false
5 | }
--------------------------------------------------------------------------------
/inst/new-wifi_hidden_example.json:
--------------------------------------------------------------------------------
1 | {
2 | "SSID": "YourNetworkSSID",
3 | "Password": "YourNetworkPassword",
4 | "SecurityType": "wifi-sec.key-mgmt wpa-psk wifi-sec.psk",
5 | "IsSSIDHidden": true
6 | }
--------------------------------------------------------------------------------
/inst/setup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | mount -t tmpfs tmp /run
3 | mount / -o remount,rw
4 |
5 | #exec 1> /boot/usbode-setup.log 2>&1
6 | #set -xeo pipefail
7 |
8 | #Partition SDCard 8G for system the rest for exFat
9 | root_mount=$(findmnt -Ufnro SOURCE -M /)
10 | root_drive=$(lsblk -npro PKNAME "$root_mount")
11 | root_partition=${root_mount: -1}
12 |
13 | parted -a optimal $root_drive --script mkpart primary 4096 100%
14 | #Parted doesn't support building exFat partitions so use sfdisk to change the type
15 | sfdisk "${root_drive}" 3 --part-type 7
16 | /usr/sbin/mkfs.exfat -L imgstore "${root_drive}p3"
17 | mkdir -p /mnt/imgstore
18 |
19 | sfdisk --no-reread --no-tell-kernel -fN"$root_partition" "$root_drive" <<< ',+'
20 | partprobe $root_drive
21 | resize2fs -p $root_mount
22 |
23 | #Install USBODE and enable service
24 | mkdir -p /opt/usbode
25 | cp -R /boot/firmware/usbode/* /opt/usbode
26 | cp /boot/firmware/*.service /lib/systemd/system
27 | chmod 664 /lib/systemd/system/usbode.service
28 | chmod 664 /lib/systemd/system/new-wifi-onboot.service
29 |
30 | systemctl enable usbode.service
31 | systemctl enable new-wifi-onboot.service
32 | systemctl enable pigpiod.service
33 |
34 | #Continue with "normal" Pi installation including script
35 | source /usr/lib/raspberrypi-sys-mods/firstbootpost
36 |
37 | #Add the following to cmdline.txt at the end
38 | # init=/bin/bash -c "mount -t proc proc /proc; mount -t sysfs sys /sys; mount /boot; source /boot/usbode-boot-setup.sh"
--------------------------------------------------------------------------------
/inst/usbode.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=USBODE
3 | DefaultDependencies=yes
4 | After=network-pre.target
5 |
6 | [Service]
7 | Type=simple
8 | ExecStart=/usr/bin/python3 /opt/usbode/usbode.py
9 | Restart=on-failure
10 | StandardOutput=journal+console
11 | StandardError=journal+console
12 | ExecStop=/usr/bin/curl /usr/bin/curl http://127.0.0.1/exit
13 |
14 | [Install]
15 | WantedBy=local-fs.target
16 |
--------------------------------------------------------------------------------
/inst/usbode/module/Makefile:
--------------------------------------------------------------------------------
1 | # Makefile for cdrom_redirect kernel module
2 |
3 | ifneq ($(KERNELRELEASE),)
4 | # kbuild part of Makefile
5 | obj-m := cdrom_redirect.o
6 |
7 | else
8 | # normal Makefile
9 | KDIR ?= /lib/modules/$(shell uname -r)/build
10 | PWD := $(shell pwd)
11 |
12 | all:
13 | $(MAKE) -C $(KDIR) M=$(PWD) modules
14 |
15 | clean:
16 | $(MAKE) -C $(KDIR) M=$(PWD) clean
17 |
18 | install: all
19 | $(MAKE) -C $(KDIR) M=$(PWD) modules_install
20 | depmod -a
21 |
22 | uninstall:
23 | rm -f /lib/modules/$(shell uname -r)/extra/cdrom_redirect.ko
24 | depmod -a
25 |
26 | endif
27 |
--------------------------------------------------------------------------------
/inst/usbode/module/README.md:
--------------------------------------------------------------------------------
1 | # CDROM Redirection Kernel Module
2 |
3 | This kernel module redirects CDROM-related SCSI commands to `/dev/sr0` (or another configurable CDROM device) through the USB Gadget subsystem. It allows a Linux system to expose a local CDROM device as a USB CDROM to another machine, complete with CD Audio playback support.
4 |
5 | ## Features
6 |
7 | - Exposes a local CDROM device through USB Gadget subsystem
8 | - Supports SCSI commands for CDROM operations
9 | - Handles CD Audio playback commands
10 | - Configurable through ConfigFS
11 | - Compatible with Linux 6.6+
12 |
13 | ## Requirements
14 |
15 | - Linux 6.6 or higher
16 | - USB Gadget subsystem enabled in the kernel
17 | - ConfigFS support
18 | - CDROM/SCSI device access (`/dev/sr0` by default)
19 |
20 | ## Installation
21 |
22 | 1. Clone this repository:
23 |
24 | 2. Build the module:
25 |
26 | `make`
27 |
28 | 3. Install the module
29 |
30 | `sudo cp cdrom_redirect.ko /lib/modules/$(uname -r)/kernel/drivers/usb/gadget/`
31 |
32 | 4. Load the module:
33 |
34 | `sudo modprobe cdrom_redirect`
35 |
36 | ## Configuration
37 |
38 | The module uses ConfigFS to enable runtime configuration. After loading the module, mount ConfigFS if not already mounted:
39 |
40 | Create a USB Gadget configuration:
41 |
42 | `mkdir -p /sys/kernel/config/usb_gadget/cdrom_gadget cd /sys/kernel/config/usb_gadget/cdrom_gadget`
43 |
44 | Configure basic gadget parameters:
45 |
46 | ```
47 | echo "0x1d6b" > idVendor # Linux Foundation
48 | echo "0x0104" > idProduct # Multifunction Composite Gadget
49 | mkdir -p strings/0x409 echo "Your Name" > strings/0x409/manufacturer
50 | echo "CDROM Redirector" > strings/0x409/product
51 | echo "123456789" > strings/0x409/serialnumber
52 |
53 | Create configuration
54 |
55 | mkdir -p configs/c.1/strings/0x409
56 | echo "CDROM Configuration" > configs/c.1/strings/0x409/configuration
57 |
58 | Add the cdrom_redirect function:
59 |
60 | mkdir -p functions/cdrom_redirect.0
61 |
62 | Configure the device path (optional, default is /dev/sr0)
63 |
64 | echo "/dev/sr0" > functions/cdrom_redirect.0/device_path
65 | ln -s functions/cdrom_redirect.0 configs/c.1/
66 |
67 | Enable the gadget:
68 |
69 |
70 | echo "device_controller_name" > UDC # Replace with your UDC name, e.g., "dwc3-gadget.0"
71 |
72 | ## Usage
73 |
74 | Once configured and enabled, the host system that connects to your USB port will detect a USB CDROM device. The content of `/dev/sr0` (or your configured CDROM device) will be available to the host.
75 |
76 | The module supports standard SCSI CDROM commands including:
77 | - TEST_UNIT_READY
78 | - INQUIRY
79 | - READ_CAPACITY
80 | - READ_TOC
81 | - READ_CD
82 | - PLAY_AUDIO
83 | - PAUSE_RESUME
84 | - READ_SUBCHANNEL
85 |
86 | ## Removing the Module
87 |
88 | To remove the module:
89 |
90 | 1. Disable the gadget:
91 |
92 | cd /sys/kernel/config/usb_gadget/cdrom_gadget echo "" > UDC
93 |
94 | 2. Remove the function and clean up:
95 |
96 | rm configs/c.1/cdrom_redirect.0
97 | rmdir functions/cdrom_redirect.0
98 | cd ..
99 | rmdir cdrom_gadget
100 |
101 | 3. Unload the module:
102 |
103 | sudo modprobe -r cdrom_redirect
104 |
105 | ## Troubleshooting
106 |
107 | Check kernel logs for debugging information:
108 |
109 | dmesg | grep cdrom_redirect
110 |
111 | ## License
112 |
113 | This module is licensed under GPL v2.
114 |
115 |
--------------------------------------------------------------------------------
/inst/usbode/module/cdrom_redirect.c:
--------------------------------------------------------------------------------
1 | /**
2 | * cdrom_redirect.c - USB Gadget CDROM redirection module
3 | *
4 | * This module creates a USB gadget that redirects SCSI commands for CDROM
5 | * operations to /dev/sr0, including support for CD Audio playback.
6 | *
7 | * Copyright (C) 2025 danifunker
8 | * License: GPL v2
9 | */
10 |
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 | #include
26 | #include
27 | #include
28 | #include
29 |
30 | /* Define constants if not provided by headers */
31 | #ifndef USB_SC_SCSI
32 | #define USB_SC_SCSI 0x06
33 | #endif
34 |
35 | #ifndef USB_PR_BULK
36 | #define USB_PR_BULK 0x50
37 | #endif
38 |
39 | #define DRIVER_NAME "cdrom_redirect"
40 | #define DRIVER_VERSION "1.0.0"
41 |
42 | /* Module parameters */
43 | static char *cdrom_device = "/dev/sr0";
44 | module_param(cdrom_device, charp, 0644);
45 | MODULE_PARM_DESC(cdrom_device, "Path to the CDROM device (default: /dev/sr0)");
46 |
47 | /* USB descriptor strings */
48 | #define STRING_MANUFACTURER 1
49 | #define STRING_PRODUCT 2
50 | #define STRING_SERIAL 3
51 | #define STRING_CONFIG 4
52 | #define STRING_INTERFACE 5
53 |
54 | /* SCSI command definitions */
55 | #define SC_READ_TOC 0x43
56 | #define SC_READ_CD 0xbe
57 | #define SC_PLAY_AUDIO_10 0x45
58 | #define SC_PLAY_AUDIO_MSF 0x47
59 | #define SC_PAUSE_RESUME 0x4b
60 | #define SC_READ_SUBCHANNEL 0x42
61 | #define SC_MODE_SENSE_6 0x1a
62 | #define SC_MODE_SENSE_10 0x5a
63 | #define SC_TEST_UNIT_READY 0x00
64 | #define SC_REQUEST_SENSE 0x03
65 | #define SC_INQUIRY 0x12
66 | #define SC_READ_FORMAT_CAPACITIES 0x23
67 | #define SC_READ_CAPACITY 0x25
68 |
69 | /* CD-ROM capability flags - using different values to avoid conflicts */
70 | #define CDROM_CAPS_PLAY_AUDIO 0x01
71 | #define CDROM_CAPS_READ_SUBCHAN 0x02
72 | #define CDROM_CAPS_READ_CD 0x04
73 |
74 | /* Module global state structure */
75 | struct cdrom_redirect {
76 | struct usb_composite_dev *cdev;
77 | struct usb_gadget *gadget;
78 | struct usb_function func;
79 | struct usb_ep *bulk_in;
80 | struct usb_ep *bulk_out;
81 | struct file *cdrom_file;
82 | bool cdrom_opened;
83 | struct mutex lock;
84 | struct task_struct *kthread;
85 | int thread_exit;
86 | wait_queue_head_t thread_wq;
87 | struct work_struct work;
88 | struct workqueue_struct *wq;
89 | int cdrom_intf;
90 | };
91 |
92 | static struct cdrom_redirect *g_cdrom_redirect;
93 |
94 | /* ConfigFS structures */
95 | struct cdrom_redirect_opts {
96 | struct config_group group;
97 | struct usb_function_instance func_inst;
98 | char device_path[64];
99 | };
100 |
101 | static inline struct cdrom_redirect_opts *to_cdrom_redirect_opts(struct config_item *item)
102 | {
103 | return container_of(to_config_group(item), struct cdrom_redirect_opts, group);
104 | }
105 |
106 | /* Function prototypes */
107 | static struct usb_request *alloc_usb_request(struct usb_ep *ep, unsigned len);
108 | static void free_usb_request(struct usb_ep *ep, struct usb_request *req);
109 | static int cdrom_redirect_open_device(void);
110 | static void cdrom_redirect_close_device(void);
111 | static int cdrom_redirect_handle_scsi_cmd(unsigned char *cmd, unsigned char *buffer,
112 | unsigned int buf_len, int *transfer_len);
113 | static void cdrom_redirect_free_inst(struct usb_function_instance *fi);
114 | static void cdrom_redirect_complete_in(struct usb_ep *ep, struct usb_request *req);
115 |
116 | /* USB descriptors */
117 | static struct usb_interface_descriptor cdrom_intf_desc = {
118 | .bLength = sizeof(cdrom_intf_desc),
119 | .bDescriptorType = USB_DT_INTERFACE,
120 | .bInterfaceNumber = 0,
121 | .bNumEndpoints = 2,
122 | .bInterfaceClass = USB_CLASS_MASS_STORAGE,
123 | .bInterfaceSubClass = USB_SC_SCSI,
124 | .bInterfaceProtocol = USB_PR_BULK,
125 | .iInterface = STRING_INTERFACE,
126 | };
127 |
128 | static struct usb_endpoint_descriptor cdrom_fs_bulk_in_desc = {
129 | .bLength = USB_DT_ENDPOINT_SIZE,
130 | .bDescriptorType = USB_DT_ENDPOINT,
131 | .bEndpointAddress = USB_DIR_IN,
132 | .bmAttributes = USB_ENDPOINT_XFER_BULK,
133 | .wMaxPacketSize = cpu_to_le16(64),
134 | };
135 |
136 | static struct usb_endpoint_descriptor cdrom_fs_bulk_out_desc = {
137 | .bLength = USB_DT_ENDPOINT_SIZE,
138 | .bDescriptorType = USB_DT_ENDPOINT,
139 | .bEndpointAddress = USB_DIR_OUT,
140 | .bmAttributes = USB_ENDPOINT_XFER_BULK,
141 | .wMaxPacketSize = cpu_to_le16(64),
142 | };
143 |
144 | static struct usb_descriptor_header *cdrom_fs_descs[] = {
145 | (struct usb_descriptor_header *) &cdrom_intf_desc,
146 | (struct usb_descriptor_header *) &cdrom_fs_bulk_in_desc,
147 | (struct usb_descriptor_header *) &cdrom_fs_bulk_out_desc,
148 | NULL,
149 | };
150 |
151 | static struct usb_endpoint_descriptor cdrom_hs_bulk_in_desc = {
152 | .bLength = USB_DT_ENDPOINT_SIZE,
153 | .bDescriptorType = USB_DT_ENDPOINT,
154 | .bEndpointAddress = USB_DIR_IN,
155 | .bmAttributes = USB_ENDPOINT_XFER_BULK,
156 | .wMaxPacketSize = cpu_to_le16(512),
157 | };
158 |
159 | static struct usb_endpoint_descriptor cdrom_hs_bulk_out_desc = {
160 | .bLength = USB_DT_ENDPOINT_SIZE,
161 | .bDescriptorType = USB_DT_ENDPOINT,
162 | .bEndpointAddress = USB_DIR_OUT,
163 | .bmAttributes = USB_ENDPOINT_XFER_BULK,
164 | .wMaxPacketSize = cpu_to_le16(512),
165 | };
166 |
167 | static struct usb_descriptor_header *cdrom_hs_descs[] = {
168 | (struct usb_descriptor_header *) &cdrom_intf_desc,
169 | (struct usb_descriptor_header *) &cdrom_hs_bulk_in_desc,
170 | (struct usb_descriptor_header *) &cdrom_hs_bulk_out_desc,
171 | NULL,
172 | };
173 |
174 | static struct usb_endpoint_descriptor cdrom_ss_bulk_in_desc = {
175 | .bLength = USB_DT_ENDPOINT_SIZE,
176 | .bDescriptorType = USB_DT_ENDPOINT,
177 | .bEndpointAddress = USB_DIR_IN,
178 | .bmAttributes = USB_ENDPOINT_XFER_BULK,
179 | .wMaxPacketSize = cpu_to_le16(1024),
180 | };
181 |
182 | static struct usb_endpoint_descriptor cdrom_ss_bulk_out_desc = {
183 | .bLength = USB_DT_ENDPOINT_SIZE,
184 | .bDescriptorType = USB_DT_ENDPOINT,
185 | .bEndpointAddress = USB_DIR_OUT,
186 | .bmAttributes = USB_ENDPOINT_XFER_BULK,
187 | .wMaxPacketSize = cpu_to_le16(1024),
188 | };
189 |
190 | static struct usb_ss_ep_comp_descriptor cdrom_ss_bulk_in_comp_desc = {
191 | .bLength = sizeof(cdrom_ss_bulk_in_comp_desc),
192 | .bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
193 | };
194 |
195 | static struct usb_ss_ep_comp_descriptor cdrom_ss_bulk_out_comp_desc = {
196 | .bLength = sizeof(cdrom_ss_bulk_out_comp_desc),
197 | .bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
198 | };
199 |
200 | static struct usb_descriptor_header *cdrom_ss_descs[] = {
201 | (struct usb_descriptor_header *) &cdrom_intf_desc,
202 | (struct usb_descriptor_header *) &cdrom_ss_bulk_in_desc,
203 | (struct usb_descriptor_header *) &cdrom_ss_bulk_in_comp_desc,
204 | (struct usb_descriptor_header *) &cdrom_ss_bulk_out_desc,
205 | (struct usb_descriptor_header *) &cdrom_ss_bulk_out_comp_desc,
206 | NULL,
207 | };
208 |
209 | /* USB strings */
210 | static struct usb_string cdrom_strings[] = {
211 | [STRING_MANUFACTURER] = { .s = "Linux Kernel" },
212 | [STRING_PRODUCT] = { .s = "CDROM Redirector" },
213 | [STRING_SERIAL] = { .s = "0123456789" },
214 | [STRING_CONFIG] = { .s = "CDROM Configuration" },
215 | [STRING_INTERFACE] = { .s = "CDROM Interface" },
216 | { }
217 | };
218 |
219 | static struct usb_gadget_strings cdrom_stringtab = {
220 | .language = 0x0409, /* en-us */
221 | .strings = cdrom_strings,
222 | };
223 |
224 | static struct usb_gadget_strings *cdrom_strings_tab[] = {
225 | &cdrom_stringtab,
226 | NULL,
227 | };
228 |
229 | /* Helper functions */
230 | static struct usb_request *alloc_usb_request(struct usb_ep *ep, unsigned len)
231 | {
232 | struct usb_request *req = usb_ep_alloc_request(ep, GFP_KERNEL);
233 |
234 | if (req) {
235 | req->length = len;
236 | req->buf = kmalloc(len, GFP_KERNEL);
237 | if (!req->buf) {
238 | usb_ep_free_request(ep, req);
239 | req = NULL;
240 | }
241 | }
242 |
243 | return req;
244 | }
245 |
246 | static void free_usb_request(struct usb_ep *ep, struct usb_request *req)
247 | {
248 | if (req) {
249 | kfree(req->buf);
250 | usb_ep_free_request(ep, req);
251 | }
252 | }
253 |
254 | /* CDROM device handling */
255 | static int cdrom_redirect_open_device(void)
256 | {
257 | mutex_lock(&g_cdrom_redirect->lock);
258 |
259 | if (g_cdrom_redirect->cdrom_opened) {
260 | mutex_unlock(&g_cdrom_redirect->lock);
261 | return 0;
262 | }
263 |
264 | g_cdrom_redirect->cdrom_file = filp_open(cdrom_device, O_RDONLY | O_NONBLOCK, 0);
265 |
266 | if (IS_ERR(g_cdrom_redirect->cdrom_file)) {
267 | int err = PTR_ERR(g_cdrom_redirect->cdrom_file);
268 | g_cdrom_redirect->cdrom_file = NULL;
269 | mutex_unlock(&g_cdrom_redirect->lock);
270 | pr_err("cdrom_redirect: Failed to open device %s: %d\n", cdrom_device, err);
271 | return err;
272 | }
273 |
274 | g_cdrom_redirect->cdrom_opened = true;
275 | mutex_unlock(&g_cdrom_redirect->lock);
276 |
277 | pr_info("cdrom_redirect: Opened device %s\n", cdrom_device);
278 | return 0;
279 | }
280 |
281 | static void cdrom_redirect_close_device(void)
282 | {
283 | mutex_lock(&g_cdrom_redirect->lock);
284 |
285 | if (!g_cdrom_redirect->cdrom_opened) {
286 | mutex_unlock(&g_cdrom_redirect->lock);
287 | return;
288 | }
289 |
290 | if (g_cdrom_redirect->cdrom_file) {
291 | filp_close(g_cdrom_redirect->cdrom_file, NULL);
292 | g_cdrom_redirect->cdrom_file = NULL;
293 | }
294 |
295 | g_cdrom_redirect->cdrom_opened = false;
296 | mutex_unlock(&g_cdrom_redirect->lock);
297 |
298 | pr_info("cdrom_redirect: Closed device %s\n", cdrom_device);
299 | }
300 |
301 | /* SCSI command handling */
302 | static int cdrom_redirect_handle_scsi_cmd(unsigned char *cmd, unsigned char *buffer,
303 | unsigned int buf_len, int *transfer_len)
304 | {
305 | int ret = 0;
306 | *transfer_len = 0;
307 |
308 | if (!g_cdrom_redirect->cdrom_opened) {
309 | pr_err("cdrom_redirect: CDROM device not opened\n");
310 | return -ENODEV;
311 | }
312 |
313 | /* Process SCSI commands */
314 | switch (cmd[0]) {
315 | case SC_TEST_UNIT_READY:
316 | pr_debug("cdrom_redirect: TEST_UNIT_READY\n");
317 | break;
318 |
319 | case SC_INQUIRY:
320 | {
321 | unsigned char inquiry_response[36] = {
322 | 0x05, /* CD-ROM */
323 | 0x80, /* Removable */
324 | 0x04, /* SPC-2 compliance */
325 | 0x02,
326 | 0x20, /* Additional length */
327 | 0x00,
328 | 0x00,
329 | 0x00,
330 | 'L', 'I', 'N', 'U', 'X', ' ', ' ', ' ', /* Vendor */
331 | 'C', 'D', '-', 'R', 'O', 'M', ' ', ' ', /* Product */
332 | 'R', 'e', 'd', 'i', 'r', 'e', 'c', 't',
333 | '1', '.', '0', '0' /* Revision */
334 | };
335 |
336 | memcpy(buffer, inquiry_response, min_t(unsigned int, sizeof(inquiry_response), buf_len));
337 | *transfer_len = min_t(unsigned int, sizeof(inquiry_response), buf_len);
338 | }
339 | break;
340 |
341 | case SC_READ_CAPACITY:
342 | {
343 | unsigned int sectors = 0;
344 | unsigned char capacity_response[8];
345 | int result;
346 |
347 | result = vfs_ioctl(g_cdrom_redirect->cdrom_file, BLKGETSIZE, (unsigned long)§ors);
348 |
349 | if (result < 0) {
350 | pr_err("cdrom_redirect: Failed to get CDROM capacity: %d\n", result);
351 | return result;
352 | }
353 |
354 | /* Format capacity response (sectors-1, sector size=2048) */
355 | capacity_response[0] = (sectors - 1) >> 24;
356 | capacity_response[1] = (sectors - 1) >> 16;
357 | capacity_response[2] = (sectors - 1) >> 8;
358 | capacity_response[3] = (sectors - 1);
359 | capacity_response[4] = 0;
360 | capacity_response[5] = 0;
361 | capacity_response[6] = 8; /* 2048 bytes per sector */
362 | capacity_response[7] = 0;
363 |
364 | memcpy(buffer, capacity_response, min_t(unsigned int, sizeof(capacity_response), buf_len));
365 | *transfer_len = min_t(unsigned int, sizeof(capacity_response), buf_len);
366 | }
367 | break;
368 |
369 | case SC_READ_TOC:
370 | {
371 | struct cdrom_tochdr toc_header;
372 | struct cdrom_tocentry toc_entry;
373 | unsigned char toc_response[12];
374 | int result;
375 |
376 | result = vfs_ioctl(g_cdrom_redirect->cdrom_file, CDROMREADTOCHDR, (unsigned long)&toc_header);
377 |
378 | if (result < 0) {
379 | pr_err("cdrom_redirect: Failed to read TOC header: %d\n", result);
380 | return result;
381 | }
382 |
383 | toc_response[0] = 0; /* TOC Data Length MSB */
384 | toc_response[1] = 10; /* TOC Data Length LSB */
385 | toc_response[2] = 1; /* First Track Number */
386 | toc_response[3] = toc_header.cdth_trk1; /* Last Track Number */
387 |
388 | /* Get first track info */
389 | toc_entry.cdte_track = toc_header.cdth_trk0;
390 | toc_entry.cdte_format = CDROM_LBA;
391 |
392 | result = vfs_ioctl(g_cdrom_redirect->cdrom_file, CDROMREADTOCENTRY, (unsigned long)&toc_entry);
393 |
394 | if (result < 0) {
395 | pr_err("cdrom_redirect: Failed to read TOC entry: %d\n", result);
396 | return result;
397 | }
398 |
399 | /* First track descriptor */
400 | toc_response[4] = 0; /* Reserved */
401 | toc_response[5] = 0x14; /* ADR/Control (Digital data track, copyable) */
402 | toc_response[6] = toc_header.cdth_trk0; /* Track number */
403 | toc_response[7] = 0; /* Reserved */
404 |
405 | /* Track start address (LBA format) */
406 | toc_response[8] = (toc_entry.cdte_addr.lba >> 24) & 0xFF;
407 | toc_response[9] = (toc_entry.cdte_addr.lba >> 16) & 0xFF;
408 | toc_response[10] = (toc_entry.cdte_addr.lba >> 8) & 0xFF;
409 | toc_response[11] = toc_entry.cdte_addr.lba & 0xFF;
410 |
411 | memcpy(buffer, toc_response, min_t(unsigned int, sizeof(toc_response), buf_len));
412 | *transfer_len = min_t(unsigned int, sizeof(toc_response), buf_len);
413 | }
414 | break;
415 |
416 | case SC_PLAY_AUDIO_10:
417 | {
418 | struct cdrom_msf play_audio;
419 | int result;
420 |
421 | /* Extract starting sector and play length from command */
422 | unsigned int start_sector = (cmd[2] << 24) | (cmd[3] << 16) | (cmd[4] << 8) | cmd[5];
423 | unsigned int num_sectors = (cmd[7] << 8) | cmd[8];
424 |
425 | play_audio.cdmsf_min0 = (start_sector / 75) / 60;
426 | play_audio.cdmsf_sec0 = (start_sector / 75) % 60;
427 | play_audio.cdmsf_frame0 = start_sector % 75;
428 |
429 | unsigned int end_sector = start_sector + num_sectors - 1;
430 | play_audio.cdmsf_min1 = (end_sector / 75) / 60;
431 | play_audio.cdmsf_sec1 = (end_sector / 75) % 60;
432 | play_audio.cdmsf_frame1 = end_sector % 75;
433 |
434 | result = vfs_ioctl(g_cdrom_redirect->cdrom_file, CDROMPLAYMSF, (unsigned long)&play_audio);
435 |
436 | if (result < 0) {
437 | pr_err("cdrom_redirect: Failed to play audio: %d\n", result);
438 | return result;
439 | }
440 | }
441 | break;
442 |
443 | case SC_PAUSE_RESUME:
444 | {
445 | int result;
446 | int resume = cmd[8] & 0x01;
447 |
448 | if (resume)
449 | result = vfs_ioctl(g_cdrom_redirect->cdrom_file, CDROMRESUME, 0);
450 | else
451 | result = vfs_ioctl(g_cdrom_redirect->cdrom_file, CDROMPAUSE, 0);
452 |
453 | if (result < 0) {
454 | pr_err("cdrom_redirect: Failed to pause/resume: %d\n", result);
455 | return result;
456 | }
457 | }
458 | break;
459 |
460 | case SC_READ_SUBCHANNEL:
461 | {
462 | struct cdrom_subchnl subchnl;
463 | unsigned char subchannel_response[16];
464 | int result;
465 |
466 | subchnl.cdsc_format = CDROM_MSF;
467 |
468 | result = vfs_ioctl(g_cdrom_redirect->cdrom_file, CDROMSUBCHNL, (unsigned long)&subchnl);
469 |
470 | if (result < 0) {
471 | pr_err("cdrom_redirect: Failed to read subchannel: %d\n", result);
472 | return result;
473 | }
474 |
475 | memset(subchannel_response, 0, sizeof(subchannel_response));
476 |
477 | subchannel_response[0] = 0; /* Reserved */
478 | subchannel_response[1] = 0; /* Audio Status */
479 |
480 | switch (subchnl.cdsc_audiostatus) {
481 | case CDROM_AUDIO_PLAY:
482 | subchannel_response[1] = 0x11; /* Audio play operation in progress */
483 | break;
484 | case CDROM_AUDIO_PAUSED:
485 | subchannel_response[1] = 0x12; /* Audio play operation paused */
486 | break;
487 | case CDROM_AUDIO_COMPLETED:
488 | subchannel_response[1] = 0x13; /* Audio play operation completed successfully */
489 | break;
490 | case CDROM_AUDIO_ERROR:
491 | subchannel_response[1] = 0x14; /* Audio play operation stopped due to error */
492 | break;
493 | case CDROM_AUDIO_NO_STATUS:
494 | default:
495 | subchannel_response[1] = 0x15; /* No current audio status to return */
496 | break;
497 | }
498 |
499 | subchannel_response[2] = 0; /* Data Length MSB */
500 | subchannel_response[3] = 12; /* Data Length LSB */
501 | subchannel_response[4] = 0x01; /* Format Code (Q) */
502 |
503 | /* Position data */
504 | subchannel_response[5] = (subchnl.cdsc_ctrl << 4) | subchnl.cdsc_adr;
505 | subchannel_response[6] = subchnl.cdsc_trk;
506 | subchannel_response[7] = subchnl.cdsc_ind;
507 |
508 | /* Absolute CD address (MSF) */
509 | subchannel_response[8] = 0;
510 | subchannel_response[9] = subchnl.cdsc_absaddr.msf.minute;
511 | subchannel_response[10] = subchnl.cdsc_absaddr.msf.second;
512 | subchannel_response[11] = subchnl.cdsc_absaddr.msf.frame;
513 |
514 | /* Relative Track address (MSF) */
515 | subchannel_response[12] = 0;
516 | subchannel_response[13] = subchnl.cdsc_reladdr.msf.minute;
517 | subchannel_response[14] = subchnl.cdsc_reladdr.msf.second;
518 | subchannel_response[15] = subchnl.cdsc_reladdr.msf.frame;
519 |
520 | memcpy(buffer, subchannel_response, min_t(unsigned int, sizeof(subchannel_response), buf_len));
521 | *transfer_len = min_t(unsigned int, sizeof(subchannel_response), buf_len);
522 | }
523 | break;
524 |
525 | case SC_MODE_SENSE_6:
526 | case SC_MODE_SENSE_10:
527 | {
528 | unsigned char mode_sense_response[24];
529 | memset(mode_sense_response, 0, sizeof(mode_sense_response));
530 |
531 | if (cmd[0] == SC_MODE_SENSE_6) {
532 | mode_sense_response[0] = 22; /* Mode data length */
533 | mode_sense_response[1] = 0x05; /* Medium type (CDROM) */
534 | mode_sense_response[2] = 0x80; /* Device-specific parameter (write-protected) */
535 | mode_sense_response[3] = 0x08; /* Block descriptor length */
536 | } else {
537 | mode_sense_response[0] = 0; /* Mode data length MSB */
538 | mode_sense_response[1] = 22; /* Mode data length LSB */
539 | mode_sense_response[2] = 0x05; /* Medium type (CDROM) */
540 | mode_sense_response[3] = 0x80; /* Device-specific parameter (write-protected) */
541 | mode_sense_response[6] = 0; /* Block descriptor length MSB */
542 | mode_sense_response[7] = 0x08; /* Block descriptor length LSB */
543 | }
544 |
545 | /* CD-ROM capabilities page */
546 | unsigned char *page;
547 | if (cmd[0] == SC_MODE_SENSE_6)
548 | page = &mode_sense_response[8];
549 | else
550 | page = &mode_sense_response[8];
551 |
552 | page[0] = 0x2A; /* CD-ROM capabilities page code */
553 | page[1] = 16; /* Page length */
554 | page[2] = CDROM_CAPS_PLAY_AUDIO | CDROM_CAPS_READ_SUBCHAN | CDROM_CAPS_READ_CD; /* CD-ROM capabilities */
555 | page[3] = 0x03; /* Can read CD-DA/CD-ROM */
556 | page[4] = 0x00; /* No volume control */
557 | page[5] = 0x00;
558 | page[6] = 0x00;
559 | page[7] = 0x00;
560 |
561 | /* Maximum speed = 16X (16 * 176.4KB/s = 2822.4KB/s) */
562 | page[8] = 0x0B;
563 | page[9] = 0x06; /* 2822 KB/s */
564 |
565 | /* Current speed = 16X */
566 | page[10] = 0x0B;
567 | page[11] = 0x06; /* 2822 KB/s */
568 |
569 | memcpy(buffer, mode_sense_response, min_t(unsigned int, sizeof(mode_sense_response), buf_len));
570 | *transfer_len = min_t(unsigned int, sizeof(mode_sense_response), buf_len);
571 | }
572 | break;
573 |
574 | case SC_READ_CD:
575 | {
576 | int result;
577 | unsigned int sector = ((cmd[2] << 24) | (cmd[3] << 16) | (cmd[4] << 8) | cmd[5]);
578 | unsigned int count = ((cmd[6] << 16) | (cmd[7] << 8) | cmd[8]);
579 | loff_t pos = sector * 2048; /* Assuming 2048 bytes per sector */
580 |
581 | result = vfs_llseek(g_cdrom_redirect->cdrom_file, pos, SEEK_SET);
582 | if (result < 0) {
583 | pr_err("cdrom_redirect: Failed to seek to sector %u: %d\n", sector, result);
584 | return result;
585 | }
586 |
587 | result = kernel_read(g_cdrom_redirect->cdrom_file, buffer, count * 2048, &pos);
588 |
589 | if (result < 0) {
590 | pr_err("cdrom_redirect: Failed to read sectors: %d\n", result);
591 | return result;
592 | }
593 |
594 | *transfer_len = result;
595 | }
596 | break;
597 |
598 | case SC_REQUEST_SENSE:
599 | {
600 | unsigned char sense_data[18] = {
601 | 0x70, /* Response Code */
602 | 0, /* Sense Key */
603 | 0, /* Additional Sense Code */
604 | 0, /* Additional Sense Code Qualifier */
605 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
606 | };
607 |
608 | memcpy(buffer, sense_data, min_t(unsigned int, sizeof(sense_data), buf_len));
609 | *transfer_len = min_t(unsigned int, sizeof(sense_data), buf_len);
610 | }
611 | break;
612 |
613 | case SC_READ_FORMAT_CAPACITIES:
614 | {
615 | unsigned char format_capacity_response[12] = {
616 | 0, 0, 0, 8, /* Capacity List Header (length = 8) */
617 | 0, 0, 0, 0, /* Number of blocks (to be filled) */
618 | 0x02, /* Descriptor type (formatted media) */
619 | 0, 8, 0 /* Block length (2048) */
620 | };
621 |
622 | unsigned int sectors = 0;
623 | int result;
624 |
625 | result = vfs_ioctl(g_cdrom_redirect->cdrom_file, BLKGETSIZE, (unsigned long)§ors);
626 |
627 | if (result < 0) {
628 | pr_err("cdrom_redirect: Failed to get CDROM capacity: %d\n", result);
629 | return result;
630 | }
631 |
632 | format_capacity_response[4] = (sectors >> 24);
633 | format_capacity_response[5] = (sectors >> 16);
634 | format_capacity_response[6] = (sectors >> 8);
635 | format_capacity_response[7] = sectors;
636 |
637 | memcpy(buffer, format_capacity_response, min_t(unsigned int, sizeof(format_capacity_response), buf_len));
638 | *transfer_len = min_t(unsigned int, sizeof(format_capacity_response), buf_len);
639 | }
640 | break;
641 |
642 | default:
643 | pr_warn("cdrom_redirect: Unhandled SCSI command: 0x%02x\n", cmd[0]);
644 | return -EINVAL;
645 | }
646 |
647 | return ret;
648 | }
649 |
650 | /* USB function callbacks */
651 | static void cdrom_redirect_complete_out(struct usb_ep *ep, struct usb_request *req)
652 | {
653 | struct cdrom_redirect *cdrom = ep->driver_data;
654 |
655 | if (req->status != 0) {
656 | pr_err("cdrom_redirect: Bulk OUT transfer error: %d\n", req->status);
657 | return;
658 | }
659 |
660 | /* Process SCSI command */
661 | unsigned char *cmd = req->buf;
662 | unsigned char response[512];
663 | int transfer_len = 0;
664 | int result;
665 |
666 | result = cdrom_redirect_handle_scsi_cmd(cmd, response, sizeof(response), &transfer_len);
667 |
668 | if (result < 0) {
669 | pr_err("cdrom_redirect: Failed to handle SCSI command: %d\n", result);
670 | /* Send error response */
671 | memset(response, 0, sizeof(response));
672 | transfer_len = 0;
673 | }
674 |
675 | /* Send response through IN endpoint */
676 | struct usb_request *in_req = alloc_usb_request(cdrom->bulk_in, transfer_len);
677 | if (!in_req) {
678 | pr_err("cdrom_redirect: Failed to allocate IN request\n");
679 | return;
680 | }
681 |
682 | memcpy(in_req->buf, response, transfer_len);
683 | in_req->length = transfer_len;
684 | in_req->complete = cdrom_redirect_complete_in;
685 |
686 | result = usb_ep_queue(cdrom->bulk_in, in_req, GFP_ATOMIC);
687 | if (result < 0) {
688 | pr_err("cdrom_redirect: Failed to queue IN request: %d\n", result);
689 | free_usb_request(cdrom->bulk_in, in_req);
690 | }
691 |
692 | /* Re-submit the OUT request for more commands */
693 | result = usb_ep_queue(cdrom->bulk_out, req, GFP_ATOMIC);
694 | if (result < 0) {
695 | pr_err("cdrom_redirect: Failed to requeue OUT request: %d\n", result);
696 | free_usb_request(cdrom->bulk_out, req);
697 | }
698 | }
699 |
700 | static void cdrom_redirect_complete_in(struct usb_ep *ep, struct usb_request *req)
701 | {
702 | if (req->status != 0) {
703 | pr_err("cdrom_redirect: Bulk IN transfer error: %d\n", req->status);
704 | }
705 |
706 | free_usb_request(ep, req);
707 | }
708 |
709 | /* USB function callbacks */
710 | static int cdrom_redirect_bind(struct usb_configuration *c, struct usb_function *f)
711 | {
712 | struct cdrom_redirect *cdrom = container_of(f, struct cdrom_redirect, func);
713 | struct usb_composite_dev *cdev = c->cdev;
714 | int ret;
715 |
716 | /* Allocate interface */
717 | cdrom->cdrom_intf = usb_interface_id(c, f);
718 | if (cdrom->cdrom_intf < 0)
719 | return cdrom->cdrom_intf;
720 |
721 | cdrom_intf_desc.bInterfaceNumber = cdrom->cdrom_intf;
722 |
723 | /* Allocate endpoints */
724 | cdrom->bulk_in = usb_ep_autoconfig(cdev->gadget, &cdrom_fs_bulk_in_desc);
725 | if (!cdrom->bulk_in)
726 | goto fail;
727 |
728 | cdrom->bulk_out = usb_ep_autoconfig(cdev->gadget, &cdrom_fs_bulk_out_desc);
729 | if (!cdrom->bulk_out)
730 | goto fail;
731 |
732 | cdrom_hs_bulk_in_desc.bEndpointAddress = cdrom_fs_bulk_in_desc.bEndpointAddress;
733 | cdrom_hs_bulk_out_desc.bEndpointAddress = cdrom_fs_bulk_out_desc.bEndpointAddress;
734 |
735 | cdrom_ss_bulk_in_desc.bEndpointAddress = cdrom_fs_bulk_in_desc.bEndpointAddress;
736 | cdrom_ss_bulk_out_desc.bEndpointAddress = cdrom_fs_bulk_out_desc.bEndpointAddress;
737 |
738 | ret = usb_assign_descriptors(f, cdrom_fs_descs, cdrom_hs_descs, cdrom_ss_descs, NULL);
739 | if (ret)
740 | goto fail;
741 |
742 | /* Save our context in the endpoints */
743 | cdrom->bulk_in->driver_data = cdrom;
744 | cdrom->bulk_out->driver_data = cdrom;
745 |
746 | return 0;
747 |
748 | fail:
749 | usb_free_all_descriptors(f);
750 | return -ENODEV;
751 | }
752 |
753 | static void cdrom_redirect_unbind(struct usb_configuration *c, struct usb_function *f)
754 | {
755 | usb_free_all_descriptors(f);
756 | }
757 |
758 | static int cdrom_redirect_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
759 | {
760 | struct cdrom_redirect *cdrom = container_of(f, struct cdrom_redirect, func);
761 | int ret;
762 |
763 | /* Close previous endpoints if any */
764 | if (cdrom->bulk_in->driver_data) {
765 | usb_ep_disable(cdrom->bulk_in);
766 | cdrom->bulk_in->driver_data = NULL;
767 | }
768 |
769 | if (cdrom->bulk_out->driver_data) {
770 | usb_ep_disable(cdrom->bulk_out);
771 | cdrom->bulk_out->driver_data = NULL;
772 | }
773 |
774 | /* Enable the endpoints */
775 | ret = config_ep_by_speed(f->config->cdev->gadget, f, cdrom->bulk_in);
776 | if (ret)
777 | return ret;
778 |
779 | ret = usb_ep_enable(cdrom->bulk_in);
780 | if (ret)
781 | return ret;
782 |
783 | ret = config_ep_by_speed(f->config->cdev->gadget, f, cdrom->bulk_out);
784 | if (ret)
785 | goto fail_out_ep;
786 |
787 | ret = usb_ep_enable(cdrom->bulk_out);
788 | if (ret)
789 | goto fail_out_ep;
790 |
791 | cdrom->bulk_in->driver_data = cdrom;
792 | cdrom->bulk_out->driver_data = cdrom;
793 |
794 | /* Start receiving commands */
795 | struct usb_request *req = alloc_usb_request(cdrom->bulk_out, 512);
796 | if (!req)
797 | goto fail_alloc;
798 |
799 | req->complete = cdrom_redirect_complete_out;
800 | ret = usb_ep_queue(cdrom->bulk_out, req, GFP_ATOMIC);
801 | if (ret)
802 | goto fail_queue;
803 |
804 | /* Open the CDROM device */
805 | ret = cdrom_redirect_open_device();
806 | if (ret)
807 | goto fail_open;
808 |
809 | return 0;
810 |
811 | fail_open:
812 | usb_ep_dequeue(cdrom->bulk_out, req);
813 | fail_queue:
814 | free_usb_request(cdrom->bulk_out, req);
815 | fail_alloc:
816 | usb_ep_disable(cdrom->bulk_out);
817 | cdrom->bulk_out->driver_data = NULL;
818 | fail_out_ep:
819 | usb_ep_disable(cdrom->bulk_in);
820 | cdrom->bulk_in->driver_data = NULL;
821 | return ret;
822 | }
823 |
824 | static void cdrom_redirect_disable(struct usb_function *f)
825 | {
826 | struct cdrom_redirect *cdrom = container_of(f, struct cdrom_redirect, func);
827 |
828 | /* Disable endpoints */
829 | if (cdrom->bulk_in->driver_data) {
830 | usb_ep_disable(cdrom->bulk_in);
831 | cdrom->bulk_in->driver_data = NULL;
832 | }
833 |
834 | if (cdrom->bulk_out->driver_data) {
835 | usb_ep_disable(cdrom->bulk_out);
836 | cdrom->bulk_out->driver_data = NULL;
837 | }
838 |
839 | /* Close the CDROM device */
840 | cdrom_redirect_close_device();
841 | }
842 |
843 | static struct usb_function *cdrom_redirect_alloc_func(struct usb_function_instance *fi)
844 | {
845 | if (g_cdrom_redirect)
846 | return &g_cdrom_redirect->func;
847 |
848 | return ERR_PTR(-ENODEV);
849 | }
850 |
851 | /* ConfigFS attribute handling */
852 | static ssize_t cdrom_redirect_device_path_show(struct config_item *item, char *page)
853 | {
854 | struct cdrom_redirect_opts *opts = to_cdrom_redirect_opts(item);
855 | return sprintf(page, "%s\n", opts->device_path);
856 | }
857 |
858 | static ssize_t cdrom_redirect_device_path_store(struct config_item *item,
859 | const char *page, size_t len)
860 | {
861 | struct cdrom_redirect_opts *opts = to_cdrom_redirect_opts(item);
862 | size_t copy_len = min_t(size_t, len, sizeof(opts->device_path) - 1);
863 |
864 | if (copy_len) {
865 | memcpy(opts->device_path, page, copy_len);
866 | opts->device_path[copy_len] = 0;
867 | if (opts->device_path[copy_len - 1] == '\n')
868 | opts->device_path[copy_len - 1] = 0;
869 |
870 | /* Update the global variable */
871 | cdrom_device = opts->device_path;
872 |
873 | /* If device is already opened, reopen it with new path */
874 | if (g_cdrom_redirect && g_cdrom_redirect->cdrom_opened) {
875 | cdrom_redirect_close_device();
876 | cdrom_redirect_open_device();
877 | }
878 | }
879 |
880 | return len;
881 | }
882 |
883 | CONFIGFS_ATTR(cdrom_redirect_, device_path);
884 |
885 | static struct configfs_attribute *cdrom_redirect_attrs[] = {
886 | &cdrom_redirect_attr_device_path,
887 | NULL,
888 | };
889 |
890 | static struct config_item_type cdrom_redirect_func_type = {
891 | .ct_item_ops = NULL,
892 | .ct_attrs = cdrom_redirect_attrs,
893 | .ct_owner = THIS_MODULE,
894 | };
895 |
896 | static void cdrom_redirect_free_instance(struct usb_function_instance *fi)
897 | {
898 | struct cdrom_redirect_opts *opts = container_of(fi, struct cdrom_redirect_opts, func_inst);
899 | kfree(opts);
900 | }
901 |
902 | static struct usb_function_instance *cdrom_redirect_alloc_instance(void)
903 | {
904 | struct cdrom_redirect_opts *opts;
905 |
906 | opts = kzalloc(sizeof(*opts), GFP_KERNEL);
907 | if (!opts)
908 | return ERR_PTR(-ENOMEM);
909 |
910 | config_group_init_type_name(&opts->group, "cdrom_redirect", &cdrom_redirect_func_type);
911 | opts->func_inst.free_func_inst = cdrom_redirect_free_instance;
912 |
913 | /* Set initial configuration values */
914 | strncpy(opts->device_path, cdrom_device, sizeof(opts->device_path) - 1);
915 |
916 | return &opts->func_inst;
917 | }
918 |
919 | static struct usb_function_driver cdrom_redirect_driver = {
920 | .name = "cdrom_redirect",
921 | .alloc_inst = cdrom_redirect_alloc_instance,
922 | .alloc_func = cdrom_redirect_alloc_func,
923 | };
924 |
925 | /* Worker thread to handle long operations */
926 | static void cdrom_redirect_worker(struct work_struct *work)
927 | {
928 | struct cdrom_redirect *cdrom = container_of(work, struct cdrom_redirect, work);
929 |
930 | /* Worker thread can perform operations that might sleep */
931 | pr_debug("cdrom_redirect: Worker thread running\n");
932 |
933 | /* Example: Periodic check for media change */
934 | if (cdrom->cdrom_opened) {
935 | int status;
936 |
937 | status = vfs_ioctl(cdrom->cdrom_file, CDROM_MEDIA_CHANGED, 0);
938 |
939 | if (status > 0) {
940 | pr_info("cdrom_redirect: Media change detected\n");
941 | /* Handle media change if needed */
942 | }
943 | }
944 | }
945 |
946 | /* Kernel thread function */
947 | static int cdrom_redirect_thread(void *data)
948 | {
949 | struct cdrom_redirect *cdrom = data;
950 |
951 | pr_info("cdrom_redirect: Thread started\n");
952 |
953 | while (!kthread_should_stop() && !cdrom->thread_exit) {
954 | /* Schedule work periodically */
955 | queue_work(cdrom->wq, &cdrom->work);
956 |
957 | /* Sleep for 5 seconds */
958 | msleep_interruptible(5000);
959 | }
960 |
961 | pr_info("cdrom_redirect: Thread exiting\n");
962 | return 0;
963 | }
964 |
965 | /* Module initialization and cleanup */
966 | static int __init cdrom_redirect_init(void)
967 | {
968 | int ret;
969 |
970 | /* Allocate the global context */
971 | g_cdrom_redirect = kzalloc(sizeof(*g_cdrom_redirect), GFP_KERNEL);
972 | if (!g_cdrom_redirect)
973 | return -ENOMEM;
974 |
975 | /* Initialize the context */
976 | mutex_init(&g_cdrom_redirect->lock);
977 | g_cdrom_redirect->cdrom_opened = false;
978 | g_cdrom_redirect->cdrom_file = NULL;
979 | g_cdrom_redirect->thread_exit = 0;
980 | init_waitqueue_head(&g_cdrom_redirect->thread_wq);
981 | INIT_WORK(&g_cdrom_redirect->work, cdrom_redirect_worker);
982 |
983 | /* Create workqueue */
984 | g_cdrom_redirect->wq = create_singlethread_workqueue("cdrom_redirect_wq");
985 | if (!g_cdrom_redirect->wq) {
986 | ret = -ENOMEM;
987 | goto fail_wq;
988 | }
989 |
990 | /* Initialize USB function */
991 | g_cdrom_redirect->func.name = "cdrom_redirect";
992 | g_cdrom_redirect->func.bind = cdrom_redirect_bind;
993 | g_cdrom_redirect->func.unbind = cdrom_redirect_unbind;
994 | g_cdrom_redirect->func.set_alt = cdrom_redirect_set_alt;
995 | g_cdrom_redirect->func.disable = cdrom_redirect_disable;
996 | g_cdrom_redirect->func.strings = cdrom_strings_tab;
997 |
998 | /* Start kernel thread */
999 | g_cdrom_redirect->kthread = kthread_run(cdrom_redirect_thread, g_cdrom_redirect,
1000 | "cdrom_redirect");
1001 | if (IS_ERR(g_cdrom_redirect->kthread)) {
1002 | ret = PTR_ERR(g_cdrom_redirect->kthread);
1003 | goto fail_thread;
1004 | }
1005 |
1006 | /* Register USB function driver */
1007 | ret = usb_function_register(&cdrom_redirect_driver);
1008 | if (ret)
1009 | goto fail_register;
1010 |
1011 | pr_info("cdrom_redirect: Module loaded\n");
1012 | return 0;
1013 |
1014 | fail_register:
1015 | kthread_stop(g_cdrom_redirect->kthread);
1016 | fail_thread:
1017 | destroy_workqueue(g_cdrom_redirect->wq);
1018 | fail_wq:
1019 | kfree(g_cdrom_redirect);
1020 | g_cdrom_redirect = NULL;
1021 | return ret;
1022 | }
1023 |
1024 | static void __exit cdrom_redirect_exit(void)
1025 | {
1026 | /* Unregister USB function */
1027 | usb_function_unregister(&cdrom_redirect_driver);
1028 |
1029 | /* Stop kernel thread */
1030 | if (g_cdrom_redirect && g_cdrom_redirect->kthread) {
1031 | g_cdrom_redirect->thread_exit = 1;
1032 | kthread_stop(g_cdrom_redirect->kthread);
1033 | }
1034 |
1035 | /* Close CDROM device if open */
1036 | if (g_cdrom_redirect && g_cdrom_redirect->cdrom_opened)
1037 | cdrom_redirect_close_device();
1038 |
1039 | /* Clean up workqueue */
1040 | if (g_cdrom_redirect && g_cdrom_redirect->wq)
1041 | destroy_workqueue(g_cdrom_redirect->wq);
1042 |
1043 | /* Free global context */
1044 | kfree(g_cdrom_redirect);
1045 | g_cdrom_redirect = NULL;
1046 |
1047 | pr_info("cdrom_redirect: Module unloaded\n");
1048 | }
1049 |
1050 | module_init(cdrom_redirect_init);
1051 | module_exit(cdrom_redirect_exit);
1052 |
1053 | MODULE_LICENSE("GPL v2");
1054 | MODULE_AUTHOR("danifunker");
1055 | MODULE_DESCRIPTION("Linux kernel module that redirects CDROM SCSI commands to /dev/sr0");
1056 | MODULE_VERSION(DRIVER_VERSION);
1057 |
--------------------------------------------------------------------------------
/inst/usbode/network-updater.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 | import sys
3 | import os
4 | import time
5 | import subprocess
6 | import json
7 | global NetworkSettingsFileContents
8 |
9 | settingsFile='/boot/firmware/new-wifi.json'
10 | outputFile='/boot/firmware/new-wifi-output.txt'
11 |
12 | if os.path.exists(settingsFile):
13 | try:
14 | with open(settingsFile) as f:
15 | NetworkSettingsFileContents=json.load(f)
16 | except Exception as e:
17 | #with open(outputFile, 'w+') as o:
18 | # o.write(f"Error reading JSON file: {e}\n")
19 | print(f"There was an rrror reading JSON file, this is the error : \n\n{e}\n")
20 | else:
21 | print("No new-wifi.json file found, nothing to be done.")
22 | quit(0)
23 |
24 | if NetworkSettingsFileContents:
25 | runCommands=[]
26 | time.sleep(5)
27 | runCommands.append(f"nmcli d wifi")
28 | if NetworkSettingsFileContents['IsSSIDHidden']:
29 | runCommands.append(f"nmcli c add type wifi con-name {NetworkSettingsFileContents['SSID']} ifname wlan0 ssid {NetworkSettingsFileContents['SSID']}")
30 | if NetworkSettingsFileContents['Password']:
31 | runCommands.append(f"nmcli c modify {NetworkSettingsFileContents['SSID']} {NetworkSettingsFileContents['SecurityType']} password '{NetworkSettingsFileContents['Password']}'")
32 | runCommands.append(f"nmcli c up {NetworkSettingsFileContents['SSID']}")
33 | else:
34 | if NetworkSettingsFileContents['Password']:
35 | runCommands.append(f"nmcli d wifi connect {NetworkSettingsFileContents['SSID']} password '{NetworkSettingsFileContents['Password']}'")
36 | else:
37 | runCommands.append(f"nmcli d wifi connect {NetworkSettingsFileContents['SSID']}")
38 | with open(outputFile, 'w+') as o:
39 | for command in runCommands:
40 | try:
41 | o.write(f"Attempting to run command {command}\n")
42 | print(f"Running command: {command}")
43 | result = subprocess.run(command, shell=True, check=True, capture_output=True, text=True)
44 | print(f"Command output: {result.stdout}")
45 | o.write(f"Command output: {result.stdout}\n")
46 | subprocess.run("rm -f /boot/firmware/new-wifi.json", shell=True)
47 | except subprocess.CalledProcessError as e:
48 | print(f"Command failed with error: {e.stderr}")
49 | o.write(f"Command failed with error: {e.stderr}\n")
50 | except Exception as e:
51 | print(f"An unexpected error occurred: {e}")
52 | o.write(f"An unexpected error occurred: {e}\n")
53 |
54 |
--------------------------------------------------------------------------------
/inst/usbode/scripts/alsa-settings-iqaudio.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | sudo alsactl restore -f /opt/usbode/scripts/pbonly.state
3 |
--------------------------------------------------------------------------------
/inst/usbode/scripts/cd_gadget_setup.sh:
--------------------------------------------------------------------------------
1 | cd $1
2 |
3 | echo "0x04da" > idVendor # Panasonic
4 | echo "0x0d01" > idProduct # USB CD-ROM Drive KXL-840AN (increases compability with many retro systems)
5 | echo 0x0100 > bcdDevice # v1.0.0
6 | echo 0x0200 > bcdUSB # USB 2.0
7 |
8 | echo "1111111111" > strings/0x409/serialnumber
9 | echo "Linux" > strings/0x409/manufacturer
10 | echo "USBODE-v1.99" > strings/0x409/product
11 |
12 | echo "Config 1: USBODE" > configs/c.1/strings/0x409/configuration
13 | echo 0 > configs/c.1/MaxPower
14 |
15 | echo 1 > functions/mass_storage.usb0/lun.0/cdrom
16 | echo 1 > functions/mass_storage.usb0/lun.0/ro
17 | echo 1 > functions/mass_storage.usb0/lun.0/removable
18 | ln -s functions/mass_storage.usb0 configs/c.1
19 |
--------------------------------------------------------------------------------
/inst/usbode/scripts/cleanup_mode.sh:
--------------------------------------------------------------------------------
1 | cd $1
2 |
3 | rm configs/c.1/mass_storage.usb0
4 | rmdir configs/c.1/strings/0x409
5 | rmdir configs/c.1
6 | rmdir functions/mass_storage.usb0
7 | rmdir strings/0x409
8 | cd ..
9 | rmdir $1
10 |
--------------------------------------------------------------------------------
/inst/usbode/scripts/disablegadget.sh:
--------------------------------------------------------------------------------
1 | cd $1
2 | echo "" > UDC
3 |
--------------------------------------------------------------------------------
/inst/usbode/scripts/enablegadget.sh:
--------------------------------------------------------------------------------
1 | cd "$1"
2 | ls "/sys/class/udc" > UDC
3 |
--------------------------------------------------------------------------------
/inst/usbode/scripts/exfat_gadget_setup.sh:
--------------------------------------------------------------------------------
1 | cd $1
2 |
3 | echo "0x0525" > idVendor # Linux Foundation - must be adopted by your ID
4 | echo "0xa4a5" > idProduct # Linux-USB file backed Storage Gadget - must be adopted by your ProductID
5 | echo 0x0100 > bcdDevice # v1.0.0
6 | echo 0x0200 > bcdUSB # USB 2.0
7 |
8 | echo "1111111111" > strings/0x409/serialnumber
9 | echo "Linux" > strings/0x409/manufacturer
10 | echo "USBODE-v1.99-ExFAT" > strings/0x409/product
11 |
12 | echo "Config 1: USBODE-USB" > configs/c.1/strings/0x409/configuration
13 | echo 0 > configs/c.1/MaxPower
14 |
15 | echo 0 > functions/mass_storage.usb0/lun.0/cdrom
16 | echo 0 > functions/mass_storage.usb0/lun.0/ro
17 | echo 1 > functions/mass_storage.usb0/lun.0/removable
18 | ln -s functions/mass_storage.usb0 configs/c.1
19 |
--------------------------------------------------------------------------------
/inst/usbode/scripts/force_eject_iso.sh:
--------------------------------------------------------------------------------
1 | cd $1
2 |
3 | echo 1 > functions/mass_storage.usb0/lun.0/forced_eject
4 |
--------------------------------------------------------------------------------
/inst/usbode/waveshare/Font.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/danifunker/usbode/f007bf6385c08f3daa4c95d3f98f0ac9675a2780/inst/usbode/waveshare/Font.ttf
--------------------------------------------------------------------------------
/inst/usbode/waveshare/SH1106.py:
--------------------------------------------------------------------------------
1 | import time
2 | import subprocess
3 |
4 | LCD_WIDTH = 128 #LCD width
5 | LCD_HEIGHT = 64 #LCD height
6 | global Device_SPI
7 | global Device_I2C
8 | Device_SPI=0
9 | Device_I2C=0
10 | class SH1106(object):
11 | def __init__(self):
12 | self.width = LCD_WIDTH
13 | self.height = LCD_HEIGHT
14 | global Device_SPI
15 | global Device_I2C
16 | #Initialize DC RST pin
17 | loadedModules=subprocess.check_output(['cat','/proc/modules']).decode('utf-8')
18 | if 'spidev' in loadedModules:
19 | import configspi as config
20 | self.RPI = config.RaspberryPi()
21 | Device_SPI = config.Device_SPI
22 | Device_I2C = config.Device_I2C
23 |
24 | #else:
25 | # import configi2c as config
26 | # Device_SPI = config.Device_SPI
27 | # Device_I2C = config.Device_I2C
28 | # self.RPI = config.RaspberryPi()
29 | # Disabling support for i2c, as it may be conflicting with Codec Zero
30 |
31 | self._dc = self.RPI.GPIO_DC_PIN
32 | self._rst = self.RPI.GPIO_RST_PIN
33 | self.Device = self.RPI.Device
34 |
35 |
36 | """ Write register address and data """
37 | def command(self, cmd):
38 | if(self.Device == Device_SPI):
39 | self.RPI.digital_write(self._dc,False)
40 | self.RPI.spi_writebyte([cmd])
41 | else:
42 | self.RPI.i2c_writebyte(0x00, cmd)
43 |
44 | # def data(self, val):
45 | # GPIO.output(self._dc, GPIO.HIGH)
46 | # config.spi_writebyte([val])
47 |
48 | def Init(self):
49 | if (self.RPI.module_init() != 0):
50 | return -1
51 | """Initialize dispaly"""
52 | self.reset()
53 | self.command(0xAE);#--turn off oled panel
54 | self.command(0x02);#---set low column address
55 | self.command(0x10);#---set high column address
56 | self.command(0x40);#--set start line address Set Mapping RAM Display Start Line (0x00~0x3F)
57 | self.command(0x81);#--set contrast control register
58 | self.command(0xA0);#--Set SEG/Column Mapping
59 | self.command(0xC0);#Set COM/Row Scan Direction
60 | self.command(0xA6);#--set normal display
61 | self.command(0xA8);#--set multiplex ratio(1 to 64)
62 | self.command(0x3F);#--1/64 duty
63 | self.command(0xD3);#-set display offset Shift Mapping RAM Counter (0x00~0x3F)
64 | self.command(0x00);#-not offset
65 | self.command(0xd5);#--set display clock divide ratio/oscillator frequency
66 | self.command(0x80);#--set divide ratio, Set Clock as 100 Frames/Sec
67 | self.command(0xD9);#--set pre-charge period
68 | self.command(0xF1);#Set Pre-Charge as 15 Clocks & Discharge as 1 Clock
69 | self.command(0xDA);#--set com pins hardware configuration
70 | self.command(0x12);
71 | self.command(0xDB);#--set vcomh
72 | self.command(0x40);#Set VCOM Deselect Level
73 | self.command(0x20);#-Set Page Addressing Mode (0x00/0x01/0x02)
74 | self.command(0x02);#
75 | self.command(0xA4);# Disable Entire Display On (0xa4/0xa5)
76 | self.command(0xA6);# Disable Inverse Display On (0xa6/a7)
77 | time.sleep(0.1)
78 | self.command(0xAF);#--turn on oled panel
79 |
80 |
81 | def reset(self):
82 | """Reset the display"""
83 | self.RPI.digital_write(self._rst,True)
84 | time.sleep(0.1)
85 | self.RPI.digital_write(self._rst,False)
86 | time.sleep(0.1)
87 | self.RPI.digital_write(self._rst,True)
88 | time.sleep(0.1)
89 |
90 | def getbuffer(self, image):
91 | # print "bufsiz = ",(self.width/8) * self.height
92 | buf = [0xFF] * ((self.width//8) * self.height)
93 | image_monocolor = image.convert('1')
94 | imwidth, imheight = image_monocolor.size
95 | pixels = image_monocolor.load()
96 | # print "imwidth = %d, imheight = %d",imwidth,imheight
97 | if(imwidth == self.width and imheight == self.height):
98 | # print ("Vertical")
99 | for y in range(imheight):
100 | for x in range(imwidth):
101 | # Set the bits for the column of pixels at the current position.
102 | if pixels[x, y] == 0:
103 | buf[x + (y // 8) * self.width] &= ~(1 << (y % 8))
104 | # print x,y,x + (y * self.width)/8,buf[(x + y * self.width) / 8]
105 |
106 | elif(imwidth == self.height and imheight == self.width):
107 | # print ("Vertical")
108 | for y in range(imheight):
109 | for x in range(imwidth):
110 | newx = y
111 | newy = self.height - x - 1
112 | if pixels[x, y] == 0:
113 | buf[(newx + (newy // 8 )*self.width) ] &= ~(1 << (y % 8))
114 | return buf
115 |
116 |
117 | # def ShowImage(self,Image):
118 | # self.SetWindows()
119 | # GPIO.output(self._dc, GPIO.HIGH);
120 | # for i in range(0,self.width * self.height/8):
121 | # config.spi_writebyte([~Image[i]])
122 |
123 | def ShowImage(self, pBuf):
124 | for page in range(0,8):
125 | # set page address #
126 | self.command(0xB0 + page)
127 | # set low column address #
128 | self.command(0x02);
129 | # set high column address #
130 | self.command(0x10);
131 | # write data #
132 | # time.sleep(0.01)
133 | if(self.Device == Device_SPI):
134 | self.RPI.digital_write(self._dc,True)
135 | for i in range(0,self.width):#for(int i=0;i