diff --git a/iopsys-econet/README.md b/iopsys-econet/README.md index 3ea50b2660a3a80e392fdcb3554c58d6f0ae99e3..662f0929fb7100f2a4c30be07c977634d5138ac5 100644 --- a/iopsys-econet/README.md +++ b/iopsys-econet/README.md @@ -10,7 +10,7 @@ Following features are supported: + initramfs image + precompiled bootloader - + fixed flash layout + + basic flash layout with one free partition for user data + WiFi + LAN + ssh @@ -38,6 +38,12 @@ ECNT> setenv bootcmd "flash read 0x100000 0x2000000 0x83800000;flash imgread 204 ECNT> saveenv ECNT> reset +root@iopsys:~# ubiformat /dev/mtd2 +root@iopsys:~# ubiattach -p /dev/mtd2 +root@iopsys:~# ubimkvol /dev/ubi0 -N data -s 128MiB +root@iopsys:~# mkdir /opt +root@iopsys:~# mount -t ubifs ubi0:data /opt + <!--- #Network configuration -- @@ -49,7 +55,7 @@ Networking is configured as follows: - The kernel also ships with drivers for the wireless hardware in the device. The wireless interface can be configured either in AP or STA mode. --> -Compiling an IOPSYSWRT OS image and flashing it +Compiling an IOPSYSWRT OS image -- To compile an image targeting the en7562, type in these commands: @@ -68,7 +74,10 @@ make -j[nr_threads] This should generate flashable FIT image (tclinux) in `bin/targets/iopsys-econet/en7562`. **Only tclinux image is supported at the moment** -To flash an image from u-boot console, type in these commands: +Flashing an IOPSYSWRT OS image +-- + +To flash an image from **u-boot console**, type in these commands: cp ./bin/targets/iopsys-econet/en7562/tclinux ~/tftp @@ -77,15 +86,49 @@ ECNT> flash erase 0x100000 ${filesize} ECNT> flash write 0x100000 ${filesize} ${loadaddr} ECNT> reset -To flash an image from linux console, type in these commands: +To flash an image from **linux console**, type in these commands: scp ./bin/targets/iopsys-econet/en7562/tclinux root@192.168.1.1:/root root@iopsys:~# flash_erase /dev/mtd1 0 0 root@iopsys:~# nandwrite -p /dev/mtd1 ./tclinux +Flash Layout +-- +[ 4.066555] parsing <1m[bootloader]a,64m[ioplinux]a,-[free]a> +[ 4.073744] partition 2: name <free>, offset ffffffff, size ffffffff, mask flags 0 +[ 4.081288] partition 1: name <ioplinux>, offset ffffffff, size 4000000, mask flags 0 +[ 4.089096] partition 0: name <bootloader>, offset ffffffff, size 100000, mask flags 0 +[ 4.097000] Creating 4 MTD partitions on "EN7512-SPI_NAND": +[ 4.102560] 0x000000000000-0x000000100000 : "bootloader" +[ 4.108663] 0x000000100000-0x000004100000 : "ioplinux" +[ 4.114635] 0x000004100000-0x00000de80000 : "free" +[ 4.120520] 0x00000de80000-0x00000e000000 : "art" + + +root@iopsys:~# cat /proc/mtd +dev: size erasesize name +mtd0: 00100000 00020000 "bootloader" +mtd1: 04000000 00020000 "ioplinux" +mtd2: 09d80000 00020000 "free" +mtd3: 00180000 00020000 "art" + + Accessing the device --- By default, a shell is available on: - SSH: `ssh root@192.168.1.1`, password 10pD3v -- the [serial port](https://elinux.org/RPi_Serial_Connection) + +Working with UBIFS +--- +Ubi volume preparation: +root@iopsys:~# ubiformat /dev/mtd2 +root@iopsys:~# ubiattach -p /dev/mtd2 +root@iopsys:~# ubimkvol /dev/ubi0 -N data -s 128MiB +root@iopsys:~# mkdir /opt +root@iopsys:~# mount -t ubifs ubi0:data /opt + +Accessing ubi volume: +root@iopsys:~# mkdir /opt +root@iopsys:~# ubiattach -p /dev/mtd2 +root@iopsys:~# mount -t ubifs ubi0:data /opt \ No newline at end of file