Jump to content

Orange Pi Zero 2 stop booting after upgrade


PiRat

Recommended Posts

Orange Pi Zero 2 running on current image (from release date: Jan 10, 2023) fail to boot after upgrade.

The boot log:

 

U-Boot 2018.05-armbian (Jan 10 2023 - 07:48:03 +0000) Xunlong Software

[00.535]CPU:   Allwinner H616
[00.538]Model: Orange Pi Zero 2
I2C:   ready
[00.542]DRAM:  1 GiB
Relocation Offset is: 35ec7000
[00.583]secure enable bit: 0
[00.586]PMU: AXP806
[00.591]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=400Mhz
[00.773]sunxi overlay merged okqv
[00.776]drv_disp_init
[00.805]__clk_enable: clk is null.
tv_init()950 fetch tv0 err.
[00.811]drv_disp_init finish
[00.813]gic: sec monitor mode
[00.819]flash init start
[00.821]workmode = 0,storage type = 1
[00.824]MMC:     0
[00.825][mmc]: mmc driver ver uboot2018:2021-07-19 14:09:00
[00.832][mmc]: get sdc_type fail and use default host:tm1.
[00.842][mmc]: Using default timing para
[00.846][mmc]: SUNXI SDMMC Controller Version:0x40200
[00.872][mmc]: card_caps:0x3000000a
[00.876][mmc]: host_caps:0x3000003f
[00.881]sunxi flash init ok
[00.884]Loading Environment from FAT... 
[00.888][mmc]: mmc driver ver uboot2018:2021-07-19 14:09:00
[00.894][mmc]: get sdc_type fail and use default host:tm1.
[00.904][mmc]: Using default timing para
[00.908][mmc]: SUNXI SDMMC Controller Version:0x40200 
** Bad device mmc 1 **
Failed (-5)
[00.919]usb burn from boot
delay time 0
weak:otg_phy_config
[00.932]usb prepare ok
[01.104]usb sof ok
[01.106]usb probe ok
[01.108]usb setup ok
set address 0x12
set address 0x12 ok
[04.114]do_burn_from_boot usb : have no handshake
[04.118]boot_gui_init:start
190 bytes read in 11 ms (16.6 KiB/s)
Set HDMI disp_mode to 1080p60
190 bytes read in 10 ms (18.6 KiB/s)
Set fb0_width to 1280
Set fb0_height to 720
[04.430]boot_gui_init:finish
[04.433]bmp_name=/boot/boot.bmp
230454 bytes read in 32 ms (6.9 MiB/s)
[04.481]update dts
Net:   [04.484]No ethernet found.
Hit any key to stop autoboot:  1 0 
no mmc device at slot 1
[05.520][mmc]: card_caps:0x3000000a
[05.523][mmc]: host_caps:0x3000003f
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3259 bytes read in 13 ms (244.1 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
190 bytes read in 10 ms (18.6 KiB/s)
262144 bytes read in 38 ms (6.6 MiB/s)
** File not found /boot/dtb/allwinner/overlay/-fixup.scr **
7225390 bytes read in 618 ms (11.1 MiB/s)
** File not found /boot/Image **
Unknown command 'booti' - try 'help'
SCRIPT FAILED: continuing...
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
armbian# 

 

 

After some investigation it appears that the problem occurs when updating armbian-bsp-cli-orangepizero2 to version 22.11.4, holding the package on version 22.11.3 prevent the bug and allow to update all other packages, including kernel updates (last check on 31.01.2023) without issue.

Thank you for your great work on this distribution and have a nice day.

 

 

 

 

 

Link to comment
Share on other sites

It would be interesting, well sort-of, what the output of uname -a  is, after holding back >>

 

On 2/1/2023 at 4:38 PM, PiRat said:

armbian-bsp-cli-orangepizero2 22.11.3

 

build/config/bootscripts/boot-sun50iw9.cmd and specifically line 67 is what legacy expects

 

bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}

 

implicitly build/config/bootscripts/boot-sun50i-next.cmd referencing line 77 is what boot found

 

booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}

 

I can only posit that build/config/boards/orangepizero2.conf line 12 is a culprit

 

# Allwinner H616 quad core 512MB/1GB RAM SoC WiFi SPI USB-C
BOARD_NAME="Orange Pi Zero2"
BOARDFAMILY="sun50iw9"
BOOTCONFIG="orangepi_zero2_defconfig"
MODULES_LEGACY="uwe5622_bsp_sdio sprdbt_tty sprdwl_ng"
MODULES_BLACKLIST="lima"
DEFAULT_CONSOLE="serial"
HAS_VIDEO_OUTPUT="no"
SERIALCON="ttyS0"
KERNEL_TARGET="legacy,current,edge"
PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"
FORCE_BOOTSCRIPT_UPDATE="yes"

 

and again surmise that bsp-cli.sh from lines 172 in particular from lines 186, would need looking at.
 

EOF
	# install bootscripts if they are not present. Fix upgrades from old images
	if [[ $FORCE_BOOTSCRIPT_UPDATE == yes ]]; then
		cat <<- EOF >> "${destination}"/DEBIAN/postinst
			if [ true ]; then
			    # this package recreate boot scripts
		EOF
	else
		cat <<- EOF >> "${destination}"/DEBIAN/postinst
			if [ ! -f /boot/$bootscript_dst ]; then
			# if boot script does not exits its recreated
		EOF
	fi

 

I rarely go very deep into the build scripts, so please correct if completely wrong. I also would not intend to look much myself on this right now, and rather focus on mainline and putting what time have towards improving that. Armbian-next is the future with master code freeze anyhow.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines