Bug#947449: networking on Olimex Lime2 (Allwinner A20)

2019-12-27 Thread Geert Stappers
On Fri, Dec 27, 2019 at 11:32:00AM +0200, Marek Nečada wrote:
> 
> See dmesg_install.out for the dmesg output obtained at the end of
> installation and dmesg_postinstall.out for the output of dmesg in the
> installed system. It seems the system does not attempt to bring eth0 up
> during the boot; the following lines appear only after manually running
> ip link set eth0 up (with ethernet cable connected):
> 
> [  671.988940] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver 
> [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  671.992969] sun7i-dwmac 1c5.ethernet eth0: No Safety Features support 
> found
> [  671.992989] sun7i-dwmac 1c5.ethernet eth0: RX IPC Checksum Offload 
> disabled
> [  671.993003] sun7i-dwmac 1c5.ethernet eth0: No MAC Management Counters 
> available
> [  671.993013] sun7i-dwmac 1c5.ethernet eth0: PTP not supported by HW
> [  671.993972] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  674.023384] sun7i-dwmac 1c5.ethernet eth0: Link is Up - 100Mbps/Full - 
> flow control rx/tx
> [  674.023444] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> 
> Then I get the Link is down / up messages correctly after the cable is
> disconnected / connected, but the network does not work nevertheless
> (dhclient does not get any response; I didn't try wireshark on the other
> end of the cable with the installed system, but I assume it's the same
> as with the installer).
> 
> Marek

> [0.00] Booting Linux on physical CPU 0x0
 ... about three hundred lines ...
> [   59.033184] EXT4-fs (sda3): mounted filesystem without journal. Opts: 
> (null)
> [   59.081628] ISO 9660 Extensions: Microsoft Joliet Level 3
> [   59.087948] ISO 9660 Extensions: RRIP_1991A
> [  130.574044] sun7i-dwmac 1c5.ethernet: PTP uses main clock
> [  130.574071] sun7i-dwmac 1c5.ethernet: no reset control found
> [  130.574139] sun7i-dwmac 1c5.ethernet: no regulator found
> [  130.579193] sun7i-dwmac 1c5.ethernet: Version ID not available
> [  130.579218] sun7i-dwmac 1c5.ethernet:  DWMAC1000
> [  130.579230] sun7i-dwmac 1c5.ethernet: DMA HW capability register 
> supported
> [  130.579238] sun7i-dwmac 1c5.ethernet: Normal descriptors
> [  130.579245] sun7i-dwmac 1c5.ethernet: Ring mode enabled
> [  130.614299] libphy: stmmac: probed
> [  130.614334] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver 
> [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  134.855343] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver 
> [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  134.858330] sun7i-dwmac 1c5.ethernet eth0: No Safety Features support 
> found
> [  134.858348] sun7i-dwmac 1c5.ethernet eth0: RX IPC Checksum Offload 
> disabled
> [  134.858362] sun7i-dwmac 1c5.ethernet eth0: No MAC Management Counters 
> available
> [  134.858371] sun7i-dwmac 1c5.ethernet eth0: PTP not supported by HW
> [  134.859201] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  138.491344] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver 
> [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  138.494285] sun7i-dwmac 1c5.ethernet eth0: No Safety Features support 
> found
> [  138.494304] sun7i-dwmac 1c5.ethernet eth0: RX IPC Checksum Offload 
> disabled
> [  138.494317] sun7i-dwmac 1c5.ethernet eth0: No MAC Management Counters 
> available
> [  138.494326] sun7i-dwmac 1c5.ethernet eth0: PTP not supported by HW
> [  138.494701] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  142.598048] sun7i-dwmac 1c5.ethernet eth0: Link is Up - 100Mbps/Full - 
> flow control rx/tx
> [  142.598127] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

> [  671.988940] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver 
> [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  671.992969] sun7i-dwmac 1c5.ethernet eth0: No Safety Features support 
> found
> [  671.992989] sun7i-dwmac 1c5.ethernet eth0: RX IPC Checksum Offload 
> disabled
> [  671.993003] sun7i-dwmac 1c5.ethernet eth0: No MAC Management Counters 
> available
> [  671.993013] sun7i-dwmac 1c5.ethernet eth0: PTP not supported by HW
> [  671.993972] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  674.023384] sun7i-dwmac 1c5.ethernet eth0: Link is Up - 100Mbps/Full - 
> flow control rx/tx
> [  674.023444] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [  738.624810] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver 
> [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  738.628507] sun7i-dwmac 1c5.ethernet eth0: No Safety Features support 
> found
> [  738.628525] sun7i-dwmac 1c5.ethernet eth0: RX IPC Checksum Offload 
> disabled
> [  738.628540] sun7i-dwmac 1c5.ethernet eth0: No MAC Management Counters 
> available
> [  738.628549] sun7i-dwmac 

Bug#947449: installation-report: No networking on Olimex Lime2 (Allwinner A20)

2019-12-27 Thread Marek Nečada
Hello,

Samuel Thibault kirjoitti 27.12.2019 klo 9.42:
> Possible the board needs some non-free firmware?
> Did you try to install firmware-linux-free?
Yes, firmware-linux-free was apparently installed during the base install.
> Also, please post how the network board is detected (e.g. the complete
> dmesg output).

See dmesg_install.out for the dmesg output obtained at the end of
installation and dmesg_postinstall.out for the output of dmesg in the
installed system. It seems the system does not attempt to bring eth0 up
during the boot; the following lines appear only after manually running
ip link set eth0 up (with ethernet cable connected):

[  671.988940] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY
driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[  671.992969] sun7i-dwmac 1c5.ethernet eth0: No Safety Features
support found
[  671.992989] sun7i-dwmac 1c5.ethernet eth0: RX IPC Checksum
Offload disabled
[  671.993003] sun7i-dwmac 1c5.ethernet eth0: No MAC Management
Counters available
[  671.993013] sun7i-dwmac 1c5.ethernet eth0: PTP not supported by HW
[  671.993972] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  674.023384] sun7i-dwmac 1c5.ethernet eth0: Link is Up -
100Mbps/Full - flow control rx/tx
[  674.023444] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Then I get the Link is down / up messages correctly after the cable is
disconnected / connected, but the network does not work nevertheless
(dhclient does not get any response; I didn't try wireshark on the other
end of the cable with the installed system, but I assume it's the same
as with the installer).

Marek
[0.00] Booting Linux on physical CPU 0x0
[0.00] Linux version 4.19.0-6-armmp (debian-ker...@lists.debian.org) 
(gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.67-2+deb10u1 
(2019-09-20)
[0.00] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[0.00] CPU: div instructions available: patching division code
[0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
instruction cache
[0.00] OF: fdt: Machine model: Olimex A20-OLinuXino-LIME2
[0.00] Memory policy: Data cache writealloc
[0.00] efi: Getting EFI parameters from FDT:
[0.00] efi: UEFI not found.
[0.00] cma: Reserved 16 MiB at 0x7e00
[0.00] On node 0 totalpages: 259894
[0.00]   Normal zone: 1728 pages used for memmap
[0.00]   Normal zone: 0 pages reserved
[0.00]   Normal zone: 196608 pages, LIFO batch:63
[0.00]   HighMem zone: 63286 pages, LIFO batch:15
[0.00] psci: probing for conduit method from DT.
[0.00] psci: Using PSCI v0.1 Function IDs from DT
[0.00] random: get_random_bytes called from start_kernel+0xa0/0x504 
with crng_init=0
[0.00] percpu: Embedded 17 pages/cpu s39756 r8192 d21684 u69632
[0.00] pcpu-alloc: s39756 r8192 d21684 u69632 alloc=17*4096
[0.00] pcpu-alloc: [0] 0 [0] 1 
[0.00] Built 1 zonelists, mobility grouping on.  Total pages: 258166
[0.00] Kernel command line:  console=ttyS0,115200
[0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[0.00] Memory: 980120K/1039576K available (9216K kernel code, 1113K 
rwdata, 2588K rodata, 2048K init, 310K bss, 43072K reserved, 16384K 
cma-reserved, 236760K highmem)
[0.00] Virtual kernel memory layout:
[0.00] vector  : 0x - 0x1000   (   4 kB)
[0.00] fixmap  : 0xffc0 - 0xfff0   (3072 kB)
[0.00] vmalloc : 0xf080 - 0xff80   ( 240 MB)
[0.00] lowmem  : 0xc000 - 0xf000   ( 768 MB)
[0.00] pkmap   : 0xbfe0 - 0xc000   (   2 MB)
[0.00] modules : 0xbf00 - 0xbfe0   (  14 MB)
[0.00]   .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[0.00]   .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
[0.00]   .data : 0x(ptrval) - 0x(ptrval)   (1113 kB)
[0.00].bss : 0x(ptrval) - 0x(ptrval)   ( 311 kB)
[0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[0.00] ftrace: allocating 32722 entries in 96 pages
[0.00] rcu: Hierarchical RCU implementation.
[0.00] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[0.00] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[0.00] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[0.00] GIC: Using split EOI/Deactivate mode
[0.00] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[0.00] clocksource: arch_sys_counter: mask: 0xff 
max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[0.09] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 
4398046511097ns
[0.24] Switching to timer-based delay loop, 

Fresh install of Debian 10.2 subject to bug #860533

2019-12-27 Thread Mike Hommey
Hi,

I wasn't sure where to report this, so I'm shooting here.

I recently installed Debian 10.2 on a new machine, and went with manual
partitioning, putting the swap on an encrypted mdraid with a random key,
and the result is that booting the system would have a very large delay
on boot.

In recovery mode (or normal more without quiet on the kernel command
line), I was able to see a loop of messages saying "Running
/scripts/local-block ... done", which led me to find bug #860533, and it
turns out the problem was related: something in the installer had filled
/etc/initramfs-tools/conf.d/resume with "RESUME=/dev/mapper/md2_crypt",
and that doesn't work, which makes sense considering the random key.

Arguably, the initramfs hooks should probably complain about this setup
too, but it seems the installer should also avoid creating it in the
first place.

Cheers,

Mike



Bug#947458: installation-report: No bootloader install on A64-OLinuXino/sid

2019-12-27 Thread Marek Nečada
Package: installation-reports
Severity: normal

Dear Maintainer,

I installed a daily build onto A64-OLinuXino; contrary to the stable
release (10.2), the networking worked without problems and the
installation went fine almost until the end.

However, the installer apparently didn't event try to install any
bootloader.


-- Package-specific info:

Package: installation-reports

Boot method: SD-card (netinst)
Image version: Concatenated image
https://d-i.debian.org/daily-images/arm64/20191226-02:07/netboot/SD-card-images/firmware.a64-olinuxino.img.gz
https://d-i.debian.org/daily-images/arm64/20191226-02:07/netboot/SD-card-images/partition.img.gz
Date: 27.12.2019
Machine: A64-OLinuXino Rev. E (A64-OLinuXino-2Ge8G-IND)
Partitions: See below; full-disk autopartitioning used


Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:   [O]
Detect network card:[O]
Configure network:  [O]
Detect CD:  [ ]
Load installer modules: [ ]
Clock/timezone setup:   [ ]
User/password setup:[O]
Detect hard drives: [O]  On-board eMMC not detected.
Partition hard drives:  [O]
Install base system:[O]
Install tasks:  [O]
Install boot loader:[E]
Overall install:[ ]

Comments/Problems:

Used UART connection for the installation. Another instance of the
installer appeared also on the screen connected via HDMI, but the USB
keyboard did not work, rendering that instance useless.

The system was installed onto the SD card used for initial boot; with
full-disk automatic partitioning. The on-board eMMC was not detected by
the installer.

The installer apparently didn't even try to install a bootloader. After
installing the base system and tasks, I just got a message as on the
attached screenshot. When I try to go back and select an installation
step, Continue without bootloader was the only related option. I haven't
tried to boot manually (yet) due to a lack of skills.

-- 

Please make sure that the hardware-summary log file, and any other
installation logs that you think would be useful are attached to this
report. Please compress large files using gzip.

Once you have filled out this report, mail it to sub...@bugs.debian.org.

==
Installer lsb-release:
==
DISTRIB_ID=Debian
DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
DISTRIB_RELEASE="11 (bullseye) - installer build 20191226-02:03:52"
X_INSTALLATION_MEDIUM=netboot

==
Installer hardware-summary:
==
uname -a: Linux da64 5.3.0-3-arm64 #1 SMP Debian 5.3.15-1 (2019-12-07)
aarch64 GNU/Linux
usb-list: usb-list: Bus 01 Device 01: EHCI Host Controller [1d6b:0002]
usb-list:Level 00 Parent 00 Port 00  Class 09(hub  ) Subclass 00
Protocol 00
usb-list:Manufacturer: Linux 5.3.0-3-arm64 ehci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00
Driver hub
usb-list: usb-list: Bus 02 Device 01: Generic Platform OHCI controller
[1d6b:0001]
usb-list:Level 00 Parent 00 Port 00  Class 09(hub  ) Subclass 00
Protocol 00
usb-list:Manufacturer: Linux 5.3.0-3-arm64 ohci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00
Driver hub
usb-list: usb-list: Bus 03 Device 01: MUSB HDRC host driver [1d6b:0002]
usb-list:Level 00 Parent 00 Port 00  Class 09(hub  ) Subclass 00
Protocol 01
usb-list:Manufacturer: Linux 5.3.0-3-arm64 musb-hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00
Driver hub
usb-list: usb-list: Bus 04 Device 01: Generic Platform OHCI controller
[1d6b:0001]
usb-list:Level 00 Parent 00 Port 00  Class 09(hub  ) Subclass 00
Protocol 00
usb-list:Manufacturer: Linux 5.3.0-3-arm64 ohci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00
Driver hub
usb-list: usb-list: Bus 05 Device 01: EHCI Host Controller [1d6b:0002]
usb-list:Level 00 Parent 00 Port 00  Class 09(hub  ) Subclass 00
Protocol 00
usb-list:Manufacturer: Linux 5.3.0-3-arm64 ehci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00
Driver hub
lsmod: Module  Size  Used by
lsmod: fuse  131072  0
lsmod: dm_mod147456  0
lsmod: md_mod159744  0
lsmod: xfs  1306624  0
lsmod: jfs   192512  0
lsmod: btrfs1335296  0
lsmod: xor20480  1 btrfs
lsmod: xor_neon   16384  1 xor
lsmod: zstd_decompress73728  1 btrfs
lsmod: zstd_compress 167936  1 btrfs
lsmod: raid6_pq  110592  1 btrfs
lsmod: libcrc32c  16384  2 btrfs,xfs
lsmod: vfat   24576  0
lsmod: fat81920  1 vfat
lsmod: ext4  679936  2
lsmod: crc16  16384  1 ext4
lsmod: mbcache16384  1 ext4
lsmod: jbd2