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

2017-06-15 Thread Heinrich Schuchardt


On 06/15/2017 12:57 PM, Karsten Merker wrote:
> Cyril Brulebois wrote:
>> On Thu, Jun 15, 2017 at 10:43:18AM +0100, 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.
>>
>> Because of missing i2c? Lamobo R1 is listed here:
>>   https://bugs.debian.org/864536#15
>>
>> (Didn't check the recursive list of dependencies though.)
> 
> If I understood the original submitter correctly, the problem
> also exists in the installed system, not only in d-i.  The
> i2c-modules udeb issue (or other modules unavailable in the udebs
> but available in the regular kernel deb) would explain problems
> inside d-i, but not in the installed system.
> 
> Heinrich, can you clarify on that?
> 
> Regards,
> Karsten
> 

Yes, the problems exists both in the installer and in an installed system.

I set up the installed system via debootstrap:
https://github.com/xypron/debian-image-lamobo-r1/commit/8fa1b7cb3a0cc2bfd44475d0c9972115ffb82e15

Best regards

Heinrich Schuchardt



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

2017-06-15 Thread Heinrich Schuchardt


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



signature.asc
Description: OpenPGP digital signature


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

2017-06-15 Thread Cyril Brulebois
Ben Hutchings  (2017-06-15):
> 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.

Because of missing i2c? Lamobo R1 is listed here:
  https://bugs.debian.org/864536#15

(Didn't check the recursive list of dependencies though.)


KiBi.


signature.asc
Description: Digital signature


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

2017-06-15 Thread Ben Hutchings
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.

-- 
Ben Hutchings
It is easier to change the specification to fit the program than vice
versa.



signature.asc
Description: This is a digitally signed message part


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

2017-06-15 Thread Heinrich Schuchardt
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.

Best regards

Heinrich Schuchardt