# UBOOT启动bsp内核常见错误 ## ERROR: Did not find a cmdline Flattened Device Tree 由于在boot.cmd里多加了第三个参数所致。认为第三个参数是dtb位置去解析了。 ## 内存不足 ~~~ [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Linux version 3.4.39 (root@bf756b445919) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #37 Sat Feb 3 14:07:28 UTC 2018 [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Initialized persistent memory from 41d20800-41d307ff [ 0.000000] bootmem alloc of 2635767048 bytes failed! [ 0.000000] Kernel panic - not syncing: Out of memory [ 0.000000] Backtrace: [ 0.000000] [<c0013410>] (dump_backtrace+0x0/0x110) from [<c0355450>] (dump_stack+0x18/0x1c) [ 0.000000] r6:ffffffff r5:00000038 r4:9d1a9d08 r3:00000001 [ 0.000000] [<c0355438>] (dump_stack+0x0/0x1c) from [<c0355834>] (panic+0x78/0x1cc) [ 0.000000] [<c03557bc>] (panic+0x0/0x1cc) from [<c048ab04>] (___alloc_bootmem+0x34/0x3c) [ 0.000000] r3:c04ae780 r2:c04ae780 r1:c04ae774 r0:c040f523 [ 0.000000] r7:c04c17bc [ 0.000000] [<c048aad0>] (___alloc_bootmem+0x0/0x3c) from [<c048af7c>] (__alloc_bootmem+0x14/0x18) [ 0.000000] r4:7fffffff r3:00000000 [ 0.000000] [<c048af68>] (__alloc_bootmem+0x0/0x18) from [<c0485634>] (script_init+0x54/0x5b4) [ 0.000000] [<c04855e0>] (script_init+0x0/0x5b4) from [<c04821dc>] (setup_arch+0x6cc/0x8c0) [ 0.000000] [<c0481b10>] (setup_arch+0x0/0x8c0) from [<c047f590>] (start_kernel+0x78/0x2c8) [ 0.000000] [<c047f518>] (start_kernel+0x0/0x2c8) from [<40008040>] (0x40008040) [ 0.000000] r7:c04ad604 r6:c049db50 r5:c04aa050 r4:10c5387d ~~~ linux-3.4/arch/arm/mach-sunxi/sys_config.c #define alloc_bootmem(x) \ __alloc_bootmem(x, SMP_CACHE_BYTES, BOOTMEM_LOW_LIMIT)