[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#864807: debian-installer: Lamobo R1 requires modprobe b53_mdio




On 06/15/2017 11:43 AM, Ben Hutchings wrote:
> Control: tag -1 moreinfo
> 
> On Thu, 2017-06-15 at 08:34 +0200, Heinrich Schuchardt wrote:
>> Package: debian-installer
>> Version: stretch
>> Severity: normal
>>
>> Dear Maintainer,
>>
>> the Lamobo R1 is an Arm system based on the Amlogic A20.
>> The network interface of the A20 is connected to a switch.
>> If the switch is not configured there is no external
>> network access and subsequently a network install fails.
>>
>> On an installed system it is sufficient to have a line
>> in /etc/modules:
>> b53_mdio
>>
>> I suggest the following corrections to the installer:
>>
>> The initrd.img should include the b53_mdio module and its
>> prerequisites b53_common and dsa_core plus aforementioned
>> file /etc/modules.
>>
>> The installer should compare the content of
>> /proc/device-tree/model
>> to the string
>> Lamobo R1
>>
>> If this string is found, the file /etc/modules should be
>> appended with b53_mdio on the installed system.
> 
> Why is this necessary?  It should load automatically.
> 
> Ben.
> 

The device tree has a string:
compatible = "brcm,bcm53125"

Same string is in the b53_mdio MODULE_DEVICE_TABLE.

So I would have guessed it should create a match in b53_mdio.c.


But with linux-image-4.9.0-3-armmp the module is not loaded automatically.

I have tested as follows:

Remove b53_mdio from /etc/modules.
sudo update-initramfs -k $(uname -r) -u
sudo reboot
==> no network address assigned by DHCP
sudo modprobe b53_mdio
results in output
b53_common: found switch: BCM53125, rev 4

Add b53_mdio to /etc/modules.
sudo update-initramfs -k $(uname -r) -u
sudo reboot
==> Network is available
dmesg has these lines:
[  +0.325134] libphy: mdio_driver_register: bcm53xx
[  +0.005595] b53_common: found switch: BCM53125, rev 4
[  +0.013589] DSA: switch 0 0 parsed
[  +0.003438] DSA: tree 0 parsed

Best regards

Heinrich

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: