linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Kernel hang when replace older uboot with uboot master for ath79 mips platform
@ 2019-02-22  2:35 rosysong
  2019-02-22  9:06 ` Oleksij Rempel
  0 siblings, 1 reply; 4+ messages in thread
From: rosysong @ 2019-02-22  2:35 UTC (permalink / raw)
  To: linux-mips

Hi all, 
    My kernel version is linux-4.9.158, it hangs when replace the old u-boot(1.1.4) with u-boot-master.
    For linux-4.14.xx, When I enable CONFIG_MIPSR2_IRQ_VI options, it does hang any longer while still hang in linux-4.9.158.
    Sometimes it hangs at "random: crng init done".

    Any hints will be appreciated!!! Thanks

U-Boot 2019.01-00079-g3420a6fc6e-dirty (Feb 19 2019 - 17:19:16 +0800)

Qualcomm Atheros QCA9561 ver 1 rev 0
Model: AP152 Reference Board
DRAM:  128 MiB
Loading Environment from SPI Flash... SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB, mapped at 9f000000
*** Warning - bad CRC, using default environment

In:    uart@18020000
Out:   uart@18020000
Err:   uart@18020000
Net:   
Warning: eth@0x19000000 (eth0) using random MAC address - 56:87:3c:61:9b:50
eth0: eth@0x19000000
Hit any key to stop autoboot:  0 
ap152 # bootm 0x1f060000
## Booting kernel from Legacy Image at 1f060000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.101
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1615030 Bytes = 1.5 MiB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
[    0.000000] Linux version 4.14.101 (xxx@xxx-PC) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r8997-488af51f81)) #0 Mon Feb 18 15:11:32 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is ROSINSON WR818
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 123184K/131072K available (3777K kernel code, 150K rwdata, 912K rodata, 1232K init, 204K bss, 7888K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008841] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.075897] pid_max: default: 32768 minimum: 301
[    0.081292] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.088805] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100195] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.111385] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.118370] pinctrl core: initialized pinctrl subsystem
[    0.125117] NET: Registered protocol family 16
[    0.152720] clocksource: Switched to clocksource MIPS
[    0.159331] NET: Registered protocol family 2
[    0.164932] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.172894] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180116] TCP: Hash tables configured (established 1024 bind 1024)
[    0.187461] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.194136] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.201461] NET: Registered protocol family 1
[    0.209168] Crashlog allocated RAM at address 0x3f00000
[    0.216385] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.227688] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.234346] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.253234] io scheduler noop registered
[    0.257682] io scheduler deadline registered (default)
[    0.263810] ar7200-usb-phy usb-phy: phy reset is missing
[    0.271331] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    0.280201] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.288040] console [ttyS0] disabled
[    0.292122] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a 16550A
[    0.301943] console [ttyS0] enabled
[    0.301943] console [ttyS0] enabled
[    0.309500] bootconsole [early0] disabled
[    0.309500] bootconsole [early0] disabled
[    0.332542] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.337492] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.344060] Creating 5 MTD partitions on "spi0.0":
[    0.349014] 0x000000000000-0x000000040000 : "u-boot"
[    0.354834] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.360944] 0x000000050000-0x000000060000 : "factory"
[    0.366831] 0x000000060000-0x000000fe0000 : "firmware"
[    0.374973] 2 uimage-fw partitions found on MTD device firmware
[    0.381090] Creating 2 MTD partitions on "firmware":
[    0.386258] 0x000000000000-0x000000190000 : "kernel"
[    0.392027] 0x000000190000-0x000000f80000 : "rootfs"
[    0.397783] mtd: device 5 (rootfs) set to be root filesystem
[    0.403703] 1 squashfs-split partitions found on MTD device rootfs
[    0.410095] 0x000000440000-0x000000f80000 : "rootfs_data"
[    0.416295] 0x000000ff0000-0x000001000000 : "art"
[    0.422691] libphy: Fixed MDIO Bus: probed
[    0.763078] libphy: ag71xx_mdio: probed
[    0.770036] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    1.424526] ag71xx 19000000.eth: invalid MAC address, using random address
[    1.763882] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    1.775479] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[    1.783515] NET: Registered protocol family 10
[    1.791439] Segment Routing with IPv6
[    1.795358] NET: Registered protocol family 17
[    1.799984] 8021q: 802.1Q VLAN Support v1.8
[    1.810014] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.824049] Freeing unused kernel memory: 1232K
[    1.828729] This architecture does not have kernel memory protection.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel hang when replace older uboot with uboot master for ath79 mips platform
  2019-02-22  2:35 Kernel hang when replace older uboot with uboot master for ath79 mips platform rosysong
@ 2019-02-22  9:06 ` Oleksij Rempel
  2019-02-22  9:57   ` rosysong
  0 siblings, 1 reply; 4+ messages in thread
From: Oleksij Rempel @ 2019-02-22  9:06 UTC (permalink / raw)
  To: rosysong, linux-mips


[-- Attachment #1.1: Type: text/plain, Size: 8844 bytes --]

Hi,

Am 22.02.19 um 03:35 schrieb rosysong@rosinson.com:> Hi all,
>     My kernel version is linux-4.9.158, it hangs when replace the old u-boot(1.1.4) with
u-boot-master.
>     For linux-4.14.xx, When I enable CONFIG_MIPSR2_IRQ_VI options, it does hang any longer while
still hang in linux-4.9.158.
>     Sometimes it hangs at "random: crng init done".
>
>     Any hints will be appreciated!!! Thanks
It is hard to answer your questions. Many parts play with each other. ASo far I have following
questions:
- why do you change boot loader?
- why do you use old kernels?
- why you do not use devicetree?
- what is your memory layout? Where is loaded u-boot and where should be loaded kernel. Is kernel
compressed? Where it will be extracted?

Here is boot log on my system:
barebox 2019.01.0-00526-gdd4b47ab1b #346 Mon Feb 18 08:42:48 CET 2019

Board: DPTechnics DPT-Module
mdio_bus: miibus0: probed
ag71xx-gmac 18070000.mac@19000000.of: network device registered
m25p80 w25q128@00: w25q128 (16384 Kbytes)
netconsole: registered as netconsole-1
malloc space: 0x83ba0000 -> 0x83f9ffff (size 4 MiB)
eth0: got preset MAC address: c4:93:00:00:ae:89
running /env/bin/init...

Hit any key to stop autoboot:    0
Booting entry 'net'
eth0: DHCP client bound to address 192.168.25.20

Loading ELF '/mnt/tftp/ore-linux-dpt-module'
Loading devicetree from '/mnt/tftp/ore-oftree-dpt-module'
Starting application at 0x806e0000, dts 0x83bd6120...
[    0.000000] Linux version 5.0.0-rc1+ (ptxdist@ptxdist) (gcc version 8.2.1 20181130 (OSELAS.Toolch$
in-2018.12.0 8-20181130)) #644 2019-01-11T13:10:06+00:00
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is DPTechnics DPT-Module
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 80000000 (usable)
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0xc4/0x52c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:   ip=dhcp root=/dev/nfs nfsroot=192.168.23.4:/home/ore/nfsroot/d$
t-module,v3,tcp
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 56624K/65536K available (4883K kernel code, 398K rwdata, 960K rodata, 1432K i$
it, 213K bss, 8912K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 17594 entries in 35 pages
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 400.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 n$
[    0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.092710] pid_max: default: 32768 minimum: 301
[    0.097631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.103958] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.114890] devtmpfs: initialized
[    0.120178] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446
2750000 ns
[    0.128639] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.134860] pinctrl core: initialized pinctrl subsystem
[    0.141450] NET: Registered protocol family 16
[    0.222120] clocksource: Switched to clocksource MIPS
[    2.172295] NET: Registered protocol family 2
[    2.176493] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    2.182985] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.189826] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    2.196188] TCP: Hash tables configured (established 1024 bind 1024)
[    2.202754] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.208341] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.215083] NET: Registered protocol family 1
[    2.221613] RPC: Registered named UNIX socket transport module.
[    2.226175] RPC: Registered udp transport module.
[    2.230768] RPC: Registered tcp transport module.
[    2.235487] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.245537] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    2.261046] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.282255] NFS: Registering the id_resolver key type
[    2.285902] Key type id_resolver registered
[    2.290024] Key type id_legacy registered
[    2.294098] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.300768] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.313723] pinctrl-single 18040028.pinmux: 64 pins, size 8
[    2.323909] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.331142] 18020000.uart: ttyATH0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a AR933X U
ART
[    2.339446] printk: console [ttyATH0] enabled
[    2.339446] printk: console [ttyATH0] enabled
[    2.347627] printk: bootconsole [early0] disabled
[    2.347627] printk: bootconsole [early0] disabled
[    2.363728] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    2.367039] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.373438] Creating 4 MTD partitions on "spi0.0":
[    2.378121] 0x000000020000-0x0000003e0000 : "firmware"
[    2.386127] 0x000000000000-0x000000080000 : "barebox"
[    2.393122] 0x000000080000-0x000000090000 : "barebox-environment"
[    2.401065] 0x0000007f0000-0x000000800000 : "art"
[    2.408770] libphy: Fixed MDIO Bus: probed
[    2.562114] random: fast init done
[    2.742683] libphy: ag71xx_mdio: probed
[    3.032223] mdio-bus.0:1f: Found an AR7240/AR9330 built-in switch
[    3.037170] libphy: ar7240sw_mdio: probed
[    3.086221] ag71xx 19000000.eth: invalid MAC address, using random address
[    3.423862] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd041, driver=Generi
c PHY]
[    3.433094] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    3.440646] NET: Registered protocol family 10

[    3.449822] Segment Routing with IPv6
[    3.452310] NET: Registered protocol family 17
[    3.457295] 8021q: 802.1Q VLAN Support v1.8
[    3.460718] Key type dns_resolver registered
[    3.470181] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.533865] eth0: link up (100Mbps/Full duplex)
[    5.542180] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.572256] Sending DHCP requests ., OK
[    6.674525] IP-Config: Got DHCP answer from 192.168.23.4, my address is 192.168.25.152
[    6.682442] IP-Config: Complete:
[    6.685640]      device=eth0, hwaddr=5a:8e:98:5e:67:91, ipaddr=192.168.25.152, mask=255.255.0.0, g
w=192.168.23.254
[    6.695986]      host=192.168.25.152, domain=lab.pengutronix.de, nis-domain=(none)
[    6.703544]      bootserver=192.168.23.4, rootserver=192.168.23.4, rootpath=
[    6.703554]      nameserver0=192.168.23.254
[    6.714748]      ntpserver0=192.168.23.4
[    6.747124] VFS: Mounted root (nfs filesystem) readonly on device 0:12.
[    6.753709] devtmpfs: mounted
[    6.784596] Freeing unused kernel memory: 1432K
[    6.787677] This architecture does not have kernel memory protection.
[    6.794147] Run /sbin/init as init process
[    7.376070] systemd[1]: System time before build time, advancing clock.
[    7.500128] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    7.622546] systemd[1]: systemd 239 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -
SMACK -SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -I
DN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    7.643950] systemd[1]: Detected architecture mips.

Welcome to PTXdist / Pengutronix-Freifunk!

[    7.715905] systemd[1]: Set hostname to <Freifunk>.

-- 
Regards,
Oleksij


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: Kernel hang when replace older uboot with uboot master for ath79 mips platform
  2019-02-22  9:06 ` Oleksij Rempel
@ 2019-02-22  9:57   ` rosysong
  2019-02-22 10:23     ` Oleksij Rempel
  0 siblings, 1 reply; 4+ messages in thread
From: rosysong @ 2019-02-22  9:57 UTC (permalink / raw)
  To: Oleksij Rempel, linux-mips

Thanks for your reply, I see your SoC is AR9331 which supported by u-boot-master either, and your bootloader is 
barebox-2019. Maybe you can build a u-boot-master image for your AR9331 machine and you will know what happen!!! :-)

My BSP is openwrt-18.06 https://github.com/openwrt/openwrt. qca953x SoC.



Am 22.02.19 um 03:35 schrieb rosysong@rosinson.com:> Hi all,
>     My kernel version is linux-4.9.158, it hangs when replace the old u-boot(1.1.4) with
u-boot-master.
>     For linux-4.14.xx, When I enable CONFIG_MIPSR2_IRQ_VI options, it does hang any longer while
still hang in linux-4.9.158.
>     Sometimes it hangs at "random: crng init done".
>
>     Any hints will be appreciated!!! Thanks
It is hard to answer your questions. Many parts play with each other. ASo far I have following
questions:
- why do you change boot loader?
- why do you use old kernels?
- why you do not use devicetree?
- what is your memory layout? Where is loaded u-boot and where should be loaded kernel. Is kernel
compressed? Where it will be extracted?
 
Here is boot log on my system:
barebox 2019.01.0-00526-gdd4b47ab1b #346 Mon Feb 18 08:42:48 CET 2019
 
Board: DPTechnics DPT-Module
mdio_bus: miibus0: probed
ag71xx-gmac 18070000.mac@19000000.of: network device registered
m25p80 w25q128@00: w25q128 (16384 Kbytes)
netconsole: registered as netconsole-1
malloc space: 0x83ba0000 -> 0x83f9ffff (size 4 MiB)
eth0: got preset MAC address: c4:93:00:00:ae:89
running /env/bin/init...
 
Hit any key to stop autoboot:    0
Booting entry 'net'
eth0: DHCP client bound to address 192.168.25.20
 
Loading ELF '/mnt/tftp/ore-linux-dpt-module'
Loading devicetree from '/mnt/tftp/ore-oftree-dpt-module'
Starting application at 0x806e0000, dts 0x83bd6120...
[    0.000000] Linux version 5.0.0-rc1+ (ptxdist@ptxdist) (gcc version 8.2.1 20181130 (OSELAS.Toolch$
in-2018.12.0 8-20181130)) #644 2019-01-11T13:10:06+00:00
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is DPTechnics DPT-Module
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 80000000 (usable)
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0xc4/0x52c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:   ip=dhcp root=/dev/nfs nfsroot=192.168.23.4:/home/ore/nfsroot/d$
t-module,v3,tcp
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 56624K/65536K available (4883K kernel code, 398K rwdata, 960K rodata, 1432K i$
it, 213K bss, 8912K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 17594 entries in 35 pages
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 400.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 n$
[    0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.092710] pid_max: default: 32768 minimum: 301
[    0.097631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.103958] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.114890] devtmpfs: initialized
[    0.120178] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446
2750000 ns
[    0.128639] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.134860] pinctrl core: initialized pinctrl subsystem
[    0.141450] NET: Registered protocol family 16
[    0.222120] clocksource: Switched to clocksource MIPS
[    2.172295] NET: Registered protocol family 2
[    2.176493] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    2.182985] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.189826] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    2.196188] TCP: Hash tables configured (established 1024 bind 1024)
[    2.202754] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.208341] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.215083] NET: Registered protocol family 1
[    2.221613] RPC: Registered named UNIX socket transport module.
[    2.226175] RPC: Registered udp transport module.
[    2.230768] RPC: Registered tcp transport module.
[    2.235487] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.245537] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    2.261046] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.282255] NFS: Registering the id_resolver key type
[    2.285902] Key type id_resolver registered
[    2.290024] Key type id_legacy registered
[    2.294098] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.300768] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.313723] pinctrl-single 18040028.pinmux: 64 pins, size 8
[    2.323909] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.331142] 18020000.uart: ttyATH0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a AR933X U
ART
[    2.339446] printk: console [ttyATH0] enabled
[    2.339446] printk: console [ttyATH0] enabled
[    2.347627] printk: bootconsole [early0] disabled
[    2.347627] printk: bootconsole [early0] disabled
[    2.363728] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    2.367039] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.373438] Creating 4 MTD partitions on "spi0.0":
[    2.378121] 0x000000020000-0x0000003e0000 : "firmware"
[    2.386127] 0x000000000000-0x000000080000 : "barebox"
[    2.393122] 0x000000080000-0x000000090000 : "barebox-environment"
[    2.401065] 0x0000007f0000-0x000000800000 : "art"
[    2.408770] libphy: Fixed MDIO Bus: probed
[    2.562114] random: fast init done
[    2.742683] libphy: ag71xx_mdio: probed
[    3.032223] mdio-bus.0:1f: Found an AR7240/AR9330 built-in switch
[    3.037170] libphy: ar7240sw_mdio: probed
[    3.086221] ag71xx 19000000.eth: invalid MAC address, using random address
[    3.423862] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd041, driver=Generi
c PHY]
[    3.433094] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    3.440646] NET: Registered protocol family 10
 
[    3.449822] Segment Routing with IPv6
[    3.452310] NET: Registered protocol family 17
[    3.457295] 8021q: 802.1Q VLAN Support v1.8
[    3.460718] Key type dns_resolver registered
[    3.470181] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.533865] eth0: link up (100Mbps/Full duplex)
[    5.542180] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.572256] Sending DHCP requests ., OK
[    6.674525] IP-Config: Got DHCP answer from 192.168.23.4, my address is 192.168.25.152
[    6.682442] IP-Config: Complete:
[    6.685640]      device=eth0, hwaddr=5a:8e:98:5e:67:91, ipaddr=192.168.25.152, mask=255.255.0.0, g
w=192.168.23.254
[    6.695986]      host=192.168.25.152, domain=lab.pengutronix.de, nis-domain=(none)
[    6.703544]      bootserver=192.168.23.4, rootserver=192.168.23.4, rootpath=
[    6.703554]      nameserver0=192.168.23.254
[    6.714748]      ntpserver0=192.168.23.4
[    6.747124] VFS: Mounted root (nfs filesystem) readonly on device 0:12.
[    6.753709] devtmpfs: mounted
[    6.784596] Freeing unused kernel memory: 1432K
[    6.787677] This architecture does not have kernel memory protection.
[    6.794147] Run /sbin/init as init process
[    7.376070] systemd[1]: System time before build time, advancing clock.
[    7.500128] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    7.622546] systemd[1]: systemd 239 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -
SMACK -SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -I
DN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    7.643950] systemd[1]: Detected architecture mips.
 
Welcome to PTXdist / Pengutronix-Freifunk!
 
[    7.715905] systemd[1]: Set hostname to <Freifunk>.
 
--
Regards,
Oleksij
 

 
From: Oleksij Rempel
Date: 2019-02-22 17:06
To: rosysong@rosinson.com; linux-mips
Subject: Re: Kernel hang when replace older uboot with uboot master for ath79 mips platform
Hi,
 
Am 22.02.19 um 03:35 schrieb rosysong@rosinson.com:> Hi all,
>     My kernel version is linux-4.9.158, it hangs when replace the old u-boot(1.1.4) with
u-boot-master.
>     For linux-4.14.xx, When I enable CONFIG_MIPSR2_IRQ_VI options, it does hang any longer while
still hang in linux-4.9.158.
>     Sometimes it hangs at "random: crng init done".
>
>     Any hints will be appreciated!!! Thanks
It is hard to answer your questions. Many parts play with each other. ASo far I have following
questions:
- why do you change boot loader?
- why do you use old kernels?
- why you do not use devicetree?
- what is your memory layout? Where is loaded u-boot and where should be loaded kernel. Is kernel
compressed? Where it will be extracted?
 
Here is boot log on my system:
barebox 2019.01.0-00526-gdd4b47ab1b #346 Mon Feb 18 08:42:48 CET 2019
 
Board: DPTechnics DPT-Module
mdio_bus: miibus0: probed
ag71xx-gmac 18070000.mac@19000000.of: network device registered
m25p80 w25q128@00: w25q128 (16384 Kbytes)
netconsole: registered as netconsole-1
malloc space: 0x83ba0000 -> 0x83f9ffff (size 4 MiB)
eth0: got preset MAC address: c4:93:00:00:ae:89
running /env/bin/init...
 
Hit any key to stop autoboot:    0
Booting entry 'net'
eth0: DHCP client bound to address 192.168.25.20
 
Loading ELF '/mnt/tftp/ore-linux-dpt-module'
Loading devicetree from '/mnt/tftp/ore-oftree-dpt-module'
Starting application at 0x806e0000, dts 0x83bd6120...
[    0.000000] Linux version 5.0.0-rc1+ (ptxdist@ptxdist) (gcc version 8.2.1 20181130 (OSELAS.Toolch$
in-2018.12.0 8-20181130)) #644 2019-01-11T13:10:06+00:00
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is DPTechnics DPT-Module
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 80000000 (usable)
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0xc4/0x52c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:   ip=dhcp root=/dev/nfs nfsroot=192.168.23.4:/home/ore/nfsroot/d$
t-module,v3,tcp
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 56624K/65536K available (4883K kernel code, 398K rwdata, 960K rodata, 1432K i$
it, 213K bss, 8912K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 17594 entries in 35 pages
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 400.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 n$
[    0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.092710] pid_max: default: 32768 minimum: 301
[    0.097631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.103958] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.114890] devtmpfs: initialized
[    0.120178] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446
2750000 ns
[    0.128639] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.134860] pinctrl core: initialized pinctrl subsystem
[    0.141450] NET: Registered protocol family 16
[    0.222120] clocksource: Switched to clocksource MIPS
[    2.172295] NET: Registered protocol family 2
[    2.176493] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    2.182985] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.189826] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    2.196188] TCP: Hash tables configured (established 1024 bind 1024)
[    2.202754] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.208341] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.215083] NET: Registered protocol family 1
[    2.221613] RPC: Registered named UNIX socket transport module.
[    2.226175] RPC: Registered udp transport module.
[    2.230768] RPC: Registered tcp transport module.
[    2.235487] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.245537] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    2.261046] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.282255] NFS: Registering the id_resolver key type
[    2.285902] Key type id_resolver registered
[    2.290024] Key type id_legacy registered
[    2.294098] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.300768] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.313723] pinctrl-single 18040028.pinmux: 64 pins, size 8
[    2.323909] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.331142] 18020000.uart: ttyATH0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a AR933X U
ART
[    2.339446] printk: console [ttyATH0] enabled
[    2.339446] printk: console [ttyATH0] enabled
[    2.347627] printk: bootconsole [early0] disabled
[    2.347627] printk: bootconsole [early0] disabled
[    2.363728] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    2.367039] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.373438] Creating 4 MTD partitions on "spi0.0":
[    2.378121] 0x000000020000-0x0000003e0000 : "firmware"
[    2.386127] 0x000000000000-0x000000080000 : "barebox"
[    2.393122] 0x000000080000-0x000000090000 : "barebox-environment"
[    2.401065] 0x0000007f0000-0x000000800000 : "art"
[    2.408770] libphy: Fixed MDIO Bus: probed
[    2.562114] random: fast init done
[    2.742683] libphy: ag71xx_mdio: probed
[    3.032223] mdio-bus.0:1f: Found an AR7240/AR9330 built-in switch
[    3.037170] libphy: ar7240sw_mdio: probed
[    3.086221] ag71xx 19000000.eth: invalid MAC address, using random address
[    3.423862] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd041, driver=Generi
c PHY]
[    3.433094] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    3.440646] NET: Registered protocol family 10
 
[    3.449822] Segment Routing with IPv6
[    3.452310] NET: Registered protocol family 17
[    3.457295] 8021q: 802.1Q VLAN Support v1.8
[    3.460718] Key type dns_resolver registered
[    3.470181] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.533865] eth0: link up (100Mbps/Full duplex)
[    5.542180] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.572256] Sending DHCP requests ., OK
[    6.674525] IP-Config: Got DHCP answer from 192.168.23.4, my address is 192.168.25.152
[    6.682442] IP-Config: Complete:
[    6.685640]      device=eth0, hwaddr=5a:8e:98:5e:67:91, ipaddr=192.168.25.152, mask=255.255.0.0, g
w=192.168.23.254
[    6.695986]      host=192.168.25.152, domain=lab.pengutronix.de, nis-domain=(none)
[    6.703544]      bootserver=192.168.23.4, rootserver=192.168.23.4, rootpath=
[    6.703554]      nameserver0=192.168.23.254
[    6.714748]      ntpserver0=192.168.23.4
[    6.747124] VFS: Mounted root (nfs filesystem) readonly on device 0:12.
[    6.753709] devtmpfs: mounted
[    6.784596] Freeing unused kernel memory: 1432K
[    6.787677] This architecture does not have kernel memory protection.
[    6.794147] Run /sbin/init as init process
[    7.376070] systemd[1]: System time before build time, advancing clock.
[    7.500128] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    7.622546] systemd[1]: systemd 239 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -
SMACK -SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -I
DN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    7.643950] systemd[1]: Detected architecture mips.
 
Welcome to PTXdist / Pengutronix-Freifunk!
 
[    7.715905] systemd[1]: Set hostname to <Freifunk>.
 
--
Regards,
Oleksij
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel hang when replace older uboot with uboot master for ath79 mips platform
  2019-02-22  9:57   ` rosysong
@ 2019-02-22 10:23     ` Oleksij Rempel
  0 siblings, 0 replies; 4+ messages in thread
From: Oleksij Rempel @ 2019-02-22 10:23 UTC (permalink / raw)
  To: rosysong, linux-mips


[-- Attachment #1.1: Type: text/plain, Size: 19893 bytes --]

Am 22.02.19 um 10:57 schrieb rosysong@rosinson.com:
> Thanks for your reply, I see your SoC is AR9331 which supported by u-boot-master either, and your bootloader is 
> barebox-2019. Maybe you can build a u-boot-master image for your AR9331 machine and you will know what happen!!! :-)

> My BSP is openwrt-18.06 https://github.com/openwrt/openwrt. qca953x SoC.

Sorry, I don't use u-boot and have no time to debug it.
My primer interests are barebox and mainlining of ath79 related patches from OpenWRT to the kernel.

> Am 22.02.19 um 03:35 schrieb rosysong@rosinson.com:> Hi all,
>>      My kernel version is linux-4.9.158, it hangs when replace the old u-boot(1.1.4) with
> u-boot-master.
>>      For linux-4.14.xx, When I enable CONFIG_MIPSR2_IRQ_VI options, it does hang any longer while
> still hang in linux-4.9.158.
>>      Sometimes it hangs at "random: crng init done".
>>
>>      Any hints will be appreciated!!! Thanks
> It is hard to answer your questions. Many parts play with each other. ASo far I have following
> questions:
> - why do you change boot loader?
> - why do you use old kernels?
> - why you do not use devicetree?
> - what is your memory layout? Where is loaded u-boot and where should be loaded kernel. Is kernel
> compressed? Where it will be extracted?
>  
> Here is boot log on my system:
> barebox 2019.01.0-00526-gdd4b47ab1b #346 Mon Feb 18 08:42:48 CET 2019
>  
> Board: DPTechnics DPT-Module
> mdio_bus: miibus0: probed
> ag71xx-gmac 18070000.mac@19000000.of: network device registered
> m25p80 w25q128@00: w25q128 (16384 Kbytes)
> netconsole: registered as netconsole-1
> malloc space: 0x83ba0000 -> 0x83f9ffff (size 4 MiB)
> eth0: got preset MAC address: c4:93:00:00:ae:89
> running /env/bin/init...
>  
> Hit any key to stop autoboot:    0
> Booting entry 'net'
> eth0: DHCP client bound to address 192.168.25.20
>  
> Loading ELF '/mnt/tftp/ore-linux-dpt-module'
> Loading devicetree from '/mnt/tftp/ore-oftree-dpt-module'
> Starting application at 0x806e0000, dts 0x83bd6120...
> [    0.000000] Linux version 5.0.0-rc1+ (ptxdist@ptxdist) (gcc version 8.2.1 20181130 (OSELAS.Toolch$
> in-2018.12.0 8-20181130)) #644 2019-01-11T13:10:06+00:00
> [    0.000000] printk: bootconsole [early0] enabled
> [    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
> [    0.000000] MIPS: machine is DPTechnics DPT-Module
> [    0.000000] SoC: Atheros AR9330 rev 1
> [    0.000000] Determined physical RAM map:
> [    0.000000]  memory: 04000000 @ 80000000 (usable)
> [    0.000000]  memory: 04000000 @ 00000000 (usable)
> [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
> [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
> [    0.000000] Zone ranges:
> [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
> [    0.000000] random: get_random_bytes called from start_kernel+0xc4/0x52c with crng_init=0
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
> [    0.000000] Kernel command line:   ip=dhcp root=/dev/nfs nfsroot=192.168.23.4:/home/ore/nfsroot/d$
> t-module,v3,tcp
> [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> [    0.000000] Writing ErrCtl register=00000000
> [    0.000000] Readback ErrCtl register=00000000
> [    0.000000] Memory: 56624K/65536K available (4883K kernel code, 398K rwdata, 960K rodata, 1432K i$
> it, 213K bss, 8912K reserved, 0K cma-reserved)
> [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [    0.000000] ftrace: allocating 17594 entries in 35 pages
> [    0.000000] NR_IRQS: 51
> [    0.000000] CPU clock: 400.000 MHz
> [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 n$
> [    0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
> [    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
> [    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
> [    0.092710] pid_max: default: 32768 minimum: 301
> [    0.097631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.103958] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.114890] devtmpfs: initialized
> [    0.120178] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446
> 2750000 ns
> [    0.128639] futex hash table entries: 256 (order: -1, 3072 bytes)
> [    0.134860] pinctrl core: initialized pinctrl subsystem
> [    0.141450] NET: Registered protocol family 16
> [    0.222120] clocksource: Switched to clocksource MIPS
> [    2.172295] NET: Registered protocol family 2
> [    2.176493] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
> [    2.182985] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
> [    2.189826] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
> [    2.196188] TCP: Hash tables configured (established 1024 bind 1024)
> [    2.202754] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [    2.208341] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [    2.215083] NET: Registered protocol family 1
> [    2.221613] RPC: Registered named UNIX socket transport module.
> [    2.226175] RPC: Registered udp transport module.
> [    2.230768] RPC: Registered tcp transport module.
> [    2.235487] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [    2.245537] workingset: timestamp_bits=30 max_order=14 bucket_order=0
> [    2.261046] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [    2.282255] NFS: Registering the id_resolver key type
> [    2.285902] Key type id_resolver registered
> [    2.290024] Key type id_legacy registered
> [    2.294098] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
> [    2.300768] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
> [    2.313723] pinctrl-single 18040028.pinmux: 64 pins, size 8
> [    2.323909] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
> [    2.331142] 18020000.uart: ttyATH0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a AR933X U
> ART
> [    2.339446] printk: console [ttyATH0] enabled
> [    2.339446] printk: console [ttyATH0] enabled
> [    2.347627] printk: bootconsole [early0] disabled
> [    2.347627] printk: bootconsole [early0] disabled
> [    2.363728] m25p80 spi0.0: w25q128 (16384 Kbytes)
> [    2.367039] 4 fixed-partitions partitions found on MTD device spi0.0
> [    2.373438] Creating 4 MTD partitions on "spi0.0":
> [    2.378121] 0x000000020000-0x0000003e0000 : "firmware"
> [    2.386127] 0x000000000000-0x000000080000 : "barebox"
> [    2.393122] 0x000000080000-0x000000090000 : "barebox-environment"
> [    2.401065] 0x0000007f0000-0x000000800000 : "art"
> [    2.408770] libphy: Fixed MDIO Bus: probed
> [    2.562114] random: fast init done
> [    2.742683] libphy: ag71xx_mdio: probed
> [    3.032223] mdio-bus.0:1f: Found an AR7240/AR9330 built-in switch
> [    3.037170] libphy: ar7240sw_mdio: probed
> [    3.086221] ag71xx 19000000.eth: invalid MAC address, using random address
> [    3.423862] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd041, driver=Generi
> c PHY]
> [    3.433094] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
> [    3.440646] NET: Registered protocol family 10
>  
> [    3.449822] Segment Routing with IPv6
> [    3.452310] NET: Registered protocol family 17
> [    3.457295] 8021q: 802.1Q VLAN Support v1.8
> [    3.460718] Key type dns_resolver registered
> [    3.470181] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [    5.533865] eth0: link up (100Mbps/Full duplex)
> [    5.542180] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [    5.572256] Sending DHCP requests ., OK
> [    6.674525] IP-Config: Got DHCP answer from 192.168.23.4, my address is 192.168.25.152
> [    6.682442] IP-Config: Complete:
> [    6.685640]      device=eth0, hwaddr=5a:8e:98:5e:67:91, ipaddr=192.168.25.152, mask=255.255.0.0, g
> w=192.168.23.254
> [    6.695986]      host=192.168.25.152, domain=lab.pengutronix.de, nis-domain=(none)
> [    6.703544]      bootserver=192.168.23.4, rootserver=192.168.23.4, rootpath=
> [    6.703554]      nameserver0=192.168.23.254
> [    6.714748]      ntpserver0=192.168.23.4
> [    6.747124] VFS: Mounted root (nfs filesystem) readonly on device 0:12.
> [    6.753709] devtmpfs: mounted
> [    6.784596] Freeing unused kernel memory: 1432K
> [    6.787677] This architecture does not have kernel memory protection.
> [    6.794147] Run /sbin/init as init process
> [    7.376070] systemd[1]: System time before build time, advancing clock.
> [    7.500128] systemd[1]: Failed to insert module 'autofs4': No such file or directory
> [    7.622546] systemd[1]: systemd 239 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -
> SMACK -SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -I
> DN2 -IDN -PCRE2 default-hierarchy=hybrid)
> [    7.643950] systemd[1]: Detected architecture mips.
>  
> Welcome to PTXdist / Pengutronix-Freifunk!
>  
> [    7.715905] systemd[1]: Set hostname to <Freifunk>.
>  
> --
> Regards,
> Oleksij
>  
> 
>  
> From: Oleksij Rempel
> Date: 2019-02-22 17:06
> To: rosysong@rosinson.com; linux-mips
> Subject: Re: Kernel hang when replace older uboot with uboot master for ath79 mips platform
> Hi,
>  
> Am 22.02.19 um 03:35 schrieb rosysong@rosinson.com:> Hi all,
>>      My kernel version is linux-4.9.158, it hangs when replace the old u-boot(1.1.4) with
> u-boot-master.
>>      For linux-4.14.xx, When I enable CONFIG_MIPSR2_IRQ_VI options, it does hang any longer while
> still hang in linux-4.9.158.
>>      Sometimes it hangs at "random: crng init done".
>>
>>      Any hints will be appreciated!!! Thanks
> It is hard to answer your questions. Many parts play with each other. ASo far I have following
> questions:
> - why do you change boot loader?
> - why do you use old kernels?
> - why you do not use devicetree?
> - what is your memory layout? Where is loaded u-boot and where should be loaded kernel. Is kernel
> compressed? Where it will be extracted?
>  
> Here is boot log on my system:
> barebox 2019.01.0-00526-gdd4b47ab1b #346 Mon Feb 18 08:42:48 CET 2019
>  
> Board: DPTechnics DPT-Module
> mdio_bus: miibus0: probed
> ag71xx-gmac 18070000.mac@19000000.of: network device registered
> m25p80 w25q128@00: w25q128 (16384 Kbytes)
> netconsole: registered as netconsole-1
> malloc space: 0x83ba0000 -> 0x83f9ffff (size 4 MiB)
> eth0: got preset MAC address: c4:93:00:00:ae:89
> running /env/bin/init...
>  
> Hit any key to stop autoboot:    0
> Booting entry 'net'
> eth0: DHCP client bound to address 192.168.25.20
>  
> Loading ELF '/mnt/tftp/ore-linux-dpt-module'
> Loading devicetree from '/mnt/tftp/ore-oftree-dpt-module'
> Starting application at 0x806e0000, dts 0x83bd6120...
> [    0.000000] Linux version 5.0.0-rc1+ (ptxdist@ptxdist) (gcc version 8.2.1 20181130 (OSELAS.Toolch$
> in-2018.12.0 8-20181130)) #644 2019-01-11T13:10:06+00:00
> [    0.000000] printk: bootconsole [early0] enabled
> [    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
> [    0.000000] MIPS: machine is DPTechnics DPT-Module
> [    0.000000] SoC: Atheros AR9330 rev 1
> [    0.000000] Determined physical RAM map:
> [    0.000000]  memory: 04000000 @ 80000000 (usable)
> [    0.000000]  memory: 04000000 @ 00000000 (usable)
> [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
> [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
> [    0.000000] Zone ranges:
> [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
> [    0.000000] random: get_random_bytes called from start_kernel+0xc4/0x52c with crng_init=0
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
> [    0.000000] Kernel command line:   ip=dhcp root=/dev/nfs nfsroot=192.168.23.4:/home/ore/nfsroot/d$
> t-module,v3,tcp
> [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> [    0.000000] Writing ErrCtl register=00000000
> [    0.000000] Readback ErrCtl register=00000000
> [    0.000000] Memory: 56624K/65536K available (4883K kernel code, 398K rwdata, 960K rodata, 1432K i$
> it, 213K bss, 8912K reserved, 0K cma-reserved)
> [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [    0.000000] ftrace: allocating 17594 entries in 35 pages
> [    0.000000] NR_IRQS: 51
> [    0.000000] CPU clock: 400.000 MHz
> [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 n$
> [    0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
> [    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
> [    0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
> [    0.092710] pid_max: default: 32768 minimum: 301
> [    0.097631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.103958] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.114890] devtmpfs: initialized
> [    0.120178] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446
> 2750000 ns
> [    0.128639] futex hash table entries: 256 (order: -1, 3072 bytes)
> [    0.134860] pinctrl core: initialized pinctrl subsystem
> [    0.141450] NET: Registered protocol family 16
> [    0.222120] clocksource: Switched to clocksource MIPS
> [    2.172295] NET: Registered protocol family 2
> [    2.176493] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
> [    2.182985] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
> [    2.189826] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
> [    2.196188] TCP: Hash tables configured (established 1024 bind 1024)
> [    2.202754] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [    2.208341] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [    2.215083] NET: Registered protocol family 1
> [    2.221613] RPC: Registered named UNIX socket transport module.
> [    2.226175] RPC: Registered udp transport module.
> [    2.230768] RPC: Registered tcp transport module.
> [    2.235487] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [    2.245537] workingset: timestamp_bits=30 max_order=14 bucket_order=0
> [    2.261046] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [    2.282255] NFS: Registering the id_resolver key type
> [    2.285902] Key type id_resolver registered
> [    2.290024] Key type id_legacy registered
> [    2.294098] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
> [    2.300768] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
> [    2.313723] pinctrl-single 18040028.pinmux: 64 pins, size 8
> [    2.323909] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
> [    2.331142] 18020000.uart: ttyATH0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a AR933X U
> ART
> [    2.339446] printk: console [ttyATH0] enabled
> [    2.339446] printk: console [ttyATH0] enabled
> [    2.347627] printk: bootconsole [early0] disabled
> [    2.347627] printk: bootconsole [early0] disabled
> [    2.363728] m25p80 spi0.0: w25q128 (16384 Kbytes)
> [    2.367039] 4 fixed-partitions partitions found on MTD device spi0.0
> [    2.373438] Creating 4 MTD partitions on "spi0.0":
> [    2.378121] 0x000000020000-0x0000003e0000 : "firmware"
> [    2.386127] 0x000000000000-0x000000080000 : "barebox"
> [    2.393122] 0x000000080000-0x000000090000 : "barebox-environment"
> [    2.401065] 0x0000007f0000-0x000000800000 : "art"
> [    2.408770] libphy: Fixed MDIO Bus: probed
> [    2.562114] random: fast init done
> [    2.742683] libphy: ag71xx_mdio: probed
> [    3.032223] mdio-bus.0:1f: Found an AR7240/AR9330 built-in switch
> [    3.037170] libphy: ar7240sw_mdio: probed
> [    3.086221] ag71xx 19000000.eth: invalid MAC address, using random address
> [    3.423862] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd041, driver=Generi
> c PHY]
> [    3.433094] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
> [    3.440646] NET: Registered protocol family 10
>  
> [    3.449822] Segment Routing with IPv6
> [    3.452310] NET: Registered protocol family 17
> [    3.457295] 8021q: 802.1Q VLAN Support v1.8
> [    3.460718] Key type dns_resolver registered
> [    3.470181] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [    5.533865] eth0: link up (100Mbps/Full duplex)
> [    5.542180] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [    5.572256] Sending DHCP requests ., OK
> [    6.674525] IP-Config: Got DHCP answer from 192.168.23.4, my address is 192.168.25.152
> [    6.682442] IP-Config: Complete:
> [    6.685640]      device=eth0, hwaddr=5a:8e:98:5e:67:91, ipaddr=192.168.25.152, mask=255.255.0.0, g
> w=192.168.23.254
> [    6.695986]      host=192.168.25.152, domain=lab.pengutronix.de, nis-domain=(none)
> [    6.703544]      bootserver=192.168.23.4, rootserver=192.168.23.4, rootpath=
> [    6.703554]      nameserver0=192.168.23.254
> [    6.714748]      ntpserver0=192.168.23.4
> [    6.747124] VFS: Mounted root (nfs filesystem) readonly on device 0:12.
> [    6.753709] devtmpfs: mounted
> [    6.784596] Freeing unused kernel memory: 1432K
> [    6.787677] This architecture does not have kernel memory protection.
> [    6.794147] Run /sbin/init as init process
> [    7.376070] systemd[1]: System time before build time, advancing clock.
> [    7.500128] systemd[1]: Failed to insert module 'autofs4': No such file or directory
> [    7.622546] systemd[1]: systemd 239 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -
> SMACK -SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -I
> DN2 -IDN -PCRE2 default-hierarchy=hybrid)
> [    7.643950] systemd[1]: Detected architecture mips.
>  
> Welcome to PTXdist / Pengutronix-Freifunk!
>  
> [    7.715905] systemd[1]: Set hostname to <Freifunk>.
>  
> --
> Regards,
> Oleksij
>  
> 


-- 
Regards,
Oleksij


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-22 10:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-22  2:35 Kernel hang when replace older uboot with uboot master for ath79 mips platform rosysong
2019-02-22  9:06 ` Oleksij Rempel
2019-02-22  9:57   ` rosysong
2019-02-22 10:23     ` Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).