View Issue Details

IDProjectCategoryView StatusLast Update
0007469Kali LinuxKali Package Bugpublic2022-08-15 10:43
Reporternecopinus Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Summary0007469: Package kalipi-kernel 5.4.83-20211127 is Missing /boot/overlays/dwc2.dtbo
Description

The kalipi-kernel package version 5.4.83-20211127 is missing /boot/overlays/dwc2.dtbo; this breaks USB C gadget mode (necessary, for example, to connect the RPi to a device like an iPad using USB C using only a single USB C cable). This file was present in 5.4.83-20210516.

Steps To Reproduce
  1. Upgrade from 5.4.83-20210516 to 5.4.83-20211127
Additional Information

If the dwc2 overlay is present, it’s possible to use the RPi as a hacking accessory for an iPad using only a USB C cable (very useful!). For example, see this guide: https://gist.github.com/necopinus/9a961f001f031477216b1b68b336fe20

Without this overlay file, this setup is not possible.

Activities

steev

steev

2021-12-03 20:06

manager   ~0015479

It might be better to file this as an issue on the repo for the kernel on re4son's GitHub - https://github.com/re4son/ - there are a few different moving parts that go in to making the kernel build work, and it could be that the dtbo went away, or it could be that it somehow gets dropped by the build script.

necopinus

necopinus

2021-12-03 20:26

reporter   ~0015480

Okay. I've filed the bug here: https://github.com/Re4son/re4son-kernel-builder/issues/14

Not 100% sure if this is the right repo, but the actual kernel repo doesn't seem to have issues turned on, so this is my best guess.

steev

steev

2021-12-03 21:55

manager   ~0015481

For what it's worth, a dtbo can be built outside the kernel source as well as a workaround.

Just grab the dwc2-overlay.dts file from https://github.com/re4son/re4son-raspberrypi-linux/tree/rpi-5.4.83-re4son/arch/arm/boot/dts/overlays (make sure you get the actual file and not just the html of it!) and then simply run 'dtc -o dwc2.dtbo dwc2-overlay.dts' and then copy it in to the /boot/overlays directory.

re4son

re4son

2021-12-03 22:16

manager   ~0015482

What a naughty overlay! Not sure where it went but let me put it back. Update is coming soon.
Thanks for letting us know.

re4son

re4son

2021-12-03 23:30

manager   ~0015483

Should be fixed now:
https://github.com/Re4son/kalipi-firmware/compare/20211127kali...20211204kali

You will get the updates with your next "apt upgrade". Please let us know if everything is working correctly for you now.

On another note, we are really digging your write up. That's pretty awesome stuff.
Do you think your setup could also be done with the Pi 3 A+ and the Pi Zero 2 W? That would allow using the same cool concept on different hardware to suit the power supply of other host devices. I'm thinking about smaller iPads and iPhones, etc.

That looks like great material for a Kali blog (https://www.kali.org/blog/) - would you be up for that?

necopinus

necopinus

2021-12-04 15:30

reporter   ~0015486

Fix confirmed. Thank you! (And thank you for the manual build trick!)

I do not know if it would be possible to get a Pi 3 A+ or a Pi Zero 2 W working in a similar fashion as the Pi 4 B, though after some cursory research it looks like it should be possible to do something similar using the g_ether module (setup might actually be simpler!). Unfortunately, I only have a Pi 4 B right now, and won’t be in a place to play with a different model until the end of January.

As far as contributing this knowledge to the Kali blog, I’d definitely be down for cleaning up the write-up for this. The only caveat is that I do want to eventually spin up my own website, so I don’t want to be in a situation where it’s not okay to republish the material there as well. This seems like a conversation we should take off this ticket, however.

g0tmi1k

g0tmi1k

2022-08-15 10:43

administrator   ~0016565

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://www.kali.org/docs/community/submitting-issues-kali-bug-tracker/

Issue History

Date Modified Username Field Change
2021-12-03 19:15 necopinus New Issue
2021-12-03 20:06 steev Note Added: 0015479
2021-12-03 20:26 necopinus Note Added: 0015480
2021-12-03 21:55 steev Note Added: 0015481
2021-12-03 22:16 re4son Note Added: 0015482
2021-12-03 23:30 re4son Note Added: 0015483
2021-12-04 15:30 necopinus Note Added: 0015486
2022-08-15 10:43 g0tmi1k Note Added: 0016565
2022-08-15 10:43 g0tmi1k Status new => closed