免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 9755 | 回复: 3

[BootLoader] u boot启动不了内核 华为ec1308机顶盒 [复制链接]

论坛徽章:
0
发表于 2011-12-21 17:54 |显示全部楼层
电信有送一华为ec1308机顶盒 ,为hi3560方案 ,用的是现代1g闪存,是u-boot启动linux。 因开放了telnet root密码为空,进入本想升级busybox, 但误操作 mv * /ttt/ 指令 造成进入了不linux 现求助解决方法。

另外,此方案下是否可植入网络浏览器,或改为网络启动linux 系统?

现在现象为:

TTL可以进入u-boot 提示符 ,看提示符为“hilinux: ” 网络可以ping通,可以tftp ,loady loadb,但找不到合适的uimage文件,另外内存地址也比较模糊,试过30008000,c2000000,100000等,用bootm时均卡死。

如果自动启动 , ttl终端输入如下:


NAND: 128 MiB


U-Boot 2008.10-svn (Nov 13 2009 - 21:19:04)

DRAM: 64 MB
In: serial
Out: serial
Err: serial
MAC: 00-E0-B1-00-1A-13
boot linux kernel now : bootf vmlinux.bin
Press CTRL-C to abort autoboot in boot flag : 0
logo flag : 0
show logo 2b00000 262144
###### Hard dec
TDE_MAIN_VERSION[TDE_MAIN_VERSION] Build Time[Nov 13 2009, 21:19:50]
TDE_ADP_VERSION[TDE_ADP_VERSION] Build Time[Nov 13 2009, 21:19:50]
Booting kernel load data to mem : form 100000 to mem c2000000 ....
nand_mem_cp off= 100000,size = 1572864,addr = c2000000
## Booting kernel from Legacy Image at c2000000 ...
Image Name: hilinux
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1050632 Bytes = 1 MB
Load Address: c0800000
Entry Point: c0800000
Loading Kernel Image ... OK
OK
app flag : 1
UBoot starting ... mem=80M console=ttyAMA0,115200 root=/dev/mtdblock/8 rootfstype=yaffs2 mmz=ddr,2,0xF50M,48M fes=128 nand_partitions=v2&&0:0:1024&1:0:8&2:8:80&3:88:256&4:344:8&5:352:8&6:360:8&7:368:80&8:448:384&9:832:8&10:840:8&11:848:8&12:856:168 tmem=128M

Starting kernel ...
bootargs root=/dev/ram rw initrd=0x21100000,6000000 ramdisk_size=15360 console=ttyS0,115200,mem=32M
Uncompressing Linux...................................................................... done, booting the kernel.
Linux version 2.6.14-hi3560v200-release (chenxu@chenxu-laptop) (gcc version 3.4.3 (release) (CodeSourcery ARM Q1B 2005)) #0 PREEMPT Thu Nov 12 23:12:54 CST 2009
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
Machine: Hi3560v200
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists
Kernel command line: mem=80M console=ttyAMA0,115200 root=/dev/mtdblock/8 rootfstype=yaffs2 mmz=ddr,2,0xF50M,48M fes=128 nand_partitions=v2&&0:0:1024&1:0:8&2:8:80&3:88:256&4:344:8&5:352:8&6:360:8&7:368:80&8:448:384&9:832:8&10:840:8&11:848:8&12:856:168 tmem=128M
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 80MB = 80MB total
Memory: 78848KB available (1799K code, 351K data, 76K init)
Mount-cache hash table entries: 512
HI_VERSION=LINUX_2_6_14-M01C04FB02F @hi3560v200_0_0_0_3 2009-10-28 11:24:28
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Hisilicon clock system V0.01
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
yaffs Nov 12 2009 23:17:42 Installing.
Initializing Cryptographic API
Serial: AMBA PL011 UART driver
ttyAMA0 at MMIO 0x101ea000 (irq = 10) is a AMBA/PL011
ttyAMA1 at MMIO 0x101eb000 (irq = 11) is a AMBA/PL011
io scheduler noop registered
io scheduler deadline registered
RAMDISK driver initialized: 4 RAM disks of 8192K size 1024 blocksize
physmap flash device: 2000000 at 34000000
flash jedec_probe failed
nand extid 0x1d
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
partition name: whole; partition offset: 0; partition size: 134217728
partition name: loader; partition offset: 0; partition size: 1048576
partition name: boot1; partition offset: 1048576; partition size: 10485760
partition name: app1; partition offset: 11534336; partition size: 33554432
partition name: logo1; partition offset: 45088768; partition size: 1048576
partition name: param1; partition offset: 46137344; partition size: 1048576
partition name: playlist1; partition offset: 47185920; partition size: 1048576
partition name: boot2; partition offset: 48234496; partition size: 10485760
partition name: app2; partition offset: 58720256; partition size: 50331648
partition name: logo2; partition offset: 109051904; partition size: 1048576
partition name: param2; partition offset: 110100480; partition size: 1048576
partition name: playlist2; partition offset: 111149056; partition size: 1048576
partition name: swfs; partition offset: 112197632; partition size: 22020096
Creating 13 MTD partitions on "hinand":
0x00000000-0x08000000 : "whole"
0x00000000-0x00100000 : "loader"
0x00100000-0x00b00000 : "boot1"
0x00b00000-0x02b00000 : "app1"
0x02b00000-0x02c00000 : "logo1"
0x02c00000-0x02d00000 : "param1"
0x02d00000-0x02e00000 : "playlist1"
0x02e00000-0x03800000 : "boot2"
0x03800000-0x06800000 : "app2"
0x06800000-0x06900000 : "logo2"
0x06900000-0x06a00000 : "param2"
0x06a00000-0x06b00000 : "playlist2"
0x06b00000-0x08000000 : "swfs"
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 2
yaffs: dev is 32505864 name is "mtdblock8"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.8, "mtdblock8"
VFS: Mounted root (yaffs2 filesystem).
Mounted devfs on /dev
Freeing init memory: 76K
Kernel panic - not syncing: No init found. Try passing init= option to kernel

论坛徽章:
2
水瓶座
日期:2013-09-04 15:09:57白羊座
日期:2014-04-17 16:48:13
发表于 2011-12-22 08:35 |显示全部楼层
本帖最后由 l2y3n2 于 2011-12-22 08:36 编辑

你把根目录下面的linuxrc移动到ttt下面去了么?

启动参数试试看加上init=/ttt/linxurc。

不过如果你的linuxrc是busybox的软连接,而且用的是相对路径的话,移动之后应该不能用了。重刷文件系统吧。

论坛徽章:
0
发表于 2011-12-22 09:44 |显示全部楼层
好像自启动时会初始化参数,这样不知传递过去的有没有用。呆会试下

如果刷文件系统应该注意什么问题,板子的型号不太清楚,另外手头上只有ttl线,没有文件包呀,试过tftp下载uimage到30008000, bootm启动时说 未知的核心文件

现在是如果能启动网络系统是最好不过的,但不知如何操作。。。?

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
发表于 2011-12-22 10:53 |显示全部楼层
看上去像是海思的芯片

数字电视和咱们普通开发的还是有些区别的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP