No kernel update from Sep. 9th

Discussion about U-Boot and the kernel.

Re: No kernel update from Sep. 9th

Postby windozupdat3 » Thu Feb 02, 2023 7:13 am

$this->bbcode_second_pass_quote('lynix', '')$this->bbcode_second_pass_quote('', 'H')i lynix, do you mind to share?


Sure, I guess I shall make the link public now as multiple users have asked for it:

https://nc.tuxed.org/s/pQ7gwBffQtfjmBg

Please note that the only device I can test this on is an Odroid C4, so no guarantees for other platforms.

Many thanks! Working well also on Odroid-N2.
windozupdat3
 
Posts: 39
Joined: Tue Aug 29, 2017 9:07 am

Re: No kernel update from Sep. 9th

Postby lynix » Thu Feb 02, 2023 12:07 pm

Thanks for the positive feedback, I'm happy to contribute! :)

As you all might have noticed, kernel v6.1.9 has been released.

I have thus updated my fork and opened a new pull request for the new version. This time the PR is set up in a way that lets me push updates when newer kernel versions are released.

In case you would like to give this new version a try, I have uploaded binary packages for 'linux-aarch64', 'linux-aarch64-headers' and 'linux-aarch64-chomebook' here:

https://github.com/lynix/linux-aarch64-bin

I know, sharing large binary blobs in a Git repository is not that nice. I'm still trying to see if I can automate builds on ARM via GitHub CI. In the meantime the repo will work, I guess.
lynix
 
Posts: 19
Joined: Tue Apr 09, 2013 12:02 pm

Re: No kernel update from Sep. 9th

Postby Hitchar » Fri Feb 03, 2023 11:45 am

Thanks for building a new version of the linux-aarch64 package!
I have tried installing it on my Raspberrypi 3b+ but the new kernel will not boot.

During startup:
$this->bbcode_second_pass_code('', 'Failed to load '/dtbs/broadcom/bcm2837-rpi-3-b.dtb'')

It seems that the boot/dtbs/broadcom/ directory is empty in the new package.

Old:
$this->bbcode_second_pass_code('', '
-rwxr-xr-x root/root 36886 2022-03-29 01:53 boot/dtbs/broadcom/bcm2711-rpi-4-b.dtb
-rwxr-xr-x root/root 36830 2022-03-29 01:53 boot/dtbs/broadcom/bcm2711-rpi-400.dtb
-rwxr-xr-x root/root 36945 2022-03-29 01:53 boot/dtbs/broadcom/bcm2711-rpi-cm4-io.dtb
-rwxr-xr-x root/root 19740 2022-03-29 01:53 boot/dtbs/broadcom/bcm2837-rpi-3-a-plus.dtb
-rwxr-xr-x root/root 20474 2022-03-29 01:53 boot/dtbs/broadcom/bcm2837-rpi-3-b-plus.dtb
-rwxr-xr-x root/root 20006 2022-03-29 01:53 boot/dtbs/broadcom/bcm2837-rpi-3-b.dtb
-rwxr-xr-x root/root 19266 2022-03-29 01:53 boot/dtbs/broadcom/bcm2837-rpi-cm3-io3.dtb
')

New:
$this->bbcode_second_pass_code('', '/boot/dtbs has no broadcom dir ')

This issue seems related: https://github.com/raspberrypi/linux/issues/5213
It seems that a possible solution is to enable CONFIG_ARCH_BCM=y
Hitchar
 
Posts: 6
Joined: Fri Feb 03, 2023 11:36 am

Re: No kernel update from Sep. 9th

Postby Mettacrawler » Fri Feb 03, 2023 7:03 pm

Please set
CONFIG_PHY_MVEBU_CP110_UTMI=y
It is required for Mochabin USB, possibly other Marvell Armada systems as well.
See viewtopic.php?f=65&t=16248 for more details.
Mettacrawler
 
Posts: 56
Joined: Sun Mar 18, 2018 7:19 pm

Re: No kernel update from Sep. 9th

Postby lynix » Sat Feb 04, 2023 7:47 am

$this->bbcode_second_pass_quote('', 'T')hanks for building a new version of the linux-aarch64 package!
I have tried installing it on my Raspberrypi 3b+ but the new kernel will not boot.


Thanks for reporting the breakage and pointing me in the right direction for the fix!

I've updated the config and packaged it in linux-aarch64-6.1.9-2. Available as binary packages here as before:

https://github.com/lynix/linux-aarch64-bin


$this->bbcode_second_pass_quote('', 'P')lease set
CONFIG_PHY_MVEBU_CP110_UTMI=y
It is required for Mochabin USB, possibly other Marvell Armada systems as well.


Thanks, I'll update the config and bake 6.1.9-3 as soon as the weekend planning lets me spend the time :)
lynix
 
Posts: 19
Joined: Tue Apr 09, 2013 12:02 pm
Top

Re: No kernel update from Sep. 9th

Postby Hitchar » Sat Feb 04, 2023 10:31 pm

I have tested the new build my raspberry pi booted! But the USB ports (keyboard and external HDD), and the ethernet port don't seem to work. I'll see if I can find the cause. I believe it's related because I think they're connected to the same controller.
Hitchar
 
Posts: 6
Joined: Fri Feb 03, 2023 11:36 am

Re: No kernel update from Sep. 9th

Postby lynix » Sun Feb 05, 2023 3:30 pm

I have finished a new build: v6.1.9-3

https://github.com/lynix/linux-aarch64-bin

This version includes the fixes regarding eFuses and MochaBin USB.


$this->bbcode_second_pass_quote('', 'I') have tested the new build my raspberry pi booted! But the USB ports (keyboard and external HDD), and the ethernet port don't seem to work. I'll see if I can find the cause. I believe it's related because I think they're connected to the same controller.


You could try the new build and see if the Pi3 is covered by CONFIG_PHY_MVEBU_CP110_UTMI. Otherwise we need to find out which USB controller it has or which driver it needs.
lynix
 
Posts: 19
Joined: Tue Apr 09, 2013 12:02 pm
Top

Re: No kernel update from Sep. 9th

Postby Hitchar » Sun Feb 05, 2023 9:53 pm

The layout of the usb devices on my pi3b are:
$this->bbcode_second_pass_code('', '
$ sudo lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
|__ Port 2: Dev 4, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 12M
|__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
')

I think the culprit is the root hub, because when booting the new kernel I can see in the dmesg:
$this->bbcode_second_pass_code('', '
$ sudo journalctl -b -1 | grep -i dwc
Jan 31 05:51:29 HOSTNAME kernel: dwc2 3f980000.usb: deferred probe timeout, ignoring dependency
Jan 31 05:51:29 HOSTNAME kernel: dwc2: probe of 3f980000.usb failed with error -110
')
The second line (the error) is not present when booting the old kernel.

I've found this comment in a relevant thread: https://github.com/raspberrypi/linux/is ... 1100070149
Seems like enabling CONFIG_RASPBERRYPI_POWER should fix the problem.

Perhaps we should also take a look at the kernel config in the linux-aarch64-rc package. This package was updated to 6.0.0rc5 and has more options enabled, for example:
linux-aarch64-rc
$this->bbcode_second_pass_code('', '
grep -i 'raspber' config.aarch64-rc
CONFIG_ARM_RASPBERRYPI_CPUFREQ=y
CONFIG_RASPBERRYPI_FIRMWARE=y
CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m
CONFIG_GPIO_RASPBERRYPI_EXP=y
CONFIG_SENSORS_RASPBERRYPI_HWMON=m
# CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY is not set
CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=m
CONFIG_CLK_RASPBERRYPI=y
CONFIG_RASPBERRYPI_POWER=y
CONFIG_PWM_RASPBERRYPI_POE=m
CONFIG_RESET_RASPBERRYPI=y
')
that are not enabled in the new kernel:
$this->bbcode_second_pass_code('', '
grep -i 'raspber' config.aarch64
CONFIG_RASPBERRYPI_FIRMWARE=y
# CONFIG_TOUCHSCREEN_RASPBERRYPI_FW is not set
CONFIG_GPIO_RASPBERRYPI_EXP=y
# CONFIG_SENSORS_RASPBERRYPI_HWMON is not set
# CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY is not set
CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=m
# CONFIG_CLK_RASPBERRYPI is not set
# CONFIG_RASPBERRYPI_POWER is not set
# CONFIG_PWM_RASPBERRYPI_POE is not set
CONFIG_RESET_RASPBERRYPI=y
')
Maybe it's worthwhile to do a diffconfig to see the differences, also for other platforms?
Last edited by Hitchar on Mon Feb 06, 2023 5:44 am, edited 1 time in total.
Hitchar
 
Posts: 6
Joined: Fri Feb 03, 2023 11:36 am

Re: No kernel update from Sep. 9th

Postby Mettacrawler » Sun Feb 05, 2023 10:11 pm

MVEBU stands for Marvell Engineering Business Unit
although some docs say Marvell Embedded Business Unit.
In general Marvell produces products for use in netgear used by businesses.

CONFIG_PHY_MVEBU_CP110_UTMI applies to Marvell SoCs
- Armada 7K SoC Family (small devices like the Mochabin)
- Armada 8K SoC Family (used in appliances, example 430 x 320 x 44.2 mm, 16" x 12" x 1U)
- CN913X SoC Family (used in relatively-large servers, example: 19" 1U form factor)

1U is "one rack unit", 44.45 mm.

I doubt CONFIG_PHY_MVEBU_CP110_UTMI applies to RPIs.
Mettacrawler
 
Posts: 56
Joined: Sun Mar 18, 2018 7:19 pm

Re: No kernel update from Sep. 9th

Postby lynix » Mon Feb 06, 2023 11:17 am

Thanks for the hint regarding linux-aarch64-rc, I was erroneously assuming I had done a diffconfig before.

:!: New build: linux-aarch64-6.1.10-1

So for this new build I have re-synced the config, the Broadcom stuff should work much better now. I've also included the just released v6.1.10 and updated the pull request accordingly. Enjoy! 8-)

Binary packages here, as usual. Maybe I should set up a repo for this package.
lynix
 
Posts: 19
Joined: Tue Apr 09, 2013 12:02 pm

PreviousNext

Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 6 guests