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

Bug#786716: Debian on Allwinner A20 installation report (fail)



Ian,

Many thanks.  I noticed when perusing the dailies again that the last couple of days builds don't appear to have completed properly, at least according to the logs for netboot.  Many of the normal directories are not there, and of course their corresponding contents.


I looked at the DTB file for the cubieboard2 on 05/29/2015 and noted the same as you that it is now gmac rather than emac for ethernet for whatever reason.

aliases {
ethernet0 = "/soc@01c00000/ethernet@01c50000";
};...

ethernet@01c0b000 {
compatible = "allwinner,sun4i-a10-emac";
reg = <0x1c0b000 0x1000>;
interrupts = <0x0 0x37 0x4>;
clocks = <0x3 0x11>;
status = "disabled";
};
....
ethernet@01c50000 {
compatible = "allwinner,sun7i-a20-gmac";
reg = <0x1c50000 0x10000>;
interrupts = <0x0 0x55 0x4>;
interrupt-names = "macirq";
clocks = <0x3 0x31 0x2f>;
clock-names = "stmmaceth", "allwinner_gmac_tx";
snps,pbl = <0x2>;
snps,fixed-burst;
snps,force_sf_dma_mode;
status = "okay";
#address-cells = <0x1>;
#size-cells = <0x0>;
pinctrl-names = "default";
pinctrl-0 = <0x30>;
phy = <0x31>;
phy-mode = "mii";

ethernet-phy@1 {
reg = <0x1>;
linux,phandle = <0x31>;
phandle = <0x31>;
};
};

 Mitch Winkle |||||| [o] VA
AB4MW





On Saturday, May 30, 2015 12:50 PM, Ian Campbell <ijc@debian.org> wrote:
Control: reassign -1 src:linux 4.0.2-1


On Sun, 2015-05-24 at 19:08 +0000, Mitch Winkle wrote:
> 1. Older versions detect ethernet network and begin installer download
> which fails because of mis-matched kernel modules.
> 
> 2. Newer version have no ethernet support for the Cubieboard2
> (sunxi-emac) and so there is no way to download the installer.
> 
> Used dailies from 2015-05-08 forward.
> 
> All dailies newer than 05-12-2015 fail on loading ethernet "driver".

This seems to correspond with the switch in sid from 3.16.0-4-armmp to
4.0.0-1-armmp.

An initrd with 3.16.0-4-armmp won't work against the archive any longer
due to version mismatch.

The initrd from
http://d-i.debian.org/daily-images/armhf/20150514-00:36/netboot/initrd.gz
(which I think should be the first bad one) contains:

/lib/modules/4.0.0-1-armmp/kernel/drivers/net/ethernet/allwinner/sun4i-emac.ko

So the issue isn't that the module is missing altogether.

I booted the SD image from that date on a Cubieboard2 and indeed
sun4i-emac.ko is not automatically loaded and loading it by hand causes
no device to appear.

Looking around in /proc/device-tree it seems that the _gmac_ device is
marked enabled and the _emac_ device is disabled. The driver for this is
stmmac. Using the image from 20150512-00:43 this is the driver which is
loaded, so sunxi-emac is a red-herring I think.

stmmac.ko is also included in the 20150514-00:36 but also isn't
autoloaded and loading manually doesn't help.

Ah, it seems like we also need a new module, stmmac-platform.ko, to be
included in the nic-modules udeb.

I'll arrange for that to be in the next kernel upload.

Ian.


Reply to: