agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
520 stars 407 forks source link

Boot issue on RPi CM4 | Black screen after boot on Honister release #1022

Open Sourabh1107 opened 2 years ago

Sourabh1107 commented 2 years ago

Description Hello All,

I am building a basic image (core-image-base) for RPi CM4(Lite) on "Honister" release with "uboot" as bootloader.

In my conf/local.conf file MACHINE = "raspberrypi4-64" and also I have set

ENABLE_UART = "1"
RPI_USE_U_BOOT = "1"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"

Image builds successfully and I transferred the image to SD card and tried to boot. I am using WKS_FILE = "sdimage-dual-raspberrypi.wks.in"

sdimage-dual-raspberrypi.wks.in :

part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 100
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs_A --align 4096
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs_B --align 4096
part /home --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/home --ondisk mmcblk0 --fstype=ext4 --label homefs --align 1024 --size 500 --fsoptions "x-systemd.growfs"

But unfortunately, i am not able to boot using this image and initially it starts with

.
.
Detecting USB Device.
.
.
Hit any key to stop auto-boot..
.
.
Starting kernel..

But right after this screen turns off and after a second screen turns on with "Loading progress bar" and as soon as it loads, a blank screen pops-up. I am not sure whether system is booted properly or not. I am not able to interact with it. And no Linux user space is accessible

Sadly, the custom carrier board I am using has no serial console, so I can only use a RPi display to see the progress and messages.

Can anyone please let me know what could be the issue here and how to resolve it?

Your help will be much appreciated.

thanks in advance..

Steps to reproduce the issue:

  1. Use "raspberrypi4-64" as machine with "u-boot" bootloader, build "core-image-base" for RPi CM4.

Describe the results you received: Black screen after boot

Describe the results you expected: System bring-up

Additional information you deem important (e.g. issue happens only occasionally):

Additional details (revisions used, host distro, etc.): I am using Yocto "Honister". Tried with "Dunfell" but it doesn't support RPi CM4.

agherzan commented 2 years ago

@Sourabh1107 Could you try the reproduce without uboot? And also, can you try using the included sdimg image type?

Sourabh1107 commented 2 years ago

Hello @agherzan Thanks for quick reponse.

I already tried without uboot. I removed RPI_USE_U_BOOT = "1" \ PREFERRED_PROVIDER_virtual/bootloader = "u-boot" from local.conf. But I got similar result. Blank screen with no messages.

Do you mean to use different .wks file? Like sdimage-raspberrypi.wks ? Or booting with sdimg as IMAGE_FSTYPES?

agherzan commented 2 years ago

I mean to just try a minimum setup with sdimg in IMAGE_FSTYPES.

Sourabh1107 commented 2 years ago

Hi @agherzan after building core-image-base with IMAGE_FSTYPES += " rpi-sdimg" and coping the image sudo dd if=core-image-base-raspberrypi4-64-20220223110404.rootfs.rpi-sdimg | sudo dd of=/dev/sdb bs=1M conv=fsync status=progress to SD card and booting from it, I have same behavior as before. Black screen with no messages. Below is the local.conf file I am using:

CONF_VERSION = "2"

ENABLE_I2C = "1"
ENABLE_UART = "1"

DISTRO_FEATURES:append = " rauc pam systemd wifi"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""

#RPI_USE_U_BOOT = "1"
#PREFERRED_PROVIDER_virtual/bootloader = "u-boot"

#WKS_FILE = "sdimage-dual-raspberrypi.wks.in"
WKS_FILE = "sdimage-raspberrypi.wks"

WKS_FILE_DEPENDS += "squashfs-tools-native"

IMAGE_FEATURES += " splash "

IMAGE_INSTALL:append = " rauc wpa-supplicant iw dhcpcd rauc-hawkbit-updater"

CORE_IMAGE_EXTRA_INSTALL += " packagegroup-base-wifi"

IMAGE_FSTYPES += "tar.bz2 ext4 wic.bz2 wic.bmap rpi-sdimg"
SDIMG_ROOTFS_TYPE = "ext4"

EXTRA_IMAGE_FEATURES += " \
    tools-debug \
    ssh-server-dropbear \
    dbg-pkgs \
    "
agherzan commented 2 years ago

@Sourabh1107 It's very hard to debug if you have no serial access to the device. I'd try to get a carrier with a serial console. Otherwise, I'm not sure how to deal with this. Well, another option would be to go down the SSH route. Do all the configurations to allow SSH connection and DHCP, check your router for IP and try to connect to the target.

Sourabh1107 commented 2 years ago

Hello @agherzan Can you please let me know how to enable verbose options for kernel and bootloader? This may help to see some messages printed during booting..

agherzan commented 2 years ago

There are kernel arguments you can play with. On the firmware side I'm not aware of flexibility in that regard. https://elinux.org/Kernel_Debugging_Tips

Sourabh1107 commented 2 years ago

Hello @agherzan I could get my hands on Official Raspberry Pi Compute Module 4 IO board and below is the log messages I got while booting.

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.10.78-v8 (oe-user@oe-host) (aarch64-oe-linux-gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37.20210721) #1 SMP PREEMPT Tue Feb 22 15:19:24 UTC 2022
[    0.000000] random: fast init done
[    0.000000] Machine model: Raspberry Pi Compute Module 4 Rev 1.0
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] percpu: Embedded 32 pages/cpu s92312 r8192 d30568 u131072
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 238896
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=E4:5F:01:49:E3:A0 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 663716K/970752K available (12416K kernel code, 1992K rwdata, 4440K rodata, 3968K init, 1267K bss, 44892K reserved, 262144K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 39462 entries in 155 pages
[    0.000000] ftrace: allocated 155 pages with 5 groups
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 10)
[    0.000000] random: get_random_bytes called from start_kernel+0x3b4/0x574 with crng_init=1
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000006] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000247] Console: colour dummy device 80x25
[    0.000305] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000335] pid_max: default: 32768 minimum: 301
[    0.000481] LSM: Security Framework initializing
[    0.000658] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000688] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.001947] cgroup: Disabling memory control group subsystem
[    0.004208] rcu: Hierarchical SRCU implementation.
[    0.005195] EFI services will not be available.
[    0.005693] smp: Bringing up secondary CPUs ...
[    0.006664] Detected PIPT I-cache on CPU1
[    0.006733] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.007826] Detected PIPT I-cache on CPU2
[    0.007873] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.009043] Detected PIPT I-cache on CPU3
[    0.009088] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.009268] smp: Brought up 1 node, 4 CPUs
[    0.009312] SMP: Total of 4 processors activated.
[    0.009330] CPU features: detected: 32-bit EL0 Support
[    0.009346] CPU features: detected: CRC32 instructions
[    0.009363] CPU features: detected: 32-bit EL1 Support
[    0.044240] CPU: All CPU(s) started at EL2
[    0.044310] alternatives: patching kernel code
[    0.045475] devtmpfs: initialized
[    0.055632] Enabled cp15_barrier support
[    0.055676] Enabled setend support
[    0.056021] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.056090] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.063215] pinctrl core: initialized pinctrl subsystem
[    0.063972] DMI not present or invalid.
[    0.064381] NET: Registered protocol family 16
[    0.067881] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.068491] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.069447] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.069554] audit: initializing netlink subsys (disabled)
[    0.069827] audit: type=2000 audit(0.068:1): state=initialized audit_enabled=0 res=1
[    0.070354] thermal_sys: Registered thermal governor 'step_wise'
[    0.070583] cpuidle: using governor menu
[    0.070773] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.070954] ASID allocator initialised with 65536 entries
[    0.071087] Serial: AMBA PL011 UART driver
[    0.110967] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.116378] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-09-30T19:21:03, variant start
[    0.120393] raspberrypi-firmware soc:firmware: Firmware hash is 51215b4f6e3966401ecd99652a35cf1c25069113
[    0.153632] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.157685] vgaarb: loaded
[    0.158091] SCSI subsystem initialized
[    0.158302] usbcore: registered new interface driver usbfs
[    0.158358] usbcore: registered new interface driver hub
[    0.158425] usbcore: registered new device driver usb
[    0.158788] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.159764] Advanced Linux Sound Architecture Driver Initialized.
[    0.160835] clocksource: Switched to clocksource arch_sys_counter
[    1.180271] VFS: Disk quotas dquot_6.6.0
[    1.180382] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.180553] FS-Cache: Loaded
[    1.180789] CacheFiles: Loaded
[    1.191654] NET: Registered protocol family 2
[    1.191898] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.193214] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.193250] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.193411] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.193534] TCP: Hash tables configured (established 8192 bind 8192)
[    1.193738] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.193771] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.194031] NET: Registered protocol family 1
[    1.194861] RPC: Registered named UNIX socket transport module.
[    1.194879] RPC: Registered udp transport module.
[    1.194894] RPC: Registered tcp transport module.
[    1.194907] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.194931] PCI: CLS 0 bytes, default 64
[    1.197101] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    1.197377] kvm [1]: IPA Size Limit: 44 bits
[    1.198557] kvm [1]: vgic interrupt IRQ9
[    1.198834] kvm [1]: Hyp mode initialized successfully
[    1.201464] Initialise system trusted keyrings
[    1.201784] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    1.207905] zbud: loaded
[    1.209469] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.209722] FS-Cache: Netfs 'nfs' registered for caching
[    1.210390] NFS: Registering the id_resolver key type
[    1.210438] Key type id_resolver registered
[    1.210453] Key type id_legacy registered
[    1.210585] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.210602] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.211667] Key type asymmetric registered
[    1.211685] Asymmetric key parser 'x509' registered
[    1.211736] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.211990] io scheduler mq-deadline registered
[    1.212008] io scheduler kyber registered
[    1.216364] gpio-507 (ant1): hogged as output/high
[    1.217730] gpio-511 (ant2): hogged as output/low
[    1.218907] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.218939] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.219019] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.219100] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x003fffffff -> 0x0400000000
[    1.536858] brcm-pcie fd500000.pcie: link down
[    1.542709] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    1.543593] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    1.545939] iproc-rng200 fe104000.rng: hwrng registered
[    1.546319] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.547671] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.558420] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    1.559279] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.570796] brd: module loaded
[    1.582723] loop: module loaded
[    1.584797] Loading iSCSI transport class v2.0-870.
[    1.588180] libphy: Fixed MDIO Bus: probed
[    1.589879] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.600863] libphy: bcmgenet MII bus: probed
[    1.652991] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.654060] usbcore: registered new interface driver r8152
[    1.654127] usbcore: registered new interface driver lan78xx
[    1.654192] usbcore: registered new interface driver smsc95xx
[    1.654789] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.655636] usbcore: registered new interface driver uas
[    1.655697] usbcore: registered new interface driver usb-storage
[    1.655918] mousedev: PS/2 mouse device common for all mice
[    1.655967] i2c /dev entries driver
[    1.656927] Driver for 1-wire Dallas network protocol.
[    1.657214] gpio-4 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    3.195557] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search.
[    3.197595] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    3.200773] sdhci: Secure Digital Host Controller Interface driver
[    3.200791] sdhci: Copyright(c) Pierre Ossman
[    3.201604] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    3.205529] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.208504] ledtrig-cpu: registered to indicate activity on CPUs
[    3.208971] hid: raw HID events driver (C) Jiri Kosina
[    3.209206] usbcore: registered new interface driver usbhid
[    3.209222] usbhid: USB HID core driver
[    3.209557] ashmem: initialized
[    3.218680] Initializing XFRM netlink socket
[    3.218731] NET: Registered protocol family 17
[    3.218856] Key type dns_resolver registered
[    3.219278] registered taskstats version 1
[    3.219316] Loading compiled-in X.509 certificates
[    3.219804] Key type ._fscrypt registered
[    3.219820] Key type .fscrypt registered
[    3.219835] Key type fscrypt-provisioning registered
[    3.231065] uart-pl011 fe201000.serial: there is not valid maps for state default
[    3.231338] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    3.231447] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 23, base_baud = 0) is a PL011 rev2
[    3.237582] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    3.238213] printk: console [ttyS0] disabled
[    3.238331] fe215040.serial: ttyS0 at MMIO 0xfe215040 (irq = 24, base_baud = 62500000) is a 16550
[    4.375697] printk: console [ttyS0] enabled
[    4.385259] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    4.392037] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    4.401555] rtc-ds1307: probe of 1-0068 failed with error -121
[    4.408849] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    4.415006] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    4.451576] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    4.462742] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    4.472339] input: button@14 as /devices/platform/button@14/input/input0
[    4.478693] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    4.480033] of_cfs_init
[    4.485623] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    4.491900] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    4.495466] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.500409] of_cfs_init: OK
[    4.505591] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    4.507571] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.509633] ALSA device list:
[    4.517710] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    4.520102]   No soundcards found.
[    4.524833] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.538418] Waiting for root device /dev/mmcblk0p2...
[    4.613201] mmc1: new high speed SDIO card at address 0001
[    4.636076] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    4.643627] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    4.654676]  mmcblk0: p1 p2
[    4.663757] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    4.694558] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    4.702019] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    4.753010] EXT4-fs (mmcblk0p2): recovery complete
[    4.759353] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.767706] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    4.778488] devtmpfs: mounted
[    4.789105] Freeing unused kernel memory: 3968K
[    4.793909] Run /sbin/init as init process
[    5.006676] systemd[1]: System time before build time, advancing clock.
[    5.088221] NET: Registered protocol family 10
[    5.094234] Segment Routing with IPv6
[    5.137118] systemd[1]: systemd 249.7+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
[    5.168484] systemd[1]: Detected architecture arm64.

Welcome to OpenEmbedded nodistro.0!

[    5.220903] systemd[1]: Hostname set to <raspberrypi4-64>.
[    5.284265] systemd-fstab-generator[114]: Failed to create unit file /run/systemd/generator/boot.mount, as it already exists. Duplicate entry in /etc/fstab?
[    5.328044] systemd[112]: /lib/systemd/system-generators/systemd-fstab-generator failed with exit status 1.
[    5.526874] systemd[1]: multi-user.target: Wants dependency dropin /etc/systemd/system/multi-user.target.wants/wpa_supplicant-nl80211@wlan0.service target /lib/systemd/system/wpa_supplicant@.service has different name
[    5.766070] systemd[1]: Queued start job for default target Multi-User System.
[    5.774781] random: systemd: uninitialized urandom read (16 bytes read)
[    5.829997] systemd[1]: Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/getty.
[    5.853097] random: systemd: uninitialized urandom read (16 bytes read)
[    5.861839] systemd[1]: Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/modprobe.
[    5.885068] random: systemd: uninitialized urandom read (16 bytes read)
[    5.893738] systemd[1]: Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/serial-getty.
[    5.918928] systemd[1]: Created slice Slice /system/wpa_supplicant-nl80211.
[  OK  ] Created slice Slice /system/wpa_supplicant-nl80211.
[    5.946582] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    5.969484] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[    5.997437] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[    6.025417] systemd[1]: Reached target Path Units.
[  OK  ] Reached target Path Units.
[    6.045075] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    6.065067] systemd[1]: Reached target Slice Units.
[  OK  ] Reached target Slice Units.
[    6.085065] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[    6.133071] systemd[1]: Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[    6.157220] systemd[1]: Reached target RPC Port Mapper.
[  OK  ] Reached target RPC Port Mapper.
[    6.177933] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    6.197433] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    6.222097] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[    6.245650] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    6.269874] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    6.289951] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[    6.313855] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    6.337612] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    6.361683] systemd[1]: Listening on User Database Manager Socket.
[  OK  ] Listening on User Database Manager Socket.
[    6.385904] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    6.398921] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    6.425831] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[    6.453833] systemd[1]: Mounting Kernel Trace File System...
         Mounting Kernel Trace File System...
[    6.485530] systemd[1]: Mounting Temporary Directory /tmp...
         Mounting Temporary Directory /tmp...
[    6.510595] systemd[1]: Starting Create List of Static Device Nodes...
         Starting Create List of Static Device Nodes...
[    6.538035] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[    6.565876] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[    6.593998] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[    6.621805] fuse: init (API version 7.32)
[    6.622140] systemd[1]: Starting Start psplash boot splash screen...
         Starting Start psplash boot splash screen...
[    6.654314] systemd[1]: Starting RPC Bind...
         Starting RPC Bind...
[    6.678358] systemd[1]: Starting File System Check on Root Device...
         Starting File System Check on Root Device...
[    6.709646] systemd[1]: Starting Journal Service...
         Starting Journal Servi[    6.717985] systemd[1]: Condition check resulted in Load Kernel Modules being skipped.
ce...
[    6.733174] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    6.744949] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[    6.764950] systemd[1]: Started RPC Bind.
[  OK      6.770300] systemd[1]: Mounted POSIX Message Queue File System.
0m] Started     6.777890] systemd[1]: Mounted Kernel Debug File System.
1;39mRPC Bind.
[    6.785029] systemd[1]: Mounted Kernel Trace File System.
;32m  OK  ] Mounted [    6.792655] systemd[1]: Mounted Temporary Directory /tmp.
POSIX Message Queue File System[    6.802295] systemd[1]: Finished Create List of Static Device Nodes.
.
[  OK  ] Mount[    6.811001] systemd[1]: modprobe@configfs.service: Deactivated successfully.
ed Kernel Debug File Sy[    6.821035] systemd[1]: Finished Load Kernel Module configfs.
stem.
[  OK  ] M[    6.829951] systemd[1]: modprobe@drm.service: Deactivated successfully.
ounted Kernel Trace Fil[    6.839584] systemd[1]: Finished Load Kernel Module drm.
e System.
[  OK      6.847510] systemd[1]: modprobe@fuse.service: Deactivated successfully.
m] Mounted Temporary Di[    6.857348] systemd[1]: Finished Load Kernel Module fuse.
rectory /tmp[    6.864421] systemd[1]: psplash-start.service: Main process exited, code=exited, status=255/EXCEPTION
.
[  OK  ] F[    6.875683] systemd[1]: psplash-start.service: Failed with result 'exit-code'.
inished Create List of Static D[    6.886375] systemd[1]: Failed to start Start psplash boot splash screen.
evice No[    6.894392] systemd[1]: Dependency failed for Start psplash-systemd progress communication helper.
des.[    6.904287] systemd[1]: psplash-systemd.service: Job psplash-systemd.service/start failed with result 'dependency'.

[  OK  ] Finished [    6.918438] systemd[1]: Finished Apply Kernel Variables.
Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Modu[    6.931391] systemd[1]: Mounting FUSE Control File System...
le drm.
[  OK  ] Finished Load Kernel Module fu[    6.943491] systemd[1]: Mounting Kernel Configuration File System...
se.
[FAILED] Failed to start Start ps[    6.955828] systemd[1]: Mounted FUSE Control File System.
plash boot splas[    6.962734] systemd[1]: Mounted Kernel Configuration File System.
h screen.
See 'systemctl status psplash-start.service' for details.
[DEPEND] Dependency failed for Star…progress communication helper.
[  OK  ] Finished Ap[    6.987765] systemd[1]: Started Journal Service.
ply Kernel Variables.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Journal Service.
[  OK  ] Finished File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[    7.109654] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Finished Remount Root and Kernel File Systems.
         Starting Flush Journal to Persistent Storage...
[    7.176069] systemd-journald[138]: Received client request to flush runtime journal.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
         Mounting /var/volatile...
[    7.290616] audit: type=1334 audit(1636549114.283:2): prog-id=5 op=LOAD
[    7.300100] audit: type=1334 audit(1636549114.291:3): prog-id=6 op=LOAD
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Mounted /var/volatile.
[  OK  ] Finished Coldplug All udev Devices.
         Starting Load/Save Random Seed...
[  OK  ] Started Rule-based Manager for Device Events and Files.
         Starting Network Configuration...
[    7.682542] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    7.752155] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    7.772112] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    7.781932] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    7.814576] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    7.825501] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    7.841613] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    7.841902] mc: Linux media interface: v0.10
[    7.852111] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    7.859615] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    7.872715] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[[    7.879460] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
  OK      7.886332] [vc_sm_connected_init]: start
0m] Started Network Configuration.
[    7.897089] [vc_sm_connected_init]: installed successfully
[    7.909605] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
         Starting Wait for Netw[    7.918934] videodev: Linux video capture interface: v2.00
ork to b[    7.922551] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
e Configured...
[    7.937291] bcmgenet fd580000.ethernet eth0: Link is Down
[    7.973796] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    7.973802] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[  OK  ] Found device /dev/mmcblk0p1.
[    8.001706] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    8.019337] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
         Mounting /boot...
[    8.041100] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    8.051379] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    8.053884] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    8.076424] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[    8.085329] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    8.085915] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    8.092593] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    8.100811] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    8.106202] Registered IR keymap rc-cec
[    8.124192] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    8.131102] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input1
[    8.134536] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    8.146565] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    8.148558] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    8.153794] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    8.163235] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops)
[    8.163256] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    8.163282] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    8.163306] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    8.163331] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    8.163346] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    8.163517] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    8.222088] Registered IR keymap rc-cec
[    8.226535] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    8.235354] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    8.242685] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input2
[    8.254668] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    8.260979] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops)
[    8.267517] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops)
[    8.277701] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops)
[    8.290528] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops)
[    8.299828] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops)
[    8.308695] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    8.309324] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops)
[    8.315837] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    8.324987] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops)
[    8.344334] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    8.346946] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1
[    8.347246] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[    8.347412] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[    8.352271] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[    8.377052] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  OK  ] Mounted /boot.
[    8.403904] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    8.466505] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    8.478653] usbcore: registered new interface driver brcmfmac
[  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
[    8.723135] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    8.732170] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    8.755254] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan  4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e
         Starting Start psplash boot splash screen...
[FAILED] Failed to start Start psplash boot splash screen.
See 'systemctl status psplash-start.service' for details.
[DEPEND] Dependency failed for Star…progress communication helper.
[  OK  ] Found device /sys/subsystem/net/devices/wlan0.
[    8.903642] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started Load/Save RF Kill Switch Status.
[    9.188888] random: crng init done
[    9.192359] random: 7 urandom warning(s) missed due to ratelimiting
[  OK  ] Finished Load/Save Random Seed.
[**    ] (4 of 4) A start job is running for /dev/mmcblk0p9 (43s / 1min 30s)
[   49.903563] w1_master_driver w1_bus_master1: Attaching one wire slave 00.800000000000 crc 8c
[ TIME ] Timed out waiting for device /dev/mmcblk0p9.
[DEPEND] Dependency failed for /data.
[DEPEND] Dependency failed for Local File Systems.
[ TIME ] Timed out waiting for device /dev/appfs.
[DEPEND] Dependency failed for /app.
[ TIME ] Timed out waiting for device /dev/configfs.
[DEPEND] Dependency failed for /config.
[  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
[  OK  ] Stopped Forward Password R…uests to Wall Directory Watch.
[  OK  ] Reached target Timer Units.
[  OK  ] Reached target Sound Card.
[  OK  ] Closed Syslog Socket.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Socket Units.
[  OK  ] Started Emergency Shell.
[  OK  ] Reached target Emergency Mode.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Name Resolution...
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Finished Record Runlevel Change in UTMP.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Set.
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl defaulPress Enter for maintenance
(or press Control-D to continue): [  108.543569] w1_master_driver w1_bus_master1: Attaching one wire slave 00.400000000000 crc 46
[  108.555966] w1_master_driver w1_bus_master1: Family 0 for 00.400000000000.46 is not registered.
[  155.383565] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c00000000000 crc ca
[  155.395960] w1_master_driver w1_bus_master1: Family 0 for 00.c00000000000.ca is not registered.
[  225.823563] w1_master_driver w1_bus_master1: Attaching one wire slave 00.200000000000 crc 23
[  225.835934] w1_master_driver w1_bus_master1: Family 0 for 00.200000000000.23 is not registered.
[  284.463562] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a00000000000 crc af
[  284.475967] w1_master_driver w1_bus_master1: Family 0 for 00.a00000000000.af is not registered.
[  319.503566] w1_master_driver w1_bus_master1: Attaching one wire slave 00.600000000000 crc 65
[  319.515968] w1_master_driver w1_bus_master1: Family 0 for 00.600000000000.65 is not registered.
[  356.079563] w1_master_driver w1_bus_master1: Attaching one wire slave 00.e00000000000 crc e9
[  356.091904] w1_master_driver w1_bus_master1: Family 0 for 00.e00000000000.e9 is not registered.
[  414.359562] w1_master_driver w1_bus_master1: Attaching one wire slave 00.100000000000 crc 9d
[  414.371851] w1_master_driver w1_bus_master1: Family 0 for 00.100000000000.9d is not registered.
[  450.119561] w1_master_driver w1_bus_master1: Attaching one wire slave 00.900000000000 crc 11
[  450.131889] w1_master_driver w1_bus_master1: Family 0 for 00.900000000000.11 is not registered.
[  519.839564] w1_master_driver w1_bus_master1: Attaching one wire slave 00.500000000000 crc db
[  519.851969] w1_master_driver w1_bus_master1: Family 0 for 00.500000000000.db is not registered.

The fstab I am using is:

/dev/root            /                    auto       defaults              1  1
proc                 /proc                proc       defaults              0  0
devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
tmpfs                /run                 tmpfs      mode=0755,nodev,nosuid,strictatime 0  0
tmpfs                /var/volatile        tmpfs      defaults              0  0

/dev/mmcblk0p1       /boot                auto       defaults              0  0
/dev/appfs           /app                 auto       defaults              0  0
/dev/configfs        /config              auto       defaults              0  0
/dev/mmcblk0p9       /data                auto       defaults              0  0

Can you please let me know whata could be the issue here?

Your help will be much appreciated.

Sourabh1107 commented 2 years ago

Hi @agherzan , could you please let me know what could be the reason for the above issue?

Update

I could resolve issue with fstab and don't see any error related to it. But I am still unable to properly boot and console is stuck here:

[    8.065563] uart-pl011 fe201000.serial: no DMA platform data
[  OK  ] Started WPA supplicant dae…0211 driver-specific version).
         Starting WPA supplicant...
[  OK  ] Finished Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Started Telephony service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started WPA[    8.224534] Bluetooth: Core ver 2.22
 supplic[    8.228890] NET: Registered protocol family 31
ant.
[[    8.236479] Bluetooth: HCI device and connection manager initialized
  OK      8.243705] Bluetooth: HCI socket layer initialized
0m] Reac[    8.249370] Bluetooth: L2CAP socket layer initialized
hed targ[    8.255187] Bluetooth: SCO socket layer initialized
et Network.
         Starting Permit User Sessions...
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started User Login Management.
[   14.017410] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

OpenEmbedded nodistro.0 raspberrypi4-64 ttyS0

raspberrypi4-64 login: [   14.718847] Bluetooth: HCI UART driver ver 2.3
[   14.723478] Bluetooth: HCI UART protocol H4 registered
[   14.728877] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   14.735632] Bluetooth: HCI UART protocol Broadcom registered
[   14.985386] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   14.990829] Bluetooth: BNEP filters: protocol multicast
[   14.996781] Bluetooth: BNEP socket layer initialized
[   15.016364] NET: Registered protocol family 38
[   15.024632] audit: type=1334 audit(1646676238.549:6): prog-id=9 op=LOAD
[   15.031791] audit: type=1334 audit(1646676238.549:7): prog-id=10 op=LOAD
[   15.103792] Bluetooth: RFCOMM TTY layer initialized
[   15.108976] Bluetooth: RFCOMM socket layer initialized
[   15.114255] Bluetooth: RFCOMM ver 1.11

And also I have below error message in boot log:

[ 6.339075] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

fstab looks like:

# stock fstab - you probably want to override this with a machine specific one

/dev/root            /                    auto       defaults              1  1
proc                 /proc                proc       defaults              0  0
devpts               /dev/pts             devpts     mode=0620,ptmxmode=0666,gid=5      0  0
tmpfs                /run                 tmpfs      mode=0755,nodev,nosuid,strictatime 0  0
tmpfs                /var/volatile        tmpfs      defaults              0  0

# uncomment this if your device has a SD/MMC/Transflash slot
#/dev/mmcblk0p1       /media/card          auto       defaults,sync,noauto  0  0

/dev/mmcblk0p1  /boot   vfat    defaults        0       0
agherzan commented 2 years ago

@Sourabh1107 can you try to build without uboot (using the firmware directly loading the kernel image) and check how it goes?

Sourabh1107 commented 2 years ago

Hello @agherzan I am not using uboot now but still console is stuck at:

OpenEmbedded nodistro.0 raspberrypi4-64 ttyS0

raspberrypi4-64 login: [   14.718847] Bluetooth: HCI UART driver ver 2.3
[   14.723478] Bluetooth: HCI UART protocol H4 registered
[   14.728877] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   14.735632] Bluetooth: HCI UART protocol Broadcom registered
[   14.985386] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   14.990829] Bluetooth: BNEP filters: protocol multicast
[   14.996781] Bluetooth: BNEP socket layer initialized
[   15.016364] NET: Registered protocol family 38
[   15.024632] audit: type=1334 audit(1646676238.549:6): prog-id=9 op=LOAD
[   15.031791] audit: type=1334 audit(1646676238.549:7): prog-id=10 op=LOAD
[   15.103792] Bluetooth: RFCOMM TTY layer initialized
[   15.108976] Bluetooth: RFCOMM socket layer initialized
[   15.114255] Bluetooth: RFCOMM ver 1.11

I have commented below lines in conf/local.conf file:

#RPI_USE_U_BOOT = "1"
#PREFERRED_PROVIDER_virtual/bootloader = "u-boot"

Only using VIRTUAL-RUNTIME_init_manager = "systemd" as init system.

agherzan commented 2 years ago

I don't see it stuck as I can read there is a login prompt.

Sourabh1107 commented 2 years ago

Yes, even I think so @agherzan but may be because of "Bluetooth" related messages, I am not able to login. Is there a way to disable this?

anilrath51 commented 2 years ago

Hi @Sourabh1107,

Could you please try the below steps?

Step-1 Added below lines in local.conf file.

MACHINE ??= "raspberrypi" ENABLE_UART = "1" IMAGE_FSTYPES += "tar.bz2 wic wic.gz wic.bmap " WKS_FILE="sdimage-raspberrypi.wks" DISTRO_FEATURES_remove = "bluetooth" MACHINE_FEATURES_remove = "bluetooth" PACKAGE_EXCLUDE = " bluetooth"

Step-2 Create image.

$ bitbake parted-native dosfstools-native mtools-native bmap-tools-native $ bitbake core-image-minimal $ wic create sdimage-raspberrypi -e core-image-minimal

Step-3 Boot with SD Card on Raspberry Pi Model BNOTE: /dev/sdg is mount point.

/poky/build/tmp/deploy/images/raspberrypi$ /usr/bin/bmaptool copy --bmap core-image-minimal-raspberrypi.wic.bmap core-image-minimal-raspberrypi.wic /dev/sdg /poky/build/tmp/deploy/images/raspberrypi$ sync

Kind Regards, Anil Kumar Rath.