does anyone managed to get Linux 4.20 to boot and run on HiFive Unleashed? I managed to get half-way through but now I’m little stuck.
It is my understanding that all drivers needed to run on Unleashed did not make it into 4.20. So I took vanilla 4.20 (8fe28cb58bcb2) and apply patches I found at (https://github.com/riscv/meta-riscv/tree/master/recipes-kernel/linux/files/freedom-u540 - not all of them just those mentioned in config file for 4.20).
The kernel compiles and run fine under QEMU. On Unleashed is starts booting and then sort of hangs - following is printend on console:
[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] Linux version 4.20.0-00010-g004a58746358 (jv@jenkins-debian) (gcc version 7.2.0 (GCC)) #4 SMP Wed Jan 9 10:21:56 UTC 2019 [ 0.000000] printk: bootconsole [early0] enabled [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x000027ffffffffff] [ 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 has a non-okay status of "masked" [ 0.000000] CPU with hartid=0 has a non-okay status of "masked" [ 0.000000] elf_hwcap is 0x112d [ 0.000000] percpu: Embedded 15 pages/cpu @(____ptrval____) s28696 r0 d32744 u61440 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2067975 [ 0.000000] Kernel command line: earlyprintk root=/dev/mmcblk0p2 rootwait [ 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: 8184876K/8386560K available (5584K kernel code, 352K rwdata, 1492K rodata, 212K init, 819K bss, 201684K 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 event tracing is enabled. [ 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 10 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 to 4 (out of 9) handlers. [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] printk: console [tty0] enabled [ 0.000000] printk: bootconsole [early0] disabled
This is all. Interestingly, heartbeat LED is flashing like should. I can provide kernel .config and reference to the exact kernel source I’m using if anyone wants to have a look.
Do I miss some patch or config? Any idea what to check? Does anyone managed to get 4.20 running?