linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "rosysong@rosinson.com" <rosysong@rosinson.com>
To: "Oleksij Rempel" <linux@rempel-privat.de>,
	linux-mips <linux-mips@vger.kernel.org>
Subject: Re: Re: Kernel hang when replace older uboot with uboot master for ath79 mips platform
Date: Fri, 22 Feb 2019 17:57:56 +0800	[thread overview]
Message-ID: <2019022217575639196011@rosinson.com> (raw)
In-Reply-To: 2142641f-fcea-b3da-dfe2-9ae6135f5c1d@rempel-privat.de

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
 

  reply	other threads:[~2019-02-22  9:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2019-02-22 10:23     ` Oleksij Rempel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2019022217575639196011@rosinson.com \
    --to=rosysong@rosinson.com \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux@rempel-privat.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).