Beaglebone serial debug console: Use a different UART?

Hi,
Is there a way to change the tty device used by the dev images on the Beaglebone? The factory debug pins are next to impossible to access when the board is installed with our cape, so I’d like to route that console through the cape headers (e.g. on UART2).

Thanks,
Brad

Hi,

You need to set console=/dev/ttyS0 (swapping ttyS0 for the interface you would like to use) inside /boot/uEnv.txt

Thanks @joe. I swear I tried that, but maybe I grabbed the wrong file or didn’t save the image properly or something. Is there a recommended way to edit that file inside the .img?

Actually I tried setting that in uEnv.txt_internal I think. What does that file get used for?

EDIT:
I can’t seem to find /boot/uEnv.txt… Am I looking in the wrong partition?

☁  ~  cd /media/brad/flash-rootA 
☁  flash-rootA  cd boot 
☁  boot  ls -al
total 12404
drwxr-xr-x  2 root root     4096 Sep  5 02:45 .
drwxr-xr-x 22 root root     4096 Sep  5 02:45 ..
lrwxrwxrwx  1 root root       44 Sep  5 02:45 am335x-boneblack.dtb -> /boot/devicetree-zImage-am335x-boneblack.dtb
lrwxrwxrwx  1 root root       57 Sep  5 02:45 am335x-boneblack-emmc-overlay.dtb -> /boot/devicetree-zImage-am335x-boneblack-emmc-overlay.dtb
lrwxrwxrwx  1 root root       43 Sep  5 02:45 am335x-boneblue.dtb -> /boot/devicetree-zImage-am335x-boneblue.dtb
lrwxrwxrwx  1 root root       39 Sep  5 02:45 am335x-bone.dtb -> /boot/devicetree-zImage-am335x-bone.dtb
lrwxrwxrwx  1 root root       44 Sep  5 02:45 am335x-bonegreen.dtb -> /boot/devicetree-zImage-am335x-bonegreen.dtb
lrwxrwxrwx  1 root root       53 Sep  5 02:45 am335x-bonegreen-wireless.dtb -> /boot/devicetree-zImage-am335x-bonegreen-wireless.dtb
-rw-r--r--  1 root root    58114 Jul 17 07:06 devicetree-zImage-am335x-boneblack.dtb
-rw-r--r--  1 root root    55769 Jul 17 07:06 devicetree-zImage-am335x-boneblack-emmc-overlay.dtb
-rw-r--r--  1 root root   137744 Jul 17 07:06 devicetree-zImage-am335x-boneblue.dtb
-rw-r--r--  1 root root    55677 Jul 17 07:06 devicetree-zImage-am335x-bone.dtb
-rw-r--r--  1 root root    55789 Jul 17 07:06 devicetree-zImage-am335x-bonegreen.dtb
-rw-r--r--  1 root root    58499 Jul 17 07:06 devicetree-zImage-am335x-bonegreen-wireless.dtb
-rw-r--r--  1 root root 12257192 Sep  4 08:35 zImage

I am just checking with the team now. In the meantime does making the change to uEnv.txt_internal work? Can you try creating the uEnv.txt file in /flash-boot and see if that works?

/flash-boot/uEnv.txt_internal is the file you need to edit, it is marked as _internal to know that it will be copied to internal memory once the device is flashed.

It does not appear to be working. The device is refusing to download the application though, so I may have screwed up the image–will try it again. It’s also possible that ttyS2 isn’t enabled at boot.

Still no go. Here’s the console output (from ttyS0) if it might have any clues.

U-Boot SPL 2017.01-gda5f8ccd01 (Jun 16 2017 - 08:09:40)
Trying to boot from MMC1
reading u-boot.img
reading u-boot.img


U-Boot 2017.01-gda5f8ccd01 (Jun 16 2017 - 08:09:40 +0000)

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   Could not get PHY for cpsw: addr 0
cpsw, usb_ether
autoboot in 1 seconds (type "stop" to abort or " " to delay)
Scanning MMC and USB devices 0 1 2
reading resin-image-flasher
24 bytes read in 4 ms (5.9 KiB/s)
Found resin flasher on mmc 0
Loading resinOS_uEnv.txt from mmc device 0 partition 1
reading resinOS_uEnv.txt
** Unable to read file resinOS_uEnv.txt **
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
12257576 bytes read in 994 ms (11.8 MiB/s)
58499 bytes read in 53 ms (1.1 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffee000, end 8ffff482 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.34+ (builder@ea662087cbaa) (gcc version 6.2.0 (GCC) ) #2 SMP PREEMPT Mon Sep 4 15:58:15 UTC 2017
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: TI AM335x BeagleBone Green Wireless
[    0.000000] cma: Reserved 48 MiB at 0x9c800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] percpu: Embedded 15 pages/cpu @df92a000 s32140 r8192 d21108 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=0b017a99-02 rootfstype=ext4 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: 445368K/522240K available (11264K kernel code, 1092K rwdata, 4196K rodata, 4096K init, 725K bss, 27720K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0000000 - 0xff800000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdfe00000   ( 510 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0c00000   (12256 kB)
[    0.000000]       .init : 0xc1100000 - 0xc1500000   (4096 kB)
[    0.000000]       .data : 0xc1500000 - 0xc1611088   (1093 kB)
[    0.000000]        .bss : 0xc1613000 - 0xc16c8458   ( 726 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000035] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000049] OMAP clocksource: timer1 at 24000000 Hz
[    0.001073] clocksource_probe: no matching clocksources found
[    0.001551] Console: colour dummy device 80x30
[    0.001580] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001589] This ensures that you still see kernel messages. Please
[    0.001597] update your kernel commandline.
[    0.001623] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.046709] pid_max: default: 32768 minimum: 301
[    0.047011] Security Framework initialized
[    0.047028] Yama: becoming mindful.
[    0.047072] AppArmor: AppArmor disabled by boot time parameter
[    0.047284] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.047298] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.048509] CPU: Testing write buffer coherency: ok
[    0.048585] ftrace: allocating 37639 entries in 111 pages
[    0.154989] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.155069] Setting up static identity map for 0x80100000 - 0x80100060
[    0.198734] Brought up 1 CPUs
[    0.198763] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.198773] CPU: All CPU(s) started in SVC mode.
[    0.200410] devtmpfs: initialized
[    0.222986] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.223533] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.223567] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.227388] pinctrl core: initialized pinctrl subsystem
[    0.229012] NET: Registered protocol family 16
[    0.232036] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.258277] omap_hwmod: debugss: _wait_target_disable failed
[    0.322745] cpuidle: using governor ladder
[    0.334724] cpuidle: using governor menu
[    0.343099] OMAP GPIO hardware version 0.1
[    0.349898] GPIO line 112 (MCASP0_AXR0) hogged as output/low
[    0.362928] No ATAGs?
[    0.362959] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.363259] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.363273] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.416995] edma 49000000.edma: TI EDMA DMA engine driver
[    0.421743] vgaarb: loaded
[    0.422394] SCSI subsystem initialized
[    0.427217] usbcore: registered new interface driver usbfs
[    0.427297] usbcore: registered new interface driver hub
[    0.427415] usbcore: registered new device driver usb
[    0.428021] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.428082] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[    0.428200] media: Linux media interface: v0.10
[    0.428269] Linux video capture interface: v2.00
[    0.428357] pps_core: LinuxPPS API ver. 1 registered
[    0.428366] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.428392] PTP clock support registered
[    0.429232] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.430661] NetLabel: Initializing
[    0.430776] NetLabel:  domain hash size = 128
[    0.430785] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.430876] NetLabel:  unlabeled traffic allowed by default
[    0.431449] clocksource: Switched to clocksource timer1
[    0.557853] VFS: Disk quotas dquot_6.6.0
[    0.557986] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573283] NET: Registered protocol family 2
[    0.574345] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.574405] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.574468] TCP: Hash tables configured (established 4096 bind 4096)
[    0.574545] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.574568] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.574779] NET: Registered protocol family 1
[    0.583739] RPC: Registered named UNIX socket transport module.
[    0.583761] RPC: Registered udp transport module.
[    0.583770] RPC: Registered tcp transport module.
[    0.583777] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.806692] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.809776] audit: initializing netlink subsys (disabled)
[    0.809884] audit: type=2000 audit(0.740:1): initialized
[    0.815407] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.815712] zbud: loaded
[    0.820953] NFS: Registering the id_resolver key type
[    0.821004] Key type id_resolver registered
[    0.821013] Key type id_legacy registered
[    0.821035] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.821450] fuse init (API version 7.26)
[    0.821892] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.822210] orangefs_init: module version upstream loaded
[    0.822223] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    0.835843] aufs 4.9-20170612
[    0.842139] Key type asymmetric registered
[    0.842164] Asymmetric key parser 'x509' registered
[    0.842291] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.846602] io scheduler noop registered
[    0.846619] io scheduler deadline registered
[    0.846719] io scheduler cfq registered (default)
[    0.848179] pinctrl-single 44e10800.pinmux: please update dts to use #pinctrl-cells = <1>
[    0.848635] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.851975] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    0.853215] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.856783] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    1.254223] random: fast init done
[    1.616400] console [ttyS0] enabled
[    1.621068] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 159, base_baud = 3000000) is a 8250
[    1.631687] [drm] Initialized
[    1.638861] libphy: Fixed MDIO Bus: probed
[    1.644165] tun: Universal TUN/TAP device driver, 1.6
[    1.649280] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    1.657314] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.664070] ehci-pci: EHCI PCI platform driver
[    1.668700] ehci-platform: EHCI generic platform driver
[    1.674260] ehci-omap: OMAP-EHCI Host Controller driver
[    1.680104] usbcore: registered new interface driver usb-storage
[    1.688663] 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.712975] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.735088] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    1.740577] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    1.748351] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.755211] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.762492] usb usb1: Product: MUSB HDRC host driver
[    1.767504] usb usb1: Manufacturer: Linux 4.9.34+ musb-hcd
[    1.773038] usb usb1: SerialNumber: musb-hdrc.1
[    1.778634] hub 1-0:1.0: USB hub found
[    1.782586] hub 1-0:1.0: 1 port detected
[    1.805402] mousedev: PS/2 mouse device common for all mice
[    1.813437] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.821679] i2c /dev entries driver
[    1.827038] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.835344] cpuidle: enable-method property 'ti,am3352' found operations
[    1.843162] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.967109] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.978662] mmc1: new high speed MMC card at address 0001
[    1.984236] mmc0: new high speed SDHC card at address aaaa
[    1.995010] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
[    1.999944] mmcblk1: mmc1:0001 Q2J54A 3.64 GiB
[    2.009252] mmcblk1boot0: mmc1:0001 Q2J54A partition 1 2.00 MiB
[    2.017129]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    2.023763] mmcblk1boot1: mmc1:0001 Q2J54A partition 2 2.00 MiB
[    2.033716]  mmcblk1: p1 p2 p3 p4 < p5 p6 >
[    2.049204] ledtrig-cpu: registered to indicate activity on CPUs
[    2.055611] hidraw: raw HID events driver (C) Jiri Kosina
[    2.065046] usbcore: registered new interface driver usbhid
[    2.071005] usbhid: USB HID core driver
[    2.074958] omap_hsmmc 47810000.mmc: card claims to support voltages below defined range
[    2.083586] ashmem: initialized
[    2.087329] remoteproc remoteproc0: wkup_m3 is available
[    2.095235] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[    2.102287] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.108011] NET: Registered protocol family 10
[    2.117997] mip6: Mobile IPv6
[    2.123829] mmc2: new high speed SDIO card at address 0001
[    2.131392] NET: Registered protocol family 17
[    2.136039] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.149248] Key type dns_resolver registered
[    2.153585] mpls_gso: MPLS GSO support
[    2.157600] omap_voltage_late_init: Voltage driver support not added
[    2.164550] PM: Cannot get wkup_m3_ipc handle
[    2.169143] ThumbEE CPU extension supported.
[    2.173491] Registering SWP/SWPB emulation handler
[    2.179496] registered taskstats version 1
[    2.183777] zswap: loaded using pool lzo/zbud
[    2.188246] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[    2.225575] Key type encrypted registered
[    2.272823] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[    2.284229] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    2.290127] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.297146] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.304721] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.312345] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.319731] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.327038] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.334119] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    2.341164] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[    2.348458] remoteproc remoteproc0: powering up wkup_m3
[    2.348475] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    2.348726] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    2.348748] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[    2.376297] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.383566] usb 1-1: Product: USB2.0 Hub
[    2.388926] hub 1-1:1.0: USB hub found
[    2.393214] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,GW1A,BBGW16052080'
[    2.400530] hub 1-1:1.0: 4 ports detected
[    2.404907] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[    2.440565] bone_capemgr bone_capemgr: slot #0: No cape found
[    2.471879] bone_capemgr bone_capemgr: slot #1: No cape found
[    2.504843] bone_capemgr bone_capemgr: slot #2: No cape found
[    2.535936] bone_capemgr bone_capemgr: slot #3: No cape found
[    2.541850] bone_capemgr bone_capemgr: initialized OK.
[    2.552318] PM: bootloader does not support rtc-only!
[    2.558536] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    2.567470] of_cfs_init
[    2.570088] of_cfs_init: OK
[    2.573640] wlan-en-regulator: disabling
[    2.584382] Freeing unused kernel memory: 4096K (c1100000 - c1500000)
starting version 230
[INFO] Flasher detected. Avoiding expand partition mechanism.
[    4.887017] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[INFO] Flasher detected. Avoiding persistent machine-id.
[    5.343104] systemd[1]: System time before build time, advancing clock.
[    5.445417] systemd[1]: systemd 230 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
[    5.464669] systemd[1]: Detected architecture arm.

Welcome to Resin OS 2.4.2+rev1!

[    5.489728] systemd[1]: Set hostname to <beaglebone>.
[    5.509694] systemd[1]: Initializing machine ID from random generator.
[    5.516929] systemd[1]: Installed transient /etc/machine-id file.
[    5.531684] systemd[1]: Hardware watchdog 'OMAP Watchdog', version 0
[    5.539696] systemd[1]: Set hardware watchdog to 10s.
[    6.123793] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    6.144320] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    6.160663] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on Journal Socket.
         Mounting Debug File System...
         Mounting POSIX Message Queue File System...
         Starting Apply Kernel Variables...
         Mounting Configuration File System...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
[  OK  ] Listening on udev Control Socket.
         Starting Setup Virtual Console...
         Starting Create list of required st... nodes for the current kernel...
[  OK  ] Created slice User and Session Slice.
[    6.587002] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Reached target Slices.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Listening on udev Kernel Socket.
         Mounting FUSE Control File System...
[  OK  ] Reached target Swap.
         Mounting Temporary Directory...
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted Temporary Directory.
[  OK  ] Started Journal Service.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Setup Virtual Console.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
         Starting udev Coldplug all Devices...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
[  OK  ] Mounted /var/volatile.
         Starting Bind mount volatile /var/lib...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Bind mount volatile /var/lib.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
         Starting Tell Plymouth To Write Out Runtime Data...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Create Volatile Files and Directories.
         Mounting Dropbear Host Key Mount Point...
         Mounting NetworkManager system connections bind mount...
         Mounting ResinOS hostname...
         Starting Update UTMP about System Boot/Shutdown...
         Mounting OpenSSL random state bind mount...
[  OK  ] Mounted NetworkManager system connections bind mount.
[  OK  ] Mounted Dropbear Host Key Mount Point.
[  OK  ] Mounted ResinOS hostname.
[  OK  ] Mounted OpenSSL random state bind mount.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Found device /dev/disk/by-label/flash-boot.
         Mounting Flasher boot partition mountpoint...
[   10.351216] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[  OK  ] Mounted Flasher boot partition mountpoint.
         Starting Temporary resin config in /tmp/conf...
[  OK  ] Started Temporary resin config in /tmp/conf.
         Mounting Flasher conf partition mountpoint...
[  OK  ] Mounted Flasher conf partition mountpoint.
         Mounting Flasher boot partition mountpoint...
[  OK  ] Mounted Flasher boot partition mountpoint.
         Starting Resin NTP configuration service...
[  OK  ] Started Resin NTP configuration service.
         Starting Network Time Synchronization...
[  OK  ] Started Network Time Synchronization.
[   11.396241] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[  OK  ] Reached target System Time Synchronized.
[   11.573023] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[   11.605021] omap-aes 53500000.aes: will run requests pump with realtime priority
[   12.016214] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
[   12.056985] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
[  OK  ] Listening on Load/Save RF Kill Switch Status [   12.082088] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
/dev/rfkill Watch.
[   12.216356] remoteproc remoteproc1: 4a334000.pru0 is available
[   12.231861] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a334000 probed successfully
[   12.268725] remoteproc remoteproc2: 4a338000.pru1 is available
[   12.290813] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a338000 probed successfully
[   12.507299] wl18xx_driver wl18xx.0.auto: Direct firmware load for ti-connectivity/wl18xx-conf.bin failed with error -2
[   12.527688] wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2
[   12.548407] wlcore: WARNING falling back to default config
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Show Plymouth Boot Screen...
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.

Resin OS 2.4.2 541db86 ttyS0

541db86 login:
Resin OS 2.4.2 541db86 ttyS0

541db86 login: [  167.079456] wlan0: deauthenticating from f0:9f:c2:34:4a:93 by local choice (Reason: 3=DEAUTH_LEAVING)
[  167.548248] wlcore: down
[  168.427115] systemd-shutdow: 28 output lines suppressed due to ratelimiting
[  168.449210] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  168.475085] systemd-journald[274]: Received SIGTERM from PID 1 (systemd-shutdow).
[  168.493172] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  168.513874] systemd-shutdown[1]: Process 389 (plymouthd) has been been marked to be excluded from killing. It is running from the root file system, and thus likely to block re-mounting of the root file system to read-only. Please consider moving it into an initrd file system instead.
[  168.542691] systemd-shutdown[1]: Unmounting file systems.
[  168.549879] systemd-shutdown[1]: Remounting '/mnt/boot' read-only with options 'fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro'.
[  168.571403] systemd-shutdown[1]: Unmounting /mnt/boot.
[  168.589864] systemd-shutdown[1]: Remounting '/mnt/bootorig' read-only with options 'fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro'.
[  168.606624] systemd-shutdown[1]: Unmounting /mnt/bootorig.
[  168.622244] systemd-shutdown[1]: Remounting '/tmp' read-only with options ''.
[  168.630522] systemd-shutdown[1]: Unmounting /tmp.
[  168.651080] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[  168.659536] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[  168.666815] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[  168.716627] reboot: Power down
[  168.719945] System will go to power_off state in approx. 1 second

U-Boot SPL 2017.01-gda5f8ccd01 (Jun 16 2017 - 08:09:40)
Trying to boot from MMC2
reading u-boot.img
reading u-boot.img


U-Boot 2017.01-gda5f8ccd01 (Jun 16 2017 - 08:09:40 +0000)

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   Could not get PHY for cpsw: addr 0
cpsw, usb_ether
autoboot in 1 seconds (type "stop" to abort or " " to delay)
Scanning MMC and USB devices 0 1 2
Card did not respond to voltage select!
** Bad device mmc 0 **
Card did not respond to voltage select!
** Bad device mmc 0 **
reading resin-image-flasher
** Unable to read file resin-image-flasher **
reading resin-image
24 bytes read in 4 ms (5.9 KiB/s)
MMC Device 2 not found
** Bad device mmc 2 **
** Bad device usb 0 **
** Bad device usb 1 **
** Bad device usb 2 **
Found resin image on mmc 1
Loading resinOS_uEnv.txt from mmc device 1 partition 1
reading resinOS_uEnv.txt
** Unable to read file resinOS_uEnv.txt **
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
22 bytes read in 4 ms (4.9 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
12257576 bytes read in 1000 ms (11.7 MiB/s)
58499 bytes read in 45 ms (1.2 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffee000, end 8ffff482 ... OK

Starting kernel ...

According to dmesg, it is loading the contents of uEnv.txt_internal, but I’m still not seeing console input/output on the UART pins.

[    0.000000] Kernel command line: console=ttyS2 root=PARTUUID=ebdacedf-02 rootfstype=ext4 rootwait

As far as I know, the UART 2 isn’t enabled/loaded as default. And cape loading from uboot wasn’t’ supported yet, but this could have been changed meanwhile.

Any updates on this? Getting UART 2 enabled in uboot?
Is this going to require patching of dts(i) files or something as simple as the addition of a capemgr.enable_partno
set in uEnv.txt?

Hi @SuicidalLabRat , this issue/fix might be interesting for you: https://github.com/resin-os/resinos/issues/197