https://ftp.gnu.org/gnu/make/make-3.81.tar.gz
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I. -I. -I./glob -g -O2 -c vpath.c
source='hash.c' object='hash.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./config/depcomp \
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I. -I. -I./glob -g -O2 -c hash.c
gcc -g -O2 -o make ar.o arscan.o commands.o default.o dir.o expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o read.o remake.o remote-stub.o rule.o signame.o strcache.o variable.o version.o vpath.o hash.o glob/libglob.a
glob/libglob.a(glob.o): In function `glob_in_dir':
/opt/make/make-3.81/glob/glob.c:1361: undefined reference to `__alloca'
/opt/make/make-3.81/glob/glob.c:1336: undefined reference to `__alloca'
/opt/make/make-3.81/glob/glob.c:1277: undefined reference to `__alloca'
/opt/make/make-3.81/glob/glob.c:1250: undefined reference to `__alloca'
glob/libglob.a(glob.o): In function `glob':
/opt/make/make-3.81/glob/glob.c:575: undefined reference to `__alloca'
glob/libglob.a(glob.o):/opt/make/make-3.81/glob/glob.c:726: more undefined references to `__alloca' follow
collect2: error: ld returned 1 exit status
Makefile:410: recipe for target 'make' failed
make[2]: *** [make] Error 1
make[2]: Leaving directory '/opt/make/make-3.81'
Makefile:603: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/opt/make/make-3.81'
Makefile:326: recipe for target 'all' failed
make: *** [all] Error 2
glob/glob.c
# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
# define ELIDE_CODE
# endif
#endif
修改为:
# if _GNU_GLOB_INTERFACE_VERSION >= GLOB_INTERFACE_VERSION
# define ELIDE_CODE
# endif
#endif
sudo apt-get install \
libtool openssh-server samba git-core g++ make diffstat subversion gawk chrpath libsm6 libxrender1 \
gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev \
lib32z1 lib32ncurses5 x11proto-core-dev libx11-dev libreadline-gplv2-dev lib32z1-dev libelf-dev -y
另外我分区这里我发现这个ubi0_5分区剩余空间过小会造成机器重新启动,比如只有剩余空间1MB什么
离线
longan 如何检查端口复用:
mount -t debugfs none /sys/kernel/debug;
看 PB/PC/PD/PE/PF/PG/PH/PI/PJ/PK:
cat /sys/kernel/debug/pinctrl/2000000.pinctrl/pinmux-pins
看PL/PM组:
cat /sys/kernel/debug/pinctrl/7025000.pinctrl/pinmux-pins
root@dragonboard:~# cat /sys/kernel/debug/pinctrl/2000000.pinctrl/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner|gpio_owner (strict) hog?
pin 32 (PB0): GPIO 2000000.pinctrl:32
pin 33 (PB1): GPIO 2000000.pinctrl:33
pin 34 (PB2): UNCLAIMED
pin 35 (PB3): UNCLAIMED
pin 36 (PB4): device 2532000.i2s0_plat function i2s0_mclk group PB4
pin 37 (PB5): device 2532000.i2s0_plat function i2s0_bclk group PB5
pin 38 (PB6): device 2532000.i2s0_plat function i2s0_lrck group PB6
pin 39 (PB7): device 2532000.i2s0_plat function i2s0_dout0 group PB7
pin 40 (PB8): device 2532000.i2s0_plat function i2s0_din0 group PB8
pin 41 (PB9): UNCLAIMED
pin 42 (PB10): UNCLAIMED
pin 64 (PC0): UNCLAIMED
pin 65 (PC1): UNCLAIMED
pin 66 (PC2): UNCLAIMED
pin 67 (PC3): UNCLAIMED
pin 68 (PC4): UNCLAIMED
pin 69 (PC5): UNCLAIMED
pin 70 (PC6): UNCLAIMED
pin 71 (PC7): UNCLAIMED
pin 72 (PC8): UNCLAIMED
pin 73 (PC9): UNCLAIMED
pin 74 (PC10): UNCLAIMED
pin 75 (PC11): UNCLAIMED
pin 76 (PC12): UNCLAIMED
pin 77 (PC13): UNCLAIMED
pin 78 (PC14): UNCLAIMED
pin 79 (PC15): UNCLAIMED
pin 80 (PC16): UNCLAIMED
pin 96 (PD0): UNCLAIMED
pin 97 (PD1): UNCLAIMED
pin 98 (PD2): UNCLAIMED
pin 99 (PD3): UNCLAIMED
pin 100 (PD4): UNCLAIMED
pin 101 (PD5): UNCLAIMED
pin 102 (PD6): UNCLAIMED
pin 103 (PD7): UNCLAIMED
pin 104 (PD8): UNCLAIMED
pin 105 (PD9): UNCLAIMED
pin 106 (PD10): UNCLAIMED
pin 107 (PD11): UNCLAIMED
pin 108 (PD12): UNCLAIMED
pin 109 (PD13): UNCLAIMED
pin 110 (PD14): UNCLAIMED
pin 111 (PD15): UNCLAIMED
pin 112 (PD16): UNCLAIMED
pin 113 (PD17): UNCLAIMED
pin 114 (PD18): UNCLAIMED
pin 115 (PD19): UNCLAIMED
pin 116 (PD20): UNCLAIMED
pin 117 (PD21): UNCLAIMED
pin 118 (PD22): UNCLAIMED
pin 119 (PD23): UNCLAIMED
pin 128 (PE0): UNCLAIMED
pin 129 (PE1): UNCLAIMED
pin 130 (PE2): GPIO 2000000.pinctrl:130
pin 131 (PE3): UNCLAIMED
pin 132 (PE4): UNCLAIMED
pin 133 (PE5): UNCLAIMED
pin 134 (PE6): GPIO 2000000.pinctrl:134
pin 135 (PE7): GPIO 2000000.pinctrl:135
pin 136 (PE8): GPIO 2000000.pinctrl:136
pin 137 (PE9): GPIO 2000000.pinctrl:137
pin 138 (PE10): UNCLAIMED
pin 139 (PE11): UNCLAIMED
pin 140 (PE12): UNCLAIMED
pin 141 (PE13): UNCLAIMED
pin 142 (PE14): UNCLAIMED
pin 143 (PE15): GPIO 2000000.pinctrl:143
pin 160 (PF0): device 4020000.sdmmc function jtag group PF0
pin 161 (PF1): device 4020000.sdmmc function jtag group PF1
pin 162 (PF2): device 4020000.sdmmc function uart0 group PF2
pin 163 (PF3): device 4020000.sdmmc function jtag group PF3
pin 164 (PF4): device 4020000.sdmmc function uart0 group PF4
pin 165 (PF5): device 4020000.sdmmc function jtag group PF5
pin 166 (PF6): GPIO 2000000.pinctrl:166
pin 192 (PG0): device 4021000.sdmmc function gpio_in group PG0
pin 193 (PG1): device 4021000.sdmmc function gpio_in group PG1
pin 194 (PG2): device 4021000.sdmmc function gpio_in group PG2
pin 195 (PG3): device 4021000.sdmmc function gpio_in group PG3
pin 196 (PG4): device 4021000.sdmmc function gpio_in group PG4
pin 197 (PG5): device 4021000.sdmmc function gpio_in group PG5
pin 198 (PG6): device 2501000.uart function uart1 group PG6
pin 199 (PG7): device 2501000.uart function uart1 group PG7
pin 200 (PG8): device 2501000.uart function uart1 group PG8
pin 201 (PG9): device 2501000.uart function uart1 group PG9
pin 202 (PG10): UNCLAIMED
pin 203 (PG11): device 2533000.i2s1_plat function io_disabled group PG11
pin 204 (PG12): device 2533000.i2s1_plat function io_disabled group PG12
pin 205 (PG13): device 2533000.i2s1_plat function io_disabled group PG13
pin 206 (PG14): device 2533000.i2s1_plat function io_disabled group PG14
pin 224 (PH0): UNCLAIMED
pin 225 (PH1): UNCLAIMED
pin 226 (PH2): UNCLAIMED
pin 227 (PH3): UNCLAIMED
pin 228 (PH4): UNCLAIMED
pin 229 (PH5): UNCLAIMED
pin 230 (PH6): UNCLAIMED
pin 231 (PH7): UNCLAIMED
pin 232 (PH8): UNCLAIMED
pin 233 (PH9): UNCLAIMED
pin 234 (PH10): UNCLAIMED
pin 235 (PH11): UNCLAIMED
pin 236 (PH12): UNCLAIMED
pin 237 (PH13): UNCLAIMED
pin 238 (PH14): GPIO 2000000.pinctrl:238
pin 239 (PH15): UNCLAIMED
pin 240 (PH16): UNCLAIMED
pin 241 (PH17): UNCLAIMED
pin 242 (PH18): UNCLAIMED
pin 243 (PH19): UNCLAIMED
pin 256 (PI0): UNCLAIMED
pin 257 (PI1): UNCLAIMED
pin 258 (PI2): UNCLAIMED
pin 259 (PI3): UNCLAIMED
pin 260 (PI4): UNCLAIMED
pin 261 (PI5): UNCLAIMED
pin 262 (PI6): UNCLAIMED
pin 263 (PI7): UNCLAIMED
pin 264 (PI8): UNCLAIMED
pin 265 (PI9): UNCLAIMED
pin 266 (PI10): UNCLAIMED
pin 267 (PI11): UNCLAIMED
pin 268 (PI12): UNCLAIMED
pin 269 (PI13): UNCLAIMED
pin 270 (PI14): UNCLAIMED
pin 271 (PI15): UNCLAIMED
pin 272 (PI16): UNCLAIMED
pin 288 (PJ0): UNCLAIMED
pin 289 (PJ1): UNCLAIMED
pin 290 (PJ2): UNCLAIMED
pin 291 (PJ3): UNCLAIMED
pin 292 (PJ4): UNCLAIMED
pin 293 (PJ5): UNCLAIMED
pin 294 (PJ6): UNCLAIMED
pin 295 (PJ7): UNCLAIMED
pin 296 (PJ8): UNCLAIMED
pin 297 (PJ9): UNCLAIMED
pin 298 (PJ10): UNCLAIMED
pin 299 (PJ11): UNCLAIMED
pin 300 (PJ12): UNCLAIMED
pin 301 (PJ13): UNCLAIMED
pin 302 (PJ14): UNCLAIMED
pin 303 (PJ15): UNCLAIMED
pin 304 (PJ16): UNCLAIMED
pin 305 (PJ17): UNCLAIMED
pin 306 (PJ18): UNCLAIMED
pin 307 (PJ19): UNCLAIMED
pin 308 (PJ20): UNCLAIMED
pin 309 (PJ21): UNCLAIMED
pin 310 (PJ22): UNCLAIMED
pin 311 (PJ23): UNCLAIMED
pin 312 (PJ24): UNCLAIMED
pin 313 (PJ25): UNCLAIMED
pin 314 (PJ26): UNCLAIMED
pin 315 (PJ27): UNCLAIMED
pin 320 (PK0): UNCLAIMED
pin 321 (PK1): UNCLAIMED
pin 322 (PK2): UNCLAIMED
pin 323 (PK3): UNCLAIMED
pin 324 (PK4): UNCLAIMED
pin 325 (PK5): UNCLAIMED
pin 326 (PK6): UNCLAIMED
pin 327 (PK7): UNCLAIMED
pin 328 (PK8): UNCLAIMED
pin 329 (PK9): UNCLAIMED
pin 330 (PK10): UNCLAIMED
pin 331 (PK11): UNCLAIMED
pin 332 (PK12): UNCLAIMED
pin 333 (PK13): UNCLAIMED
pin 334 (PK14): UNCLAIMED
pin 335 (PK15): UNCLAIMED
pin 336 (PK16): UNCLAIMED
pin 337 (PK17): UNCLAIMED
pin 338 (PK18): UNCLAIMED
pin 339 (PK19): UNCLAIMED
pin 340 (PK20): UNCLAIMED
pin 341 (PK21): UNCLAIMED
pin 342 (PK22): UNCLAIMED
pin 343 (PK23): UNCLAIMED
pin 344 (PK24): UNCLAIMED
pin 345 (PK25): UNCLAIMED
root@dragonboard:~# cat /sys/kernel/debug/pinctrl/7025000.pinctrl/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner|gpio_owner (strict) hog?
pin 352 (PL0): device 7083000.twi function s_twi0 group PL0
pin 353 (PL1): device 7083000.twi function s_twi0 group PL1
pin 354 (PL2): UNCLAIMED
pin 355 (PL3): UNCLAIMED
pin 356 (PL4): UNCLAIMED
pin 357 (PL5): UNCLAIMED
pin 358 (PL6): UNCLAIMED
pin 359 (PL7): GPIO 7025000.pinctrl:359
pin 360 (PL8): UNCLAIMED
pin 361 (PL9): UNCLAIMED
pin 362 (PL10): UNCLAIMED
pin 363 (PL11): UNCLAIMED
pin 364 (PL12): UNCLAIMED
pin 365 (PL13): UNCLAIMED
pin 384 (PM0): GPIO 7025000.pinctrl:384
pin 385 (PM1): GPIO 7025000.pinctrl:385
pin 386 (PM2): GPIO 7025000.pinctrl:386
pin 387 (PM3): UNCLAIMED
pin 388 (PM4): UNCLAIMED
pin 389 (PM5): UNCLAIMED
离线
linux还是安桌?
离线