diff --git a/11-InterruptsHandling/result/attributes.txt b/11-InterruptsHandling/result/attributes.txt new file mode 100644 index 0000000..11d19da --- /dev/null +++ b/11-InterruptsHandling/result/attributes.txt @@ -0,0 +1,17 @@ +root@orangepione:~# ls /sys/class/mpu6050/ +accel_x accel_y accel_z gyro_x gyro_y gyro_z temp +root@orangepione:~# cat /sys/class/mpu6050/accel_x +2036 +root@orangepione:~# cat /sys/class/mpu6050/accel_y +-14047 +root@orangepione:~# cat /sys/class/mpu6050/accel_z +-5739 +root@orangepione:~# cat /sys/class/mpu6050/gyro_x +2490 +root@orangepione:~# cat /sys/class/mpu6050/gyro_y +-2510 +root@orangepione:~# cat /sys/class/mpu6050/gyro_z +-1096 +root@orangepione:~# cat /sys/class/mpu6050/temp +25.589 + diff --git a/11-InterruptsHandling/result/dmesg.txt b/11-InterruptsHandling/result/dmesg.txt new file mode 100644 index 0000000..3a30e4c --- /dev/null +++ b/11-InterruptsHandling/result/dmesg.txt @@ -0,0 +1,43 @@ +root@orangepione:~# dmesg -w +[ 6870.064098] mpu6050 0-0068: i2c client address is 0x68 +[ 6870.064616] mpu6050 0-0068: i2c mpu6050 device found, WHO_AM_I register value = 0x68 +[ 6870.174775] mpu6050 0-0068: IRQ #56 +[ 6870.174950] mpu6050 0-0068: sysfs class created +[ 6870.211718] mpu6050 0-0068: i2c driver probed +[ 6872.690036] mpu6050 0-0068: **************** Interrupt generated #56 **************** +[ 6872.690930] mpu6050 0-0068: REG_INT_STATUS: 0x41 +[ 6872.808304] mpu6050 0-0068: sensor data read: +[ 6872.808322] mpu6050 0-0068: ACCEL[X,Y,Z] = [1319, -14019, -472] +[ 6872.808334] mpu6050 0-0068: GYRO[X,Y,Z] = [1780, -2086, -905] +[ 6872.808347] mpu6050 0-0068: TEMP = 25.806 +[ 6878.541825] mpu6050 0-0068: **************** Interrupt generated #56 **************** +[ 6878.542785] mpu6050 0-0068: REG_INT_STATUS: 0x41 +[ 6878.660497] mpu6050 0-0068: sensor data read: +[ 6878.660517] mpu6050 0-0068: ACCEL[X,Y,Z] = [1452, -15085, -1304] +[ 6878.660530] mpu6050 0-0068: GYRO[X,Y,Z] = [2034, -2832, -1004] +[ 6878.660543] mpu6050 0-0068: TEMP = 25.612 +[ 6884.887330] mpu6050 0-0068: **************** Interrupt generated #56 **************** +[ 6884.888278] mpu6050 0-0068: REG_INT_STATUS: 0x41 +[ 6885.004710] mpu6050 0-0068: sensor data read: +[ 6885.004731] mpu6050 0-0068: ACCEL[X,Y,Z] = [1729, -15289, -2335] +[ 6885.004743] mpu6050 0-0068: GYRO[X,Y,Z] = [-375, -4567, -2476] +[ 6885.004756] mpu6050 0-0068: TEMP = 25.553 +[ 7341.633744] mpu6050 0-0068: **************** Interrupt generated #56 **************** +[ 7341.634602] mpu6050 0-0068: REG_INT_STATUS: 0x41 +[ 7341.752150] mpu6050 0-0068: sensor data read: +[ 7341.752171] mpu6050 0-0068: ACCEL[X,Y,Z] = [1876, -15059, -3349] +[ 7341.752184] mpu6050 0-0068: GYRO[X,Y,Z] = [1046, -3483, -1966] +[ 7341.752197] mpu6050 0-0068: TEMP = 25.542 +[ 7759.849566] mpu6050 0-0068: **************** Interrupt generated #56 **************** +[ 7759.850467] mpu6050 0-0068: REG_INT_STATUS: 0x41 +[ 7759.970265] mpu6050 0-0068: sensor data read: +[ 7759.970286] mpu6050 0-0068: ACCEL[X,Y,Z] = [2178, -14814, -4430] +[ 7759.970300] mpu6050 0-0068: GYRO[X,Y,Z] = [2615, -2274, -1317] +[ 7759.970312] mpu6050 0-0068: TEMP = 25.559 +[ 7760.701040] mpu6050 0-0068: **************** Interrupt generated #56 **************** +[ 7760.701894] mpu6050 0-0068: REG_INT_STATUS: 0x41 +[ 7760.818290] mpu6050 0-0068: sensor data read: +[ 7760.818309] mpu6050 0-0068: ACCEL[X,Y,Z] = [2036, -14047, -5739] +[ 7760.818322] mpu6050 0-0068: GYRO[X,Y,Z] = [2490, -2510, -1096] +[ 7760.818334] mpu6050 0-0068: TEMP = 25.589 + diff --git a/11-InterruptsHandling/result/start-uboot.txt b/11-InterruptsHandling/result/start-uboot.txt new file mode 100644 index 0000000..2028a99 --- /dev/null +++ b/11-InterruptsHandling/result/start-uboot.txt @@ -0,0 +1,90 @@ +U-Boot SPL 2019.04-armbian (Dec 01 2019 - 12:47:04 +0200) +DRAM: 512 MiB +Trying to boot from MMC1 + + +U-Boot 2019.04-armbian (Dec 01 2019 - 12:47:04 +0200) Allwinner Technology + +CPU: Allwinner H3 (SUN8I 1680) +Model: Xunlong Orange Pi One +DRAM: 512 MiB +MMC: mmc@1c0f000: 0 +Loading Environment from EXT4... ** File not found /boot/boot.env ** + +** Unable to read "/boot/boot.env" from mmc0:1 ** +In: serial +Out: serial +Err: serial +Net: phy interface0 +eth0: ethernet@1c30000 +** Reading file would overwrite reserved memory ** +There is no valid bmp file at the given address +starting USB... +USB0: USB EHCI 1.00 +USB1: USB OHCI 1.0 +USB2: USB EHCI 1.00 +USB3: USB OHCI 1.0 +scanning bus 0 for devices... 1 USB Device(s) found +scanning bus 1 for devices... 1 USB Device(s) found +scanning bus 2 for devices... 1 USB Device(s) found +scanning bus 3 for devices... 1 USB Device(s) found + scanning usb for storage devices... 0 Storage Device(s) found +Autoboot in 1 seconds, press to stop +switch to partitions #0, OK +mmc0 is current device +Scanning mmc 0:1... +Found U-Boot script /boot/boot.scr +3798 bytes read in 2 ms (1.8 MiB/s) +## Executing script at 43100000 +U-boot loaded from SD +Boot script loaded from mmc +251 bytes read in 2 ms (122.1 KiB/s) +6842649 bytes read in 332 ms (19.7 MiB/s) +7430672 bytes read in 360 ms (19.7 MiB/s) +Found mainline kernel configuration +29878 bytes read in 10 ms (2.8 MiB/s) +374 bytes read in 8 ms (44.9 KiB/s) +Applying kernel provided DT overlay sun8i-h3-i2c0.dtbo +274 bytes read in 3 ms (88.9 KiB/s) +Applying user provided DT overlay fake_module.dtbo +879 bytes read in 3 ms (286.1 KiB/s) +Applying user provided DT overlay mpu6050.dtbo +4155 bytes read in 4 ms (1013.7 KiB/s) +Applying kernel provided DT fixup script (sun8i-h3-fixup.scr) +## Executing script at 44000000 +## Loading init Ramdisk from Legacy Image at 43300000 ... + Image Name: uInitrd + Image Type: ARM Linux RAMDisk Image (gzip compressed) + Data Size: 6842585 Bytes = 6.5 MiB + Load Address: 00000000 + Entry Point: 00000000 + Verifying Checksum ... OK +## Flattened Device Tree blob at 43000000 + Booting using the fdt blob at 0x43000000 +EHCI failed to shut down host controller. + Loading Ramdisk to 49979000, end 49fff8d9 ... OK + Loading Device Tree to 49909000, end 49978fff ... OK + +Starting kernel ... + +Uncompressing Linux... done, booting the kernel. +Loading, please wait... +Starting version 241 +Begin: Loading essential drivers ... done. +Begin: Running /scripts/init-premount ... done. +Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. +Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems +done. +Begin: Will now check root file system ... fsck from util-linux 2.33.1 +[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1 +/dev/mmcblk0p1: clean, 37593/228928 files, 294183/912384 blocks +done. +done. +Begin: Running /scripts/local-bottom ... done. +Begin: Running /scripts/init-bottom ... done. + +Welcome to Debian GNU/Linux 10 (buster)! + +[ OK ] Reached target Swap. +[ OK ] Listening on Journal Socket. +[ OK ] Created slice system-getty.slice.