apritzel / pine64

Pine64 Linux images and information
119 stars 28 forks source link

Failed to boot with the pine64_linux-20160121.img.xz image #8

Closed zhouer closed 8 years ago

zhouer commented 8 years ago

Hi, I tried to boot my Pine64+ 2GB with your pine64_linux-20160121.img.xz image (MD5 sum: f6d2914894a62d08a16c95495248702e) I have the UART0 connected and can see the debug message and U-Boot prompt time out. However, it stops forever after showing "Starting kernel ..." and two INFO logs. I think the expected result should be a Debian installer. The complete log is attached, do you have any idea? Thanks!

HELLO! BOOT0 is starting!
boot0 commit : 045061a8bb2580cb3fa02e301f52a015040c158f

boot0 version : 4.0.0
set pll start
set pll end
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
DRAM driver version: V1.1
rsb_send_initseq: rsb clk 400Khz -> 3Mhz
PMU: AXP81X
ddr voltage = 1500 mv
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM clk = 672 MHz
DRAM zq value: 003b3bbb
DRAM single rank full DQ OK
DRAM size = 2048 MB
DRAM init ok
dram size =2048
card boot number = 0, boot0 copy = 0
card no is 0
sdcard 0 line count 4
[mmc]: mmc driver ver 2015-05-08 20:06
[mmc]: sdc0 spd mode error, 2
[mmc]: Wrong media type 0x00000000
[mmc]: ***Try SD card 0***
[mmc]: HSSDR52/SDR25 4 bit
[mmc]: 50000000 Hz
[mmc]: 30436 MB
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000fc000.
sum=a3d52686
src_sum=a3d52686
Succeed in loading uboot from sdmmc flash.
boot0: start load other image
boot0: Loading BL3-1
Loading file 0 at address 0x40000000,size 0x0000b400 success
boot0: Loading scp
Loading file 2 at address 0x00040000,size 0x00019c00 success
set arisc reset to de-assert state
Ready to disable icache.
%9=▒NOTICE:  BL3-1: v1.0(debug):045061a
NOTICE:  BL3-1: Built : 14:30:28, Dec  3 2015
NOTICE:  BL3-1 commit: 045061a8bb2580cb3fa02e301f52a015040c158f

INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x4a000000
INFO:    BL3-1: Next image spsr = 0x1d3

U-Boot 2014.07 (Dec 03 2015 - 14:30:33) Allwinner Technology

uboot commit : 045061a8bb2580cb3fa02e301f52a015040c158f

rsb: secure monitor exist
[      0.387]pmbus:   ready
[      0.390][ARISC] :arisc initialize
[      0.720][ARISC] :arisc_dvfs_cfg_vf_table: support only one vf_table
[SCP] :sunxi-arisc driver begin startup 2
[SCP] :arisc_para size:1a8
[SCP] :arisc version: [v0.1.76]
[SCP] :sunxi-arisc driver v1.10 is starting
[      0.848][ARISC] :sunxi-arisc driver startup succeeded
[      0.881]PMU: AXP81X
[      0.883]PMU: read AXP81X 84H=0xf2
[      0.887]PMU: write AXP81X 84H=0xf6
[      0.890]PMU: AXP81X found
bat_vol=264, ratio=100
[      0.897]PMU: dcdc2 1100
[      0.900]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz AHB2=300Mhz MBus=400Mhz
device_type = 3253, onoff=1
dcdc1_vol = 3300, onoff=1
dcdc2_vol = 1100, onoff=1
dcdc6_vol = 1100, onoff=1
aldo1_vol = 2800, onoff=0
aldo2_vol = 1800, onoff=1
aldo3_vol = 3000, onoff=1
dldo1_vol = 3300, onoff=0
dldo2_vol = 3300, onoff=0
dldo3_vol = 2800, onoff=0
dldo4_vol = 3300, onoff=1
eldo1_vol = 1800, onoff=1
eldo2_vol = 1800, onoff=0
eldo3_vol = 1800, onoff=0
fldo1_vol = 1200, onoff=0
fldo2_vol = 1100, onoff=1
gpio0_vol = 3100, onoff=0
vbus exist
no battery, limit to dc
run key detect
no key found
no uart input
DRAM:  2 GiB
fdt addr: 0xb6eb70e0
Relocation Offset is: 75f09000
In:    serial
Out:   serial
Err:   serial
gic: sec monitor mode
[      1.710]start
drv_disp_init
init_clocks: finish init_clocks.
enable power vcc-hdmi-33, ret=0
drv_disp_init finish
boot_disp.output_disp=0
boot_disp.output_type=1
boot_disp.output_type=4
fetch script data boot_disp.auto_hpd fail
disp0 device type(1) enable
[      2.041]end
workmode = 0,storage type = 1
[      2.045]MMC:        0
[mmc]: mmc driver ver 2015-07-29 14:10:00
SUNXI SD/MMC: 0
[mmc]: start mmc_calibrate_delay_unit, don't access device...
[mmc]: delay chain cal done, sample: 192(ps)
[mmc]: media type 0x0
[mmc]: Wrong media type 0x0
[mmc]: ************Try SD card 0************
[mmc]: host caps: 0x27
[mmc]: MID 03 PSN 736c4384
[mmc]: PNM SE32G -- 0x53-45-33-32-47
[mmc]: PRV 8.0
[mmc]: MDT m-5 y-2016
[mmc]: speed mode     : HSSDR52/SDR25
[mmc]: clock          : 50000000 Hz
[mmc]: bus_width      : 4 bit
[mmc]: user capacity  : 30436 MB
[mmc]: ************SD/MMC 0 init OK!!!************
[mmc]: erase_grp_size      : 0x1WrBlk*0x200=0x200 Byte
[mmc]: secure_feature      : 0x0
[mmc]: secure_removal_type : 0x0
[      2.267]sunxi flash init ok
*** Warning - bad CRC, using default environment

--------fastboot partitions--------
-total partitions:8-
-name-        -start-       -size-
dtb         : 100000        10000
altdtb      : 200000        10000
bpart       : 1000000       6400000
env         : 7500000       100000
boot        : 7700000       1000000
shell       : 8800000       2000000
debug       : a900000       1000000
mainline    : ba00000       2000000
-----------------------------------
base bootcmd=run setargs_nand boot_normal
bootcmd set setargs_mmc
key 0
recovery key high 12, low 10
fastboot key high 6, low 4
no misc partition is found
to be run cmd=run setargs_mmc boot_normal
update dtb dram start
update dtb dram  end
serial is: 5400519008086407078b
no battery exist
sunxi_bmp_logo_display
** Unrecognized filesystem type **
sunxi bmp info error : unable to open logo file bootlogo.bmp
[      2.584]inter uboot shell
Hit any key to stop autoboot:  0
[      5.740]sunxi flash read :offset 7500000, 1048576 bytes OK
## Info: input data size = 477 = 0x1DD
[      5.758]sunxi flash read :offset 100000, 65536 bytes OK
[      7.200]sunxi flash read :offset 8800000, 33554432 bytes OK
Android's image name: Pine64
Kernel load addr 0x41080000 size 11747 KiB
RAM disk load addr 0x42000000 size 4331 KiB
WARNING: could not set bootargs FDT_ERR_NOSPACE.
fdt_initrd: FDT_ERR_NOSPACE
[      7.485]ready to boot
prepare for kernel
[mmc]: MMC Device 2 not found
[mmc]: mmc 2 not find, so not exit

Starting kernel ...

INFO:    BL3-1: Next image address = 0x41080000
INFO:    BL3-1: Next image spsr = 0x3c5
apritzel commented 8 years ago

That's interesting, because it worked for me. Did you change anything? Like added a more elaborate command line? The culprit is obviously here: WARNING: could not set bootargs FDT_ERR_NOSPACE. fdt_initrd: FDT_ERR_NOSPACE I don't remember whether I just forgot the "fdt resize" command or if this isn't sufficient anymore. Anyway I won't fix that old image anymore. If you need something quickly, you could try to use the latest firmware image and add either that old kernel or build a new one and just borrow the initrd.

zhouer commented 8 years ago

Thanks for your response.

I wanted to build the 4.4 kernel from the apritzel/linux a64-v4 and a64-v5, but had no idea how to configure the kerenl when 'make oldconfig' (I did 'make defconfig', however there are still lots of questions to answer). So I tried to boot your image and wanted to retrieve the kernel config.

Could you please show me how to use the latest firmware image and where to get the old kernel (I presume you mean the 4.4 kernel, I can build longsleep's latest 3.10.101 kernel)? or even better how to build a new one?

zhouer commented 8 years ago

Hi Andre, I successfully boot your latest firmware image (pine64_firmware-20160601.img.xz) with your latest kernel a64-v5 branch 02ac84a51069b8e110fce986552975ac41d2a033 and Arch Linux rootfs https://archlinuxarm.org/platforms/armv8/generic Thanks a lot!