Category Archives: Uncategorized

Raspberry Pi 3, raspi-config

Configuration tool for the Raspberry Pi

github.com/RPi-Distro/raspi-config (new)
github.com/asb/raspi-config (old)

Manual

raspi-config, raspberrypi.org
RPi raspi-config, elinux.org

$ which raspi-config
/usr/bin/raspi-config

$ file /usr/bin/raspi-config
/usr/bin/raspi-config: POSIX shell script, ASCII text executable

$ sudo cat /proc/device-tree/model
Raspberry Pi 3 Model B Rev 1.2

$ whiptail \
  --title "abc" \
  --backtitle "xyz" \
  --menu "Setup Options" 20 30 10 \
  --cancel-button Finish \
  --ok-button Select \
  "1 abc" "A B C" \
  "2 xyz" "X Y Z" 

INTERACTIVE=True
ASK_TO_REBOOT=0
BLACKLIST=/etc/modprobe.d/raspi-blacklist.conf
CONFIG=/boot/config.txt

#
# Interactive use loop
#
if [ "$INTERACTIVE" = True ]; then
  [ -e $CONFIG ] || touch $CONFIG
  calc_wt_size
  while true; do
      FUN=$(whiptail --title "Raspberry Pi Software Configuration Tool (raspi-config)" --backtitle "$(cat /proc/device-tree/model)" --menu "Setup Options" $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT --cancel-button Finish --ok-button Select \
        "1 Change User Password" "Change password for the current user" \
        "2 Network Options" "Configure network settings" \
        "3 Boot Options" "Configure options for start-up" \
        "4 Localisation Options" "Set up language and regional settings to match your location" \
        "5 Interfacing Options" "Configure connections to peripherals" \
        "6 Overclock" "Configure overclocking for your Pi" \
        "7 Advanced Options" "Configure advanced settings" \
        "8 Update" "Update this tool to the latest version" \
        "9 About raspi-config" "Information about this configuration tool" \
        3>&1 1>&2 2>&3)
    RET=$?
    if [ $RET -eq 1 ]; then
      do_finish
    elif [ $RET -eq 0 ]; then
        case "$FUN" in
          1\ *) do_change_pass ;;
          2\ *) do_network_menu ;;
          3\ *) do_boot_menu ;;
          4\ *) do_internationalisation_menu ;;
          5\ *) do_interface_menu ;;
          6\ *) do_overclock ;;
          7\ *) do_advanced_menu ;;
          8\ *) do_update ;;
          9\ *) do_about ;;
          *) whiptail --msgbox "Programmer error: unrecognized option" 20 60 1 ;;
        esac || whiptail --msgbox "There was an error running option $FUN" 20 60 1
    else
      exit 1
    fi
  done
fi

do_interface_menu() {
  [...]
    "P1 Camera" "Enable/Disable connection to the Raspberry Pi Camera" \
    "P2 SSH" "Enable/Disable remote command line access to your Pi using SSH" \
    "P3 VNC" "Enable/Disable graphical remote access to your Pi using RealVNC" \
    "P4 SPI" "Enable/Disable automatic loading of SPI kernel module" \
    "P5 I2C" "Enable/Disable automatic loading of I2C kernel module" \
    "P6 Serial" "Enable/Disable shell and kernel messages on the serial connection" \
    "P7 1-Wire" "Enable/Disable one-wire interface" \
    "P8 Remote GPIO" "Enable/Disable remote access to GPIO pins" \
  [...]
  elif [ $RET -eq 0 ]; then
    case "$FUN" in
      P1\ *) do_camera ;;
      P2\ *) do_ssh ;;
      P3\ *) do_vnc ;;
      P4\ *) do_spi ;;
      P5\ *) do_i2c ;;
      P6\ *) do_serial ;;
      P7\ *) do_onewire ;;
      P8\ *) do_rgpio ;;
    [...]
  fi
}

Raspberry Pi 3, user & sudo

Linux users
How do I add a user to the “sudo” group?
Change default users on Raspberry Pi

$ sudo adduser andreas

$ sudo usermod -aG sudo andreas
or
$ sudo adduser andreas sudo

$ ls -la /etc/sudoers.d/
total 16
drwxr-xr-x  2 root root 4096 Nov 29 01:29 .
drwxr-xr-x 83 root root 4096 Nov 29 03:15 ..
-r--r-----  1 root root   27 Oct 18  2016 010_pi-nopasswd
-r--r-----  1 root root  958 Jun  5 12:22 README

$ sudo cat /etc/sudoers.d/010_pi-nopasswd
pi ALL=(ALL) NOPASSWD: ALL

$ sudo visudo
[...]
# User privilege specification
root    ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL
andreas ALL=(ALL) NOPASSWD: ALL
[...]

=== Change to 'andreas' ===

$ sudo deluser pi
Removing user `pi' ...
Warning: group `pi' has no more members.
Done.

$ sudo delgroup pi
The group `pi' does not exist.

Raspberry Pi 3, Raspbian Stretch Lite, November 2017

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.59-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1047 SMP Sun Oct 29 12:19:23 GMT 2017
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] cma: Reserved 8 MiB at 0x3ac00000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @ba35b000 s25600 r8192 d23552 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=20586949-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 940364K/970752K available (7168K kernel code, 486K rwdata, 2012K rodata, 1024K init, 770K bss, 22196K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xbb400000   ( 948 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80800000   (8160 kB)
[    0.000000]       .init : 0x80b00000 - 0x80c00000   (1024 kB)
[    0.000000]       .data : 0x80c00000 - 0x80c79834   ( 487 kB)
[    0.000000]        .bss : 0x80c7b000 - 0x80d3b964   ( 771 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000023] Switching to timer-based delay loop, resolution 52ns
[    0.000304] Console: colour dummy device 80x30
[    0.001196] console [tty1] enabled
[    0.001244] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001312] pid_max: default: 32768 minimum: 301
[    0.001643] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001684] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002721] Disabling memory control group subsystem
[    0.002824] CPU: Testing write buffer coherency: ok
[    0.002886] ftrace: allocating 22392 entries in 66 pages
[    0.049983] CPU0: update cpu_capacity 1024
[    0.050036] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.050097] Setting up static identity map for 0x100000 - 0x100034
[    0.051983] CPU1: update cpu_capacity 1024
[    0.051990] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.052676] CPU2: update cpu_capacity 1024
[    0.052683] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.053353] CPU3: update cpu_capacity 1024
[    0.053359] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.053447] Brought up 4 CPUs
[    0.053620] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.053650] CPU: All CPU(s) started in HYP mode.
[    0.053676] CPU: Virtualization extensions available.
[    0.054495] devtmpfs: initialized
[    0.065713] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.066028] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.066089] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.066650] pinctrl core: initialized pinctrl subsystem
[    0.067581] NET: Registered protocol family 16
[    0.069835] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.078721] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.078770] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.078934] Serial: AMBA PL011 UART driver
[    0.080863] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.081417] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.081784] irq: no irq domain found for /soc/aux@0x7e215000 !
[    0.150824] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
[    0.152690] SCSI subsystem initialized
[    0.152873] usbcore: registered new interface driver usbfs
[    0.152976] usbcore: registered new interface driver hub
[    0.153097] usbcore: registered new device driver usb
[    0.159791] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-10-24 17:09
[    0.161198] clocksource: Switched to clocksource arch_sys_counter
[    0.208280] VFS: Disk quotas dquot_6.6.0
[    0.208391] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.208621] FS-Cache: Loaded
[    0.208885] CacheFiles: Loaded
[    0.221023] NET: Registered protocol family 2
[    0.221944] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.222082] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.222292] TCP: Hash tables configured (established 8192 bind 8192)
[    0.222406] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.222473] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.222705] NET: Registered protocol family 1
[    0.223137] RPC: Registered named UNIX socket transport module.
[    0.223169] RPC: Registered udp transport module.
[    0.223197] RPC: Registered tcp transport module.
[    0.223225] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.224191] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.226535] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.242603] FS-Cache: Netfs 'nfs' registered for caching
[    0.243608] NFS: Registering the id_resolver key type
[    0.243658] Key type id_resolver registered
[    0.243685] Key type id_legacy registered
[    0.246123] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.246269] io scheduler noop registered
[    0.246299] io scheduler deadline registered (default)
[    0.246572] io scheduler cfq registered
[    0.252257] BCM2708FB: allocated DMA memory fad10000
[    0.252312] BCM2708FB: allocated DMA channel 0 @ bb80f000
[    0.261019] Console: switching to colour frame buffer device 82x26
[    0.268470] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.271391] bcm2835-aux-uart 3f215040.serial: could not get clk: -517
[    0.274734] bcm2835-rng 3f104000.rng: hwrng registered
[    0.277155] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.282628] vc-sm: Videocore shared memory driver
[    0.299918] brd: module loaded
[    0.311067] loop: module loaded
[    0.313413] Loading iSCSI transport class v2.0-870.
[    0.316210] usbcore: registered new interface driver smsc95xx
[    0.318532] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.548905] Core Release: 2.80a
[    0.551278] Setting default values for core params
[    0.553625] Finished setting default values for core params
[    0.756300] Using Buffer DMA mode
[    0.758564] Periodic Transfer Interrupt Enhancement - disabled
[    0.760933] Multiprocessor Interrupt Enhancement - disabled
[    0.763360] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.765762] Dedicated Tx FIFOs mode
[    0.768502] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
[    0.773477] FIQ FSM acceleration enabled for :
[    0.773477] Non-periodic Split Transactions
[    0.773477] Periodic Split Transactions
[    0.773477] High-Speed Isochronous Endpoints
[    0.773477] Interrupt/Control Split Transaction hack enabled
[    0.785141] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8058f5b0
[    0.787449] WARN::hcd_init_fiq:460: FIQ ASM at 0x8058f920 length 36
[    0.789774] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87a000
[    0.792127] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.794447] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.796808] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.799128] Init: Port Power? op_state=1
[    0.801399] Init: Power Port (0)
[    0.803779] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.806087] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.808384] usb usb1: Product: DWC OTG Controller
[    0.810624] usb usb1: Manufacturer: Linux 4.9.59-v7+ dwc_otg_hcd
[    0.812909] usb usb1: SerialNumber: 3f980000.usb
[    0.815995] hub 1-0:1.0: USB hub found
[    0.818194] hub 1-0:1.0: 1 port detected
[    0.821165] usbcore: registered new interface driver usb-storage
[    0.823510] mousedev: PS/2 mouse device common for all mice
[    0.826595] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.829123] bcm2835-cpufreq: min=600000 max=1200000
[    0.831790] sdhci: Secure Digital Host Controller Interface driver
[    0.834101] sdhci: Copyright(c) Pierre Ossman
[    0.836622] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[    0.841207] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.843750] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.848798] ledtrig-cpu: registered to indicate activity on CPUs
[    0.851464] hidraw: raw HID events driver (C) Jiri Kosina
[    0.854129] usbcore: registered new interface driver usbhid
[    0.856590] usbhid: USB HID core driver
[    0.859840] vchiq: vchiq_init_state: slot_zero = 0xbad80000, is_master = 0
[    0.863717] [vc_sm_connected_init]: start
[    0.872433] [vc_sm_connected_init]: end - returning 0
[    0.875253] Initializing XFRM netlink socket
[    0.877704] NET: Registered protocol family 17
[    0.880244] Key type dns_resolver registered
[    0.883067] Registering SWP/SWPB emulation handler
[    0.886254] registered taskstats version 1
[    0.894959] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.897531] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.904137] console [ttyS0] disabled
[    0.906592] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 220, base_baud = 31250000) is a 16550
[    1.896105] console [ttyS0] enabled
[    1.902852] sdhost: log_buf @ bad07000 (fad07000)
[    1.981224] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.991407] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.999735] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    2.028437] Indeed it is in host mode hprt0 = 00021501
[    2.121334] of_cfs_init
[    2.123185] random: fast init done
[    2.131941] of_cfs_init: OK
[    2.137455] Waiting for root device PARTUUID=20586949-02...
[    2.138383] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.140380] mmc0: new high speed SDHC card at address 59b4
[    2.140864] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.141080] mmcblk0: mmc0:59b4 USD   15.0 GiB
[    2.142470] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.144030] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.146229]  mmcblk0: p1 p2
[    2.146882] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.231231] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.240152] Indeed it is in host mode hprt0 = 00001101
[    2.251364] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.264229] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.296854] devtmpfs: mounted
[    2.309560] Freeing unused kernel memory: 1024K
[    2.320477] mmc1: new high speed SDIO card at address 0001
[    2.471823] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.481276] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.492009] hub 1-1:1.0: USB hub found
[    2.498485] hub 1-1:1.0: 5 ports detected
[    2.790686] systemd[1]: System time before build time, advancing clock.
[    2.821242] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.912455] NET: Registered protocol family 10
[    2.930779] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.951579] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.961212] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.974328] smsc95xx v1.0.5
[    2.980277] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    3.007696] systemd[1]: Detected architecture arm.
[    3.025445] systemd[1]: Set hostname to <raspberrypi>.
[    3.084718] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:e8:2f:a3
[    3.510462] systemd[1]: Reached target Swap.
[    3.521279] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    3.535203] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.554159] systemd[1]: Listening on udev Kernel Socket.
[    3.566581] systemd[1]: Created slice System Slice.
[    3.580439] systemd[1]: Mounting RPC Pipe File System...
[    3.595910] systemd[1]: Mounting POSIX Message Queue File System...
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Started Forward Password Requests to Plymouth Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Found device /dev/serial1.
[  OK  ] Found device /dev/disk/by-partuuid/20586949-01.
         Starting File System Check on /dev/disk/by-partuuid/20586949-01...
[  OK  ] Reached target Sound Card.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Started File System Check on /dev/disk/by-partuuid/20586949-01.
         Mounting /boot...
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
         Starting Preprocess NFS configuration...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Create Volatile Files and Directories...
         Starting Set console font and keymap...
         Starting Raise network interfaces...
[  OK  ] Started Preprocess NFS configuration.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Reached target NFS client services.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
[  OK  ] Started Set console font and keymap.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Raise network interfaces.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on triggerhappy.socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Regular background program processing daemon.
         Starting Configure Bluetooth Modems connected by UART...
         Starting System Logging Service...
         Starting triggerhappy global hotkey daemon...
[  OK  ] Started D-Bus System Message Bus.
         Starting LSB: Switch to ondemand cpu…or (unless shift key is pressed)...
         Starting dhcpcd on all interfaces...
         Starting LSB: Autogenerate and use a swap file...
         Starting Save/Restore Sound Card State...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Login Service...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Started triggerhappy global hotkey daemon.
[  OK  ] Started System Logging Service.
[  OK  ] Started Save/Restore Sound Card State.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Login Service.
[  OK  ] Started LSB: Switch to ondemand cpu …rnor (unless shift key is pressed).
[  OK  ] Started LSB: Autogenerate and use a swap file.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started Configure Bluetooth Modems connected by UART.
[  OK  ] Started Load/Save RF Kill Switch Status.
         Starting Bluetooth service...
[  OK  ] Started Bluetooth service.
[  OK  ] Reached target Bluetooth.
         Starting Hostname Service...
[  OK  ] Started Hostname Service.
[  OK  ] Started dhcpcd on all interfaces.
[  OK  ] Reached target Network.
         Starting /etc/rc.local Compatibility...
         Starting Permit User Sessions...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Permit User Sessions.
         Starting Hold until boot process finishes up...
         Starting Terminate Plymouth Boot Screen...

Raspbian GNU/Linux 9 raspberrypi ttyS0
raspberrypi login:

AliExpress TFT LCD mit Touch

3,2 zoll SPI Tft Lcd Modul mit Platine ILI9341 IC 240*320 XPT2046 Touch Panel 16bit Parallele Schnittstelle
2,4 zoll 26PIN TFT LCD mit Touch Panel XPT2046 für Raspberry Pi B/B + 320*240 Spi-schnittstelle

3,5 zoll Lcd-bildschirm Raspberry Pi Display Modle Raspberry Pi 3 Touch Lcd-bildschirm auch Unterstützung für Raspberry Pi 2 Kostenloser versand

2017 Raspberry Pi 3 Modell B 3,5 zoll LCD TFT Touch Display + Stylus + Acryl Fall Kompatibel Raspberry Pi 2 Kostenloser Versand
Plexiglas Fall Shell Gehäuse für 3,5 Zoll LCD HDMI Touch bildschirm 1920×1080 LCD Display für Raspberry Pi 3 Modell B Bord

ohne Touch

IPS 3,5 zoll 26 P SPI HD TFT Lcd-bildschirm (keine Touch) XPT2046 IC 320*480 für Raspberry Pi2 B/B +/A + Bord (unterstützung Raspbian System)

Raspberry Pi 3 – UART Serial

The Raspberry Pi UARTs
RPi Serial Connection
STICKY: Pi3 UART stopped working? Read this.

PL011 UART    => wireless/Bluetooth module
mini UART     => Linux console output

PL011 UART    => /dev/ttyAMA0
mini UART     => /dev/ttyS0
Linux console => /dev/serial0  => primary UART

mini UART            => core frequency of the VPU on the VC4 GPU
VPU frequency change => baud rate of the UART also changes

config.txt           => enable_uart=1
/boot/cmdline.txt    => console=serial0,115200

BCM2835 ARM Peripherals (PDF)