Ah yes.
I changed the grub command line to point to /dev/sdd13 and burned to userdata.
Re. the HDMI, the hardware cannot generate correct clocks for many modes, if you force a working mode in the kernel command line you can get it working. I’m not using a monitor, but just tried these new instructions and it does now output to HDMI and display on two monitors I tried.
#----------------------
# Change the Debian image to have:
# UFS patched kernel
# Old style interface names
# Basic ethernet
# Working HDMI mode
# Unpack and mount original image
simg2img debian-hikey960-public.rootfs.img debian-hikey960-public.rootfs.raw.img
mkdir -p tmp
sudo mount debian-hikey960-public.rootfs.raw.img tmp
# Copy in the patched kernel:
sudo cp ../kernels/Image tmp/boot/
# Make basic ethernet setup
cat << EOF |sudo tee -a tmp/etc/network/interfaces
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
EOF
# Change kernel command line for old-style interface names and a working HDMI mode
sudo sed -i 's/rootwait/rootwait net.ifnames=0 video=HDMI-A-1:1280x800@60/' tmp/boot/grub/grub.cfg
# Change root partition
sudo sed -i 's/sdd10/sdd13/' tmp/boot/grub/grub.cfg
# Repack the image
sudo umount tmp
img2simg debian-hikey960-public.rootfs.raw.img debian-hikey960-public.rootfs.repacked.img
# Flash the new image
sudo fastboot erase system
sudo fastboot erase userdata
sudo fastboot flash userdata debian-hikey960-public.rootfs.repacked.img
sudo fastboot reboot
I then resized the file system at the root prompt, strange error first time even with force:
root@hikey960:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2064208 913192 1046160 47% /
devtmpfs 1983760 0 1983760 0% /dev
tmpfs 1992528 0 1992528 0% /dev/shm
tmpfs 1992528 29064 1963464 2% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1992528 0 1992528 0% /sys/fs/cgroup
tmpfs 398504 0 398504 0% /run/user/0
root@hikey960:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 4M 0 disk
sdb 8:16 0 4M 0 disk
sdc 8:32 0 8M 0 disk
└─sdc1 8:33 0 7M 0 part
sdd 8:48 0 29.8G 0 disk
├─sdd1 8:49 0 1M 0 part
├─sdd2 8:50 0 12M 0 part
├─sdd3 8:51 0 6M 0 part
├─sdd4 8:52 0 12M 0 part
├─sdd5 8:53 0 256M 0 part
├─sdd6 8:54 0 1M 0 part
├─sdd7 8:55 0 64M 0 part
├─sdd8 8:56 0 16M 0 part
├─sdd9 8:57 0 2M 0 part
├─sdd10 8:58 0 4.6G 0 part
├─sdd11 8:59 0 784M 0 part
├─sdd12 8:60 0 1M 0 part
└─sdd13 8:61 0 24.1G 0 part /
root@hikey960:~# resize2fs -f /dev/sdd13 24G
resize2fs 1.43.4 (31-Jan-2017)
Filesystem at /dev/sdd13 is mounted on /; on-line re[ 64.705471] EXT4-fs (sdd13): resizing filesystem from 524288 to 6291456 blocks
sizing required
old_desc_blocks = 1, ne[ 64.718563] EXT4-fs (sdd13): resized filesystem to 6291456
w_desc_blocks = 2
resize2fs: Remote I/O error While checking for on-line resizing support
root@hikey960:~# resize2fs -f /dev/sdd13 24G
resize2fs 1.43.4 (31-Jan-2017)
Filesystem at /dev/sdd13 is mounted on /; on-line resizing[ 77.673999] EXT4-fs (sdd13): resizing filesystem from 524288 to 6291456 blocks
required
old_desc_blocks = 1, new_desc_blocks = 2
[ 80.487587] EXT4-fs (sdd13): resized filesystem to 6291456
The filesystem on /dev/sdd13 is now 6291456 (4k) blocks long.
root@hikey960:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 24770940 915692 22828152 4% /
devtmpfs 1983760 0 1983760 0% /dev
tmpfs 1992528 0 1992528 0% /dev/shm
tmpfs 1992528 29064 1963464 2% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1992528 0 1992528 0% /sys/fs/cgroup
tmpfs 398504 0 398504 0% /run/user/0