Crng init done

#1

Hi,

I am trying to boot my OOLITE board using the open source firmware,

I created a ramfs image, it boots upto a point but console gets stuck later with "crng init done " log.

U-Boot 1.1.3 (Jun 24 2016 - 10:18:38)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
flash manufacture id: c8, device id 40 19
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jun 24 2016  Time:10:18:38
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 575 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.


You choosed 1

 0


1: System Load Linux to SDRAM via TFTP.
 Please Input new ones /or Ctrl-C to discard
        Input device IP (192.168.10.101) ==:192.168.10.101

        Input server IP (192.168.10.100) ==:192.168.10.100

        Input Linux Kernel filename (firmware.bin) ==:firmware.bin


 netboot_common, argc= 3

 NetTxPacket = 0x83FE50C0

 KSEG1ADDR(NetTxPacket) = 0xA3FE50C0

 NetLoop,call eth_halt !

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!!
TFTP from server 192.168.10.100; our IP address is 192.168.10.101
Filename 'firmware.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80a00000
Loading: Got ARP REPLY, set server/gtwy eth addr (5c:26:0a:48:8e:4c)
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################################
done
Bytes transferred = 3599777 (36eda1 hex)
NetBootFileXferSize= 0036eda1
Automatic boot of image at addr 0x80A00000 ...
## Booting image at 80a00000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.34
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3599713 Bytes =  3.4 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.14.34 (ashish@Gladiator) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r0-)) #0 Fri Jul 27 02:40:53 2018
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Oolite-v3.2 16MB
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 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, PIPT, no 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: fast init done
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: mem=64M console=ttyS1,57600n8 root=/dev/mtd5 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    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=00073d48
[    0.000000] Readback ErrCtl register=00073d48
[    0.000000] Memory: 58068K/65536K available (3355K kernel code, 164K rwdata, 812K rodata, 2252K init, 208K bss, 7468K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015368] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087586] pid_max: default: 32768 minimum: 301
[    0.096935] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109890] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.129753] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149130] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.161221] pinctrl core: initialized pinctrl subsystem
[    0.172010] NET: Registered protocol family 16
[    0.202831] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.214036] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.225165] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.239863] clocksource: Switched to clocksource MIPS
[    0.250978] NET: Registered protocol family 2
[    0.260375] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.274062] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.286590] TCP: Hash tables configured (established 1024 bind 1024)
[    0.299288] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.310744] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.323371] NET: Registered protocol family 1
[    3.207184] Crashlog allocated RAM at address 0x3f00000
[    3.218860] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    3.237102] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.248542] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    3.361139] io scheduler noop registered
[    3.368753] io scheduler deadline registered (default)
[    3.379952] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    3.393590] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    3.411927] cacheinfo: Failed to find cpu0 device node
[    3.421974] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    3.435118] libphy: Fixed MDIO Bus: probed
[    3.455406] rt3050-esw 10110000.esw: link changed 0x00
[    3.466256] mtk_soc_eth 10100000.ethernet: generated random MAC address 3a:1e:23:e0:05:d9
[    3.483029] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    3.501143] NET: Registered protocol family 10
[    3.513507] Segment Routing with IPv6
[    3.520807] NET: Registered protocol family 17
[    3.529500] 8021q: 802.1Q VLAN Support v1.8
[    3.539575] Warning: unable to open an initial console.
[    3.562061] Freeing unused kernel memory: 2252K
[    3.570890] This architecture does not have kernel memory protection.
[    3.596983] init: Console is alive
[    3.603983] init: - watchdog -
[    3.638651] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.663398] usbcore: registered new interface driver usbfs
[    3.674259] usbcore: registered new interface driver hub
[    3.684766] usbcore: registered new device driver usb
[    3.700377] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.721712] SCSI subsystem initialized
[    3.734020] ehci-platform: EHCI generic platform driver
[    3.754568] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    3.767694] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    3.778024] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.789397] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.805145] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.839908] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.853174] hub 1-0:1.0: USB hub found
[    3.860886] hub 1-0:1.0: 1 port detected
[    3.872083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.885769] ohci-platform: OHCI generic platform driver
[    3.896300] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    3.909663] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    3.925351] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    4.004811] hub 2-0:1.0: USB hub found
[    4.012584] hub 2-0:1.0: 1 port detected
[    4.031912] MTK MSDC device init.
[    4.038495] mtk-sd: MediaTek MT6575 MSDC Driver
[    4.051782] usbcore: registered new interface driver usb-storage
[    4.066924] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.091619] init: - preinit -
[    4.243326] rt3050-esw 10110000.esw: link changed 0x00
[    6.445858] procd: - early -
[    6.451595] procd: - watchdog -
[    7.011945] procd: - watchdog -
[    7.018182] procd: failed to set stdio: No such device
[    7.028338] procd: - ubus -
[    7.086265] procd: - init -
[    7.278093] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.306989] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.334541] i2c /dev entries driver
[    7.344506] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    7.360277] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    7.376786] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.397647] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    7.478503] xt_time: kernel timezone is -0000
[    7.547001] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[    7.559049] mt76_wmac 10300000.wmac: Invalid MAC address, using random address 56:a6:cd:b5:f8:2b
[    7.578101] mt76_wmac 10300000.wmac: Firmware Version: _e2_mp
[    7.589395] mt76_wmac 10300000.wmac: Build Time: 20150211175503
[    7.619868] firmware init done
[    7.815840] PPP generic driver version 2.4.2
[    7.835387] NET: Registered protocol family 24
[    7.863689] kmodloader: done loading kernel modules from /etc/modules.d/*
[    8.534250] rt3050-esw 10110000.esw: link changed 0x01
[   12.041096] rt3050-esw 10110000.esw: link changed 0x00
[   16.137165] rt3050-esw 10110000.esw: link changed 0x01
[   17.591029] br-lan: port 1(eth0.1) entered blocking state
[   17.601631] br-lan: port 1(eth0.1) entered disabled state
[   17.612645] device eth0.1 entered promiscuous mode
[   17.622028] device eth0 entered promiscuous mode
[   17.734392] br-lan: port 1(eth0.1) entered blocking state
[   17.744992] br-lan: port 1(eth0.1) entered forwarding state
[   17.756152] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   18.620294] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   20.499694] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.595516] br-lan: port 2(wlan0) entered blocking state
[   20.605968] br-lan: port 2(wlan0) entered disabled state
[   20.616767] device wlan0 entered promiscuous mode
[   20.712360] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   20.725058] br-lan: port 2(wlan0) entered blocking state
[   20.735467] br-lan: port 2(wlan0) entered forwarding state
[   77.236015] random: crng init done

How can i resolve this.?

#2

@ashishsbn1, welcome to the community!

Just hit the Enter key. You device appears booted up.

That usually means the system is completely booted and has enough random numbers for crypto and programmatic use.

2 Likes
#3

Hi IIeachii,

Nothing happens when i hit enter key.

Can you provide any other suggestion. ?

Thanks
Ashish S

#4
[    0.000000] Kernel command line: console=ttyS1,57600n8
[ snip ]
[    3.379952] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    3.393590] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
#5

How can i enable this.?

#6

https://openwrt.org/docs/guide-quick-start/sshadministration

Is your device supported?
Provide the link to the ToH page.

1 Like
#7

It's normal for serial port IRQ sharing to be disabled, especially when there is only one active port.

Like @vgaetera said, the network should be up, try to log in with SSH.

2 Likes