Actions
Raspbian GNU/Linux on Raspberry Pi¶
serial consoleのpin配置¶
よく忘れるのでserial console接続のためのpin配置の以下にメモ。他の詳細はこちら を見ること。
- pin6: GND
- pin8: TXD
- pin10: RXS
boot時のconsole出力¶
モデルはB。B+じゃありません。
Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.10.25+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [ 0.000000] Machine: BCM2708 [ 0.000000] cma: CMA: reserved 16 MiB at 1b000000 [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 113792 [ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0x636080e2 smsc95xx.macaddr=B8:27:EB:60:80:E2 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 448MB = 448MB total [ 0.000000] Memory: 431652k/431652k available, 27100k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB) [ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc05727b4 (5546 kB) [ 0.000000] .init : 0xc0573000 - 0xc0597424 ( 146 kB) [ 0.000000] .data : 0xc0598000 - 0xc05d0870 ( 227 kB) [ 0.000000] .bss : 0xc05d0870 - 0xc067c3e0 ( 687 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:330 [ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms [ 0.000000] Switching to timer-based delay loop [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] console [tty1] enabled [ 0.001180] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000) [ 0.001248] pid_max: default: 32768 minimum: 301 [ 0.001719] Mount-cache hash table entries: 512 [ 0.002524] Initializing cgroup subsys memory [ 0.002636] Initializing cgroup subsys devices [ 0.002677] Initializing cgroup subsys freezer [ 0.002712] Initializing cgroup subsys blkio [ 0.002872] CPU: Testing write buffer coherency: ok [ 0.003349] Setting up static identity map for 0xc0406048 - 0xc04060a4 [ 0.005184] devtmpfs: initialized [ 0.019574] NET: Registered protocol family 16 [ 0.025519] DMA: preallocated 4096 KiB pool for atomic coherent allocations [ 0.026638] bcm2708.uart_clock = 0 [ 0.028368] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. [ 0.028423] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.028463] mailbox: Broadcom VideoCore Mailbox driver [ 0.028563] bcm2708_vcio: mailbox at f200b880 [ 0.028672] bcm_power: Broadcom power driver [ 0.028713] bcm_power_open() -> 0 [ 0.028741] bcm_power_request(0, 8) [ 0.529460] bcm_mailbox_read -> 00000080, 0 [ 0.529504] bcm_power_request -> 0 [ 0.529731] Serial: AMBA PL011 UART driver [ 0.529893] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3 [ 0.872025] console [ttyAMA0] enabled [ 0.897974] bio: create slab <bio-0> at 0 [ 0.903298] SCSI subsystem initialized [ 0.907272] usbcore: registered new interface driver usbfs [ 0.912991] usbcore: registered new interface driver hub [ 0.918567] usbcore: registered new device driver usb [ 0.925161] Switching to clocksource stc [ 0.929503] FS-Cache: Loaded [ 0.932678] CacheFiles: Loaded [ 0.948452] NET: Registered protocol family 2 [ 0.953873] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 0.961140] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.967665] TCP: Hash tables configured (established 4096 bind 4096) [ 0.974140] TCP: reno registered [ 0.977399] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.983309] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.990053] NET: Registered protocol family 1 [ 0.994979] RPC: Registered named UNIX socket transport module. [ 1.001042] RPC: Registered udp transport module. [ 1.005769] RPC: Registered tcp transport module. [ 1.010520] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.017866] bcm2708_dma: DMA manager at f2007000 [ 1.022684] bcm2708_gpio: bcm2708_gpio_probe c05a5e50 [ 1.028138] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB) [ 1.037528] audit: initializing netlink socket (disabled) [ 1.043205] type=2000 audit(0.890:1): initialized [ 1.205009] VFS: Disk quotas dquot_6.5.2 [ 1.209410] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.218261] FS-Cache: Netfs 'nfs' registered for caching [ 1.224995] NFS: Registering the id_resolver key type [ 1.230286] Key type id_resolver registered [ 1.234499] Key type id_legacy registered [ 1.239320] msgmni has been set to 875 [ 1.245190] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 1.253041] io scheduler noop registered [ 1.257003] io scheduler deadline registered (default) [ 1.262592] io scheduler cfq registered [ 1.266735] bcm2708_fb_debugfs_init: could not create debugfs entry [ 1.274316] BCM2708FB: allocated DMA memory 5b400000 [ 1.279473] BCM2708FB: allocated DMA channel 0 @ f2007000 [ 1.305843] Console: switching to colour frame buffer device 82x26 [ 1.316007] uart-pl011 dev:f1: no DMA platform data [ 1.322416] kgdb: Registered I/O driver kgdboc. [ 1.328968] vc-cma: Videocore CMA driver [ 1.334317] vc-cma: vc_cma_base = 0x00000000 [ 1.340420] vc-cma: vc_cma_size = 0x00000000 (0 MiB) [ 1.347108] vc-cma: vc_cma_initial = 0x00000000 (0 MiB) [ 1.363130] brd: module loaded [ 1.372749] loop: module loaded [ 1.377436] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0 [ 1.386569] Loading iSCSI transport class v2.0-870. [ 1.394003] usbcore: registered new interface driver smsc95xx [ 1.401562] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.608802] Core Release: 2.80a [ 1.613299] Setting default values for core params [ 1.619389] Finished setting default values for core params [ 1.826255] Using Buffer DMA mode [ 1.830883] Periodic Transfer Interrupt Enhancement - disabled [ 1.837979] Multiprocessor Interrupt Enhancement - disabled [ 1.844818] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 1.850481] Dedicated Tx FIFOs mode [ 1.856022] dwc_otg bcm2708_usb: DWC OTG Controller [ 1.862308] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1 [ 1.870922] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000 [ 1.877706] Init: Port Power? op_state=1 [ 1.882993] Init: Power Port (0) [ 1.887627] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.895839] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.904473] usb usb1: Product: DWC OTG Controller [ 1.910585] usb usb1: Manufacturer: Linux 3.10.25+ dwc_otg_hcd [ 1.917787] usb usb1: SerialNumber: bcm2708_usb [ 1.924466] hub 1-0:1.0: USB hub found [ 1.929678] hub 1-0:1.0: 1 port detected [ 1.935744] usbcore: registered new interface driver usb-storage [ 1.943558] mousedev: PS/2 mouse device common for all mice [ 1.951200] bcm2835-cpufreq: min=700000 max=700000 cur=700000 [ 1.958407] bcm2835-cpufreq: switching to governor powersave [ 1.965463] bcm2835-cpufreq: switching to governor powersave [ 1.972430] cpuidle: using governor ladder [ 1.977750] cpuidle: using governor menu [ 1.982941] sdhci: Secure Digital Host Controller Interface driver [ 1.990408] sdhci: Copyright(c) Pierre Ossman [ 1.996054] sdhci: Enable low-latency mode [ 2.039195] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA [ 2.049680] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77 [ 2.056926] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.064080] ledtrig-cpu: registered to indicate activity on CPUs [ 2.073670] hidraw: raw HID events driver (C) Jiri Kosina [ 2.088019] usbcore: registered new interface driver usbhid [ 2.095061] usbhid: USB HID core driver [ 2.104908] TCP: cubic registered [ 2.111661] Initializing XFRM netlink socket [ 2.119382] NET: Registered protocol family 17 [ 2.125361] Key type dns_resolver registered [ 2.134321] Indeed it is in host mode hprt0 = 00021501 [ 2.141310] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 [ 2.169971] registered taskstats version 1 [ 2.179574] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 2.199552] Waiting for root device /dev/mmcblk0p2... [ 2.211339] mmc0: read SD Status register (SSR) after 2 attempts [ 2.239232] mmc0: new high speed SDHC card at address 59b4 [ 2.258880] mmcblk0: mmc0:59b4 SDU1 29.9 GiB [ 2.266527] mmcblk0: p1 p2 [ 2.329467] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 2.340627] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 2.351521] devtmpfs: mounted [ 2.356431] Freeing unused kernel memory: 144K (c0573000 - c0597000) [ 2.369249] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 2.377422] Indeed it is in host mode hprt0 = 00001101 [ 2.580056] usb 1-1: New USB device found, idVendor=0424, idProduct=9514 [ 2.588466] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 2.601922] hub 1-1:1.0: USB hub found [ 2.607674] hub 1-1:1.0: 5 ports detected [ 2.889475] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 3.000089] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00 [ 3.008642] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.036072] smsc95xx v1.0.4 [ 3.105040] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:60:80:e2 [ 3.923739] udevd[156]: starting version 175 [ 5.900469] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory [ 9.284667] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 9.754429] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 15.404045] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. ?? Raspbian GNU/Linux 7 raspberrypi ttyAMA0 raspberrypi login:
build-in login account¶
- login: pi
- password: raspberry
Updated by Tsutomu KIMURA almost 10 years ago · 7 revisions locked