Forum switched to read-only as of 2020/06/01
Latest product reviews |
---|
![]() |
![]() |
Smartphones ![]() |
TV Connect ![]() |
![]() |
ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288
 Please donate to support OMA and CrewRKTablets firmware work, thank you !



2014/07/07

Hello there,
I was told on a german forum that you guys are making some nice work on Tablets. So I am trying to post my question here about an issue that I got with my android Device (it is a chinese Car GPS Navigation unit and may be similar to the tablets that you are develloping for).
I am trying to enable hub support on my device. The Unit already supports OTG and Flash drives/BT Sticks/3G Modems are well recognized and can be used. Unfortunately when I plug a USB-Hub, the hub shows up with lsusb command but when I stick a flash drive into the hub it does not appear in android. I've read that there is a kernel modul called hubenable.ko that should be added. So I tryed to download from your Website the Image "IRON by CrewRKTablets OmniROM 4.4.2 v1.1", extracted the hubenable.ko form the image saved it in my /system/lib/modules and fired in Terminal on the device:
su insmod /system/lib/moudules/hubenable.ko
All what I get is:
"insomod init_module hubenable.ko failed (Exec format Error)"
May be my way of solving the issue is wrong, I hope that someone can help me with it.
Many thanks in advance.
Kernel 3.0.101
System Version 4.4.2
Build Omni 4.4.2 KOT49H


Moderator

Firmware Guru
2012/11/19

Hi,
to enable HUB support you need to recompile your kernel, cause on most kernels the HUB support is disabled by default. You can only use a external .ko if it matches the kernel version you are using. Our hubenable.ko is for 3.0.36, not 3.0.101.
Do you have the kernel sources available? And is it a Rockchip design?
Â
Cheers
JochenKauz
Per aspera ad astra, we rock the Tablets !
If you like our firmwares, please consider making a donation to support our work.
Thank you!

2014/07/07

Hi,
thank you for the rapid answer. Unfortunaltly there are no sources available. The manufacturer of the device is very closed.
They even encrypted all the update files that are used to update the unit.
The Update procedure of the Device consits of placing the delivered update files on an sd card then rebooting the unit with inserted sd. After that there are some batch files get fired to decrypt uboot initramfs boot recovery etc and gets imaged into the internal memory.
I will upload the latest firmware on dropbox may be you can take a look. I already tried a little in reverse engeneering the Image, but I am simply lacking skills to get into it.
At least I got root access that is a little bit helpfull.
I analyzed a little bit the behaviour of the system with connected Hub. It seems to me that the Hub is already supported by the System because connecting a simple USB mouse to the Hub works without any problem. Only flash drives seem not to work.
Here is a catlog when connecting USB Flashdrive with and without a hub:
Without Hub:
03-01 00:05:55.328 I/USB3G (113): path : '/sys/devices/platform/s5p-ehci/usb1/1-1/1-1.2'
03-01 00:05:55.332 I/USB3G (113): VID :size 5,vid_path '/sys/devices/platform/s5p-ehci/usb1/1-1/1-1.2/idVendor',VID '08ec
03-01 00:05:55.332 I/USB3G (113): '.
03-01 00:05:55.332 I/USB3G (113): PID :size 5,Pid_path '/sys/devices/platform/s5p-ehci/usb1/1-1/1-1.2/idProduct',PID '0008
03-01 00:05:55.332 I/USB3G (113): '.
03-01 00:05:55.332 I/USB3G (113): cmd=/system/xbin/usb_modeswitch -W -I -c /system/etc/usb_modeswitch.d/08ec:0008 -v 08ec -p 0008 &
03-01 00:05:55.339 I/USB3G (113): excute ret:0,err:No buffer space available
03-01 00:05:56.625 D/Vold (100): Volume usbdisk2 state changing 0 (No-Media) -> 2 (Pending)
03-01 00:05:56.625 D/Vold (100): Device '/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2:1.0/host0/target0:0:0/0:0:0:0/block/sda' event handled by volume usbdisk2
03-01 00:05:56.625 D/DirectVolume(100): DirectVolume::handlePartitionAdded -> MAJOR 8, MINOR 1, PARTN 1
03-01 00:05:56.625 D/Vold (100): Volume usbdisk2 state changing 2 (Pending) -> 1 (Idle-Unmounted)
03-01 00:05:56.625 D/Vold (100): Device '/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1' event handled by volume usbdisk2
03-01 00:05:56.632 I/StorageNotification(582): Media {/storage/usbdisk2} state changed from {removed} -> {unmounted}
03-01 00:05:56.632 D/MountService(504): volume state changed for /storage/usbdisk2 (removed -> unmounted)
03-01 00:05:56.632 D/MountService(504): sendStorageIntent Intent { act=android.intent.action.MEDIA_UNMOUNTED dat=file:///storage/usbdisk2 (has extras) } to UserHandle{-1}
03-01 00:05:56.652 I/ActivityManager(504): Start proc com.android.externalstorage for broadcast com.android.externalstorage/.MountReceiver: pid=2235 uid=10006 gids={50006, 1028, 1023, 1015}
03-01 00:05:56.656 I/Vold (100): /dev/block/vold/8:1 being considered for volume usbdisk2
03-01 00:05:56.656 D/Vold (100): Volume usbdisk2 state changing 1 (Idle-Unmounted) -> 3 (Checking)
03-01 00:05:56.656 D/MountService(504): volume state changed for /storage/usbdisk2 (unmounted -> checking)
03-01 00:05:56.660 I/StorageNotification(582): Media {/storage/usbdisk2} state changed from {unmounted} -> {checking}
03-01 00:05:56.660 I/StorageNotification(582): Preparing USB storage
03-01 00:05:56.660 D/Vold (100): int notify_vild(char*) ---- [SNT send notify_vild BLKMNT_PREP_USB
03-01 00:05:56.660 D/Vold (100): ]
03-01 00:05:56.660 D/MountService(504): sendStorageIntent Intent { act=android.intent.action.MEDIA_CHECKING dat=file:///storage/usbdisk2 (has extras) } to UserHandle{-1}
03-01 00:05:56.660 D/Vold (100): Trying to get filesystem type for /dev/block/vold/8:1
03-01 00:05:56.679 D/Vold (100): Found vfat filesystem on /dev/block/vold/8:1
03-01 00:05:56.695 I/fsck_msdos(100): ** /dev/block/vold/8:1
03-01 00:05:56.699 I/fsck_msdos(100): ** Phase 1 - Read and Compare FATs
03-01 00:05:56.699 I/fsck_msdos(100): Attempting to allocate 486 KB for FAT
03-01 00:05:56.781 I/wpa_supplicant(581): [CTRL_IFACE]wlan0: SIGNAL_POLL
03-01 00:05:56.800 I/fsck_msdos(100): Attempting to allocate 486 KB for FAT
03-01 00:05:56.941 I/fsck_msdos(100): ** Phase 2 - Check Cluster Chains
03-01 00:05:56.984 I/fsck_msdos(100): ** Phase 3 - Checking Directories
03-01 00:05:56.992 I/fsck_msdos(100): ** Phase 4 - Checking for Lost Files
03-01 00:05:56.996 I/fsck_msdos(100): Next free cluster in FSInfo block (59644) not free
03-01 00:05:56.996 I/fsck_msdos(100): FIXED
03-01 00:05:57.011 I/fsck_msdos(100): 50 files, 135924 free (33981 clusters)
03-01 00:05:57.027 I/Vold (100): Filesystem check completed OK
03-01 00:05:57.113 D/Vold (100): blkid identified as /dev/block/vold/8:1: LABEL="TEST" UUID="3C9A-F678" TYPE="vfat"
03-01 00:05:57.113 D/Vold (100): Volume usbdisk2 state changing 3 (Checking) -> 4 (Mounted)
03-01 00:05:57.117 D/Vold (100): int notify_vild(char*) ---- [SNT send notify_vild BLKMNT_MNT_USB
03-01 00:05:57.117 D/Vold (100): ]
03-01 00:05:57.121 D/MountService(504): volume state changed for /storage/usbdisk2 (checking -> mounted)
03-01 00:05:57.125 D/MountService(504): sendStorageIntent Intent { act=android.intent.action.MEDIA_MOUNTED dat=file:///storage/usbdisk2 (has extras) } to UserHandle{-1}
03-01 00:05:57.179 I/StorageNotification(582): Media {/storage/usbdisk2} state changed from {checking} -> {mounted}
With Hub:
03-01 00:07:32.601 I/USB3G (113): path : '/sys/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2.4'
03-01 00:07:32.601 I/USB3G (113): VID :size 5,vid_path '/sys/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2.4/idVendor',VID '08ec
03-01 00:07:32.601 I/USB3G (113): '.
03-01 00:07:32.601 I/USB3G (113): PID :size 5,Pid_path '/sys/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2.4/idProduct',PID '0008
03-01 00:07:32.601 I/USB3G (113): '.
03-01 00:07:32.601 I/USB3G (113): cmd=/system/xbin/usb_modeswitch -W -I -c /system/etc/usb_modeswitch.d/08ec:0008 -v 08ec -p 0008 &
03-01 00:07:32.609 I/USB3G (113): excute ret:0,err:No buffer space available
03-01 00:07:32.875 I/wpa_supplicant(581): [CTRL_IFACE]wlan0: SIGNAL_POLL
03-01 00:07:34.308 W/Vold (100): No volumes handled block event for '/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4:1.0/host1/target1:0:0/1:0:0:0/block/sda'
03-01 00:07:34.308 W/Vold (100): No volumes handled block event for '/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4:1.0/host1/target1:0:0/1:0:0:0/block/sda/sda1'
The difference in the devices is:
Withoud Hub: /devices/platform/s5p-ehci/usb1/1-1/1-1.2 gets automatically mounted.
With Hub: /devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2.4 no mount.
Checking another File in the root directory called fstab.sntb there are some entries that attracted my attention because the coment in it tells "without external USB Hub"
# <src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
boot /boot mtd defaults recoveryonly
/dev/block/mmcblk0p2 /system ext4 ro wait
/dev/block/mmcblk0p6 /cache ext4 noatime,nosuid,nodev,nomblk_io_submit,barrier=1 wait,check
/dev/block/mmcblk0p5 /data ext4 noatime,nosuid,nodev,nomblk_io_submit,noauto_da_alloc,barrier=1,nodelalloc wait,check
# emmc vfat partition
/devices/platform/s3c-sdhci.0/mmc_host/mmc0 auto auto defaults voldmanaged=sdcard0:1,nonremovable
# sd/tf card
/devices/platform/s3c-sdhci.1/mmc_host/mmc1 auto auto defaults voldmanaged=sdcard2:auto
#/devices/platform/s3c-sdhci.2/mmc_host/mmc2 auto auto defaults voldmanaged=sdcard2:auto
# gps card
/devices/platform/s3c-sdhci.3/mmc_host/mmc3 auto auto defaults voldmanaged=sdcard1:auto
# without external usb hub
/devices/platform/s5p-ehci/usb1/1-1/1-1.1/1-1.1:1.0 audo auto defaults voldmanaged=usbdisk1:auto
/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2:1.0 audo auto defaults voldmanaged=usbdisk2:auto
/devices/platform/s5p-ehci/usb1/1-1/1-1.3/1-1.3:1.0 audo auto defaults voldmanaged=usbdisk3:auto
/devices/platform/s5p-ehci/usb1/1-1/1-1.4/1-1.4:1.0 audo auto defaults voldmanaged=usbdisk4:auto
/devices/platform/s5p-ohci/usb2/2-1/2-1.1/2-1.1:1.0 audo auto defaults voldmanaged=usbdisk5:auto
/devices/platform/s5p-ohci/usb2/2-1/2-1.2/2-1.2:1.0 audo auto defaults voldmanaged=usbdisk6:auto
/devices/platform/s5p-ohci/usb2/2-1/2-1.3/2-1.3:1.0 audo auto defaults voldmanaged=usbdisk7:auto
/devices/platform/s5p-ohci/usb2/2-1/2-1.4/2-1.4:1.0 audo auto defaults voldmanaged=usbdisk8:auto
#ZRam
/dev/block/zram0 none swap defaults zramsize=125829120
Editing fstab files won't be easy I think, because changes get lost when rebooting and the files gets recreated from boot partition as I know.
Greets,
Tobias
EDIT: Firmware link: https://dl.dropbox.com/s/2chu5tg0zaqpqae/c20140624-kk-en.tar.gz


Moderator

Firmware Guru
2012/11/19

The external hub has it's own power supply?
Per aspera ad astra, we rock the Tablets !
If you like our firmwares, please consider making a donation to support our work.
Thank you!
Most Users Ever Online: 749
Currently Online:
87 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Devices in use: Desktop (78), Phone (7), Tablet (2)
Top Posters:
finless: 604
DarthJabba: 551
maikal: 394
mussonero1: 350
alex: 252
damo: 243
DanielVd: 237
Mark06: 222
Newest Members:
smoky551
KarlAnkho
jasondweller
2256667898
EDINTELL
ilval
Forum Stats:
Groups: 10
Forums: 185
Topics: 6037
Posts: 60500
Member Stats:
Guest Posters: 43
Members: 262194
Moderators: 5
Admins: 1
Administrators: admin
Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech
CrewRKTablets moderators: JochenKauz and Astralix