NanoPiM1开箱测试

等了快一周了,终于那M1与那外壳一起给我寄过来了。

上午收到,开箱图就不亮了,来一上好电的图!

一同购买来的MSD卡里什么也没有,上电测试时只看到绿色的灯微微亮(这是一个BUG吗!!!!哈哈)。

所以我们要烧写系统,IMG的下载地址是:https://pan.baidu.com/s/1dF7HL0P

我下载了ubuntu和android两个ZIP包。同时也要下载相应的烧写工具。

其中HDDLLF和PhonenixCard是烧写Android必须的,win32diskmager是烧写ubuntu必须的!

按着Wiki上的步骤。

  1. 将MSD卡插到读卡器,然后再插入到USB上;
  2. 使用管理员权限运行HDDLLF,然后FORMAT,我这儿使用的标准格式化(很久,要10多分钟);
  3. 拔下来读卡器,然后再插入,WIN10会提示说格式化,这里我们格式化成FAT32的(这一步骤速度比较快);
  4. 拔下读卡器再插回去,打开PhoenixCard,然后选择盘符,选择img文件(从ZIP解压出来的),选择卡启动,最后点击烧录!(期间这里失败了N回,一度想要换一个WIN7运行或者换一个读卡器测试的,最后在我没有指望的时候居然成功了,成功了!可能是这个软件有问题,对系统或者对读卡器不怎么友好吧。
  5. 完成之后,退出然后把卡插到板上去;

这是运行界面。

然后也看了一下设备的输出信息,是这样的:

root@nanopi-h3:/data # HELLO! BOOT0 is starting!                               

boot0 version : 4.0.0

boot0 commit : 1234567891234567891234567891234567891234

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 = 00212121

DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)

DRAM CLK = 576 MHz

DRAM zq value: 003b3bfb

DRAM dram para1: 10f40400

DRAM dram para2: 00000000

DRAM workmode1: 000009f4

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 2015-04-13 16:07:39

[mmc]: ***Try SD card 0***

[mmc]: SD/MMC Card: 4bit, capacity: 7680MB

[mmc]: vendor: Man 00125678 Snr 0000001c

[mmc]: product: ASTC[mmc]: revision: 3.4

[mmc]: ***SD/MMC 0 init OK!!!***

sdcard 0 init ok

ERROR! NOT find the head of uboot.

The size of uboot is 000e4000.

sum=114e20d1

src_sum=114e20d1

Succeed in loading uboot from sdmmc flash.

Ready to disable icache.

Jump to secend Boot.

SUNXI_NORMAL_MODE   

[      0.388]e mode

U-Boot 2011.09-rc1 (Jan 21 2017 - 10:11:37) Allwinner Technology 

[      0.395]version: 1.1.0

[      0.398]uboot commit : 1234567891234567891234567891234567891234

normal mode

[      0.409]pmbus:   ready

not set main pmu id

axp_probe error

gpio value=0x20000

[      0.447]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.478]DRAM:  1 GiB

relocation Offset is: 35af2000

[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.557][mmc]: mmc driver ver 2015-04-13 14:50:00

[      0.562][mmc]: get sdc_phy_wipe fail.

[      0.566][mmc]: get sdc0 sdc_erase fail.

[      0.570][mmc]: get sdc_f_max fail,use default 50000000Hz

[      0.575][mmc]: get sdc_ex_dly_used fail,use default dly

[      0.581][mmc]: SUNXI SD/MMC: 0

[      0.594][mmc]: *Try SD card 0*

[      0.627][mmc]: CID 0x12567841 0x53544300 0x34000000 0x1c011213

[      0.632][mmc]: mmc clk 50000000

[      0.636][mmc]: SD/MMC Card: 4bit, capacity: 7680MB

[      0.641][mmc]: boot0 capacity: 0KB,boot1 capacity: 0KB

[      0.646][mmc]: ***SD/MMC 0 init OK!!!***

[      0.651][mmc]: erase_grp_size:0x1WrBlk * 0x200 = 0x200 Byte

[      0.657][mmc]: secure_feature 0x0

[      0.660][mmc]: secure_removal_type  0x0

[      0.664]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

unable to find regulator vcc-hdmi-18 from [pmu1_regu] or [pmu2_regu] 

enable power vcc-hdmi-18, ret=-1

DRV_DISP_Init end

error: open tv_vdid.fex, maybe it is not exist

error: open disp_rsl.fex, maybe it is not exist

error: open disp_rsl.fex, maybe it is not exist

boot_disp.auto_hpd=1

auto hpd check has 0 times!

attched ok, mgr0<-->device0, type=4, mode=4----

ready to set mode

[      1.556]finally, output_type=0x4, output_mode=0x4, screen_id=0x0, disp_para=0x404

In:    serial

Out:   serial

Err:   serial

--------fastboot partitions--------

-total partitions:14-

-name-        -start-       -size-      

bootloader  : 1000000       1000000     

env         : 2000000       1000000     

boot        : 3000000       1000000     

system      : 4000000       30000000    

misc        : 34000000      1000000     

recovery    : 35000000      2000000     

sysrecovery : 37000000      30000000    

private     : 67000000      1000000     

Reserve0    : 68000000      1000000     

klog        : 69000000      1000000     

Reserve1    : 6a000000      2000000     

Reserve2    : 6c000000      1000000     

cache       : 6d000000      28000000    

UDISK       : 95000000      0           

-----------------------------------

base bootcmd=run setargs_nand boot_normal

bootcmd set setargs_mmc

key 0

cant find rcvy value

cant find fstbt value

misc partition found

to be run cmd=run setargs_mmc boot_normal

[      1.655][mmc]: MMC Device 2 not found

[      1.659][mmc]: Can not find mmc dev

[      1.662][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 user data'magic is bad

WORK_MODE_BOOT

adver not need show

sunxi_bmp_logo_display

** Unable to read "bootlogo.bmp" from mmc 0:1 **

sunxi bmp info error : unable to open logo file bootlogo.bmp

[      1.700]Hit any key to stop autoboot:  0 

** Unable to read "script.bin" from mmc 0:2 **

read boot or recovery all

[      3.349]sunxi flash read :offset 3000000, 13083871 bytes OK

[      3.358]ready to boot

board_display_setenv:  disp_para=404 init_disp=20b0404 tv_vdid=0

[      3.366][mmc]: MMC Device 2 not found

[      3.370][mmc]:  mmc  not find,so not exit

[      3.374]

Starting kernel ...

[sun8i_fixup]: From boot, get meminfo:

        Start:  0x40000000

        Size:   1024MB

ion_carveout reserve: 160m@0 300m@0 130m@1 200m@1

ion_reserve_select: ion chipid  [0x2c00081!

ion_reserve_common: ion reserve: [0x4d400000, 0x60000000]!

<6[    0.920544] ls_fetch_sysconfig_para: ls_unused. 

[    0.925952] [RTC] WARNING: Rtc time will be wrong!!

[    0.931447] [RTC] WARNING: use *internal OSC* as clock source

[    0.938428] tscdev_init: tsc driver is disabled

[    0.945243] [cpu_freq] ERR:get cpu extremity frequency from sysconfig failed, use max_freq

[    0.958221] no red_led, ignore it!

[    0.965364] sunxi_oops: heming add OOPS_INFO_ADDR = -20

[    1.501888] ths_fetch_sysconfig_para: type err  device_used = 1. 

[    1.515425] init: init proc start

[    1.574033] init: open path: /dev/bus/usb/001/001

[    1.721125] init: open path: /dev/bus/usb/002/001

[    1.742015] init: start e2fsck listening...

[    1.871101] init: open path: /dev/bus/usb/003/001

[    2.030976] init: open path: /dev/bus/usb/004/001

[    2.182833] init: open path: /dev/bus/usb/005/001

[    2.370982] init: open path: /dev/bus/usb/006/001

[    2.520945] init: open path: /dev/bus/usb/007/001

[    2.680958] init: open path: /dev/bus/usb/008/001

[    3.746718] init: C_IN_START

[    3.749779] init: path = /dev/block/by-name/cache

[    4.684496] init: defined DONT_SHOW_INITLOGO

[    4.689803] init: /sys/class/switch/cvbs/state is not exist

[    4.692522] init: dont need format /dev/block/by-name/private

[    4.702361] init: The device is not low memory 1002

[    4.755242] init: C_IN_START

[    4.758474] init: path = /dev/block/by-name/UDISK

[    5.102049] this module is used not!

[    5.193580] init: get_disp_policy: 1 for modify configs.

[    5.209403] init: single_display_policy exit@@@@@@

[    5.223226] Bluetooth: init no bt used in configuration

[    5.223230] 

[    5.231065] init: untracked pid 102 exited

[    5.242650] healthd: Could not open /sys/class/power_supply

[    5.244564] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'

[    5.258183] healthd: No charger supplies found

[    5.321818] android_usb: already disabled

[    5.326562] init: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead

[    5.337769] init: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead

root@nanopi-h3:/ # [   22.367490] WRN:L148(drivers/usb/sunxi_usb/manager/usb_hcd_servers.c):ERR: unkown usbc_no(5)

[   25.594917] init: sys_prop: permission denied uid:1003  name:service.bootanim.exit

[   26.819004] [SPDIF]sunxi-spdif cannot find any using configuration for controllers, return directly!

[   26.864199] [SPDIF]sndspdif cannot find any using configuration for controllers, return directly!

[   30.795606] WRN:L88(drivers/usb/sunxi_usb/manager/usb_hcd_servers.c):ERR: unkown usbc_no(5)

上面是别人已经编译好了的IMG文件。

前几天我已经在自己的电脑上成功编译了UBOOT和Linux了,Linux我还没有下载下去,不过UBOOT我下载测试了。

从百度网盘上下载源码。

先格式化一下,然后写到卡上去。

串口输出信息(说明已经下载成功并运行起来了):

`HELLO! BOOT0 is starting!

boot0 version : 4.0.0

boot0 commit : 1234567891234567891234567891234567891234

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 = 00212122

DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)

DRAM CLK = 576 MHz

DRAM zq value: 003b3bfb

DRAM dram para1: 10f40400

DRAM dram para2: 00000000

DRAM workmode1: 000009f4

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 2015-04-13 16:07:39

[mmc]: ***Try SD card 0***

[mmc]: SD/MMC Card: 4bit, capacity: 7388MB

[mmc]: vendor: Man 0002544d Snr 148778f1

[mmc]: product: SA08G

[mmc]: revision: 1.4

[mmc]: ***SD/MMC 0 init OK!!!***

sdcard 0 init ok

The size of uboot is 000e4000.

sum=235021d7

src_sum=235021d7

Succeed in loading uboot from sdmmc flash.

Ready to disable icache.

Jump to secend Boot.

SUNXI_NORMAL_MODE   

[      0.402]e mode

U-Boot 2011.09-rc1 (May 17 2017 - 16:08:24) Allwinner Technology 

[      0.410]version: 1.1.0

[      0.412]uboot commit : 1234567891234567891234567891234567891234

normal mode

[      0.423]pmbus:   ready

not set main pmu id

axp_probe error

gpio value=0x20000

[      0.461]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.492]DRAM:  1 GiB

relocation Offset is: 35af2000

[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.571][mmc]: mmc driver ver 2015-04-13 14:50:00

[      0.576][mmc]: get sdc_phy_wipe fail.

[      0.580][mmc]: get sdc0 sdc_erase fail.

[      0.584][mmc]: get sdc_f_max fail,use default 50000000Hz

[      0.589][mmc]: get sdc_ex_dly_used fail,use default dly

[      0.595][mmc]: SUNXI SD/MMC: 0

[      0.608][mmc]: *Try SD card 0*

[      0.641][mmc]: CID 0x2544d53 0x41303847 0x14148778 0xf100f1af

[      0.646][mmc]: mmc clk 50000000

[      0.650][mmc]: SD/MMC Card: 4bit, capacity: 7388MB

[      0.654][mmc]: boot0 capacity: 0KB,boot1 capacity: 0KB

[      0.660][mmc]: ***SD/MMC 0 init OK!!!***

[      0.665][mmc]: erase_grp_size:0x1WrBlk * 0x200 = 0x200 Byte

[      0.670][mmc]: secure_feature 0x0

[      0.674][mmc]: secure_removal_type  0x0

[      0.678]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

unable to find regulator vcc-hdmi-18 from [pmu1_regu] or [pmu2_regu] 

enable power vcc-hdmi-18, ret=-1

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

[      2.052]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

[      2.100][mmc]: MMC Device 2 not found

[      2.104][mmc]: Can not find mmc dev

[      2.108][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

** Unable to read "bootlogo.bmp" from mmc 0:1 **

sunxi bmp info error : unable to open logo file bootlogo.bmp

[      2.143]Hit any key to stop autoboot:  0 

** Unable to read "boot.img" from mmc 0:1 **

boota: bad boot image magic, maybe not a boot.img?

sunxi#

原文地址:https://www.cnblogs.com/tfanalysis/p/6873258.html