Milí majitelé routerů Turris,
toto fórum bylo 9. 12. 2016 zmrazeno a nahrazeno naším novým Turris fórem. Ještě chvíli bude dostupné k prohlížení, ale již zde není možné přispívat. Více informací naleznete v oznámení o uzavření fóra.
Dear Turris routers users,
this forum has been frozen on Dec 9th, 2016 and replaced by our new Turris forum. It will be read-only accessible for some time after. For more information, read the announcement about closing the forum.
> Předpokládám že pro ukládání dat asi nejlépe použít připojený flashdisk nebo je dostupné i jiné "místo"?
> Jestli si dobře pamatuji měl by mít router slot na SD kartu jako "poslední možnost recovery" .... je možné ji použit i jen jako externí úložiště? (ptám se než začnu něco zkoušet a shánět...)
insmod w1-gpio-custom bus0=0,6,0
, ale v kernel logu se mi vypíše
[ 117.662784] Custom GPIO-based W1 driver version 0.1.1
[ 117.662967] invalid GPIO -2
[ 117.663031] ------------[ cut here ]------------
[ 117.663036] WARNING: at drivers/gpio/gpiolib.c:126
[ 117.663040] Modules linked in: w1_gpio_custom(+) sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_gred sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_police act_ipt act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress xt_set ip_set_list_set ip_set_hash_netport ip_set_hash_netiface ip_set_hash_net ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set ip6t_NPT ip6t_MASQUERADE ip6table_nat nf_nat_ipv6 ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 pppoatm ip_gre gre sit ip6_tunnel tunnel6 tunnel4 ip_tunnel tun br2684 atm w1_therm w1_gpio wire pl2303 option usb_wwan usbserial rndis_host cdc_ether usbnet spidev pppoe pppox ppp_async xt_nfacct nfnetlink_acct nf_conntrack_netlink ppp_mppe ppp_generic slhc crc_ccitt xt_TPROXY xt_socket nf_defrag_ipv6 nf_tproxy_core xt_NFLOG nfnetlink_log nfnetlink nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp xt_REDIRECT ipt_MASQUERADE iptable_nat nf_nat_ipv4 xt_nat nf_nat xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_tcpmss xt_statistic xt_length xt_DSCP xt_dscp xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_id xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter xt_tcpudp xt_recent xt_helper xt_connmark xt_connlimit xt_connbytes xt_conntrack xt_CT iptable_raw ip_tables xt_state x_tables nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack gpio_keys lm90 hwmon ath9k ath9k_common ath9k_hw ath mac80211 cfg80211 compat ipv6 sha1_generic ecb arc4 crypto_blkcipher leds_gpio xhci_hcd uhci_hcd ehci_platform ehci_hcd sd_mod fsl_mph_dr_of button_hotplug input_core usb_storage scsi_mod usbcore nls_base usb_common mii crypto_hash
[ 117.663277] CPU: 0 PID: 7350 Comm: insmod Not tainted 3.10.49-4c8e5c7c78cd2f5b5370bf7c793f88cb-9 #1
[ 117.663284] task: c7966be0 ti: c7408000 task.ti: c7408000
[ 117.663289] NIP: c01a2738 LR: c01a2738 CTR: 00000000
[ 117.663295] REGS: c7409bc0 TRAP: 0700 Not tainted (3.10.49-4c8e5c7c78cd2f5b5370bf7c793f88cb-9)
[ 117.663299] MSR: 00029000 <CE,EE,ME> CR: 44022024 XER: 00000000
[ 117.663310]
[ 117.663310] GPR00: c01a2738 c7409c70 c7966be0 0000000f 00021000 00000002 c0403b99 00021000
[ 117.663310] GPR08: 00000007 00000001 00000007 00000197 24022024 1001b0e8 c7409e80 00002d32
[ 117.663310] GPR16: 00000077 00000064 e4bcd310 c0301860 00000000 c03e7afc c03e7ad8 c0068474
[ 117.663310] GPR24: 00000000 00000011 c0430af4 e3d1650c 00000000 c7b8de80 c7ee2010 e3d1653c
[ 117.663365] NIP [c01a2738] gpio_to_desc+0x28/0x54
[ 117.663371] LR [c01a2738] gpio_to_desc+0x28/0x54
[ 117.663375] Call Trace:
[ 117.663382] [c7409c70] [c01a2738] gpio_to_desc+0x28/0x54 (unreliable)
[ 117.663391] [c7409c80] [c01a3f98] gpio_request+0x18/0x30
[ 117.663403] [c7409c90] [e3d16258] 0xe3d16258
[ 117.663412] [c7409cb0] [c01d8d54] driver_probe_device+0xd8/0x214
[ 117.663419] [c7409ce0] [c01d70c4] bus_for_each_drv+0x9c/0xac
[ 117.663425] [c7409d10] [c01d8c38] device_attach+0x7c/0xa0
[ 117.663432] [c7409d30] [c01d807c] bus_probe_device+0x34/0xb8
[ 117.663445] [c7409d50] [c01d64c8] device_add+0x478/0x584
[ 117.663453] [c7409da0] [c01da5b8] platform_device_add+0x174/0x208
[ 117.663462] [c7409dc0] [e4bcf0c0] __this_module+0x1ef0/0x1f54 [w1_gpio_custom]
[ 117.663469] [c7409de0] [e4bcf164] init_module+0x40/0x124 [w1_gpio_custom]
[ 117.663478] [c7409e00] [c0002184] do_one_initcall+0xe0/0x178
[ 117.663488] [c7409e30] [c006a9cc] load_module+0x13c4/0x1b18
[ 117.663495] [c7409ee0] [c006b200] SyS_init_module+0xe0/0x104
[ 117.663503] [c7409f40] [c000cde0] ret_from_syscall+0x0/0x3c
[ 117.663524] --- Exception: c01 at 0x48067bd4
[ 117.663524] LR = 0x10001d00
[ 117.663530] Instruction dump:
[ 117.663534] 4e800020 4e800020 2b8300ff 7c641b78 40bd0038 9421fff0 3c60c037 7c0802a6
[ 117.663547] 38631de4 90010014 4cc63182 48158f99 <0fe00000> 80010014 38600000 38210010
[ 117.663561] ---[ end trace a6b35668717a0d05 ]---
[ 117.663613] gpiod_request: invalid GPIO
[ 117.663627] w1-gpio w1-gpio.0: gpio_request (pin) failed
[ 117.668968] w1-gpio: probe of w1-gpio.0 failed with error -22
a v /sys/bus/w1/devices/
je samozřejmě prázdno.digitemp_DS9097 -s /dev/ttyUSB0 -i
, ale bohužel nic nenajde. Přišlo mi divné, že poměrně dost dlouho aplikace stála na hlášce Turning off all DS2409 Couplers
(v řádu minut).insmod w1-gpio-custom bus0=0,230,0
stále invalid GPIO.
root@turris:~# opkg list_installed | grep 'serial\|digitemp'
digitemp - 3.6.0-5
kmod-usb-serial - 3.10.49+9-1-4c8e5c7c78cd2f5b5370bf7c793f88cb-9
kmod-usb-serial-option - 3.10.49+9-1-4c8e5c7c78cd2f5b5370bf7c793f88cb-9
kmod-usb-serial-pl2303 - 3.10.49+9-1-4c8e5c7c78cd2f5b5370bf7c793f88cb-9
kmod-usb-serial-wwan - 3.10.49+9-1-4c8e5c7c78cd2f5b5370bf7c793f88cb-9
root@turris:~# lsusb
Bus 001 Device 002: ID 0424:2412 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
root@turris:~# insmod ./w1-gpio-custom.ko bus0=0,486,0
root@turris:~# dmesg | tail
[ 79.413409] Custom GPIO-based W1 driver version 0.1.1
[ 79.413532] w1-gpio w1-gpio.0: Failed to parse gpio property for data pin (-2)
[ 79.420890] w1-gpio: probe of w1-gpio.0 failed with error -2
Powered by mwForum 2.29.3 © 1999-2013 Markus Wichitill