cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sealltech
New Contributor

BSC-600 RTC Error

Ok so I have a BSC-600 that is booting to an error with the RTC. does anyone know the arguments for the command rtc wr to set it properly please help thanks!

0 Kudos
12 Replies
Anonymous
Not applicable

Re: BSC-600 RTC Error

@sealtech,

Would it be possible to paste the boot output from your console session?

Thanks,

Erik

Re: BSC-600 RTC Error

Thank you so much for your quick reply! Here is the log. Thank you for looking at it.

John Seall

Seall Technical Inc.

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.03.14 10:49:23 =~=~=~=~=~=~=~=~=~=~=~=

CFE version 1.2.5 for BSC1150 (64bit,SP,BE,MIPS)

Build Date(BSC.1.0.5): Fri May 18 11:30:36 EDT 2007 (mmaxim@calibos.eng.bluesocket.com)

Copyright (C) 2000,2001,2002,2003,2004,2005 Broadcom Corporation.

Initializing Arena.

Initializing PCI. [normal]

PCI bus 0 slot 0/0: SiByte, Inc. BCM1250 PCI Host Bridge (host bridge, rev 0x03)

PCI bus 0 slot 9/0: Broadcom product 0x165d (ethernet network)

PCI bus 0 slot 9/0: Ethernet PCI  NIC :bus=0 device=9 Interrupt mapped to pin=1

Initializing Devices.

sbeth: found phy 1, vendor 000818 part 0C

sbeth: found phy 2, vendor 000818 part 0C

CPU: 1125H A4

L2 Cache: 256KB

SysCfg: 00800000305A0810 [PLL_DIV: 16, IOB0_DIV: CPUCLK/4, IOB1_DIV: CPUCLK/3]

Board Hardware REV  3

NIC MAC addr = 2 AC 8C

Error reading real time clock

CPU type 0x40103: 800MHz

Total memory: 0x20000000 bytes (512MB)

Total memory used by CFE:  0x8FE6C000 - 0x8FFFF620 (1652256)

Initialized Data:          0x8FEF66D0 - 0x8FEFCFC0 (26864)

BSS Area:                  0x8FEFCFC0 - 0x8FEFD620 (1632)

Local Heap:                0x8FEFD620 - 0x8FFFD620 (1048576)

Stack Area:                0x8FFFD620 - 0x8FFFF620 (8192)

Text (code) segment:       0x8FE6C000 - 0x8FEF5D90 (564624)

Boot area (physical):      0x0FE2B000 - 0x0FE6B000

Relocation Factor:         I:F026C000 - D:F026C000

... XPRINT1 BXM=0 BXA=1 BXB=0 BCOND=0 BSYS=A

xxxx BXM=0 BXA=1 BXB=0 BCOND=0 BSYS=A

XPRINT2 BXM=0 BXA=2 BXB=0 BCOND=0 BSYS=A

Loader:elf Filesys:raw Dev:flash3 File:/vmlinuz Options:(null)

Loading: 0xffffffff80100000/2490501 0xffffffff80360085/139163 Entry at 0x80346000

Starting program at 0x80346000

Broadcom SiByte BCM1125H A4 @ 800 MHz (SB1 rev 3)

Board type: SiByte BCM91250A (SWARM)

Linux version 2.6.14.7-mips (build@railgun) (gcc version 3.4.4 (Wind River Linux)) #1 Wed Nov 7 00:44:48 EST 2007

CPU revision is: 00040103

FPU revision is: 000f0103

This kernel optimized for board runs with CFE

Determined physical RAM map:

memory: 0fe6be00 @ 00000000 (usable)

memory: 0ffffe00 @ 80000000 (usable)

1791MB HIGHMEM available.

Built 1 zonelists

Kernel command line: BSYS=A root=31:06 rw rootfstype=jffs2

Primary instruction cache 32kB, 4-way, linesize 32 bytes.

Primary data cache 32kB, 4-way, linesize 32 bytes.

Synthesized TLB refill handler (24 instructions).

Synthesized TLB load handler fastpath (36 instructions).

Synthesized TLB store handler fastpath (31 instructions).

Synthesized TLB modify handler fastpath (30 instructions).

PID hash table entries: 4096 (order: 12, 65536 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 498832k/260524k available (1919k kernel code, 22896k reserved, 405k data, 108k init, 262140k highmem)

Mount-cache hash table entries: 512

Checking for 'wait' instruction...  unavailable.

NET: Registered protocol family 16

highmem bounce pool size: 64 pages

JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.

Initializing Cryptographic API

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

loop: loaded (max 8 devices)

eth0: enabling TCP rcv checksum

eth0: SiByte Ethernet at 0x10064000, address: 00:19:92:02:AC:8A

eth1: enabling TCP rcv checksum

eth1: SiByte Ethernet at 0x10065000, address: 00:19:92:02:AC:8B

IMQ starting with 2 devices...

IMQ driver loaded successfully.

  Hooking IMQ before NAT on PREROUTING.

  Hooking IMQ after NAT on POSTROUTING.

bsc1150:Probing 0x10090000 at 0x01000000

bsc1150 Flash Bank #0: Found 1 x16 devices at 0x0 in 8-bit bank

Amd/Fujitsu Extended Query Table at 0x0040

bsc1150 Flash Bank #0: CFI does not contain boot bank location. Assuming top.

number of CFI chips: 1

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

bsc1150:Probing 0x11090000 at 0x04000000

bsc1150 Flash Bank #1: Found 1 x16 devices at 0x0 in 8-bit bank

Amd/Fujitsu Extended Query Table at 0x0040

bsc1150 Flash Bank #1: CFI does not contain boot bank location. Assuming top.

number of CFI chips: 1

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

bsc1150:Probing 0x15090000 at 0x04000000

bsc1150 Flash Bank #2: Found 1 x16 devices at 0x0 in 8-bit bank

Amd/Fujitsu Extended Query Table at 0x0040

bsc1150 Flash Bank #2: CFI does not contain boot bank location. Assuming top.

number of CFI chips: 1

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

bsc1150:Probing 0x30090000 at 0x04000000

bsc1150 Flash Bank #3: Found 1 x16 devices at 0x0 in 8-bit bank

Amd/Fujitsu Extended Query Table at 0x0040

bsc1150 Flash Bank #3: CFI does not contain boot bank location. Assuming top.

number of CFI chips: 1

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

bsc1150:Probing 0x34090000 at 0x04000000

bsc1150 Flash Bank #4: Found 1 x16 devices at 0x0 in 8-bit bank

Amd/Fujitsu Extended Query Table at 0x0040

bsc1150 Flash Bank #4: CFI does not contain boot bank location. Assuming top.

number of CFI chips: 1

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

bsc1150:Using CFE Main partition definition

Creating 6 MTD partitions on "bsc1150 Flash Bank #0":

0x00000000-0x00100000 : "CFE Main"

0x00100000-0x00200000 : "CFE UPgrade"

0x00200000-0x00400000 : "MFG Kernel"

0x00400000-0x00600000 : "Kernel A"

0x00600000-0x00800000 : "Kernel B"

0x00800000-0x01000000 : "MFG RootFS"

bsc1150:Using jffs partition definition

Creating 1 MTD partitions on "bsc1150 Flash Bank #1":

0x00000000-0x04000000 : "jffs"

bsc1150:Using jffs partition definition

Creating 1 MTD partitions on "bsc1150 Flash Bank #2":

0x00000000-0x04000000 : "jffs"

bsc1150:Using jffs partition definition

Creating 1 MTD partitions on "bsc1150 Flash Bank #3":

0x00000000-0x04000000 : "jffs"

bsc1150:Using jffs partition definition

Creating 1 MTD partitions on "bsc1150 Flash Bank #4":

0x00000000-0x04000000 : "jffs"

block2mtd: version $Revision: 1.28 $

NET: Registered protocol family 2

IP route cache hash table entries: 131072 (order: 7, 524288 bytes)

TCP established hash table entries: 524288 (order: 9, 2097152 bytes)

TCP bind hash table entries: 65536 (order: 6, 262144 bytes)

TCP: Hash tables configured (established 524288 bind 65536)

TCP reno registered

ip_conntrack version 2.3 (8192 buckets, 65536 max) - 252 bytes per conntrack

ip_tables: (C) 2000-2002 Netfilter core team

TCP bic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>

VFS: Mounted root (jffs2 filesystem).

Freeing unused kernel memory: 108k freed

INIT: version 2.86 booting

[1;36mMounting kernel-based file systems: [0;39m /proc [0;39m /sys [0;39m

[1A [0G [72G [1;34m[ [1;32m  OK   [1;34m] [0;39m

Populating /dev with device nodes...

[1A [0G [72G [1;34m[ [1;32m  OK   [1;34m] [0;39m

Remounting root file system in read-write mode...

[1A [0G [72G [1;34m[ [1;32m  OK   [1;34m] [0;39m

Recording existing mounts in /etc/mtab...

[1A [0G [72G [1;34m[ [1;32m  OK   [1;34m] [0;39m

Mounting remaining file systems...

[1A [0G [72G [1;34m[ [1;32m  OK   [1;34m] [0;39m

[1;36mCleaning file systems: [0;39m /var/lock [0;39m /var/run

[1A [0G [72G [1;34m[ [1;32m  OK   [1;34m] [0;39m

i2c /dev entries driver

i2c-algo-sibyte.o: i2c SiByte algorithm module

i2c-swarm.o: i2c SMBus adapter module for SiByte board

Generic RTC Driver v1.07

Setting system clock...

CPU 0 Unable to handle kernel paging request at virtual address 00000008, epc == c1190030, ra == c11850a0

Oops in arch/mips/mm/fault.c::do_page_fault, line 172[#1]:

Cpu 0

$ 0   : 00000000 30001f00 c1190000 00000001

$ 4   : 00000000 00000000 c11a0000 c11a0000

$ 8   : 00000000 ffffffe7 20007003 fffffff8

$12   : 00000001 2aaff468 00004ebc 00404784

$16   : 8012b9b0 c1180000 c1190028 c1180000

$20   : 0000000a 00000000 00000000 00000000

$24   : 00000010 2ac17b5c                 

$28   : 8fb98000 8fb99d78 00000000 c11850a0

Hi    : 000002c9

Lo    : 00001c1d

epc   : c1190030 i2c_smbus_read_byte_data+0x8/0x60 [i2c_core]     Not tainted

ra    : c11850a0 m41t00_get_rtc_time+0xa0/0x320 [m41t00]

Status: 30001f03    KERNEL EXL IE

Cause : 00808008

BadVA : 00000008

PrId  : 00040103

Modules linked in: m41t00 genrtc i2c_sibyte i2c_algo_sibyte lm90 eeprom hwmon i2c_dev i2c_core

Process hwclock (pid: 3647, threadinfo=8fb98000, task=8fb1c000)

Stack : 803196c8 80319814 00000000 00000000 8fe619c0 8f495558 0028e4a6 00000003

        8fd17005 8014b364 8fb99ea8 8fb99ea8 8fb99dd8 8fd17000 00002000 00000004

        00000000 8fb99ea8 c11850a0 80178e98 00000000 801725c4 2ac0f690 8fb39ee4

        8fd004d0 8fe612a0 00000000 00000000 00000000 00000000 00000000 00000000

        00000000 00002000 8012b9b0 c11a1fec 00000001 8fb95a40 7f9cc858 7f9cca08

        ...

Call Trace:

[<8014b364>] __alloc_pages+0x150/0x4e0

[<c11850a0>] m41t00_get_rtc_time+0xa0/0x320 [m41t00]

[<80178e98>] link_path_walk+0xcc/0x1fc

[<801725c4>] cdev_get+0x48/0xa8

[<8012b9b0>] init_timer+0x0/0x20

[<c11a084c>] gen_rtc_ioctl+0x3fc/0x490 [genrtc]

[<80172748>] chrdev_open+0xc0/0x17c

[<801726d8>] chrdev_open+0x50/0x17c

[<80179c7c>] open_namei+0x178/0x82c

[<80179ba0>] open_namei+0x9c/0x82c

[<803588f0>] blk_dev_init+0x90/0xd8

[<80165c00>] __dentry_open+0x1e8/0x27c

[<80165d48>] filp_open+0xb4/0xd4

[<8015d024>] do_brk+0x254/0x2b4

[<8015cfc0>] do_brk+0x1f0/0x2b4

[<8017d6f4>] do_ioctl+0x54/0x90

[<8017d930>] vfs_ioctl+0x200/0x3a4

[<80165f30>] get_unused_fd+0x15c/0x218

[<8017db24>] sys_ioctl+0x50/0x9c

[<80108d24>] do_ri+0x40/0x128

[<801661e4>] filp_close+0x48/0xa8

[<801661dc>] filp_close+0x40/0xa8

[<8010a5a0>] stack_done+0x20/0x3c

[<80102cc8>] handle_ri_int+0x20/0x38

[<801f4bc0>] memset_partial+0x44/0x6c

Code: 27bd0050  27bdffb0  afbf0048 <8c820008> 94830004  94860002  00402021  24020002  30a800ff

/etc/rc.d/rcsysinit.d

INIT: Entering runlevel: 3

Setting kernel variables.

net.ipv4.ip_forward = 1

vm.overcommit_memory = 0

vm.page-cluster = 5

fs.file-max = 8192

kernel.shmall = 134217728

kernel.shmmax = 134217728

net.core.wmem_max = 2048000

net.core.wmem_default = 2048000

net.ipv4.icmp_echo_ignore_all = 0

net.ipv4.icmp_echo_ignore_broadcasts = 1

net.ipv4.conf.all.accept_source_route = 0

net.ipv4.conf.default.accept_source_route = 0

net.ipv4.conf.all.accept_redirects = 0

net.ipv4.conf.default.accept_redirects = 0

net.ipv4.icmp_ignore_bogus_error_responses = 1

net.ipv4.conf.all.rp_filter = 2

net.ipv4.conf.default.rp_filter = 2

net.ipv4.conf.all.log_martians = 1

net.ipv4.conf.default.log_martians = 1

Starting blue: on_boot56

MODULES_PATH=/lib/modules/2.6.14.7-mips/

arch=mips

KERNELVERSION=2.6

                 syslogd: /dev/shm/socks/Log2MySql: No such file or directory

Building optimozo script

Ready for Optimizations

Fri Dec 31 19:00:57 EST 1999

Real time clock uninitialized - setting date to Apr 1, 2007

Sun Apr  1 00:00:00 EDT 2007

Anonymous
Not applicable

Re: BSC-600 RTC Error

Thanks, John. You can set the time in the boot loader by following the steps outlined here:

Give that a try and let us know how you make out.

Best,

Erik

Re: BSC-600 RTC Error

Okay tired the steps provided here is the log on that. Thanks!

John Seall

Seall Technical Inc.

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.03.14 11:06:49 =~=~=~=~=~=~=~=~=~=~=~=

CFE version 1.2.5 for BSC1150 (64bit,SP,BE,MIPS)

Build Date(BSC.1.0.5): Fri May 18 11:30:36 EDT 2007 (mmaxim@calibos.eng.bluesocket.com)

Copyright (C) 2000,2001,2002,2003,2004,2005 Broadcom Corporation.

Initializing Arena.

Initializing PCI. [normal]

PCI bus 0 slot 0/0: SiByte, Inc. BCM1250 PCI Host Bridge (host bridge, rev 0x03)

PCI bus 0 slot 9/0: Broadcom product 0x165d (ethernet network)

PCI bus 0 slot 9/0: Ethernet PCI  NIC :bus=0 device=9 Interrupt mapped to pin=1

Initializing Devices.

sbeth: found phy 1, vendor 000818 part 0C

sbeth: found phy 2, vendor 000818 part 0C

CPU: 1125H A4

L2 Cache: 256KB

SysCfg: 00800000305A0810 [PLL_DIV: 16, IOB0_DIV: CPUCLK/4, IOB1_DIV: CPUCLK/3]

Board Hardware REV  3

NIC MAC addr = 2 AC 8C

Error reading real time clock

CPU type 0x40103: 800MHz

Total memory: 0x20000000 bytes (512MB)

Total memory used by CFE:  0x8FE6C000 - 0x8FFFF620 (1652256)

Initialized Data:          0x8FEF66D0 - 0x8FEFCFC0 (26864)

BSS Area:                  0x8FEFCFC0 - 0x8FEFD620 (1632)

Local Heap:                0x8FEFD620 - 0x8FFFD620 (1048576)

Stack Area:                0x8FFFD620 - 0x8FFFF620 (8192)

Text (code) segment:       0x8FE6C000 - 0x8FEF5D90 (564624)

Boot area (physical):      0x0FE2B000 - 0x0FE6B000

Relocation Factor:         I:F026C000 - D:F026C000

.

XPRINT1 BXM=0 BXA=3 BXB=0 BCOND=0 BSYS=A

xxxx BXM=0 BXA=3 BXB=0 BCOND=0 BSYS=A

XPRINT2 BXM=1 BXA=3 BXB=0 BCOND=0 BSYS=M

Automatic startup canceled via Ctrl-C

CFE> ^C

CFE> ^C

CFE> show time

Error reading real time clock

*** command status = -36

CFE> set date 05/03/14/2013

Error writing to serial eeprom

*** command status = -36

CFE>

Anonymous
Not applicable

Re: BSC-600 RTC Error

John, are you able to get into the web-based administrative GUI, or is that the fundamental problem? I ask because you can set an NTP time server there which keeps the time on the box up to date.

Thanks,

Erik

Re: BSC-600 RTC Error

That is the problem it will never get past the optimized mode on the screen the static assigned ip address never shows up can ping cant see it on the network and cant get into the web GUI

Re: BSC-600 RTC Error

*cant ping cant see** sorry typo

Anonymous
Not applicable

Re: BSC-600 RTC Error

Got it. Thanks, John. So, I would suggest breaking the boot sequence and attempting to load the alternate partition. The instructions for that can be found here:

See if those instructions can get you up and running, and then you can set the NTP server in the GUI.

Thanks again,

Erik

Re: BSC-600 RTC Error

Did as the post suggested and swapped to partition B still having a hang in the "Bluesocket boot optimized mode". There are some commands int the CFE boot that are of interest :

rtc wr              write to real time clock register

rtc rd              read register from real time clock

rtc start           Start the real time clock oscillator

rtc stop            Stop the real time clock oscillator

The "trc wr" command seems like it would be the fix for this problem since it is where it is hanging regarding the RTC according the the console logs I am just unsure of its syntax usage to get it to understand the correct time format. Have any past experience with these sets of commands ? There is not alot of data on this on Goolge with the exact usage for this model.

Re: BSC-600 RTC Error

Also did a Diag on the console : Here is what it returned

CFE>  [Krun diags

Executing manufacturing diagnostics

PASSED TEMP test in diags:

Error reading real time clock

FAILED RTC test in diags:

BLUE_DIAG_RTC_ERROR

Failed manufacturing diagnostics

*** command status = -1

Anonymous
Not applicable

Re: BSC-600 RTC Error

Hi John, I'll leave the RTC commands to others that may be more knowledgeable on the subject. However, in your previous console output I see "Error reading real time clock." It is likely that the Hardware Clock is non-functioning. If that is the case, and you are unable to boot either partition (please keep in mind that the 6/1200 does not tell you what partition you are in when in the boot loader, so it is advisable to break boot and try both A and B partitions), it would not be possible to set the time in the CFE boot loader. If you exhaust these suggestions and don't receive any other helpful posts, you may wish to contact ADTRAN support via one of the following methods to see what available options you may have:

Web:

Contact Options

Email:

support@adtran.com

Phone:

Toll-free: 888-4ADTRAN

Direct: 256-963-8716

Thanks,

Erik

Anonymous
Not applicable

Re: BSC-600 RTC Error

I went ahead and flagged this post as “Assumed Answered.” If any of the responses on this thread assisted you, please mark them as either Correct or Helpful answers with the applicable buttons. This will make them visible and help other members of the community find solutions more easily as well as award points to the users that helped you. If you still need assistance, I would be more than happy to continue working with you on this - just let me know in a reply.