How can I use fenix to generate an EMMC VIM3L image with linux mainline?
Thank you!
How can I use fenix to generate an EMMC VIM3L image with linux mainline?
Thank you!
No eMMC installation for VIMs with mainline kernel.
But you can boot from SD card and write the image to eMMC with command emmc-install
.
$ sudo emmc-install
will it be available? why is this restriction?
I need to generate an image for the end-users to flash…
If u have some linux skill ! i can share howto generate Krescue installation EMMC image (kresq)
for any distros
another way !! just make dump from EMMC to SD (same use Krescue) and install it after
it would be appreciated while we wait for an update to fenix for this
Upstream Linux has some functional limits depending on your use-case, but everything needed to boot an image on VIM3L is available. e.g.
VIM3L patches merged for u-boot 2020.04: https://patchwork.ozlabs.org/project/uboot/list/?series=&submitter=&state=3&q=VIM3L
U-boot signing (FIP) sources: https://github.com/LibreELEC/amlogic-boot-fip
Linux 5.5rc kernel with my current (still WIP) patch set: https://github.com/chewitt/linux/commits/amlogic-5.5-integ
is this the same linux source as the one fenix generates?
By any chance does it have DRM/KMS enabled and working?
I use GPIO, ADC, DSI and touchscreen input… is any of these lacking?
Thank you so much !
DRM/KMS is working (8-bit output, 10-bit is WIP still). The GPIO stuff should work but isn’t tagged and described in device-tree like it is for older VIM devices and legacy kernels. No idea about ADC/DSI as I don’t use them (or Fenix) … but shouldn’t be much effort to test and look.
Sounds great, I’ll give it a look…
OK! i have check it !
this image same suitable for EMMC / same as for SD (sure its for simple direct write - no need aml_burn_software )
wget https://dl.khadas.com/Firmware/VIM3L/Ubuntu/SD_USB/VIM3L_Ubuntu-xfce-bionic_Linux-5.5-rc2_arm64_SD-USB_V20191231.7z
make mmc disk export by usb via krescue
( https://github.com/hyphop/khadas-rescue/blob/master/docs/README-rescue-usb-otg.md )
and write this image to EMMC (unpack and write on the fly)
7zr e -so VIM3L_Ubuntu-xfce-bionic_Linux-5.5-rc2_arm64_SD-USB_V20191231.7z "*/*.img" > /dev/sdX
@hyphop I’m trying to install https://dl.khadas.com/Firmware/VIM3L/Ubuntu/SD_USB/VIM3L_Ubuntu-server-focal_Linux-5.7-rc7_arm64_SD-USB_V0.9-20200530.7z to EMMC this way. After copying all image via dd if=/VIM3L_Ubuntu-server-focal_Linux-5.7-rc7_arm64_SD-USB_V0.9-20200530.img /of=/dev/sdb I see the new U-BOOT starting, then it says that boot.ini found, and after that “Script failed”, “No partition table”. I.'m attaching screen picture from connected HDMI display.
When I erased EMMC via Kresque, booted this image from SD, ran “emmc-install”, I got the similar result.
Any suggestions how to fix it?
hi, maybe you need to restore the bootloader, first use USBBurningTool to restore, and then repeat the procedure with sd
USBBurningTool does not work on VIM3L due to a DDR issue. Also, when I write old Bionic-4.9 image in EMMC via Kresque, it boots just fine.
cannot be this, where did you get such information?
you could mistakenly take the firmware from vim3, then there could be an error! pay attention to it!
It was discussed earlier in this topic: Anyone successfully flashed Linux on VIM3L without bricking it?
Yes! exactly as @Vladimir.v.v said , @vkozloff did you flash the correct image file, in the case of DDR error it indicates the Wrong image file, please verify the image.
By the way, for fun, you can try different versions of USBBurningTool, there is information that they behave differently, you need to check of course
yea like @Vladimir.v.v says
but the recommended version is v2.2.0