Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPgrade kernel for accton as4610 #1046

Open
nazarimas opened this issue Nov 9, 2023 · 1 comment
Open

UPgrade kernel for accton as4610 #1046

nazarimas opened this issue Nov 9, 2023 · 1 comment

Comments

@nazarimas
Copy link

I want to Upgrade ONIE and u-boot kernel for arma7 on accton as4610. I change machine make ( LINUX_VERSION and UBOOT_VERSION) and got this errors:

==== patching  Linux ====
==== Patching u-boot ====
====  Building zlib-1.2.11 ====
====  Building busybox-1.25.1 ====
make[1]: Entering directory '/home/san/ONIEup/onie/build/user/armv7a-g8.3.0-lnx4.9.95-uClibc-ng-1.0.38/zlib/zlib-1.2.11'
arm-onie-linux-uclibcgnueabi-gcc -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -Os --sysroot=/home/san/ONIEup/onie/build/user/armv7a-g8.3.0-lnx4.9.95-uClibc-ng-1.0.38/dev-sysroot -I. -I/home/san/ONIEup/onie/build/user/armv7a-g8.3.0-lnx4.9.95-uClibc-ng-1.0.38/zlib/zlib-1.2.11/ -c -o example.o /home/san/ONIEup/onie/build/user/armv7a-g8.3.0-lnx4.9.95-uClibc-ng-1.0.38/zlib/zlib-1.2.11/test/example.c
make[1]: arm-onie-linux-uclibcgnueabi-gcc: Command not found
Makefile:147: recipe for target 'example.o' failed
make[1]: *** [example.o] Error 127
make[1]: Leaving directory '/home/san/ONIEup/onie/build/user/armv7a-g8.3.0-lnx4.9.95-uClibc-ng-1.0.38/zlib/zlib-1.2.11'
make[1]: Entering directory '/home/san/ONIEup/onie/build/accton_as4610_54-r0/busybox/busybox-1.25.1'
make/zlib.make:69: recipe for target '/home/san/ONIEup/onie/build/user/armv7a-g8.3.0-lnx4.9.95-uClibc-ng-1.0.38/stamp/zlib-build' failed
make: *** [/home/san/ONIEup/onie/build/user/armv7a-g8.3.0-lnx4.9.95-uClibc-ng-1.0.38/stamp/zlib-build] Error 2
make: *** Waiting for unfinished jobs....
'/home/san/ONIEup/onie/machine/accton/accton_as4610_54/kernel/platform-as4610_54.patch' -> '/home/san/ONIEup/onie/build/accton_as4610_54-r0/kernel/patch/platform-as4610_54.patch'
'/home/san/ONIEup/onie/patches/u-boot/2018.03/git-ignore.patch' -> '/home/san/ONIEup/onie/build/accton_as4610_54-r0/u-boot/patch/git-ignore.patch'
Reinitialized existing Git repository in /home/san/ONIEup/onie/build/accton_as4610_54-r0/kernel/linux-4.9.95/.git/
'/home/san/ONIEup/onie/patches/u-boot/common/feature-sys-eeprom-tlv-common.patch' -> '/home/san/ONIEup/onie/build/accton_as4610_54-r0/u-boot/patch/feature-sys-eeprom-tlv-common.patch'
'/home/san/ONIEup/onie/patches/u-boot/common/platform-onie-common-env.patch' -> '/home/san/ONIEup/onie/build/accton_as4610_54-r0/u-boot/patch/platform-onie-common-env.patch'
'/home/san/ONIEup/onie/patches/u-boot/common/platform-common-env.patch' -> '/home/san/ONIEup/onie/build/accton_as4610_54-r0/u-boot/patch/platform-common-env.patch'
'/home/san/ONIEup/onie/patches/u-boot/2018.03/remove-redefined-macros-in-common_config.h-to-suppor.patch' -> '/home/san/ONIEup/onie/build/accton_as4610_54-r0/u-boot/patch/remove-redefined-macros-in-common_config.h-to-suppor.patch'
/home/san/ONIEup/onie/build/accton_as4610_54-r0/busybox/busybox-1.25.1/scripts/gcc-version.sh: line 11: arm-onie-linux-uclibcgnueabi-gcc: command not found
'/home/san/ONIEup/onie/patches/u-boot/2018.03/config-add-ONIE-macro-to-whitelist.patch' -> '/home/san/ONIEup/onie/build/accton_as4610_54-r0/u-boot/patch/config-add-ONIE-macro-to-whitelist.patch'
'/home/san/ONIEup/onie/machine/accton/accton_as4610_54/u-boot/platform-as4610_54.patch' -> '/home/san/ONIEup/onie/build/accton_as4610_54-r0/u-boot/patch/platform-as4610_54.patch'
Reinitialized existing Git repository in /home/san/ONIEup/onie/build/accton_as4610_54-r0/u-boot/u-boot-2018.03/.git/
stg init: master: branch already initialized
make/u-boot.make:89: recipe for target '/home/san/ONIEup/onie/build/accton_as4610_54-r0/stamp/u-boot-patch' failed
make: *** [/home/san/ONIEup/onie/build/accton_as4610_54-r0/stamp/u-boot-patch] Error 2
stg init: master: branch already initialized
make/kernel.make:72: recipe for target '/home/san/ONIEup/onie/build/accton_as4610_54-r0/stamp/'
make: *** [/home/san/ONIEup/onie/build/accton_as4610_54-r0/stamp/kernel-patch] Error 2
  CC      applets/applets.o
/bin/sh: 1: arm-onie-linux-uclibcgnueabi-gcc: not found
scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed
make[2]: *** [applets/applets.o] Error 127
Makefile:372: recipe for target 'applets_dir' failed
make[1]: *** [applets_dir] Error 2
make[1]: Leaving directory '/home/san/ONIEup/onie/build/accton_as4610_54-r0/busybox/busybox-1.25.1'
make/busybox.make:125: recipe for target '/home/san/ONIEup/onie/build/accton_as4610_54-r0/stamp/busybox-build' failed
make: *** [/home/san/ONIEup/onie/build/accton_as4610_54-r0/stamp/busybox-build] Error 2

I try multiple time builds and fixed errors, but error for 'u-boot-patch' failed and 'kernel-patch' failed not fixed .

@nazarimas
Copy link
Author

nazarimas commented Nov 9, 2023

reason of Upgrade kernel idea is this problem:
I cant mount ext4 partition on ONIE :

ONIE:/ # mount -t ext4 /dev/sda3 /mnt/
EXT4-fs (sda3): couldn't mount RDWR because of unsupported optional features (400)
mount: mounting /dev/sda3 on /mnt/ failed: Invalid argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant