antmicro-labs / renode

Renode - Antmicro's virtual development framework for complex embedded systems
https://renode.io
Other
4 stars 0 forks source link

Can't find login and password for Buildroot in "hifive-unleashed.resc" example #8

Closed RahimFatih closed 3 years ago

RahimFatih commented 3 years ago

I wanted to run hifive-unleashed.resc script (renode/scripts/single-node/hifive_unleashed.resc), after successful boot of Linux, I was asked for login and password for Buildroot, but I couldn't find any information about login data.

Here is my terminal output of the whole session:

bbl loader
                SIFIVE, INC.
         5555555555555555555555555
        5555                   5555
       5555                     5555
      5555                       5555
     5555       5555555555555555555555
    5555       555555555555555555555555
   5555                             5555
  5555                               5555
 5555                                 5555
5555555555555555555555555555          55555
 55555           555555555           55555
   55555           55555           55555
     55555           5           55555
       55555                   55555
         55555               55555
           55555           55555
             55555       55555
               55555   55555
                 555555555
                   55555
                     5
           SiFive RISC-V Coreplex
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] Linux version 4.15.0-00044-g2b0aa1de45f6 (houen@bakura) (gcc version
 7.2.0 (GCC)) #5 SMP Wed Jul 11 14:54:22 CEST 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] Initial ramdisk at: 0x        (ptrval) (9593856 bytes)
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080200000-0x000000008fffffff]
[    0.000000]   Normal   [mem 0x0000000090000000-0x000008ffffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x000000008fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000008fffffff]
[    0.000000] software IO TLB [mem 0x8bc73000-0x8fc73000] (64MB) mapped at [      
  (ptrval)-        (ptrval)]
[    0.000000] CPU with hartid=0 has a non-okay status of "masked"
[    0.000000] elf_hwcap is 0x1105
[    0.000000] percpu: Embedded 14 pages/cpu @        (ptrval) s28632 r0 d28712 u57
344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64135
[    0.000000] Kernel command line: earlyconsole mem=256M@0x80000000
[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 175124K/260096K available (3193K kernel code, 263K rwdata, 9
70K rodata, 9535K init, 782K bss, 84972K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=5, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=5.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=5
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] CPU with hartid=0 has a non-okay status of "masked"
[    0.000000] riscv,cpu_intc,1: 64 local interrupts mapped
[    0.000000] riscv,cpu_intc,2: 64 local interrupts mapped
[    0.000000] riscv,cpu_intc,3: 64 local interrupts mapped
[    0.000000] riscv,cpu_intc,4: 64 local interrupts mapped
[    0.000000] OF: /soc/interrupt-controller@c000000: could not find phandle
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 2 PID: 0 at /home/houen/antmicro/microsemi/mfus2/linux
/drivers/irqchip/irq-riscv-intc.c:158 riscv_irq_enable+0x92/0x94
[    0.000000] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.15.0-00044-g2b0aa1de45f6
 #5
[    0.000000] Call Trace:
[    0.000000] [<        (ptrval)>] walk_stackframe+0x0/0xa2
[    0.000000] [<        (ptrval)>] show_stack+0x26/0x34
[    0.000000] [<        (ptrval)>] dump_stack+0x5e/0x7c
[    0.000000] [<        (ptrval)>] __warn+0xc6/0xdc
[    0.000000] [<        (ptrval)>] warn_slowpath_null+0x2c/0x3e
[    0.000000] [<        (ptrval)>] riscv_irq_enable+0x8e/0x94
[    0.000000] [<        (ptrval)>] irq_enable+0x3a/0x6a
[    0.000000] [<        (ptrval)>] __irq_startup+0x80/0x88
[    0.000000] [<        (ptrval)>] irq_startup+0x4e/0xe2
[    0.000000] [<        (ptrval)>] irq_activate_and_startup+0x1c/0x28
[    0.000000] [<        (ptrval)>] __irq_do_set_handler+0x6e/0x134
[    0.000000] [<        (ptrval)>] irq_set_chained_handler_and_data+0x2c/0x4a
[    0.000000] [<        (ptrval)>] plic_init+0x1fe/0x32a
[    0.000000] [<        (ptrval)>] of_irq_init+0x182/0x2a6
[    0.000000] [<        (ptrval)>] irqchip_init+0x10/0x1c
[    0.000000] [<        (ptrval)>] init_IRQ+0x8/0x14
[    0.000000] [<        (ptrval)>] start_kernel+0x20a/0x350
[    0.000000] [<        (ptrval)>] _sinittext+0x4e/0x56
[    0.000000] random: get_random_bytes called from print_oops_end_marker+0x3a/0x52
 with crng_init=0
[    0.000000] ---[ end trace b065de4394c98b2c ]---
[    0.000000] riscv,plic0,c000000: mapped 53 interrupts to 4/9 handlers
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles:
 0x1d854df40, max_idle_ns: 3526361616960 ns
[    0.000034] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199
023255500ns
[    0.000547] Calibrating delay loop (skipped), value calculated using timer frequ
ency.. 2.00 BogoMIPS (lpj=10000)
[    0.000781] pid_max: default: 32768 minimum: 301
[    0.001513] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[    0.001679] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[    0.005709] Hierarchical SRCU implementation.
[    0.013938] smp: Bringing up secondary CPUs ...
[    0.015272] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles:
 0x1d854df40, max_idle_ns: 3526361616960 ns
[    0.015514] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199
023255500ns
[    0.017919] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles:
 0x1d854df40, max_idle_ns: 3526361616960 ns
[    0.018161] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199
023255500ns
[    0.020543] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles:
 0x1d854df40, max_idle_ns: 3526361616960 ns
[    0.020783] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199
023255500ns
[    0.021583] smp: Brought up 1 node, 4 CPUs
[    0.024083] devtmpfs: initialized
[    0.038583] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_i
dle_ns: 19112604462750000 ns
[    0.038883] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.041015] NET: Registered protocol family 16
[    0.044483] sifive-u54-prci 10000000.prci: Registered U54 core clocks
[    0.045671] sifive-gemgxl-mgmt 100a0000.cadence-gemgxl-mgmt: Registered clock sw
itch 'cadence-gemgxl-mgmt'
[    0.089883] vgaarb: loaded
[    0.091283] SCSI subsystem initialized
[    0.092683] usbcore: registered new interface driver usbfs
[    0.092983] usbcore: registered new interface driver hub
[    0.093283] usbcore: registered new device driver usb
[    0.093683] pps_core: LinuxPPS API ver. 1 registered
[    0.093783] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
 <giometti@linux.it>
[    0.094083] PTP clock support registered
[    0.096983] clocksource: Switched to clocksource riscv_clocksource
[    0.101383] NET: Registered protocol family 2
[    0.104183] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.104683] TCP bind hash table entries: 2048 (order: 3, 32768 bytes)
[    0.105083] TCP: Hash tables configured (established 2048 bind 2048)
[    0.105483] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.105683] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.106483] NET: Registered protocol family 1
[    0.340783] Unpacking initramfs...
[    0.614883] Initialise system trusted keyrings
[    0.615383] workingset: timestamp_bits=62 max_order=16 bucket_order=0
[    0.647683] random: fast init done
[    0.654283] jitterentropy: Initialization failed with host not compliant with re
quirements: 2
[    0.654483] Key type asymmetric registered
[    0.654583] Asymmetric key parser 'x509' registered
[    0.654683] io scheduler noop registered
[    0.655883] io scheduler cfq registered (default)
[    0.655983] io scheduler mq-deadline registered
[    0.656083] io scheduler kyber registered
[    0.660983] sifive_gpio 10060000.gpio: SiFive GPIO chip registered 16 GPIOs
[    0.661883] pwm-sifivem 10020000.pwm: Unable to find controller clock
[    0.662183] pwm-sifivem 10021000.pwm: Unable to find controller clock
[    0.837383] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.842883] 10010000.serial: ttySI0 at MMIO 0x10010000 (irq = 4, base_baud = 0) 
is a sifive-serial
[    0.844083] 10011000.serial: ttySI1 at MMIO 0x10011000 (irq = 5, base_baud = 0) 
is a sifive-serial
[    0.844283] console [ttySI0] enabled
[    0.844283] console [ttySI0] enabled
[    0.844383] bootconsole [early0] disabled
[    0.844383] bootconsole [early0] disabled
[    0.851483] sifive_spi 10041000.spi: mapped; irq=37, cs=4
[    0.852883] sifive_spi 10040000.spi: mapped; irq=41, cs=1
[    0.854283] sifive_spi 10050000.spi: mapped; irq=42, cs=1
[    0.855983] libphy: Fixed MDIO Bus: probed
[    0.857683] macb: GEM doesn't support hardware ptp.
[    0.858183] libphy: MACB_mii_bus: probed
[    0.860483] Generic PHY 10090000.ethernet-ffffffff:00: attached PHY driver [Gene
ric PHY] (mii_bus:phy_addr=10090000.ethernet-ffffffff:00, irq=POLL)
[    0.860583] macb 10090000.ethernet eth0: Cadence GEM rev 0x00070109 at 0x1009000
0 irq 21 (70:b3:d5:92:f0:4a)
[    0.861883] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.861983] ehci-pci: EHCI PCI platform driver
[    0.862483] usbcore: registered new interface driver usb-storage
[    0.862583] i2c /dev entries driver
[    0.865883] leds_pwm soc:pwmleds: unable to request PWM for mtd: -517
[    0.866483] usbcore: registered new interface driver usbhid
[    0.866639] usbhid: USB HID core driver
[    0.868583] NET: Registered protocol family 17
[    0.870083] Loading compiled-in X.509 certificates
[    0.872083] pwm-sifivem 10020000.pwm: SiFive PWM chip registered 4 PWMs
[    0.872683] pwm-sifivem 10021000.pwm: SiFive PWM chip registered 4 PWMs
[    0.899083] Freeing unused kernel memory: 9532K
[    0.899183] This architecture does not have kernel memory protection.
Starting logging: OK
Starting mdev...
sort: /sys/devices/platform/Fixed: No such file or directory
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... done.
Starting network...
Starting dropbear sshd: OK
Welcome to Buildroot
buildroot login: admin
Password: 
Login incorrect
PiotrZierhoffer commented 3 years ago

Try root/root. It's a common pattern for embedded Linux (and root is almost always the superuser)

RahimFatih commented 3 years ago

I've tried it at beginning, but i had to make typo... Thank you, it works now with root/root.