Nikita

Nikita

1个粉丝

35

问答

0

专栏

1

资料

Nikita  发布于  2014-04-19 14:26:10
采纳率 0%
35个问答
5871

你们好!Need help with hi3531 linux kernel.

 
Hello! Sorry, I don`t speak chineese :-( I hope there are english speaking people here.

I have start developing for Hi3531 some time ago.
I have SDK Hi3531_V100R001C02SPC080.rar ( Hi3531_SDK_V2.0.8.0 ).

1) Are there newer SDK version? My SDK have linux 3.0.8 and it is updated last time 2012 year. I have tried to mail [email]support@hisilicon.com[/email], but nobody answered.

2) I have compiled kernel with default godnet_defconfig:
[code]
make ARCH=arm CROSS_COMPILE=arm-hisiv200-linux- clean
make ARCH=arm CROSS_COMPILE=arm-hisiv200-linux- menuconfig
make ARCH=arm CROSS_COMPILE=arm-hisiv200-linux- uImage
[/code]

I have iploaded uImage to USB flash and my kernel stops boot at rootfs mount :(

[code]U-Boot 2010.06 (Mar 25 2013 - 23:57:06)

DRAM:  256 MiB
Check spi flash controller v300. found
Spi(cs1) ID: 0xEF 0x40 0x18 0x00 0x00 0x00
Spi(cs1): Block:64KB Chip:16MB Name:"W25Q128BV"
In:    serial
Out:   serial
Err:   serial
judge ddr init
user init finish.
Hit any key to stop autoboot:  3  0
hisilicon # usb start
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... usb_stor_get_info->1406,blksz:512
1 Storage Device(s) found
hisilicon # fatload usb 0:2 0x82000000 uImage2
reading uImage2
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

6656580 bytes read
hisilicon # bootm 0x82000000
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.0.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6656516 Bytes = 6.3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Linux version 3.0.8 (nikita@nikita-ThinkPad-X220) (gcc version 4.4.1 (Hisilicon_v200(gcc4.4-290+glibc-2.11+eabi+nptl)) ) #12 SMP Sat Apr 19 08:59:27 MSK 2014
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: godnet
debug: ignoring loglevel setting.
Memory policy: ECC disabled, Data cache writealloc
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c0660a20, node_mem_map c06be000
  Normal zone: 256 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 32512 pages, LIFO batch:7
PERCPU: Embedded 7 pages/cpu @c07c1000 s5152 r8192 d15328 u32768
pcpu-alloc: s5152 r8192 d15328 u32768 alloc=8*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: mem=128M console=ttyAMA0,115200 root=/dev/sda1 rw ignore_loglevel
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 122968k/122968k available, 8104k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc8800000 - 0xfe000000   ( 856 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0036000   ( 184 kB)
      .text : 0xc0036000 - 0xc063a000   (6160 kB)
      .data : 0xc063a000 - 0xc06611e0   ( 157 kB)
       .bss : 0xc0661204 - 0xc06bd934   ( 370 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:128 nr_irqs:128 128
sched_clock: 32 bits at 155MHz, resolution 6ns, wraps every 27709ms
sched_clock: wrong multiply/shift: 432960413>>26 vs calculated 3463683303>>29
sched_clock: fix multiply/shift to avoid scheduler hiccups
Console: colour dummy device 80x30
Calibrating delay loop... 1849.75 BogoMIPS (lpj=9248768)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU1: Booted secondary processor
Brought up 2 CPUs
SMP: Total of 2 processors activated (3706.06 BogoMIPS).
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
bio: create slab at 0
controller0, config base:0x20800000, mem size:0x800000
controller1, config base:0x20810000, mem size:0x800000
pci 0000:00:00.0: [19e5:3531] type 1 class 0x000604
pci 0000:00:00.0: reg 10: [mem 0x00000000-0x007fffff pref]
pci 0000:00:00.0: reg 14: [mem 0x00000000-0x0000ffff]
pci 0000:00:00.0: reg 38: [mem 0x00000000-0x0000ffff pref]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
PCI: bus0: Fast back to back transfers disabled
pcie_read_from_device->486,pcie0 not link up!
PCI: bus1: Fast back to back transfers enabled
pci 0000:02:00.0: [19e5:3531] type 1 class 0x000604
pci 0000:02:00.0: reg 10: [mem 0x00000000-0x007fffff pref]
pci 0000:02:00.0: reg 14: [mem 0x00000000-0x0000ffff]
pci 0000:02:00.0: reg 38: [mem 0x00000000-0x0000ffff pref]
pci 0000:02:00.0: supports D1
pci 0000:02:00.0: PME# supported from D0 D1 D3hot
pci 0000:02:00.0: PME# disabled
PCI: bus2: Fast back to back transfers disabled
pcie_read_from_device->486,pcie1 not link up!
PCI: bus3: Fast back to back transfers enabled
pci 0000:02:00.0: BAR 0: assigned [mem 0x60000000-0x607fffff pref]
pci 0000:02:00.0: BAR 0: set to [mem 0x60000000-0x607fffff pref] (PCI address [0x60000000-0x607fffff])
pci 0000:02:00.0: BAR 1: assigned [mem 0x60800000-0x6080ffff]
pci 0000:02:00.0: BAR 1: set to [mem 0x60800000-0x6080ffff] (PCI address [0x60800000-0x6080ffff])
pci 0000:02:00.0: BAR 6: assigned [mem 0x60810000-0x6081ffff pref]
pci 0000:02:00.0: PCI bridge to [bus 03-03]
pci 0000:02:00.0:   bridge window [io  disabled]
pci 0000:02:00.0:   bridge window [mem disabled]
pci 0000:02:00.0:   bridge window [mem pref disabled]
pci 0000:00:00.0: BAR 0: assigned [mem 0x30000000-0x307fffff pref]
pci 0000:00:00.0: BAR 0: set to [mem 0x30000000-0x307fffff pref] (PCI address [0x30000000-0x307fffff])
pci 0000:00:00.0: BAR 1: assigned [mem 0x30800000-0x3080ffff]
pci 0000:00:00.0: BAR 1: set to [mem 0x30800000-0x3080ffff] (PCI address [0x30800000-0x3080ffff])
pci 0000:00:00.0: BAR 6: assigned [mem 0x30810000-0x3081ffff pref]
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0:   bridge window [io  disabled]
pci 0000:00:00.0:   bridge window [mem disabled]
pci 0000:00:00.0:   bridge window [mem pref disabled]
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 128 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 32 bytes, default 32
L2cache cache controller enabled
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.16)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
yaffs: yaffs built Apr 19 2014 08:50:48 Installing.
msgmni has been set to 240
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
brd: module loaded
loop: module loaded
ahci: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0200 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc sxs boh
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x100 irq 68
ata2: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x180 irq 68
Spi id table Version 1.22
Hisilicon Spi Flash Controller V300 New Device Driver, Version 1.10
Check Spi Flash Controller V300 New.
Found
Spi(cs1) ID: 0xEF 0x40 0x18 0x00 0x00 0x00
Spi(cs1):
Block:64KB
Chip:16MB
Name:"W25Q128BV"
spi size: 0x16777216
chip num: 1
Creating 0 MTD partitions on "hi_sfc":
Special nand id table Version 1.35
Hisilicon Nand Flash Controller V301 Device Driver, Version 1.10
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-8: ST31000528ASQ, AP24, max UDMA/133
ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      ST31000528ASQ    AP24 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: Attached scsi generic sg0 type 0
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: SATA link down (SStatus 0 SControl 300)[/code]

What is the problem? I don`t think that I`m doing something wrong, because I have read all docs and have tried a lot of variants.

By the way I don`t have good development board. So, I have bought 4 channel HD-SDI DVR, disassemble it and take out board with Hi3531. Plug USB serial to UART port on the board and take control over it.

Please look to attached images of my board:

[attach]1768[/attach]
[attach]1769[/attach]

My primary task it to setup Linux environment with Glibc and NPTL (pthreads) with X.org via HiFB (or FB).
Does somebosy know anything about X.org on Hi3531?
我来回答
回答1个
时间排序
认可量排序

Nikita

1个粉丝

35

问答

0

专栏

1

资料

Nikita 2014-04-19 14:30:34
认可0
本帖最后由 Nikita 于 2014-4-19 14:32 编辑

Sorry, images of board:

http://postimg.org/image/s8pbkxnhv/


或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区