-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImportantThings
149 lines (113 loc) · 4.42 KB
/
ImportantThings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
Debian: 9.5 2018-10-07
Distribution: Debian 9.5 2018-10-07 4GB SD IoT auf die SD-Karte
----------------------------------------------------------
RESIZE Image:
https://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD
sudo su
fdisk /dev/mmcblk0 d 2 n p 2 w (z.B. 8192 merken)
reboot
sudo su (after reboot is complete)
resize2fs /dev/mmcblk0p1
-----------------------------------------------------------
UPDATING/UPGRADING System:
apt-get udate
apt-get upgrade
-----------------------------------------------------------
GET NEEDED Helpers:
git clone https://github.com/derekmolloy/exploringBB.git
http://www.embedded-things.com/bbb/beaglebone-black-pin-mux-spreadsheet/
https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP8HeaderTable.pdf
https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP9HeaderTable.pdf
-----------------------------------------------------------
Using Overlays for PINMUX:
NOTE:
If you have an boot partition and an uEnv.txt on emmc and you boot from SD-Card and the changes will not appear => disable the emmc.
CREATE OWN-GPIO uboot-overlay (ALR-GPIO-MUX-00A0.dtbo):
https:///github.com/beagleboard/bb.org-overlays.git => install.sh
cd /home/debian/exploringBB/chp06/overlay/ => create Pinmux for GPIO-Pins, than build and copy to /lib/firmware
sudo reboot => check COM0 with serial-usb cable
cd /sys/devices/platform/ocp/ocp:gpio_helper/ => check if gpio_helper is present
###Overide capes with eeprom
uboot_overlay_addr0=/lib/firmware/ALR-GPIO-MUX-00A0.dtbo
uboot_overlay_addr1=/lib/firmware/BB-SPIDEV1-00A0.dtbo
uboot_overlay_addr2=/lib/firmware/BB-UART1-00A0.dtbo
uboot_overlay_addr3=/lib/firmware/BB-UART4-00A0.dtbo
###
###Additional custom capes
uboot_overlay_addr4=/lib/firmware/BB-I2C1-00A0.dtbo
uboot_overlay_addr5=/lib/firmware/BB-I2C2-00A0.dtbo
#uboot_overlay_addr6=/lib/firmware/.dtbo
#uboot_overlay_addr7=/lib/firmware/.dtbo
###
###Custom Cape
#dtb_overlay=/lib/firmware/<file>.dtbo
#enable-uboot-overlay-universal=1 => disable!!!
only for Robot-Cape:
https://github.com/StrawsonDesign/librobotcontrol.git
=> edit Pinmux for Robotcape, to get on HDMI....
-----------
another way:
OR USE enable-uboot-overlay-universal=1
config-pin -l P9_25
config-pin p9_25 gpio
etc...
-----------
Check the result with:
cat /sys/kernel/debug/pinctrl/44e10800.pinmux-pinctrl-single/pinmux-pins
cat /sys/kernel/debug/pinctrl/44e10800.pinmux-pinctrl-single/pins
-----------------------------------------------------------
GPIOS:
Nevertheless the PINMUX it is necessary to configure the GPIO-Block:
cd /sys/class/gpio/
echo 60 (P9.12) > export
cd gpio60
echo out > direction
echo 1 > value
-----------------------------------------------------------
network mount device
Linux PC:
mkdir /mnt/beagleroot
192.168.21.142:/ /mnt/beagleroot nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0 (Linux-PC in /etc/fstab)
Beaglebone:
-----------------------------------------------------------
CodeComposer Debugging:
apt-get install gdbserver (on Beaglebone)
apt-get install gdb-multiarch (on linux-PC)
create .gdbinit in work directory
including text "set architecture arm" in .gdbinit
preparing Eclipse following instructions on exploring Beaglebone Site266 "Remote Debugging"
-----------------------------------------------------------
I2C-Tools:
apt-get update
apt-get install i2c-tools
i2cdetect -l => list all devices
i2cdetect -F 1 => list the i2c1 commands
i2cdetect -r 1 => read the i2c1 Addresses till 70
/sys/devices/platform/ocp/44e0b000.i2c/i2c-1
-----------------------------------------------------------
USR-LEDS:
cd /sys/class/leds/beaglebone:green:usr1
echo 1 >> brightness
or
echo 0 >> brightness
note: let usr0 left for indicating network-communication
-----------------------------------------------------------
GIT:
git init
git add file or dir
git commit -m "text"
git remote add origin https://github.com/loethansel/BB-Files-Alarmsystem.git
git push origin master
Username for 'https://github.com': loethansel
Password for 'https://loethansel@github.com': ************
retoure:
git clone https://github.com/loethansel/BB-Files-Alarmsystem.git
saving in progress:
git add ImportantThings
git add /Alarmsystem
git commit -m "text"
git push origin master
-----------------------------------------------------------
Program Execution:
sudo ./Alarmsystem & (sudo: necessary for modifying gpio direction)
-----------------------------------------------------------