Jump to content

OrangePi Zero 2 (4.9 kernel) does'nt boot after kernel upgrade 30.5.


Recommended Posts

I seem to recall somewhere here about 'booti' and 'bootm' change, sorry its just vague memory!

 

** File not found /boot/Image **                                                
Unknown command 'booti' - try 'help' 

Link to comment
Share on other sites

9 hours ago, ALIGMSTEN said:

I seem to recall somewhere here about 'booti' and 'bootm' change, sorry its just vague memory!

 

** File not found /boot/Image **                                                
Unknown command 'booti' - try 'help' 

 

maybye this is the problem but I don't know how to fix it:

"The problem is caused by typo in default_bootcmd booti  should be modified to bootm"

 

default_bootcmd=run uenvboot; run cp_kernel2ram && run cp_dtb2ram && booti ${netstart} - ${dtbnetstart}

 

Link to comment
Share on other sites

@Werner is right you need to try changing bootm - booti 

 

Unfortunately I dont have time to test this, that was the change in the various sources I had picked up during my attempts at trying to get things working on the modern kernels.

 

build/config/bootscripts/boot-sun50iw9.cmd is bootm

 

build/config/bootscripts/boot-sun50i-next.cmd is booti

 

I am assuming legacy is using sun50iw9.cmd

 

If so and in which case you should the change there...

 

from:

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

 

to:

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

Link to comment
Share on other sites

It seems that legacy uboot is overwritten. Not entirely sure what the update/upgrade circumstances were with the previous posters. Unfortunately  I dont have usb debugging in set-up right now, have to dismantle cluster build.

 

Here is my experience latest official download:

 

Armbian 22.05 Bullseye
Kernel 4.9.y, Size: 344Mb, Updated: May 28, 2022
SHA hash | PGP signature

stable user space packages

 

Red light-on and nothing further!

Similar outcome to what updating my previous test download!

 

PROCEED WITH FOLLOWING:

Armbian_22.02.22_Orangepizero2_bullseye_legacy_4.9.255.img downloaded 04/18/2022, flashed to sd card and follow usual formalities username/pwd/locales etc

While root, install desktop from Armbian-config

 

REBOOT: 1

NOTE this gives me [No end-user support: untested automated build]

clarification, I need to check exactly which image this is, as have built and downloaded quite a few in my various processes!

login as: root

root@10.0.0.17's password:

  ___  ____  _   _____             ____

 / _ \|  _ \(_) |__  /___ _ __ ___|___ \

| | | | |_) | |   / // _ \ '__/ _ \ __) |

| |_| |  __/| |  / /|  __/ | | (_) / __/

 \___/|_|   |_| /____\___|_|  \___/_____|

 

Welcome to Armbian 22.02.0-trunk.0046  with Linux 4.9.255-sun50iw9

No end-user support: untested automated build

 

System load:   34%              Up time:       1 min

Memory usage:  11% of 965M      IP:            10.0.0.17

CPU temp:      52°C             Usage of /:    5% of 29G

 

[ 0 security updates available, 2 updates total: apt upgrade ]

Last check: 2022-06-07 11:41

 

Last login: Tue Jun  7 11:37:12 2022 from 10.0.0.5

root@orangepizero2:~# apt list --upgradable

Listing... Done

libsasl2-2/stable-security 2.1.27+dfsg-2.1+deb11u1 arm64 [upgradable from: 2.1.27+dfsg-2.1]

libsasl2-modules-db/stable-security 2.1.27+dfsg-2.1+deb11u1 arm64 [upgradable from: 2.1.27+dfsg-2.1]

root@orangepizero2:~# apt upgrade

 

REBOOT: 2

root@orangepizero2:~# reboot

 

login as: root

root@10.0.0.17's password:

  ___  ____  _   _____             ____

 / _ \|  _ \(_) |__  /___ _ __ ___|___ \

| | | | |_) | |   / // _ \ '__/ _ \ __) |

| |_| |  __/| |  / /|  __/ | | (_) / __/

 \___/|_|   |_| /____\___|_|  \___/_____|

 

Welcome to Armbian 22.02.0-trunk.0046  with Linux 4.9.255-sun50iw9

 

No end-user support: untested automated build

 

System load:   32%              Up time:       1 min

Memory usage:  11% of 965M      IP:            10.0.0.17

CPU temp:      56°C             Usage of /:    5% of 29G

 

[ General system configuration (beta): armbian-config ]

 

Last login: Tue Jun  7 11:41:45 2022 from 10.0.0.5

root@orangepizero2:~# cat /boot/boot.cmd

# DO NOT EDIT THIS FILE

#

# Please edit /boot/armbianEnv.txt to set supported parameters

#

 

# default values

setenv load_addr "0x45000000"

setenv rootdev "/dev/mmcblk0p1"

setenv verbosity "1"

setenv rootfstype "ext4"

setenv console "both"

setenv docker_optimizations "off"

setenv bootlogo "false"

 

# Print boot source

itest.b *0x10028 == 0x00 && echo "U-boot loaded from SD"

itest.b *0x10028 == 0x02 && echo "U-boot loaded from eMMC or secondary SD"

itest.b *0x10028 == 0x03 && echo "U-boot loaded from SPI"

 

echo "Boot script loaded from ${devtype}"

 

if test -e ${devtype} ${devnum} ${prefix}armbianEnv.txt; then

        load ${devtype} ${devnum} ${load_addr} ${prefix}armbianEnv.txt

        env import -t ${load_addr} ${filesize}

fi

 

if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=ttyS0,115200 console=tty1"; fi

if test "${console}" = "serial"; then setenv consoleargs "console=ttyS0,115200"; fi

if test "${bootlogo}" = "true"; then setenv consoleargs "bootsplash.bootfile=bootsplash.armbian ${consoleargs}"; fi

 

# get PARTUUID of first partition on SD/eMMC it was loaded from

# mmc 0 is always mapped to device u-boot (2016.09+) was loaded from

if test "${devtype}" = "mmc"; then part uuid mmc 0:1 partuuid; fi

 

setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} disp_reserve=${disp_reserve} ${extraargs} ${extraboardargs}"

 

if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=memory swapaccount=1"; fi

 

#load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}

#fdt addr -c ${fdt_addr_r}

#fdt addr ${fdt_addr_r}

#fdt resize 65536

 

fdt set disp boot_fb0 ${boot_fb0}

fdt set disp boot_disp <${boot_disp}>

fdt set disp boot_disp1 <${boot_disp1}>

fdt set disp boot_disp2 <${boot_disp2}>

fdt set disp tv_vdid <${tv_vdid}>

 

fdt set disp fb0_width <${fb0_width}>

fdt set disp fb0_height <${fb0_height}>

 

for overlay_file in ${user_overlays}; do

        if load ${devtype} ${devnum} ${load_addr} ${prefix}overlay-user/${overlay_file}.dtbo; then

                echo "Applying user provided DT overlay ${overlay_file}.dtbo"

                fdt apply ${load_addr} || setenv overlay_error "true"

        fi

done

 

load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd

load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}uImage

 

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

 

# Recompile with:

# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

root@orangepizero2:~#

 

BOOT:

Here is  legacy

build/config/bootscripts/boot-sun50iw9.cmd

 

DOCKER FORCE CGROUPS:

build/config/bootenv/sun50iw9.txt

 

root@orangepizero2:~# nano /boot/armbianEnv.txt

 

verbosity=1

console=both

disp_mode=1080p60

fb0_width=1280

fb0_height=720

 

#added

extraargs=systemd.unified_cgroup_hierarchy=0

 

REBOOT: 3

 

login as: root

root@10.0.0.17's password:

  ___  ____  _   _____             ____

 / _ \|  _ \(_) |__  /___ _ __ ___|___ \

| | | | |_) | |   / // _ \ '__/ _ \ __) |

| |_| |  __/| |  / /|  __/ | | (_) / __/

 \___/|_|   |_| /____\___|_|  \___/_____|

 

Welcome to Armbian 22.02.0-trunk.0046  with Linux 4.9.255-sun50iw9

 

No end-user support: untested automated build

 

System load:   41%              Up time:       1 min

Memory usage:  12% of 965M      IP:            10.0.0.17

CPU temp:      55°C             Usage of /:    10% of 29G

 

[ 0 security updates available, 56 updates total: apt upgrade ]

Last check: 2022-06-07 12:18

 

[ General system configuration (beta): armbian-config ]

 

Last login: Tue Jun  7 11:52:57 2022 from 10.0.0.5

root@orangepizero2:~# apt list --upgradable

Listing... Done

 

Calculating upgrade... Done

The following packages will be upgraded:

  armbian-bsp-cli-orangepizero2 armbian-config armbian-firmware armbian-zsh

  base-files bind9-dnsutils bind9-host bind9-libs chrony dirmngr dnsutils dpkg

  dpkg-dev gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client

  gpg-wks-server gpgconf gpgsm gpgv gzip hostapd libc-bin libc-dev-bin

  libc-l10n libc6 libc6-dev libdpkg-perl libexpat1 libldap-2.4-2 liblzma5

  libnss-myhostname libpam-systemd libssl-dev libssl1.1 libsystemd0 libudev1

  libxml2 linux-dtb-legacy-sun50iw9 linux-image-legacy-sun50iw9 linux-libc-dev

  linux-u-boot-orangepizero2-legacy locales openssl rsyslog systemd

  systemd-sysv sysvinit-utils tzdata udev xz-utils zlib1g

56 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

933 not fully installed or removed.

Need to get 67.4 MB of archives.

After this operation, 4,610 kB disk space will be freed.

Do you want to continue? [Y/n] y

 

HERE I CONTINUE WITH UPDATE KNOWING IT WILL BREAK:

 

SOME RELEVANT PARTS OF UPDATE PROCESS;

 

Setting up armbian-bsp-cli-orangepizero2 (22.05.1) ...

NOTE: You can find previous bootscript versions in /usr/share/armbian !

Recreating boot script

 

Setting up linux-image-legacy-sun50iw9 (22.05.1) ...

dkms: running auto installation service for kernel 4.9.255-sun50iw9:.

update-initramfs: Generating /boot/initrd.img-4.9.255-sun50iw9

cp: cannot stat '/etc/fonts/fonts.conf': No such file or directory

E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.

update-initramfs: failed for /boot/initrd.img-4.9.255-sun50iw9 with 1.

run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1

 

Setting up usbmuxd (1.1.1-2) ...

Warning: The home dir /var/lib/usbmux you specified can't be accessed: No such file or directory

Adding system user `usbmux' (UID 114) ...

Adding new user `usbmux' (UID 114) with group `plugdev' ...

Not creating home directory `/var/lib/usbmux'.

usbmuxd.service is a disabled or a static unit, not starting it.

 

Processing triggers for initramfs-tools (0.140) ...

update-initramfs: Generating /boot/initrd.img-4.9.255-sun50iw9

update-initramfs: Converting to u-boot format

 

 

UPDATE COMPLETE:

 

Here boot.cmd is mainline

 

build/config/bootscripts/boot-sun50i-next.cmd

 

 

root@orangepizero2:~# cat /boot/boot.cmd

# DO NOT EDIT THIS FILE

#

# Please edit /boot/armbianEnv.txt to set supported parameters

#

 

# default values

setenv load_addr "0x45000000"

setenv overlay_error "false"

setenv rootdev "/dev/mmcblk0p1"

setenv verbosity "1"

setenv rootfstype "ext4"

setenv console "both"

setenv docker_optimizations "on"

setenv bootlogo "false"

 

# Print boot source

itest.b *0x10028 == 0x00 && echo "U-boot loaded from SD"

itest.b *0x10028 == 0x02 && echo "U-boot loaded from eMMC or secondary SD"

itest.b *0x10028 == 0x03 && echo "U-boot loaded from SPI"

 

echo "Boot script loaded from ${devtype}"

 

if test -e ${devtype} ${devnum} ${prefix}armbianEnv.txt; then

        load ${devtype} ${devnum} ${load_addr} ${prefix}armbianEnv.txt

        env import -t ${load_addr} ${filesize}

fi

 

if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=ttyS0,115200 console=tty1"; fi

if test "${console}" = "serial"; then setenv consoleargs "console=ttyS0,115200"; fi

if test "${bootlogo}" = "true"; then setenv consoleargs "bootsplash.bootfile=bootsplash.armbian ${consoleargs}"; fi

 

# get PARTUUID of first partition on SD/eMMC it was loaded from

# mmc 0 is always mapped to device u-boot (2016.09+) was loaded from

if test "${devtype}" = "mmc"; then part uuid mmc 0:1 partuuid; fi

 

setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"

 

if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=memory swapaccount=1"; fi

 

load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}

fdt addr ${fdt_addr_r}

fdt resize 65536

for overlay_file in ${overlays}; do

        if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb/allwinner/overlay/${overlay_prefix}-${overlay_file}.dtbo; then

                echo "Applying kernel provided DT overlay ${overlay_prefix}-${overlay_file}.dtbo"

                fdt apply ${load_addr} || setenv overlay_error "true"

        fi

done

for overlay_file in ${user_overlays}; do

        if load ${devtype} ${devnum} ${load_addr} ${prefix}overlay-user/${overlay_file}.dtbo; then

                echo "Applying user provided DT overlay ${overlay_file}.dtbo"

                fdt apply ${load_addr} || setenv overlay_error "true"

        fi

done

if test "${overlay_error}" = "true"; then

        echo "Error applying DT overlays, restoring original DT"

        load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}

else

        if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb/allwinner/overlay/${overlay_prefix}-fixup.scr; then

                echo "Applying kernel provided DT fixup script (${overlay_prefix}-fixup.scr)"

                source ${load_addr}

        fi

        if test -e ${devtype} ${devnum} ${prefix}fixup.scr; then

                load ${devtype} ${devnum} ${load_addr} ${prefix}fixup.scr

                echo "Applying user provided fixup script (fixup.scr)"

                source ${load_addr}

        fi

fi

 

load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd

load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}Image

 

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

 

# Recompile with:

# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

root@orangepizero2:~#

 

LOGS ADDED:

 

root@orangepizero2:~# uname -a

Linux orangepizero2 4.9.255-sun50iw9 #1 SMP PREEMPT Tue Mar 1 23:28:34 UTC 2022 aarch64 GNU/Linux

root@orangepizero2:~#

root@orangepizero2:~# armbianmonitor -u

System diagnosis information will now be uploaded to http://ix.io/3ZBT

Please post the URL in the forum where you've been asked for.

 

 

Edited by ALIGMSTEN
clarification
Link to comment
Share on other sites

On 6/3/2022 at 7:58 AM, Werner said:

Not sure. The only file I could find containing booti is here: https://github.com/armbian/build/blob/master/config/bootscripts/boot-sun50i-next.cmd

Other files are unrelated to H616 aka sun50iw9

Try edit this file and then build an image from it to see if changes something.

 

hey! this worked, changed line #73: booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}

to

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

 

build a minimal focal image, and it booted.

 

Trying now to build a normal focal image...

 

thanks!

Link to comment
Share on other sites

35 minutes ago, cristobalgh said:

Armbian_22.08.0-trunk_Orangepizero2_focal_current_5.15.45 this doesn't work.

Armbian_22.08.0-trunk_Orangepizero2_focal_legacy_4.9.255_minimal this DOES work.

 

ok it must be focal legacy, this works also with the fix:

Armbian_22.08.0-trunk_Orangepizero2_focal_legacy_4.9.255

 

Thanks!

Link to comment
Share on other sites

Changes which look to be causing the boot from memory issue on legacy update

 

build/config/boards/orangepizero2.conf
FORCE_BOOTSCRIPT_UPDATE="yes"

config/sources/families/sun50iw9.conf
BOOTSCRIPT='boot-sun50i-next.cmd:boot.cmd'

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