On 2018-01-06 10:35, a.ku...@matellio.com wrote:
> Hi,
> 
> 
> We are able to run jailhouse on Tx2 platform using 4.14-rc14-kernel, we are 
> able to enable root-cell and we can run non-root cell demo application which 
> is provided by jailhouse(gic-demo.bin). 
> 
> But we are stuck in the middle of booting while loading 4.14-rc14-kernel in 
> non-root cell, i have attached both root-cell and non-root cell config.
> 
> This is the logs we are getting while loading non-root cell.
> 
> Created cell "jetson-tx2-linux-demo"
> Page pool usage after cell creation: mem 117/16356, remap 101/131072
> [ 2059.007251] Created Jailhouse cell "jetson-tx2-linux-demo"
> Cell "jetson-tx2-linux-demo" can be loaded
> Started cell "jetson-tx2-linux-demo"
> [    0.000000] Booting Linux on physical CPU 0x102
> [    0.000000] Linux version 4.14.0-rc4 (root@tegra-ubuntu) (gcc version 
> 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2.1)) #2 SMP PREEMPT Wed 8
> [    0.000000] Boot CPU: AArch64 Processor [411fd073]
> [    0.000000] Machine model: Jailhouse cell on NVIDIA Jetson TX2
> [    0.000000] efi: Getting EFI parameters from FDT:
> [    0.000000] efi: UEFI not found.
> [    0.000000] cma: Reserved 16 MiB at 0x00000000ff000000
> [    0.000000] psci: probing for conduit method from DT.
> [    0.000000] psci: PSCIv0.2 detected in firmware.
> [    0.000000] psci: Using standard PSCI v0.2 function IDs
> [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
> [    0.000000] Failed to find device node for boot cpu
> [    0.000000] missing boot CPU MPIDR, not enabling secondaries
> [    0.000000] percpu: Embedded 21 pages/cpu @ffff800042cca000 s47128 r8192 
> d30696 u86016
> [    0.000000] Detected PIPT I-cache on CPU0
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 108092
> [    0.000000] Kernel command line: console=ttyS0,115200
> [    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
> [    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
> [    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
> [    0.000000] software IO TLB [mem 0xfafff000-0xfefff000] (64MB) mapped at 
> [ffff80003afff000-ffff80003effefff]
> [    0.000000] Memory: 301540K/439232K available (8956K kernel code, 1084K 
> rwdata, 4052K rodata, 1088K init, 282K bss, 121308K reserved, 16384)
> [    0.000000] Virtual kernel memory layout:
> [    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   
> 128 MB)
> [    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   
> (129022 GB)
> [    0.000000]       .text : 0xffff000008080000 - 0xffff000008940000   (  
> 8960 KB)
> [    0.000000]     .rodata : 0xffff000008940000 - 0xffff000008d40000   (  
> 4096 KB)
> [    0.000000]       .init : 0xffff000008d40000 - 0xffff000008e50000   (  
> 1088 KB)
> [    0.000000]       .data : 0xffff000008e50000 - 0xffff000008f5f200   (  
> 1085 KB)
> [    0.000000]        .bss : 0xffff000008f5f200 - 0xffff000008fa5be0   (   
> 283 KB)
> [    0.000000]     fixed   : 0xffff7dfffe7fd000 - 0xffff7dfffec00000   (  
> 4108 KB)
> [    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    
> 16 MB)
> [    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  
> 2048 GB maximum)
> [    0.000000]               0xffff7e0000a00000 - 0xffff7e00010b3c00   (     
> 6 MB actual)
> [    0.000000]     memory  : 0xffff800028000000 - 0xffff800042cf0000   (   
> 428 MB)
> [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [    0.000000] Preemptible hierarchical RCU implementation.
> [    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
> [    0.000000]  Tasks RCU enabled.
> [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
> [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
> [    0.000000] arch_timer: cp15 timer(s) running at 31.25MHz (virt).
> [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff 
> max_cycles: 0xe6a171046, max_idle_ns: 881590405314 ns
> [    0.000002] sched_clock: 56 bits at 31MHz, resolution 32ns, wraps every 
> 4398046511088ns
> [    0.000052] Console: colour dummy device 80x25
> [    0.000066] Calibrating delay loop (skipped), value calculated using timer 
> frequency.. 62.50 BogoMIPS (lpj=125000)
> [    0.000074] pid_max: default: 32768 minimum: 301
> [    0.000116] Security Framework initialized
> [    0.000136] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
> [    0.000142] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 
> bytes)
> [    0.016036] ASID allocator initialised with 65536 entries
> [    0.024034] Hierarchical SRCU implementation.
> [    0.032145] EFI services will not be available.
> [    0.040056] smp: Bringing up secondary CPUs ...
> [    0.040062] smp: Brought up 1 node, 1 CPU
> [    0.040066] SMP: Total of 1 processors activated.
> [    0.040072] CPU features: detected feature: 32-bit EL0 Support
> [    0.040130] CPU: All CPU(s) started at EL1
> [    0.040428] devtmpfs: initialized
> [    0.040699] random: get_random_u32 called from 
> bucket_table_alloc+0x108/0x288 with crng_init=0
> [    0.044154] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, 
> max_idle_ns: 7645041785100000 ns
> [    0.044163] futex hash table entries: 256 (order: 3, 32768 bytes)
> [    0.044351] pinctrl core: initialized pinctrl subsystem
> [    0.044691] DMI not present or invalid.
> [    0.044852] NET: Registered protocol family 16
> [    0.048093] cpuidle: using governor menu
> [    0.048144] vdso: 2 pages (1 code @ ffff000008946000, 1 data @ 
> ffff000008e54000)
> [    0.048155] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
> [    0.049300] DMA: preallocated 256 KiB pool for atomic allocations
> [    0.049440] Serial: AMBA PL011 UART driver
> [    0.057306] random: fast init done
> [    0.069093] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
> [    0.080354] ACPI: Interpreter disabled.
> [    0.080737] vgaarb: loaded
> [    0.080847] SCSI subsystem initialized
> [    0.084328] usbcore: registered new interface driver usbfs
> [    0.084353] usbcore: registered new interface driver hub
> [    0.084374] usbcore: registered new device driver usb
> [    0.084478] pps_core: LinuxPPS API ver. 1 registered
> [    0.084483] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo 
> Giometti <giome...@linux.it>
> [    0.084494] PTP clock support registered
> [    0.084548] dmi: Firmware registration failed.
> [    0.084606] Advanced Linux Sound Architecture Driver Initialized.
> [    0.088298] clocksource: Switched to clocksource arch_sys_counter
> [    0.088355] VFS: Disk quotas dquot_6.6.0
> [    0.088384] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [    0.088452] pnp: PnP ACPI: disabled
> [    0.093369] NET: Registered protocol family 2
> [    0.093606] TCP established hash table entries: 4096 (order: 3, 32768 
> bytes)
> [    0.093624] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
> [    0.093646] TCP: Hash tables configured (established 4096 bind 4096)
> [    0.093683] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [    0.093691] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [    0.093751] NET: Registered protocol family 1
> [    0.100193] RPC: Registered named UNIX socket transport module.
> [    0.100199] RPC: Registered udp transport module.
> [    0.100202] RPC: Registered tcp transport module.
> [    0.100206] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [    0.100617] Unpacking initramfs...
> [    0.262347] Initramfs unpacking failed: junk in compressed archive

Something is wrong with the memory layout or size so that the initramfs
gets corrupted (I'm assuming you tested that it works fine natively).

Do you load kernel and initramfs via "jailhouse cell linux"? What
parameter does the script report when you call it with "-w ..."?

Jan

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to