Hola a todos,

ho uno strano errore con un sistema embedded per una appliance che sto realizzando per una alix 2d13.

In pratica se attacco sia la compact flash sia l'harddisk da 2.5" con cavo ide da 40 pin ricevo un errore al quanto assurdo sulla compact flash e l'hdd mi sembra che non venga proprio riconosciuto

In pratica mi dice che il numero seriale, tra le richieste ata, relativo allo stesso device, cambia e quindi disabilita fisicamente la periferica.

Tra l'altro ogni tanto si invertono, ovvero prima mi restituisce un numero seriale come primario, poi mi restituisce l'altro e di nuovo vice versa.

La configurazione del bios della alix è:
(C) CHS mode *L* LBA mode *W* HDD wait *V* HDD slave *U* UDMA enable
Ho testato svariate combinazioni senza successo.

Non sto usando nessuna distribuzione, il sistema l'ho assemblato io da zero. Ho testato sia il pata_cs3356 sia il pata_amd ma ottengo lo stesso identico errore.

Mi sta iniziando a sorgere l'orrendo dubbio e sospetto che compact flash e harddisk non possano stare insieme sulla alix :\

Il codice seriale della compact flash è 6EB10703040700582043

Qui c'è l'output di hdparm
codice:
hdparm: ioctl 0x304 failed: Inappropriate ioctl for device

 Model=CF Card                                 , FwRev=Ver2.34 , SerialNo=6EB10703040700582043
 Config={ HardSect NotMFM Fixed DTR>10Mbs }
 RawCHS=7818/16/63, TrkSize=32256, SectSize=512, ECCbytes=4
 BuffType=(2) DualPort, BuffSize=1kB, MaxMultSect=1, MultSect=?1?
 CurCHS=7818/16/63, CurSects=7880544, LBA=yes, LBAsects=7880544
 IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 *udma2
 AdvancedPM=no

 * current active mode
L'harddisk comunque mi viene riconosciuto all'avvio dal bios della alix.

Le righe incriminate sono
codice:
[    1.072380] ata1.00: CFA: CF Card, Ver2.34, max UDMA/100
[    1.077738] ata1.00: 7880544 sectors, multi 0: LBA
[    1.082670] ata1.00: limited to UDMA/33 due to 40-wire cable
[    1.096260] ata1.00: serial number mismatch '6EB10703040700582043' != '6EB1p703040700582043'
[    1.104738] ata1.00: revalidation failed (errno=-19)
[    1.109740] ata1.00: limiting speed to UDMA/33:PIO3
.
.
.
[    6.209775] ata1.00: serial number mismatch '6EB10703040700582043' != '6EB1p703040700582043'
[    6.218324] ata1.00: revalidation failed (errno=-19)
[    6.222235] ata1.00: disabled
Ovviamente se stacco l'harddisk funziona tutto perfettamente.

L'output del kernel all'avvio è questo
codice:
.
.
.
[    0.024173] Mount-cache hash table entries: 512
[    0.028338] Performance Events: no PMU driver, software events only.
[    0.036007] CPU: Geode(TM) Integrated Processor by AMD PCS stepping 02
[    0.044278] NET: Registered protocol family 16
[    0.049510] PCI: PCI BIOS revision 2.10 entry at 0xfced9, last bus=0
[    0.052011] PCI: Using configuration type 1 for base access
[    0.065574] bio: create slab <bio-0> at 0
[    0.069057] SCSI subsystem initialized
[    0.072683] usbcore: registered new interface driver usbfs
[    0.076151] usbcore: registered new interface driver hub
[    0.080177] usbcore: registered new device driver usb
[    0.084466] PCI: Probing PCI hardware
[    0.098518] Switching to clocksource tsc
[    0.100090] FS-Cache: Loaded
[    0.103190] CacheFiles: Loaded
[    0.108066] NET: Registered protocol family 2
[    0.112571] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.119696] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.126982] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.133589] TCP: Hash tables configured (established 8192 bind 8192)
[    0.139979] TCP reno registered
[    0.143156] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.149038] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.155527] NET: Registered protocol family 1
[    0.160905] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.169783] microcode: microcode: CPU0: AMD CPU family 0x5 not supported
[    0.176665] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[    0.185635] scx200: NatSemi SCx200 Driver
[    0.205944] msgmni has been set to 500
[    0.211404] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.218848] io scheduler noop registered
[    0.222882] io scheduler cfq registered (default)
[    0.227662] pci 0000:00:0f.0: allocated PCI BAR #1: base 0x6100
[    0.233781] pci 0000:00:0f.0: cs5535-gpio: GPIO support successfully loaded.
[    0.241461] AMD Geode RNG detected
[    0.245070] Hangcheck: starting hangcheck timer 0.9.1 (tick is 180 seconds, margin is 60 seconds).
[    0.254068] Hangcheck: Using getrawmonotonic().
[    0.258641] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
¦[    0.520137] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
[    0.780135] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
[    0.787284] 0000:00:0c.0: ttyS2 at I/O 0x1c00 (irq = 9) is a 16C950/954
[    0.794289] 0000:00:0c.0: ttyS3 at I/O 0x1c40 (irq = 9) is a 16C950/954
[    0.801137] Couldn't register serial port 0000:00:0c.1: -28
[    0.810497] loop: module loaded
[    0.813698] pci 0000:00:0f.0: allocated PCI BAR #2: base 0x6200
[    0.819665] pci 0000:00:0f.0: cs5535-mfgpt: 8 MFGPT timers available
[    0.828339] scsi0 : pata_amd
[    0.831698] scsi1 : pata_amd
[    0.834981] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
[    0.841987] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xff08 irq 15
[    0.849772] via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
[    0.862405] eth0: VIA Rhine III (Management Adapter) at 0xe0000000, 00:0d:b9:1d:99:94, IRQ 10.
[    0.871775] eth0: MII PHY found at address 1, status 0x7869 advertising 05e1 Link c5e1.
[    0.885630] eth1: VIA Rhine III (Management Adapter) at 0xe0040000, 00:0d:b9:1d:99:95, IRQ 11.
[    0.894999] eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
[    0.908855] eth2: VIA Rhine III (Management Adapter) at 0xe0080000, 00:0d:b9:1d:99:96, IRQ 15.
[    0.918221] eth2: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
[    0.926441] tun: Universal TUN/TAP device driver, 1.6
[    0.931531] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.937911] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.944601] ehci_hcd 0000:00:0f.5: EHCI Host Controller
[    0.949883] ehci_hcd 0000:00:0f.5: new USB bus registered, assigned bus number 1
[    0.980136] ehci_hcd 0000:00:0f.5: irq 12, io mem 0xefffd000
[    0.996062] ehci_hcd 0000:00:0f.5: USB 2.0 started, EHCI 1.00
[    1.001953] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.008788] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.016052] usb usb1: Product: EHCI Host Controller
[    1.020962] usb usb1: Manufacturer: Linux 2.6.37 ehci_hcd
[    1.026397] usb usb1: SerialNumber: 0000:00:0f.5
[    1.032066] hub 1-0:1.0: USB hub found
[    1.035837] hub 1-0:1.0: 4 ports detected
[    1.040648] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.046986] ohci_hcd 0000:00:0f.4: OHCI Host Controller
[    1.052272] ohci_hcd 0000:00:0f.4: new USB bus registered, assigned bus number 2
[    1.059785] ohci_hcd 0000:00:0f.4: irq 12, io mem 0xefffe000
[    1.072380] ata1.00: CFA: CF Card, Ver2.34, max UDMA/100
[    1.077738] ata1.00: 7880544 sectors, multi 0: LBA
[    1.082670] ata1.00: limited to UDMA/33 due to 40-wire cable
[    1.096260] ata1.00: serial number mismatch '6EB10703040700582043' != '6EB1p703040700582043'
[    1.104738] ata1.00: revalidation failed (errno=-19)
[    1.109740] ata1.00: limiting speed to UDMA/33:PIO3
[    1.152342] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.159169] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.166428] usb usb2: Product: OHCI Host Controller
[    1.171339] usb usb2: Manufacturer: Linux 2.6.37 ohci_hcd
[    1.176776] usb usb2: SerialNumber: 0000:00:0f.4
[    1.182136] hub 2-0:1.0: USB hub found
[    1.185942] hub 2-0:1.0: 4 ports detected
[    1.190379] Initializing USB Mass Storage driver...
[    1.195528] usbcore: registered new interface driver usb-storage
[    1.201570] USB Mass Storage support registered.
[    1.206436] usbcore: registered new interface driver libusual
[    1.212462] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    1.218890] rtc0: alarms up to one day, 114 bytes nvram
[    1.224262] i2c /dev entries driver
[    1.231316] i2c i2c-0: Unsupported chip (man_id=0x01, chip_id=0x11)
[    1.242730] pci 0000:00:0f.0: registered timer 0
[    1.248249] device-mapper: uevent: version 1.0.3
[    1.253428] device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com
[    1.262370] geode-aes: GEODE AES engine enabled.
[    1.267165] pci 0000:00:0f.0: registered timer 1
[    1.271850] cs5535-clockevt: Registering MFGPT timer as a clock event, using IRQ 7
[    1.279721] Netfilter messages via NETLINK v0.30.
[    1.283438] TCP cubic registered
[    1.288239] NET: Registered protocol family 17
[    1.292150] Bridge firewalling registered
[    1.296906] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    1.300824] All bugs added by David S. Miller <davem@redhat.com>
[    1.310350] sctp: Hash tables configured (established 8192 bind 16384)
[    6.209775] ata1.00: serial number mismatch '6EB10703040700582043' != '6EB1p703040700582043'
[    6.218324] ata1.00: revalidation failed (errno=-19)
[    6.222235] ata1.00: disabled
[    6.226705] VFS: Cannot open root device "sda2" or unknown-block(0,0)
[    6.230294] Please append a correct "root=" boot option; here are the available partitions:
[    6.241612] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.249974] Pid: 1, comm: swapper Not tainted 2.6.37 #6
[    6.253893] Call Trace:
[    6.257755]  [<c120ccb9>] ? 0xc120ccb9
[    6.261515]  [<c12b4933>] ? 0xc12b4933
[    6.265384]  [<c12b49e9>] ? 0xc12b49e9
[    6.269140]  [<c12b4198>] ? 0xc12b4198
[    6.272979]  [<c12b4b0b>] ? 0xc12b4b0b
[    6.276739]  [<c12b428b>] ? 0xc12b428b
[    6.280608]  [<c1002d96>] ? 0xc1002d96