自己做的一块板子,以前跑Android系统一切OK,内核版本是3.4的,然后android是4.4的;
现在想自己移植个主线内核上去,uboot移植正常;
kernel编译的时候用的预配置文件是:sunxi_defconfig
设备树文件用的是类似配置的:sun8i-a33-q8-tablet.dts
启动的时候出现如下问题:
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.52-58934-g3f0ec3a-dirty (vroot@zhibo) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)) #5 SMP Wed Nov 7 22:39:55 CST 2018
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Q8 A33 Tablet
[ 0.000000] OF: fdt: Ignoring memory block 0x40000000 - 0x7fda8000
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: dma_contiguous_reserve(limit ffffffff)
[ 0.000000] cma: dma_contiguous_reserve: reserving 16 MiB for global area
[ 0.000000] cma: cma_declare_contiguous(size 0x0000000001000000, base 0x0000000000000000, limit 0xffffffffffffffff alignment 0x0000000000000000)
[ 0.000000] cma: Failed to reserve 16 MiB ret = -12
[ 0.000000] Kernel panic - not syncing: ERROR: Failed to allocate 0x0000000000002000 bytes below 0x0000000000000000.
[ 0.000000]
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.52-58934-g3f0ec3a-dirty #5
[ 0.000000] Hardware name: sun8i
[ 0.000000] [<c0228a84>] (unwind_backtrace) from [<c02256ec>] (show_stack+0x10/0x14)
[ 0.000000] [<c02256ec>] (show_stack) from [<c09e8e08>] (dump_stack+0x94/0xa8)
[ 0.000000] [<c09e8e08>] (dump_stack) from [<c0240d64>] (panic+0xdc/0x254)
[ 0.000000] [<c0240d64>] (panic) from [<c1011ca0>] (memblock_alloc_base+0x34/0x3c)
[ 0.000000] [<c1011ca0>] (memblock_alloc_base) from [<c1011cc0>] (memblock_alloc+0x18/0x20)
[ 0.000000] [<c1011cc0>] (memblock_alloc) from [<c1006614>] (early_alloc_aligned+0x18/0x38)
[ 0.000000] [<c1006614>] (early_alloc_aligned) from [<c1006f78>] (paging_init+0x4a4/0x724)
[ 0.000000] [<c1006f78>] (paging_init) from [<c10033dc>] (setup_arch+0x604/0xc00)
[ 0.000000] [<c10033dc>] (setup_arch) from [<c1000944>] (start_kernel+0x60/0x3d4)
[ 0.000000] [<c1000944>] (start_kernel) from [<80008090>] (0x80008090)
[ 0.000000] ---[ end Kernel panic - not syncing: ERROR: Failed to allocate 0x0000000000002000 bytes below 0x0000000000000000.
[ 0.000000]
先贴这个,继续分析了,求指导
离线
https://www.armbian.com/olimex-lime-a33/
https://dl.armbian.com/lime-a33/Ubuntu_bionic_next.7z
Armbian Bionic
mainline kernel 4.14.y
Server or light desktop usage scenarios.
Stable
试一试欧洲Olimex开发板社区(公司)做的4.14Armbian开发包.
离线
离线