From 01be4e334f13f70fe26e40ffdae4b8f441a8a6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Tue, 19 Mar 2024 23:46:39 +0300 Subject: [PATCH] d --- platform-OpenWrt/README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/platform-OpenWrt/README.md b/platform-OpenWrt/README.md index 5db118e..2f2d4a7 100755 --- a/platform-OpenWrt/README.md +++ b/platform-OpenWrt/README.md @@ -7,37 +7,36 @@ You are supposed to be running **Ubuntu 22.04 LTS** with a home directory at `/h 1. Install necessary dependencies: ``` apt install libtinfo5 gawk - ``` + ` 1. Place this Memory game repository clone to `~/research-portable-memory` 1. Download the last supported [SDK 17.01.7](https://downloads.openwrt.org/releases/17.01.7/targets/ar71xx/generic/lede-sdk-17.01.7-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz) 1. Unpack it to `~/openwrt-sdk`: ``` tar -xf lede-sdk-17.01.7-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz mv lede-sdk-17.01.7-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64 ~/openwrt-sdk - ``` -1. ?? Set PATH https://openwrt.org/docs/guide-developer/helloworld/chapter1#adjusting_the_path_variable + ` 1. Create `feeds.conf` pointing to `ogspkg`: ``` echo 'src-link ogspkg /home/vboxuser/research-portable-memory/platform-OpenWrt/ogspkg' > ~/openwrt-sdk/feeds.conf - ``` + ` 1. Update feeds: ``` ~/openwrt-sdk/scripts/feeds update ogspkg ~/openwrt-sdk/scripts/feeds install -a -p ogspkg - ``` + ` 1. Run `make menuconfig` from `openwrt-sdk` 1. Make sure `Games -> ogs-memory` is selected as Module , `Save` if necessary 1. Build the package: ``` cd ~/openwrt-sdk make package/ogs-memory/compile - ``` -1. Transfer built `~/openwrt-sdk/bin/packages/ogspkg/ogs-memory*ipk` to `/tmp` on the device with OpenWrt + ` +1. Transfer built `~/openwrt-sdk/bin/packages/ogspkg/ogs-memory-xxx???.ipk` to `/tmp` on the device with OpenWrt 1. Install package to device's RAM: ``` - opkg install /tmp/ogs-memory*ipk -d ram - ``` + opkg install /tmp/ogs-memory-xxx???.ipk -d ram + ` 1. Run `ogs-memory`: ``` LD_LIBRARY_PATH=/tmp/usr/lib /tmp/usr/bin/ogs-memory - ``` + `