Open chifen opened 7 years ago
bootm 0x42000000
Image Name: Linux-3.4.104 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4437656 Bytes = 4.2 MiB Load Address: 40008000 Entry Point: 40008000
Verifying Checksum ... OK Loading Kernel Image ... OK
Starting kernel ...
<6>Booting Linux on physical CPU 0 <6>Initializing cgroup subsys cpuset <5>Linux version 3.4.104 (zp@ubuntu64) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) ) #29 PREEMPT Mon Sep 26 18:47:40 CST 2016 CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: sun5i <6>Memory Reserved: <6> SYS : 0x43000000 - 0x4300ffff ( 64 kB) <6> VE : 0x44000000 - 0x48ff ffff ( 80 MB) <6> LCD : 0x49000000 - 0x4affffff ( 32 MB) Memory policy: ECC disabled, Data cache writeback <6>sunxi: Allwinner A13 revision B (AW1625/sun5i) detected. <7>On node 0 totalpages: 131072 <7>free_area_init_node: node 0, pgdat c09153b0, node_mem_map d0000000 <7> DMA zone: 512 pages used for memmap <7> DMA zone: 0 pages reserved <7> DMA zone: 65024 pages, LIFO batch:15 <7> Normal zone: 512 pages used for memmap <7> Normal zone: 65024 pages, LIFO batch:15 <7>pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootefi - Boots an EFI payload from memory bootelf - Boot from an ELF image in memory bootm - boot application image from memory bootp - boot image via network using BOOTP/TFTP protocol bootvx - Boot vxWorks from an ELF image bootz - boot Linux zImage image from memory clrlogo - fill the boot logo area with black cmp - memory compare coninfo - print console devices and information cp - memory copy crc32 - checksum calculation dcache - enable or disable data cache dfu - Device Firmware Upgrade dhcp - boot image via network using DHCP/TFTP protocol dm - Driver model low level access echo - echo args to console editenv - edit environment variable env - environment handling commands exit - exit script ext2load- load binary file from a Ext2 filesystem ext2ls - list files in a directory (default /) ext4load- load binary file from a Ext4 filesystem ext4ls - list files in a directory (default /) ext4size- determine a file's size false - do nothing, unsuccessfully fastboot- use USB Fastboot protocol fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) fatsize - determine a file's size fatwrite- write file into a dos filesystem fdt - flattened device tree utility commands fstype - Look up a filesystem type go - start application at address 'addr' gpio - query and control gpio pins help - print command description/usage i2c - I2C sub-system icache - enable or disable instruction cache iminfo - print header information for application image imxtract- extract a part of a multi-image itest - return true/false on integer compare load - load binary file from a filesystem loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loadx - load binary file over serial line (xmodem mode) loady - load binary file over serial line (ymodem mode) loop - infinite loop on address range ls - list files in a directory (default /) md - memory display meminfo - display memory information mii - MII utility commands mm - memory modify (auto-incrementing address) mmc - MMC sub system mmcinfo - display MMC info mtest - simple RAM read/write test mw - memory write (fill) nfs - boot image via network using NFS protocol nm - memory modify (constant address) part - disk partition related commands ping - send ICMP ECHO_REQUEST to network host poweroff- Perform POWEROFF of the device printenv- print environment variables pxe - commands to get and boot from pxe files reset - Perform RESET of the CPU run - run commands in an environment variable save - save file to a filesystem saveenv - save environment variables to persistent storage setenv - set environment variables setexpr - set environment variable as the result of eval expression showvar - print local hushshell variables size - determine a file's size sleep - delay execution for some time source - run script from memory sysboot - command to get and boot from syslinux files test - minimal test like /bin/sh tftpboot- boot image via network using TFTP protocol true - do nothing, successfully ums - Use the UMS [USB Mass Storage] usb - USB sub-system usbboot - boot from USB device version - print monitor, compiler and linker version
最后怎么处理的 ?我的情况跟你一样
解决方法 setenv bootm_boot_mode sec setenv bootargs console=tty1,115200 root=/dev/mmcblk0p2 rootwait panic=10 load mmc 0:1 0x43000000 script.bin || load mmc 0:1 0x43000000 boot/script.bin load mmc 0:1 0x42000000 uImage || load mmc 0:1 0x42000000 boot/uImage bootm 0x42000000
原始 BOOT.CMD文件的最后一个把后面不可见的字符删除
U-Boot SPL 2016.09-rc1 (Oct 01 2016 - 21:31:35) init i2c
rand test 0 MB RW, err cnt = 0 DRAM: 512 MiB ~ CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2 sunxi_board_init ok! Trying to boot from MMC1 mmc_dev=0 common/spl/spl_mmc.c L138: mmc_initialize ok common/spl/spl_mmc.c L155: find_mmc_device ok
part_init: try 'EFI': ret=-1 err=0 mmc_init: 0, time 95 common/spl/spl_mmc.c L298: mmc_init ok common/spl/spl_mmc.c L335: goto mmc_load_image_raw_sector hdr read sector 50, count=1 load_legacy
read 906 sectors to 49ffffc0 Jumping to U-Boot SPL malloc() used 656 bytes (0 KB) loaded - jumping to U-Boot... image entry point: 0x
in board_init_f
U-Boot 2016.09-rc1 (Oct 01 2016 - 21:31:35 +0800) Allwinner Technology
CPU: Allwinner A13 (SUN5I) Model: Lichee A13 I2C: ready DRAM: 512 MiB
out board_init_f
in board_init_r
MMC:
part_init: try 'EFI': ret=-1 part_init: try 'DOS': ret=0 err=0 mmc_init: 0, time 104 *\ Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
set hbp=110, ht=1080, hspw=10
set vbp=45, vt=527, vspw=10
bl_en=42
pwm=34 In: serial Out: vga Err: vga Net: No ethernet found. common/main.c L54 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 2 USB Device(s) found common/main.c L63: s=run distro_bootcmd
common/main.c L67: prepare autoboot_command Hit any key to stop autoboot: 1 0
part_init: try 'EFI': ret=-1 part_init: try 'DOS': ret=0 err=0 mmc_init: 0, time 122 switch to partitions #0, OK mmc0 is current device
Scanning mmc 0:1... Found U-Boot script /boot.scr reading /boot.scr 343 bytes read in 20 ms (16.6 KiB/s)
Executing script at 43100000
reading script.bin
28744 bytes read in 31 ms (905.3 KiB/s) reading uImage
4437720 bytes read in 312 ms (13.6 MiB/s) bootm - boot application image from memory
Usage: bootm [addr [arg ...]]
Sub-commands to do part of the bootm sequence. The sub-commands must be issued in the order below (it's ok to not issue all sub-commands): start [addr [arg ...]] loados - load OS image ramdisk - relocate initrd, set env initrd_start/initrd_end fdt - relocate flat device tree cmdline - OS specific command line processing/setup bdt - OS specific bd_t processing prep - OS specific prep before relocation or go go - start OS
SCRIPT FAILED: continuing...
Card did not respond to voltage select! mmc_init: -17, time 28
USB device 0: unknown device No ethernet found. missing environment variable: pxeuuid missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/000000 No ethernet found. missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/00 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0
No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-sunxi No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default No ethernet found. Config file not found No ethernet found. No ethernet found.
=>
串口代码
操作: 写入 1,格式化为 第一分区 FAT,16M, 开始为2048,第二分区为EXT3或者EXT4文件系统, 2, sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 sudo sync
3, uImage,script.bin,boot.scr 三个文件写入 第一分区,(试过好几种方法写入,分区大小16M ,FAT格式)
4, 第二分区境像写根目录