Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ratin

Pages: [1] 2
1
Cubieboard v3 Hardware (Cubietruck) / gmac driver
« on: April 07, 2015, 04:52:06 pm »
Hi I am using the 3.2 kernel and the stock driver unloads due to some error. The same kernel works fine on cubieboard2. Was wondering is the emac on the CubieTruck different than the one from Cubieboard2?



2
Cubieboard v2 OS (A20 Based) / tty1 / ttyS0 respawning too fast
« on: June 17, 2014, 12:46:20 pm »
I have been seeing this annoying message and consequently init process hanging for goodd 2/3 minutes.  I disabled all but the ttys0, tty1 and tty2 and disabled the auto-login. So currently a "Permission Denied" message is printed on the console for tty1 and normal login is enabled via tty2. However during boot, it throws those respawning / terminated messages. Has anybody else experienced it? I wonder it has to do with disabling the auto-login.

3
Cubieboard v2 Hardware (A20 Based) / Cubieboard2 boot lockup
« on: June 05, 2014, 08:39:53 pm »
A few times, when I power cycle the unit  while booting from SD, it gets stuck with just the red LED. Has anybody else seen this problem? It seems to get stuck at dramc_init function. I looked at the code, there are a few  while loops like this:

wonder if anything could be done to avoid a boot lockup condition..

sdelay(0x10);
while (readl(&dram->ccr) & DRAM_CCR_INIT);
...
/* reset external DRAM */
setbits_le32(&dram->ccr, DRAM_CCR_INIT);
while (readl(&dram->ccr) & DRAM_CCR_INIT);
 
etc

4
Tried to add the ac power loss event from the provided example (part of acpid package) but it didn't work. Is there additional kernel support needed for this to happen?

Thanks

Ratin

5
Had a cubie2 board that was running fine until a power outage, it required 4 reboots and finally the board is up and running, booted from SD. I know without serial debugger its hard to debug, but at the time I didn't have one connected. Any guess as to why it would require some random amount of reboots and finally got fixed? i would guess the android boot loader was in a bad state and did a recovery?

6
Cubieboard v2 OS (A20 Based) / Nand bootloader corruption on CB2
« on: April 14, 2014, 06:02:31 pm »
I am trying to boot a cubie2 from nand which at some point got corrupted.  I get a "fs init failed" message, as following. Is it because the mbr is fine, but partition table got corrupted on the Nand? I did try to recover the nand MBR from a file called /nand_mbr.backup, also replaced all the boot files in nad1 but nothing seems to work. What am I missing?



÷HELLO! BOOT0 is starting!

boot0 version : 2.0.0˜

read dram para.

dram driver version: 1.15

dram size =1024MB

0x00000088

super_standby_flag = 0

Succeed in openin?ûlÛ™ó…Ï¡û

block from 2 to 6

deal block 2

Succeed in reading Boot1 file head.

The size of Boot1 is 0x00068000.

|¼Y2ÿÛ°.×K—‘ƒin 0x00000000 of block 2 is perfect.

Check is correct.

Ready to disable icache.

Succeed in loading Boot1.

Jump to Boot1.

[       0.150] boot1 version : 2.0.0

[       0.159] script installed eaûþúïìüƒ‚rŠªÊêpmu type = 3

[       0.161] bat vol = 0 mv

[  °  `0—ÌêX¥ëahb:apb=4:2:2

[       0.178] set dcdc2=1400mv, clock=912M successed

[       0.180] key

[       0.193] no key foundÛ°``rŠÚšî fìØ.
                                            J¹¥Ñs|art

[       0.193] NB1 : enter NFB_Init


[       0.196] NB1 : enter phy init


[       0.199] [NAND] nand driver(b) version: 0x0x00000002, 0x0x00000012, data: 0x2¸q3¸&÷Hh‚r’‚Êêget the good blk ratio from hwscan : 944


[       0.212] NB1 : nand phy init ok


[°ƒ`°°°vš’ÞêNB1 : init ok


[       0.329] flash init finish

[       0.330] mbr magic ootloader 32768 0' 'env 32768 0' 'boot 32768 0' 'system 1048576 2' 'data 1048576 2' 'misc 32768 0' 'vöÿmû²þÿ·3‚::…¡•675360 2' 'private 32768 0' 'databk 524288 0' 'UDISK 4194
304 0'

 is not correct

[       0.349] fs init fail

[       0.351] fs init fail, jump to fel

7
Cubieboard v2 OS (A20 Based) / u-boot Wathdog
« on: April 08, 2014, 06:04:21 pm »
Does anybody here know how the watchdog works , its implemented In the file arch/arm/cpu/armv7/sunxi/watchdog.c fom git repo https://github.com/linux-sunxi/u-boot-sunxi

I see this getting called from net/net.c repeatedly in a for loop , whats the purpose? Can I call this if certain condition does not met?

Thanks

Ratin

8
I think am looking for either a hard coded flag in the Android boot loader code or some other trick, such as toggling an input in one way boot from uSD vs Nand when input not toggled.
 

9
scripts/sunxi-media-create.sh has these:

copyUbootSpl $1 $HWPACKDIR/bootloader/sunxi-spl.bin
copyUboot $1 $HWPACKDIR/bootloader/u-boot.img


but the u-boot-sunxi repo produces   u-boot.bin and  u-boot-sunxi-with-spl.bin

is u-boot-sunxi-with-spl.bin same as sunxi-spl.bin and should be burned into the same location as sunxi-spl.bin ?

10
Cubieboard v2 Images (A20 Based) / u-boot source code
« on: March 12, 2014, 05:58:14 pm »
Hi I need Cubieboard 2 u-boot source for Nand booting compatible with kernel version 3.3.0+.  Where can I find this?

Thanks,

Ratin

11
Cubieboard v2 OS (A20 Based) / Cubie2 deadlocking
« on: January 17, 2014, 04:16:50 pm »
On cubie2, I have been seeing deadlocks on and off , I cant seem to pinpoint what causes it to happen. We run streaming / recording software on this and it runs ok for few days but some boxes has this lockup issues. No info is printed in syslog, dmesg etc. even serial console messages doesnt come thru when sysrq hot keys are pressed. But all the software logs shows normal, system utilization is checked in balance and no memory leaks, etc. Its driving me nuts. I was wondering if anybody seeing this issue.   I am on a slightly older kernel  3.3.0+ and lubuntu 13.04. Anybody has seen this or have any idea to find the culprit?

One thing I am curious about is the CPU freq. reported differently in different times:

somtimes its Average:       
 CPU    wghMHz
Average:        all    538.46
Average:          0    538.46
Average:          1    538.46

and sometimes

13:06:50        CPU    wghMHz
13:06:51        all    866.64
13:06:51          0    866.64
13:06:51          1    866.64

or

13:06:00        CPU    wghMHz
13:06:01        all    757.65
13:06:01          0    757.65
13:06:01          1    757.65

Is this normal? Why are the CPU freqs throttling? I have it open so the CPU is just barely warm to touch.



Normal sar output (when its running normally):

13:06:50        CPU      %usr     %nice      %sys   %iowait    %steal      %irq     %soft    %guest     %idle
13:06:51        all     50.51      0.00     31.31      0.00      0.00      0.00      1.01      0.00     17.17
13:06:51          0     63.92      0.00     27.84      0.00      0.00      0.00      0.00      0.00      8.25
13:06:51          1     37.62      0.00     34.65      0.00      0.00      0.00      1.98      0.00     25.74

13:06:50       proc/s   cswch/s
13:06:51        45.00   2994.00

13:06:50         INTR    intr/s
13:06:51          sum   1979.00
13:06:51            0      0.00
13:06:51            1      0.00
13:06:51            2      0.00
13:06:51            3      0.00
13:06:51            4      0.00
13:06:51            5      0.00
13:06:51            6      0.00
13:06:51            7      0.00
13:06:51            8      0.00
13:06:51            9      0.00
13:06:51           10      0.00
13:06:51           11      0.00
13:06:51           12      0.00
13:06:51           13      0.00
13:06:51           14      0.00
13:06:51           15      0.00
13:06:51           16      0.00
13:06:51           17      0.00
13:06:51           18      0.00
13:06:51           19      0.00
13:06:51           20      0.00
13:06:51           21      0.00
 3:06:51           21      0.00
13:06:51           22      0.00
13:06:51           23      0.00
13:06:51           24      0.00
13:06:51           25      0.00
13:06:51           26      0.00
13:06:51           27      0.00
13:06:51           28      0.00
13:06:51           29   1347.00
13:06:51           30      0.00
13:06:51           31      0.00
13:06:51           32      0.00
13:06:51           33      0.00
13:06:51           34      0.00
13:06:51           35      0.00
13:06:51           36      0.00
13:06:51           37      0.00
13:06:51           38      0.00
13:06:51           39    126.00
13:06:51           40      0.00
13:06:51           41      0.00
13:06:51           42      0.00
13:06:51           43      0.00
13:06:51           44      0.00
13:06:51           45      0.00
13:06:51           46      0.00
13:06:51           74      0.00
13:06:51           75      0.00
13:06:51           76    100.00
13:06:51           77      0.00
13:06:51           78      0.00
13:06:51           79     50.00
13:06:51           80      0.00
13:06:51           81      0.00
13:06:51           82      0.00
13:06:51           83      0.00
13:06:51           84      0.00
13:06:51           85      0.00
13:06:51           86      0.00
13:06:51           87    131.00
13:06:51           88      4.00
13:06:51           89      0.00
13:06:51           90      0.00
13:06:51           91      0.00
13:06:51           92      0.00
13:06:51           93      0.00
13:06:51           94      0.00
13:06:51           95      0.00
13:06:51           96      0.00
13:06:51           97      0.00
13:06:51           98      0.00
13:06:50     pswpin/s pswpout/s
13:06:51         0.00      0.00

13:06:50     pgpgin/s pgpgout/s   fault/s  majflt/s  pgfree/s pgscank/s pgscand/s pgsteal/s    %vmeff
13:06:51        40.00      0.00  13439.00      0.00   4592.00      0.00      0.00      0.00      0.00

13:06:50          tps      rtps      wtps   bread/s   bwrtn/s
13:06:51         4.00      4.00      0.00     80.00      0.00

13:06:50      frmpg/s   bufpg/s   campg/s
13:06:51      -328.00      0.00     38.00

13:06:50    kbmemfree kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit  kbactive   kbinact
13:06:51        17624    980936     98.24     13512    829120    702364     70.34    506284    431248

13:06:50    kbswpfree kbswpused  %swpused  kbswpcad   %swpcad
13:06:51            0         0      0.00         0      0.00

13:06:50    kbhugfree kbhugused  %hugused
13:06:51            0         0      0.00

13:06:50    dentunusd   file-nr  inode-nr    pty-nr
13:06:51        10411      1760     10266         3

13:06:50      runq-sz  plist-sz   ldavg-1   ldavg-5  ldavg-15   blocked
13:06:51            2       184      1.77      1.78      1.80         0

13:06:50          TTY   rcvin/s   xmtin/s framerr/s prtyerr/s     brk/s   ovrun/s
13:06:51            0      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50          DEV       tps  rd_sec/s  wr_sec/s  avgrq-sz  avgqu-sz     await     svctm     %util
13:06:51      dev93-0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51      dev93-8      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51     dev93-16      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51     dev93-24      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51       dev8-0      4.00     80.00      0.00     20.00      0.00      0.00      0.00      0.00

13:06:50        IFACE   rxpck/s   txpck/s    rxkB/s    txkB/s   rxcmp/s   txcmp/s  rxmcst/s
13:06:51         gre0      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51           lo     41.00     41.00      5.08      5.08      0.00      0.00      0.00
13:06:51        tunl0      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51         sit0      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51         eth0    110.00     21.00    122.06      4.56      0.00      0.00      0.00
13:06:51      ip6tnl0      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50        IFACE   rxerr/s   txerr/s    coll/s  rxdrop/s  txdrop/s  txcarr/s  rxfram/s  rxfifo/s  txfifo/s
13:06:51         gre0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51           lo      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51        tunl0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51         sit0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
13:06:51      ip6tnl0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50       call/s retrans/s    read/s   write/s  access/s  getatt/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00

13:06:50      scall/s badcall/s  packet/s     udp/s     tcp/s     hit/s    miss/s   sread/s  swrite/s saccess/s sgetatt/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50       totsck    tcpsck    udpsck    rawsck   ip-frag    tcp-tw
13:06:51          160        33        14         0         0       177

13:06:50       irec/s  fwddgm/s    idel/s     orq/s   asmrq/s   asmok/s  fragok/s fragcrt/s
13:06:51       151.00      0.00    151.00     62.00      0.00      0.00      0.00      0.00

13:06:50    ihdrerr/s iadrerr/s iukwnpr/s   idisc/s   odisc/s   onort/s    asmf/s   fragf/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50       imsg/s    omsg/s    iech/s   iechr/s    oech/s   oechr/s     itm/s    itmr/s     otm/s    otmr/s  iadrmk/s iadrmkr/s  oadrmk/s oadrmkr/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50       ierr/s    oerr/s idstunr/s odstunr/s   itmex/s   otmex/s iparmpb/s oparmpb/s   isrcq/s   osrcq/s  iredir/s  oredir/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50     active/s passive/s    iseg/s    oseg/s
13:06:51         3.00      3.00     58.00     61.00

13:06:50     atmptf/s  estres/s retrans/s isegerr/s   orsts/s
13:06:51         0.00      0.00      0.00      0.00      0.00

13:06:50       idgm/s    odgm/s  noport/s idgmerr/s
13:06:51        91.00      1.00      0.00      0.00

13:06:50      tcp6sck   udp6sck   raw6sck  ip6-frag
13:06:51            5         6         0         0

13:06:50      irec6/s fwddgm6/s   idel6/s    orq6/s  asmrq6/s  asmok6/s imcpck6/s omcpck6/s fragok6/s fragcr6/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50    ihdrer6/s iadrer6/s iukwnp6/s  i2big6/s  idisc6/s  odisc6/s  inort6/s  onort6/s   asmf6/s  fragf6/s itrpck6/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50      imsg6/s   omsg6/s   iech6/s  iechr6/s  oechr6/s  igmbq6/s  igmbr6/s  ogmbr6/s igmbrd6/s ogmbrd6/s irtsol6/s ortsol6/s  irtad6/s inbsol6/s onbsol6/s  inbad6/s  onbad6/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50      ierr6/s idtunr6/s odtunr6/s  itmex6/s  otmex6/s iprmpb6/s oprmpb6/s iredir6/s oredir6/s ipck2b6/s opck2b6/s
13:06:51         0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

13:06:50      idgm6/s   odgm6/s noport6/s idgmer6/s
13:06:51         0.00      0.00      0.00      0.00

13:06:50        CPU       MHz
13:06:51        all      0.00
13:06:51          0      0.00
13:06:51          1      0.00

13:06:50        CPU    wghMHz
13:06:51        all    866.64
13:06:51          0    866.64
13:06:51          1    866.64

13:06:50        BUS  idvendor    idprod  maxpower                manufact                                         product
13:06:51          5       4d9      1503       200                                                            USB Keyboard

Average:        CPU      %usr     %nice      %sys   %iowait    %steal      %irq     %soft    %guest     %idle
Average:        all     50.51      0.00     31.31      0.00      0.00      0.00      1.01      0.00     17.17
Average:          0     63.92      0.00     27.84      0.00      0.00      0.00      0.00      0.00      8.25
Average:          1     37.62      0.00     34.65      0.00      0.00      0.00      1.98      0.00     25.74

Average:       proc/s   cswch/s
Average:        45.00   2994.00

Average:         INTR    intr/s
Average:          sum   1979.00
Average:            0      0.00
Average:            1      0.00
Average:            2      0.00
Average:            3      0.00
Average:            4      0.00
Average:            5      0.00
Average:            6      0.00
Average:            7      0.00
Average:            8      0.00
Average:            9      0.00
Average:           10      0.00
Average:           11      0.00
Average:           12      0.00
Average:           13      0.00

//MEMINFO
MemTotal:         998560 kB
MemFree:           17040 kB
Buffers:           13512 kB
Cached:           829184 kB
SwapCached:            0 kB
Active:           506480 kB
Inactive:         431312 kB
Active(anon):      95204 kB
Inactive(anon):      412 kB
Active(file):     411276 kB
Inactive(file):   430900 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:        270336 kB
HighFree:            516 kB
LowTotal:         728224 kB
LowFree:           16524 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:              3772 kB
Writeback:             0 kB
AnonPages:         95144 kB
Mapped:            18240 kB
Shmem:               520 kB
Slab:              33492 kB
SReclaimable:      25256 kB
SUnreclaim:         8236 kB
KernelStack:        1440 kB
PageTables:         1964 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      499280 kB
Committed_AS:     703456 kB
VmallocTotal:     245760 kB
VmallocUsed:       37112 kB
VmallocChunk:     180220 kB


12
Software & Applications / Cubie 2 single user mode
« on: December 23, 2013, 09:06:23 pm »
Is there no way to boot the cubie2 in single user mode while booting from nand? I believe I tried putting S at the end of console=ttyS0 line but that does not seem to work.

Thanks

13
Cubieboard v2 OS (A20 Based) / Issue with system's tick counter
« on: November 26, 2013, 01:03:48 pm »
I am experiencing a strange truncation problem with the systems tick counter, it seems to truncate at some point. i have the following code being run from a thread:

uint64_t GetMonotonicTimeUsec(void)
{
   struct timespec ts;
   if( clock_gettime(CLOCK_MONOTONIC_RAW, &ts) == 0 )
       {
                DebugPrint(2,1, "Clock_gettime returned: %ld sec, %ld nsec\n", ts.tv_sec, ts.tv_nsec); 
      return ((uint64_t)ts.tv_sec * 1000000) + ((uint64_t)ts.tv_nsec / 1000);
   }
   return 0;
}

looks like the seconds element of struct timespec ts does not proceed after the signed 16 bit boundary:

2013-11-25 23:08:57.070| Clock_gettime returned: 32774 sec, 752560707 nsec
|2013-11-25 23:08:57.106| Clock_gettime returned: 32774 sec, 788994124 nsec
|2013-11-25 23:08:57.170| Clock_gettime returned: 32774 sec, 852977665 nsec
|2013-11-25 23:08:57.170| Clock_gettime returned: 32774 sec, 853328332 nsec
|2013-11-25 23:08:57.271| Clock_gettime returned: 32774 sec, 953713707 nsec
|2013-11-25 23:08:57.271| Clock_gettime returned: 32774 sec, 954075665 nsec
|2013-11-25 23:08:57.371| Clock_gettime returned: 32775 sec, 54455374 nsec
|2013-11-25 23:08:57.372| Clock_gettime returned: 32775 sec, 54940290 nsec
|2013-11-25 23:08:57.472| Clock_gettime returned: 32775 sec, 155485290 nsec
|2013-11-25 23:08:57.473| Clock_gettime returned: 32775 sec, 155845040 nsec
|2013-11-25 23:08:57.573| Clock_gettime returned: 32775 sec, 256236582 nsec
|2013-11-25 23:08:57.574| Clock_gettime returned: 32775 sec, 256611249 nsec
|2013-11-25 23:08:57.674| Clock_gettime returned: 32775 sec, 356953290 nsec
|2013-11-25 23:08:57.674| Clock_gettime returned: 32775 sec, 357314957 nsec
|2013-11-25 23:08:57.775| Clock_gettime returned: 32775 sec, 457670540 nsec
|2013-11-25 23:08:57.775| Clock_gettime returned: 32775 sec, 458051457 nsec

That's where the App stops printing. I believe the app reaches a defunct state after this and only way to get it going is kill it and restart. 

14
Cubieboard v2 OS (A20 Based) / File system error on Nand
« on: November 18, 2013, 02:01:07 pm »
In my cubie A20 I use external SSHD drive along with internal Nand (rootfs partition). Recently I got a file system corruption message in dmesg and I was wondering  what I could possibly do to fix something like this
 
[  306.409461] EXT4-fs (nand3): initial error at 1357027201: ext4_lookup:1044: inode 12791
[  306.409502] EXT4-fs (nand3): last error at 1384546965: ext4_lookup:1044: inode 10057
[  599.633397] EXT4-fs error (device nand3): ext4_lookup:1044: inode #12791: comm sh: deleted inode referenced: 10811
[  599.644664] EXT4-fs error (device nand3): ext4_lookup:1044: inode #12791: comm sh: deleted inode referenced: 10812

Would booting the system in single user mode followed by fsck a good idea to solve this? I would like to occassionally check the integrity of the Nand partiton that has the rootfs as well if its possible (while mounted).

Any idea would be really appreciated.

Thanks,

Ratin

15
Cubieboard v2 OS (A20 Based) / inode limit on nand3
« on: October 02, 2013, 08:09:57 pm »
Hi, I am using nand-part to create boot / root partitions and creating ext4 file system on nand3 per Patrick Wood's nand-buring steps (/usr/local/bin/nand-part /dev/nand "boot 8192" "root 0", mke2fs -t ext4 /dev/nand3 etc). I have been running the system fine, with apps that write logs. But It appears that the system reached the inode limit:

/usr/local# df -i
Filesystem                Inodes    IUsed     IFree IUse% Mounted on
/dev/root                 239520   239339       181  100% /
devtmpfs                  124797      418    124379    1% /dev
none                      124820      278    124542    1% /run
none                      124820        2    124818    1% /run/lock
none                      124820        1    124819    1% /run/shm
none                      124820        1    124819    1% /run/user
10.11.33.11:/workspace 134217728 15375566 118842162   12% /workspace
tmpfs                     124820        3    124817    1% /tmp/tmpfs

I was wondering how is this default limit (239520) calculated  and if I can force the limit to be higher via -N option of mke2fs.

Thanks

Ratin

Pages: [1] 2