Return-Path: MIME-Version: 1.0 In-Reply-To: <9C9C1616-C9CA-4542-AC9C-0DBC3107BA61@holtmann.org> References: <00A3687E-050A-469F-98B0-C42F872EFE1C@holtmann.org> <115EE599-9710-437B-9AA8-C4CD8360EF3F@holtmann.org> <9C9C1616-C9CA-4542-AC9C-0DBC3107BA61@holtmann.org> From: Loic Poulain Date: Fri, 22 Sep 2017 11:09:28 +0200 Message-ID: Subject: Re: Fedora 27 kernel and RPi3 Bluetooth oops To: Marcel Holtmann Cc: Peter Robinson , "bluez mailin list (linux-bluetooth@vger.kernel.org)" Content-Type: multipart/alternative; boundary="001a113cf01a52976c0559c3932c" List-ID: --001a113cf01a52976c0559c3932c Content-Type: text/plain; charset="UTF-8" Hi Marcel, Peter, > Hans added a script to automatically btattch some bcm controllers for > > atom devices, maybe we need to add more IDs for udev, not sure if > > there's a means of making that generic and upstreamable. Also some of > > the other distro patches I've seen had a different BT firmware, not > > sure if Loic needed that or not. > > The whole point behind serdev is that you no longer need btattach. The > UART can be enumerated by the kernel. So that should not be needed and we > also want to get rid of it for ACPI based systems as well. > > Since it works with raspbian I had a try with Fedora 26. To make this 'simpler', I bypassed u-boot and just loaded my kernel + my dtb: - added bcm2837-rpi-3-b.dtb and kernel zImage (Linux 4.13 32-bit) (FAT PART) - modified config.txt (FAT part): # Raspberry Pi 3 [pi3] kernel=zImage device_tree=bcm2837-rpi-3-b.dtb - added cmdline.txt (FAT part): dwc_otg.lpm_enable=0 root=/dev/mmcblk0p4 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles - added modules (rootfs ext4 part) That works as expected, my hci device is correctly configured and operational. Maybe u-boot adds some unexpected overlay or applies incorrect config. Regards Loic --001a113cf01a52976c0559c3932c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Marcel, Peter,

> Hans added a script to automatically btattch some bcm controllers for<= br> > atom devices, maybe we need to add more IDs for udev, not sure if
> there's a means of making that generic and upstreamable. Also some= of
> the other distro patches I've seen had a different BT firmware, no= t
> sure if Loic needed that or not.

The whole point behind serdev is that you no longer need btattach. T= he UART can be enumerated by the kernel. So that should not be needed and w= e also want to get rid of it for ACPI based systems as well.


Since it works with raspbian I had a try with Fedora= 26.

To make this 'simpler', I bypassed u-boot an= d just loaded my kernel + my dtb:

- added bcm2837-rpi-3-b.dtb and ke= rnel zImage (Linux 4.13 32-bit) (FAT PART)

- modified con= fig.txt (FAT part):
# Raspberry Pi 3
[pi3]
kernel=3DzImage
devi= ce_tree=3Dbcm2837-rpi-3-b.dtb

- added cmdline.txt (FAT pa= rt):
dwc_otg.lpm_enable=3D0 root=3D/dev/mmcblk0p4 rootfstype=3Dext4 elevator=3Ddeadline fsck.repair=3D= yes=20 rootwait splash plymouth.ignore-serial-consoles

- added m= odules (rootfs ext4 part)

That works as expect= ed, my hci device is correctly configured and operational.
Ma= ybe u-boot adds some unexpected overlay or applies incorrect config.
=C2=A0
Regards
Loic
--001a113cf01a52976c0559c3932c--