8devices / carambola2

Carambola 2 - an AR9331/SoC based PCB
GNU General Public License v2.0
56 stars 43 forks source link

When wlan0 enabled, board keeps rebooting #46

Closed Darlard closed 9 years ago

Darlard commented 9 years ago

Hi, we are experiencing problems with the module: on three out of six boards, when i enable radio0 throught /etc/config/wireless, the Carambola2 keeps rebooting right after wlan0 gets enabled at boot. I tried to change power supplies (2 Ampere) but nothing happens.

We don't have eth connector in our board so I tried to reflash the kernel via Ymodem but got no luck. Still not working I read somewhere it could be something related to broken art partition. Do you have any suggestion?

mantas-p commented 9 years ago

Hi,

Are you using custom host board for Caramobla? If yes, please make sure you have RF output loaded - connect antenna to U.FL connector.

As with ART partition, you can read it with this command in u-boot: md.l 9fff1000 120 Post output here to see if it's broken.

Darlard commented 9 years ago

Yes, we are using a custom board that we produce. On our board we have internal antenna connected to the module RF output. Here is the dump. Sorry for the bad formatting

9fff1000: 0202c493 000166b2 38444556 30373030    ......f.8DEV0700
9fff1010: 0033333a 34343a35 35000000 00001f00    .33:44:55.......
9fff1020: 11020000 00000400 30007d00 030000ff    ........0.}.....
9fff1030: 11000000 00100100 00222202 00500150    .........""..P.P
9fff1040: 01500100 00000000 001e00a4 8c000000    .P..............
9fff1050: ff000000 00000000 00000000 00000000    ................
9fff1060: 0e0e0300 2ce20002 0e1ce000 0000e000    ....,...........
9fff1070: 00000000 00000000 00000000 09000000    ................
9fff1080: 00e8e800 00000000 00007089 a2e80083    ..........p.....
9fff1090: 8ba300e8 00848ba3 00e80085 8ba30000    ................
9fff10a0: 00000000 00000000 00000000 00000000    ................
9fff10b0: 00000000 00000000 00000000 00000000    ................
9fff10c0: 00000070 a27089a2 7089a270 89a22a2a    ...p.p..p..p..**
9fff10d0: 2a2a2a2a 2a2a2a25 211f2a25 23202a25    *******%!.*%# *%
9fff10e0: 221f2a28 23211f1d 23211f1d 23211f1d    ".*(#!..#!..#!..
9fff10f0: 2a282422 201e2422 201e2422 201e2b29    *($" .$" .$" .+)
9fff1100: 2422201e 2422201e 23211f1d 2a282320    $" .$" .#!..*(#
9fff1110: 1e1a2320 1e1a2320 1e1a2a28 23211f1d    ..# ..# ..*(#!..
9fff1120: 23211f1d 23211f1d 2a292422 1f1d2422    #!..#!..*)$"..$"
9fff1130: 1f1d2422 1f1d1112 15174142 45473132    ..$"......ABEG12
9fff1140: 35377075 9da27075 9da27075 9da27a7f    57pu..pu..pu..z.
9fff1150: 84987075 acb87075 a7ac7075 a7ac7a7f    ..pu..pu..pu..z.
9fff1160: 84a27075 a7ac7075 a7ac7075 a7ac7a7f    ..pu..pu..pu..z.
9fff1170: 84a23c7c 3c7c3c7c 3c7c3c7c 3c7c3c7c    ..<|<|<|<|<|<|<|
9fff1180: 7c7c3c7c 3c7c3c7c 3c7c3c7c 3c7c3c7c    ||<|<|<|<|<|<|<|
9fff1190: 7c7c3c7c 3c7c3c7c 3c7c3c7c 3c7c3c7c    ||<|<|<|<|<|<|<|
9fff11a0: 7c7c1001 00002222 02000000 00000000    ||....""........
9fff11b0: 00000000 00004400 00000000 00ff0000    ......D.........
9fff11c0: 00000000 00000000 00000000 000e0e03    ................
9fff11d0: 002de200 020e1ce0 e0f00ce0 e0f06c00    .-............l.
9fff11e0: 00000000 00000000 00000000 00000000    ................
9fff11f0: 00000000 0000004c 5468788c a0b9cd00    .......LThx.....
9fff1200: 00000000 00000000 00000000 00000000    ................
9fff1210: 00000000 00000000 00000000 00000000    ................
9fff1220: 00000000 00000000 00000000 00000000    ................
9fff1230: 00000000 00000000 00000000 00000000    ................
9fff1240: 00000000 00000000 00000000 00000000    ................
9fff1250: 00000000 00000000 00000000 00000000    ................
9fff1260: 00000000 00000000 00000000 00000000    ................
9fff1270: 00000000 00000000 00000000 00000000    ................
9fff1280: 00000000 00000000 00000000 0000004c    ...............L
9fff1290: 5468788c a0b9cd4c 58688cb4 bdb9cd4c    Thx....LXh.....L
9fff12a0: 58688cb4 bdb9cd14 14140a14 14140a14    Xh..............
9fff12b0: 14140a14 14140a14 14140a14 14140a14    ................
9fff12c0: 14140a14 14140a14 140a0a00 000a0a00    ................
9fff12d0: 000a0a00 0014140a 0a00000a 0a00000a    ................
9fff12e0: 0a000014 140a0a00 000a0a00 000a0a00    ................
9fff12f0: 0014140a 0a00000a 0a00000a 0a000014    ................
9fff1300: 140a0a00 000a0a00 000a0a00 0014140a    ................
9fff1310: 0a00000a 0a00000a 0a000014 140a0a00    ................
9fff1320: 000a0a00 000a0a00 0014140a 0a00000a    ................
9fff1330: 0a00000a 0a000014 140a0a00 000a0a00    ................
9fff1340: 000a0a00 0014140a 0a00000a 0a00000a    ................
9fff1350: 0a000014 140a0a00 000a0a00 000a0a00    ................
9fff1360: 0014140a 0a00000a 0a00000a 0a000014    ................
9fff1370: 140a0a00 000a0a00 000a0a00 0014140a    ................
9fff1380: 0a00000a 0a00000a 0a000014 140a0a00    ................
9fff1390: 000a0a00 000a0a00 0014140a 0a00000a    ................
9fff13a0: 0a00000a 0a000010 16184046 48303638    ..........@FH068
9fff13b0: 4c5c608c a0b4bdcd 4c5c608c 90b4bdcd    L\`.....L\`.....
9fff13c0: 4e565e66 8e96aebf 4c505c68 8cb4ffff    NV^f....LP\h....
9fff13d0: 4c5c8cb4 ffffffff 4e5e668e 9eaeffff    L\......N^f.....
9fff13e0: 4c50545c 8ca0b4bd 4c5c688c 98b4bdcd    LPT\....L\h.....
9fff13f0: 4e565e8e 96aebfc7 7c7c7c7c 7c7c7c3c    NV^.....|||||||<
9fff1400: 7c7c7c7c 7c7c7c3c 3c7c3c7c 7c7c7c7c    |||||||<<|<|||||
9fff1410: 3c7c7c3c 7c3c3c3c 7c7c7c3c 3c3c3c3c    <||<|<<<|||<<<<<
9fff1420: 7c7c7c7c 7c3c3c3c 7c7c7c7c 7c7c7c7c    |||||<<<||||||||
9fff1430: 7c7c3c7c 7c7c7c3c 7c3c7c7c 7c7c3c7c    ||<||||<|<||||<|
9fff1440: ffffffff ffffffff ffffffff ffffffff    ................
9fff1450: ffffffff ffffffff ffffffff ffffffff    ................
9fff1460: ffffffff ffffffff ffffffff ffffffff    ................
9fff1470: ffffffff ffffffff ffffffff ffffffff    ................
GiedriusM commented 9 years ago

Darlard, please check that there are no cold joints. Then measure 3.3V line with an oscilloscope to see if there are no spikes or drops. If possible, measure voltage on the module side. Also check that the reset is not left floating.

mantas-p commented 9 years ago

I see nothing wrong with ART partition.

For debugging purpose I suggest to connect RF load to U.FL connector.

Darlard commented 9 years ago

Ok thank you very much i'm checking now

Darlard commented 9 years ago

I found the problem: the datasheet reports 0.5W power consumption, so it should be 150mA, but when radio goes on there is probably a peak. The voltage regulator we installed can handle up to 250mA but maybe it's not enought. I saw this because the 3V3 drops below 3V when wlan0 goes on. This determines the reset.

I temporary solved by adding a 470u cap in parallel. We will replace the regulator.

Thank you for the support