Hi, I'm trying to get a new ASIC with an ARC770 core running with openwrt, but I keep hitting the attempted to kill init problem, and have run out of debugging ideas. I've tried building busybox statically linked.

I'm building a kernel elf with initramfs, and loading that via JTAG. I can get console, and things seem to work up until the kernel passes control to userspace. Devicetree and kernel log attached below.

I was wondering if anyone had this problem in the context of LEDE (specifically on arc770), and what was done to resolve it.

Thanks,
Alex

# Appendix A: Relevant parts of devicetree

/include/ "skeleton.dtsi"

/ {
        model = "adaptrum,anarion";
        compatible = "snps,nsim";
        #address-cells = <1>;
        #size-cells = <1>;
        interrupt-parent = <&core_intc>;

        chosen {
                bootargs = "earlycon debug console=ttyS0,115200n8";
                stdout-path = "serial0:115200n8";
        };

        aliases {
                serial0 = &uart0;
        };

        soc {
                compatible = "simple-bus";
                device_type = "soc";
                #address-cells = <1>;
                #size-cells = <1>;
                ranges;

                core_clk: core_clk {
                        #clock-cells = <0>;
                        compatible = "fixed-clock";
                        clock-frequency = <12000000>;
                };

                core_intc: interrupt-controller {
                        compatible = "snps,arc700-intc";
                        interrupt-controller;
                        #interrupt-cells = <1>;
                };

                uart0: serial@f2202100 {
                        compatible = "ns16550";
                        reg = <0xf2202100 0x20>;
                        interrupts = <8>;
                        reg-shift = <2>;
                        reg-io-width = <4>;
                        clock-frequency = <192000000>;
                };
};


# Appendix B: Kernel failure log

[ 0.000000] Linux version 4.9.34+ (mrnuke@dev2.adaptrum) (gcc version 6.2.1 (LEDE GCC 6.2.1 r4561-ab3c551) ) #0 PREEMPT Sat Jul 15 01:31:46 2017
[    0.000000] Memory @ 80000000 [256M]
[    0.000000] OF: fdt:Machine model: adaptrum,anarion
[    0.000000] earlycon: ns16550 at MMIO32 0xf2202100 (options '115200n8')
[    0.000000] bootconsole [ns16550] enabled
[    0.000000]
[    0.000000] IDENTITY : ARCVER [0x35] ARCNUM [0x1] CHIPID [0x270f]
[    0.000000] processor [0]    : ARC 770 R4.11 (ARCompact ISA)
[    0.000000] Timers           : Timer0 Timer1
[    0.000000] ISA Extn : mpy norm barrel-shift swap minmax swape
[ 0.000000] BPU : partial match, cache:256, Predict Table:256
[    0.000000] MMU [v3] : 8k PAGE, JTLB 256 (128x2), uDTLB 8, uITLB 4
[    0.000000] I-Cache          : 32K, 2way/set, 64B Line, VIPT aliasing
[    0.000000] D-Cache          : 32K, 4way/set, 64B Line, VIPT
[    0.000000] Peripherals      : 0xc0000000
[    0.000000] Vector Table     : 0x80006000
[    0.000000] DEBUG            : ActionPoint
[    0.000000] OS ABI [v4]      : 64-bit data any register aligned
[    0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 806a1e04, node_mem_map 8fee0000
[    0.000000]   Normal zone: 144 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32624
[    0.000000] Kernel command line: earlycon debug console=ttyS0,115200n8
[    0.000000] PID hash table entries: 1024 (order: -1, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 4, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 3, 65536 bytes)
[ 0.000000] Memory: 253056K/262144K available (2366K kernel code, 100K rwdata, 704K rodata, 3608K init, 250K bss, 9088K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:128
[ 0.000000] clocksource: ARC Timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 159271703898 ns
[    0.010000] Calibrating delay loop... 20.48 BogoMIPS (lpj=102400)
[    0.150000] pid_max: default: 32768 minimum: 301
[    0.160000] Mount-cache hash table entries: 2048 (order: 0, 8192 bytes)
[ 0.170000] Mountpoint-cache hash table entries: 2048 (order: 0, 8192 bytes) [ 0.400000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.410000] futex hash table entries: 256 (order: -2, 3072 bytes)
[    0.480000] NET: Registered protocol family 16
[    1.840000] pps_core: LinuxPPS API ver. 1 registered
[ 1.850000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giome...@linux.it>
[    1.860000] PTP clock support registered
[    2.020000] clocksource: Switched to clocksource ARC Timer1
[    2.210000] NET: Registered protocol family 2
[ 2.290000] TCP established hash table entries: 2048 (order: 0, 8192 bytes)
[    2.300000] TCP bind hash table entries: 2048 (order: 0, 8192 bytes)
[    2.310000] TCP: Hash tables configured (established 2048 bind 2048)
[    2.330000] UDP hash table entries: 512 (order: 0, 8192 bytes)
[    2.340000] UDP-Lite hash table entries: 512 (order: 0, 8192 bytes)
[    2.360000] NET: Registered protocol family 1
[    2.550000] random: fast init done
[    8.870000] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   10.160000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 10.170000] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[   11.290000] io scheduler noop registered
[   11.300000] io scheduler deadline registered (default)
[   11.400000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[   11.600000] console [ttyS0] disabled
[ 11.610000] f2202100.serial: ttyS0 at MMIO 0xf2202100 (irq = 8, base_baud = 12000000) is a 16550
[   11.630000] console [ttyS0] enabled
[   11.630000] console [ttyS0] enabled
[   11.640000] bootconsole [ns16550] disabled
[   11.640000] bootconsole [ns16550] disabled
[   11.790000] libphy: Fixed MDIO Bus: probed
[   11.850000] stmmaceth f2014000.ethernet: no reset control found
[   11.860000] stmmac - user ID: 0x10, Synopsys ID: 0x37
[   11.870000]  Ring mode enabled
[ 11.880000] DMA HW capability register supported[ 11.880000] Enhanced/Alternate descriptors
[   11.890000]  Enabled extended descriptors
[   11.890000]  RX Checksum Offload Engine supported
[   11.900000]  COE Type 2
[   11.900000]  TX Checksum insertion supported
[   11.910000]  Wake-Up On Lan supported
[   11.910000]  Enable RX Mitigation via HW Watchdog Timer
[   12.210000] libphy: stmmac: probed
[   12.220000] eth%d: PHY ID 00221622 at 7 IRQ POLL (stmmac-0:07) active
[   12.350000] sdhci: Secure Digital Host Controller Interface driver
[   12.370000] sdhci: Copyright(c) Pierre Ossman
[   12.370000] Synopsys Designware Multimedia Card Interface Driver
[   12.400000] sdhci-pltfm: SDHCI platform and OF driver helper
[   12.490000] NET: Registered protocol family 10
[   12.590000] NET: Registered protocol family 17
[   12.600000] 8021q: 802.1Q VLAN Support v1.8
[   12.750000] Freeing unused kernel memory: 3608K (80008000 - 8038e000)
[   12.760000] This architecture does not have kernel memory protection.
[ 12.890000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[   12.890000]
[ 12.890000] Rebooting in 1 seconds..[ 12.890000] Put your restart handler here

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to