VIM1 - OpenWRT 18.06.4 (Latest)

Khadas OpenWrt Vim1

openwrt https://openwrt.org/ for Khadas VIMs boards https://www.khadas.com/vim

supported Boards

  • khadas vim1 - OK
  • khadas vim2 - WIP - test mode

Download Images

OpenWrt Access

  • no root password
  • wifi ap mode enabled - no password
  • lan -> usb0 + wlan0 (usb net + wifi AP) in bridge mode
  • wan -> eth0 (dhcp)
  • serial console enabled -> ttyAML0
  • hdmi output -> tty0
  • web interface http://vim.lan or http://172.23.0.1/
  • ssh root@vim.lan -p 22 or root@172.23.0.1 -p 22

LAN ip resolve to local openwrt hosts

172.23.0.1 openwrt.lan vim.lan

mDNS

  • OpenWrt._ssh._tcp.local
  • OpenWrt._http._tcp.local

NOTES

  • blink led mode started if openwrt was successful loaded
  • setup root password and wifi password at fist after installation!
  • usb net connection enabled by default in bridge mode with LAN
  • if vim device connected by usb cable to your pc u can have network access to LAN via usb-net without any extra configuration

Install

just write image to SD card

Linux - default installation method examples

wget http://SERVER/IMAGE.sd.zip
unzip -p IMAGE.sd.zip '*.img' | sudo dd bs=1M of=/dev/YOUR_SD_CARD

wget http://SERVER/IMAGE.sd.img.gz
gzip -dc IMAGE.sd.img.gz | sudo dd bs=1M of=/dev/YOUR_SD_CARD

wget http://dl.khadas.com/Firmware/VIM1/OpenWrt/IMAGE.sd.img.gz -O- | gzip -dc | sudo dd bs=1M of=/dev/YOUR_SD_CARD

NOTE: Remember to replace the words IMAGE and YOUR_SD_CARD, to the correct values in your system.

Another OS (or if previous methods were difficult for you) / Linux - GUI

Use Balena Etcher to burn the OpenWrt image to your SD card or USB f.

sudo ./balenaEtcher-1.5.57-x64.AppImage

Just select the IMAGE.img.gz or IMAGE.img.zip image, and select your SD card as the target. Press burn!
( There is no need to decompress the image )

BOOT from SD card

  • Best way is to just boot openwrt from your SD card.
  • If your EMMC is empty, openwrt will automatically boot from your SD card.
  • Else, Uboot will start from EMMC by default - it can boot from SD card, but only with the proper version and config!

VIM1_v12 (old)

VIM1 v14 (current)

Just triple-press KEY_F (middle button) to force SD bootup!

INSTALL to EMMC (internal storage)

  • Write image to SD card.
  • Open/mount SD card (OW_BOOT partition) on your PC.
  • Activate this script scripts/install2mmc_from_sd.script which is stored in the first partition. Rename it from install2mmc_from_sd.script.disabled -> install2mmc_from_sd.script.
  • Unmount/eject SD card from your PC .
  • Insert SD card into VIM1 (TF card slot).
  • Power on + force boot from SD card by triple pressing KEY_F (middle button).
  • Wait for the “remove SD card” message to appear, before ejecting your SD card.
  • OK! Well done! EMMC boot will occur automatically.

NOTE: All previous EMMC data will be lost!!!

install to emmc inside openwrt booted from sd

root@openwrt:/# mmc_install_from_sd

how to Build from sources

links

Build by

## hyphop ##
7 Likes

Can I add support for the NSF server in the OWRT core in the future? Thanks for the great work!

must work ! but i didnt test it ! i will check soon )

opkg update
opkg install nfs-kernel-server nfs-kernel-server-utils nfs-utils
modprobe nfsd
.....

https://openwrt.org/docs/guide-user/services/nas/nfs.server

additioanl info

zgrep _NFS /proc/config.gz | grep -v \#
CONFIG_NFS_FS=m
CONFIG_NFS_V2=m
CONFIG_NFS_V3=m
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=m
CONFIG_NFS_SWAP=y
CONFIG_NFS_V4_1=y
CONFIG_NFS_V4_2=y
CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org"
CONFIG_NFS_V4_SECURITY_LABEL=y
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFSD=m
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=y
1 Like

thank you for publishing good result of great work! will test it soon…
which version of kernel and u-boot did you build with this wrt distro ?

1 Like

Linux kernel: 5.3.0-rc6
U-Boot: 2015.01

PS: maybe kernel version will be changed for next release

1 Like

last version is V0.31

4 Likes