Edge V - Linux installation not working

How did you succeed to burn Ubuntu image built with Fenix script?

I keep getting Test device start and then Test device failed error - I get it burning from Ubuntu and Windows :thinking:

@numbqq any ideas?

Tried to burn image using Krescue - no luck either - it says Image not suitable for Edge Board.

Which image? Do you use the latest tool from here ? https://dl.khadas.com/Tools/

For linux host, have you git pull to latest version?

Hello @hyphop please help to check.

plz clarify which one?

Hello, I may have missed it, but have you tried erasing the eMMC?

I have tried erasing EMMC from Krescue - still the same :thinking:

Ubuntu image I was trying to burn into Khadas Edge-V was built with fenix script:

$ source env/setenv.sh

Choose Khadas board:
1. Edge
2. VIM1
3. VIM2
4. VIM3
5. VIM3L

Which board would you like? [2] 1

Choose uboot version:
1. uboot-2017.09
2. uboot-mainline

Which uboot version would you like? [1] 2

Choose linux version:
1. linux-mainline

Which linux version would you like? [1] 1

Choose distribution:
1. Ubuntu
2. Debian

Which distribution would you like? [1] 1

Choose Ubuntu release:
1. bionic
2. focal

Which Ubuntu release would you like? [1] 2

Choose Ubuntu type:
1. server
2. minimal
3. xfce
4. lxde
5. gnome

Which Ubuntu type would you like? [1] 1

Set architecture to 'arm64' by default.

Choose install type:
1. EMMC
2. SD-USB

Which install type would you like? [1] 1
===========================================
#VERSION: 0.9.5

#KHADAS_BOARD=Edge
#VENDOR=Rockchip
#CHIP=RK3399
#LINUX=mainline
#UBOOT=mainline
#DISTRIBUTION=Ubuntu
#DISTRIB_RELEASE=focal
#DISTRIB_TYPE=server
#DISTRIB_ARCH=arm64
#INSTALL_TYPE=EMMC

===========================================

Environment setup done.
Type 'make' to build.

Using AndroidTool_Release_en_v2.71.zip on Windows 10 fails with Test device failed error using any image - even downloaded from Khadas. When I try Linux util, get pretty much the same:

rk-burn-tool -i /home/gytis/khadas/ubuntu/fenix/build/images/Edge_Ubuntu-server-focal_Linux-5.9-rc2_arm64_EMMC_V0.9.6-201112.img
[sudo] password for gytis: 
Burn to eMMC...
Rockchip Android image (or linux image compatible with AndroidTool one image burning) found!
Try to burn Rockchip image...
Program Data in /home/gytis/khadas/utils/rk-flash-tool/tools/Linux_Upgrade_Tool
Loading firmware...
Support Type:RK330C	FW Ver:fd.c0.3779	FW Time:2020-11-12 17:19:11
Loader ver:1.24	Loader Time:2020-11-12 16:48:58
Test Device Start

And it keeps forever in this.

The only was I succeeded to burn image was from Krescue downloading Ubuntu image from Khadas website - it downloaded SD-USB variant and successfully installed it, so I assume board is fine.

But if I upload my Ubuntu image built with Fenix to SD card and choose it from Krescue, it says that Image not suitable for Edge board. Tried both: EMMC and SD-USB images - still the same.

I don’t know if this will have any additional use, but before on this Edge-V I’ve had Android Pie and also TWRP installed.

@Gytis did you try images compressed to *.img.xz format loaded onto krescue?
it seems it doesn’t work that way (for VIM3 speaking)

Yes, Krescue uses images compressed with xz, so as Fenix generates .img, I have packed it to .img.xz. When I used Krescue to doenload image from dl.khadas.com, it downloaded .img.xz file and burned it correctly.

But when I used 'imgthat Fenix generated and I packed it toimg.xz, Krescue complained Image not suitable for Edge board`.

yes, I just got that recently, @hyphop should probably see if that restriction can be lifted in the next release :slight_smile:

1 Like

But what is different between images on dl.khadas.com and ones generated with Fenix? Shouldn’t it be similar enough so that Krescue would accept either?

1 Like

I think within the main Krescue program (that runs on top of openWRT itself)
filters out the files which aren’t in *.kresq format when reading from external flash or the downloads, this is just my assumption, Hyphop would know better than me here, so i’d leave it him to say why it happens.

1 Like

Yes, Krescue uses images compressed with xz, so as Fenix generates .img,

Krescue images compressed with xz, and Fenix can generate .img.xz too

Build Mainline compressed images

COMPRESS_IMAGE=yes make 

Build Legacy/Vendor/4.9 compressed images

COMPRESS_IMAGE=yes INSTALL_TYPE_RAW=yes make

NOTE: this compressed images with same xz comression but with some additional meta information which required by krescue - more detail there https://github.com/khadas/fenix/blob/master/scripts/xze

ADDITIONAL INFO: https://github.com/krescue/krescue/blob/master/docs/README_how_to_make_simple_krescue_image_xz.md

2 Likes

Thanks, I will rebuild and try out :+1:

BTW: https://dl.khadas.com/Firmware/Krescue/images/

Ubuntu-minimal-focal_Linux-4.9 for VIM1 VIM2 VIM3 VIM3l was reuploaded now its fully workable

i will check its for edge and upload later

2 Likes

Thanks for the manual @hyphop
I’ll have to try this again too :slight_smile:

Success!

I have upgraded Krescue, built Ubuntu Focal (mainline) with COMPRESS_IMAGE=yes make and chose SD-USB image type. Then copied Edge_Ubuntu-xfce-focal_Linux-5.9-rc2_arm64_SD-USB_V0.9.6-201118.img.xz to SD card dumps partition and launched Krescue - was able to burn that image successfully.

Thanks guys, Khadas is the best! :blush:

2 Likes

Can this also be used to pack Android Pie image (update.img)?

edge android and fenix verndor kernel for emmc images willbe supported soon

WIP …

It seems at the moment I cannot burn any image to my Edge-V using anything other than Krescue :thinking:

I might have broken something by previously adding TWRP to Android Pie, because afterwards I wasn’t able to burn other images - succeeded to burn Ubuntu (built with Fenix) via Krescue.

When I use Linux or Windows tools, they all report me Test device failed error :neutral_face:

@hyphop How did you build/pack Edge_Android_Pie_V191227.img.xz? I was able to burn it to EMMC via Krescue, so I would like to pack my own update.img like that too.

How did you build/pack Edge_Android_Pie_V191227.img.xz? I was able to burn it to EMMC via Krescue, so I would like to pack my own update.img like that too.

i was write special script for convert android burn image to raw (this script have some limits - not works for all images )

BTW: edge android and fenix verndor kernel for emmc images - already supported by last krescue

1 Like