Jump to content
funtoo forums
  • 0
Sign in to follow this  
minou666

Long delay on boot

Question

I have created a stage3 for the Beaglebone AI and I have an issue with the boot.

I have created a minimal boot with ubuntu 18.04 and do not have that issue with it.

It looks like it is taking around 2 minutes for random to be done.

I haven't tried with the Beagleboard X15 with this kernel. I use kernel 4.9 on the Beagleboard X15 with no such issue.

Both boards use the same processor (Texas Instruments AM5729)

 

I use the same kernel and u-boot with both

suzie ~ # uname -r
4.14.108-ti-r114
 

U-Boot 2019.07-rc4 (Aug 25 2019 - 17:53:15 -0400)

CPU  : DRA752-GP ES2.0
Model: BeagleBoard.org BeagleBone AI
Board: BeagleBone AI REV A
DRAM:  1 GiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
CTRL_CORE_PAD_I2C1_SDA:    0x00060000
CTRL_CORE_PAD_I2C1_SCL:    0x00060000
CTRL_CORE_PAD_GPMC_A0:     0x00060007
CTRL_CORE_PAD_GPMC_A1:     0x00060007
CTRL_CORE_PAD_VIN2A_D4:    0x0005000f
CTRL_CORE_PAD_VIN2A_D5:    0x0005000f
CM_L4PER_GPIO7_CLKCTRL:    0x00000001
CM_L4PER_I2C1_CLKCTRL:     0x00000002
CM_L4PER_I2C4_CLKCTRL:     0x00000002
CM_L4PER_L4_PER1_CLKCTRL   0x00000001
PM_L4PER_I2C1_WKDEP        0x0000b000
RM_L4PER_I2C1_CONTEXT      0x00000002
PM_L4PER_I2C4_WKDEP        0x0000b000
RM_L4PER_I2C4_CONTEXT      0x00000001
BeagleBone: cape eeprom: i2c_probe: 0x54
Checking (ret 1 bus works) I2C1 bus. ret 1
Checking (ret 1 bus works) I2C4 bus. ret 1
BeagleBone: cape eeprom: i2c_probe: 0x55
Checking (ret 1 bus works) I2C1 bus. ret 1
Checking (ret 1 bus works) I2C4 bus. ret 1
BeagleBone: cape eeprom: i2c_probe: 0x56
Checking (ret 1 bus works) I2C1 bus. ret 1
Checking (ret 1 bus works) I2C4 bus. ret 1
BeagleBone: cape eeprom: i2c_probe: 0x57
Checking (ret 1 bus works) I2C1 bus. ret 1
Checking (ret 1 bus works) I2C4 bus. ret 1
Net:
Warning: ethernet@48484000 using MAC address from ROM
eth0: ethernet@48484000
Press SPACE to abort autoboot in 1 seconds
usb_boot is currently disabled
scsi_boot is currently disabled
switch to partitions #0, OK
mmc0 is current device

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     8192            124727296       44a48d0d-01     83 Boot
Scanning mmc device 0
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
25 bytes read in 1 ms (24.4 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt ...
debug: [uname_r=4.14.108-ti-r114] ...
loading /boot/vmlinuz-4.14.108-ti-r114 ...
10002944 bytes read in 864 ms (11 MiB/s)
loading /boot/am5729-beagleboneai.dtb ...
150516 bytes read in 15 ms (9.6 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...
debug: [console=ttyS0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait] ...
debug: [bootz 0x82000000 - 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffd8000, end 8ffffbf3 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.108-ti-r114 (michel@localhost) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #1 SMP PREEMPT Thu Aug 22 23:32:18 EDT 2019
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: BeagleBoard.org BeagleBone AI
.

.

.

.

[   11.018419] net eth0: initializing cpsw version 1.15 (0)
[   11.096047] Atheros 8035 ethernet 48485000.mdio:04: attached PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=48485000.mdio:04, irq=POLL)
[   11.102544] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   11.133694] random: dhcpcd: uninitialized urandom read (120 bytes read)
[   13.159739] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   13.159782] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  167.992534] random: crng init done
 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I found the solution in a gentoo discussion

# emerge sys-apps/rng-tools
# rc-update add rngd default

[   11.353675] udevd[667]: starting version 3.2.8
[   11.398055] random: udevd: uninitialized urandom read (16 bytes read)
[   11.400429] random: udevd: uninitialized urandom read (16 bytes read)
[   11.400590] random: udevd: uninitialized urandom read (16 bytes read)
[   11.438452] udevd[667]: starting eudev-3.2.8
[   15.731347] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[   16.219868] urandom_read: 2 callbacks suppressed
[   16.219879] random: ln: uninitialized urandom read (6 bytes read)
[   17.513190] random: mktemp: uninitialized urandom read (10 bytes read)
[   21.147488] random: dd: uninitialized urandom read (512 bytes read)
[   22.085539] net eth0: initializing cpsw version 1.15 (0)
[   22.168397] Atheros 8035 ethernet 48485000.mdio:04: attached PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=48485000.mdio:04, irq=POLL)
[   22.178415] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.249628] random: dhcpcd: uninitialized urandom read (120 bytes read)
[   22.562686] random: crng init done
[   24.231767] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   24.231842] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 

I will document details when I publish my stage3 for The beaglebone AI and Beagleboard A15.

I will eventually have one for the Beaglebone Black and Blue as well as the Odroid N2 and H2, and Jetson Nano

 

Michel

 

Share this post


Link to post
Share on other sites
  • 0

Yes, sys-apps/rng-tools or sys-apps/haveged are almost necessities anymore for enough entropy on any system. Without, that delay will result, I'm surprised more users don't complain or report about it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...