QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1772|回复: 6

請問espd_4510b skyeye.conf 的設定

[复制链接]
发表于 2006-12-17 10:30:06 | 显示全部楼层 |阅读模式
使用
  uClinux-dist-20041215
   參考  http://opensrc.sec.samsung.com/document/Getting_Familiar_with_uClinuxARM2_6.html

   使用linux-2.6.9 & linux-2.6.9-hsc0.patch
   arm-uclinux-tools-base-gcc3.4.0-20040713.sh
    red hat 8
   skyeye-1.2-RC8.tar.gz

    可成功產生 romfs.img & linux

    使用skyeye 執行後
   我的command string 設定 root=/dev/ram0
   跑到VFS:unable to mount root fs on unkown block(1,0)停止
    查看網路資料後  應該是找不到file sysytem

    想請問espd_4510b的 defualt kernel command string 要如何設定
   或有相關的資料可提供?
     謝謝
发表于 2006-12-17 15:33:39 | 显示全部楼层
place your romfs.img to a specific memory address in skyeye.conf. Such as:
mem_bank: map=M, type=RW, addr=0x01400000, size=0x00400000, file=./romfs.img

Then tell uClinux kernel where it should find kernel.
回复

使用道具 举报

 楼主| 发表于 2006-12-18 23:25:22 | 显示全部楼层
先谢谢 版主提供方法
照版主所说的试也无法启动
在kernel command string 设定好地址 initrd=0x00600000
Initializing Cryptographic API 这是后来出现的
还有问题就是我在skyeye-v1 看的s3c4510b.h
有这SDRAM_BASE0_R ((0x0000000>>16)<<10)  
跟SDRAM_NEST0_B ((0x0020000>>16)<<10)
R跟B到底是什么意义
那skyeye.conf 只要设定好地址 就会把kernel 跟 romfs.img load到RAM去执行跟在 menuconfig 设定 sdram flash 大小的地址有关系吗?
希望各位能够帮我看看 为何执行到如此 在此先谢谢各位

skyeye.conf
============================================
cpu:arm7dtmi
mach:s3c4510b
mem_bank: map=M, type=RW, addr=0x00000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0x00060000, size=0x00100000, file=romfs.img
mem_bank: map=I,  type=RW, addr=0x03FF0000,  size=0x00010000


-------------------------------------------------------------------------------
執行skyeye
============================================
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name s3c4510b, mach_init addr 0x8056f18
ethmod num=1, mac addr=0:0:0:0:0:0, hostip=10.0.0.2
SKYEYE: use arm7100 mmu ops
Loaded RAM   romfs.img
exec file "linux"'s format is elf32-little.
load section .init: addr = 0x00008000  size = 0x0000d000.
load section .text: addr = 0x00015000  size = 0x0012a380.
load section __ex_table: addr = 0x0013f380  size = 0x00000710.
not load section .pci_fixup: addr = 0x0013fa90  size = 0x00000000 .
not load section __ksymtab: addr = 0x0013fa90  size = 0x00000000 .
not load section __ksymtab_gpl: addr = 0x0013fa90  size = 0x00000000 .
not load section __kcrctab: addr = 0x0013fa90  size = 0x00000000 .
not load section __kcrctab_gpl: addr = 0x0013fa90  size = 0x00000000 .
load section __param: addr = 0x0013fa90  size = 0x00000064.
load section .data: addr = 0x00140000  size = 0x0000f928.
not load section .bss: addr = 0x0014f940  size = 0x000119d0 .
not load section .comment: addr = 0x00000000  size = 0x000017e8 .
start addr is set to 0x00008000 by exec file.
Linux version 2.6.9-hsc0 ([email protected]) (gcc version 3.4.0) #3 Mon Dec 11 08:52:45 CST 2006
CPU: Samsung-S3C4510B [36807001] revision 1 (ARMv4T)
Machine: ESPD 4510B(S3C4510B)
Warning: bad configuration page, trying to continue
Built 1 zonelists
Kernel command line: console=ttyS0,19200 root=/dev/ram0 rw initrd=0x00600000 keepinitrd
PID hash table entries: 128 (order: 7, 2048 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 16MB = 16MB total
Memory: 14812KB available (1192K code, 135K data, 52K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
Initializing Cryptographic API
ttyS0 at I/O 0x3ffd000 (irq = 4) is a Samsung S3C4510B Internal UART
ttyS1 at I/O 0x3ffe000 (irq = 6) is a Samsung S3C4510B Internal UART
RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize
Samsung S3C4510B Ethernet Driver version 0.2 (2004-06-13) <[email protected]>
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 204
NET: Registered protocol family 17
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
回复

使用道具 举报

 楼主| 发表于 2007-2-2 23:38:29 | 显示全部楼层

請問espd_4510b skyeye.conf 的設定解決

目前已解決問題 可以跑到命令列~~~
參考的文章 http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=107989

使用linux-2.6.9 & linux-2.6.9-hsc0.patch
改用 arm-elf-tool-20040427.sh
改用 red hat 9
      skyeye-1.2-RC8.tar.gz

我設定的default kernel command string
root=/dev/ram0  initrd=0x00A00000,700k keepinitrd

skyeye.conf 設定
#skyeye config file sample
cpu: arm7tdmi
mach: s3c4510b
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00A00000
mem_bank: map=M, type=RW, addr=0x00A00000, size=0x00200000, file=romfs.img
mem_bank: map=M, type=RW, addr=0x00D00000, size=0x00300000
mem_bank: map=M, type=R,    addr=0x01800000, size=0x00200000
mem_bank: map=I, type=RW, addr=0x03ff0000, size=0x00100000
應該是記憶體位址 的設定關係
回复

使用道具 举报

发表于 2007-2-7 15:02:54 | 显示全部楼层
kernel command string 在哪啊?我怎么在menuconfig中找不到?
回复

使用道具 举报

 楼主| 发表于 2007-2-7 17:48:28 | 显示全部楼层
更新patch完後
在主選單內 會有兩個General Setup
選擇第二個

General Setup 選單內的後面幾個選項

       [ ]Preemtiple Kernel (EXPERIMEMTAL)
       (root=/dev/ram0 initrd=0x00A00000,700k keepinitrd)default kernel command string
       [ ]Kernel-mode alignment trap handler
回复

使用道具 举报

发表于 2007-2-8 14:14:37 | 显示全部楼层
哦,多谢,我试试看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 14:32 , Processed in 0.037116 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表