arm - Linux kernel for A20 cpu stuck at 'Starting kernel' -
linux kernel version: 4.1.8 board:cubietruck a20 cpu. compiled platform: os x 10.5.5
i follows:
first use sunxi_defconfig default configuration, 'byte_swap.h' not found error occurred. use sun7i_defconfig offered cubieboard, , make -j4 arch=arm cross_compile=arm-none-eabi- zimage
,make -j4 arch=arm cross_compile=arm-none-eabi- dtbs
.
then burn uboot , spl sdcard , make partitions: 1 boot , 1 root file system. put zimage, script.bin , dtb file on boot partition.
then create boot.cmd below:
fatload mmc 0 0x46000000 zimage fatload mmc 0 0x49000000 sun7i-a20-cubietruck.dtb setenv bootargs console=ttys0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10 ${extra} bootz 0x46000000 - 0x49000000
and mkimage -c none -a arm -t script -d boot.cmd boot.scr
.
so there's 3 files on boot partition:
boot.scr
script.bin
sun7i-a20-cubietruck.dtb
zimage
the uboot works fine.(at least think), here output
u-boot spl 2014.04 (sep 29 2015 - 21:36:09) board: cubietruck dram: 2048 mib cpu: 960000000hz, axi/ahb/apb: 3/2/2 spl: not uimage @ 1600 u-boot 2014.04 (sep 29 2015 - 21:36:09) allwinner technology cpu: allwinner a20 (sun7i) board: cubietruck i2c: ready dram: 2 gib mmc: sunxi sd/mmc: 0 *** warning - bad crc, using default environment in: serial out: serial err: serial net: dwmac.1c50000 hit key stop autoboot: 0 reading uenv.txt ** unable read file uenv.txt ** failed mount ext2 filesystem... ** unrecognized filesystem type ** failed mount ext2 filesystem... ** unrecognized filesystem type ** reading boot.scr 281 bytes read in 16 ms (16.6 kib/s) jumping boot.scr ## executing script @ 44000000 reading zimage 3446280 bytes read in 192 ms (17.1 mib/s) reading sun7i-a20-cubietruck.dtb 26288 bytes read in 30 ms (855.5 kib/s) kernel image @ 0x46000000 [ 0x000000 - 0x349608 ] ## flattened device tree blob @ 49000000 booting using fdt blob @ 0x49000000 loading device tree 4fff6000, end 4ffff6af ... ok starting kernel ...
any 1 help?
Comments
Post a Comment