ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
6.09k stars 1.95k forks source link

armbian-update tool broken #489

Closed fdjean closed 2 years ago

fdjean commented 2 years ago

Hi and thx for this cool projet 👍

Describe the bug
I was in kernel 5.4.210, and I wanted to test 5.19.1 but I noticed that the CPU frequency had dropped to 2.02 GHz so I decide to go back to 5.4.210 but the command sudo armbian-update 5.4.210 got stuck or maybe too slow, so I killed the process ..

When I restart

jean@box:~$ sudo armbian-update 5.4.210
[ STEPS ] Ready to update, please wait...
[ STEPS ] Start initializing the environment...
[ STEPS ] Use local kernel files: 5.4.210

[ STEPS ] Start checking the kernel...
[ INFO ] Kernel name: [ 5.4.210-ophub ]
[ INFO ] K510: [ 0 ]

[ STEPS ] Start unpacking the kernel...
[ INFO ] (1/4) Unpacking [ boot-5.4.210-ophub.tar.gz ] done.
[ INFO ] (2/4) Unpacking [ dtb-amlogic-5.4.210-ophub.tar.gz ] done.
[ INFO ] (3/4) Unpacking [ header-5.4.210-ophub.tar.gz ] done.
tar (child): modules-5.4.210-ophub.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/usr/sbin/armbian-update: line 262: cd: /usr/lib/modules/5.4.210-ophub/: No such file or directory
[ ERROR ] /usr/lib/modules/5.4.210-ophub kernel folder is missing.

or

jean@box:~$ sudo armbian-update 5.19.1
[ STEPS ] Ready to update, please wait...
[ STEPS ] Start initializing the environment...
[ STEPS ] Use local kernel files: 5.4.210

[ STEPS ] Start checking the kernel...
[ INFO ] Kernel name: [ 5.4.210-ophub ]
[ INFO ] K510: [ 0 ]

[ STEPS ] Start unpacking the kernel...
[ INFO ] (1/4) Unpacking [ boot-5.4.210-ophub.tar.gz ] done.
[ INFO ] (2/4) Unpacking [ dtb-amlogic-5.4.210-ophub.tar.gz ] done.
[ INFO ] (3/4) Unpacking [ header-5.4.210-ophub.tar.gz ] done.
tar (child): modules-5.4.210-ophub.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/usr/sbin/armbian-update: line 262: cd: /usr/lib/modules/5.4.210-ophub/: No such file or directory
[ ERROR ] /usr/lib/modules/5.4.210-ophub kernel folder is missing.

or

jean@box:~$ sudo armbian-update -h
[ STEPS ] Ready to update, please wait...
[ STEPS ] Start initializing the environment...
[ STEPS ] Use local kernel files: 5.4.210

[ STEPS ] Start checking the kernel...
[ INFO ] Kernel name: [ 5.4.210-ophub ]
[ INFO ] K510: [ 0 ]

[ STEPS ] Start unpacking the kernel...
[ INFO ] (1/4) Unpacking [ boot-5.4.210-ophub.tar.gz ] done.
[ INFO ] (2/4) Unpacking [ dtb-amlogic-5.4.210-ophub.tar.gz ] done.
[ INFO ] (3/4) Unpacking [ header-5.4.210-ophub.tar.gz ] done.
tar (child): modules-5.4.210-ophub.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/usr/sbin/armbian-update: line 262: cd: /usr/lib/modules/5.4.210-ophub/: No such file or directory
[ ERROR ] /usr/lib/modules/5.4.210-ophub kernel folder is missing.

current conf (KERNEL_VERSION is wrong)

jean@box:~$ cat /etc/ophub-release
VERSION_CODEID='debian'
VERSION_CODENAME='bullseye'
PACKAGED_DATE='2022-08-12'
FDTFILE='meson-sm1-x96-max-plus.dtb'
UBOOT_OVERLOAD='u-boot-x96maxplus.bin'
MAINLINE_UBOOT='/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin'
ANDROID_UBOOT='/usr/lib/u-boot/hk1box-bootloader.img'
MYBOX_UBOOT='/usr/lib/u-boot/mybox-bootloader.img'
SOC='s905x3'
KERNEL_VERSION='5.19.1'
K510='1'
    _              _        ___   ___  ____      _____
   / \   _ __ ___ | |  ___ / _ \ / _ \| ___|_  _|___ /
  / _ \ | '_ ` _ \| | / __| (_) | | | |___ \ \/ / |_ \
 / ___ \| | | | | | | \__ \\__, | |_| |___) >  < ___) |
/_/   \_\_| |_| |_|_| |___/  /_/ \___/|____/_/\_\____/

Welcome to Armbian 22.08.0-trunk Bullseye with Linux 5.4.210-ophub

System load:   2%               Up time:       11 min
Memory usage:  4% of 3.69G      IP:        192.168.0.216
192.168.0.215
CPU temp:      52°C             Usage of /:    5% of 56G
RX today:      320.0 MiB

Last login: Sat Aug 13 13:50:43 2022 from 2a02:2788:a4:12d:7d62:226:db2e:6232
jean@box:~$
  1  [                                                                  0.0%]   Hostname: box
  2  [                                                                  0.0%]   Tasks: 32; 1 running
  3  [|                                                                 1.3%]   Load average: 0.00 0.00 0.02
  4  [                                                                  0.0%]   Uptime: 00:36:26
  Mem[||||||||||||||                                              269M/3.69G]   Cpu Freq: 2.10 GHz
  Swp[                                                                 0K/0K]
  Cpu Temp:   50 C
ophub commented 2 years ago

Snip20220813_4

Snip20220813_5

ophub commented 2 years ago

You use the sync command to update the local script: armbian-sync

fdjean commented 2 years ago

thx