Issues using SD card and M2 on VIM3 + Ubuntu 20

Ok, no problem, just make sure to try latest image…
:slight_smile:

@Electr1
I built a new image through Fenix script directly on my pc (no docker).
The issue is still there.
I’ll wait for your results.

===========================================
#VERSION: 0.9.2

#KHADAS_BOARD=VIM3L
#VENDOR=Amlogic
#CHIP=S905D3
#LINUX=4.9
#UBOOT=2015.01
#DISTRIBUTION=Ubuntu
#DISTRIB_RELEASE=focal
#DISTRIB_TYPE=server
#DISTRIB_ARCH=arm64
#INSTALL_TYPE=EMMC

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

Sure, I have built my image, but am quite busy to do tests right now, will share my results later…

@Electr1
Hi, did you find time to do some tests? Have you discovered anything new? Regards

Hi @fguerzoni, sorry for the delay, I tried the latest image, and it has no problems at all, it is working fine,

As I said before, there is something wrong with all the images made on that particular day, Numbqq later patched it, and now there is no problem…

So far, as I have seen, the USB problem exists on the two following images:

images made on 200530 timestamp,
and, images with kernel 5.5 rc2

my humble suggestion, try to update the images to the latest version…

Hi @Electr1, glad it’s working.
Now please tell me either where to get / how to build the ‘latest’ image.
I thought to have built the ‘latest’ image when I did the vim3l image some days ago.
I just used the Fenix build as downloaded from repo.
But maybe I’m missing something important.
Thanks

Do you want a fresh build of the latest image ?
I can do it for you, no problem,
just specify the required kernel version, desktop environment (I presume “server” as it seems to do field work), and whether you want Linux or ubuntu…

I just built a Debian image of kernel version 4.9 (SD/USB) if you want,
or I can make a Ubuntu version ready by GMT 20:00…

please decide and respond…

@Electr1
you’re so kind. really!
But I would like to have full control of the image build process.
Maybe if my next try will still be KO then I’d rather try out your pre-built image.

Basically I followed the readme file in Fenix directory:

$ mkdir -p ~/project/khadas
$ cd ~/project/khadas
$ git clone --depth 1 https://github.com/khadas/fenix
$ cd fenix
$ source env/setenv.sh
$ make

that 's all and I got

===========================================
#VERSION: 0.9.2

#KHADAS_BOARD=VIM3L
#VENDOR=Amlogic
#CHIP=S905D3
#LINUX=4.9
#UBOOT=2015.01
#DISTRIBUTION=Ubuntu
#DISTRIB_RELEASE=focal
#DISTRIB_TYPE=server
#DISTRIB_ARCH=arm64
#INSTALL_TYPE=EMMC

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

which does let SD work without HDMI connected.

well, in that case, go straight ahead,
you can try to build yourself, It is good to let you also have the chance to learn :wink:

yep, that means your problem is solved, that is a finicky little bug, many people coming to the linux mainline environment get stuck in that little pithole, they don’t get out unless they upgrade or change their image…

Happy to know that it works now… :smile:

@Electr1
Sorry, there was a typo:

So, even if I build my image the error does NOT go away.

now what is your current version ?

and what makes your assemblies unique?

The following image built 12 days ago shows the SD error:

khadas@Khadas:~$ uname -a
Linux Khadas 4.9.224 #2 SMP PREEMPT Sun Jul 12 07:52:21 CEST 2020 aarch64 aarch64 aarch64 GNU/Linux

Now I’m building a new image for a fresh new vim3 board I received this morning.
I’m trying to build an image for SD-USB instead of EMMC. I noticed that Numbqq wrote some patches (E0109, E0110) for uboot-mainline addressing boot sequence and MMC.

I’ll report the result, but now the point is to make the image on SD work. If it works, it’ll work SD too.
This is my first SD image ever on Vim3, so I don’t know what to expect.

Regards

1 Like

well hope for the best, I built a few images just today, and all of them are fine…
I am sure the same applies for you as well, you won’t have problems…

yea, I too noticed those commits while going through the git-repo…

@Electr1
where you able to build working images (related to SD issue) for EMMC?
Because I didn’t find patches for uboot-legacy which seems the only one supporting EMMC installation.
The patches I found were just for uboot-mainline

yes, I am pretty sure the SD card worked, I even added it to system storage,

but wait, you said that the problem existed when HDMI was “not” connected, I didn’t try that one…
The USB ports worked without display hooked up, I am sure of that, but SD card was not tested without display…

can I tell you by tomorrow ? I am using the only SD card I have for some other purposes, I will take a backup and try it out tomorrow…

sorry for the hassle…

Don’t worry! Many many thanks for your help.

1 Like

no problem, we will look forward to :joy:

Built the following image that runs on SD and it works.

===========================================
#VERSION: 0.9.2

#KHADAS_BOARD=VIM3
#VENDOR=Amlogic
#CHIP=A311D
#LINUX=mainline
#UBOOT=mainline
#DISTRIBUTION=Ubuntu
#DISTRIB_RELEASE=focal
#DISTRIB_TYPE=server
#DISTRIB_ARCH=arm64
#INSTALL_TYPE=SD-USB

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

khadas@Khadas:~$ uname -a
Linux Khadas 5.7.0 #0.9.2 SMP Sat Jul 25 19:27:00 CEST 2020 aarch64 aarch64 aarch64 GNU/Linux

1 Like

Well that’s good, seems like mainline has really gotten more stable…