Last week I did a pacman -Syu, which included an update to uboot-odroid-c2-2015.01-9, that worked fine:
$this->bbcode_second_pass_code('', '[root@no]# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra 2.3 MiB 1850K/s 00:01 [########################################################################] 100%
community 3.4 MiB 1913K/s 00:02 [########################################################################] 100%
alarm is up to date
aur is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (30) curl-7.50.0-1 device-mapper-2.02.162-1 e2fsprogs-1.43.1-2 findutils-4.6.0-2 gawk-4.1.3-2 gd-2.2.3-1 giflib-5.1.4-1 gpgme-1.6.0-3 groff-1.22.3-7 harfbuzz-1.3.0-1
iproute2-4.6.0-1 kmod-23-1 libidn-1.33-1 libksba-1.3.4-2 libmariadbclient-10.1.16-1 libsystemd-231-1 libtasn1-4.9-2 libwebp-0.5.1-1 linux-odroid-c2-3.14.65-18 lvm2-2.02.162-1
man-db-2.7.5-3 man-pages-4.07-1 mariadb-10.1.16-1 mariadb-clients-10.1.16-1 nano-2.6.2-1 openssh-7.3p1-1 systemd-231-1 systemd-sysvcompat-231-1 thin-provisioning-tools-0.6.3-1
uboot-odroid-c2-2015.01-9
Total Download Size: 55.42 MiB
Total Installed Size: 265.59 MiB
Net Upgrade Size: -3.29 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
libidn-1.33-1-aarch64 202.6 KiB 1013K/s 00:00 [########################################################################] 100%
findutils-4.6.0-2-aarch64 407.1 KiB 1939K/s 00:00 [########################################################################] 100%
libtasn1-4.9-2-aarch64 109.5 KiB 238K/s 00:00 [########################################################################] 100%
e2fsprogs-1.43.1-2-aarch64 777.5 KiB 492K/s 00:02 [########################################################################] 100%
curl-7.50.0-1-aarch64 772.8 KiB 192K/s 00:04 [########################################################################] 100%
kmod-23-1-aarch64 95.0 KiB 244K/s 00:00 [########################################################################] 100%
libsystemd-231-1-aarch64 243.2 KiB 405K/s 00:01 [########################################################################] 100%
systemd-231-1-aarch64 3.3 MiB 572K/s 00:06 [########################################################################] 100%
device-mapper-2.02.162-1-aarch64 241.9 KiB 896K/s 00:00 [########################################################################] 100%
gawk-4.1.3-2-aarch64 915.0 KiB 973K/s 00:01 [########################################################################] 100%
libksba-1.3.4-2-aarch64 97.7 KiB 977K/s 00:00 [########################################################################] 100%
gpgme-1.6.0-3-aarch64 207.4 KiB 561K/s 00:00 [########################################################################] 100%
groff-1.22.3-7-aarch64 1782.4 KiB 1403K/s 00:01 [########################################################################] 100%
iproute2-4.6.0-1-aarch64 588.6 KiB 2030K/s 00:00 [########################################################################] 100%
linux-odroid-c2-3.14.65-18-aarch64 20.9 MiB 1278K/s 00:17 [########################################################################] 100%
thin-provisioning-tools-0.6.3-1-aarch64 338.1 KiB 867K/s 00:00 [########################################################################] 100%
lvm2-2.02.162-1-aarch64 911.7 KiB 843K/s 00:01 [########################################################################] 100%
man-db-2.7.5-3-aarch64 361.0 KiB 860K/s 00:00 [########################################################################] 100%
man-pages-4.07-1-any 5.5 MiB 1305K/s 00:04 [########################################################################] 100%
nano-2.6.2-1-aarch64 397.7 KiB 1075K/s 00:00 [########################################################################] 100%
openssh-7.3p1-1-aarch64 593.1 KiB 1262K/s 00:00 [########################################################################] 100%
systemd-sysvcompat-231-1-aarch64 6.3 KiB 0.00B/s 00:00 [########################################################################] 100%
giflib-5.1.4-1-aarch64 57.6 KiB 576K/s 00:00 [########################################################################] 100%
libwebp-0.5.1-1-aarch64 226.6 KiB 1079K/s 00:00 [########################################################################] 100%
harfbuzz-1.3.0-1-aarch64 286.3 KiB 1023K/s 00:00 [########################################################################] 100%
gd-2.2.3-1-aarch64 125.9 KiB 1145K/s 00:00 [########################################################################] 100%
libmariadbclient-10.1.16-1-aarch64 3.7 MiB 1416K/s 00:03 [########################################################################] 100%
mariadb-clients-10.1.16-1-aarch64 899.5 KiB 1697K/s 00:01 [########################################################################] 100%
mariadb-10.1.16-1-aarch64 11.4 MiB 1765K/s 00:07 [########################################################################] 100%
uboot-odroid-c2-2015.01-9-aarch64 223.6 KiB 2.18M/s 00:00 [########################################################################] 100%
(30/30) checking keys in keyring [########################################################################] 100%
(30/30) checking package integrity [########################################################################] 100%
(30/30) loading package files [########################################################################] 100%
(30/30) checking for file conflicts [########################################################################] 100%
(30/30) checking available disk space [########################################################################] 100%
:: Processing package changes...
( 1/30) upgrading libidn [########################################################################] 100%
( 2/30) upgrading findutils [########################################################################] 100%
( 3/30) upgrading libtasn1 [########################################################################] 100%
( 4/30) upgrading e2fsprogs [########################################################################] 100%
( 5/30) upgrading curl [########################################################################] 100%
( 6/30) upgrading kmod [########################################################################] 100%
( 7/30) upgrading libsystemd [########################################################################] 100%
( 8/30) upgrading systemd [########################################################################] 100%
( 9/30) upgrading device-mapper [########################################################################] 100%
(10/30) upgrading gawk [########################################################################] 100%
(11/30) installing giflib [########################################################################] 100%
(12/30) installing libwebp [########################################################################] 100%
Optional dependencies for libwebp
freeglut: vwebp viewer
(13/30) upgrading harfbuzz [########################################################################] 100%
(14/30) upgrading gd [########################################################################] 100%
(15/30) upgrading libksba [########################################################################] 100%
(16/30) upgrading gpgme [########################################################################] 100%
(17/30) upgrading groff [########################################################################] 100%
(18/30) upgrading iproute2 [########################################################################] 100%
(19/30) upgrading libmariadbclient [########################################################################] 100%
(20/30) upgrading linux-odroid-c2 [########################################################################] 100%
>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio. Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux-odroid-c2.preset: 'default'
-> -k 3.14.65-18-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.14.65-18-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
find: '/sys/devices/platform/': No such file or directory
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
(21/30) upgrading thin-provisioning-tools [########################################################################] 100%
(22/30) upgrading lvm2 [########################################################################] 100%
(23/30) upgrading man-db [########################################################################] 100%
(24/30) upgrading man-pages [########################################################################] 100%
(25/30) upgrading mariadb-clients [########################################################################] 100%
(26/30) upgrading mariadb [########################################################################] 100%
(27/30) upgrading nano [########################################################################] 100%
warning: /etc/nanorc installed as /etc/nanorc.pacnew
(28/30) upgrading openssh [########################################################################] 100%
(29/30) upgrading systemd-sysvcompat [########################################################################] 100%
(30/30) upgrading uboot-odroid-c2 [########################################################################] 100%
A new U-Boot version needs to be flashed onto /dev/mmcblk0.
Do you want to do this now? [y|N]
y
BL1 fusing
442+0 records in
442+0 records out
442 bytes copied, 3.10234 s, 0.1 kB/s
96+0 records in
96+0 records out
49152 bytes (49 kB, 48 KiB) copied, 2.72387 s, 18.0 kB/s
u-boot fusing
1184+0 records in
1184+0 records out
606208 bytes (606 kB, 592 KiB) copied, 3.08893 s, 196 kB/s
:: Running post-transaction hooks...
(1/3) Updating manpage index...
(2/3) Updating the info directory file...
(3/3) Updating udev Hardware Database...
[root@no]#')
Today I did another pacman -Syu, which included uboot-odroid-c2-2015.01-10, that made the odroid c2 unbootable:
$this->bbcode_second_pass_code('', '[root@no]# pacman -Syu
:: Synchronizing package databases...
core 173.6 KiB 789K/s 00:00 [########################################################################] 100%
extra 2.3 MiB 1658K/s 00:01 [########################################################################] 100%
community 3.4 MiB 1653K/s 00:02 [########################################################################] 100%
alarm 24.6 KiB 2.41M/s 00:00 [########################################################################] 100%
aur is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (4) fontconfig-2.12.1-3 linux-api-headers-4.7-1 uboot-odroid-c2-2015.01-10 watchdog-5.15-1
Total Download Size: 1.80 MiB
Total Installed Size: 6.18 MiB
Net Upgrade Size: 0.10 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
linux-api-headers-4.7-1-aarch64 783.2 KiB 1374K/s 00:01 [########################################################################] 100%
fontconfig-2.12.1-3-aarch64 787.9 KiB 847K/s 00:01 [########################################################################] 100%
watchdog-5.15-1-aarch64 53.6 KiB 765K/s 00:00 [########################################################################] 100%
uboot-odroid-c2-2015.01-10-aarch64 223.6 KiB 894K/s 00:00 [########################################################################] 100%
(4/4) checking keys in keyring [########################################################################] 100%
(4/4) checking package integrity [########################################################################] 100%
(4/4) loading package files [########################################################################] 100%
(4/4) checking for file conflicts [########################################################################] 100%
(4/4) checking available disk space [########################################################################] 100%
:: Processing package changes...
(1/4) upgrading linux-api-headers [########################################################################] 100%
(2/4) upgrading fontconfig [########################################################################] 100%
updating font cache... done.
(3/4) upgrading uboot-odroid-c2 [########################################################################] 100%
A new U-Boot version needs to be flashed onto /dev/mmcblk0.
Do you want to do this now? [y|N]
y
BL1 fusing
442+0 records in
442+0 records out
442 bytes copied, 0.00145703 s, 303 kB/s
96+0 records in
96+0 records out
49152 bytes (49 kB, 48 KiB) copied, 0.00110502 s, 44.5 MB/s
u-boot fusing
1184+0 records in
1184+0 records out
606208 bytes (606 kB, 592 KiB) copied, 0.104036 s, 5.8 MB/s
(4/4) upgrading watchdog [########################################################################] 100%
warning: /etc/watchdog.conf installed as /etc/watchdog.conf.pacnew
:: Running post-transaction hooks...
(1/1) Updating manpage index...
')
The command prompt never returned at the end and the machine was unresponsive and required unplugging to restart.
Now there are errors in the boot process culminating in "Bad Linux ARM64 Image magic!" in the UART output as shown below:
$this->bbcode_second_pass_code('', 'GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:0;
TE: 121371
no sdio debug board detected
BL2 Built : 11:44:26, Nov 25 2015.
gxb gfb13a3b-c2 - jcao@wonton
Board ID = 8
set vcck to 1100 mv
set vddee to 1050 mv
CPU clk: 1536MHz
DDR channel setting: DDR0 Rank0+1 same
DDR0: 2048MB(auto) @ 912MHz(2T)-13
DataBus test pass!
AddrBus test pass!
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x000000b0
Load bl30 from eMMC, src: 0x00010200, des: 0x01000000, size: 0x00009ef0
Sending bl30........................................OK.
Run bl30...
Load bl301 from eMMC, src: 0x0001c200, des: 0x01000000, size: 0x000017c0
Wait bl30...Done
Sending bl301......OK.
Run bl301...
l31 from eMMC, src: 0x00020200, des: 0x10100000, size: 0x00011130
--- UART initialized after reboot ---
[Reset cause: unknown]
[Image: unknown, amlogic_v1.1.3046-00db630 2015-10-28 15:24:31 xiaobo.gu@droid05]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: ef Load bl33 from eMMC, src: 0x00034200, des: 0x01000000, size: 0x00069770
be ad de d f0 ad ba ef be ad de not ES chip
[0.235992 Inits done]
secure task start!
high task start!
low task start!
NOTICE: BL3-1: v1.0(debug):4d2e34d
NOTICE: BL3-1: Built : 17:08:35, Oct 29 2015
INFO: BL3-1: Initializing runtime services
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address = 0x1000000
INFO: BL3-1: Next image spsr = 0x3c9
U-Boot 2015.01-10 (Aug 06 2016 - 17:54:39) Arch Linux ARM
DRAM: 2 GiB
Relocation Offset is: 76f3c000
-------------------------------------------------
* Welcome to Hardkernel's ODROID-C2
-------------------------------------------------
CPU : AMLogic S905
S/N : HKC213254DFCF949
MAC : 00:1e:06:33:45:c9
BID : HKC2211604
-------------------------------------------------
register usb cfg[1][0] = 0000000077f96a50
register usb cfg[0][1] = 0000000077f96a78
vpu detect type: 5
vpu clk_level = 7
set vpu clk: 666667000Hz, readback: 666660000Hz(0x300)
MMC: aml_priv->desc_buf = 0x0000000073f34d30
aml_priv->desc_buf = 0x0000000073f36ec0
SDIO Port C: 0, SDIO Port B: 1
[mmc_init] mmc init success
In: serial
Out: serial
Err: serial
----------------------------------
MMC Size : 8 GB
----------------------------------
** Unrecognized filesystem type **
** Unrecognized filesystem type **
movi: the partiton 'logo' is reading...
MMC read: dev # 0, block # 58976, count 4096 ... 4096 blocks read: OK
hpd_state=1
[CANVAS]addr=0x3f800000 width=3840, height=1440
set hdmitx VIC = 16
hdmitx phy setting done
set hdmitx VIC = 16
hdmitx phy setting done
Error: Bad gzipped data
There is no valid bmp file at the given address
Net: Meson_Ethernet
Hit [Enter] key twice to stop autoboot: 0
4167 bytes read in 4 ms (1016.6 KiB/s)
cfgload: MAGIC NAME, ODROIDC2-UBOOT-CONFIG, is not found!!
** Unrecognized filesystem type **
** Unrecognized filesystem type **
movi: the partiton 'logo' is reading...
MMC read: dev # 0, block # 58976, count 4096 ... 4096 blocks read: OK
hpd_state=1
set hdmitx VIC = 16
hdmitx phy setting done
set hdmitx VIC = 16
hdmitx phy setting done
Error: Bad gzipped data
There is no valid bmp file at the given address
movi: the partiton 'dtb' is reading...
MMC read: dev # 0, block # 1504, count 128 ... 128 blocks read: OK
movi: the partiton 'boot' is reading...
MMC read: dev # 0, block # 1632, count 32768 ... 32768 blocks read: OK
Bad Linux ARM64 Image magic!
')
It seems clear that the updating of uboot did not go well.
Can anyone suggest how to fix this problem?
Thanks,
Paul Crawford