It seems that we are not able to bootup Ubuntu image on the Edge V EMMC.
We followed the documentation and burned the Fenix image, we tried both “edge-ubuntu-20.04-server-linux-5.18-fenix-1.1.1-220915-develop.img” and “edge-ubuntu-20.04-gnome-linux-5.18-fenix-1.1.1-220915-develop.img”
Images were burned to SD Card with Etcher
We are able to boot from SD card to these images by entering the Upgrade Mode (in the TST method)
We are able to run the “sudo emmc-install” to copy the image to the EMMC
However, after rebooting and taking out the SD card, the board does not boot into the OS, we just have a blank screen
Any ideas? Did anyone encounter something like this before? How would you troubleshoot it?
As I would like to use my Khadas Edge-V Pro, I did try same as @GuyGuy just using the images compiled by khadas.
Boot log can be found on this link. Password: khadas
#Boot ver: 2019-05-29#1.18
empty serial no.
normal boot.
checkKey
vbus = 0
no fuel gauge found
no fuel gauge found
read logo on state from dts [0]
no fuel gauge found
no fuel gauge found
Hit any key to stop autoboot: 0
bad image magic.
load boot image failed
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:boot
try to start recovery
bad image magic.
load boot image failed
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:recovery
try to start backup
bad image magic.
load boot image failed
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:backup
try to start rockusb
Nothing else appears over serial.
In short:
downloaded image from dl.khadas.com - Index of /firmware/Edge/Ubuntu/SD_USB/ (the edge-ubuntu-20.04-server-linux-5.18-fenix-1.1.1-220725.img.xz ), wrote it by using balenaEtcher to mSD (16GB), after boot, login as root (over serial), used command emmc-install and selected first option "1 Boot from eMMC - system on eMMC (fully install to eMMC), after few steps got confirmation that "All done, power off and remove SD to boot from eMMC/USB/NVMe.
@numbqq
I did not see any error during emmc-install I saw there is an “emmc-install.log” in /var/log/ , if that is correct log for emmc-install command, there are also no error in it Password: khadas, just it have weird Date inside, so not sure if it’s from my emmc-install. I will check tonight again and delete that file perior emmc-install command.
Run sudo emmc-install and install it on the EMMC - No errors
After reboot, nothing shows up, blank screen
I have rebooted again into the SD Card
I have mounted the file system of the EMMC, and zipped all the /var/log folder. Please find it here - varlog.zip - Google Drive
This contains relevant logs such as emmc-install.log and dmesg
I have searched for the keyword “error”. Found the following -
Dmesg -
[ 6.127796] kernel: brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac4359-sdio.khadas,edge-v.bin failed with error -2
[ 6.156049] kernel: brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac4359-sdio.khadas,edge-v.txt failed with error -2
kern.log
Jul 25 14:40:44 localhost kernel: [ 7.754626] rockchip-pcie: probe of f8000000.pcie failed with error -110
@numbqq I flashed over USB-C cable this image (edge-ubuntu-18.04-server-linux-4.4-fenix-1.1.1-220725-emmc.img from your dl), which boots fine if normal Power Adapter is used (if usb-co to laptop usb-c, there is constant loop.
Any way seems with old Ubuntu Server there are emmc problems. Full boot log can be found here Password: khadas.
Not quite sure, the version you installed on shipping (my board was shipped on 13.07.2019), as I never replaced it on emmc.
Edit #1
here is the boot log from Android on emmc password: khadas, I am unable to figure out what version this could be, and now that have something else on emmc, I can not see what it is.
@GuyGuy maybe you know what have you had on emmc before emmc-install?
I do not know what was the android verison there before… since it was erased from the EMMC. But for me it was also the default shipped with the device
How did you flash the ubuntu image with the usb-c cable? the provided flash tools ( Upgrade Using a USB-C Cable | Khadas Documentation ) for both Windows and Ubuntu seem to only accept Android images. It does not accept when I select one of the Ubuntu images
I used edge-ubuntu-18.04-server-linux-4.4-fenix-1.1.1-220725-emmc.img.xz (unpacked, need to be .img file) from dl.khadas.com - Index of /firmware/Edge/Ubuntu/EMMC/ . I remember I need prior to flashing to EraseFlash, then after that Status was in “MaskRom”. Other then that was not needed.
@numbqq any ideas about the root cause? Also, can we please ask to upload an “EMMC” image of Ubuntu 20.04 Server 5.18 fenix 1.1.1 ?- Having to do “two burns” is not very scalable