Re: [beagleboard] Re: Serial Debug Header access query

2017-05-29 Thread William Hermans
Graham, that wont fix the issue. The problem he's having is because the OS(
Linux ) is not setup to use the serial interface. You can tell, because he
is getting serial messages from the kernel until after the kernel is
loaded. Which means the rootfs is meant to "take over" but isn't.

On Mon, May 29, 2017 at 4:46 PM, Graham  wrote:

> Peter:
>
> Edit the line in /boot/uEnv.txt
>
> cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable
>
> to remove the work 'quiet'
>
> --- Graham
>
> ==
>
>
> On Monday, May 29, 2017 at 4:35:24 PM UTC-5, Peter Lawler wrote:
>
>> Hi!
>> Just wondering if something's changed recently in the way the Serial
>> Debug Header operates?
>>
>> I'm asking because I've grabbed the recent release, updated to stretch,
>> and OK yes sure added a couple of what I'd call 'basic' things in -
>> nothing too major - but now I don't get access via the Serial Debug
>> Header. All output looks normal on boot and I can't see anything in
>> particular standing out in the boot log, either.
>>
>> It may well be that I'm missing sufficient amounts of coffee. But any
>> thoughts/comments appreciated at this stage.
>>
>> Cheers,
>>
>> Pete.
>>
>>
>> Output on Serial Debug:
>>
>> U-Boot SPL 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26)
>> Trying to boot from MMC2
>>
>>
>> U-Boot 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26 -0500), Build:
>> jenkins-github_Bootloader-Builder-532
>>
>> CPU  : AM335X-GP rev 2.1
>> I2C:   ready
>> DRAM:  512 MiB
>> Reset Source: Power-on reset has occurred.
>> MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
>> Using default environment
>>
>>  not set. Validating first E-fuse MAC
>> BeagleBone Black:
>> BeagleBone: cape eeprom: i2c_probe: 0x54:
>> BeagleBone: cape eeprom: i2c_probe: 0x55:
>> BeagleBone: cape eeprom: i2c_probe: 0x56:
>> BeagleBone: cape eeprom: i2c_probe: 0x57:
>> Net:   eth0: MII MODE
>> cpsw
>> Press SPACE to abort autoboot in 2 seconds
>> board_name=[A335BNLT] ...
>> board_rev=[00A5] ...
>> switch to partitions #0, OK
>> mmc0 is current device
>> SD/MMC found on device 0
>> ** Bad device 0:2 0x8200 **
>> ** Bad device 0:2 0x8200 **
>> switch to partitions #0, OK
>> mmc0 is current device
>> Scanning mmc 0:1...
>> gpio: pin 56 (gpio 56) value is 0
>> gpio: pin 55 (gpio 55) value is 0
>> gpio: pin 54 (gpio 54) value is 0
>> gpio: pin 53 (gpio 53) value is 1
>> switch to partitions #0, OK
>> mmc0 is current device
>> gpio: pin 54 (gpio 54) value is 1
>> Checking for: /uEnv.txt ...
>> Checking for: /boot.scr ...
>> Checking for: /boot/boot.scr ...
>> Checking for: /boot/uEnv.txt ...
>> gpio: pin 55 (gpio 55) value is 1
>> 1972 bytes read in 42 ms (44.9 KiB/s)
>> Loaded environment from /boot/uEnv.txt
>> Checking if uname_r is set in /boot/uEnv.txt...
>> gpio: pin 56 (gpio 56) value is 1
>> Running uname_boot ...
>> loading /boot/vmlinuz-4.4.68-ti-r106 ...
>> 8608104 bytes read in 590 ms (13.9 MiB/s)
>> loading /boot/dtbs/4.4.68-ti-r106/am335x-boneblack.dtb ...
>> 56827 bytes read in 88 ms (629.9 KiB/s)
>> uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to
>> enable...
>> loading /boot/initrd.img-4.4.68-ti-r106 ...
>> 5940425 bytes read in 424 ms (13.4 MiB/s)
>> debug: [console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4
>> rootwait coherent_pool=1M net.ifnames=0 quiet cape_universal=enable] ...
>> debug: [bootz 0x8200 0x8808:5aa4c9 0x8800] ...
>> ## Flattened Device Tree blob at 8800
>> Booting using the fdt blob at 0x8800
>> Loading Ramdisk to 8fa55000, end 84c9 ... OK
>> Loading Device Tree to 8fa44000, end 8fa54dfa ... OK
>>
>> Starting kernel ...
>>
>> [0.001026] clocksource_probe: no matching clocksources found
>> [2.109460] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc
>> handle
>> [2.291426] omap_voltage_late_init: Voltage driver support not added
>> [2.299156] PM: Cannot get wkup_m3_ipc handle
>> rootfs: clean, 112476/959616 files, 663500/3888512 blocks
>>
>> Debian GNU/Linux 9 beaglebone ttyS0
>> beaglebone login:
>>
>> ---
>>
>> dmesg
>>
>> [0.00] Booting Linux on physical CPU 0x0
>> [0.00] Initializing cgroup subsys cpuset
>> [0.00] Initializing cgroup subsys cpu
>> [0.00] Initializing cgroup subsys cpuacct
>> [0.00] Linux version 4.4.68-ti-r106 (root@b1-omap5-uevm-2gb)
>> (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Sat May 27
>> 15:52:44 UTC 2017
>> [0.00] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7),
>> cr=10c5387d
>> [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
>> instruction cache
>> [0.00] Machine model: TI AM335x BeagleBone Black
>> [0.00] cma: Reserved 48 MiB at 0x9c80
>> [0.00] Memory policy: Data cache writeback
>> [0.00] On node 0 totalpages: 130560
>> [0.00] free_area_init_node: node 0, pgdat c1059200, node_mem_map
>> df961000
>> [0.00]   Normal 

[beagleboard] Re: Serial Debug Header access query

2017-05-29 Thread Graham
Peter:

Edit the line in /boot/uEnv.txt

cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable

to remove the work 'quiet'

--- Graham

==

On Monday, May 29, 2017 at 4:35:24 PM UTC-5, Peter Lawler wrote:
>
> Hi! 
> Just wondering if something's changed recently in the way the Serial 
> Debug Header operates? 
>
> I'm asking because I've grabbed the recent release, updated to stretch, 
> and OK yes sure added a couple of what I'd call 'basic' things in - 
> nothing too major - but now I don't get access via the Serial Debug 
> Header. All output looks normal on boot and I can't see anything in 
> particular standing out in the boot log, either. 
>
> It may well be that I'm missing sufficient amounts of coffee. But any 
> thoughts/comments appreciated at this stage. 
>
> Cheers, 
>
> Pete. 
>
>
> Output on Serial Debug: 
>
> U-Boot SPL 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26) 
> Trying to boot from MMC2 
>
>
> U-Boot 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26 -0500), Build: 
> jenkins-github_Bootloader-Builder-532 
>
> CPU  : AM335X-GP rev 2.1 
> I2C:   ready 
> DRAM:  512 MiB 
> Reset Source: Power-on reset has occurred. 
> MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1 
> Using default environment 
>
>  not set. Validating first E-fuse MAC 
> BeagleBone Black: 
> BeagleBone: cape eeprom: i2c_probe: 0x54: 
> BeagleBone: cape eeprom: i2c_probe: 0x55: 
> BeagleBone: cape eeprom: i2c_probe: 0x56: 
> BeagleBone: cape eeprom: i2c_probe: 0x57: 
> Net:   eth0: MII MODE 
> cpsw 
> Press SPACE to abort autoboot in 2 seconds 
> board_name=[A335BNLT] ... 
> board_rev=[00A5] ... 
> switch to partitions #0, OK 
> mmc0 is current device 
> SD/MMC found on device 0 
> ** Bad device 0:2 0x8200 ** 
> ** Bad device 0:2 0x8200 ** 
> switch to partitions #0, OK 
> mmc0 is current device 
> Scanning mmc 0:1... 
> gpio: pin 56 (gpio 56) value is 0 
> gpio: pin 55 (gpio 55) value is 0 
> gpio: pin 54 (gpio 54) value is 0 
> gpio: pin 53 (gpio 53) value is 1 
> switch to partitions #0, OK 
> mmc0 is current device 
> gpio: pin 54 (gpio 54) value is 1 
> Checking for: /uEnv.txt ... 
> Checking for: /boot.scr ... 
> Checking for: /boot/boot.scr ... 
> Checking for: /boot/uEnv.txt ... 
> gpio: pin 55 (gpio 55) value is 1 
> 1972 bytes read in 42 ms (44.9 KiB/s) 
> Loaded environment from /boot/uEnv.txt 
> Checking if uname_r is set in /boot/uEnv.txt... 
> gpio: pin 56 (gpio 56) value is 1 
> Running uname_boot ... 
> loading /boot/vmlinuz-4.4.68-ti-r106 ... 
> 8608104 bytes read in 590 ms (13.9 MiB/s) 
> loading /boot/dtbs/4.4.68-ti-r106/am335x-boneblack.dtb ... 
> 56827 bytes read in 88 ms (629.9 KiB/s) 
> uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to 
> enable... 
> loading /boot/initrd.img-4.4.68-ti-r106 ... 
> 5940425 bytes read in 424 ms (13.4 MiB/s) 
> debug: [console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 
> rootwait coherent_pool=1M net.ifnames=0 quiet cape_universal=enable] ... 
> debug: [bootz 0x8200 0x8808:5aa4c9 0x8800] ... 
> ## Flattened Device Tree blob at 8800 
> Booting using the fdt blob at 0x8800 
> Loading Ramdisk to 8fa55000, end 84c9 ... OK 
> Loading Device Tree to 8fa44000, end 8fa54dfa ... OK 
>
> Starting kernel ... 
>
> [0.001026] clocksource_probe: no matching clocksources found 
> [2.109460] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc 
> handle 
> [2.291426] omap_voltage_late_init: Voltage driver support not added 
> [2.299156] PM: Cannot get wkup_m3_ipc handle 
> rootfs: clean, 112476/959616 files, 663500/3888512 blocks 
>
> Debian GNU/Linux 9 beaglebone ttyS0 
> beaglebone login: 
>
> --- 
>
> dmesg 
>
> [0.00] Booting Linux on physical CPU 0x0 
> [0.00] Initializing cgroup subsys cpuset 
> [0.00] Initializing cgroup subsys cpu 
> [0.00] Initializing cgroup subsys cpuacct 
> [0.00] Linux version 4.4.68-ti-r106 (root@b1-omap5-uevm-2gb) 
> (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Sat May 27 
> 15:52:44 UTC 2017 
> [0.00] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), 
> cr=10c5387d 
> [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
> instruction cache 
> [0.00] Machine model: TI AM335x BeagleBone Black 
> [0.00] cma: Reserved 48 MiB at 0x9c80 
> [0.00] Memory policy: Data cache writeback 
> [0.00] On node 0 totalpages: 130560 
> [0.00] free_area_init_node: node 0, pgdat c1059200, node_mem_map 
> df961000 
> [0.00]   Normal zone: 1152 pages used for memmap 
> [0.00]   Normal zone: 0 pages reserved 
> [0.00]   Normal zone: 130560 pages, LIFO batch:31 
> [0.00] CPU: All CPU(s) started in SVC mode. 
> [0.00] AM335X ES2.1 (sgx neon ) 
> [0.00] PERCPU: Embedded 13 pages/cpu @df92 s24268 r8192 
> d20788 u53248 
> [0.00] pcpu-alloc: s24268 r8192 d20788 u53248