您尚未登录。

楼主 # 2022-11-18 10:36:22

视觉℡
会员
注册时间: 2019-01-29
已发帖子: 36
积分: 18
个人网站

F1C100S使用Tina改SPI NOR运行到Starting kernel..停止

运行日志:
[0]HELLO! BOOT0 is starting!
[2]boot0 commit : 80628dcde5dc4ecdc757a9e782c58d7cf1abf959

[60]dram size =32
[62]Reg pull reg_val=0x00000000,read=0x00000010
[66]Succeed in reading toc file head.
[69]The size of toc is 00054000.
[127]Reg pull reg_val=0x00000000,read=0x00000010
[136]Ready to disable icache.
[138]Jump to secend Boot.


U-Boot 2014.07 (Jul 31 2018 - 14:59:26) Allwinner Technology

uboot commit : 6604446f7bddb8fe53f2b993100929f92a5f4d6e

i2c_init: by cpux
[I2C-DEBUG]:i2c_set_clock() 354
[I2C-ERROR]:twi_send_clk_9pulse() 136 SDA is still Stuck Low, failed.
i2c_init ok
[0.187]pmbus:   ready
axp: get node[/soc/pmu0] error
axp_probe error
[0.193]PMU: cpux 408 Mhz,AXI=408 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz
key value = 4294967295, fel_key = [256,426]
DRAM:  32 MiB
Relocation Offset is: 01581000
axp: get node[/soc/pmu0] error
int sunxi_dma_init---
irq enable
workmode = 0,storage type = 3
[0.260]spinor:   0
flash size =0x8000 sectors
sunxi spinor is initing...int sunxi_dma_init---
irq enable
sunxi_dma_install_int ok
sunxi_dma_install_int ok
OK
spinor id:0x1840ef
spi_freq = 40000000
[0.278]sunxi flash init ok
spinor read: start 0x3e0, sector 0x20
used mbr [0], count = 8
spinor read: start 0x800, sector 0x200
env size is 256
env partition is too small!
can't enabled backup env functions
logo addr = 0x81f00000
spinor read: start 0x400, sector 0x400
sunxi_read_bootlogo: read bootlogo partition successful
do not find fastboot status flag
--------fastboot partitions--------
-total partitions:8-
-name-        -start-       -size-
bootlogo    : 4000          80000
env         : 84000         20000
boot        : a4000         300000
rootfs      : 3a4000        a00000
rootfs_data : da4000        80000
misc        : e24000        10000
private     : e34000        10000
UDISK       : e44000        0
-----------------------------------
spinor read: start 0x7500, sector 0x4
disable nand error: FDT_ERR_BADPATH
disable nand error: FDT_ERR_BADPATH
## error: update_fdt_dram_para : FDT_ERR_NOTFOUND
PowerBus = 0( 2:vBus 3:acBus other: not exist)
no battery exist
sunxi_bmp_logo_display
Hit any key to stop autoboot:  0
spinor read: start 0x900, sector 0x40
spinor read: start 0x940, sector 0x13e1
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   ARM OpenWrt Linux-3.10.65
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2638096 Bytes = 2.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
   XIP Kernel Image ... OK
   reserving fdt memory region: addr=81000000 size=10000
   Using Device Tree in place at 81000000, end 8100f29f

Starting kernel ...

板子用的是荔枝派
修改教程是根据根据https://bbs.aw-ol.com/topic/1701/tina-linux-%E5%AD%98%E5%82%A8%E4%BB%8B%E8%B4%A8%E5%88%87%E6%8D%A2-emmc-spi-nand-spi-nor-sd-card-sd-nand/4?_=1668580535100

我修改串口配置了
sys_config.fex 文件
[target]
boot_clock    = 408
storage_type    = 3
burn_key        = 0

[norflash]
size        = 16

...

[uart_para]
uart_debug_port = 0
uart_debug_tx   = port:PE1<5><1><default><default>
uart_debug_rx   = port:PE0<5><1><default><default>

[uart0]
uart0_used       = 1
uart0_port       = 0
uart0_type       = 2
uart0_tx         = port:PE1<5><1><default><default>
uart0_rx         = port:PE0<5><1><default><default>

...

[uart1]
uart1_used       = 1
uart1_port       = 1
uart1_type       = 2
uart1_tx         = port:PA2<5><1><default><default>
uart1_rx         = port:PA3<5><1><default><default>

sys_partition_nor.fex文件

[partition_start]

[partition]
    name         = bootlogo
    size         = 1024
    downloadfile = "bootlogo.fex"
    user_type    = 0x8000

[partition]
    name         = env
    size         = 256
    downloadfile = "env.fex"
    user_type    = 0x8000

[partition]
    name         = boot
    ;size         = 5120
    size         = 5600
    downloadfile = "boot.fex"
    user_type    = 0x8000

[partition]
    name         = rootfs
    ;size         = 1024
    ;size         = 11520
    size         = 15648
    downloadfile = "rootfs.fex"
    user_type    = 0x8000

[partition]
    name         = rootfs_data
    size         = 1024
    user_type    = 0x8000

;[partition]
;    name         = extend
;    size         = 8192
;    downloadfile = "usr.fex"
;    user_type    = 0x8000

[partition]
    name         = misc
    size         = 128
    user_type    = 0x8000

[partition]
    name         = private
    size         = 128
    user_type    = 0x8000

[partition]
    name         = UDISK
    user_type    = 0x8100

别的文件没有修改





离线

#1 2022-11-18 16:58:20

鱼尾
会员
所在地: 杭州
注册时间: 2021-01-11
已发帖子: 47
积分: 1

Re: F1C100S使用Tina改SPI NOR运行到Starting kernel..停止

你看看内核的串口配置

离线

#2 2022-11-18 17:08:03

鱼尾
会员
所在地: 杭州
注册时间: 2021-01-11
已发帖子: 47
积分: 1

Re: F1C100S使用Tina改SPI NOR运行到Starting kernel..停止

#内核修改
make kernel_menuconfig --->
	kernel hacking --->
		[*] Compile the kernel with debug info
		[*] Kernel low-level debugging functios (read help!)
		Kernel low-level debugging port (Kernel low-level debugging messages viasunXi UART0)

离线

#3 2022-11-18 17:09:42

鱼尾
会员
所在地: 杭州
注册时间: 2021-01-11
已发帖子: 47
积分: 1

Re: F1C100S使用Tina改SPI NOR运行到Starting kernel..停止

Kernel low-level debugging port (Kernel low-level debugging messages viasunXi UART0) 看看这个有没有改

离线

楼主 #4 2022-11-18 17:47:46

视觉℡
会员
注册时间: 2019-01-29
已发帖子: 36
积分: 18
个人网站

Re: F1C100S使用Tina改SPI NOR运行到Starting kernel..停止

鱼尾 说:

Kernel low-level debugging port (Kernel low-level debugging messages viasunXi UART0) 看看这个有没有改

真是太感谢了,确实后面有输出了





离线

#5 2022-11-19 09:45:54

鱼尾
会员
所在地: 杭州
注册时间: 2021-01-11
已发帖子: 47
积分: 1

Re: F1C100S使用Tina改SPI NOR运行到Starting kernel..停止

哈哈,f1c100s我用过一段时间

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn