Jump to content

trying to bring up aw-A20-som, how to enable more verbose debug log from booting kernel ?


Recommended Posts

Posted

Hello,

 

I am working on a board that is essentially the AW-A20-SOM with some peripherals on a backplane in which the AW-A20-SOM plugs into. I built armbian from source in the recommended VM configuration using the existing aw-som-a20.csc config.

It boots and runs a special build that is installed in eMMC but I want to create an armbian build for it. First I want to boot it from SD card so I had just to change the following 

Spoiler

diff --git a/patch/u-boot/u-boot-sunxi/add-awsom-defconfig.patch b/patch/u-boot/u-boot-sunxi/add-awsom-defconfig.patch
index ee708eb..98bb457 100644
--- a/patch/u-boot/u-boot-sunxi/add-awsom-defconfig.patch
+++ b/patch/u-boot/u-boot-sunxi/add-awsom-defconfig.patch
@@ -1,14 +1,14 @@
 ===================================================================
 --- /dev/null
 +++ u-boot-2015.01/configs/Awsom_defconfig
-@@ -0,0 +1,31 @@
+@@ -0,0 +1,32 @@
 +CONFIG_ARM=y
 +CONFIG_ARCH_SUNXI=y
 +CONFIG_MACH_SUN7I=y
-+CONFIG_DRAM_CLK=480
++CONFIG_DRAM_CLK=384
 +CONFIG_DRAM_ZQ=127
 +CONFIG_DRAM_EMR1=4
-+CONFIG_MMC0_CD_PIN="PB9"
++CONFIG_MMC1_CD_PIN=""
 +CONFIG_SATAPWR="PB8"
 +CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-cubieboard2"
 +CONFIG_AHCI=y
@@ -33,3 +33,4 @@
 +CONFIG_DM_SERIAL=y
 +CONFIG_USB=y
 +CONFIG_DM_USB=y
++CONFIG_MMC_SUNXI_SLOT_EXTRA=2

 


 

With this change, u-boot starts and loads the linux kernel from SDcard but then ends up in a boot loop with no messages from the linux kernel at all. It just reboots after 45 seconds.


 

Spoiler

U-Boot SPL 2019.04-armbian (Sep 27 2019 - 15:58:15 +0200)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2019.04-armbian (Sep 27 2019 - 15:58:15 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: Cubietech Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from EXT4... ** File not found /boot/boot.env **

** Unable to read "/boot/boot.env" from mmc0:1 **
In:    serial
Out:   serial
Err:   serial
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst

Net:   eth0: ethernet@1c50000
230454 bytes read in 44 ms (5 MiB/s)
Error: 24 bits/pixel bitmap incompatible with current video mode
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3798 bytes read in 48 ms (77.1 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
153 bytes read in 39 ms (2.9 KiB/s)
7083728 bytes read in 457 ms (14.8 MiB/s)
7437000 bytes read in 479 ms (14.8 MiB/s)
Found mainline kernel configuration
38954 bytes read in 183 ms (207 KiB/s)
5845 bytes read in 152 ms (37.1 KiB/s)
Applying kernel provided DT fixup script (sun7i-a20-fixup.scr)
## Executing script at 44000000
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7083664 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
   Loading Ramdisk to 4993e000, end 49fff690 ... OK
   Loading Device Tree to 498cc000, end 4993dfff ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[   45.385880] reboot: Restarting system

U-Boot SPL 2019.04-armbian (Sep 27 2019 - 15:58:15 +0200)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2019.04-armbian (Sep 27 2019 - 15:58:15 +0200) Allwinner Technology

 

 

I guess my next step is to enable more verbose debug output from the linux kernel to see where it gets stuck, but I can't figure how to do that so far... I thought adding verbose or debug to the bootargs would do that but I guess the armbian boot process is much more complex.

 

 

Posted (edited)

replying to my own question, I found that I can do at the u-boot prompt

setenv extraargs debug

to increase the log level. now this is my current boot log

Spoiler

=> setenv extraargs "debug ignore_loglevel"
=> boot
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3798 bytes read in 48 ms (77.1 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
153 bytes read in 40 ms (2.9 KiB/s)
7083728 bytes read in 456 ms (14.8 MiB/s)
7437000 bytes read in 478 ms (14.8 MiB/s)
Found mainline kernel configuration
38954 bytes read in 183 ms (207 KiB/s)
5845 bytes read in 152 ms (37.1 KiB/s)
Applying kernel provided DT fixup script (sun7i-a20-fixup.scr)
## Executing script at 44000000
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7083664 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
   Loading Ramdisk to 4993e000, end 49fff690 ... OK
   Loading Device Tree to 498cc000, end 4993dfff ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.75-sunxi (root@VBoxu1804) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #5.97 SMP Fri Sep 27 16:17:53 CEST 2019
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=50c5387d
[    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: Cubietech Cubieboard2
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 128 MiB at 0x78000000
[    0.000000] On node 0 totalpages: 262144
[    0.000000]   Normal zone: 1728 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: get_random_bytes called from start_kernel+0x8d/0x3c6 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu s41548 r8192 d23988 u73728
[    0.000000] pcpu-alloc: s41548 r8192 d23988 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: root=UUID=6c1d6e60-a170-4c91-b742-15254030b87e rootwait rootfstype=ext4 console=ttyS0,115200 console=tty1 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=1fc3a872-01 ubootsource=mmc usb-storage.quirks= debug ignore_loglevel  sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
[    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] allocated 1048576 bytes of page_ext
[    0.000000] Memory: 885180K/1048576K available (8192K kernel code, 1002K rwdata, 2576K rodata, 1024K init, 331K bss, 32324K reserved, 131072K cma-reserved, 131072K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf800000 - 0xbfe00000   (   6 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   (1003 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 332 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 39503 entries in 78 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    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] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000364] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000607] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000860] Console: colour dummy device 80x30
[    0.001477] console [tty1] enabled
[    0.001544] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.001577] pid_max: default: 32768 minimum: 301
[    0.001805] Security Framework initialized
[    0.001833] AppArmor: AppArmor disabled by boot time parameter
[    0.001928] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001955] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002885] CPU: Testing write buffer coherency: ok
[    0.003321] /cpus/cpu@0 missing clock-frequency property
[    0.003357] /cpus/cpu@1 missing clock-frequency property
[    0.003381] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004060] Setting up static identity map for 0x40100000 - 0x40100054
[    0.004262] rcu: Hierarchical SRCU implementation.
[    0.005178] smp: Bringing up secondary CPUs ...
[    0.015987] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.016142] smp: Brought up 1 node, 2 CPUs
[    0.016184] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.016200] CPU: All CPU(s) started in HYP mode.
[    0.016213] CPU: Virtualization extensions available.
[    0.017458] devtmpfs: initialized
[    0.026114] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.026407] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.026452] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.031676] xor: measuring software checksum speed
[    0.067979]    arm4regs  :  1137.000 MB/sec
[    0.108040]    8regs     :   677.000 MB/sec
[    0.148102]    32regs    :   693.000 MB/sec
[    0.188163]    neon      :  1151.000 MB/sec
[    0.188179] xor: using function: neon (1151.000 MB/sec)
[    0.188287] pinctrl core: initialized pinctrl subsystem
[    0.189355] NET: Registered protocol family 16
[    0.192143] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.192786] audit: initializing netlink subsys (disabled)
[    0.193058] audit: type=2000 audit(0.184:1): state=initialized audit_enabled=0 res=1
[    0.193671] cpuidle: using governor ladder
[    0.193729] cpuidle: using governor menu
[    0.194360] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.194388] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.276833] raid6: int32x1  gen()   170 MB/s
[    0.344900] raid6: int32x1  xor()   145 MB/s
[    0.412935] raid6: int32x2  gen()   231 MB/s
[    0.480980] raid6: int32x2  xor()   175 MB/s
[    0.549275] raid6: int32x4  gen()   234 MB/s
[    0.617321] raid6: int32x4  xor()   174 MB/s
[    0.685432] raid6: int32x8  gen()   223 MB/s
[    0.753598] raid6: int32x8  xor()   155 MB/s
[    0.821652] raid6: neonx1   gen()   447 MB/s
[    0.889828] raid6: neonx1   xor()   416 MB/s
[    0.957983] raid6: neonx2   gen()   600 MB/s
[    1.026098] raid6: neonx2   xor()   537 MB/s
[    1.094241] raid6: neonx4   gen()   721 MB/s
[    1.162345] raid6: neonx4   xor()   605 MB/s
[    1.230518] raid6: neonx8   gen()   649 MB/s
[    1.298595] raid6: neonx8   xor()   548 MB/s
[    1.298613] raid6: using algorithm neonx4 gen() 721 MB/s
[    1.298628] raid6: .... xor() 605 MB/s, rmw enabled
[    1.298643] raid6: using neon recovery algorithm
[    1.300425] SCSI subsystem initialized
[    1.300779] libata version 3.00 loaded.
[    1.301035] usbcore: registered new interface driver usbfs
[    1.301098] usbcore: registered new interface driver hub
[    1.301173] usbcore: registered new device driver usb
[    1.301407] media: Linux media interface: v0.10
[    1.301467] videodev: Linux video capture interface: v2.00
[    1.301636] pps_core: LinuxPPS API ver. 1 registered
[    1.301657] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.301693] PTP clock support registered
[    1.303762] clocksource: Switched to clocksource arch_sys_counter
[    1.422945] VFS: Disk quotas dquot_6.6.0
[    1.423060] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.431723] NET: Registered protocol family 2
[    1.432622] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    1.432684] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.432792] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.432928] TCP: Hash tables configured (established 8192 bind 8192)
[    1.433064] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.433138] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.433409] NET: Registered protocol family 1
[    1.434067] RPC: Registered named UNIX socket transport module.
[    1.434097] RPC: Registered udp transport module.
[    1.434112] RPC: Registered tcp transport module.
[    1.434126] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.434418] Trying to unpack rootfs image as initramfs...
[    1.905164] Freeing initrd memory: 6920K
[    1.905956] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    1.906291] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    1.907874] Initialise system trusted keyrings
[    1.908181] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    1.914476] zbud: loaded
[    1.917225] NFS: Registering the id_resolver key type
[    1.917294] Key type id_resolver registered
[    1.917310] Key type id_legacy registered
[    1.917335] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.917353] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.918642] JFS: nTxBlock = 7993, nTxLock = 63948
[    1.928468] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    1.938054] Key type asymmetric registered
[    1.938095] Asymmetric key parser 'x509' registered
[    1.938174] bounce: pool size: 64 pages
[    1.938270] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.938479] io scheduler noop registered
[    1.938502] io scheduler deadline registered
[    1.938730] io scheduler cfq registered (default)
[    1.938752] io scheduler mq-deadline registered
[    1.938768] io scheduler kyber registered
[    1.938935] io scheduler bfq registered
[    1.943526] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.953511] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.955815] console [ttyS0] disabled
[    1.976004] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 47, base_baud = 1500000) is a U6_16550A
[    2.908297] console [ttyS0] enabled
[    2.916171] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    2.926571] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0986278)
[    2.934373] sun4i-backend 1e40000.display-backend: Couldn't find matching frontend, frontend features disabled
[    2.944677] sun4i-drm display-engine: bound 1e40000.display-backend (ops 0xc0986278)
[    2.952864] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    2.960761] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc09851f8)
[    2.968816] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    2.976706] sun4i-drm display-engine: bound 1c0d000.lcd-controller (ops 0xc09851f8)
[    2.985212] sun4i-drm display-engine: bound 1c16000.hdmi (ops 0xc0986c84)
[    2.992091] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.998730] [drm] No driver support for vblank timestamp query.
[    3.504745] [drm] Cannot find any crtc or sizes
[    3.509837] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    3.521528] brd: module loaded
[    3.531597] loop: module loaded
[    3.537681] libphy: Fixed MDIO Bus: probed
[    3.542440] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    3.548234] sun7i-dwmac 1c50000.ethernet: no reset control found
[    3.554292] sun7i-dwmac 1c50000.ethernet: no regulator found
[    3.560242] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    3.566464] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    3.571452] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
[    3.578694] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    3.584377] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[    3.603066] libphy: stmmac: probed
[    3.606534] mdio_bus stmmac-0:01: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    3.617803] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.624396] ehci-platform: EHCI generic platform driver
[    3.630104] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.636351] ohci-platform: OHCI generic platform driver
[    3.642353] usbcore: registered new interface driver usb-storage
[    3.649443] sunxi-rtc 1c20d00.rtc: registered as rtc0
[    3.654586] sunxi-rtc 1c20d00.rtc: RTC enabled
[    3.659199] i2c /dev entries driver
[    3.663825] axp20x-i2c 1-0034: AXP20x variant AXP209 found
[    3.684472] input: axp20x-pek as /devices/platform/soc@1c00000/1c2ac00.i2c/i2c-1/1-0034/axp20x-pek/input/input0
[    3.695352] ldo1: supplied by regulator-dummy
[    3.700034] ldo2: supplied by regulator-dummy
[    3.705558] ldo3: supplied by regulator-dummy
[    3.710622] ldo4: supplied by regulator-dummy
[    3.715249] ldo5: supplied by regulator-dummy
[    3.720690] dcdc2: supplied by regulator-dummy
[    3.725851] dcdc3: supplied by regulator-dummy
[    3.734495] random: fast init done
[    3.738049] axp20x-i2c 1-0034: Backup (RTC) battery charging is disabled
[    3.744899] axp20x-i2c 1-0034: AXP20X driver loaded
[    3.752372] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.761188] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[    3.768901] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    3.799103] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    3.807629] ledtrig-cpu: registered to indicate activity on CPUs
[    3.813809] hidraw: raw HID events driver (C) Jiri Kosina
[    3.819380] usbcore: registered new interface driver usbhid
[    3.824983] usbhid: USB HID core driver
[    3.829991] Initializing XFRM netlink socket
[    3.835057] NET: Registered protocol family 10
[    3.862039] Segment Routing with IPv6
[    3.865902] NET: Registered protocol family 17
[    3.870398] NET: Registered protocol family 15
[    3.874904] 8021q: 802.1Q VLAN Support v1.8
[    3.879436] Key type dns_resolver registered
[    3.884268] Registering SWP/SWPB emulation handler
[    3.889745] registered taskstats version 1
[    3.893880] Loading compiled-in X.509 certificates
[    3.898797] zswap: loaded using pool lzo/zbud
[    3.905359] Btrfs loaded, crc32c=crc32c-generic
[    3.920487] Key type encrypted registered
[    3.937681] sun4i-usb-phy 1c13400.phy: Linked as a consumer to regulator.12
[    3.944955] sun4i-usb-phy 1c13400.phy: Linked as a consumer to regulator.13
[    3.952639] ahci-sunxi 1c18000.sata: Linked as a consumer to regulator.11
[    4.015803] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[    4.023360] ahci-sunxi 1c18000.sata: SSS flag set, parallel bus scan disabled
[    4.030540] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    4.039522] ahci-sunxi 1c18000.sata: flags: ncq sntf stag pm led clo only pio slum part ccc
[    4.049112] scsi host0: ahci-sunxi
[    4.052947] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 35
[    4.061539] ehci-platform 1c14000.usb: EHCI Host Controller
[    4.067198] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[    4.075264] ehci-platform 1c14000.usb: irq 31, io mem 0x01c14000
[    4.095797] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[    4.102161] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    4.110462] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.117703] usb usb1: Product: EHCI Host Controller
[    4.122597] usb usb1: Manufacturer: Linux 4.19.75-sunxi ehci_hcd
[    4.128619] usb usb1: SerialNumber: 1c14000.usb
[    4.133828] hub 1-0:1.0: USB hub found
[    4.137665] hub 1-0:1.0: 1 port detected
[    4.142549] ehci-platform 1c1c000.usb: EHCI Host Controller
[    4.148196] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[    4.156241] ehci-platform 1c1c000.usb: irq 36, io mem 0x01c1c000
[    4.175785] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    4.182132] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    4.190428] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.197669] usb usb2: Product: EHCI Host Controller
[    4.202564] usb usb2: Manufacturer: Linux 4.19.75-sunxi ehci_hcd
[    4.208586] usb usb2: SerialNumber: 1c1c000.usb
[    4.213718] hub 2-0:1.0: USB hub found
[    4.217545] hub 2-0:1.0: 1 port detected
[    4.222410] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[    4.229095] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[    4.237117] ohci-platform 1c14400.usb: irq 32, io mem 0x01c14400
[    4.303970] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    4.312267] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.319507] usb usb3: Product: Generic Platform OHCI controller
[    4.325445] usb usb3: Manufacturer: Linux 4.19.75-sunxi ohci_hcd
[    4.331464] usb usb3: SerialNumber: 1c14400.usb
[    4.337581] hub 3-0:1.0: USB hub found
[    4.341421] hub 3-0:1.0: 1 port detected
[    4.346301] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    4.352999] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[    4.361028] ohci-platform 1c1c400.usb: irq 37, io mem 0x01c1c400
[    4.374218] ata1: SATA link down (SStatus 0 SControl 300)
[    4.428010] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    4.436316] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.443562] usb usb4: Product: Generic Platform OHCI controller
[    4.449502] usb usb4: Manufacturer: Linux 4.19.75-sunxi ohci_hcd
[    4.455525] usb usb4: SerialNumber: 1c1c400.usb
[    4.460776] hub 4-0:1.0: USB hub found
[    4.464645] hub 4-0:1.0: 1 port detected
[    4.469628] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    4.480452] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[    4.488902] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    4.494690] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 5
[    4.502806] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    4.511111] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.518356] usb usb5: Product: MUSB HDRC host driver
[    4.523349] usb usb5: Manufacturer: Linux 4.19.75-sunxi musb-hcd
[    4.529375] usb usb5: SerialNumber: musb-hdrc.1.auto
[    4.534573] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    4.541948] hub 5-0:1.0: USB hub found
[    4.545805] hub 5-0:1.0: 1 port detected
[    5.550445] [drm] Cannot find any crtc or sizes
[    5.556299] sunxi-rtc 1c20d00.rtc: setting system clock to 1970-01-01 00:00:28 UTC (28)
[    5.564611] of_cfs_init
[    5.567183] of_cfs_init: OK
[    5.570244] vcc3v0: disabling
[    5.573255] vcc3v3: disabling
[    5.576244] vcc5v0: disabling
[    5.582961] Freeing unused kernel memory: 1024K
[    5.587789] Run /init as init process
[    5.645525] usb 1-1: New USB device found, idVendor=0bda, idProduct=b720, bcdDevice= 2.00
[    5.653841] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.661076] usb 1-1: Product: 802.11n WLAN Adapter
[    5.665977] usb 1-1: Manufacturer: Realtek
[    5.670179] usb 1-1: SerialNumber: 00e04c000001
[    5.693392] systemd-udevd[137]: starting version 237
[    5.700213] systemd-udevd[138]: hwdb.bin does not exist, please run systemd-hwdb update
[    5.710372] systemd-udevd[138]: timestamp of '/lib/systemd/network' changed
[    5.718098] systemd-udevd[138]: timestamp of '/lib/udev/rules.d' changed
[    5.786238] systemd-udevd[140]: passed 131 byte device to netlink monitor 0x1ab91b8
[    5.787156] systemd-udevd[143]: passed 137 byte device to netlink monitor 0x1abdf28
[    5.796116] systemd-udevd[142]: passed 139 byte device to netlink monitor 0x1abd670
[    5.802665] systemd-udevd[141]: passed 139 byte device to netlink monitor 0x1abd038
[    5.811615] systemd-udevd[144]: passed 131 byte device to netlink monitor 0x1abe868
[    5.819475] systemd-udevd[145]: passed 140 byte device to netlink monitor 0x1abf348
[    6.374670] axp20x-gpio axp20x-gpio: DMA mask not set
[    6.383825] axp20x-gpio axp20x-gpio: AXP209 pinctrl and GPIO driver loaded
[   47.802967] reboot: Restarting system

 

 

it would seem like there is something stuck with the AXP209 ?

 

any ideas ?

Edited by Igor
use spoilers when adding wall of text
Posted (edited)

more debug with booting with extraargs "debug initcall_debug"

after [   13.181458] initcall axp20x_pctl_driver_init+0x0/0xfff [pinctrl_axp209] returned 0 after 39165 usecs

I thought axp20 pinctrl was hanging but it looks like it's init returns

we are just hung after that... ??

Spoiler

[   12.590143] systemd-udevd[139]: passed 132 byte device to netlink monitor 0x82a1b8
[   12.591916] systemd-udevd[142]: passed 138 byte device to netlink monitor 0x82ef28
[   12.599984] systemd-udevd[143]: passed 132 byte device to netlink monitor 0x82f868
[   12.607225] systemd-udevd[146]: passed 132 byte device to netlink monitor 0x831b08
[   13.134051] calling  axp20x_pctl_driver_init+0x0/0xfff [pinctrl_axp209] @ 156
[   13.141657] axp20x-gpio axp20x-gpio: DMA mask not set
[   13.168394] axp20x-gpio axp20x-gpio: AXP209 pinctrl and GPIO driver loaded
[   13.175492] probe of axp20x-gpio returned 1 after 33883 usecs
[   13.181458] initcall axp20x_pctl_driver_init+0x0/0xfff [pinctrl_axp209] returned 0 after 39165 usecs
[   54.594875] musb-hdrc musb-hdrc.1.auto: shutdown
[   54.599574] usb_phy_generic usb_phy_generic.0.auto: shutdown
[   54.605258] musb-sunxi 1c13000.usb: shutdown
[   54.609556] ohci-platform 1c1c400.usb: shutdown
[   54.614140] ohci-platform 1c14400.usb: shutdown
[   54.618715] ehci-platform 1c1c000.usb: shutdown
[   54.623281] ehci-platform 1c14000.usb: shutdown
[   54.628848] ahci-sunxi 1c18000.sata: shutdown
[   54.633231] sun4i-usb-phy 1c13400.phy: shutdown
[   54.637782] reg-fixed-voltage usb2-vbus: shutdown
[   54.642504] reg-fixed-voltage usb1-vbus: shutdown
[   54.647227] reg-fixed-voltage ahci-5v: shutdown
[   54.651793] sunxi-mmc 1c0f000.mmc: shutdown
[   54.656003] i2c i2c-2: shutdown
[   54.659175] axp20x-regulator axp20x-regulator: shutdown
[   54.664419] axp20x-pek axp20x-pek: shutdown
[   54.668620] axp20x-gpio axp20x-gpio: shutdown
[   54.672993] axp20x-i2c 1-0034: shutdown
[   54.676847] i2c i2c-1: shutdown
[   54.680073] i2c i2c-0: shutdown
[   54.683239] serial8250 serial8250: shutdown
[   54.687611] alarmtimer alarmtimer: shutdown
[   54.691966] leds-gpio leds: shutdown
[   54.695573] reg-fixed-voltage vcc5v0: shutdown
[   54.700034] reg-fixed-voltage vcc3v3: shutdown
[   54.704494] reg-fixed-voltage vcc3v0: shutdown
[   54.708956] sun4i-backend 1e60000.display-backend: shutdown
[   54.714544] sun4i-backend 1e40000.display-backend: shutdown
[   54.720138] sun7i-dwmac 1c50000.ethernet: shutdown
[   54.724948] mv64xxx_i2c 1c2b000.i2c: shutdown
[   54.729328] mv64xxx_i2c 1c2ac00.i2c: shutdown
[   54.733703] dw-apb-uart 1c28000.serial: shutdown
[   54.738339] eeprom-sunxi-sid 1c23800.eeprom: shutdown
[   54.743412] sunxi-rtc 1c20d00.rtc: shutdown
[   54.747612] sunxi-wdt 1c20c90.watchdog: shutdown
[   54.752248] sun4i-pinctrl 1c20800.pinctrl: shutdown
[   54.757142] sun4i-hdmi 1c16000.hdmi: shutdown
[   54.761519] sun4i-tcon 1c0d000.lcd-controller: shutdown
[   54.766759] sun4i-tcon 1c0c000.lcd-controller: shutdown
[   54.772001] sun4i-dma 1c02000.dma-controller: shutdown
[   54.777156] sunxi-sram 1c00000.system-control: shutdown
[   54.782399] sun4i-drm display-engine: shutdown
[   54.786859] armv7-pmu pmu: shutdown
[   54.790372] reg-dummy reg-dummy: shutdown
[   54.794481] PM: Calling ledtrig_cpu_syscore_shutdown+0x1/0xc
[   54.800191] PM: Calling irq_gc_shutdown+0x1/0x3c
[   54.804833] PM: Calling cpufreq_suspend+0x1/0xac
[   54.809465] reboot: Restarting system

 

 

Edited by Igor
use spoilers when adding wall of text
Posted

ok so I got it booting fully.

I just created a very limited device tree for u boot and linux, that only had what I know is on the board and used. Eventually it booted.

I thought it was stuck at some point but after the logs showing the rootfs was mounted an dsome other stuff. I figured the 32GB partitions might be in the process of being resized and remounted... and that was it.

 

I'll have to clean up the patch files I made.

Next experiment with I2S and some of the other hardware peripherals on that board...

 

Cheers, thanks for the help !

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines