Outils pour utilisateurs

Outils du site


Panneau latéral

nas:dockstar:amelioration:ajout_rtc

Ceci est une ancienne révision du document !


En suivant pas mal d'information dont ce lien, j'ai ajouté la RTC au DockStar.

Il n'y a pas vraiment d'utilité puisque le DockStar sera continuellement connecté à Internet mais c'est pour la bidouille.

Avant modification

Je ne mettrais pas de photo avant modification puisqu'il s'agit d'un DockStar tout ce qu'il y a de classique.
Au démarrage, j'ai le log suivant :

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.3.8 (psolyca@Inspiron) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Jun 16 19:33:52 CEST 2012
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2
[    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] Memory: 128MB = 128MB total
[    0.000000] Memory: 126860k/126860k available, 4212k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc02b1000   (2724 kB)
[    0.000000]       .init : 0xc02b1000 - 0xc02cf000   ( 120 kB)
[    0.000000]       .data : 0xc02d0000 - 0xc02ec9e0   ( 115 kB)
[    0.000000]        .bss : 0xc02eca04 - 0xc02f9918   (  52 kB)
[    0.000000] NR_IRQS:114
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: orion_gpio0
[    0.000000] gpiochip_add: registered GPIOs 32 to 49 on device: orion_gpio1
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    1.181421] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    1.271414] pid_max: default: 32768 minimum: 301
[    1.271533] Mount-cache hash table entries: 512
[    1.271786] CPU: Testing write buffer coherency: ok
[    1.271988] Setting up static identity map for 0x258140 - 0x25817c
[    1.273271] NET: Registered protocol family 16
[    1.274243] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    1.274257] Feroceon L2: Cache support initialised.
[    1.280523] bio: create slab <bio-0> at 0
[    1.281466] SCSI subsystem initialized
[    1.282022] usbcore: registered new interface driver usbfs
[    1.282160] usbcore: registered new interface driver hub
[    1.282318] usbcore: registered new device driver usb
[    1.283400] Switching to clocksource orion_clocksource
[    1.284957] NET: Registered protocol family 2
[    1.285088] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.285317] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    1.285416] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    1.285469] TCP: Hash tables configured (established 4096 bind 4096)
[    1.285479] TCP reno registered
[    1.285491] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.285514] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.285686] NET: Registered protocol family 1
[    1.287155] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.287168] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.287503] msgmni has been set to 247
[    1.287533] io scheduler noop registered
[    1.287542] io scheduler deadline registered (default)
[    1.355554] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.376376] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    1.705671] console [ttyS0] enabled
[    1.710574] ONFI flash detected
[    1.713841] ONFI param page 0 valid
[    1.717345] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD)
[    1.725053] Scanning device for bad blocks
[    1.817408] Bad eraseblock 1188 at 0x000009480000
[    1.886064] Creating 3 MTD partitions on "orion_nand":
[    1.891230] 0x000000000000-0x000000100000 : "u-boot"
[    1.897122] 0x000000100000-0x000000500000 : "uImage"
[    1.902943] 0x000000500000-0x000010000000 : "root"
[    1.908951] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.915931] mv643xx_eth smi: probed
[    1.921313] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address XX:XX:XX:XX:XX:XX
[    1.930287] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.936901] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    1.942203] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    1.973444] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    1.993431] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    1.999961] hub 1-0:1.0: USB hub found
[    2.003759] hub 1-0:1.0: 1 port detected
[    2.008083] Initializing USB Mass Storage driver...
[    2.013153] usbcore: registered new interface driver usb-storage
[    2.019199] USB Mass Storage support registered.
[    2.323435] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.475457] hub 1-1:1.0: USB hub found
[    2.479529] hub 1-1:1.0: 4 ports detected
[    2.763664] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    2.877249] scsi0 : usb-storage 1-1.2:1.0
[    3.033429] rtc-mv rtc-mv: internal RTC not ticking
[    3.038615] cpuidle: using governor ladder
[    3.043647] TCP westwood registered
[    3.047150] NET: Registered protocol family 17
[    3.051828] 8021q: 802.1Q VLAN Support v1.8
[    3.056174] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    3.062813] Waiting 10sec before mounting root device...
[    3.874494] scsi 0:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 0 CCS
[    3.884689] sd 0:0:0:0: [sda] 7834944 512-byte logical blocks: (4.01 GB/3.73 GiB)
[    3.892999] sd 0:0:0:0: [sda] Write Protect is off
[    3.898297] sd 0:0:0:0: [sda] No Caching mode page present
[    3.903824] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    3.912796] sd 0:0:0:0: [sda] No Caching mode page present
[    3.918327] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    3.925461]  sda: sda1 sda2
[    3.930672] sd 0:0:0:0: [sda] No Caching mode page present
[    3.936206] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    3.942328] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   13.074683] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   13.092822] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[   13.099947] VFS: Mounted root (ext2 filesystem) on device 8:1.
[   13.106210] Freeing init memory: 120K
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[   17.357677] EXT4-fs (sda1): re-mounted. Opts: (null)
- init -

Please press Enter to activate this console. [   17.604372] loop: module loaded
[   17.632887] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.704670] nf_conntrack version 0.5.0 (1984 buckets, 7936 max)
[   17.808967] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   17.823012] uhci_hcd: USB Universal Host Controller Interface driver
[   17.836775] usbcore: registered new interface driver ums-alauda
[   17.849416] usbcore: registered new interface driver ums-cypress
[   17.862392] usbcore: registered new interface driver ums-datafab
[   17.875281] usbcore: registered new interface driver ums-freecom
[   17.888383] usbcore: registered new interface driver ums-isd200
[   17.901085] usbcore: registered new interface driver ums-jumpshot
[   17.913939] usbcore: registered new interface driver ums-karma
[   17.926967] usbcore: registered new interface driver ums-sddr09
[   17.940024] usbcore: registered new interface driver ums-sddr55
[   17.953040] usbcore: registered new interface driver ums-usbat
[   17.967133] sd 0:0:0:0: Attached scsi generic sg0 type 0



BusyBox v1.19.4 (2012-06-16 19:13:10 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (Bleeding Edge, r32388)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/#

Après modification

Ne voulant pas installer directement sur le DockStar la modification, j'ai tout transféré sur une “perfboard” que j'ai ensuite soudée sur le DockStar.




Pour la soudure des points RTC_XIN et RTC_XOUT, j'ai perdu un peu la piste en chauffant trop le circuit.
En grattant un peu la piste, j'ai pu souder correctement.
Le fait est qu'au début, la carte étant libre, les fils bougeaient et mettaient tout en l'air.
La “perfboard” soudée sur le circuit imprimé du DockStar, les fils ne bougent plus et les soudures tiennent.

Le log au démarrage :

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.3.8 (psolyca@Inspiron) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Jun 16 19:33:52 CEST 2012
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2
[    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] Memory: 128MB = 128MB total
[    0.000000] Memory: 126860k/126860k available, 4212k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc02b1000   (2724 kB)
[    0.000000]       .init : 0xc02b1000 - 0xc02cf000   ( 120 kB)
[    0.000000]       .data : 0xc02d0000 - 0xc02ec9e0   ( 115 kB)
[    0.000000]        .bss : 0xc02eca04 - 0xc02f9918   (  52 kB)
[    0.000000] NR_IRQS:114
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: orion_gpio0
[    0.000000] gpiochip_add: registered GPIOs 32 to 49 on device: orion_gpio1
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    4.441968] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    4.531961] pid_max: default: 32768 minimum: 301
[    4.532082] Mount-cache hash table entries: 512
[    4.532333] CPU: Testing write buffer coherency: ok
[    4.532534] Setting up static identity map for 0x258140 - 0x25817c
[    4.533819] NET: Registered protocol family 16
[    4.534786] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    4.534800] Feroceon L2: Cache support initialised.
[    4.541057] bio: create slab <bio-0> at 0
[    4.541995] SCSI subsystem initialized
[    4.542557] usbcore: registered new interface driver usbfs
[    4.542694] usbcore: registered new interface driver hub
[    4.542851] usbcore: registered new device driver usb
[    4.543935] Switching to clocksource orion_clocksource
[    4.545493] NET: Registered protocol family 2
[    4.545622] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    4.545852] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    4.545952] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    4.546005] TCP: Hash tables configured (established 4096 bind 4096)
[    4.546014] TCP reno registered
[    4.546027] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    4.546049] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    4.546221] NET: Registered protocol family 1
[    4.547688] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    4.547702] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    4.548038] msgmni has been set to 247
[    4.548068] io scheduler noop registered
[    4.548077] io scheduler deadline registered (default)
[    4.616125] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.636941] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    4.966236] console [ttyS0] enabled
[    4.971141] ONFI flash detected
[    4.974406] ONFI param page 0 valid
[    4.977911] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD)
[    4.985618] Scanning device for bad blocks
[    5.077975] Bad eraseblock 1188 at 0x000009480000
[    5.146637] Creating 3 MTD partitions on "orion_nand":
[    5.151804] 0x000000000000-0x000000100000 : "u-boot"
[    5.157693] 0x000000100000-0x000000500000 : "uImage"
[    5.163517] 0x000000500000-0x000010000000 : "root"
[    5.169525] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.176507] mv643xx_eth smi: probed
[    5.181885] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address XX:XX:XX:XX:XX:XX
[    5.190862] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.197475] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    5.202775] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    5.233978] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    5.253965] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    5.260489] hub 1-0:1.0: USB hub found
[    5.264282] hub 1-0:1.0: 1 port detected
[    5.268602] Initializing USB Mass Storage driver...
[    5.273675] usbcore: registered new interface driver usb-storage
[    5.279729] USB Mass Storage support registered.
[    5.284814] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[    5.290841] cpuidle: using governor ladder
[    5.295874] TCP westwood registered
[    5.299379] NET: Registered protocol family 17
[    5.304080] 8021q: 802.1Q VLAN Support v1.8
[    5.308428] rtc-mv rtc-mv: setting system clock to 2000-01-01 00:05:56 UTC (946685156)
[    5.316746] Waiting 10sec before mounting root device...
[    5.583971] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    5.736011] hub 1-1:1.0: USB hub found
[    5.740074] hub 1-1:1.0: 4 ports detected
[    6.024208] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    6.137797] scsi0 : usb-storage 1-1.2:1.0
[    7.135036] scsi 0:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 0 CCS
[    7.145232] sd 0:0:0:0: [sda] 7834944 512-byte logical blocks: (4.01 GB/3.73 GiB)
[    7.153542] sd 0:0:0:0: [sda] Write Protect is off
[    7.158841] sd 0:0:0:0: [sda] No Caching mode page present
[    7.164363] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.173340] sd 0:0:0:0: [sda] No Caching mode page present
[    7.178866] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.186005]  sda: sda1 sda2
[    7.191215] sd 0:0:0:0: [sda] No Caching mode page present
[    7.196746] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.202867] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   15.325225] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   15.341848] EXT4-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
[   15.351992] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[   15.359115] VFS: Mounted root (ext2 filesystem) on device 8:1.
[   15.365375] Freeing init memory: 120K
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[   19.563596] EXT4-fs (sda1): re-mounted. Opts: (null)
- init -

Please press Enter to activate this console. [   19.810606] loop: module loaded
[   19.838546] ip_tables: (C) 2000-2006 Netfilter Core Team
[   19.910687] nf_conntrack version 0.5.0 (1984 buckets, 7936 max)
[   20.015120] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   20.029202] uhci_hcd: USB Universal Host Controller Interface driver
[   20.042941] usbcore: registered new interface driver ums-alauda
[   20.055724] usbcore: registered new interface driver ums-cypress
[   20.068796] usbcore: registered new interface driver ums-datafab
[   20.081580] usbcore: registered new interface driver ums-freecom
[   20.094685] usbcore: registered new interface driver ums-isd200
[   20.107498] usbcore: registered new interface driver ums-jumpshot
[   20.120100] usbcore: registered new interface driver ums-karma
[   20.133020] usbcore: registered new interface driver ums-sddr09
[   20.146069] usbcore: registered new interface driver ums-sddr55
[   20.159075] usbcore: registered new interface driver ums-usbat
[   20.173162] sd 0:0:0:0: Attached scsi generic sg0 type 0



BusyBox v1.19.4 (2012-06-16 19:13:10 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (Bleeding Edge, r32388)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/#

Où l'on voit bien la différence.
Avant :

[    3.033429] rtc-mv rtc-mv: internal RTC not ticking
[    3.056174] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

Après :

[    5.284814] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[    5.308428] rtc-mv rtc-mv: setting system clock to 2000-01-01 00:05:56 UTC (946685156)


Étape suivante : Ajouter une carte microSD

nas/dockstar/amelioration/ajout_rtc.1339956109.txt.gz · Dernière modification: 14 /11/2016 13:12 (modification externe)