Single IPK package too big for router MikroTik hEXs

I'm running OpenWrt successfully on router MikroTik hEXs.

Now I intend to add function provided by Netmaker.
Therefore I setup a build environment and and build the netclient package.

The build was successfull with this file available:

$ file bin/packages/mipsel_24kc/netmaker/netmaker_0.9.4-1_mipsel_24kc.ipk
bin/packages/mipsel_24kc/netmaker/netmaker_0.9.4-1_mipsel_24kc.ipk: gzip compressed data, from Unix, original size modulo 2^32 8181760

$ ls -lh bin/packages/mipsel_24kc/netmaker/netmaker_0.9.4-1_mipsel_24kc.ipk
.rw------- thomas users 7.8 MB Sun Jun 12 17:35:47 2022  bin/packages/mipsel_24kc/netmaker/netmaker_0.9.4-1_mipsel_24kc.ipk

Unfortunately the package is ~8MB, and this is too big for my router.

Checking the available storage of the router confirms this:

root@eddie:/tmp# df -hT
Filesystem           Type            Size      Used Available Use% Mounted on
/dev/root            squashfs        2.5M      2.5M         0 100% /rom
tmpfs                tmpfs         123.1M      3.7M    119.4M   3% /tmp
/dev/mtdblock9       jffs2          10.9M      8.5M      2.4M  78% /overlay
overlayfs:/overlay   overlay        10.9M      8.5M      2.4M  78% /
tmpfs                tmpfs         512.0K         0    512.0K   0% /dev

And I don't think that I could remove packages in order to free up some disk space.

However, this router MikroTik hEXs has an SD card slot.

Is it possible to extend available storage with an SD card?
And can Netmaker package be installed on the SD card?

Yes, with extroot, for example:


The problem is:
Any microSD card inserted in slot is not identified.

USB slot is working, though.

Define (not) identified.

No related entry in dmesg output.
No device in lsusb output.
No new device in lsblk output.

The problem is:
I have no idea which driver is required to use router's microSD slot.

since you managed to get the USB up and running, please post the modules you had to install to get it to work.
other users will benefit from the info.

Actually I didn't install any modules.
However, here's the list of packages related to USB that are currently installed:

# opkg list-installed | grep usb
kmod-usb-core - 5.4.188-1
kmod-usb-storage - 5.4.188-1
libusb-1.0-0 - 1.0.24-4
usbids - 0.359-1
usbutils - 013-2

After installing package kmod-sdhci-mt7620 the micro SD card is identified correctly:

root@eddie:~# lsblk
mtdblock0    31:0    0  256K  1 disk 
mtdblock1    31:1    0   60K  1 disk 
mtdblock2    31:2    0    4K  1 disk 
mtdblock3    31:3    0   60K  1 disk 
mtdblock4    31:4    0    4K  1 disk 
mtdblock5    31:5    0    4K  1 disk 
mtdblock6    31:6    0 15.8M  0 disk 
mtdblock7    31:7    0  2.4M  0 disk 
mtdblock8    31:8    0 13.4M  0 disk /rom/rom
mtdblock9    31:9    0 10.9M  0 disk /rom/overlay
mmcblk0     179:0    0  1.9G  0 disk 
├─mmcblk0p1 179:1    0  1.8G  0 part /overlay
└─mmcblk0p2 179:2    0  100M  0 part [SWAP]
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.