kraj/meta-musl

no output about systemd information

Opened this issue · 4 comments

I followed this link to do https://github.com/kraj/meta-musl. This link provides the application of musl-libc library set on OpenEmbedded/Yocto.I added the layer to bblayers.conf and also added TCLIBC = "musl" to local.conf I initialized the environment and then run bitbake core-image-full-cmdline. I got a core-image-full-cmdline-freedom-u540. wic and write to uSD card. Set MSEL to mode 1111. Start HiFive Unleashed development board and get the following output:

But there is no output about systemd information,what should i do?

ethernet@10090000: link down (status: 0x7949)
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
ethernet@10090000: PHY present at 0
ethernet@10090000: Starting autonegotiation...
ethernet@10090000: Autonegotiation timed out (status=0x7949)
ethernet@10090000: link down (status: 0x7949)
5408672 bytes read in 2737 ms (1.9 MiB/s)

Loading kernel from FIT Image at 82500000 ...

Using 'conf@sifive_hifive-unleashed-a00.dtb' configuration
Trying 'kernel@1' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x825000fc
Data Size: 5401034 Bytes = 5.2 MiB
Architecture: RISC-V
OS: Linux
Load Address: 0x80200000
Entry Point: 0x80200000
Hash algo: sha256
Hash value: d0fca35cc668b06b37fbfb2759966fa16315173a2eb53d6d8b4c1a45c22d4c7f
Verifying Hash Integrity ... sha256+ OK

Loading fdt from FIT Image at 82500000 ...

Using 'conf@sifive_hifive-unleashed-a00.dtb' configuration
Trying 'fdt@sifive_hifive-unleashed-a00.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x82a26be8
Data Size: 5640 Bytes = 5.5 KiB
Architecture: RISC-V
Load Address: 0x82200000
Hash algo: sha256
Hash value: 19cb0a53ae255e35d006676ce6c4f5ef9da643ff2c5a5deba6ad340e1f128fac
Verifying Hash Integrity ... sha256+ OK
Loading fdt from 0x82a26be8 to 0x82200000
Booting using the fdt blob at 0x82200000
Uncompressing Kernel Image ... OK
Using Device Tree in place at 0000000082200000, end 0000000082204607

Starting kernel ...

[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[ 0.000000] Linux version 5.2.21 (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP Mon Jun 22 05:50:48 UTC 2020
[ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[ 0.000000] printk: bootconsole [sbi0] enabled
[ 0.000000] initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000027fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x000000027fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff]
[ 0.000000] software IO TLB: mapped [mem 0xfbfff000-0xfffff000] (64MB)
[ 0.000000] CPU with hartid=0 is not available
[ 0.000000] CPU with hartid=0 is not available
[ 0.000000] elf_hwcap is 0x112d
[ 0.000000] percpu: Embedded 16 pages/cpu s25496 r8192 d31848 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2067975
[ 0.000000] Kernel command line: earlycon=sbi earlycon=sbi root=/dev/mmcblk0p3 rootwait console=ttySIF0 console=tty0
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Sorting __ex_table...
[ 0.000000] Memory: 8182932K/8386560K available (6598K kernel code, 427K rwdata, 2359K rodata, 216K init, 813K bss, 203628K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 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: 0, nr_irqs: 0, preallocated irqs: 0
[ 0.000000] plic: mapped 53 interrupts with 4 handlers for 9 contexts.
[ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1]
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[ 0.000007] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[ 0.008558] Console: colour dummy device 80x25
[ 0.012960] printk: console [tty0] enabled
[ 0.017111] printk: bootconsole [sbi0] disabled
[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[ 0.000000] Linux version 5.2.21 (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP Mon Jun 22 05:50:48 UTC 2020
[ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[ 0.000000] printk: bootconsole [sbi0] enabled
[ 0.000000] initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000027fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x000000027fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff]
[ 0.000000] software IO TLB: mapped [mem 0xfbfff000-0xfffff000] (64MB)
[ 0.000000] CPU with hartid=0 is not available
[ 0.000000] CPU with hartid=0 is not available
[ 0.000000] elf_hwcap is 0x112d
[ 0.000000] percpu: Embedded 16 pages/cpu s25496 r8192 d31848 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2067975
[ 0.000000] Kernel command line: earlycon=sbi earlycon=sbi root=/dev/mmcblk0p3 rootwait console=ttySIF0 console=tty0
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Sorting __ex_table...
[ 0.000000] Memory: 8182932K/8386560K available (6598K kernel code, 427K rwdata, 2359K rodata, 216K init, 813K bss, 203628K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 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: 0, nr_irqs: 0, preallocated irqs: 0
[ 0.000000] plic: mapped 53 interrupts with 4 handlers for 9 contexts.
[ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1]
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[ 0.000007] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[ 0.008558] Console: colour dummy device 80x25
[ 0.012960] printk: console [tty0] enabled
[ 0.017111] printk: bootconsole [sbi0] disabled
[ 0.021743] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=4000)
[ 0.021765] pid_max: default: 32768 minimum: 301
[ 0.022256] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.022602] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.024303] rcu: Hierarchical SRCU implementation.
[ 0.024767] smp: Bringing up secondary CPUs ...
[ 0.026495] smp: Brought up 1 node, 4 CPUs
[ 0.028070] devtmpfs: initialized
[ 0.029690] random: get_random_u32 called from bucket_table_alloc.isra.0+0x4e/0x15e with crng_init=0
[ 0.030132] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.030157] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.030803] NET: Registered protocol family 16
[ 0.044081] vgaarb: loaded
[ 0.044374] SCSI subsystem initialized
[ 0.044713] usbcore: registered new interface driver usbfs
[ 0.044761] usbcore: registered new interface driver hub
[ 0.044823] usbcore: registered new device driver usb
[ 0.045001] Advanced Linux Sound Architecture Driver Initialized.
[ 0.045594] clocksource: Switched to clocksource riscv_clocksource
[ 0.051351] NET: Registered protocol family 2
[ 0.051976] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes)
[ 0.052283] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.054340] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.057677] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.058149] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[ 0.058644] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[ 0.059323] NET: Registered protocol family 1
[ 0.059873] RPC: Registered named UNIX socket transport module.
[ 0.059913] RPC: Registered udp transport module.
[ 0.059947] RPC: Registered tcp transport module.
[ 0.059981] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.060021] PCI: CLS 0 bytes, default 64
[ 0.060979] workingset: timestamp_bits=62 max_order=21 bucket_order=0
[ 0.068933] NFS: Registering the id_resolver key type
[ 0.068999] Key type id_resolver registered
[ 0.069033] Key type id_legacy registered
[ 0.069076] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.070192] NET: Registered protocol family 38
[ 0.070261] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[ 0.070324] io scheduler mq-deadline registered
[ 0.070359] io scheduler kyber registered
[ 0.071061] switchtec: loaded.
[ 0.105951] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.106856] 10010000.serial: ttySIF0 at MMIO 0x10010000 (irq = 4, base_baud = 0) is a SiFive UART v0
[ 0.579731] printk: console [ttySIF0] enabled
[ 0.584332] 10011000.serial: ttySIF1 at MMIO 0x10011000 (irq = 1, base_baud = 0) is a SiFive UART v0
[ 0.593412] [drm] radeon kernel modesetting enabled.
[ 0.607075] loop: module loaded
[ 0.628143] Rounding down aligned max_sectors from 4294967295 to 4294967288
[ 0.634545] db_root: cannot open: /etc/target
[ 0.639068] sifive_spi 10040000.spi: mapped; irq=3, cs=1
[ 0.644505] sifive_spi 10050000.spi: mapped; irq=5, cs=1
[ 0.649824] libphy: Fixed MDIO Bus: probed
[ 0.653900] macb 10090000.ethernet: Registered clk switch 'sifive-gemgxl-mgmt'
[ 0.660695] macb: GEM doesn't support hardware ptp.
[ 0.665597] libphy: MACB_mii_bus: probed
[ 1.290006] Microsemi VSC8541 SyncE 10090000.ethernet-ffffffff:00: attached PHY driver [Microsemi VSC8541 SyncE] (mii_bus:phy_addr=10090000.ethernet-ffffffff:00, irq=POLL)
[ 1.304633] macb 10090000.ethernet eth0: Cadence GEM rev 0x10070109 at 0x10090000 irq 6 (70:b3:d5:92:f0:57)
[ 1.314411] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.320153] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.326152] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.332570] ehci-pci: EHCI PCI platform driver
[ 1.337035] ehci-platform: EHCI generic platform driver
[ 1.342266] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.348371] ohci-pci: OHCI PCI platform driver
[ 1.352834] ohci-platform: OHCI generic platform driver
[ 1.358218] usbcore: registered new interface driver uas
[ 1.363345] usbcore: registered new interface driver usb-storage
[ 1.369412] mousedev: PS/2 mouse device common for all mice
[ 1.374917] usbcore: registered new interface driver usbtouchscreen
[ 1.405596] mmc_spi spi1.0: SD/MMC host mmc0, no DMA, no WP, no poweroff, cd polling
[ 1.412769] usbcore: registered new interface driver usbhid
[ 1.418178] usbhid: USB HID core driver
[ 1.422239] usbcore: registered new interface driver snd-usb-audio
[ 1.429056] NET: Registered protocol family 10
[ 1.433658] Segment Routing with IPv6
[ 1.436631] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.443010] NET: Registered protocol family 17
[ 1.446984] Key type dns_resolver registered
[ 1.451963] ALSA device list:
[ 1.454187] No soundcards found.
[ 1.457797] Waiting for root device /dev/mmcblk0p3...
[ 1.508109] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.515404] mmc0: new SDXC card on SPI
[ 1.521461] mmcblk0: mmc0:0000 SC64G 59.5 GiB
[ 1.553331] mmcblk0: p1 p2 p3
[ 1.638936] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ 1.646371] VFS: Mounted root (ext4 filesystem) readonly on device 179:3.
[ 1.657822] devtmpfs: mounted
[ 1.660582] Freeing unused kernel memory: 216K
[ 1.664471] This architecture does not have kernel memory protection.
[ 1.670895] Run /sbin/init as init process

@kraj @jsarenik @armcc @tprrt

In a meta-musl Yocto layer I would expect that systemd is not used at all. Did not look at the sources in detail, sorry. Last time I used Yocto in 2016.

Anyway. Note that there was no commit in this repository since Feb 10 2016. So I would highly suggest using it only in case you need to rebuild a system that was made for environment back then and you have all the needed dependencies.

kraj commented

@TONG369 if you are using latest yocto release then you do not need meta-musl because musl is already merged into core.

I removed the meta-musl package according to your suggestion and use the musl that comes with yocto. However, this error still exists, still can't get into the console. How should I do to solve this problem ? I am looking forward to your reply!
@jsarenik @kraj @armcc @tprrt