{"id":3608,"date":"2013-05-17T15:07:42","date_gmt":"2013-05-17T14:07:42","guid":{"rendered":"http:\/\/www.blaess.fr\/christophe\/?p=3608"},"modified":"2013-05-17T16:14:00","modified_gmt":"2013-05-17T15:14:00","slug":"console-serie-de-debug-pour-beaglebone-black","status":"publish","type":"post","link":"https:\/\/www.blaess.fr\/christophe\/2013\/05\/17\/console-serie-de-debug-pour-beaglebone-black\/","title":{"rendered":"Console s\u00e9rie de debug pour BeagleBone Black"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.blaess.fr\/christophe\/wp-content\/uploads\/2013\/05\/img-01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-3609\" alt=\"BeagleBone Black Serial Debug\" src=\"http:\/\/www.blaess.fr\/christophe\/wp-content\/uploads\/2013\/05\/img-01.jpg\" width=\"200\" height=\"150\" \/><\/a>Si vous d\u00e9sirez voir les messages de boot du noyau Linux, ou vous connecter sur l&rsquo;interface du <em>bootloader<\/em> Uboot, ou encore ouvrir une console texte d&rsquo;administration rapidement, vous pouvez facilement employer le connecteur <em>Serial Debug<\/em> du <strong>BeagleBone Black<\/strong>.<\/p>\n<p style=\"text-align: justify;\"><!--more--><\/p>\n<p style=\"text-align: justify;\"><strong>Attention !<\/strong> Comme c&rsquo;est souvent le cas, ce connecteur vous pr\u00e9sente directement les signaux de l&rsquo;UART 0 du microprocesseur, sans conversion de niveau. Aussi les signaux sont-ils en [0, +3.3V].<\/p>\n<p style=\"text-align: justify;\">Pour ouvrir une console s\u00e9rie sur votre h\u00f4te de d\u00e9veloppement, vous utiliserez probablement un petit adaptateur USB-FTDI. Je vous avais pr\u00e9sent\u00e9 celui que j&rsquo;utilise pour le Raspberry Pi dans <a title=\"C\u00e2ble RS-232 pour Raspberry Pi\" href=\"http:\/\/www.blaess.fr\/christophe\/2012\/10\/26\/cable-rs-232-pour-raspberry-pi\/\">cet article<\/a>. Pour le r\u00e9utiliser, vous devrez connecter les 3 broches suivantes du port <em>Serial Debug<\/em>.<\/p>\n<ul>\n<li style=\"text-align: justify;\"><strong>broche num\u00e9ro 1<\/strong> identifi\u00e9e J1 sur le circuit imprim\u00e9 (celle se trouvant du c\u00f4t\u00e9 de la prise Ethernet RJ-45) : <strong>masse<\/strong> (c\u00e2ble noir)<\/li>\n<li style=\"text-align: justify;\"><strong>broche num\u00e9ro 4<\/strong> : <strong>RX<\/strong> de l&rsquo;UART0 : c\u00e2ble vert.<\/li>\n<li style=\"text-align: justify;\"><strong>broche num\u00e9ro 5<\/strong> : <strong>TX<\/strong> de l&rsquo;UART0 : c\u00e2ble blanc.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><a href=\"http:\/\/www.blaess.fr\/christophe\/wp-content\/uploads\/2013\/05\/img-02.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3610\" alt=\"BeagleBone Black Serial Debug\" src=\"http:\/\/www.blaess.fr\/christophe\/wp-content\/uploads\/2013\/05\/img-02-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.blaess.fr\/christophe\/wp-content\/uploads\/2013\/05\/img-02-300x225.jpg 300w, https:\/\/www.blaess.fr\/christophe\/wp-content\/uploads\/2013\/05\/img-02.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">La configuration de votre terminal (par exemple <code>minicom<\/code>) sera : <strong>115200 bits\/secondes, 8 bits de donn\u00e9es, pas de parit\u00e9, 1 bit d&rsquo;arr\u00eat<\/strong>.<\/p>\n<p style=\"text-align: justify;\">Voici une trace de boot de la distribution <strong>\u00c5ngstr\u00f6m<\/strong> incluse dans la m\u00e9moire EMMC du BeagleBone Black.<\/p>\n<pre>U-Boot SPL 2013.04-rc1-14237-g90639fe-dirty (Apr 13 2013 - 13:57:11)\r\nmusb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)\r\nmusb-hdrc: MHDRC RTL version 2.0 \r\nmusb-hdrc: setup fifo_mode 4\r\nmusb-hdrc: 28\/31 max ep, 16384\/16384 memory\r\nUSB Peripheral mode controller at 47401000 using PIO, IRQ 0\r\nmusb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)\r\nmusb-hdrc: MHDRC RTL version 2.0 \r\nmusb-hdrc: setup fifo_mode 4\r\nmusb-hdrc: 28\/31 max ep, 16384\/16384 memory\r\nUSB Host mode controller at 47401800 using PIO, IRQ 0\r\nOMAP SD\/MMC: 0\r\nmmc_send_cmd : timeout: No status update\r\nreading u-boot.img\r\nreading u-boot.img\r\n\r\nU-Boot 2013.04-rc1-14237-g90639fe-dirty (Apr 13 2013 - 13:57:11)\r\n\r\nI2C:   ready\r\nDRAM:  512 MiB\r\nWARNING: Caches not enabled\r\nNAND:  No NAND device found!!!\r\n0 MiB\r\nMMC:   OMAP SD\/MMC: 0, OMAP SD\/MMC: 1\r\n*** Warning - readenv() failed, using default environment\r\n\r\nmusb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)\r\nmusb-hdrc: MHDRC RTL version 2.0 \r\nmusb-hdrc: setup fifo_mode 4\r\nmusb-hdrc: 28\/31 max ep, 16384\/16384 memory\r\nUSB Peripheral mode controller at 47401000 using PIO, IRQ 0\r\nmusb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)\r\nmusb-hdrc: MHDRC RTL version 2.0 \r\nmusb-hdrc: setup fifo_mode 4\r\nmusb-hdrc: 28\/31 max ep, 16384\/16384 memory\r\nUSB Host mode controller at 47401800 using PIO, IRQ 0\r\nNet:    not set. Validating first E-fuse MAC\r\ncpsw, usb_ether\r\nHit any key to stop autoboot:  0 \r\ngpio: pin 53 (gpio 53) value is 1\r\nmmc_send_cmd : timeout: No status update\r\nCard did not respond to voltage select!\r\nmmc0(part 0) is current device\r\nmmc_send_cmd : timeout: No status update\r\nCard did not respond to voltage select!\r\nNo micro SD card found, setting mmcdev to 1\r\nmmc_send_cmd : timeout: No status update\r\nmmc1(part 0) is current device\r\nmmc_send_cmd : timeout: No status update\r\ngpio: pin 54 (gpio 54) value is 1\r\nSD\/MMC found on device 1\r\nreading uEnv.txt\r\n14 bytes read in 4 ms (2.9 KiB\/s)\r\nLoaded environment from uEnv.txt\r\nImporting environment from mmc ...\r\ngpio: pin 55 (gpio 55) value is 1\r\n4215264 bytes read in 771 ms (5.2 MiB\/s)\r\ngpio: pin 56 (gpio 56) value is 1\r\n22780 bytes read in 36 ms (617.2 KiB\/s)\r\nBooting from mmc ...\r\n## Booting kernel from Legacy Image at 80007fc0 ...\r\n   Image Name:   Angstrom\/3.8.6\/beaglebone\r\n   Image Type:   ARM Linux Kernel Image (uncompressed)\r\n   Data Size:    4215200 Bytes = 4 MiB\r\n   Load Address: 80008000\r\n   Entry Point:  80008000\r\n   Verifying Checksum ... OK\r\n## Flattened Device Tree blob at 80f80000\r\n   Booting using the fdt blob at 0x80f80000\r\n   XIP Kernel Image ... OK\r\nOK\r\n   Using Device Tree in place at 80f80000, end 80f888fb\r\n\r\nStarting kernel ...\r\n\r\nUncompressing Linux... done, booting the kernel.\r\n[    0.106027] pinctrl-single 44e10800.pinmux: prop pinctrl-0 index 0 invalid phandle\r\n[    0.222610] omap2_mbox_probe: platform not supported\r\n[    0.491859] tps65217-bl tps65217-bl: no platform data provided\r\n[    0.574826] bone-capemgr bone_capemgr.8: slot #0: No cape found\r\n[    0.611932] bone-capemgr bone_capemgr.8: slot #1: No cape found\r\n[    0.649041] bone-capemgr bone_capemgr.8: slot #2: No cape found\r\n[    0.686150] bone-capemgr bone_capemgr.8: slot #3: No cape found\r\n[    0.770674] pinctrl-single 44e10800.pinmux: pin 44e1080c already requested by mmc.4; cannot claim for gpio-leds.7\r\n[    0.781499] pinctrl-single 44e10800.pinmux: pin-3 (gpio-leds.7) status -22\r\n[    0.788710] pinctrl-single 44e10800.pinmux: could not request pin 3 on device pinctrl-single\r\n[    6.427019] libphy: PHY 4a101000.mdio:01 not found\r\n[    6.432078] net eth0: phy 4a101000.mdio:01 not found on slave 1\r\nsystemd-fsck[82]: Angstrom: clean, 64453\/112672 files, 338835\/449820 blocks\r\n[    9.810503] systemd-udevd[86]: worker [115] terminated by signal 11 (Segmentation fault)\r\n[    9.836958] systemd-udevd[86]: worker [115] failed while handling '\/devices\/ocp.2\/47400000.usb\/musb-hdrc.0.auto\/gadget\/net\/usb0'\r\n\r\n.---O---.                                           \r\n|       |                  .-.           o o        \r\n|   |   |-----.-----.-----.| |   .----..-----.-----.\r\n|       |     | __  |  ---'| '--.|  .-'|     |     |\r\n|   |   |  |  |     |---  ||  --'|  |  |  '  | | | |\r\n'---'---'--'--'--.  |-----''----''--'  '-----'-'-'-'\r\n                -'  |\r\n                '---'\r\n\r\nThe Angstrom Distribution beaglebone ttyO0\r\n\r\nAngstrom v2012.12 - Kernel 3.8.6\r\n\r\nbeaglebone login: <strong>root<\/strong>\r\nLast login: Sat Jan  1 00:20:38 UTC 2000 on ttyO0\r\nroot@beaglebone:~#<\/pre>\n<p style=\"text-align: right;\">Oui, vous avez bien vu : pas de mot passe pour <em>root<\/em> par d\u00e9faut&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Si vous d\u00e9sirez voir les messages de boot du noyau Linux, ou vous connecter sur l&rsquo;interface du bootloader Uboot, ou encore ouvrir une console texte d&rsquo;administration rapidement, vous pouvez facilement employer le connecteur Serial Debug du BeagleBone Black.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,5,8,10],"tags":[],"class_list":["post-3608","post","type-post","status-publish","format-standard","hentry","category-beagleboneblack","category-embarque","category-linux-2","category-microprocesseur"],"_links":{"self":[{"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/posts\/3608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/comments?post=3608"}],"version-history":[{"count":6,"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/posts\/3608\/revisions"}],"predecessor-version":[{"id":3617,"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/posts\/3608\/revisions\/3617"}],"wp:attachment":[{"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/media?parent=3608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/categories?post=3608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blaess.fr\/christophe\/wp-json\/wp\/v2\/tags?post=3608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}