打印
[嵌入式Linux]

GK7102启动

[复制链接]
2194|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
pgm_58|  楼主 | 2017-2-9 10:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
se, boot, AD, ip, TE
最近在弄国科微GK7102的芯片,uboot可以跑起来,但是网口加载内核之后就卡死了,具体打印如下:
U-Boot 2012.10 (Jan 19 2017 - 04:19:58) for GK7102 rb-jxh42-v2.0 (GOKE)

HAL:   20160913
DRAM:  64 MiB
Flash: [4X mode] 16 MiB
NAND:  [No SPI nand]
SF:    16 MiB [page:256 Bytes] [sector:64 KiB] [count:256] (MX25L12845)
*** Warning - bad CRC, using default environment
In:    serial
Out:   serial
Err:   serial
Net:   Int PHY
Hit any key to stop autoboot:  0
[PROCESS_SEPARATORS] run tftpboot
[PROCESS_SEPARATORS] setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:${rootpath},proto=tcp,nfsvers=3,nolock ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev} mac=${ethaddr} phytype=${phytype} console=${consoledev},${baudrate} mem=${mem};tftpboot ${bootfile};bootm
TFTP from server 11.1.4.19; our IP address is 11.1.4.200
Filename 'zImage'.
Load address: 0xc1000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########
done
Bytes transferred = 1373832 (14f688 hex)
put param to memory
mem size (36)
total mem size (64)
bsb size (2)
usr size (0)

the kernel image is zImage or Image
entry = 0xc1000000
## Transferring control to Linux (at address c1000000)...

Starting kernel ...

machid = 3988 r2 = 0xc0000100



下面是我uboot的配置:

[PROCESS_SEPARATORS] printenv
arm_freq=0x00112032
baudrate=115200
bootcmd=run tftpboot
bootdelay=5
bootfile=zImage
bsbsize=2M
consoledev=ttySGK0
ethact=gk7101
ethaddr=3C:97:0E:22:E1:14
gatewayip=11.1.4.1
hostname="gk7102"
ipaddr=11.1.4.200
loadaddr=0xC1000000
mem=36M
netdev=eth0
netmask=255.255.255.0
nfsserver=11.1.4.19
phytype=0
rootfstype=ubi.mtd=3 rootfstype=ubifs root=ubi0:rootfs
rootpath=/opt/work
serverip=11.1.4.19
sfboot=setenv bootargs console=${consoledev},${baudrate} noinitrd mem=${mem} rw ${rootfstype} init=linuxrc ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev} mac=${ethaddr} phytype=${phytype};sf probe 0 0;sf read ${loadaddr} ${sfkernel} ${filesize}; bootm
sfkernel=0x50000
stderr=serial
stdin=serial
stdout=serial
tftpboot=setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:${rootpath},proto=tcp,nfsvers=3,nolock ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev} mac=${ethaddr} phytype=${phytype} console=${consoledev},${baudrate} mem=${mem};tftpboot ${bootfile};bootm

Environment size: 1060/65532 bytes

麻烦有认识的人帮忙看看,有偿感谢

相关帖子

沙发
jiankangshiye| | 2017-5-16 18:50 | 只看该作者
已经进入kernel中了,需要在kernel中加打印,看看问题出在哪里? 有可能uboot传的参数不对?

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

8

帖子

1

粉丝