This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/WL1837MOD: WL1837MOD - Evaluation with BBB + BB-BONE-WL1837 Element 14 CAPE: what setup to use in uEnv.txt?

Part Number: WL1837MOD
Other Parts Discussed in Thread: WL1837

Tool/software: Linux


Team,

Customer is trying to evaluate the WL1837MOD via the element 14 BBONE-GATEWAY-CAPE on the BBB.
To get started they used the latest Debian image (Debian 8.7 2017-03-19 4GB SD LXQT) which seems to work ok without the cape.

After changing the /boot/uEnv.txt (as described in the readme of the cape) the Kernel does not boot anymore:
3. Edit /boot/uEnv.txt
$> sudo nano /boot/uEnv.txt
# Enable the overlay dtb (eMMC/hdmi/etc are disabled) dtb=am335x-boneblack-overlay.dtb
# Enable the gateway/connectivity cape overlay: cape_enable=bone_capemgr.enable_partno=BB-BONE-WL1837
Write out & save edits.

Can you confirm what U-boot/kernel setup for the Device tree should be used with this WL183x CAPE for this kernel release?

Here is the boot log in the different scenario:
-Without the CAPE and with unchanged boot/uEnv.txt Linux can start succesfully:
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-4.4.54-ti-r93 ...
8652712 bytes read in 564 ms (14.6 MiB/s)
loading /boot/dtbs/4.4.54-ti-r93/am335x-boneblack.dtb ...
56827 bytes read in 29 ms (1.9 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...
loading /boot/initrd.img-4.4.54-ti-r93 ...
5252454 bytes read in 348 ms (14.4 MiB/s)
debug: [console=ttyO0,115200n8 root=UUID=289937fb-fa1d-4b92-976f-7995b5d1fb34 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet cape_universal=enable] ...
debug: [bootz 0x82000000 0x88080000:502566 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fafd000, end 8ffff566 ... OK
   Loading Device Tree to 8faec000, end 8fafcdfa ... OK

Starting kernel ...

[    0.001038] clocksource_probe: no matching clocksources found
[    2.069871] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    2.255235] omap_voltage_late_init: Voltage driver support not added
[    2.266775] PM: Cannot get wkup_m3_ipc handle
Loading, please wait...
[    4.830118]  remoteproc1: failed to load am335x-pru0-fw
[    4.841696]  remoteproc1: request_firmware failed: -2
[    4.846918] pru-rproc 4a334000.pru0: rproc_boot failed
[    4.939180]  remoteproc1: failed to load am335x-pru1-fw
[    4.948391]  remoteproc1: request_firmware failed: -2
[    4.953607] pru-rproc 4a338000.pru1: rproc_boot failed
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/mmcblk1p1
fsck exited with status code 8

Debian GNU/Linux 8 beaglebone ttyS0
BeagleBoard.org Debian Image 2017-03-19
Support/FAQ: elinux.org/Beagleboard:BeagleBoneBlack_Debian
default username:password is [debian:temppwd]
beaglebone login:
Debian GNU/Linux 8 beaglebone ttyS0-

-With the CAPE and with unchanged boot/uEnv.txt Linux can not start:
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-4.4.54-ti-r93 ...
8652712 bytes read in 564 ms (14.6 MiB/s)
loading /boot/dtbs/4.4.54-ti-r93/am335x-boneblack.dtb ...
56827 bytes read in 27 ms (2 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...
loading /boot/initrd.img-4.4.54-ti-r93 ...
5252454 bytes read in 348 ms (14.4 MiB/s)
debug: [console=ttyO0,115200n8 root=UUID=289937fb-fa1d-4b92-976f-7995b5d1fb34 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet cape_universal=enable] ...
debug: [bootz 0x82000000 0x88080000:502566 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fafd000, end 8ffff566 ... OK
   Loading Device Tree to 8faec000, end 8fafcdfa ... OK

Starting kernel ...

[    0.001045] clocksource_probe: no matching clocksources found
[    2.070449] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    2.255301] omap_voltage_late_init: Voltage driver support not added
[    2.266804] PM: Cannot get wkup_m3_ipc handle
[    4.346045] omap_i2c 4819c000.i2c: controller timed out
[    6.374027] omap_i2c 4819c000.i2c: controller timed out
[    8.402031] omap_i2c 4819c000.i2c: controller timed out
[    8.438066] omap_i2c 4819c000.i2c: Arbitration lost
[   36.154002] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [irq/160-4819c00:81]
[   64.154005] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [irq/160-4819c00:81]
[   92.154003] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [irq/160-4819c00:81]
.....

--With the CAPE and changing boot/uEnv.txt as documented in the 'readme" Linux can not start:
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-4.4.54-ti-r93 ...
8652712 bytes read in 564 ms (14.6 MiB/s)
loading /boot/dtbs/4.4.54-ti-r93/am335x-boneblack.dtb ...
56827 bytes read in 27 ms (2 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...
loading /boot/initrd.img-4.4.54-ti-r93 ...
5252454 bytes read in 348 ms (14.4 MiB/s)
debug: [console=ttyO0,115200n8 root=UUID=289937fb-fa1d-4b92-976f-7995b5d1fb34 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet cape_universal=enable] ...
debug: [bootz 0x82000000 0x88080000:502566 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fafd000, end 8ffff566 ... OK
   Loading Device Tree to 8faec000, end 8fafcdfa ... OK

Starting kernel ...
[    0.000999] clocksource_probe: no matching clocksources found
[    2.069334] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    2.224174] omap_voltage_late_init: Voltage driver support not added
[    2.231924] PM: Cannot get wkup_m3_ipc handle
Loading, please wait...
[    2.515722] Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa19c02c
[    2.523434] pgd = c0004000
[    2.526151] [fa19c02c] *pgd=48011452(bad)
[    2.530198] Internal error: : 1028 [#1] SMP ARM
[    2.534746] Modules linked in:
[    2.537823] CPU: 0 PID: 76 Comm: capemgr-loader- Not tainted 4.4.54-ti-r93 #1
[    2.544987] Hardware name: Generic AM33XX (Flattened Device Tree)
[    2.551105] task: da952700 ti: daa26000 task.ti: daa26000
[    2.556548] PC is at omap_i2c_runtime_suspend+0x2c/0xa4
[    2.561796] LR is at 0xfa19c02c
[    2.564949] pc : [<c082b740>]    lr : [<fa19c02c>]    psr: a0030013
[    2.564949] sp : daa27aa8  ip : c0af548c  fp : daa27abc
[    2.576474] r10: c0f97140  r9 : dc202e10  r8 : 00000008
[    2.581718] r7 : c0f97140  r6 : 00000000  r5 : dc202e10  r4 : dc202e10
[    2.588270] r3 : da959410  r2 : fa19c000  r1 : 00000000  r0 : dc202e10
[    2.594826] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    2.601989] Control: 10c5387d  Table: 9aa90019  DAC: 00000051
[    2.607758] Process capemgr-loader- (pid: 76, stack limit = 0xdaa26218)
[    2.614398] Stack: (0xdaa27aa8 to 0xdaa28000)
[    2.618777] 7aa0:                   dc202e10 dc202e10 daa27acc daa27ac0 c06efc30 c082b720
[    2.626993] 7ac0: daa27ae4 daa27ad0 c00303e0 c06efc00 c00303c4 dc202e10 daa27afc daa27ae8