Skip to content

镜像烧写完 不能进入系统  #16

@chifen

Description

@chifen

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 ...]]
- boot application image stored in memory
passing arguments 'arg ...'; when booting a Linux kernel,
'arg' can be the address of an initrd image
When booting a Linux kernel which requires a flat device-tree
a third argument is required which is the address of the
device-tree blob. To boot that kernel without an initrd image,
use a '-' for the second argument. If you do not pass a third
a bd_info struct will be
passed instead

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,
第二分区境像写根目录

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions