LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: carol1980

入门的教程:Getting Familiar with uClinux/ARM 2.6(已翻译)

[复制链接]
发表于 2005-1-19 14:35:22 | 显示全部楼层
这里的cc应是你的arm交叉编译器arm-elf-gcc,它可能在/usr/local/bin目录下。

你指定一下cc的值或是修改uClinux内核文件根目录下的Makefile文件的cc所指向的值为“/usr/lcoal/bin/arm-elf-gcc”。如果在上面的/usr/lcoal/bin目录下的话。
回复 支持 反对

使用道具 举报

发表于 2005-1-19 18:44:52 | 显示全部楼层
指定HOSTCC   = arm-elf-gcc 后依旧错误,不知道应该安装什么包,请指教!
nirvaam:/home/embeded/uClinux-dist# make menuconfig
config/mkconfig > config.in
make -C /home/embeded/uClinux-dist/config/scripts/lxdialog all
make[1]: Entering directory `/home/embeded/uClinux-dist/config/scripts/lxdialog'
/usr/local/arm-elf/bin/ld.real: cannot find -lncurses
collect2: ld returned 1 exit status

>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/home/embeded/uClinux-dist/config/scripts/lxdialog'
make: *** [menuconfig] Error 2
nirvaam:/home/embeded/uClinux-dist#         


nirvaam:/usr/local/arm-elf/bin# dpkg -l *ncurse*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                  Version               Description
+++-=====================-=====================-==========================================================
ii  evms-ncurses          2.4.1-3               Enterprise Volume Management System (ncurses UI)
un  libncurses-dev        <none>                (no description available)
ii  libncurses-ruby       0.9.1-1               Ruby Extension for the ncurses C library
ii  libncurses-ruby1.8    0.9.1-1               Ruby Extension for the ncurses C library
ii  libncurses4           4.2-10                Shared libraries for terminal handling
ii  libncurses5           5.4-4                 Shared libraries for terminal handling
ii  libncurses5-dbg       5.4-4                 Debugging/profiling libraries for ncurses
ii  libncurses5-dev       5.4-4                 Developer's libraries and docs for ncurses
ii  libncursesw5          5.4-4                 Shared libraries for terminal handling (wide character sup
ii  libncursesw5-dbg      5.4-4                 Debugging/profiling libraries for ncurses
ii  libncursesw5-dev      5.4-4                 Developer's libraries for ncursesw
un  ncurses               <none>                (no description available)
ii  ncurses-base          5.4-4                 Descriptions of common terminal types
ii  ncurses-bin           5.4-4                 Terminal-related programs and man pages
un  ncurses-dev           <none>                (no description available)
un  ncurses-developer     <none>                (no description available)
ii  ncurses-hexedit       0.9.7-11              Edit files/disks in hex, ASCII and EBCDIC
un  ncurses-runtime       <none>                (no description available)
ii  ncurses-term          5.4-4                 Additional terminal type definitions
nirvaam:/usr/local/arm-elf/bin#
回复 支持 反对

使用道具 举报

发表于 2005-1-19 23:25:55 | 显示全部楼层
un * <none>(no description available)是不是表示没这个包的意思。

安装完包后别忘了ldconfig一下!
回复 支持 反对

使用道具 举报

发表于 2005-1-20 00:17:03 | 显示全部楼层
un 应该是表示Unknown吧,这个包已经安装了。
已重启,并执行ldconfig。
应该是我缺少了什么步骤吧
回复 支持 反对

使用道具 举报

发表于 2005-1-20 15:31:11 | 显示全部楼层
你安这个软件包是不是系统墨认的目录,如果不是的话就需要指定这个软件lib目录,然后执行一下ldconfig
回复 支持 反对

使用道具 举报

发表于 2006-3-31 02:25:55 | 显示全部楼层
出现错误如下:
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(SkyEye) target sim
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8160cbc
SKYEYE: use arm7100 mmu ops
Loaded ROM   ./boot.rom
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xc000 vma 0x1000000
Loading section .text, size 0xcdfa8 vma 0x100c000
Loading section __ex_table, size 0x718 vma 0x10d9fb0
Loading section __param, size 0x14 vma 0x10da6c8
Loading section .data, size 0x9614 vma 0x10dc000
Start address 0x1000000
Transfer rate: 7464768 bits in <1 sec.
(SkyEye) run
Starting program: /root/uClinux-dist/linux-2.6.x/linux
Linux version 2.6.9-hsc0 (root@server) (gcc version 3.4.0) #9 Fri Mar 31 02:01:43 CST 2006
CPU: Atmel-AT91M40xxx [14000040] revision 0 (ARMvundefined/unknown)
Machine: ATMEL EB01
Built 1 zonelists
Kernel command line: root=/dev/ram initrd=0x01300000,768K keepinitrd
PID hash table entries: 32 (order: 5, 512 bytes)
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 512 (order: 0, 4096 bytes)
Memory: 4MB = 4MB total
Memory: 2304KB available (823K code, 100K data, 48K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs... it is
Linux NoNET1.0 for Linux 2.6
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
RAMDISK driver initialized: 16 RAM disks of 2048K size 1024 blocksize
loop: loaded (max 8 devices)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

images/romfs.img only 661K , so I have not changed the kernel command line to 800K.
And I do change it. But the error continue.
And in my .conf, I have already set this:
CONFIG_RAMFS=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=2048
CONFIG_BLK_DEV_INITRD=y
So , anyone could tell me what's going wrong ?
回复 支持 反对

使用道具 举报

发表于 2006-4-2 15:26:45 | 显示全部楼层
原文的题目是Getting Familiar with uClinux/ARM 2.6,个人觉得翻译成“获取uClinux/ARM 2.6”不大妥,应该翻译成“逐渐熟悉uClinux/ARM 2.6”吧?
回复 支持 反对

使用道具 举报

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

本版积分规则

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