|
Hello!
I try another way.
First, I restore orangepi-plus-debian-server-card-v0.9.img on SD-card, board start and I can use system via UART.
Second, I clone linux from https://github.com/orangepi-xunlong/linux-sunxi.git (commit 57644f704667b72d02a0ab7aa8e30f593d089027) and build default config:
- $ make ARCH=arm sun7i_defconfig
- $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage
Copy code
uImage I copy on SD-card, board start, but linux can't load, follow full log:
- HELLO! BOOT0 is starting!
- boot0 version : 4.0.0
- fel_flag = 0x00000000
- rtc[0] value = 0x00000000
- rtc[1] value = 0x00000000
- rtc[2] value = 0x00000000
- rtc[3] value = 0x00000000
- rtc[4] value = 0x00000000
- rtc[5] value = 0x00000000
- rtc[6] value = 0x00000000
- rtc[7] value = 0x00000000
- DRAM DRIVE INFO: V0.8
- DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
- DRAM CLK = 672 MHz
- DRAM zq value: 003b3bfb
- READ DQS LCDL = 001e1e1d
- DRAM SIZE =1024 M
- odt delay
- dram size =1024
- card boot number = 0
- card no is 0
- sdcard 0 line count 4
- [mmc]: mmc driver ver 2014-12-10 21:20:39
- [mmc]: ***Try SD card 0***
- [mmc]: SD/MMC Card: 4bit, capacity: 30028MB
- [mmc]: vendor: Man 00275048 Snr 019c0fb5
- [mmc]: product: SD32G
- [mmc]: revision: 3.0
- [mmc]: ***SD/MMC 0 init OK!!!***
- sdcard 0 init ok
- The size of uboot is 000dc000.
- sum=5f62b640
- src_sum=5f62b640
- Succeed in loading uboot from sdmmc flash.
- Ready to disable icache.
- Jump to secend Boot.
- SUNXI_NORMAL_MODE
- [ 0.347]e mode
- U-Boot 2011.09-rc1 (Apr 21 2015 - 18:23:44) Allwinner Technology
- [ 0.354]version: 1.1.0
- normal mode
- [ 0.362]pmbus: ready
- not set main pmu id
- axp_probe error
- [ 0.377]PMU: pll1 1200 Mhz,PLL6=600 Mhz
- AXI=400 Mhz,AHB=200 Mhz, APB1=100 Mhz
- sid read already
- fel key new mode
- run key detect
- no key found
- no key input
- dram_para_set start
- dram_para_set end
- normal mode
- [ 0.407]DRAM: 1 GiB
- relocation Offset is: 35af9000
- [box standby] read rtc = 0x0
- [box_start_os] mag be start_type no use
- user_gpio config
- user_gpio ok
- gic: normal or no secure os mode
- workmode = 0
- MMC: 0
- [ 0.481][mmc]: mmc driver ver 2014-12-10 9:23:00
- [ 0.486][mmc]: get sdc_phy_wipe fail.
- [ 0.490][mmc]: get sdc0 sdc_erase fail.
- [ 0.494][mmc]: get sdc_f_max fail,use default 50000000Hz
- [ 0.499][mmc]: get sdc_ex_dly_used fail,use default dly
- [ 0.505][mmc]: SUNXI SD/MMC: 0
- [ 0.518][mmc]: *Try SD card 0*
- [ 0.551][mmc]: CID 0x27504853 0x44333247 0x30019c0f 0xb500daff
- [ 0.556][mmc]: mmc clk 50000000
- [ 0.560][mmc]: SD/MMC Card: 4bit, capacity: 30028MB
- [ 0.565][mmc]: boot0 capacity: 0KB,boot1 capacity: 0KB
- [ 0.570][mmc]: ***SD/MMC 0 init OK!!!***
- [ 0.575][mmc]: erase_grp_size:0x1WrBlk * 0x200 = 0x200 Byte
- [ 0.580][mmc]: secure_feature 0x0
- [ 0.584][mmc]: secure_removal_type 0x0
- [ 0.588]sunxi flash init ok
- script config pll_de to 864 Mhz
- Not Found clk pll_video1 in script
- script config pll_video to 297 Mhz
- [boot]disp_init_tv
- [DISP_TV] disp_init_tv enter g_tv_used
- screen 0 do not support TV TYPE!
- [BOOOT_DISP_TV] disp tv device_registered
- unable to find regulator vcc-hdmi-18 from [pmu1_regu] or [pmu2_regu]
- enable power vcc-hdmi-18, ret=-1
- DRV_DISP_Init end
- boot_disp.auto_hpd=1
- auto hpd check has 100 times!
- auto check no any connected, the output_type is 4
- [disk_read_fs] no the partition
- error: open disp_rsl.fex, maybe it is not exist
- not support this mode[4], use inline mode[4]
- attched ok, mgr0<-->device0, type=4, mode=4----
- ready to set mode
- [ 1.968]finally, output_type=0x4, output_mode=0x4, screen_id=0x0, disp_par0
- fail to find part named env
- Using default environment
- In: serial
- Out: serial
- Err: serial
- --------fastboot partitions--------
- mbr not exist
- base bootcmd=run setargs_mmc boot_normal
- bootcmd set setargs_mmc
- key 0
- cant find rcvy value
- cant find fstbt value
- no misc partition is found
- to be run cmd=run setargs_mmc boot_normal
- [ 2.005][mmc]: MMC Device 2 not found
- [ 2.009][mmc]: Can not find mmc dev
- [ 2.012][mmc]: read first backup failed in fun sdmmc_secure_storage_read l9
- sunxi_secstorage_read fail
- get secure storage map err
- the private part isn't exist
- WORK_MODE_BOOT
- adver not need show
- sunxi_bmp_logo_display
- [disk_read_fs] no the partition
- error: open bootlogo.bmp, maybe it is not exist
- sunxi bmp info error : unable to open logo file bootlogo.bmp
- [ 2.045]Hit any key to stop autoboot: 0
- [ 5.507][mmc]: blkcnt should not be 0
- ## Booting kernel from Legacy Image at 40007800 ...
- Image Name: Linux-3.4.103+
- Image Type: ARM Linux Kernel Image (uncompressed)
- Data Size: 4829288 Bytes = 4.6 MiB
- Load Address: 40008000
- Entry Point: 40008000
- Verifying Checksum ... OK
- Loading Kernel Image ... OK
- OK
- [ 5.608][mmc]: MMC Device 2 not found
- [ 5.612][mmc]: mmc not find,so not exit
- [ 5.616]
- Starting kernel ...
- <6>Booting Linux on physical CPU 0
- <6>Initializing cgroup subsys cpuset
- <6>Initializing cgroup subsys cpu
- <5>Linux version 3.4.103+ (kirill@kirill) (gcc version 4.9.2 ( 4.9.2-10) ) #1 S6
- CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
- CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
- Error: unrecognized/unsupported machine ID (r1 = 0x00001029).
- Error: unrecognized/unsupported machine ID (r1 = 0x00001029).
- Available machine support:
- ID (hex) NAME
- Available machine support:
- ID (hex) NAME
- 000010bb sun7i
- 000010bb sun7i
- 0000102a sun5i
- 0000102a sun5i
- 00001008 sun4i
- 00001008 sun4i
- Please check your kernel config and/or bootloader.
- Please check your kernel config and/or bootloader.
Copy code
I check linux source and found what 0x00001029 is sun6i
- $ grep 4137 include/generated/mach-types.h
- #define MACH_TYPE_SUN6I 4137
Copy code
Why orangepi-plus-debian-server-card-v0.9.img u-boot builded for sun6i? |
|