cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bfung_2
Adventurer
Adventurer
166 Views
Registered: ‎07-02-2020

Kernel Panic TFTP boot

I have followed the Petalinux 2020.1 guide to generate the boot products and to copy to the TFTP directory on my server.

Once I boot petalinux, I get access to the U-boot command line and...

setenv ipaddr [host ip]

setenev serverip [server ip]

pxe boot

 

Booting commences but ends with a kernel panic upon...

Trying to unpack rootfs image as initramfs...
swapper/0 invoked oom-killer: gfp_mask=0x100cc2(GFP_HIGHUSER), order=0, oom_score_adj=0
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-xilinx-v2020.2 #1
Hardware name: Xilinx Zynq Platform
[<c010e41c>] (unwind_backtrace) from [<c010a1c8>] (show_stack+0x10/0x14)
[<c010a1c8>] (show_stack) from [<c06a2a28>] (dump_stack+0xb4/0xd0)
[<c06a2a28>] (dump_stack) from [<c01b1088>] (dump_header+0x64/0x20c)
[<c01b1088>] (dump_header) from [<c01b0eb4>] (out_of_memory+0x214/0x304)
[<c01b0eb4>] (out_of_memory) from [<c01e115c>] (__alloc_pages_nodemask+0x7b4/0x8c4)
[<c01e115c>] (__alloc_pages_nodemask) from [<c01ad97c>] (pagecache_get_page+0xe8/0x158)
[<c01ad97c>] (pagecache_get_page) from [<c01ada04>] (grab_cache_page_write_begin+0x18/0x2c)
[<c01ada04>] (grab_cache_page_write_begin) from [<c021f04c>] (simple_write_begin+0x20/0x7c)
[<c021f04c>] (simple_write_begin) from [<c01ac7f8>] (generic_perform_write+0xac/0x1ac)
[<c01ac7f8>] (generic_perform_write) from [<c01aee28>] (__generic_file_write_iter+0x150/0x16c)
[<c01aee28>] (__generic_file_write_iter) from [<c01aee8c>] (generic_file_write_iter+0x48/0xac)
[<c01aee8c>] (generic_file_write_iter) from [<c01faab0>] (__vfs_write+0xb0/0xe8)
[<c01faab0>] (__vfs_write) from [<c01fbe00>] (vfs_write+0x98/0xbc)
[<c01fbe00>] (vfs_write) from [<c01fbfa4>] (ksys_write+0x74/0xc4)
[<c01fbfa4>] (ksys_write) from [<c0a029bc>] (xwrite+0x2c/0x64)
[<c0a029bc>] (xwrite) from [<c0a02a18>] (do_copy+0x24/0xac)
[<c0a02a18>] (do_copy) from [<c0a0243c>] (write_buffer+0x24/0x3c)
[<c0a0243c>] (write_buffer) from [<c0a0248c>] (flush_buffer+0x38/0x98)
[<c0a0248c>] (flush_buffer) from [<c0a28408>] (__gunzip+0x2b8/0x31c)
[<c0a28408>] (__gunzip) from [<c0a28494>] (gunzip+0x28/0x30)
[<c0a28494>] (gunzip) from [<c0a0289c>] (unpack_to_rootfs+0x1cc/0x2c0)
[<c0a0289c>] (unpack_to_rootfs) from [<c0a0320c>] (populate_rootfs+0x50/0x12c)
[<c0a0320c>] (populate_rootfs) from [<c010270c>] (do_one_initcall+0x74/0x16c)
[<c010270c>] (do_one_initcall) from [<c0a00f4c>] (kernel_init_freeable+0x1f4/0x248)
[<c0a00f4c>] (kernel_init_freeable) from [<c06b6948>] (kernel_init+0x8/0x10c)
[<c06b6948>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0xef047fb0 to 0xef047ff8)
7fa0: 00000000 00000000 00000000 00000000
7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Mem-Info:
active_anon:0 inactive_anon:0 isolated_anon:0
active_file:0 inactive_file:0 isolated_file:0
unevictable:152276 dirty:0 writeback:0 unstable:0
slab_reclaimable:2816 slab_unreclaimable:440
mapped:0 shmem:0 pagetables:0 bounce:0
free:6606 free_pcp:112 free_cma:4032
Node 0 active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:609104kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
Normal free:10076kB min:2488kB low:3108kB high:3728kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:363732kB writepending:0kB present:786432kB managed:387712kB mlocked:0kB kernel_stack:264kB pagetables:0kB bounce:0kB free_pcp:336kB local_pcp:144kB free_cma:0kB
lowmem_reserve[]: 0 1920 1920
HighMem free:16348kB min:240kB low:632kB high:1024kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:245368kB writepending:0kB present:262144kB managed:262144kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:112kB local_pcp:56kB free_cma:16128kB
lowmem_reserve[]: 0 0 0
Normal: 5*4kB (ME) 3*8kB (ME) 3*16kB (UM) 4*32kB (UME) 2*64kB (UE) 2*128kB (M) 3*256kB (UME) 3*512kB (ME) 1*1024kB (M) 3*2048kB (UM) 0*4096kB = 10076kB
HighMem: 1*4kB (U) 1*8kB (U) 1*16kB (U) 0*32kB 1*64kB (U) 1*128kB (U) 1*256kB (C) 1*512kB (C) 1*1024kB (C) 1*2048kB (C) 3*4096kB (C) = 16348kB
152288 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
262144 pages RAM
65536 pages HighMem/MovableOnly
99680 pages reserved
4096 pages cma reserved
Tasks state (memory values in pages):
[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
Out of memory and no killable processes...
Kernel panic - not syncing: System is deadlocked on memory
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.4.0-xilinx-v2020.2 #1
Hardware name: Xilinx Zynq Platform
[<c010e41c>] (unwind_backtrace) from [<c010a1c8>] (show_stack+0x10/0x14)
[<c010a1c8>] (show_stack) from [<c06a2a28>] (dump_stack+0xb4/0xd0)
[<c06a2a28>] (dump_stack) from [<c010ca04>] (ipi_cpu_stop+0x3c/0x98)
[<c010ca04>] (ipi_cpu_stop) from [<c010d250>] (handle_IPI+0x64/0x80)
[<c010d250>] (handle_IPI) from [<c033ef3c>] (gic_handle_irq+0x84/0x90)
[<c033ef3c>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xef083f68 to 0xef083fb0)
3f60: 00000000 ef6e3974 00000000 c0116720 00000000 00000000
3f80: ef082000 c0b03c68 00000002 ef083fc0 c0b03ca8 00000000 fffffff8 ef083fb8
3fa0: c01078dc c01078cc 60000013 ffffffff
[<c0101a8c>] (__irq_svc) from [<c01078cc>] (arch_cpu_idle+0x1c/0x38)
[<c01078cc>] (arch_cpu_idle) from [<c014021c>] (do_idle+0x120/0x258)
[<c014021c>] (do_idle) from [<c01404b8>] (cpu_startup_entry+0x18/0x1c)
[<c01404b8>] (cpu_startup_entry) from [<0010242c>] (0x10242c)
---[ end Kernel panic - not syncing: System is deadlocked on memory ]---

 

I can see "Out of memory and no killable processes. Seems like this maybe a thread to follow...

Looking at /tftp/pxelinux.cfg/default:

LABEL Linux
KERNEL zImage
FDT system.dtb
INITRD rootfs.cpio.gz.u-boot

Any help would be appreciated. Thanks.

Tags (2)
0 Kudos
0 Replies