Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Nov 24, 2017 1:16 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 165 posts ]  Go to page Previous 17 8 9 10 11 Next
Author Message
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 5:26 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
What 2.6 kernel are you running? This is an error with the serial driver?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 5:54 pm 
Offline
Newbie

Joined: Tue Sep 26, 2006 4:46 pm
Posts: 20
I tried various v2.6 kernels (from Andre, Baulab, and a self-compiled).

All the same error...

Maybe the solution lies in the hardware; I desoldered J75 and left J76 blank. So there is no more pullup-capacitor on the board.

I am not able to write into the box, but I get messages out of it on the serial port.

Andy


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 6:08 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
So you have added an additional serial port (the unused one)?
IRQ 25 is used for the other device! Can you do a cat /proc/interrupts? And also a cat /proc/tty/driver/serial?

Is this preventing the AVR from functioning properly?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 6:36 pm 
Offline
Newbie

Joined: Tue Sep 26, 2006 4:46 pm
Posts: 20
Is it useful to cat in the 2.4 kernel?

The 2.6 does not come up to the console input prompt because of the "too much work for...".
Therefore I can not start anything.

Here is what dmesg on 2.4 says :

KERNELBASE=c0000000 r6=7fff00 r7=7fff0e
cmd_line=root=/dev/hda1
invalid magic: 474e474e
Memory BAT mapping: BAT2=128Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.20_mvl31-ppc_linkstation (root@sugai-linux) (gcc version 2.95.3 20010315 (release/MontaVista)) #1 Thu, 09 Feb 2006 11:56:26 +0900
BUFFALO Network Attached Storage Series
(C) 2002-2005 BUFFALO INC.
On node 0 totalpages: 32768
zone(0): 32768 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram0
OpenPIC Version 1.2 (1 CPUs and 10 IRQ sources) at 80040000
decrementer frequency = 32.768000 MHz
Calibrating delay loop... 174.48 BogoMIPS
Memory: 125376k available (1448k kernel code, 568k data, 76k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
LSP Revision 1
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x80004600 (irq = 25) is a ST16650
ttyS01 at 0x80004500 (irq = 24) is a ST16650
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: IBM-DTTA-351010, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
blk: queue c0206038, I/O limit 4095Mb (mask 0xffffffff)
hda: 19807200 sectors (10141 MB) w/466KiB Cache, CHS=19650/16/63, UDMA(33)
Partition check:
hda:hda: dma_timer_expiry: dma status == 0x21
hda: dma_timer_expiry: dma status == 0x21
-- BREAK DMA (hda) --
0x20
hda: dma_timer_expiry: status=0x58 { DriveReady SeekComplete DataRequest }
hda: irq timeout: status=0xd0 { Busy }
hda: DMA disabled
ide0: reset: success
[PTBL] [1232/255/63] hda1 hda2 hda3 < hda5 >
RAMDISK driver initialized: 16 RAM disks of 15000K size 1024 blocksize
eth0: Identified chip type is 'RTL8169s/8110s'.
eth0: RTL8169s/8110s Gigabit Ethernet driver 2.2+1 at 0xc9000f00, 00:07:40:ce:da:7d, IRQ 16
eth0: Auto-negotiation Enabled.
eth0: 1000Mbps Full-duplex operation.
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
physmap flash device: 400000 at ffc00000
Search for id:(20 20) interleave(1) type(1)
Search for id:(20 20) interleave(1) type(1)
Search for id:(00 00) interleave(1) type(1)
Search for id:(20 5d) interleave(1) type(2)
Found: ST M29W324DB
linkstation_flash: Found 1 x16 devices at 0x0 in 8-bit mode
number of JEDEC chips: 1
Using physmap partition definition
Creating 5 MTD partitions on "linkstation_flash":
0x00000000-0x00300000 : "mtd0"
0x00300000-0x00370000 : "mtd1"
0x00370000-0x00380000 : "mtd2"
0x00380000-0x00400000 : "mtd3"
0x00000000-0x00400000 : "mtd4"
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:0e.2: PCI device 1033:00e0
ehci_hcd 00:0e.2: irq 19, pci mem c9002f00
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:0e.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 5 ports detected
usb-ohci.c: USB OHCI at membase 0xc9004000, IRQ 19
usb-ohci.c: usb-00:0e.0, PCI device 1033:0035
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
usb-ohci.c: USB OHCI at membase 0xc9006000, IRQ 19
usb-ohci.c: usb-00:0e.1, PCI device 1033:0035
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 2056k freed
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 76k init
kmod: failed to exec /sbin/modprobe -s -k char-major-4, errno = 2
EXT2-fs warning: checktime reached, running e2fsck is recommended
kmod: failed to exec /sbin/modprobe -s -k vfat, errno = 2
ext3: No journal on filesystem on ide0(3,1)
kmod: failed to exec /sbin/modprobe -s -k vfat, errno = 2
attempt to access beyond end of device
03:03: rw=0, want=2, limit=1
EXT3-fs: unable to read superblock
attempt to access beyond end of device
03:03: rw=0, want=2, limit=1
EXT2-fs: unable to read superblock

This is cat /proc/interrupts :

CPU0
16: 1560 OpenPIC Level eth0
17: 241 OpenPIC Level ide0
19: 0 OpenPIC Level ehci_hcd, usb-ohci, usb-ohci
24: 42 OpenPIC Level serial
25: 84 OpenPIC Level serial
BAD: 2


And this cat /proc/tty/driver/serial :

Segmentation fault


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 6:57 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I will have to check my 2.4.20 install now. The IRQs 24 and 25 seem odd under 2.4.20? I am sure they are different on 2.6? I know why you get the segmentation fault: bug in the driver! Can you keep an eye on the number of interrupts you get on 24 and 25?

Can you cat /proc/iomem?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 7:05 pm 
Offline
Newbie

Joined: Tue Sep 26, 2006 4:46 pm
Posts: 20
#cat /proc/iomem

80000000-fcffffff : PCI host bridge
bfffcf00-bfffcfff : PCI device 1033:00e0
bfffcf00-bfffcfff : ehci_hcd
bfffd000-bfffdfff : PCI device 1033:0035
bfffd000-bfffdfff : usb-ohci
bfffe000-bfffefff : PCI device 1033:0035
bfffe000-bfffefff : usb-ohci
bffffe00-bffffeff : PCI device 1095:0680
bfffff00-bfffffff : PCI device 10ec:8169
bfffff00-bfffffff : eth0


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 7:13 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I see that the memory locations for your serial devices are missing from the map?

I think that this maybe a problem with the kernel build? The only way that error can occur is if the interrupt has been blocked for a long period of time and the queue has over-run. Maybe increasing the buffer may fix this problem. Has anyone else with a serial console seen this too? May need some debug code in the module 8250.c?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 7:21 pm 
Offline
Newbie

Joined: Tue Sep 26, 2006 4:46 pm
Posts: 20
I was able to log the 2.6 startup:

KERNELBASE=c0000000 (r6=7fff00 r7=7fff0e) r3=7ffec0 (r4=0 r5=0)
Linux version 2.6.16.17-kuroboxHG (root@kuro_hg) (gcc version 4.1.1 (Gentoo 4.1.
1)) #2 Sat Aug 19 21:42:07 CEST 2006
Early serial console at MMIO 0x80004600 (options '57600n8')
BUFFALO Network Attached Storage Series
(C) 2002-2005 BUFFALO INC.
Built 1 zonelists
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 11 IRQ sources) at 80040000
PID hash table entries: 1024 (order: 10, 16384 bytes)
decrementer frequency = 32.522240 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 127232k available (1764k kernel code, 660k data, 108k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 1 of device 0000:00:00.0
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
I2C: rs5c372 RTC driver successfully loaded
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x80004600 (irq = 26) is a 16550A
serial8250.1: ttyS1 at MMIO 0x80004500 (irq = 25) is a 16550A
RAMDISK driver initialized: 2 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
r8169 Gigabit Ethernet driver 2.2LK loaded
r8169: PowerManagement capability not found.
eth0: RTL8169 at 0xc9000f00, 00:07:40:ce:da:7d, IRQ 16
eth0: 1000Mbps Full-duplex operation.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SiI680: IDE controller at PCI slot 0000:00:0c.0
SiI680: chipset revision 2
siimage: IDE controller MMIO ports not available.
SiI680: BASE CLOCK == 100
SiI680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: Maxtor 6L300R0, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
hda: max request size: 64KiB
0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
ohci_hcd 0000:00:0e.0: OHCI Host Controller
ohci_hcd 0000:00:0e.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0e.0: irq 19, io mem 0xbfffe000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
ohci_hcd 0000:00:0e.1: OHCI Host Controller
ohci_hcd 0000:00:0e.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:0e.1: irq 19, io mem 0xbfffd000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Adding console on ttyS0 at MMIO 0x80004600 (options '57600n8')
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 108k init
serial8250: too much work for irq26
serial8250: too much work for irq26
serialrq26
serial8250: too much work for irq26
serial8250: too much work for irq26
serial8250: too much work for irq26
serial8250: too much work for irq26
serial8250: too much work for irq26
serial8250: too much work for irq26
serial8250: too much work for irq26
serial8250: too much work for irq26
serial8250: too much work for irq26
serial8250: too much work for irq26


Is this strange? --> the serial port has "IRQ sharing disabled"

By the way I changed the harddisc to get rid of these dma warnings....


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 7:31 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
deathrattle wrote:
Is this strange? --> the serial port has "IRQ sharing disabled"


This is okay.

I see that you are not running one of andre's kernels as your tty's are not swapped around.

It is odd that it is fine until it has finished booting? Why is the buffer overflowing? Looks like it needs flushing in the driver? Does the avr_evtd run okay or is the UART blocked by the other tty?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 7:35 pm 
Offline
Newbie

Joined: Tue Sep 26, 2006 4:46 pm
Posts: 20
How can I check if the avr_evtd is okay?

The watchdog seems to be shutdown, as the led is not blinking and the box keeps on running (does not shut down automatically).

This is for kernel 2.6:
Pressing the power or reset button has no effect.... so I expect that the avr_evtd is not running right.

Kernel 2.4 will shut down when I press the power button.

Should I post a log from Andre`s kernel?


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 7:44 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
What you can do is look at a log file the the avr_evtd process generates. On any events, like key press etc, the actions are logged in an event log located at /var/log/avr_evtd.log. Check this file and see if any actions, like key press, are being seen. Looks like the process is not seeing the events owing to the UART being interrupted. I have had a look at the 8250 kernel driver and the error is produced as a result of an overflow of interrupts and it seems at this point the driver is knack'd. Do you have the same problem regardless of your serial connection being made or not?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 7:53 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Done a bit of digging and this could possibly be a hardware issue. It may have a transmit request stuck in the buffer and not been cleared properly. I do not know if a 'work-around' was added in the 2.4 8250 driver to prevent this as I know the clock for the UART on the early LSs was not very good. Does not help you but maybe there is a patch that can be made to the UART driver to address this. Alternatively, have you tried moving the IRQ using setserial? It is odd that the IRQs have moved for the later kernels?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 8:16 pm 
Offline
Newbie

Joined: Tue Sep 26, 2006 4:46 pm
Posts: 20
There is no avr.log in the location.

"Do you have the same problem regardless of your serial connection being made or not?"
Do you mean if the terminal program (komport) logs the serial output or not?
Yes. I started the terminal a few minutes after startup of the box and imidiately the error message appears.

"It is odd that the IRQs have moved for the later kernels?"
Sorry, I can't understand the meaning of this.Can you describe it with other words?

How can I execute setserial without a running system? And in EM-mode setserial is not available.


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Tue Sep 26, 2006 8:33 pm 
Offline
Newbie

Joined: Tue Sep 26, 2006 4:46 pm
Posts: 20
Unfortunately I have made various changes at once....

I replaced the soldered ide port (the cable was broken) with pins to use a standard cable.
At the same time I added the serial port.
And I flashed the latest u-boot bootloader.

Before that my box run without this serial port error; even with the 2.6 kernel. "Never change a running system" I known.

So couldn't it be one of the hardware stuff above?? and not the kernel?


Top
   
 Post subject: Re: avr_evtd [kuroevtd]
PostPosted: Wed Sep 27, 2006 9:10 am 
Offline
Newbie

Joined: Tue Sep 26, 2006 4:46 pm
Posts: 20
I googled a bit and found the following:

http://lkml.org/lkml/2005/12/23/38

Maybe that patch helps??

I will try to get a buildroot running on my x86. With this I can compile a new kernel, right?

Andy


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 165 posts ]  Go to page Previous 17 8 9 10 11 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited