[Linux-stm32] FW: STM32MP157c Mainline linux boot

Alexandre TORGUE alexandre.torgue at foss.st.com
Tue Dec 8 14:34:02 UTC 2020


Hi

On 12/8/20 12:02 PM, Patrick DELAUNAY wrote:
> Alexandre,
> 
> For Mainline Linux:
> 
>      earlyprintk console=ttyS3,115200 is this console option correct?
> 
> Please can you confirm, I think that ttyS3 (used for OpenSTLinux v1.X) 
> must be replacde by ttySTM0 for linux boot args?

ttyS3 is an old boot args and has to be replaced by ttySTM0.

Alex

> Patrick
> 
> 
> On 12/8/20 11:53 AM, Patrick DELAUNAY wrote:
>>
>> -----Original Message-----
>> From: Jagan Teki <jagan at amarulasolutions.com>
>> Sent: mardi 8 décembre 2020 10:26
>> To: Patrick DELAUNAY <patrick.delaunay at st.com>
>> Subject: Re: STM32MP157c Mainline linux boot
>>
>> Hi Patrick,
>>
>> Still, something missed from my end.
>>
>> earlyprintk console=ttyS3,115200 is this console option correct?
>>
>> I can see it is hangup while enumerating uart console it seems, I have 
>> enabled CONFIG_STM32MP1_DEBUG_UART, CONFIG_EARLY_PRINTK and dts 
>> aliased with serial0 as uart4 aliases {
>>                  serial0 = &uart4;
>> };
>>
>> Log:
>> STM32MP> ext4load mmc 0:4 $kernel_addr_r zImage;ext4load mmc 0:4
>> $fdt_addr_r stm32mp157c-icore-stm32mp1-edimm2.2
>> .dtb;setenv bootargs root=/dev/mmcblk0p4 rootwait rw earlyprintk 
>> console=ttyS3,115200;bootz $kernel_addr_r - $fd t_addr_r
>> 9658880 bytes read in 2058 ms (4.5 MiB/s)
>> 52701 bytes read in 34 ms (1.5 MiB/s)
>> ## Flattened Device Tree blob at c4000000
>>     Booting using the fdt blob at 0xc4000000
>>     Loading Device Tree to cfff0000, end cffffddc ... OK
>>
>> Starting kernel ...
>>
>> [    0.000000] Booting Linux on physical CPU 0x0
>> [    0.000000] Linux version
>> 5.10.0-rc6-next-20201203-00001-g91f452399c24-dirty (ub at ub-XPS-13-9350) 
>> (arm-buildro ot-linux-gnueabihf-gcc.br_real (Buildroot
>> 2020.08-849-gdcd4b75069-dirty) 9.3.0, GNU ld (GNU Binutils) 2.34) #1 S 
>> MP Tue Dec 8 13:41:37 IST 2020
>> [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), 
>> cr=10c5387d
>> [    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: Engicam i.Core STM32MP1
>> EDIMM2.2 Starter Kit
>> [    0.000000] printk: bootconsole [earlycon0] enabled
>> [    0.000000] Memory policy: Data cache writealloc
>> [    0.000000] efi: UEFI not found.
>> [    0.000000] Reserved memory: created DMA memory pool at 0x10000000,
>> size 0 MiB
>> [    0.000000] OF: reserved mem: initialized node mcuram2 at 10000000,
>> compatible id shared-dma-pool
>> [    0.000000] Reserved memory: created DMA memory pool at 0x10040000,
>> size 0 MiB
>> [    0.000000] OF: reserved mem: initialized node
>> vdev0vring0 at 10040000, compatible id shared-dma-pool
>> [    0.000000] Reserved memory: created DMA memory pool at 0x10041000,
>> size 0 MiB
>> [    0.000000] OF: reserved mem: initialized node
>> vdev0vring1 at 10041000, compatible id shared-dma-pool
>> [    0.000000] Reserved memory: created DMA memory pool at 0x10042000,
>> size 0 MiB
>> [    0.000000] OF: reserved mem: initialized node
>> vdev0buffer at 10042000, compatible id shared-dma-pool
>> [    0.000000] Reserved memory: created DMA memory pool at 0x30000000,
>> size 0 MiB
>> [    0.000000] OF: reserved mem: initialized node mcuram at 30000000,
>> compatible id shared-dma-pool
>> [    0.000000] Reserved memory: created DMA memory pool at 0x38000000,
>> size 0 MiB
>> [    0.000000] OF: reserved mem: initialized node retram at 38000000,
>> compatible id shared-dma-pool
>> [    0.000000] cma: Reserved 64 MiB at 0xdc000000
>> [    0.000000] Zone ranges:
>> [    0.000000]   DMA      [mem 0x00000000c0000000-0x00000000dfffffff]
>> [    0.000000]   Normal   empty
>> [    0.000000]   HighMem  empty
>> [    0.000000] Movable zone start for each node
>> [    0.000000] Early memory node ranges
>> [    0.000000]   node   0: [mem 0x00000000c0000000-0x00000000dfffffff]
>> [    0.000000] Initmem setup node 0 [mem 
>> 0x00000000c0000000-0x00000000dfffffff]
>> [    0.000000] psci: probing for conduit method from DT.
>> [    0.000000] psci: PSCIv1.0 detected in firmware.
>> [    0.000000] psci: Using standard PSCI v0.2 function IDs
>> [    0.000000] psci: Trusted OS migration not required
>> [    0.000000] psci: SMC Calling Convention v1.0
>> [    0.000000] percpu: Embedded 20 pages/cpu s49996 r8192 d23732 u81920
>> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 
>> 130048
>> [    0.000000] Kernel command line: root=/dev/mmcblk0p4 rootwait rw
>> earlyprintk console=ttyS3,115200
>> [    0.000000] Dentry cache hash table entries: 65536 (order: 6,
>> 262144 bytes, linear)
>> [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072
>> bytes, linear)
>> [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
>> [    0.000000] Memory: 429616K/524288K available (13312K kernel code,
>> 2181K rwdata, 5280K rodata, 2048K init, 40 1K bss, 29136K reserved, 
>> 65536K cma-reserved, 0K highmem)
>> [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
>> [    0.000000] rcu: Hierarchical RCU implementation.
>> [    0.000000] rcu:     RCU event tracing is enabled.
>> [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=16 to 
>> nr_cpu_ids=2.
>> [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay
>> is 10 jiffies.
>> [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, 
>> nr_cpu_ids=2
>> [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
>> [    0.000000] random: get_random_bytes called from
>> start_kernel+0x3cc/0x564 with crng_init=0
>> [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
>> [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
>> max_cycles: 0x588fe9dc0, max_idle_ns: 44079
>> 5202592 ns
>> [    0.000010] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps
>> every 4398046511097ns
>> [    0.008119] Switching to timer-based delay loop, resolution 41ns
>> [    0.026216] Console: colour dummy device 80x30
>> [    0.030774] Calibrating delay loop (skipped), value calculated
>> using timer frequency.. 48.00 BogoMIPS (lpj=24
>> 0000)
>> [    0.041294] pid_max: default: 32768 minimum: 301
>> [    0.046174] Mount-cache hash table entries: 1024 (order: 0, 4096
>> bytes, linear)
>> [    0.053607] Mountpoint-cache hash table entries: 1024 (order: 0,
>> 4096 bytes, linear)
>> [    0.062356] CPU: Testing write buffer coherency: ok
>> [    0.067697] CPU0: update cpu_capacity 1024
>> [    0.071855] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
>> [    0.078389] Setting up static identity map for 0xc0300000 - 0xc03000ac
>> [    0.088390] rcu: Hierarchical SRCU implementation.
>> [    0.101127] EFI services will not be available.
>> [    0.106051] smp: Bringing up secondary CPUs ...
>> [    0.111449] CPU1: update cpu_capacity 1024
>> [    0.111461] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
>> [    0.111667] smp: Brought up 1 node, 2 CPUs
>> [    0.125739] SMP: Total of 2 processors activated (96.00 BogoMIPS).
>> [    0.132014] CPU: All CPU(s) started in SVC mode.
>> [    0.137505] devtmpfs: initialized
>> [    0.159460] VFP support v0.3: implementor 41 architecture 2 part 30
>> variant 7 rev 5
>> [    0.167622] clocksource: jiffies: mask: 0xffffffff max_cycles:
>> 0xffffffff, max_idle_ns: 19112604462750000 ns
>> [    0.177623] futex hash table entries: 512 (order: 3, 32768 bytes, 
>> linear)
>> [    0.187542] pinctrl core: initialized pinctrl subsystem
>> [    0.196090] DMI not present or invalid.
>> [    0.200523] NET: Registered protocol family 16
>> [    0.208090] DMA: preallocated 256 KiB pool for atomic coherent 
>> allocations
>> [    0.219608] thermal_sys: Registered thermal governor 'step_wise'
>> [    0.219983] cpuidle: using governor menu
>> [    0.230428] No ATAGs?
>> [    0.232859] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4
>> watchpoint registers.
>> [    0.241016] hw-breakpoint: maximum watchpoint size is 8 bytes.
>> [    0.251971] Serial: AMBA PL011 UART driver
>> [    0.290080] /soc/interrupt-controller at 5000d000: bank0
>> [    0.295270] /soc/interrupt-controller at 5000d000: bank1
>> [    0.300392] /soc/interrupt-controller at 5000d000: bank2
>> [    0.309097] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOA 
>> bank added
>> [    0.316697] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOB 
>> bank added
>> [    0.324206] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOC 
>> bank added
>> [    0.331737] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOD 
>> bank added
>> [    0.339214] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOE 
>> bank added
>> [    0.346755] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOF 
>> bank added
>> [    0.354235] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOG 
>> bank added
>> [    0.361741] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOH 
>> bank added
>> [    0.369215] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOI 
>> bank added
>> [    0.376737] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOJ 
>> bank added
>> [    0.384212] stm32mp157-pinctrl soc:pin-controller at 50002000: GPIOK 
>> bank added
>> [    0.391548] stm32mp157-pinctrl soc:pin-controller at 50002000: Pinctrl
>> STM32 initialized
>> [    0.400793] stm32mp157-pinctrl soc:pin-controller-z at 54004000: GPIOZ
>> bank added
>> [    0.408173] stm32mp157-pinctrl soc:pin-controller-z at 54004000:
>> Pinctrl STM32 initialized
>> [    0.443287] AT91: Could not find identification node
>> [    0.445783] vtt_ddr: supplied by vdd
>> [    0.455092] vref_ddr: supplied by vdd
>> [    0.460017] v2v8: supplied by v3v3
>> [    0.464097] v1v8: supplied by v3v3
>> [    0.469830] iommu: Default domain type: Translated
>> [    0.475220] vgaarb: loaded
>> [    0.479043] SCSI subsystem initialized
>> [    0.483544] usbcore: registered new interface driver usbfs
>> [    0.489303] usbcore: registered new interface driver hub
>> [    0.494749] usbcore: registered new device driver usb
>> [    0.501305] pps_core: LinuxPPS API ver. 1 registered
>> [    0.506340] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
>> Rodolfo Giometti <giometti at linux.it>
>> [    0.515647] PTP clock support registered
>> [    0.523314] clocksource: Switched to clocksource arch_sys_counter
>> [    1.948309] NET: Registered protocol family 2
>> [    1.953753] tcp_listen_portaddr_hash hash table entries: 512
>> (order: 0, 6144 bytes, linear)
>> [    1.962249] TCP established hash table entries: 4096 (order: 2,
>> 16384 bytes, linear)
>> [    1.970191] TCP bind hash table entries: 4096 (order: 3, 32768 
>> bytes, linear)
>> [    1.977521] TCP: Hash tables configured (established 4096 bind 4096)
>> [    1.984156] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
>> [    1.990799] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, 
>> linear)
>> [    1.998132] NET: Registered protocol family 1
>> [    2.003428] RPC: Registered named UNIX socket transport module.
>> [    2.009436] RPC: Registered udp transport module.
>> [    2.014241] RPC: Registered tcp transport module.
>> [    2.019004] RPC: Registered tcp NFSv4.1 backchannel transport module.
>> [    2.025552] PCI: CLS 0 bytes, default 64
>> [    2.030836] hw perfevents: enabled with armv7_cortex_a7 PMU driver,
>> 5 counters available
>> [    2.040759] Initialise system trusted keyrings
>> [    2.045735] workingset: timestamp_bits=30 max_order=17 bucket_order=0
>> [    2.061599] squashfs: version 4.0 (2009/01/31) Phillip Lougher
>> [    2.068791] NFS: Registering the id_resolver key type
>> [    2.074014] Key type id_resolver registered
>> [    2.078251] Key type id_legacy registered
>> [    2.082467] nfs4filelayout_init: NFSv4 File Layout Driver 
>> Registering...
>> [    2.089362] ntfs: driver 2.1.32 [Flags: R/O].
>> [    2.094483] Key type asymmetric registered
>> [    2.098640] Asymmetric key parser 'x509' registered
>> [    2.103705] Block layer SCSI generic (bsg) driver version 0.4
>> loaded (major 247)
>> [    2.111198] io scheduler mq-deadline registered
>> [    2.115815] io scheduler kyber registered
>> [    2.150556] reg11: supplied by vdd
>> [    2.154448] reg18: supplied by vdd
>> [    2.158196] usb33: supplied by regulator-dummy
>> [    2.234829] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
>> [    2.246020] SuperH (H)SCI(F) driver initialized
>> [    2.251634] msm_serial: driver initialized
>> [    2.256079] STMicroelectronics ASC driver initialized
>> [    2.263194] STM32 USART driver initialized
>> [    2.268088] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 30,
>> base_baud = 4000000) is a stm32-usart
>>
>> On Mon, Dec 7, 2020 at 1:51 AM Jagan Teki <jagan at amarulasolutions.com> 
>> wrote:
>>> Hi Patrick,
>>>
>>> Got fixed, with DEBUG_LL
>>>
>>> Thanks.
>>>
>>> On Sat, Dec 5, 2020 at 12:49 AM Jagan Teki 
>>> <jagan at amarulasolutions.com> wrote:
>>>> Hi Patrick,
>>>>
>>>> Did you boot the Mainline linux recently? I'm trying to boot
>>>> STM32MP157C based design board with mainline Linux by using
>>>> multi_v7_defconfig.
>>>>
>>>> Here is the boot log, might be an issue with earlycon issue or
>>>> something. The Linux console on the design at uart4 and I have
>>>> aliased to serial0 with is done via chosen node.
>>>>
>>>> STM32MP-i.Core> ext4load mmc 0:4 $kernel_addr_r zImage;ext4load mmc
>>>> 0:4 $fdt_addr_r stm32mp157c-icore-stm32mp1.dtb;setenv bootargs
>>>> earlyprintk consol
>>>> e=ttySTM0,115200 root=/dev/mmcblk0p4 rootwait rw;bootz
>>>> $kernel_addr_r
>>>> - $fdt_addr_r
>>>> 7463424 bytes read in 494 ms (14.4 MiB/s)
>>>> 60673 bytes read in 5 ms (11.6 MiB/s) Kernel image @ 0xc2000000 [
>>>> 0x000000 - 0x71e200 ] ## Flattened Device Tree blob at c4000000
>>>>     Booting using the fdt blob at 0xc4000000
>>>>     Using Device Tree in place at c4000000, end c4011d00
>>>>
>>>> Starting kernel ...
>>>>
>>>> Any help?
>>>>
>>>> Jagan.
>>>>
>>>> -- 
>>>> Jagan Teki,
>>>> Amarula Solutions India Pvt. Ltd.
>>>> Co-Founder & Embedded Linux Architect 405/E-Block, Sri Lakshmi
>>>> Shubham Arcade, Chandanagar, Hyderabad - 500050, India M. (+91) 910
>>>> 009 0959 [`as] http://www.amarulasolutions.com
>>>
>>>
>>> -- 
>>> Jagan Teki,
>>> Amarula Solutions India Pvt. Ltd.
>>> Co-Founder & Embedded Linux Architect
>>> 405/E-Block, Sri Lakshmi Shubham Arcade, Chandanagar, Hyderabad - 
>>> 500050, India
>>> M. (+91) 910 009 0959
>>> [`as] http://www.amarulasolutions.com
>>
>>



More information about the Linux-stm32 mailing list