QEP driver patch example programs and output

James Fitzsimons james.fitzsimons at gmail.com
Fri Aug 21 10:09:19 UTC 2020


Hi all,

Further to the patch I have just submitted I thought it would be useful for
any reviewers to have the following example programs and output as a
reference when reviewing the patch.

Thanks in advance for your review and feedback.

Regards,
James Fitzsimons
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200821/4b616ac7/attachment.html>
-------------- next part --------------
U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)
Trying to boot from MMC2
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **


U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins-github_Bootloader-Builder-137

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
Model: BeagleBoard.org BeagleBone Black Wireless:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
Could not get PHY for cpsw: addr 0
cpsw, usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[BBBW] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
53130 bytes read in 6 ms (8.4 MiB/s)
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
282 bytes read in 2 ms (137.7 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...
86538 bytes read in 8 ms (10.3 MiB/s)
53130 bytes read in 6 ms (8.4 MiB/s)
373 bytes read in 2 ms (181.6 KiB/s)
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   RTEMS
   Created:      2020-08-21   9:28:55 UTC
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    86474 Bytes = 84.4 KiB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 8ffef000, end 8fffffff ... OK

Starting kernel ...


RTEMS Beagleboard: am335x-based
        ARM Debug: 0x4b141000
Initialising QEP
Setting Quadrature mode to relative
Setting unit timer to 1s
Completed initialising QEP
clock is running true
Enabling PWM  output....
Value of qep position is -4936
Value of qep position is -5382
Value of qep position is -5400
Value of qep position is -5403
Value of qep position is -5406
Value of qep position is -5413
Value of qep position is -5418
Value of qep position is -5421
Value of qep position is -5421
Value of qep position is -5422
Value of qep position is -5422
Value of qep position is -5431
Value of qep position is -5435
Value of qep position is -5434
Value of qep position is -5438
Value of qep position is -5437
Value of qep position is -5440
Value of qep position is -5444
Value of qep position is -5444
PWM disabled. Test finished.

*** FATAL ***
fatal source: 0 (INTERNAL_ERROR_CORE)
fatal code: 5 (INTERNAL_ERROR_THREAD_EXITTED)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_polling.c
Type: text/x-csrc
Size: 3955 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200821/4b616ac7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_unit_timer.c
Type: text/x-csrc
Size: 4328 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200821/4b616ac7/attachment-0001.bin>
-------------- next part --------------
U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)
Trying to boot from MMC2
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **


U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins-github_Bootloader-Builder-137

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
Model: BeagleBoard.org BeagleBone Black Wireless:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
Could not get PHY for cpsw: addr 0
cpsw, usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[BBBW] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
53130 bytes read in 6 ms (8.4 MiB/s)
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
282 bytes read in 2 ms (137.7 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...
86422 bytes read in 8 ms (10.3 MiB/s)
53130 bytes read in 6 ms (8.4 MiB/s)
373 bytes read in 2 ms (181.6 KiB/s)
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   RTEMS
   Created:      2020-08-21   9:33:18 UTC
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    86358 Bytes = 84.3 KiB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 8ffef000, end 8fffffff ... OK

Starting kernel ...


RTEMS Beagleboard: am335x-based
        ARM Debug: 0x4b141000
Initialising QEP
Completed initialising QEP
clock is running true
Enabling PWM  output....
Value of qep position is 0
Value of qep position is -5093
Value of qep position is -10552
Value of qep position is -16016
Value of qep position is -21485
Value of qep position is -26950
Value of qep position is -32418
Value of qep position is -37890
Value of qep position is -43361
Value of qep position is -48830
Value of qep position is -54300
Value of qep position is -59765
Value of qep position is -65238
Value of qep position is -70711
Value of qep position is -76146
Value of qep position is -81597
Value of qep position is -87052
Value of qep position is -92517
Value of qep position is -97988
PWM disabled. Test finished.

*** FATAL ***
fatal source: 0 (INTERNAL_ERROR_CORE)
fatal code: 5 (INTERNAL_ERROR_THREAD_EXITTED)
RTEMS version: 5.0.0.5284e812e2c82466b3f3a21e494310d8cb69c7cd-modified
RTEMS tools: 7.5.0 20191114 (RTEMS 5, RSB 5 (f2f0fdf13587 modified), Newlib 7947581)


More information about the devel mailing list