Go to advanced search

by swahren
Thu Oct 15, 2020 5:34 pm
Forum: Linux Kernel
Topic: Raspberry Pi 4B - Kernel panic - not syncing: Attempted to kill init!
Replies: 14
Views: 371

Re: Raspberry Pi 4B - Kernel panic - not syncing: Attempted to kill init!

Does the kernel cmdline point to the right mmcblk device (mmclbk0 vs mmcblk1)?
by swahren
Tue Oct 06, 2020 5:45 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

I won't recommend using a downstream defconfig with a Mainline kernel, but this shouldn't cause this issue.

Another idea is to preserve the downstream commits to the brcmfmac driver and bitsect to the fixing patch(es).
by swahren
Sun Oct 04, 2020 8:18 am
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

Just a quick test with Mainline 5.9-rc2 + KMS patches on RPi 4 with Raspberry Pi OS (32 bit) showed that i was able to connect to my Wifi access point via 5 GHz. I tested with Kernel config: multi_v7_defconfig and enable ARM_LPAE + BRCMSTB_PCIE manually. dmesg output [ 6.434190] cfg80211: Loading co...
by swahren
Sat Oct 03, 2020 10:28 am
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

This patch contains a lot of and different changes (ugly hacks). Since the issue affects only 5 GHz, i guess it's related to the region settings.

What's the output of

Code: Select all

iw reg get
by swahren
Fri Oct 02, 2020 4:22 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

Does the Raspberry Pi 4Bs 5GHz wifi work on mainline or is it just me having a problem? Edit: Never mind I figured it. I made a patch in case anyone else is interested. Which Kernel version is affected? Which Wifi mode is affected (AP / STA)? Which Wifi firmware do you use? Could you describe the p...
by swahren
Sun Aug 09, 2020 9:11 am
Forum: Advanced users
Topic: Does uboot has I2c drivers for Raspberry Pi CM3
Replies: 9
Views: 1572

Re: Does uboot has I2c drivers for Raspberry Pi CM3

The problem is that the i2c command does not return any available bus when issued from the U-boot environment. Nevertheless it seems to work right under the Linux kernel. Both the U-Boot and the Kernel use the same device tree (custom-made). Providing the i2c relevant part would be very helpful Whi...
by swahren
Tue Jul 07, 2020 8:30 am
Forum: Linux Kernel
Topic: Status of Raspberry Pi 4 in Mainline
Replies: 27
Views: 13472

Re: Status of Raspberry Pi 4 in Mainline

How does that work if booting from SSD on USB3? The VL805 driver wold need to be in the bootloader EEPROM? I don't know the details, but the VideoCore cares about the VL805 and it's firmware. The kernel only needs to notify the VC about XHCI resets, because after a reset the RAM of the VL805 is cle...
by swahren
Mon Jul 06, 2020 8:38 pm
Forum: Linux Kernel
Topic: Status of Raspberry Pi 4 in Mainline
Replies: 27
Views: 13472

Re: Status of Raspberry Pi 4 in Mainline

Here are the upcoming Raspberry Pi specific features for Mainline Linux 5.8:
- proper USB support for Raspberry Pi 4 boards without separate VL805 EEPROM
by swahren
Thu Jun 25, 2020 4:49 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

I haven't got linux-next (the unreleased mainline kernel) working yet. It doesn't get past the initial colorful screen on the boot. What do you expect from linux-next in comparison from much stable stuff like linux-5.7.x or at least linux-5.8rc2? Do you have your screen connected via HDMI? Did you ...
by swahren
Mon Jun 15, 2020 7:28 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

rimrunner wrote:
Mon Jun 15, 2020 7:10 am
swahren wrote:
Mon Jun 15, 2020 4:59 am
These overlays are not supported by the mainline kernel.
So, no overlays are needed at all to get Raspbian running?
Yes, they are only necessary for I2C or SPI busses. Also mainline DTS are compiled differently which isn't compatible to overlays.
by swahren
Mon Jun 15, 2020 4:59 am
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

These overlays are not supported by the mainline kernel.
by swahren
Sat Jun 06, 2020 3:59 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

pihacker wrote:
Sat Jun 06, 2020 1:27 pm
garbage in a serial console is the problem now.
There isn't much we can do from kernel side. The parent of the mini UART clock is under control of the VideoCore firmware.

I see two options: remove bluetooth from the other UART and use this instead or force the Core to use a fixed clock.
by swahren
Sat Jun 06, 2020 8:24 am
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

Yes, it's using simple framebuffer as a workaround. Sorry, i don't have the time for deep investigations but try to apply similiar config options from ARCH config like this:

CONFIG_FB_SIMPLE=y
by swahren
Fri Jun 05, 2020 10:50 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

VC4 KMS support isn't mainlined yet. The whole RPi 4 support is still in progress.
by swahren
Fri Jun 05, 2020 9:13 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

You can try console=ttyS1,115200 . In case you see the strange output, this comes from changing core frequency. I think enable_uart=1 could help here. Btw the ttyAMA0 is already reserved for Bluetooth. Instead of initramfs, you can store all the kernel modules in the root partition. Just like Raspbi...
by swahren
Fri Jun 05, 2020 6:45 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

I must confess that i usually try to avoid initramfs. For 64 bit i only used Raspberry Pi OS 64 bit so far. But i wouldn't consider 32 bit as deprecated. As i suggested on the other thread, try to replace "serial0" with "ttyS1" in the cmdline.txt. This should make serial work. How did you come to th...
by swahren
Fri Jun 05, 2020 6:36 pm
Forum: C/C++
Topic: Problem using libgpiod
Replies: 34
Views: 6642

Re: Problem using libgpiod

libgpiod already contains binaries to play with: gpioinfo, gpioset, gpioget

Why not start playing with them?
by swahren
Fri Jun 05, 2020 5:10 pm
Forum: Linux Kernel
Topic: Mainline Kernel building -- problems and issues
Replies: 36
Views: 3564

Re: Mainline Kernel building -- problems and issues

This whole problem description is hard to follow. I think we should concentrate on one issue.

What is your goal 32 or 64 bit?
What rootfs are you using?
What are the relevant config.txt settings?

Btw it was proven that PHY mode was a red herring, so no need to touch this.
by swahren
Thu Jun 04, 2020 5:27 pm
Forum: Linux Kernel
Topic: Status of Raspberry Pi 4 in Mainline
Replies: 27
Views: 13472

Re: Status of Raspberry Pi 4 in Mainline

At first the intention of this thread wasn't to solve mainline kernel issues. This should be separate threads. @pihacker You never mentioned the kernel version or the base of your kernel config you are using. Did you overwrite the bcm2711-rpi-4-b.dtb on your sd card with the mainline version? For et...
by swahren
Tue Jun 02, 2020 12:38 pm
Forum: Linux Kernel
Topic: Status of Raspberry Pi 4 in Mainline
Replies: 27
Views: 13472

Re: Status of Raspberry Pi 4 in Mainline

Anyone who wants to test KMS for the RPi 4 could use Maxime Ripard's working branch:
https://git.kernel.org/pub/scm/linux/ke ... h=rpi4-kms
by swahren
Mon Jun 01, 2020 7:13 pm
Forum: Linux Kernel
Topic: Status of Raspberry Pi 4 in Mainline
Replies: 27
Views: 13472

Re: Status of Raspberry Pi 4 in Mainline

How can I try mainline linux kernel for rapsberry pi 4? Is there any instructions to compile mainline kernel? I've tried to compile it using this instructions - https://www.raspberrypi.org/documentation/linux/kernel/building.md, but my raspberry struck at loading with rainbow screen and noting on s...
by swahren
Sat May 30, 2020 9:15 am
Forum: Advanced users
Topic: Raspberry Pi 4 "VCHI initialization failed" error
Replies: 3
Views: 621

Re: Raspberry Pi 4 "VCHI initialization failed" error

Did you enabled CONFIG_BCM2835_VCHIQ in the kernel?
by swahren
Wed Apr 15, 2020 7:59 pm
Forum: Linux Kernel
Topic: Status of Raspberry Pi 4 in Mainline
Replies: 27
Views: 13472

Re: Status of Raspberry Pi 4 in Mainline

Here are the upcoming features for Mainline Linux 5.7: - 1920x1200@60Hz support for VC4 KMS of BCM283x - power saving (LPM) support for VIA LABS VL805 - extend pinctrl/gpio driver to support all 58 GPIOs of BCM2711 - add GPIO labels for Raspberry Pi 4 board - driver for Sony IMX219 sensor - bcm2835a...
by swahren
Fri Jan 31, 2020 8:05 pm
Forum: Linux Kernel
Topic: Interrupt differences between 32-bit and 64-bit kernels
Replies: 4
Views: 9572

Re: Interrupt differences between 32-bit and 64-bit kernels

As you noticed the smp_affinity isn't implemented yet. Is the smp_affinity ever going to be implemented? It is an important feature to achieve performance in case of IRQ-hungry peripherals... Nobody asked for this before as a necessary feature. There are only few kernel developer working on upstrea...
by swahren
Wed Jan 22, 2020 8:37 pm
Forum: Linux Kernel
Topic: Status of Raspberry Pi 4 in Mainline
Replies: 27
Views: 13472

Re: Status of Raspberry Pi 4 in Mainline

Gavinmc42 wrote:
Wed Jan 22, 2020 12:33 am
Nice, thanks for the update.
So it is looking like 5.6 will be the cross over point for Pi4 on mainstream?
Anything missing?
The whole graphics stuff (VC4, V3D), DMA engine and VCHIQ. I think they are more time consuming.

Go to advanced search