201

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Skończyłem testowanie i oto wyniki:
- działa i jest dostępnych 15 linii (1, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 26, 27)
- nie ma dostępu (pola na pcb) do 4 linii (17, 18, 24, 25)
- nie da się zmienić wartości (w konsoli nie ma błędu, ale napięcie się nie zmienia) 6 linii (2, 16, 19, 20, 21, 22)
- zmiana wartości linii 0 powoduje zawieszenie systemu,2 - kaszani się kontroler ATA a 5 - restart.
Tutaj jest opis czipa cs5536, który pomoże znaleźć stosowne wyjścia.

202

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Popsułem jeden terminal testując i teraz nie lutuję nic, tylko miernikiem sprawdzam. Zauważyłem ciekawą przypadłość: przed zdefiniowaniem typu linii jest na każdej (które dotychczas sprawdziłem) 5V. Po ustawieniu wartości "1" zmienia się na 3.3V, a na "0" - 0.3V. Tak więc trzeba będzie zrobić jakieś opóźnianie załączenia jeśli będę chciał sterować tym triakami.
Pytania:
Czy w takim wypadku będzie można bezpiecznie wykorzystać je do magistrali i2c?
Zauważyłem, że w Twoich przykładach wszędzie linie gpio są pisane małymi literami a u mnie

root@OpenWrt:/sys/class/gpio# ls
GPIO10     GPIO12     GPIO9      gpiochip0
GPIO11     GPIO8      export     unexport

Czy to jest normalne? Nie będzie powodowało problemów?

203

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Victoria!
Zainstalowałem wszystko od nowa podążając za Twoimi radami i zagadało! Wywala jakieś błędy jak poniżej; pewnie system używał którychś linii, których stan zmieniłem ale to nie problem smile

root@OpenWrt:~# dmesg
[    0.000000] Linux version 3.10.49 (cezary@eko.one.pl) (gcc version 4.8.3 (Ope                                                                                                                                                             nWrt/Linaro GCC 4.8-2014.04 r44952) ) #5 Mon Apr 20 11:49:13 CEST 2015
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000007baffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000007bb0000-0x0000000007bbffbf] ACPI data
[    0.000000] BIOS-e820: [mem 0x0000000007bbffc0-0x0000000007bbffff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x0000000040400000-0x000000004043ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f0000000-0x00000000ffffffff] reserved
[    0.000000] Notice: NX (Execute Disable) protection missing in CPU!
[    0.000000] DMI not present or invalid.
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x7bb0 max_arch_pfn = 0x100000
[    0.000000] initial memory mapped: [mem 0x00000000-0x017fffff]
[    0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000]  [mem 0x00000000-0x000fffff] page 4k
[    0.000000] init_memory_mapping: [mem 0x07400000-0x077fffff]
[    0.000000]  [mem 0x07400000-0x077fffff] page 2M
[    0.000000] init_memory_mapping: [mem 0x00100000-0x073fffff]
[    0.000000]  [mem 0x00100000-0x003fffff] page 4k
[    0.000000]  [mem 0x00400000-0x073fffff] page 2M
[    0.000000] init_memory_mapping: [mem 0x07800000-0x07baffff]
[    0.000000]  [mem 0x07800000-0x07baffff] page 4k
[    0.000000] BRK [0x01584000, 0x01584fff] PGTABLE
[    0.000000] 123MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 07bb0000
[    0.000000]   low ram: 0 - 07bb0000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
[    0.000000]   Normal   [mem 0x01000000-0x07baffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00001000-0x0009efff]
[    0.000000]   node   0: [mem 0x00100000-0x07baffff]
[    0.000000] On node 0 totalpages: 31566
[    0.000000] free_area_init_node: node 0, pgdat c14e23c0, node_mem_map c7ab802                                                                                                                                                             0
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3998 pages, LIFO batch:0
[    0.000000]   Normal zone: 216 pages used for memmap
[    0.000000]   Normal zone: 27568 pages, LIFO batch:7
[    0.000000] Using APIC driver default
[    0.000000] No local APIC present or hardware disabled
[    0.000000] APIC: disable apic facility
[    0.000000] APIC: switched to apic NOOP
[    0.000000] nr_irqs_gsi: 16
[    0.000000] e820: [mem 0x40440000-0xefffffff] available for PCI devices
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                                                                                             es: 31318
[    0.000000] Kernel command line: root=/dev/sda2 rootfstype=ext2 init=/etc/pre                                                                                                                                                             init  noinitrd console=tty0 console=ttyS0,38400n8 reboot=bios acpi=off noacpi
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Initializing CPU#0
[    0.000000] Memory: 119384k/126656k available (3587k kernel code, 6880k reser                                                                                                                                                             ved, 1434k data, 348k init, 0k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfffa2000 - 0xfffff000   ( 372 kB)
[    0.000000]     vmalloc : 0xc83b0000 - 0xfffa0000   ( 891 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc7bb0000   ( 123 MB)
[    0.000000]       .init : 0xc14e8000 - 0xc153f000   ( 348 kB)
[    0.000000]       .data : 0xc1380e44 - 0xc14e77c0   (1434 kB)
[    0.000000]       .text : 0xc1000000 - 0xc1380e44   (3587 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor                                                                                                                                                              mode...Ok.
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:2304 nr_irqs:256 16
[    0.000000] CPU 0 irqstacks, hard=c7406000 soft=c7408000
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [ttyS0] enabled
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 365.239 MHz processor
[    0.030014] Calibrating delay loop (skipped), value calculated using timer fr                                                                                                                                                             equency.. 730.47 BogoMIPS (lpj=3652390)
[    0.050041] pid_max: default: 32768 minimum: 301
[    0.060462] Mount-cache hash table entries: 512
[    0.080952] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.080952] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.080952] tlb_flushall_shift: -1
[    0.090034] CPU: NSC Geode(TM) Integrated Processor by National Semi (fam: 05                                                                                                                                                             , model: 05, stepping: 02)
[    0.120455] Performance Events:
[    0.134386] NET: Registered protocol family 16
[    0.153310] PCI: PCI BIOS revision 2.10 entry at 0xff8b7, last bus=0
[    0.160042] PCI: Using configuration type 1 for base access
[    0.240837] bio: create slab <bio-0> at 0
[    0.251767] ACPI: Interpreter disabled.
[    0.270343] SCSI subsystem initialized
[    0.281715] libata version 3.00 loaded.
[    0.282831] usbcore: registered new interface driver usbfs
[    0.290581] usbcore: registered new interface driver hub
[    0.300661] usbcore: registered new device driver usb
[    0.313030] PCI: Probing PCI hardware
[    0.320048] PCI: root bus 00: using default resources
[    0.320077] PCI: Probing PCI hardware (bus 00)
[    0.320667] PCI host bridge to bus 0000:00
[    0.330071] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.340064] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
[    0.350058] pci_bus 0000:00: No busn resource found for root bus, will use [b                                                                                                                                                             us 00-ff]
[    0.360255] pci 0000:00:01.0: [100b:0028] type 00 class 0x060000
[    0.360469] pci 0000:00:01.0: reg 10: [io  0xac1c-0xac1f]
[    0.370707] pci 0000:00:01.1: [100b:0030] type 00 class 0x030000
[    0.371103] pci 0000:00:01.1: reg 10: [mem 0x41000000-0x41ffffff]
[    0.371579] pci 0000:00:01.1: reg 14: [mem 0x40ffc000-0x40ffffff]
[    0.371886] pci 0000:00:01.1: reg 18: [mem 0x40ff8000-0x40ffbfff]
[    0.372192] pci 0000:00:01.1: reg 1c: [mem 0x40ff4000-0x40ff7fff]
[    0.374310] pci 0000:00:0e.0: [10ec:8139] type 00 class 0x020000
[    0.374392] pci 0000:00:0e.0: reg 10: [io  0xef00-0xefff]
[    0.374446] pci 0000:00:0e.0: reg 14: [mem 0xeff00000-0xeff000ff]
[    0.374595] pci 0000:00:0e.0: supports D1 D2
[    0.374634] pci 0000:00:0e.0: PME# supported from D1 D2 D3hot
[    0.375479] pci 0000:00:0f.0: [1022:2090] type 00 class 0x060100
[    0.375879] pci 0000:00:0f.0: reg 10: [io  0x6000-0x6007]
[    0.376054] pci 0000:00:0f.0: reg 14: [io  0x6100-0x61ff]
[    0.376224] pci 0000:00:0f.0: reg 18: [io  0x6200-0x623f]
[    0.376397] pci 0000:00:0f.0: reg 1c: [io  0x0000-0x001f]
[    0.376570] pci 0000:00:0f.0: reg 20: [io  0x9d00-0x9d7f]
[    0.376746] pci 0000:00:0f.0: reg 24: [io  0x9c00-0x9c3f]
[    0.378204] pci 0000:00:0f.2: [1022:209a] type 00 class 0x010180
[    0.379397] pci 0000:00:0f.2: reg 20: [io  0xeef0-0xeeff]
[    0.381061] pci 0000:00:0f.3: [1022:2093] type 00 class 0x040100
[    0.381435] pci 0000:00:0f.3: reg 10: [io  0xee00-0xee7f]
[    0.383968] pci 0000:00:0f.4: [1022:2094] type 00 class 0x0c0310
[    0.384642] pci 0000:00:0f.4: reg 10: [mem 0xefc00000-0xefc00fff]
[    0.386751] pci 0000:00:0f.4: PME# supported from D0 D3hot D3cold
[    0.387884] pci 0000:00:0f.5: [1022:2095] type 00 class 0x0c0320
[    0.388360] pci 0000:00:0f.5: reg 10: [mem 0xefb00000-0xefb00fff]
[    0.390635] pci 0000:00:0f.5: PME# supported from D0 D3hot D3cold
[    0.391795] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.392258] pci 0000:00:0f.0: default IRQ router [1022:2090]
[    0.410042] PCI: pci_cache_line_size set to 32 bytes
[    0.410718] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[    0.410755] e820: reserve RAM buffer [mem 0x07bb0000-0x07ffffff]
[    0.413509] Switching to clocksource pit
[    0.420799] pnp: PnP ACPI: disabled
[    0.478988] pci 0000:00:0f.0: BAR 3: assigned [io  0x1000-0x101f]
[    0.488082] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.488129] pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
[    0.488435] NET: Registered protocol family 2
[    0.503373] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.504829] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.514440] TCP: Hash tables configured (established 1024 bind 1024)
[    0.534147] TCP: reno registered
[    0.544385] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.562401] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.572216] NET: Registered protocol family 1
[    0.576175] pci 0000:00:01.1: Boot video device
[    0.576546] pci 0000:00:0f.4: guessed PCI INT D -> IRQ 10
[    0.593592] pci 0000:00:0f.4: sharing IRQ 10 with 0000:00:0f.5
[    0.674430] pci 0000:00:0f.5: guessed PCI INT D -> IRQ 10
[    0.691382] pci 0000:00:0f.5: sharing IRQ 10 with 0000:00:0f.4
[    0.699739] PCI: CLS 32 bytes, default 32
[    0.701324] platform rtc_cmos: registered platform RTC device (no PNP device                                                                                                                                                              found)
[    0.705345] NatSemi SCx200 Driver
[    0.772278] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.781061] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                                                                                                                                                             Y) (c) 2001-2006 Red Hat, Inc.
[    0.793851] msgmni has been set to 233
[    0.797581] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                                                                                                                                                             52)
[    0.810307] io scheduler noop registered
[    0.822594] io scheduler deadline registered (default)
[    0.831923] isapnp: Scanning for PnP cards...
[    1.193884] isapnp: No Plug & Play device found
[    1.198624] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.214719] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.247205] Non-volatile memory driver v1.3
[    1.260290] Linux agpgart interface v0.103
[    1.274295] [drm] Initialized drm 1.1.0 20060810
[    1.292680] pata_cs5536: Using MSR regs instead of PCI
[    1.303518] scsi0 : pata_cs5536
[    1.314946] scsi1 : pata_cs5536
[    1.326112] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xeef0 irq 14
[    1.337525] ata2: DUMMY
[    1.352858] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.362963] ehci-pci: EHCI PCI platform driver
[    1.367030] ehci-pci 0000:00:0f.5: guessed PCI INT D -> IRQ 10
[    1.375244] ehci-pci 0000:00:0f.5: sharing IRQ 10 with 0000:00:0f.4
[    1.384842] ehci-pci 0000:00:0f.5: setting latency timer to 64
[    1.384944] ehci-pci 0000:00:0f.5: EHCI Host Controller
[    1.401206] ehci-pci 0000:00:0f.5: new USB bus registered, assigned bus numbe                                                                                                                                                             r 1
[    1.414433] ehci-pci 0000:00:0f.5: irq 10, io mem 0xefb00000
[    1.444181] ehci-pci 0000:00:0f.5: USB 2.0 started, EHCI 1.00
[    1.463690] hub 1-0:1.0: USB hub found
[    1.465543] hub 1-0:1.0: 4 ports detected
[    1.479254] ehci-platform: EHCI generic platform driver
[    1.485942] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.495784] ohci_hcd 0000:00:0f.4: guessed PCI INT D -> IRQ 10
[    1.514072] ohci_hcd 0000:00:0f.4: sharing IRQ 10 with 0000:00:0f.5
[    1.523641] ohci_hcd 0000:00:0f.4: setting latency timer to 64
[    1.523718] ohci_hcd 0000:00:0f.4: OHCI Host Controller
[    1.529987] ohci_hcd 0000:00:0f.4: new USB bus registered, assigned bus numbe                                                                                                                                                             r 2
[    1.542880] ohci_hcd 0000:00:0f.4: irq 10, io mem 0xefc00000
[    1.564548] ata1.00: CFA:    64MB  ATA Flash Disk, ADAA408J, max MWDMA2
[    1.574920] ata1.00: 125056 sectors, multi 0: LBA
[    1.611268] ata1.00: configured for MWDMA2
[    1.624963] scsi 0:0:0:0: Direct-Access     ATA         64MB  ATA Fla ADAA PQ                                                                                                                                                             : 0 ANSI: 5
[    1.641264] hub 2-0:1.0: USB hub found
[    1.653095] hub 2-0:1.0: 4 ports detected
[    1.658751] sd 0:0:0:0: [sda] 125056 512-byte logical blocks: (64.0 MB/61.0 M                                                                                                                                                             iB)
[    1.671699] uhci_hcd: USB Universal Host Controller Interface driver
[    1.684517] sd 0:0:0:0: [sda] Write Protect is off
[    1.699469] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.699634] Switching to clocksource tsc
[    1.712255] usbcore: registered new interface driver usb-storage
[    1.731490] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, does                                                                                                                                                             n't support DPO or FUA
[    1.761025] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    1.785477] i8042: Warning: Keylock active
[    2.313588] serio: i8042 KBD port at 0x60,0x64 irq 1
[    2.329037] serio: i8042 AUX port at 0x60,0x64 irq 12
[    2.345440]  sda: sda1 sda2
[    2.358875] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.374213] mousedev: PS/2 mouse device common for all mice
[    2.394168] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    2.413785] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[    2.433829] cpuidle: using governor ladder
[    2.446619] cpuidle: using governor menu
[    2.459848] hidraw: raw HID events driver (C) Jiri Kosina
[    2.477407] TCP: cubic registered
[    2.487891] NET: Registered protocol family 17
[    2.501875] Bridge firewalling registered
[    2.514442] 8021q: 802.1Q VLAN Support v1.8
[    2.528141] Using IPI Shortcut mode
[    2.542259] rtc_cmos rtc_cmos: setting system clock to 2015-04-21 08:12:18 UT                                                                                                                                                             C (1429603938)
[    2.573609] EXT4-fs (sda2): mounting ext2 file system using the ext4 subsyste                                                                                                                                                             m
[    2.601474] input: AT Translated Set 2 keyboard as /devices/platform/i8042/se                                                                                                                                                             rio0/input/input0
[    2.641789] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    2.668129] VFS: Mounted root (ext2 filesystem) readonly on device 8:2.
[    2.693048] Freeing unused kernel memory: 348k freed
[    3.054220] usb 2-1: new low-speed USB device number 2 using ohci_hcd
[    3.129985] Button Hotplug driver version 0.4.1
[    3.494185] usb 2-2: new low-speed USB device number 3 using ohci_hcd
[    6.355505] EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is                                                                                                                                                              recommended
[    6.396546] EXT4-fs (sda2): re-mounted. Opts: (null)
[    6.500903] block: attempting to load /etc/config/fstab
[    6.523236] block: extroot: not configured
[    9.219880] NET: Registered protocol family 10
[    9.301334] snd_cs5535audio 0000:00:0f.3: guessed PCI INT B -> IRQ 5
[    9.325521] snd_cs5535audio 0000:00:0f.3: setting latency timer to 64
[    9.358381] nf_conntrack version 0.5.0 (1870 buckets, 7480 max)
[    9.390282] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.422296] ACPI Exception: AE_BAD_PARAMETER, Thread 3344952512 could not acq                                                                                                                                                             uire Mutex [0x1] (20130328/utmutex-285)
[    9.474504] ACPI Exception: AE_BAD_PARAMETER, Thread 3344952512 could not acq                                                                                                                                                             uire Mutex [0x1] (20130328/utmutex-285)
[    9.537482] ACPI Exception: AE_BAD_PARAMETER,
[    9.553608] Clocksource tsc unstable (delta = 69998534 ns)
[    9.575174] Thread 3344952512 could not acquire Mutex [0x1] (20130328/utmutex                                                                                                                                                             -285)
[    9.614503] ACPI Exception: AE_BAD_PARAMETER, Thread 3344952512 could not acq                                                                                                                                                             uire Mutex [0x1] (20130328/utmutex-285)
[    9.679001] Switching to clocksource pit
[    9.694102] ACPI Exception: AE_BAD_PARAMETER, Thread 3344952512 could not acq                                                                                                                                                             uire Mutex [0x1] (20130328/utmutex-285)
[    9.724513] cs5535-mfd 0000:00:0f.0: 5 devices registered.
[    9.746163] cs5535-gpio cs5535-gpio: reserved resource region [io  0x6100-0x6                                                                                                                                                             1ff]
[    9.784480] 8139too: 8139too Fast Ethernet driver 0.9.28
[    9.794640] 8139too 0000:00:0e.0: guessed PCI INT A -> IRQ 11
[    9.831795] 8139too 0000:00:0e.0 eth0: RealTek RTL8139 at 0x0001ef00, 00:80:6                                                                                                                                                             4:7c:9b:50, IRQ 11
[    9.877330] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.944494] input: SIGMACHIP USB Keyboard as /devices/pci0000:00/0000:00:0f.4                                                                                                                                                             /usb2/2-1/2-1:1.0/input/input1
[    9.974537] hid-generic 0003:1C4F:0026.0001: input,hidraw0: USB HID v1.10 Key                                                                                                                                                             board [SIGMACHIP USB Keyboard] on usb-0000:00:0f.4-1/input0
[   10.024492] input: SIGMACHIP USB Keyboard as /devices/pci0000:00/0000:00:0f.4                                                                                                                                                             /usb2/2-1/2-1:1.1/input/input2
[   10.054540] hid-generic 0003:1C4F:0026.0002: input,hidraw1: USB HID v1.10 Dev                                                                                                                                                             ice [SIGMACHIP USB Keyboard] on usb-0000:00:0f.4-1/input1
[   10.094495] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:                                                                                                                                                             0f.4/usb2/2-2/2-2:1.0/input/input3
[   10.135703] hid-generic 0003:046D:C019.0003: input,hidraw2: USB HID v1.11 Mou                                                                                                                                                             se [Logitech USB Optical Mouse] on usb-0000:00:0f.4-2/input0
[   10.174297] usbcore: registered new interface driver usbhid
[   10.185276] usbhid: USB HID core driver
[   10.228887] xt_time: kernel timezone is -0000
[   10.247387] PPP generic driver version 2.4.2
[   10.267629] NET: Registered protocol family 24
[   14.597909] 8139too 0000:00:0e.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC                                                                                                                                                             5E1
[   14.614855] device eth0 entered promiscuous mode
[   14.654781] br-lan: port 1(eth0) entered forwarding state
[   14.665157] br-lan: port 1(eth0) entered forwarding state
[   16.664312] br-lan: port 1(eth0) entered forwarding state
[  167.166926] cs5535-gpio cs5535-gpio: pin 23 is not available (check mask)
[  226.021292] ata1: lost interrupt (Status 0x50)
[  226.038204] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  226.044611] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 12 dma 1024                                                                                                                                                              out
[  226.044611]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeo                                                                                                                                                             ut)
[  226.059465] ata1: soft resetting link
[  226.261640] ata1.00: configured for MWDMA2
[  226.277229] ata1.00: device reported invalid CHS sector 0
[  226.287585] ata1: EH complete
[  257.014800] ata1: lost interrupt (Status 0x50)
[  257.031714] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  257.038126] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 13 dma 1024                                                                                                                                                              out
[  257.038126]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeo                                                                                                                                                             ut)
[  257.052968] ata1: soft resetting link
[  257.255338] ata1.00: configured for MWDMA2
[  257.270882] ata1.00: device reported invalid CHS sector 0
[  257.281226] ata1: EH complete
[  262.585207] cs5535-gpio cs5535-gpio: pin 23 is not available (check mask)
[  288.058655] ata1: lost interrupt (Status 0x50)
[  288.075544] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  288.081883] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 14 dma 1024                                                                                                                                                              out
[  288.081883]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeo                                                                                                                                                             ut)
[  288.096732] ata1: soft resetting link
[  288.298950] ata1.00: configured for MWDMA2
[  288.314538] ata1.00: device reported invalid CHS sector 0
[  288.324869] ata1: EH complete
[  319.036135] ata1: lost interrupt (Status 0x50)
[  319.053024] ata1.00: limiting speed to MWDMA1:PIO4
[  319.061121] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  319.067557] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 15 dma 1024                                                                                                                                                              out
[  319.067557]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeo                                                                                                                                                             ut)
[  319.082416] ata1: soft resetting link
[  319.286603] ata1.00: configured for MWDMA1
[  319.302193] ata1.00: device reported invalid CHS sector 0
[  319.312519] ata1: EH complete
[  350.003124] ata1: lost interrupt (Status 0x50)
[  350.020024] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  350.026427] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 16 dma 1024                                                                                                                                                              out
[  350.026427]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeo                                                                                                                                                             ut)
[  350.041276] ata1: soft resetting link
[  350.243433] ata1.00: configured for MWDMA1
[  350.259014] ata1.00: device reported invalid CHS sector 0
[  350.269357] ata1: EH complete
[  381.058468] ata1: lost interrupt (Status 0x50)
[  381.075361] ata1.00: limiting speed to PIO4
[  381.081220] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  381.097659] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 17 dma 1024                                                                                                                                                              out
[  381.097659]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeo                                                                                                                                                             ut)
[  381.107537] ata1: soft resetting link
[  381.308908] ata1.00: configured for PIO4
[  381.323850] ata1.00: device reported invalid CHS sector 0
[  381.334191] sd 0:0:0:0: [sda]
[  381.346227] Result: hostbyte=0x00 driverbyte=0x08
[  381.353930] sd 0:0:0:0: [sda]
[  381.365922] Sense Key : 0xb [current] [descriptor]
[  381.385199] Descriptor sense data with sense descriptors (in hex):
[  381.398779]         72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
[  381.428712]         00 00 00 00
[  381.442855] sd 0:0:0:0: [sda]
[  381.454828] ASC=0x0 ASCQ=0x0
[  381.466266] sd 0:0:0:0: [sda] CDB:
[  381.469497] cdb[0]=0x2a: 2a 00 00 00 23 c7 00 00 02 00
[  381.493282] end_request: I/O error, dev sda, sector 9159
[  381.503238] Buffer I/O error on device sda2, logical block 12
[  381.514781] lost page write due to I/O error on sda2
[  381.523573] ata1: EH complete
[  412.026639] ata1: lost interrupt (Status 0x58)
[  412.053434] ata1: drained 8704 bytes to clear DRQ
[  412.054255] ata1.00: limiting speed to PIO3
[  412.060116] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  412.076564] ata1.00: cmd 20/00:12:77:ec:00/00:00:00:00:00/e0 tag 18 pio 9216                                                                                                                                                              in
[  412.076564]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeo                                                                                                                                                             ut)
[  412.081021] ata1: soft resetting link
[  412.287011] ata1.00: configured for PIO3
[  412.301884] ata1.00: device reported invalid CHS sector 0
[  412.312240] ata1: EH complete
root@OpenWrt:~# dmesg
[    0.000000] Linux version 3.10.49 (cezary@eko.one.pl) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44952) ) #5 Mon Apr 20 11:49:13 CEST 2015
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000007baffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000007bb0000-0x0000000007bbffbf] ACPI data
[    0.000000] BIOS-e820: [mem 0x0000000007bbffc0-0x0000000007bbffff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x0000000040400000-0x000000004043ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f0000000-0x00000000ffffffff] reserved
[    0.000000] Notice: NX (Execute Disable) protection missing in CPU!
[    0.000000] DMI not present or invalid.
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x7bb0 max_arch_pfn = 0x100000
[    0.000000] initial memory mapped: [mem 0x00000000-0x017fffff]
[    0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000]  [mem 0x00000000-0x000fffff] page 4k
[    0.000000] init_memory_mapping: [mem 0x07400000-0x077fffff]
[    0.000000]  [mem 0x07400000-0x077fffff] page 2M
[    0.000000] init_memory_mapping: [mem 0x00100000-0x073fffff]
[    0.000000]  [mem 0x00100000-0x003fffff] page 4k
[    0.000000]  [mem 0x00400000-0x073fffff] page 2M
[    0.000000] init_memory_mapping: [mem 0x07800000-0x07baffff]
[    0.000000]  [mem 0x07800000-0x07baffff] page 4k
[    0.000000] BRK [0x01584000, 0x01584fff] PGTABLE
[    0.000000] 123MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 07bb0000
[    0.000000]   low ram: 0 - 07bb0000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
[    0.000000]   Normal   [mem 0x01000000-0x07baffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00001000-0x0009efff]
[    0.000000]   node   0: [mem 0x00100000-0x07baffff]
[    0.000000] On node 0 totalpages: 31566
[    0.000000] free_area_init_node: node 0, pgdat c14e23c0, node_mem_map c7ab8020
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3998 pages, LIFO batch:0
[    0.000000]   Normal zone: 216 pages used for memmap
[    0.000000]   Normal zone: 27568 pages, LIFO batch:7
[    0.000000] Using APIC driver default
[    0.000000] No local APIC present or hardware disabled
[    0.000000] APIC: disable apic facility
[    0.000000] APIC: switched to apic NOOP
[    0.000000] nr_irqs_gsi: 16
[    0.000000] e820: [mem 0x40440000-0xefffffff] available for PCI devices
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 31318
[    0.000000] Kernel command line: root=/dev/sda2 rootfstype=ext2 init=/etc/preinit  noinitrd console=tty0 console=ttyS0,38400n8 reboot=bios acpi=off noacpi
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Initializing CPU#0
[    0.000000] Memory: 119384k/126656k available (3587k kernel code, 6880k reserved, 1434k data, 348k init, 0k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfffa2000 - 0xfffff000   ( 372 kB)
[    0.000000]     vmalloc : 0xc83b0000 - 0xfffa0000   ( 891 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc7bb0000   ( 123 MB)
[    0.000000]       .init : 0xc14e8000 - 0xc153f000   ( 348 kB)
[    0.000000]       .data : 0xc1380e44 - 0xc14e77c0   (1434 kB)
[    0.000000]       .text : 0xc1000000 - 0xc1380e44   (3587 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:2304 nr_irqs:256 16
[    0.000000] CPU 0 irqstacks, hard=c7406000 soft=c7408000
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [ttyS0] enabled
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 365.239 MHz processor
[    0.030014] Calibrating delay loop (skipped), value calculated using timer frequency.. 730.47 BogoMIPS (lpj=3652390)
[    0.050041] pid_max: default: 32768 minimum: 301
[    0.060462] Mount-cache hash table entries: 512
[    0.080952] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.080952] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.080952] tlb_flushall_shift: -1
[    0.090034] CPU: NSC Geode(TM) Integrated Processor by National Semi (fam: 05, model: 05, stepping: 02)
[    0.120455] Performance Events:
[    0.134386] NET: Registered protocol family 16
[    0.153310] PCI: PCI BIOS revision 2.10 entry at 0xff8b7, last bus=0
[    0.160042] PCI: Using configuration type 1 for base access
[    0.240837] bio: create slab <bio-0> at 0
[    0.251767] ACPI: Interpreter disabled.
[    0.270343] SCSI subsystem initialized
[    0.281715] libata version 3.00 loaded.
[    0.282831] usbcore: registered new interface driver usbfs
[    0.290581] usbcore: registered new interface driver hub
[    0.300661] usbcore: registered new device driver usb
[    0.313030] PCI: Probing PCI hardware
[    0.320048] PCI: root bus 00: using default resources
[    0.320077] PCI: Probing PCI hardware (bus 00)
[    0.320667] PCI host bridge to bus 0000:00
[    0.330071] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.340064] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
[    0.350058] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.360255] pci 0000:00:01.0: [100b:0028] type 00 class 0x060000
[    0.360469] pci 0000:00:01.0: reg 10: [io  0xac1c-0xac1f]
[    0.370707] pci 0000:00:01.1: [100b:0030] type 00 class 0x030000
[    0.371103] pci 0000:00:01.1: reg 10: [mem 0x41000000-0x41ffffff]
[    0.371579] pci 0000:00:01.1: reg 14: [mem 0x40ffc000-0x40ffffff]
[    0.371886] pci 0000:00:01.1: reg 18: [mem 0x40ff8000-0x40ffbfff]
[    0.372192] pci 0000:00:01.1: reg 1c: [mem 0x40ff4000-0x40ff7fff]
[    0.374310] pci 0000:00:0e.0: [10ec:8139] type 00 class 0x020000
[    0.374392] pci 0000:00:0e.0: reg 10: [io  0xef00-0xefff]
[    0.374446] pci 0000:00:0e.0: reg 14: [mem 0xeff00000-0xeff000ff]
[    0.374595] pci 0000:00:0e.0: supports D1 D2
[    0.374634] pci 0000:00:0e.0: PME# supported from D1 D2 D3hot
[    0.375479] pci 0000:00:0f.0: [1022:2090] type 00 class 0x060100
[    0.375879] pci 0000:00:0f.0: reg 10: [io  0x6000-0x6007]
[    0.376054] pci 0000:00:0f.0: reg 14: [io  0x6100-0x61ff]
[    0.376224] pci 0000:00:0f.0: reg 18: [io  0x6200-0x623f]
[    0.376397] pci 0000:00:0f.0: reg 1c: [io  0x0000-0x001f]
[    0.376570] pci 0000:00:0f.0: reg 20: [io  0x9d00-0x9d7f]
[    0.376746] pci 0000:00:0f.0: reg 24: [io  0x9c00-0x9c3f]
[    0.378204] pci 0000:00:0f.2: [1022:209a] type 00 class 0x010180
[    0.379397] pci 0000:00:0f.2: reg 20: [io  0xeef0-0xeeff]
[    0.381061] pci 0000:00:0f.3: [1022:2093] type 00 class 0x040100
[    0.381435] pci 0000:00:0f.3: reg 10: [io  0xee00-0xee7f]
[    0.383968] pci 0000:00:0f.4: [1022:2094] type 00 class 0x0c0310
[    0.384642] pci 0000:00:0f.4: reg 10: [mem 0xefc00000-0xefc00fff]
[    0.386751] pci 0000:00:0f.4: PME# supported from D0 D3hot D3cold
[    0.387884] pci 0000:00:0f.5: [1022:2095] type 00 class 0x0c0320
[    0.388360] pci 0000:00:0f.5: reg 10: [mem 0xefb00000-0xefb00fff]
[    0.390635] pci 0000:00:0f.5: PME# supported from D0 D3hot D3cold
[    0.391795] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.392258] pci 0000:00:0f.0: default IRQ router [1022:2090]
[    0.410042] PCI: pci_cache_line_size set to 32 bytes
[    0.410718] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[    0.410755] e820: reserve RAM buffer [mem 0x07bb0000-0x07ffffff]
[    0.413509] Switching to clocksource pit
[    0.420799] pnp: PnP ACPI: disabled
[    0.478988] pci 0000:00:0f.0: BAR 3: assigned [io  0x1000-0x101f]
[    0.488082] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.488129] pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
[    0.488435] NET: Registered protocol family 2
[    0.503373] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.504829] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.514440] TCP: Hash tables configured (established 1024 bind 1024)
[    0.534147] TCP: reno registered
[    0.544385] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.562401] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.572216] NET: Registered protocol family 1
[    0.576175] pci 0000:00:01.1: Boot video device
[    0.576546] pci 0000:00:0f.4: guessed PCI INT D -> IRQ 10
[    0.593592] pci 0000:00:0f.4: sharing IRQ 10 with 0000:00:0f.5
[    0.674430] pci 0000:00:0f.5: guessed PCI INT D -> IRQ 10
[    0.691382] pci 0000:00:0f.5: sharing IRQ 10 with 0000:00:0f.4
[    0.699739] PCI: CLS 32 bytes, default 32
[    0.701324] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.705345] NatSemi SCx200 Driver
[    0.772278] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.781061] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.793851] msgmni has been set to 233
[    0.797581] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.810307] io scheduler noop registered
[    0.822594] io scheduler deadline registered (default)
[    0.831923] isapnp: Scanning for PnP cards...
[    1.193884] isapnp: No Plug & Play device found
[    1.198624] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.214719] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.247205] Non-volatile memory driver v1.3
[    1.260290] Linux agpgart interface v0.103
[    1.274295] [drm] Initialized drm 1.1.0 20060810
[    1.292680] pata_cs5536: Using MSR regs instead of PCI
[    1.303518] scsi0 : pata_cs5536
[    1.314946] scsi1 : pata_cs5536
[    1.326112] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xeef0 irq 14
[    1.337525] ata2: DUMMY
[    1.352858] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.362963] ehci-pci: EHCI PCI platform driver
[    1.367030] ehci-pci 0000:00:0f.5: guessed PCI INT D -> IRQ 10
[    1.375244] ehci-pci 0000:00:0f.5: sharing IRQ 10 with 0000:00:0f.4
[    1.384842] ehci-pci 0000:00:0f.5: setting latency timer to 64
[    1.384944] ehci-pci 0000:00:0f.5: EHCI Host Controller
[    1.401206] ehci-pci 0000:00:0f.5: new USB bus registered, assigned bus number 1
[    1.414433] ehci-pci 0000:00:0f.5: irq 10, io mem 0xefb00000
[    1.444181] ehci-pci 0000:00:0f.5: USB 2.0 started, EHCI 1.00
[    1.463690] hub 1-0:1.0: USB hub found
[    1.465543] hub 1-0:1.0: 4 ports detected
[    1.479254] ehci-platform: EHCI generic platform driver
[    1.485942] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.495784] ohci_hcd 0000:00:0f.4: guessed PCI INT D -> IRQ 10
[    1.514072] ohci_hcd 0000:00:0f.4: sharing IRQ 10 with 0000:00:0f.5
[    1.523641] ohci_hcd 0000:00:0f.4: setting latency timer to 64
[    1.523718] ohci_hcd 0000:00:0f.4: OHCI Host Controller
[    1.529987] ohci_hcd 0000:00:0f.4: new USB bus registered, assigned bus number 2
[    1.542880] ohci_hcd 0000:00:0f.4: irq 10, io mem 0xefc00000
[    1.564548] ata1.00: CFA:    64MB  ATA Flash Disk, ADAA408J, max MWDMA2
[    1.574920] ata1.00: 125056 sectors, multi 0: LBA
[    1.611268] ata1.00: configured for MWDMA2
[    1.624963] scsi 0:0:0:0: Direct-Access     ATA         64MB  ATA Fla ADAA PQ: 0 ANSI: 5
[    1.641264] hub 2-0:1.0: USB hub found
[    1.653095] hub 2-0:1.0: 4 ports detected
[    1.658751] sd 0:0:0:0: [sda] 125056 512-byte logical blocks: (64.0 MB/61.0 MiB)
[    1.671699] uhci_hcd: USB Universal Host Controller Interface driver
[    1.684517] sd 0:0:0:0: [sda] Write Protect is off
[    1.699469] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.699634] Switching to clocksource tsc
[    1.712255] usbcore: registered new interface driver usb-storage
[    1.731490] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.761025] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    1.785477] i8042: Warning: Keylock active
[    2.313588] serio: i8042 KBD port at 0x60,0x64 irq 1
[    2.329037] serio: i8042 AUX port at 0x60,0x64 irq 12
[    2.345440]  sda: sda1 sda2
[    2.358875] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.374213] mousedev: PS/2 mouse device common for all mice
[    2.394168] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    2.413785] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[    2.433829] cpuidle: using governor ladder
[    2.446619] cpuidle: using governor menu
[    2.459848] hidraw: raw HID events driver (C) Jiri Kosina
[    2.477407] TCP: cubic registered
[    2.487891] NET: Registered protocol family 17
[    2.501875] Bridge firewalling registered
[    2.514442] 8021q: 802.1Q VLAN Support v1.8
[    2.528141] Using IPI Shortcut mode
[    2.542259] rtc_cmos rtc_cmos: setting system clock to 2015-04-21 08:12:18 UTC (1429603938)
[    2.573609] EXT4-fs (sda2): mounting ext2 file system using the ext4 subsystem
[    2.601474] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    2.641789] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    2.668129] VFS: Mounted root (ext2 filesystem) readonly on device 8:2.
[    2.693048] Freeing unused kernel memory: 348k freed
[    3.054220] usb 2-1: new low-speed USB device number 2 using ohci_hcd
[    3.129985] Button Hotplug driver version 0.4.1
[    3.494185] usb 2-2: new low-speed USB device number 3 using ohci_hcd
[    6.355505] EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended
[    6.396546] EXT4-fs (sda2): re-mounted. Opts: (null)
[    6.500903] block: attempting to load /etc/config/fstab
[    6.523236] block: extroot: not configured
[    9.219880] NET: Registered protocol family 10
[    9.301334] snd_cs5535audio 0000:00:0f.3: guessed PCI INT B -> IRQ 5
[    9.325521] snd_cs5535audio 0000:00:0f.3: setting latency timer to 64
[    9.358381] nf_conntrack version 0.5.0 (1870 buckets, 7480 max)
[    9.390282] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.422296] ACPI Exception: AE_BAD_PARAMETER, Thread 3344952512 could not acquire Mutex [0x1] (20130328/utmutex-285)
[    9.474504] ACPI Exception: AE_BAD_PARAMETER, Thread 3344952512 could not acquire Mutex [0x1] (20130328/utmutex-285)
[    9.537482] ACPI Exception: AE_BAD_PARAMETER,
[    9.553608] Clocksource tsc unstable (delta = 69998534 ns)
[    9.575174] Thread 3344952512 could not acquire Mutex [0x1] (20130328/utmutex-285)
[    9.614503] ACPI Exception: AE_BAD_PARAMETER, Thread 3344952512 could not acquire Mutex [0x1] (20130328/utmutex-285)
[    9.679001] Switching to clocksource pit
[    9.694102] ACPI Exception: AE_BAD_PARAMETER, Thread 3344952512 could not acquire Mutex [0x1] (20130328/utmutex-285)
[    9.724513] cs5535-mfd 0000:00:0f.0: 5 devices registered.
[    9.746163] cs5535-gpio cs5535-gpio: reserved resource region [io  0x6100-0x61ff]
[    9.784480] 8139too: 8139too Fast Ethernet driver 0.9.28
[    9.794640] 8139too 0000:00:0e.0: guessed PCI INT A -> IRQ 11
[    9.831795] 8139too 0000:00:0e.0 eth0: RealTek RTL8139 at 0x0001ef00, 00:80:64:7c:9b:50, IRQ 11
[    9.877330] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.944494] input: SIGMACHIP USB Keyboard as /devices/pci0000:00/0000:00:0f.4/usb2/2-1/2-1:1.0/input/input1
[    9.974537] hid-generic 0003:1C4F:0026.0001: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-0000:00:0f.4-1/input0
[   10.024492] input: SIGMACHIP USB Keyboard as /devices/pci0000:00/0000:00:0f.4/usb2/2-1/2-1:1.1/input/input2
[   10.054540] hid-generic 0003:1C4F:0026.0002: input,hidraw1: USB HID v1.10 Device [SIGMACHIP USB Keyboard] on usb-0000:00:0f.4-1/input1
[   10.094495] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:0f.4/usb2/2-2/2-2:1.0/input/input3
[   10.135703] hid-generic 0003:046D:C019.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:0f.4-2/input0
[   10.174297] usbcore: registered new interface driver usbhid
[   10.185276] usbhid: USB HID core driver
[   10.228887] xt_time: kernel timezone is -0000
[   10.247387] PPP generic driver version 2.4.2
[   10.267629] NET: Registered protocol family 24
[   14.597909] 8139too 0000:00:0e.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
[   14.614855] device eth0 entered promiscuous mode
[   14.654781] br-lan: port 1(eth0) entered forwarding state
[   14.665157] br-lan: port 1(eth0) entered forwarding state
[   16.664312] br-lan: port 1(eth0) entered forwarding state
[  167.166926] cs5535-gpio cs5535-gpio: pin 23 is not available (check mask)
[  226.021292] ata1: lost interrupt (Status 0x50)
[  226.038204] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  226.044611] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 12 dma 1024 out
[  226.044611]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  226.059465] ata1: soft resetting link
[  226.261640] ata1.00: configured for MWDMA2
[  226.277229] ata1.00: device reported invalid CHS sector 0
[  226.287585] ata1: EH complete
[  257.014800] ata1: lost interrupt (Status 0x50)
[  257.031714] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  257.038126] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 13 dma 1024 out
[  257.038126]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  257.052968] ata1: soft resetting link
[  257.255338] ata1.00: configured for MWDMA2
[  257.270882] ata1.00: device reported invalid CHS sector 0
[  257.281226] ata1: EH complete
[  262.585207] cs5535-gpio cs5535-gpio: pin 23 is not available (check mask)
[  288.058655] ata1: lost interrupt (Status 0x50)
[  288.075544] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  288.081883] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 14 dma 1024 out
[  288.081883]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  288.096732] ata1: soft resetting link
[  288.298950] ata1.00: configured for MWDMA2
[  288.314538] ata1.00: device reported invalid CHS sector 0
[  288.324869] ata1: EH complete
[  319.036135] ata1: lost interrupt (Status 0x50)
[  319.053024] ata1.00: limiting speed to MWDMA1:PIO4
[  319.061121] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  319.067557] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 15 dma 1024 out
[  319.067557]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  319.082416] ata1: soft resetting link
[  319.286603] ata1.00: configured for MWDMA1
[  319.302193] ata1.00: device reported invalid CHS sector 0
[  319.312519] ata1: EH complete
[  350.003124] ata1: lost interrupt (Status 0x50)
[  350.020024] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  350.026427] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 16 dma 1024 out
[  350.026427]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  350.041276] ata1: soft resetting link
[  350.243433] ata1.00: configured for MWDMA1
[  350.259014] ata1.00: device reported invalid CHS sector 0
[  350.269357] ata1: EH complete
[  381.058468] ata1: lost interrupt (Status 0x50)
[  381.075361] ata1.00: limiting speed to PIO4
[  381.081220] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  381.097659] ata1.00: cmd ca/00:02:c7:23:00/00:00:00:00:00/e0 tag 17 dma 1024 out
[  381.097659]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  381.107537] ata1: soft resetting link
[  381.308908] ata1.00: configured for PIO4
[  381.323850] ata1.00: device reported invalid CHS sector 0
[  381.334191] sd 0:0:0:0: [sda]
[  381.346227] Result: hostbyte=0x00 driverbyte=0x08
[  381.353930] sd 0:0:0:0: [sda]
[  381.365922] Sense Key : 0xb [current] [descriptor]
[  381.385199] Descriptor sense data with sense descriptors (in hex):
[  381.398779]         72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
[  381.428712]         00 00 00 00
[  381.442855] sd 0:0:0:0: [sda]
[  381.454828] ASC=0x0 ASCQ=0x0
[  381.466266] sd 0:0:0:0: [sda] CDB:
[  381.469497] cdb[0]=0x2a: 2a 00 00 00 23 c7 00 00 02 00
[  381.493282] end_request: I/O error, dev sda, sector 9159
[  381.503238] Buffer I/O error on device sda2, logical block 12
[  381.514781] lost page write due to I/O error on sda2
[  381.523573] ata1: EH complete
[  412.026639] ata1: lost interrupt (Status 0x58)
[  412.053434] ata1: drained 8704 bytes to clear DRQ
[  412.054255] ata1.00: limiting speed to PIO3
[  412.060116] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  412.076564] ata1.00: cmd 20/00:12:77:ec:00/00:00:00:00:00/e0 tag 18 pio 9216 in
[  412.076564]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  412.081021] ata1: soft resetting link
[  412.287011] ata1.00: configured for PIO3
[  412.301884] ata1.00: device reported invalid CHS sector 0
[  412.312240] ata1: EH complete
[  443.080373] ata1: lost interrupt (Status 0x58)
[  443.107178] ata1: drained 8704 bytes to clear DRQ
[  443.108002] ata1.00: limiting speed to PIO0
[  443.113873] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  443.130308] ata1.00: cmd 20/00:12:77:ec:00/00:00:00:00:00/e0 tag 19 pio 9216 in
[  443.130308]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  443.134802] ata1: soft resetting link
[  443.340927] ata1.00: configured for PIO0
[  443.355883] ata1.00: device reported invalid CHS sector 0
[  443.366239] ata1: EH complete
[  474.050675] ata1: lost interrupt (Status 0x58)
[  474.077485] ata1: drained 8704 bytes to clear DRQ
[  474.080556] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  474.086942] ata1.00: cmd 20/00:12:77:ec:00/00:00:00:00:00/e0 tag 20 pio 9216 in
[  474.086942]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  474.091514] ata1: soft resetting link
[  474.301081] ata1.00: configured for PIO0
[  474.316013] ata1.00: device reported invalid CHS sector 0
[  474.326335] ata1: EH complete

Teraz lutownica w dłoń i testowanie! Jadę do elektronicznego po jakieś złącza, diody i oporniki.
Serdecznie dziękuję za pomoc!

204

(81 odpowiedzi, napisanych Oprogramowanie / Software)

root@OpenWrt:~# modprobe gpio_cs5535
kmod: gpio_cs5535 is already loaded

Skrypt z openwrt.org eksportuje zadane gpio.
Faktycznie, coś takiego mam w logu:

Mon Apr 20 11:48:16 2015 kern.warn kernel: [    8.781389] ACPI Warning: 0x00006100-0x000061ff SystemIO conflicts with Region \_SB_.GPIO 1 (20130328/utaddress-251)
Mon Apr 20 11:48:16 2015 kern.info kernel: [    8.781681] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
Mon Apr 20 11:48:16 2015 kern.err kernel: [    8.782658] cs5535-mfd 0000:00:0f.0: MFD add devices failed: -16
Mon Apr 20 11:48:16 2015 kern.warn kernel: [    8.782875] cs5535-mfd: probe of 0000:00:0f.0 failed with error -16

Coś mi się wydaje, że ten smile oznacza jakiś trywialny problem.

205

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Pisząc "zrobiłem jak piszesz" miałem właśnie na myśli to, że odinstalowałem go i zainstalowałem ponownie.

206

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Niestety bez sukcesu. Zrobiłem jak piszesz i poza pojawieniem się katalogu /sys/class/gpio i dwóch plików w nim, nic się nie zmieniło. Uruchomiłem skrypt z openwrt.org i jest tak samo jak przedtem:

root@OpenWrt:~# ./gpio 0 99
sh: write error: No such device
./gpio: line 5: can't create gpio0/direction: nonexistent directory
...
sh: write error: No such device
./gpio: line 5: can't create gpio99/direction: nonexistent directory
./gpio: line 16: can't create gpio0/value: nonexistent directory
...
./gpio: line 16: can't create gpio99/value: nonexistent directory

sad
Testowałem to na systemie z Ubuntu i na konsoli wypluło mniej więcej to samo, ale za to

kurwicycek@ubuntusrv:/sys/class/gpio$ ls
export       VX855_GPI13  VX855_GPI9    VX855_GPIO2  VX855_GPO0   VX855_GPO5
gpiochip0    VX855_GPI2   VX855_GPIO0   VX855_GPIO3  VX855_GPO1   VX855_GPO6
unexport     VX855_GPI3   VX855_GPIO1   VX855_GPIO4  VX855_GPO10  VX855_GPO7
VX855_GPI0   VX855_GPI4   VX855_GPIO10  VX855_GPIO5  VX855_GPO11  VX855_GPO8
VX855_GPI1   VX855_GPI5   VX855_GPIO11  VX855_GPIO6  VX855_GPO12  VX855_GPO9
VX855_GPI10  VX855_GPI6   VX855_GPIO12  VX855_GPIO7  VX855_GPO2
VX855_GPI11  VX855_GPI7   VX855_GPIO13  VX855_GPIO8  VX855_GPO3
VX855_GPI12  VX855_GPI8   VX855_GPIO14  VX855_GPIO9  VX855_GPO4

Różnica jest taka, że tam od razu było dowiązanie gpiochip0. Nie jestem pewien o czym, ale na pewno o czymś to świadczy.
Zaraz jeszcze zainstaluję wszystko na świeżo, bo bawiłem się i zainstalowałem masę pakietów. Nie sądzę jednak, że coś to zmieni.
Piszesz o instalowaniu na nowo pakietów od cs553x. To potrzebne są jakieś inne niż kmod-gpio-cs5535-new?
Dziękuję za pomoc.

207

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Czekam cierpliwie. Jeśli jeszcze uda się dobrać do tych gpio to osiągnę nirvanę.

208

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Mam problem z gpio na tym sprzęcie (z Twoim obrazem). Zainstalowałem pakiet kmod-gpio-cs5535-new i zaklęcia stąd ani stąd nie działają.

root@OpenWrt:~# echo "**" > /sys/class/gpio/export
-ash: can't create /sys/class/gpio/export: nonexistent directory

Nie ma też katalogu /sys/class/gpio/ ani w dmesg nie ma nic. Czy zawarłeś w jądrze stosowne moduły

Device Drivers  --->
   [*] GPIO Support  --->
   [*]   /sys/class/gpio/... (sysfs interface)
   <*>   AMD CS5535/CS5536 (Geode Companion Device)

?

209

(10 odpowiedzi, napisanych Termometr)

Miałem podobny problem również na terminalu, ale Wyse Sx0.
Rozwiązałem go komentując linijkę zaczynającą się od "ttyS0..." w pliku /etc/inittab.

210

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Czy OpenWRT standardowo obsługuje MSR?
Pogooglowałem trochę i istnieją w Internecie strony z obydwoma terminami, ale to dla mnie wiedza tajemna.
Doczytałem i okazuje się, że ta modyfikacja sterownika use the Machine Specific Registers (MSRs) rather than the pci interface registers.

211

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Po to, by uruchomić system, który wiesza się tak jak na screenach z mojego pierwszego posta. Chciałbym użyć pliku sterownika zmodyfikowanego przez właściciela strony www.parkytowers.me.uk na potrzeby uruchomienia TinyCore i sprawdzić czy w ten sposób ruszy.

212

(81 odpowiedzi, napisanych Oprogramowanie / Software)

Po wstępnej kompilacji uruchamiam make kernel_menuconfig i mam tam do wyboru różne sterowniki, w tym do cs5536, o który to mi chodzi. Jak sprawić, by użyć tego pliku? Gdzie szukać tego sterownika w katalogu ze źródłami?

Zwracam się do szanownych kolegów z prośbą o pomoc przy instalacji OpenWRT na terminalu thin client Wyse S30.
Jest to w zasadzie zwykły pecet z architekturą i586, lecz jego projektanci zawarli w BIOSie funkcję, która wyłącza kontroler ATA po załadowaniu systemu, co jest przyczyną mojego problemu.
Podejmowałem próby instalacji przeróżnych wersji i jedynie Kamikaze 8.09.2 działa na nim bezproblemowo. Chciałbym jednak zainstalować BB ze względu na większą ilość oprogramowania w repozytorium oraz obsługę większej ilości sprzętu. Niestety daje się we znaki wrodzona ułomność tego sprzętu i np. obraz z ext4 wysypuje się po ukazaniu się na monitorze napisu GRUB, a wersja squashfs zatrzymuje się tak albo tak i to tutaj upatruję swojej szansy. Obraz trunk zachowuje się identycznie.
Dosyć dużo googlowałem i znalazłem takie rozwiązanie polegające na zmodyfikowaniu sterownika i takie zaklęcie

modprobe -r ata_generic
modprobe -r pata_amd
modprobe ata_generic all_generic_ide=1

polegające na jego przeładowaniu.
I teraz pytania:
Jak zawrzeć w obrazie swój sterownik i wyłączyć pozostałe? Pewnie chodzi o "Kernel modules" przy konfiguracji kompilacji, ale nie wiem które pliki edytować.
Jak przeładować sterownik przy starcie? Pewnie to również będzie się sprowadzało do skompilowania własnego obrazu, ale znów - jaki plik edytować?

Witam wszystkich.
Zainstalowałem OpenWRT na ww ruterze zgodnie z instrukcją, lecz niestety nie chce połączyć się z internetem w Netii na linii tepsy.
Oto jak wygląda plik /etc/config/network:

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd7c:d5a9:475d::/48'

config interface 'lan'
    option force_link '1'
    option type 'bridge'
    option proto 'static'
    option netmask '255.255.255.0'
    option ip6assign '60'
    option ifname 'eth0.1'
    option ipaddr '192.168.0.1'

config switch
    option name 'switch0'
    option reset '1'
    option enable_vlan '1'

config switch_vlan
    option device 'switch0'
    option vlan '1'
    option ports '0 1 2 4 5 6t'

config atm-bridge 'atm'
    option vpi '0'
    option vci '35'
    option encaps 'vc'
    option payload 'bridged'

config interface 'wan'
    option _orig_ifname 'nas0'
    option _orig_bridge 'false'
    option proto 'pppoa'
    option encaps 'vc'
    option atmdev '0'
    option vci '35'
    option vpi '0'
    option username xxxxxxxx
    option password xxxxxx
    option mtu '1462'

config vdsl 'dsl'
    option annex 'a'
    option firmware '/lib/firmware/vdsl.bin'
    option tone 'av'
    option xfer_mode 'atm'

W logu systemowym natomiast pojawia się coś takiego:

Sun Feb 22 19:44:21 2015 daemon.notice netifd: Interface 'wan' is now down
Sun Feb 22 19:44:21 2015 daemon.notice netifd: Interface 'wan' is setting up now
Sun Feb 22 19:44:21 2015 daemon.info pppd[3412]: Plugin pppoatm.so loaded.
Sun Feb 22 19:44:21 2015 daemon.info pppd[3412]: PPPoATM plugin_init
Sun Feb 22 19:44:21 2015 daemon.info pppd[3412]: PPPoATM setdevname_pppoatm - SUCCESS:0.0.35
Sun Feb 22 19:44:21 2015 daemon.notice pppd[3412]: pppd 2.4.7 started by root, uid 0
Sun Feb 22 19:44:21 2015 daemon.err pppd[3412]: connect(0.0.35): Address already in use
Sun Feb 22 19:44:21 2015 daemon.info pppd[3412]: Exit.
Sun Feb 22 19:44:21 2015 daemon.notice netifd: Interface 'wan' is now down
Sun Feb 22 19:44:21 2015 daemon.notice netifd: Interface 'wan' is setting up now
Sun Feb 22 19:44:21 2015 daemon.info pppd[3429]: Plugin pppoatm.so loaded.
Sun Feb 22 19:44:21 2015 daemon.info pppd[3429]: PPPoATM plugin_init
Sun Feb 22 19:44:21 2015 daemon.info pppd[3429]: PPPoATM setdevname_pppoatm - SUCCESS:0.0.35
Sun Feb 22 19:44:21 2015 daemon.notice pppd[3429]: pppd 2.4.7 started by root, uid 0
Sun Feb 22 19:44:21 2015 daemon.err pppd[3429]: connect(0.0.35): Address already in use
Sun Feb 22 19:44:21 2015 daemon.info pppd[3429]: Exit.
Sun Feb 22 19:44:21 2015 daemon.notice netifd: Interface 'wan' is now down
Sun Feb 22 19:44:21 2015 daemon.notice netifd: Interface 'wan' is setting up now
Sun Feb 22 19:44:22 2015 daemon.info pppd[3446]: Plugin pppoatm.so loaded.
Sun Feb 22 19:44:22 2015 daemon.info pppd[3446]: PPPoATM plugin_init
Sun Feb 22 19:44:22 2015 daemon.info pppd[3446]: PPPoATM setdevname_pppoatm - SUCCESS:0.0.35
Sun Feb 22 19:44:22 2015 daemon.notice pppd[3446]: pppd 2.4.7 started by root, uid 0
Sun Feb 22 19:44:22 2015 daemon.err pppd[3446]: connect(0.0.35): Address already in use
Sun Feb 22 19:44:22 2015 daemon.info pppd[3446]: Exit.

niezależnie od tego czy podepnę kabel telefoniczny czy nie.
Serdecznie proszę o pomoc w rozwiązaniu mojego problemu.