Page 1 of 1

Kernel build of SD card not bootking.

Posted: Thu Jul 13, 2017 11:04 pm
by dmorse
I've tried to build a kernel for my NanoPi Air, using the instructions here: http://wiki.friendlyarm.com/wiki/index. ... nux_Kernel but when I try to boot the DS card it gets tuck at the "starting kernel" line. Here is the full output

Code: Select all

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
boot0 commit : 75b584e2502450b1e8d2f98ac16fb2410cf8c30a

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: V1.3
the chip id is 0x00000081
the chip id is 0x00000081
the chip id is 0x00000081
the chip id is 0x00000081
the chip id is 0x00000081
READ DQS LCDL = 002f2f30
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 432 MHz
DRAM zq value: 003b3bfb
DRAM dram para1: 10f20200
DRAM dram para2: 00000001
DRAM workmode1: 000009f4
DRAM SIZE =512 M
odt delay
dram size =512
card boot number = 0
card no is 0
sdcard 0 line count 4
[mmc]: mmc driver ver 2015-04-13 16:07:39
[mmc]: ***Try SD card 0***
[mmc]: SD/MMC Card: 4bit, capacity: 15193MB
[mmc]: vendor: Man 00035344 Snr 0005b9d6
[mmc]: product: SS16G
[mmc]: revision: 8.0
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000e4000.
sum=124fc478
src_sum=124fc478
Succeed in loading uboot from sdmmc flash.
Ready to disable icache.
Jump to secend Boot.
SUNXI_NORMAL_MODE
[      0.419]e mode

U-Boot 2011.09-rc1-00000-g75b584e-dirty (Jul 13 2017 - 17:17:23) Allwinner Technology

[      0.428]version: 1.1.0
[      0.431]uboot commit : 75b584e2502450b1e8d2f98ac16fb2410cf8c30a

normal mode
[      0.441]pmbus:   ready
not set main pmu id
axp_probe error
gpio value=0x20000
[      0.479]PMU: pll1 1008 Mhz,PLL6=600 Mhz
AXI=336 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.510]DRAM:  512 MiB
relocation Offset is: 15af2000
[recovery] no use
[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.572][mmc]: mmc driver ver 2015-04-13 14:50:00
[      0.577][mmc]: get sdc_phy_wipe fail.
[      0.581][mmc]: get sdc0 sdc_erase fail.
[      0.585][mmc]: get sdc_f_max fail,use default 50000000Hz
[      0.590][mmc]: get sdc_ex_dly_used fail,use default dly
[      0.596][mmc]: SUNXI SD/MMC: 0
[      0.609][mmc]: *Try SD card 0*
[      0.656][mmc]: CID 0x3534453 0x53313647 0x800005b9 0xd600f4b9
[      0.661][mmc]: mmc clk 50000000
[      0.665][mmc]: SD/MMC Card: 4bit, capacity: 15193MB
[      0.670][mmc]: boot0 capacity: 0KB,boot1 capacity: 0KB
[      0.675][mmc]: ***SD/MMC 0 init OK!!!***
[      0.679][mmc]: erase_grp_size:0x1WrBlk * 0x200 = 0x200 Byte
[      0.685][mmc]: secure_feature 0x0
[      0.688][mmc]: secure_removal_type  0x0
[      0.692]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
script config pll_periph0 to 600 Mhz
DRV_DISP_Init end
[disk_read_fs] no the partition
error: open tv_vdid.fex, maybe it is not exist
[disk_read_fs] no the partition
error: open disp_rsl.fex, maybe it is not exist
[disk_read_fs] no the partition
error: open disp_rsl.fex, maybe it is not exist
boot_disp.auto_hpd=1
auto hpd check has 100 times!
auto check no any connected, the output_type is 4
[      1.843]finally, output_type=0x4, output_mode=0x4, screen_id=0x0, disp_para=0x0
try to read logic blk 0 without env partition
*** Warning - bad CRC, 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
[      1.891][mmc]: MMC Device 2 not found
[      1.895][mmc]: Can not find mmc dev
[      1.898][mmc]: read first backup failed in fun sdmmc_secure_storage_read line 1854
sunxi_secstorage_read fail
get secure storage map err
check user data form private
the private part isn't exist
WORK_MODE_BOOT
adver not need show
sunxi_bmp_logo_display
[      2.004]screen_id =0, screen_width =0, screen_height =0
[      2.009]frame buffer address 46400036
[      2.013]Hit any key to stop autoboot:  0
[      3.685]ready to boot
board_display_setenv:  disp_para=0 init_disp=20b0404 tv_vdid=0
[      3.693][mmc]: MMC Device 2 not found
[      3.697][mmc]:  mmc  not find,so not exit
[      3.701]
Starting kernel ...



That is coming out of UART0 on the nanopi and I have these values set in my .config file

Code: Select all

CONFIG_DEBUG_LL=y
CONFIG_DEBUG_SUNXI_UART0=y
CONFIG_EARLY_PRINTK=y



So, I would have thought that I would have got some logging from my kernel, but nothing. Any ideas what can cause this?