sharevdi X1进入FEL BOOT

HELLO! BOOT0 is starting!
boot0 version : 2.0.0�
read dram para.
dram driver version: 1.15
dram size =256MB
0xffbffbff
super_standby_flag = 0
Succeed in opening nand flash.
block from 2 to 6
deal block 2
Succeed in reading Boot1 file head.
The size of Boot1 is 0x00068000.
The file stored in 0x00000000 of block 2 is perfect.
Check is correct.
Ready to disable icache.
Succeed in loading Boot1.
Jump to Boot1.
[       0.161] boot1 version : 2.0.0
[       0.161] pmu type = 3
[       0.263] bat vol = 0 mv
[       0.276] axi:ahb:apb=4:2:2
[       0.276] set dcdc2=1400mv, clock=912M successed
[       0.278] key
[       1.501] you can release the key to update now
[       1.501] key found, jump to fel



hand-pc sunxi-tools # ./sunxi-fel version
AWUSBFEX soc=00001651(A20) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000
hand-pc sunxi-tools # lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 013: ID 17ef:6019 Lenovo
Bus 003 Device 015: ID 1f3a:efe8  
Bus 003 Device 005: ID 05e3:0718 Genesys Logic, Inc. IDE/SATA Adapter
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



git clone -b next git://git.denx.de/u-boot-sunxi.git
cd u-boot-sunxi


grep sunxi boards.cfg | awk '{print $7}'


make CROSS_COMPILE=arm-linux-gnueabihf- Cubietruck_defconfig


64位ubuntu sys/cdefs.h找不到:

安装 libc6-dev-i386


http://linux-sunxi.org/Linux_Kernel#Compilation

编译新内核:

 make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules


apt-get install uboot-mkimage  (mkimage" command not found )

apt-get install u-boot-tools

sunxi-fel uboot u-boot-sunxi-with-spl.bin


进入recovery mode:

下载usb boot:  http://dl.cubieboard.org/software/a20-cubietruck/common/usbboot-fel.tar.gz

修改vga输出:

./bin2fex script.bin 1.fex

vim 1.fex

[disp_init]
disp_init_enable = 1
disp_mode = 0
 
screen0_output_type = 4
screen0_output_mode = 4
 
screen1_output_type = 2
screen1_output_mode = 14
 
fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 1
 
fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 1

./fex2bin 1.fex script.bin


boot:

./usb-boot ./u-boot-spl.bin ./u-boot.bin ./uImage ./script.bin ./initramfs.img

你可能感兴趣的:(sharevdi X1进入FEL BOOT)