Khadas VIM OpenWRT

@hyphop is working on OpenWRT on VIM3 now :slight_smile:

hi openwrt fans! i have good news

i have made OpenWrt test version for VIM3

  • wifi ap work fine (2.4G + 5G bit rate 866.5Mbit )but not fully integrated into normal openwrt stack
  • 1G ethernet work OK

i will share workable image for VIM3 soon
and some annotation how to use it

7 Likes

openwrt still not ready :wink: some problems with wifi (work in progress)

but we can test it already - https://github.com/hyphop/khadas-rescue/releases

its mini rescue system same based on openwrt sources + extra opts

NOTE: wifi works in AP and STA mode but not integrated in normal openwrt stack
NOTE: wifi AP 5G mode not stable ! lost connections / 2.4G looks like ok
NOTE: only for VIM3 at this moment
NOTE: just plug ethernet cable (with internet dhcp) and wifi router is ready (ap_ssid=Krescue ap_passw=12345678 wifi_mode=2g wlan_ip=172.23.0.1)
NOTE: usb_otg work like usb ethernet (auto dhcp) device ip 172.22.1.1

more info there https://github.com/hyphop/khadas-rescue

PS: one-line cmd for SD image write example

curl -jkL https://github.com/hyphop/khadas-rescue/releases/download/test/krescue.sd.img.gz -o- | gzip -dc | dd conv=sync of=/dev/YOUR_SD_CARD

6 Likes

congrats!!
is it possible for you to help us doing the same for vim 1 ?

Will add support for VIM1/VIM2 in the future.:wink:

hey guys!
now we can check this rescue system for VIM2!

NOTE: just write to sd card ! put in slot and reboot device ! must be started from default legacy u boot without any system changes

write image to SD card example -
curl -jkL https://github.com/hyphop/khadas-rescue/releases/download/vim2/krescue.sd.img.gz -o- | gzip -dc | sudo dd conv=sync of=/dev/YOUR_SD_CARD

VIM2: Release khadas vim2 rescue system · hyphop/khadas-rescue · GitHub

its mini rescue system same based on openwrt sources + extra opts

NOTE: wifi works in AP and STA mode but not integrated in normal openwrt stack
NOTE: wifi AP 5G mode not stable ! lost connections / 2.4G looks like ok
NOTE: only for VIM3 at this moment
NOTE: just plug ethernet cable (with internet dhcp) and wifi router is ready (ap_ssid=Krescue ap_passw=12345678 wifi_mode=2g wlan_ip=172.23.0.1)
NOTE: usb_otg work like usb ethernet (auto dhcp) device ip 172.22.1.1

Best regards hyphop

PS: wait it for vim1 soon!

4 Likes

please vim2 owners test this openwrt.
as it us supposed to completely reside in spi flash, do we still need to insert the sd card each time we want to boot openwrt ?

we have two variants spi / sd
now we have spi + sd variants for VIM3 both fully workable ,
and sd for VIM2 - spi variant not ready now but we work on it !)

NOTE:
spi version work fully from SPI flash
sd version work fully from sd flash

ok, but where do you explain how to flash the openwrt spi variant into spi flash memory ?

spi image write uboot script example (but for VIM3 only ):

some info there: https://docs.khadas.com/vim3/BootFromSpiFlash.html

we’l prepare soon some universal easy way for spi flash updates

ADD: this normal linux way for SPI flash

6 Likes

i have start new thread special about rescue system there: Krescue - Khadas Rescue system

2 Likes

thank you! i hope you will get many helpfull testers

what do you @hyphop mean by SPI flash, is this the same thing as embedded EMMC flash memory on amlogic VIMs ?

No SPI Flash is a very small size flash memory to keep the firmware, just like BIOS in desktop and laptops.

in VIM1 we have use the SPI flash for the uboot file, I guess.

vim2 vim3 have special SPI flash 128Mbit its only 16M but its enough for some tasks
for example :
uboot or rescue system

  • we can boot system in any case if boot from emmc or sd failed + we can repare reinstall and solve many other problems

i will introduce rescue system lil bit later )

1 Like

how big is the spi flash mem on a vim1 ?
is there even any spi flash on vim1 ? according to the schematics, the only spi lines on the amlogic s905x go to the bluetooth combo chip!

i think the best we can expect on vim1 is not a rescue system but a plain openwrt distro buried somewhere in the emmc flash memory :flushed: :tent:

Hello @ravelo

There is no SPI Flash for VIM1. The SPI Flash is on VIM2, VIM3 ans Edge.

@hyphop is working on this.:wink:

UPDATE:
vim1 - added for testing - Linux Krescue-init 5.3.0-rc6
wifi - works

i will share soon

4 Likes

try to upgrade to rc8 before publishing