USB mass storage v set-top-boxu

joseff

USB mass storage v set-top-boxu
« kdy: 25. 12. 2011, 18:40:47 »
Dobrý den,

jsem naprostý začátečník a již mám menší problém.

Mám STLinux a nefunguje tam USB mass storage.
Přesneji řečeno tam chybí podpora mass storage a souborových systémů (FAT, FAT32, EXT2, EXT3).

Jádro se u STlinux měmí příkazem modprobe, ale po příkazu vyhodí
Cannot parse modules.dep (ten soubor v set-top-boxu není).

A tady nevím, co s tím dál.

Potřeboval bych podrobný postup krok za krokem, kde, co stáhnout a pomocí jakých
příkazů to tam dostat a celé to rozchodit.
Jednoduše řečeno, připojením nějakého USB média na USB se má v

/root

zobrazit

/root/usb

a používat to jako by to byl druhý interní hdd. Plný přístup zápis, čtení.

Je tam usbcore.ko
To je základni modul jádra pro USB. Je zaveden a funguje.

Výpis pomocí příkazu lsmod:
Kód: [Vybrat]
ADB3800TW login: root

Password:
~ #
~ # lsmod
Module                  Size  Used by    Tainted: P
pwc                    71844  0
r422vdec                5324  0
st231dbg               18012  0
vconf                  17220  0
audio                  33312  0
snd_usb_audio          34048  0
snd_usb_lib             6112  1 snd_usb_audio
snd_rawmidi            11488  1 snd_usb_lib
snd-st7100              3196  0
snd_pcm_oss            31264  0
snd_mixer_oss          10048  1 snd_pcm_oss
snd_pcm                44549  3 snd_usb_audio,snd-st7100,snd_pcm_oss
snd_page_alloc          3364  1 snd_pcm
snd_timer              11300  1 snd_pcm
snd                    23192  7 snd_usb_audio,snd_rawmidi,snd-st7100,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               3172  2 audio,snd
aec                     2232  0
videodev                4640  1 pwc
ohci_hcd                9800  0
stb7100_common          1036  1 ohci_hcd
usbcore                62460  6 pwc,audio,snd_usb_audio,snd_usb_lib,ohci_hcd
gp_mixer               12936  0
systime                 1444  0
vbi7100                 4376  0
llfinisher               748  0
aud                    51928  2 snd-st7100,llfinisher
faad                   88832  1 aud
hdcp                   17208  0
edid                   15648  2
fb                   1265676  2 gp_mixer
mp2vdec                35084  0
h264vdec              233600  0
vdisp                  33440  3 r422vdec,mp2vdec,h264vdec
avll                   43828  6 r422vdec,aud,fb,mp2vdec,h264vdec,vdisp
tsmerge                15024  0
compositor              5360  3 gp_mixer,llfinisher,fb
mixer                   3452  4 llfinisher,fb,vdisp,compositor
vidout                 27880  10 gp_mixer,llfinisher,aud,hdcp,edid,fb,vdisp,avll,compositor,mixer
dco_clk                 9300  4 llfinisher,aud,avll,vidout
dmx                    34512  114 vbi7100,aud,mp2vdec,h264vdec,avll,tsmerge
st231cm                 7512  3 aud,mp2vdec,h264vdec
bigprivarea             2196  7 vconf,aud,fb,mp2vdec,h264vdec,vdisp,st231cm
gpio                    2440  0
ptiinit                  548  0
stpti4_core           163048  2 dmx,ptiinit
mme_host               19396  3 aud,h264vdec,st231cm
embxshm                17672  1 st231cm
embxmailbox             7436  5 st231dbg,vconf,aec,st231cm,embxshm
embxshell              17060  5 h264vdec,st231cm,mme_host,embxshm,embxmailbox
st231_audio          2003744  1 st231cm
st231_video           573312  1 st231cm
firmware               11256  0
pwroff                  1580  0
dm9000ea                9424  1
fdma                   13712  4 aud,mp2vdec,h264vdec,tsmerge
bios_iptv               7144  0
bios                    2344  0
nand_map                3236  0
nand                   23684  3 nand_map
nand_ecc                1216  1 nand
nand_ids                2816  1 nand
ifp_G04B                9176  0
nor_map                 3952  0
part                    2344  2 nand_map,nor_map
jffs2                  94944  2
zlib_inflate           16608  1 jffs2
zlib_deflate           16552  1 jffs2
cfi_probe               6304  0
gen_probe               1920  1 cfi_probe
cfi_cmdset_0020        21956  0
cfi_cmdset_0002        20288  0
cfi_cmdset_0001        20096  1
cfi_util                2240  3 cfi_cmdset_0020,cfi_cmdset_0002,cfi_cmdset_0001
chipreg                  992  2 nor_map,cfi_probe
mtdpart                 5856  6 nand_map,nand,nor_map,cfi_cmdset_0020,cfi_cmdset_0002,cfi_cmdset_0001
mtdchar                 4256  0
mtdblock                2720  0
mtd_blkdevs             4832  1 mtdblock
mtdcore                 4260  11 nand,nor_map,jffs2,mtdpart,mtdchar,mtd_blkdevs
ir_map_sejin_9RC60C      640  0
ir_prot_sejin          10684  0
ir_stb7100               696  0
adb_display             7496  1 ifp_G04B
adb_input              14620  4 ifp_G04B,ir_map_sejin_9RC60C,ir_prot_sejin,ir_stb7100
pwm-st7100              1476  2 avll,dmx
pwrpanic                 848  2 nand_map,nor_map
llbrusher              14808  2 llfinisher,compositor
scart                   8520  3 llfinisher
i2c-stb7100            13476  0
~ #
~ #


Re:USB mass storage v set-top-boxu
« Odpověď #1 kdy: 27. 12. 2011, 20:35:12 »
Soubor modules.dep obsahuje informace o závislostech mezi jednotlivými moduly. Modporbe ho pak používá při pokusu o zavedení nějakého modulu, aby případně dohledal, co ještě je potřeba zavést, aby to fungovalo. Ten soubor si jednoduše vygeneruješ pomocí příkazu depmod.

Re:USB mass storage v set-top-boxu
« Odpověď #2 kdy: 07. 01. 2012, 15:56:55 »
Děkuji za radu s příkazem depmod. O tom vím též, bohužel tam též není.

Výpis všech dostupných spustitelných souborů:

Kód: [Vybrat]
Xfbdev                     fdisk                      killall                    pivot_root                 sync
[                          fgrep                      klogd                      poweroff                   sysctl
[[                         find                       ln                         printf                     syslogd
ar                         free                       logger                     ps                         tail
ash                        freeramdisk                login                      pwd                        tar
basename                   fsck.minix                 logread                    rdate                      tee
bunzip2                    gdk-pixbuf-query-loaders   losetup                    readlink                   test
busybox                    getopt                     ls                         realpath                   top
bzcat                      getsplash                  lsmod                      reboot                     touch
cat                        getty                      makedevs                   renice                     true
chgrp                      grep                       md5sum                     reset                      tty
chmod                      groups                     mdev                       rm                         udhcpc
chown                      gtk-query-immodules-2.0    mesg                       rmdir                      umount
chroot                     gunzip                     mkdir                      rmmod                      uname
clear                      gzip                       mkfifo                     route                      uptime
cp                         halt                       mkfs.minix                 run-parts                  usleep
date                       head                       mknod                      scartd                     utelnetd
dd                         hexdump                    mkswap                     scp                        uufilter
df                         hostname                   modprobe                   sed                        vi
dhcp_tokens                hwclock                    more                       seq                        wc
dircolors                  ifconfig                   mount                      setup_opch_loader          wget
dirname                    indicators                 mozilla.sh                 sh                         which
dmesg                      indicators.sh              mv                         sleep                      whoami
du                         init                       netstat                    ssh-keygen                 wmn
echo                       insmod                     nice                       sshd                       xargs
egrep                      ip                         nslookup                   start-stop-daemon          xev
env                        ipcrm                      pango-querymodules         stty                       xkbd
expr                       ipcs                       passwd                     swapoff                    xmodmap
false                      iptvdem                    pidof                      swapon                     xmodmap.def
fbset                      key_listener               ping                       switch_leds                xpilot
fdflush                    kill                       pipe_progress              switch_root                zcat

Re:USB mass storage v set-top-boxu
« Odpověď #3 kdy: 08. 01. 2012, 00:44:43 »
Výpis s připojeným paměťovým USB flash médiem:

Kód: [Vybrat]
/ #
/ # dmesg tail
ARKER node found at 0x01c94000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01c98000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01c9c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ca0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ca4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ca8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cac000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cb0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cb4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cb8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cbc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cc0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cc4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cc8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ccc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cd0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cd4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cd8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cdc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ce0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ce4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ce8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cec000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cf0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cf4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cf8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01cfc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d00000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d04000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d08000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d0c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d10000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d14000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d18000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d1c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d20000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d24000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d28000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d2c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d30000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d34000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d38000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d3c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d40000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d44000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d48000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d4c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d50000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d54000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d58000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d5c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d60000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d64000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d68000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d6c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d70000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d74000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d78000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d7c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d80000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d84000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d88000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d8c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d90000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d94000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d98000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01d9c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01da0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01da4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01da8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dac000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01db0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01db4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01db8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dbc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dc0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dc4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dc8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dcc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dd0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dd4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dd8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ddc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01de0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01de4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01de8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dec000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01df0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01df4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01df8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01dfc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e00000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e04000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e08000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e0c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e10000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e14000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e1c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e20000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e24000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e28000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e2c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e30000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e34000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e38000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e3c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e40000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e44000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e48000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e4c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e50000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e54000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e58000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e5c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e60000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e64000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e68000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e6c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e70000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e74000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e78000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e7c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e80000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e84000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e88000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e8c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e90000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e94000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e98000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01e9c000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ea0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ea4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ea8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01eac000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01eb0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01eb4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01eb8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ebc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ec0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ec4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ec8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ecc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ed0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ed4000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ed8000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01edc000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ee0000 has totlen 0xc != normal 0x0
<5>CLEANMARKER node found at 0x01ee4000 has totlen 0xc != normal 0x0
<4>Empty flash at 0x02052eb4 ends at 0x02053000
<6>Mounted devfs on /dev
<4>Freeing unused kernel memory: 52k freed
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>$Name: Stdrivers-bios_iptv_v_1_2_1_0_on_10_01_2007 $
FDMA Init start
<1>FDMA firmware version is 0x00030205
<4>rev: 0x00c0
<4>FDMA Init OK
$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4><DM9000> I/O: a0c00000, VID: 90000a46 CHIP Revision 19
<4><DM9000> MAC address provided:
<4>Found MAC address 00:03:91:bd:0f:0f
<4><DM9000> found
<4>$Name: Stdrivers-firmware_v_2_0_13_0_on_08_01_2007 $
<4>$Name: Stdrivers-st231-video_v_1_0_25_0_on_13_02_2007 $
<4>Video Code loader
<4>Code start address = 0xa4000000
<4>Video Code started
<4>$Name: Stdrivers-st231-audio_v_2_0_19_0_on_13_02_2007 $
<4>Audio Code loader
<4>Code start address = 0xa4200000
<4>Audio Code started
<4>$Name: Stdrivers-multicom311_v_1_0_8_0_on_13_02_2007 $
<4>MME_Init() [3.1.1] done ...
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>Testing SRAM
<4>j = 1000, i = 2048 (0xffffc801:0xffffc801)
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>GPIO for user applications
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<6>bigprivarea: Allocated 16384 pages at 0xb0000000.
<4>MINI_MME_Init()...
<4>[st231cm enabled]
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>DCO_CLK driver v.2.1.0
<4>$Name: Stdrivers-avll-vidout_v_2_0_47_0_on_05_06_2006 $
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>$Name: Stdrivers-compositor_v_1_0_12_0_on_10_11_2006 $
<4>[COMPO_S]: Compositor_init: Enters
$Name: Stdrivers-mux-tsmerge_v_1_0_19_0_on_18_04_2007 $
<4>TSMERGE_RAM: 0x0
<4>TSMERGE_RAM: 0x600
<4>TSMERGE_RAM: 0x600
<4>TSMERGE_RAM: 0xc00
<4>TSMERGE_RAM: 0x1200
<4>#TSMHW_STREAM_0: cfg:0x000400a0 cfg2:0x00000000 sta:0x00000000, sync:0x00bc4700
<4>#TSMHW_STREAM_1: cfg:0x00000600 cfg2:0x00000000 sta:0x00000000, sync:0x00bc4700
<4>#TSMHW_STREAM_2: cfg:0x000406a0 cfg2:0x00000000 sta:0x00000000, sync:0x00bc4700
<4>#TSMHW_STREAM_3: cfg:0x00070ca0 cfg2:0x00000000 sta:0x00000000, sync:0x00bc4744
<4>#TSMHW_STREAM_4: cfg:0x00001200 cfg2:0x00000000 sta:0x00000000, sync:0x00000000
<4>TSMHW_PRG_CNT_0      : 0x0
<4>TSMHW_PRG_CNT_1      : 0x0
<4>TSMHW_PRG_CNT_2      : 0x0
<4>TSMHW_PRG_CNT_3      : 0x0
<4>TSMHW_PRG_CNT_4      : 0x0
<4>TSM_PTI0_DEST        : 0xd
<4>TSM_PTI1_DEST        : 0xd
<4>TSM_P1394_DEST       : 0x0
<4>TSM_SWTS_CFG_EXPANDED: 0x84000016
<4>TSM_PTI_ALT_OUT_CFG  : 0x0
<4>TSM_P1394_CFG        : 0x0
<4>TSM_SYS_CFG          : 0x0
<4>TSM_SW_RESET         : 0x80000000
<4>$Name: Stdrivers-avll_v_2_0_0_59_on_16_11_2006 $
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>$Name: Stdrivers-avll_v_2_0_0_59_on_16_11_2006 $
<4>st231cm_RegisterDriver
<4>h264vdec register succesful
<4>st231cm_DspLock
<4>lock from h264vdec
<4>h264vdec st231cm_DspLock ok: 15
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>st231cm_RegisterDriver
<4>mp2vdec register succesful
<4>Register DMX: 1
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>COMPO_Add_Callback: adds handle C0100000 idx = 0
<4>HDCP driver for user applications - dev:hdmi_hdcp num:2170
<4>HDCP registerred (0)
<4>$Name$
<4>st231cm_RegisterDriver
<4>aud register succesful
<4>st231cm_DspLock
<4>lock from aud
<4>aud st231cm_DspLock ok: 15
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<6>Graphic plane mixer: Aug  2 2007
<4>$Name: Platform_ST7100_TLF_SDK_1_1_11_on_2006_11_14_1119 $
<4>COMPO_Add_Callback: adds handle C0100001 idx = 1
<6>usbcore: registered new driver usbfs
<6>usbcore: registered new driver hub
<4>2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (ST40)
<4>ST40_start_host_control
<4>ST40_start_host_control proceeding
<6>drivers/usb/host/ohci-stcore.c:  requesting IRQ 168
<6>drivers/usb/host/ohci-stcore.c: ohci_hcd (ST40) at 0xb91ffc00, irq 168
<6>ST40-ohci ST40-ohci1: new USB bus registered, assigned bus number 1
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
<6>Linux video capture interface: v1.00
<4>aec: initmodule
<4>Enabling audio decoder 4
<6>mixer: Assigning Master id:0 index:0
<6>mixer: Assigning PCM id:4 index:0
<6>mixer: Assigning Video id:22 index:0
<6>usbcore: registered new driver snd-usb-audio
<6>usbcore: registered new driver audio
<6>drivers/usb/class/audio.c: v1.0.0:USB Audio Class driver
<4>MINI_MME_Init()...
<4>VCONF [OK]
<4>[ST231DBG task enabled]
<4>R422 Decoder ID 2
<4>r422vdec: Initialisation OK
<6>pwc: Philips webcam module version 10.0.11-unofficial loaded.
<6>pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
<6>pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
<6>pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
<7>pwc: Trace options: 0x0001
<6>usbcore: registered new driver Philips webcam
<5>JFFS2 notice: (114) check_node_data: wrong data CRC in data node at 0x02052e00: read 0x9ee5f013, calculated 0xd2272a47.
<4>++BRUSHER_DriverClose
<4>--BRUSHER_DriverClose
<4>Version 100
<4>++COMPO_FinishInit
<4>  COMPO_FinishInit: send COMPO_NOTIFY_START_CHANGE
<4>  COMPO_FinishInit: send COMPO_NOTIFY_END_CHANGE
<4>--COMPO_FinishInit
<4>st231cm_ForceReloadDsp
<4>ST231CM DSP Try reload : 0 0
<4>ST231CM DSP Reload - ST231CM_RELOAD_ALLOWED
<4>st231cm_DspUnlock
<4>unlock from aud
<4>deinit aud OK
<4>st231cm_DspUnlock
<4>unlock from h264vdec
<4>deinit h264vdec OK
<4>ST231CM DSP Reload time : 35 (0)
<4>Enabling audio decoder 0
<4>st231cm_DspLock
<4>lock from aud
<4>aud st231cm_DspLock ok: 15
<4>Disabling audio decoder 0
<4>Enabling audio decoder 0
<4>mp2vdec_postprocessing = 0
<4>Disabling audio decoder 0
<4>Enabling audio decoder 0
<4>Disabling audio decoder 0
<4>Enabling audio decoder 0
<4>mp2vdec_postprocessing = 0
<6>usb 1-1: new full speed USB device using ST40-ohci and address 2
/ #
/ #

j.

Re:USB mass storage v set-top-boxu
« Odpověď #4 kdy: 08. 01. 2012, 15:45:01 »
insmod nefunguje? Ten by na rozdil od modprobe se nemel pokouset resit zavislosti.


Re:USB mass storage v set-top-boxu
« Odpověď #5 kdy: 09. 01. 2012, 18:26:28 »
insmod funguje.
Potíž je, že co insmodovat, když ty moduly nemáme. 

Re:USB mass storage v set-top-boxu
« Odpověď #6 kdy: 10. 01. 2012, 13:24:58 »
Toto je v set-top-boxu ADB3800TW:
Kód: [Vybrat]
~ #
~ # cat /proc/cpuinfo
machine         : ADB E88 board
processor       : 0
cpu family      : sh4
cpu type        : STb710x
cpu flags       : fpu
cache type      : split (harvard)
icache size     : 16KiB
dcache size     : 32KiB
bogomips        : 264.60
cpu clock       : 265.50MHz
bus clock       : 201.00MHz
module clock    : 66.37MHz
~ #
~ # cat /proc/version
Linux version 2.6.11.12_stm20-32/0.0.24_RC4/ (gcc version 3.4.3 (STMicroelectronics/Linux Base 3.4.3-19)
[build Mar 10 2006]) #67 Wed Oct 31 14:12:53 CET 2007
~ #
~ #

alfi

  • ****
  • 338
    • Zobrazit profil
    • E-mail
Re:USB mass storage v set-top-boxu
« Odpověď #7 kdy: 10. 01. 2012, 14:02:25 »
pošli sem ještě výstup /proc/filesystems a /proc/partitions (s připojeným usb) :-)

Re:USB mass storage v set-top-boxu
« Odpověď #8 kdy: 10. 01. 2012, 18:23:09 »
USB připojeno
Kód: [Vybrat]
~ #
~ # cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   pipefs
nodev   futexfs
nodev   tmpfs
nodev   eventpollfs
nodev   devpts
        ext2
nodev   ramfs
nodev   devfs
nodev   nfs
nodev   rpc_pipefs
nodev   jffs2
nodev   usbfs
~ #
~ #
~ # cat /proc/partitions
major minor  #blocks  name

  31     0         64 mtdblock0
  31     1         64 mtdblock1
  31     2      61440 mtdblock2
  31     3       4096 mtdblock3
~ #
~ #

alfi

  • ****
  • 338
    • Zobrazit profil
    • E-mail
Re:USB mass storage v set-top-boxu
« Odpověď #9 kdy: 10. 01. 2012, 20:57:50 »
tohle je ok tak napůl..
- umí ext2 (i když pro něj nemá modul), ale neumí ostatní filesystémy
- usb mass storage se asi vážně nekoná..

odzkoušeno na jiném st linux boxu (Linux stb710x_board 2.6.17.14_stm22_0041-MB411_7109-STSDK) - moduly do kernelu se opravdu přidávají přes insmod. modprobe si taky stěžuje na chybějící modules.dep

já tam moduly nemám v podstatě žádné
Kód: [Vybrat]
# lsmod
Module                  Size  Used by    Tainted: P
stgfb_core             45788  1
stapi_ioctl           336784  0
stapi_core           2321176  2 stgfb_core,stapi_ioctl
mme_host               35056  1 stapi_core
embxshm                30168  0
embxmailbox            12368  1 embxshm
embxloopback            9056  0
embxshell              30216  5 stapi_core,mme_host,embxshm,embxmailbox,embxloopback
ale přesto mám plnou podporu filesystémů i usb mass storage

Kód: [Vybrat]
# cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   futexfs
nodev   tmpfs
nodev   eventpollfs
nodev   devpts
        ext3
        ext2
nodev   ramfs
        msdos
        vfat
nodev   nfs
nodev   cifs
        ntfs
nodev   jffs2
nodev   autofs
nodev   fuse
nodev   mqueue
nodev   rpc_pipefs

# cat /proc/bus/usb/devices

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.17.14_stm22_0041-MB411_7109-STSDK ohci_hcd
S:  Product=STB7100 OHCI
S:  SerialNumber=STB7100 OHCI
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.17.14_stm22_0041-MB411_7109-STSDK ehci_hcd
S:  Product=ST EHCI Host Controller
S:  SerialNumber=STB7100_EHCI
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0608 Rev=77.61
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  4 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=04b4 ProdID=6830 Rev= 2.40
S:  Product=Cypress AT2LP
S:  SerialNumber=DEF11
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=64ms
-> část modulů bude v těchhle krabičkách vždycky zakompilovaná přímo.

pak bude třeba modul nebo celý kernel znovu zkompilovat - jestli jsou k tomu zdrojáky a nějaký návod. a nebo najít celý alternativní image, který snad bude vybavenější (viz třeba tady http://www.abclinuxu.cz/poradna/hardware/show/242765#60, http://www.tvfreak.cz/forum/showthread.php?t=22799)

pak už jen zkoušet naslepo moduly z jiných st/sh4 boxů, např. ipbox 900hd je taky sh4 a image má jenom zazipovaný. ale jestli to bude fungovat bude spíš o náhodě (stejná verze kernelu a jeho podobná konfigurace..). až u programů mimo samotný kernel je ta šance na fungování mnohem větší :-)

Re:USB mass storage v set-top-boxu
« Odpověď #10 kdy: 11. 01. 2012, 00:45:12 »
Všem děkuji za rady, bohužel to budu muset předat někomu zkušenějšímu.
Já si naivně myslel, že se někde něco stáhne, to se tam překopíruje, potom se něco
napíše do příkazového řádku, půl hodiny to bude něco dělat a pokud to nezatuhne,
tak výsledkem bude fungující připojení USB HDD.   :)
 - hold uživatel Windows   ;D

Re:USB mass storage v set-top-boxu
« Odpověď #11 kdy: 27. 01. 2012, 14:45:00 »
Konečně se povedlo rozchodit USB.   :)
Trvalo to sice dva a půl roku, ale už to funguje.

Španělskému týmu se povedlo na to najít vhodné moduly.
Vývoj je sice v naprostém začátku, ale připojený USB flesch disk to rozpozná
a je možno na něj po síti překopírovat soubory.

Jaké jsou další plány, nebo spíše co potřebujeme:
Zprovoznit
USB myš
USB klávesnici
USB HDD
USB WEB kamery
a na to všechno udělat automount

Přidat nějaký FTP server a HTTP server.
Rozchodi něco jako Webcam-Voice-Chat po internetu (Videokonference)
Určitě někdo jiný zase používá něco jako USB dalekohled.

Já bych potřeboval na tomto set-top-boxu zprovoznit USB mikroskop BRESSER.

V práci ho připojujeme na starší počítač s malou obrazovkou, ikdyž máme v rohu místnosti
set-top-box ADB3800TW připojený na velkou televizi.
Provoz by byl ekonomičtější, pokud by se povedlo mikroskop připojit
na set-top-box a zobrazovat obraz na televizi.

Pokud má někdo nějaké nápady a schopnosti co a jak přidat, tak

další vývoj pokračuje zde:

http://forum.ican3800.zajsoft.net/viewforum.php?f=5


Každý je vítaný.

alfi

  • ****
  • 338
    • Zobrazit profil
    • E-mail
Re:USB mass storage v set-top-boxu
« Odpověď #12 kdy: 27. 01. 2012, 17:27:23 »
hezké. to jsem ani nečekal :-) aneb když někdo ví jak na to, v linuxu je možné téměř vše :)

sambu na tom mojem boxu možná taky vyzkouším.. na usb jsem zkusil myš - a kupodivu se chytla. jen bez kurzoru. ať žijou optimalizace pro malé flash paměťi, když jádro obsahuje i takové zbytečnosti jako ovladače pro myš..

Re:USB mass storage v set-top-boxu
« Odpověď #13 kdy: 27. 01. 2012, 21:20:03 »
Ahoj Alfi, jsem rád, že jsi rád, já jsem též rád.  ;D

USB myš jsem též vyzkouše, ta se mi rozsvítila, ale USB klávesnice nereagovala, ale nějaké věci
na klávesnici v boxu jsou, tak nevím.

Mnohem větší problém je, že se mi nedaří namountovat flešku. Pokus již na druhém boxu.
Flešku to najde, rozpozná, ale nemountne. Fleška je naformátovaná na FAT32.

Stejný problém se řešil zde, ale podle nich se mi to nepovedlo rozchodit.
https://forum.openwrt.org/viewtopic.php?pid=155028

alfi

  • ****
  • 338
    • Zobrazit profil
    • E-mail
Re:USB mass storage v set-top-boxu
« Odpověď #14 kdy: 27. 01. 2012, 23:30:58 »
pěkné, samba mi taky chodí :) i když bych možná využil spíš klienta než server - klient tam je zadrátovaný a nedá se k němu dostat..

vidí disk v /proc/partitions? příp. přes fdisk?  a když ne tak v /proc/bus/usb/devices jak jsem psal předtím?