Bug#930098: flash-kernel: Pinebook

2019-06-06 Thread Adam Borowski
Package: flash-kernel
Version: 3.99
Severity: wishlist
Tags: patch

Here's an entry needed for Pinebook.


--- all.db~ 2019-05-23 18:54:49.0 +0200
+++ all.db  2019-06-06 17:15:28.236371171 +0200
@@ -1363,6 +1363,13 @@
 U-Boot-Script-Name: bootscr.uboot-generic
 Required-Packages: u-boot-tools
 
+Machine: Pinebook
+Kernel-Flavors: arm64
+DTB-Id: allwinner/sun50i-a64-pinebook.dtb
+Boot-Script-Path: /boot/boot.scr
+U-Boot-Script-Name: bootscr.uboot-generic
+Required-Packages: u-boot-tools
+
 Machine: PlatHome OpenBlocks AX3-4 board
 Kernel-Flavors: armmp armmp-lpae
 DTB-Id: armada-xp-openblocks-ax3-4.dtb



-- System Information:
Debian Release: 10.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: arm64 (aarch64)

Kernel: Linux 4.19.0-5-arm64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages flash-kernel depends on:
ii  debconf [debconf-2.0]  1.5.71
ii  devio  1.2-1.2+b1
ii  initramfs-tools0.133
ii  linux-base 4.6
ii  mtd-utils  1:2.0.1-1
ii  ucf3.0038+nmu1

Versions of packages flash-kernel recommends:
ii  u-boot-tools  2019.01+dfsg-7

flash-kernel suggests no packages.

-- debconf information excluded



Bug#930102: Pinebook: no bootloader

2019-06-06 Thread Adam Borowski
Package: installation-reports
Severity: normal

-- Package-specific info:

Boot method: SD
Image version: 
https://d-i.debian.org/daily-images/arm64/daily/u-boot/pinebook.img.gz 
2019-06-06
Date: 2019-06-06

Machine: Pinebook
Partitions: auto: 231MB ext4 /boot, 12.3GB btrfs /, 2GB swap


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

Initial boot:   [O]
Detect network card:[E]
Configure network:  [O]
Detect CD:  [ ]
Load installer modules: [O]
Clock/timezone setup:   [O]
User/password setup:[O]
Detect hard drives: [O]
Partition hard drives:  [!]
Install base system:[O]
Install tasks:  [ ]
Install boot loader:[E]
Overall install:[ ]

Comments/Problems:

2019-06-05 image didn't successfully boot, today's did -- might be user
error but what I got in my .bash_history looks right.  Or possibly
nasty-vendor-kernel Gemini somehow corrupts images while Wookey's laptop is
ok.  But whatever the cause was, today it went ok.

Alas, not so lucky with the network card.  None of these were recognized:
* Pinebook's built-in wifi
* official Pine ethernet USB dongle (RTL8152)
* a wifi USB dongle (RT5370) (would need non-free firmware but didn't even
  show as an USB device)
What worked was USB link through Wookey's Android phone.  Obviously, this
might be a problem in areas with lesser abundance of Wookeys.

The partitioner insisted on installing to SD card that d-i was on, instead
of the machine's built-in eMMC.  While both show as mmcblk devices, it's an
obvious problem akin to wanting to install to a sdb USB stick rather than
sda SATA disk -- when both candidate devices go over the same kind of
interface, you'd want to pick 1. non-removable one, and 2. one that is
doesn't bear d-i itself.  Both criteria would be matched by /dev/mmcblk2
while /dev/mmcblk0 is SD card reader.

The worst part was the bootloader.  Making the box bootable took several
hours of effort despite no lack of related expertise of folks here
(minidebconf environment).  Steps that worked are:
* flash-kernel with the obvious patch (just submitted)
* installing u-boot-menu, u-boot-sunxi
* running flash-kernel, u-boot-install-sunxi64 and u-boot-update


==
Installer lsb-release:
==
DISTRIB_ID=Debian
DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
DISTRIB_RELEASE="10 (buster) - installer build 20190606-02:03:57"
X_INSTALLATION_MEDIUM=netboot

==
Installer hardware-summary:
==
uname -a: Linux moria 4.19.0-5-arm64 #1 SMP Debian 4.19.37-3 (2019-05-15) 
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 4.19.0-5-arm64 ehci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00 Driver hub
usb-list: 
usb-list: Bus 02 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 4.19.0-5-arm64 ehci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00 Driver hub
usb-list: 
usb-list: Bus 02 Device 02: USB2.0 Hub [05e3:0608]
usb-list:Level 01 Parent 01 Port 00  Class 09(hub  ) Subclass 00 Protocol 01
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00 Driver hub
usb-list: 
usb-list: Bus 02 Device 03: USB KEYBOARD [258a:000c]
usb-list:Level 02 Parent 02 Port 00  Class 00(>ifc ) Subclass 00 Protocol 00
usb-list:Manufacturer: HAILUCK CO.,LTD
usb-list:Interface 00: Class 03(HID  ) Subclass 01 Protocol 01 Driver usbhid
usb-list:Interface 01: Class 03(HID  ) Subclass 00 Protocol 00 Driver usbhid
usb-list: 
usb-list: Bus 02 Device 07: SAMSUNG_Android [04e8:6863]
usb-list:Level 02 Parent 02 Port 01  Class e0(wlcon) Subclass 00 Protocol 00
usb-list:Manufacturer: SAMSUNG
usb-list:Interface 00: Class e0(wlcon) Subclass 01 Protocol 03 Driver 
rndis_host
usb-list:Interface 01: Class 0a(comdt) Subclass 00 Protocol 00 Driver 
rndis_host
usb-list: 
usb-list: Bus 02 Device 04: USB 2.0 PC Cam [090c:037c]
usb-list:Level 02 Parent 02 Port 02  Class ef(misc ) Subclass 02 Protocol 01
usb-list:Manufacturer: Image Processor
usb-list:Interface 00: Class 0e(video) Subclass 01 Protocol 00 Driver 
usb-list:Interface 01: Class 0e(video) Subclass 02 Protocol 00 Driver 
usb-list: 
usb-list: Bus 03 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 4.19.0-5-arm64 ohci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00 Driver hub
usb-list: 
usb