newhand
    板大您好: 小弟還有些問題,以高通8974平台为例中,會有些 qcom,i2c-bus-freq qcom,sda-gpio 這種屬性,試問這類型的屬性都專屬高通?和我要怎麼知道有這些屬性??
    Device Tree(二):基本概念  发表时间:2015-07-31 12:27
    newhand
    @linuxer:謝謝版主~~~!!
    Device Tree(二):基本概念  发表时间:2015-07-31 08:57
    linuxer
    @newhand:前面已经假设了系统是64bit的,因此reg中的那些bit是按照64bit来解析的: <0x000000000 0x00000000 0x00000000 0x80000000 ------------------------------------ start address (0) length (2G) 0x000000001 0x00000000 0x00000001 0x00000000>; ------------------------------------ start address (4G地址空间开始的位置) length (4G)
    Device Tree(二):基本概念  发表时间:2015-07-30 18:11
    newhand
    假设我们的系统是64bit的,physical memory分成两段,定义如下: RAM: starting address 0x0, length 0x80000000 (2GB) RAM: starting address 0x100000000, length 0x100000000 (4GB) memory@0 { device_type = "memory"; reg = <0x000000000 0x00000000 0x00000000 0x80000000 0x000000001 0x00000000 0x00000001 0x00000000>; }; 為什麼不是 memory@0 { device_type = "memory"; reg = <0x000000000 0x00000000 0x00000000 0x80000000 0x000000001 0x00000000 0x00000001 0x100000000>; }; 第二個不是4G嗎?
    Device Tree(二):基本概念  发表时间:2015-07-30 17:28
    lanbo
    @wowo:有朋友看到你们网站,所以来看看,确认写的是易懂的。坚持!
    Linux设备模型(1)_基本概念  发表时间:2015-07-30 13:22
    rabbiteve
    @wowo:正如你说的,确实是DTB被BSS段覆盖了。 cat arch/arm/boot/zImage arch/arm/boot/dts/dra7-evm.dtb > zImage.dtb ./mkimage -A arm -O linux -C none -T kernel -a 0x80008000 -e 0x80008000 -n 'linux.dra7-evm.ByCxh' -d zImage.dtb uImage.dra7-evm.dtb 然而arch/arm/boot/compressed/: 58 _edata = .; 59 60 . = ALIGN(8); 61 __bss_start = .; 我在__bss_start前面预留段空间给DTB,就正常了: 61 . += 0x20000; /* reserved for dtb */ 62 __bss_start = .; 非常感谢!
    Device Tree(三):代码分析  发表时间:2015-07-30 12:27
    rabbiteve
    @wowo:非常感谢, 我跟下内核最开始的启动代码,看看是否DTB区域被其他软件覆盖。目前我是将DTB放在zImage后面,再打uImage的头部。
    Device Tree(三):代码分析  发表时间:2015-07-30 11:10
    linuxer
    @electrlife:人的精力有限,我们很难维护那么多的内核子系统,GPIO subsystem被抛弃了,不过还是多谢你的建议,在后续写文档的时候,我们会考虑的
    linuxer
    @gzz:针对第一个问题的回答: 我们都知道,在引入linux device model之后,设备节点的创建是通过udev这个userspace的daemon进程捕获内核发送的各种uevent来进行的,这种方法虽然灵活,但是比较耗时,我们曾经进行过嵌入式系统启动过程速度的优化,纵观整个启动过程udev花费的时间不是一个小的数目,因此我们果断干掉udev,使用固定在rootfs中预先建立设备节点的方法 devtmpfs是为了提高启动速度而引入到kernel中,在内核中,各个设备的初始化过程中就已经建立了一个文件系统,在userspace只要进行mount的动作,所有的设备节点就ready了,不需要udev参与了 针对第二个问题的回答: device在add的时候会发送userspace event,包括其在sys目录下的位置,叫做dev path,udev获得这样的信息可以通过那个dev path,那个目录下有关于主次设备节点号的信息(在dev属性文件中),uevent可以通过这样的信息创建,当然,如果支持devtmpfs,那么udev不需要执行这一步,mount devtmpfs之后,所有的设备节点就在那了
    Linux设备模型(3)_Uevent  发表时间:2015-07-30 09:08
    维尼
    @linuxer:我是在操作gpio口的时候用spin_lock_irqsave 用其他同步semaphore或者mutex io都有延迟 或者错误
    Linux内核同步机制之(四):spin lock  发表时间:2015-07-30 08:49

共7862条580/787上一页 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 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 下一页
Copyright @ 2013-2015 蜗窝科技 All rights reserved. Powered by emlog