MangOH red board unable to update image

Once the board boots up, microcom cmd is used to access the AT command port.

As recommended after flashing the 13.3 image on the board, the board is not rolling back to original FW after update, but it crashes and does not come up as i sent the logs earlier.

LOG:
Would you like a reminder next time you log in [Y/n]?
Y
OK, I will remind you next time.
root@swi-mdm9x28-wp:~# microcom /dev/ttyAT
AT
OK
AT!CUSTOM?
!CUSTOM:
GPSENABLE 0x01
GPSLPM 0x01
IPV6ENABLE 0x01
UIM2ENABLE 0x01
SIMLPM 0x01
USBSERIALENABLE 0x01
SINGLEAPNSWITCH 0x01
TXONINDICATION 0x01
HSICENABLE 0x01
SCRUBEN 0x01
EXTGPSLNAEN 0x01
UIMAUTOSWITCH 0x01

OK

No idea as i don’t see crash on my board, maybe you can disable one line by line in red.sdef and see which line makes the crash

Can you let me know for the 13.3 version of the code, what is the legato, and mangoh versions used.

Currently, i am using legato 19.02 while the mangoH version is master one.

I think the same as you

Can you please reconfirm the version of legato, toolchain and mangoh version

please see here:

i have built the image as per the steps given here.

Can you guide me with the flashing steps too.
Just want to be clear abt the flashing steps too.

  1. transfer the ./build/update_files/red.wp76xx.update to module 's /tmp folder by scp.
  2. on module, use “update /tmp/red.wp76xx.update” to update the mangOH layer.

Ok, i did the whole step of building and reflashing as mentioned in the earlier conversations.

The crash is because of battery gauge mising.
Logs -
[ 27.154918] bmp280 4-0076: lookup for GPIO reset failed
[ 27.162428] mangoh red mangoh red: mapping bq24296 driver
[ 27.183923] mangoh red mangoh red: mapping bq27426 battery gauge
[ 27.188913] i2c i2c-6: Failed to register i2c client bq27426 at 0x55 (-16)
[ 27.196414] mangoh red mangoh red: battery gauge is missing
[ 27.201377] mangoh red mangoh red: Removing mangoh red platform device
[ 27.207834] Unable to handle kernel NULL pointer dereference at virtual address 0000007c
[ 27.216256] pgd = c9138000
[ 27.218581] [0000007c] *pgd=890be835, *pte=00000000, *ppte=00000000
[ 27.224836] Internal error: Oops: 17 [#1] PREEMPT ARM
[ 27.229869] Modules linked in: mangoh_red(O+) ltc294x(O) led(O) cp2130(O) bq27xxx_battery(O) bq24296(O) bmp280_i2c(O) bmp280(O) bmi160_i2c()
[ 27.243414] CPU: 0 PID: 883 Comm: insmod Tainted: G W O 3.18.131 #1
[ 27.250531] task: c90a5900 ti: c90d8000 task.ti: c90d8000
[ 27.255919] PC is at device_del+0x8/0x190
[ 27.259901] LR is at device_unregister+0x3c/0x58
[ 27.264508] pc : [] lr : [] psr: 600f0013
[ 27.264508] sp : c90d9cd8 ip : 00000007 fp : bf03a510
[ 27.275958] r10: cec16018 r9 : c7863c00 r8 : bf03a760
[ 27.281172] r7 : ffffffed r6 : bf03a958 r5 : c7863800 r4 : 00000020
[ 27.287678] r3 : 00000000 r2 : 77eef5d4 r1 : 00000007 r0 : 00000020
[ 27.294192] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 27.301309] Control: 10c53c7d Table: 89138059 DAC: 00000051
[ 27.307038] Process insmod (pid: 883, stack limit = 0xc90d8208)
[ 27.312942] Stack: (0xc90d9cd8 to 0xc90da000)
[ 27.317280] 9cc0: 00000020 c7863800
[ 27.325445] 9ce0: bf03a958 ffffffed bf03a760 c02d5488 bf03a958 bf039020 bf03a520 bf039264
[ 27.333603] 9d00: bf03a510 bf03a3d0 00000000 ffffffed bf03a520 bf03a4c0 bf03a510 00000000
[ 27.341761] 9d20: 0000003d 00000000 bf03a814 c02d9dec bf03a520 bf03a4c0 c1019b5c c0f3fcb0
[ 27.349926] 9d40: 00000000 c02d85a8 bf03a4c0 bf03a520 00000000 00000000 c90d9d88 c02d87d0
[ 27.358084] 9d60: bf03a554 c0e71048 00000000 c02d6bd4 cec03698 c9153b44 bf03a520 c0e9fed8
[ 27.366242] 9d80: 00000001 c02d82e0 bf03a520 00000001 cfc76020 bf03a520 c0e9fed8 bf03a520
[ 27.374406] 9da0: c0e9fd28 c02d78c0 bf03a520 00000000 bf03a528 c02d5e78 c0e78fe0 c020d3c0
[ 27.382564] 9dc0: bf03a510 c90d8000 c0e71048 77eef5d4 bf03a510 00000000 0000001c c0e7b41c
[ 27.390722] 9de0: c0e7b438 c0e78fe0 00000000 c02d9bc8 bf039e59 c90d8000 c0e71048 c9156fc0
[ 27.398880] 9e00: c0e78fe0 bf03d08c bf03d000 c0008938 c9098dc0 00000000 c0f37fb8 c0f37fa8
[ 27.407045] 9e20: c0e78ec0 00000000 cfdf0a40 0040003d c90d8000 0010000f c90d9e4c c003a248
[ 27.415203] 9e40: cfdef100 c9088b00 c9156e80 00000040 00000001 cec01f00 c9156e80 000000d0
[ 27.423362] 9e60: c0e711dc 77eef5d4 bf03a808 c90d9f54 c9156e80 c9156d80 bf03a850 00000001
[ 27.431520] 9e80: c9156da4 c006f36c bf03a814 00007fff 00000000 c006cf10 bf000000 c90d8000
[ 27.439684] 9ea0: 00000000 c006c740 d3328000 d33605ac bf03d0d0 00000061 bf03a948 000bc150
[ 27.447841] 9ec0: c9088c00 c006c898 00000000 00000000 00000000 00000000 00000000 00000000
[ 27.455998] 9ee0: 6e72656b 00006c65 00000000 00000000 00000000 00000000 00000000 00000000
[ 27.464161] 9f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 77eef5d4
[ 27.472319] 9f20: 00000000 00000000 000bc150 0000000f 0000017b c000e8a4 c90d8000 00000000
[ 27.480477] 9f40: 00000000 c006f75c 0000000f c9088c00 ce712000 d3328000 00038624 d335fe54
[ 27.488642] 9f60: d335fc74 d3352ff0 000019ec 00001ffc bf03a760 00000007 00000000 0000142c
[ 27.496799] 9f80: 0000002f 00000030 00000019 00000000 00000010 00000000 0000004d beeafe60
[ 27.504957] 9fa0: beeafe59 c000e6e0 0000004d beeafe60 0000000f 000bc150 00000000 beeafe59
[ 27.513115] 9fc0: 0000004d beeafe60 beeafe59 0000017b beeafe60 beeafd54 000ba684 00000000
[ 27.521280] 9fe0: beeafba0 beeafb90 000238d4 4591cac0 200b0010 0000000f 00000000 00000000
[ 27.529450] [] (device_del) from [] (device_unregister+0x3c/0x58)
[ 27.537267] [] (device_unregister) from [] (mangoh_red_remove+0x1c/0x70 [mangoh_red])
[ 27.546817] [] (mangoh_red_remove [mangoh_red]) from [] (mangoh_red_probe+0x1f0/0x398 [mangoh_red])
[ 27.557574] [] (mangoh_red_probe [mangoh_red]) from [] (platform_drv_probe+0x34/0x80)
[ 27.567114] [] (platform_drv_probe) from [] (driver_probe_device+0x1f4/0x358)
[ 27.575965] [] (driver_probe_device) from [] (bus_for_each_drv+0x84/0x8c)
[ 27.584473] [] (bus_for_each_drv) from [] (__device_attach+0x84/0x100)
[ 27.592719] [] (__device_attach) from [] (bus_probe_device+0x28/0x80)
[ 27.600879] [] (bus_probe_device) from [] (device_add+0x4d0/0x5b4)
[ 27.608776] [] (device_add) from [] (platform_device_add+0xac/0x1f0)
[ 27.616860] [] (platform_device_add) from [] (mangoh_red_init+0x8c/0xd0 [mangoh_red])
[ 27.626407] [] (mangoh_red_init [mangoh_red]) from [] (do_one_initcall+0x1a0/0x1e0)
[ 27.635783] [] (do_one_initcall) from [] (load_module+0x19e8/0x1c20)
[ 27.643849] [] (load_module) from [] (SyS_finit_module+0x8c/0x9c)
[ 27.651661] [] (SyS_finit_module) from [] (ret_fast_syscall+0x0/0x44)
[ 27.659819] Code: c1019b38 c09d9fc7 e92d41f0 e1a04000 (e590305c)
[ 27.797787] USB QCMAP NL IOCTL Snd GETNEIGH Succ
[ 27.832389] —[ end trace 4234e35fd5017f8a ]—
[ 27.850417] insmod (883) used greatest stack depth: 968 bytes left

You can try to remove that in the source

Finally was able to build and get the red board booted with the image built.

Thanks for all the support.

I will be raising another query for Talon + mango redH board.

hi ,
Any one tried of creating a new at command in application .e.g., at+sample is the Customized input command and output for the command is Success. Any example can any one guide me how to create a new command

you can see this sample which has created AT+TEST and AT+BRIDGE:

Hi,

I have created custom at commands and relevant inputs for those commands and all working with sockets.

the same default application, atServerTest.c supports both socket and uart mode of accepting commands.

Let me know where u r facing issue. If you have compiled the app, push to the board and install and run the inital commands in the file.

Regards,
Tejaswi

Hi, Main aim of building and flashing the MangOH board was to test Talon Mirage IoT card. Downloaded 192.168.l.254 the MangOH source, Legato source and …