[SOLVED] About upgrading HC1 form Stretch to Buster

Post Reply
Talkless
Posts: 17
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

[SOLVED] About upgrading HC1 form Stretch to Buster

Unread post by Talkless » Sun Dec 29, 2019 7:22 pm

Hi,

Currently I run Debian Stretch on HC1, using tutorial in https://wiki.debian.org/InstallingDebianOn/OdroidHC1.

Now I wonder, should I be able to perfom inplace upgrade (not image rebuild) to Buster? Should it work with Buster's kernel?

Also, I see that mentoned tutorial was changed to use `flash-kernel` packages, any "dangers" for changing boot setup..? Currenlty, I run this script every time Linux updates:

Code: Select all

#!/usr/bin/env bash

if [[ $(id -u) != 0 ]]
then
    >&2 echo "Please run as root."
    exit 1
fi
echo "Creating boot image files..."

mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'boot.ini as u-boot script' -d /boot/boot.ini /boot/boot.scr
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n image -d /boot/initrd /boot/initrd.ub

echo "Done."
Will this be needed too with Buster and it's flash-kernel?

Big thanks!
Last edited by Talkless on Thu Jan 02, 2020 10:40 pm, edited 1 time in total.

User avatar
igorpec
Posts: 461
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 18 times
Been thanked: 37 times
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by igorpec » Sun Dec 29, 2019 11:26 pm

Kernel will not be changed since its the same.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

Talkless
Posts: 17
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by Talkless » Mon Dec 30, 2019 6:01 am

igorpec wrote:
Sun Dec 29, 2019 11:26 pm
Kernel will not be changed since its the same.
Uhm pardon..? Debian Strech uses Linux 4.9, and Debian Buster has Linux 4.19.

User avatar
igorpec
Posts: 461
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 18 times
Been thanked: 37 times
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by igorpec » Mon Dec 30, 2019 8:27 am

Talkless wrote:
Mon Dec 30, 2019 6:01 am
igorpec wrote:
Sun Dec 29, 2019 11:26 pm
Kernel will not be changed since its the same.
Uhm pardon..? Debian Strech uses Linux 4.9, and Debian Buster has Linux 4.19.
This might be true on x86 / mainline world.

You are not using official Debian since it does not exists.
https://wiki.debian.org/InstallingDebianOn/OdroidHC1
"Debian does not support installation on the device as of today (May 2019). Installing requires U-Boot and several firmware BLOB from Hardkernel/Samsung."

If you want to switch between kernels in a simple manner, you should perhaps try Armbian (https://docs.armbian.com/#what-is-armbian). We provide stock vendor 4.14.y kernel and 5.4.y in a combination with any Debian like user space: Stretch, Buster, Bullseye (Debian 11 to be), Xenial, Bionic, ...
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

Talkless
Posts: 17
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by Talkless » Mon Dec 30, 2019 7:53 pm

igorpec wrote:
Mon Dec 30, 2019 8:27 am
You are not using official Debian since it does not exists.
https://wiki.debian.org/InstallingDebianOn/OdroidHC1
"Debian does not support installation on the device as of today (May 2019). Installing requires U-Boot and several firmware BLOB from Hardkernel/Samsung."
Official installer does not exist, yes, but that wiki tutorial works file, system is initialized using multistrap via chrooting. It IS Debian, with Linux odroid-hc1 4.9.0-11-armmp-lpae #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) armv7l GNU/Linux from official mirror deb http://debian.mirror.vu.lt/debian stretch main

User avatar
igorpec
Posts: 461
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 18 times
Been thanked: 37 times
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by igorpec » Mon Dec 30, 2019 10:57 pm

Talkless wrote:
Mon Dec 30, 2019 7:53 pm
igorpec wrote:
Mon Dec 30, 2019 8:27 am
You are not using official Debian since it does not exists.
https://wiki.debian.org/InstallingDebianOn/OdroidHC1
"Debian does not support installation on the device as of today (May 2019). Installing requires U-Boot and several firmware BLOB from Hardkernel/Samsung."
Official installer does not exist, yes, but that wiki tutorial works file, system is initialized using multistrap via chrooting.
That would be expected. Every serious system or derivative construct root file-system that way:
https://github.com/armbian/build/blob/m ... ap.sh#L141
Talkless wrote:
Mon Dec 30, 2019 7:53 pm
It IS Debian, with Linux odroid-hc1 4.9.0-11-armmp-lpae #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) armv7l GNU/Linux from official mirror deb http://debian.mirror.vu.lt/debian stretch main
Kernel is simply too old/generic for this particular hardware. It's like selling Debian Wheezy as a pure gold in 2020 ...

Common ARM kernel (which is what Linux distributions would like to have some day) that would cover "all" arm variants is still some time away. I would certainly not trust that kernel. But you do whatever you like.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

Talkless
Posts: 17
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by Talkless » Tue Dec 31, 2019 5:09 am

igorpec wrote:
Mon Dec 30, 2019 10:57 pm
But you do whatever you like.
This is current kernel I am using in Stretch for maybe a year already, works fine. The quesiton is about UPGRADING to newer 4.19, on Buster, and all that changed boot stuff (like using flash-kernel package). I just hoped someone had experience with Buster, before moving to the upgrading (or bricking :) ) part...

User avatar
tobetter
Posts: 4464
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 71 times
Been thanked: 296 times
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by tobetter » Tue Dec 31, 2019 9:09 am

Flash-kernel does have HC1 set up for a year already if I remember correctly and it would install kernel and boot.scr properly if your BOOT partition is ext2/4. I never had tried to upgrade from Stretch to Buster, but I am also using the flash-kernel for my Debian/Ubuntu Installer.

If you be good if you can back up your uSD as a file or to another uSD, and do test. As long as partition table is not corrupted, you would be able to recover if your HC1 is bricked with copying kernel, DTB and decent boot.ini/.scr.

"Tapatalk wishes you to have fun with ODROID"


Talkless
Posts: 17
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by Talkless » Tue Dec 31, 2019 5:37 pm

tobetter wrote:
Tue Dec 31, 2019 9:09 am
it would install kernel and boot.scr properly if your BOOT partition is ext2/4.
Yes it's ext4.
tobetter wrote:
Tue Dec 31, 2019 9:09 am
If you be good if you can back up your uSD as a file or to another uSD, and do test.
Great idea, thanks! I'll just dump sd contents with dd into my laptop.

Talkless
Posts: 17
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by Talkless » Wed Jan 01, 2020 9:46 pm

Looks like upgrade is.. kinda fine, though I did got this boot error:

Code: Select all

Found U-Boot script /boot.scr
3103 bytes read in 23 ms (130.9 KiB/s)
## Executing script at 50000000
4391424 bytes read in 359 ms (11.7 MiB/s)
** File not found /dtbs/4.19.0-6-armmp-lpae/exynos5422-odroidxu4.dtb
There was no exynos5422-odroidxu4 .dtb file, only exynos5422-odroidhc1.dtb, so I just copied it with new name. No sure if that's something on my side or flash-kernel bug..?

User avatar
tobetter
Posts: 4464
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 71 times
Been thanked: 296 times
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by tobetter » Thu Jan 02, 2020 1:02 pm

Talkless wrote:
Wed Jan 01, 2020 9:46 pm
Looks like upgrade is.. kinda fine, though I did got this boot error:

Code: Select all

Found U-Boot script /boot.scr
3103 bytes read in 23 ms (130.9 KiB/s)
## Executing script at 50000000
4391424 bytes read in 359 ms (11.7 MiB/s)
** File not found /dtbs/4.19.0-6-armmp-lpae/exynos5422-odroidxu4.dtb
There was no exynos5422-odroidxu4 .dtb file, only exynos5422-odroidhc1.dtb, so I just copied it with new name. No sure if that's something on my side or flash-kernel bug..?
The flash-kernel looks into /proc/device-tree/model in order to find out which board is whenever it updates the kernel and boot script. Your previous Stretch must-have for XU4 or U-boot does not recognize the board as HC1 on booting. It would not a major problem as long as your HC1 can boot up.

Talkless
Posts: 17
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: About upgrading HC1 form Stretch to Buster

Unread post by Talkless » Thu Jan 02, 2020 10:39 pm

tobetter wrote:
Thu Jan 02, 2020 1:02 pm
The flash-kernel looks into /proc/device-tree/model in order to find out which board is whenever it updates the kernel and boot script.
Could be, though I did specify device manually with variable as suggested by Debian Wiki: env FK_MACHINE="Hardkernel Odroid HC1" flash-kernel.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest