Board : NanoPi NEO2 512M/1G RAM
Image: nanopi-neo2_friendlycore-xenial_4.14.0_20180511.img
Symptom: Seeing error message in `dmesg` like this and `rootfs.cpio.gz` cannot be loaded

Code: Select all

pi@NanoPi-NEO2:~$ dmesg | grep -i initram
[    0.034020] Unpacking initramfs...
[    0.228661] Initramfs unpacking failed: junk in compressed archive


Other experiments:
I tried to use `update-initramfs` to create a standard initramfs package and update `boot.cmd`(use `mkimage` to update `boot.scr`) to load it instead, but no luck. It still failed at unpacking the cpio package.

Code: Select all

pi@NanoPi-NEO2:~$ sudo update-initramfs -c -k $(uname -r)
update-initramfs: Generating /boot/initrd.img-4.14.0
pi@NanoPi-NEO2:~$ cd /boot
pi@NanoPi-NEO2:/boot$ vim boot.cmd
pi@NanoPi-NEO2:/boot$ grep ramdisk boot.cmd
setenv ramdisk initrd.img-4.14.0
setenv ramdisk_addr 0x47000000
fatload mmc 0 ${ramdisk_addr} ${ramdisk}
booti ${kernel_addr} ${ramdisk_addr}:500000 ${dtb_addr}
pi@NanoPi-NEO2:/boot$ mkimage -C none -A arm -T script -d boot.cmd boot.scr
mkimage: Can't open boot.scr: Permission denied
pi@NanoPi-NEO2:/boot$ sudo mkimage -C none -A arm -T script -d boot.cmd boot.scr
Image Name:
Created:      Mon May 28 14:19:13 2018
Image Type:   ARM Linux Script (uncompressed)
Data Size:    1124 Bytes = 1.10 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 1116 Bytes = 1.09 kB = 0.00 MB
pi@NanoPi-NEO2:/boot$ sudo reboot