Modify

Opened 20 months ago

#22456 new defect

OpenWrt Kernel Initramfs is stucking

Reported by: anindya19@… Owned by: developers
Priority: highest Milestone:
Component: kernel Version: Chaos Calmer 15.05
Keywords: Cc:

Description

Hi,

Please get the below salient points,

  1. Using vmlinux initramfs for a new platform development with ARM

architecture (Cortex A5), Linux ver: 4.6.

  1. Enabled interrupt controller driver, timer controller & UART

controller as basic peripheral.

  1. RFS: OpenWrt
  2. Modified in arch/arm/Kconfig locally as mentioned below, Hence

I have to use the vmlinux (elf format) through Segger Jlink debugger to
0x10008000 location (My DDR is starting at 0x10000000).

"

config PAGE_OFFSET

hex

default PHYS_OFFSET if !MMU
default 0x10000000 if VMSPLIT_1G Changed here, previously it was 0x40000000
default 0x80000000 if VMSPLIT_2G
default 0xB0000000 if VMSPLIT_3G_OPT
default 0xC0000000

"

  1. I already checked the RFS with phycore vybrid board with vmlinux

initramfs and it is working perfectly for me. But whenever switching
with the same rfs on my platform (pre silicon phase so, using FPGA) it
is stucking. For the easy reference I am sharing my boot log using
OpenWRT (Latest ver.).

Hope, you will provide some useful solution behalf on this problem. And
also let me know if any further input is required to provide from my side.

BOOT-LOG:~

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.6.0-svn141
(ani@ani-To-be-filled-by-O-E-M) (gcc version 4.9.3 20150529 (release)
[ARM/embedded-4_9-branch revision 227977] (GNU Tools for ARM Embedded
Processors) ) #22 Mon May 30 12:08:13 IST 2016
[ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7),
cr=10c52c79
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[ 0.000000] Machine model: company xyz_plat I4 board
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 65024
[ 0.000000] Kernel command line: root=/dev/ram0 rw rootfstype=ramfs
console=ttyS0,115200n8
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072
bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 254284K/262144K available (2052K kernel code, 69K
rwdata, 624K rodata, 2048K init, 338K bss, 7860K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0x20800000 - 0xff800000 (3568 MB)
[ 0.000000] lowmem : 0x10000000 - 0x20000000 ( 256 MB)
[ 0.000000] modules : 0x0f000000 - 0x10000000 ( 16 MB)
[ 0.000000] .text : 0x10008000 - 0x1039d014 (3669 kB)
[ 0.000000] .init : 0x10400000 - 0x10600000 (2048 kB)
[ 0.000000] .data : 0x10600000 - 0x106114f8 ( 70 kB)
[ 0.000000] .bss : 0x106114f8 - 0x10665de0 ( 339 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000960] sched_clock: 16 bits at 31kHz, resolution 32000ns, wraps
every 1048560000ns
[ 0.002048]
[ 0.002048] xyz_plat_WDT0: Free run counter is running
[ 0.007072]
[ 0.007072] xyz_plat_WDT1: System timer (irq = 16)
[ 0.023648] Console: colour dummy device 80x30
[ 0.025088] Calibrating delay loop... 2.38 BogoMIPS (lpj=11904)
[ 0.158976] pid_max: default: 32768 minimum: 301
[ 0.171104] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.172864] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
bytes)
[ 0.250848] CPU: Testing write buffer coherency: ok
[ 0.265504] Setting up static identity map for 0x10100000 - 0x10100034
[ 0.420000] devtmpfs: initialized
[ 0.665184] VFP support v0.3: implementor 41 architecture 2 part 30
variant 5 rev 1
[ 0.685728] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.702432] pinctrl core: initialized pinctrl subsystem
[ 0.760320] NET: Registered protocol family 16
[ 0.788672] DMA: preallocated 256 KiB pool for atomic coherent
allocations
[ 2.237824] NET: Registered protocol family 1
[ 5.634144] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 5.657216] workingset: timestamp_bits=29 max_order=16 bucket_order=0
[ 6.927520] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[ 6.959136] fuse init (API version 7.24)
[ 7.157120] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 254)
[ 7.159040] io scheduler noop registered
[ 7.160928] io scheduler deadline registered
[ 7.167552] io scheduler cfq registered (default)
[ 13.664480] HDLC line discipline maxframe=4096
[ 13.667456] N_HDLC line discipline registered.
[ 13.679840] 40003000.serial: ttyS0 at MMIO 0x40003000 (irq = 18,
base_baud = 67602384) is a
[ 13.950656] console [ttyS0] enabled
[ 14.149952] Warning: unable to open an initial console.
[ 15.142592] Freeing unused kernel memory: 2048K (10400000 - 10600000)
[ 19.953664] UART port0 configuration
[ 19.985312] init: Console is alive
[ 20.264544] init: - preinit -
[ 21.117568] random: mktemp urandom read with 62 bits of entropy available

<STUCKED HERE>

Thanks & regards,
Anindya

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.