fangwr 发表于 2011-3-8 13:22:59

要下载个手册还是很麻烦的。光盘上没有的

chinalg 发表于 2011-3-13 01:03:43

威望威望 UPUP

yanxiaoyun 发表于 2011-3-21 14:03:30

这个好,顶一下

油菜地宝冬瓜 发表于 2011-3-23 00:09:44

我的按照手册step by step 到第三步就不能了,不能使用make menuconfig了,说/bin/sh: line 1:gcc: command not found,哎
wqqs0801 发表于 2010-11-24 10:48 http://bbs.embedsky.net/images/common/back.gif
===================================================
使用命令时注意你的此时的路径,使用这个命令时,路径应在你编译的linux文件下

油菜地宝冬瓜 发表于 2011-3-26 21:04:01

22楼
配置的问题,对比下移植手册后面的配置单再看看。如果是用天嵌的程序的话,里边有写好的配置,找对应你配置把名字改为。config就行。这个linux视频教程中build_kernel_20100105这个视频中有
24楼
防火墙如果没关也有这种情况的
30楼
你的GCC工具是不是没弄好,移植手册中约定7有没有做个,如果做了用echo $PATH 这个命令看下你工具是不是对的?

油菜地宝冬瓜 发表于 2011-3-26 21:09:38

39楼
make menuconfig 命令是在你目录在linux这个目录下面用的
比如移植的2.6.30.4的内核
你的命令行前面应该是#【root@linux 2.6.30.4】

油菜地宝冬瓜 发表于 2011-3-26 21:13:46

57楼也一样,使用make menuconfig命令时,注意你所在的位子。应该是在内核文件目录下

油菜地宝冬瓜 发表于 2011-3-26 21:15:39

我也是菜鸟,回答得不一定正确。本想来找答案的,结果都是些提问的,回答得一个也没有,就把我遇到的或了解的回答一下,仅作参考

zhangxiangchun 发表于 2011-3-26 22:21:58

好东西,我过几天来试试

yujinelei 发表于 2011-4-12 22:38:42

我在移植系统时遇到的问题(在step by step 第13步是遇到的问题)
下载到板子出现的情况:
Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux........................................................................................................................................................ done, booting the kernel.
Linux version 2.6.30.4-EmbedSky (root@EmbedSky) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #7 Mon May 31 10:56:58 CST 2010
CPU: ARM920T revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: TQ2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 59896KB available (4340K code, 448K data, 188K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
yaffs May 31 2010 10:39:00 Installing.
msgmni has been set to 117
alg: No test for stdrng (krng)
io scheduler noop registered (default)
Console: switching to colour frame buffer device 40x15
fb0: s3c2410fb frame buffer device
backlight initialized
GPIO-Control initialized
PWM-Test initialized
adc initialized
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 10:23:45:67:89:ab
eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c4814000,c4818004 IRQ 51 MAC: 10:23:45:67:89:ab (EmbedSky)
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "EmbedSky_Board_uboot"
0x000000200000-0x000000500000 : "EmbedSky_Board_kernel"
0x000000500000-0x000010000000 : "EmbedSky_Board_yaffs2"
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.30.4-EmbedSky ohci_hcd
usb usb1: SerialNumber: s3c24xx
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
s3c2410_udc: debugfs dir creation failed -19
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
mice: PS/2 mouse device common for all mice
TQ2440 TouchScreen successfully loaded
input: TQ2440 TouchScreen as /devices/virtual/input/input0

。。。。。。。。。。。
tv8532: registered
usbcore: registered new interface driver vc032x
vc032x: registered
usbcore: registered new interface driver zc3xx
zc3xx: registered
usbcore: registered new interface driver ALi m5602
ALi m5602: registered
usbcore: registered new interface driver STV06xx
STV06xx: registered
usbcore: registered new interface driver ibmcam
usbcore: registered new interface driver ultracam
konicawc: v1.4:Konica Webcam driver
usbcore: registered new interface driver konicawc
usbcore: registered new interface driver vicam
quickcam_messenger: v0.01:Logitech Quickcam Messenger USB
usbcore: registered new interface driver QCM
usbcore: registered new interface driver s2255
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: starting watchdog timer
s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq enabled
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
s3c2440-sdi s3c2440-sdi: powered down.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18a.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
#0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
s3c2410-rtc s3c2410-rtc: setting system clock to 2011-04-12 09:17:20 UTC (1302599840)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 188K
/etc/init.d/rcs: line 19: insmod/lib/input-polldev.ko: not found
/etc/init.d/rcs: line 20: insmod/lib/mac80211.ko: not found
/etc/init.d/rcs: line 21: insmod/lib/rt2x00lib.ko: not found
/etc/init.d/rcs: line 22: insmod/lib/rt2x00usb.ko: not found
/etc/init.d/rcs: line 23: insmod/lib/rt73usb.ko: not found
/etc/init.d/rcs: line 24: insmod/lib/zd1211rw.ko: not found
Try to bring etho interface up ..
/sbin/net_set: /etc/rc.d/init.d/httpd: line 7: case startin: not found
/etc/rc.d/init.d/httpd: line 8: syntax error: unexpected ")"
line 4: if[-f/etc/net.conf]: not found
/sbin/net_set: line 5: source/etc/net.conf: not found
/sbin/net_set: line 7: if[: not found

Please press Enter to activate this console. BusyBox v1.16.0 (2011-03-26 19:49:48 CST) multi-call binary.

Usage: ifconfig [-a] interface

Configure a network interface

Options:
      ]
      ]
      [[-]broadcast ] [[-]pointopoint ]
      
      
      
      [[-]trailers] [[-]arp] [[-]allmulti]
       [[-]promisc] [[-]dynamic]
      
       ...

ifconfig eth0 hw
ifconfig: bad address 'up'
ifconfig eth0 netmask up
BusyBox v1.16.0 (2011-03-26 19:49:48 CST) multi-call binary.

Usage: route [{add|del|delete}]

Edit kernel routing tables

Options:
      -n      Don't resolve names
      -e      Display other/more information
      -A inet{6}      Select address family

/sbin/net_set: line 16: elif[: not found
/sbin/net_set: line 17: soure/etc/wifi.conf: not found
ifconfig: bad address 'up'
ifconfig wlan0 netmask up
BusyBox v1.16.0 (2011-03-26 19:49:48 CST) multi-call binary.

Usage: route [{add|del|delete}]

Edit kernel routing tables

Options:
      -n      Don't resolve names
      -e      Display other/more information
      -A inet{6}      Select address family

route add default gw
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device wlan0 ; No such device.
iwconfig wlan0 essidkey PASSWORD
/sbin/net_set: line 25: syntax error: unexpected "fi

13590955160 发表于 2011-4-16 09:32:11

70# yujinelei


70楼的朋友,注意到你的分区了没有
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "EmbedSky_Board_uboot"
0x000000200000-0x000000500000 : "EmbedSky_Board_kernel"
0x000000500000-0x000010000000 : "EmbedSky_Board_yaffs2"
而正常256M的分区是这样的
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "TQ2440_UBOOT"
0x000000200000-0x000000400000 : "TQ2440_KERNEL"
0x000000400000-0x00000ff80000 : "TQ2440_YAFFS2"

这是移植手册V4.5的错误,所以最好拿回V4.2版本的参照。或者自己在Nand移植那里修改分区

david826 发表于 2011-4-16 20:48:50

Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kern
el to SDRAM done,NOW, Booting Linux......
Uncompressing Linux.............................................................
............................................ done, booting the kernel.
Linux version 2.6.30.4-HuxiaoweiEmbed (root@vm-dev) (gcc version 4.3.3 (Sourcery
G++ Lite 2009q1-176) ) #1 Sat Apr 16 20:06:49 CST 2011
CPU: ARM920T revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61480KB available (2928K code, 249K data, 112K init, 0K highmem)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
msgmni has been set to 120
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
s3c2440-uart.0: s3c2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bi
t)
Scanning device for bad blocks
Bad eraseblock 841 at 0x000006920000
Bad eraseblock 883 at 0x000006e60000
Bad eraseblock 1503 at 0x00000bbe0000
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "HU_uboot"
0x000000200000-0x000000400000 : "HU_kernel"
0x000000400000-0x00000ff80000 : "HU_yaffs2"
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
List of all partitions:
1f00             256 mtdblock0 (driver?)
1f01            2048 mtdblock1 (driver?)
1f02          257536 mtdblock2 (driver?)
No filesystem could mount root, tried:vfat msdos iso9660
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[<c002a700>] (unwind_backtrace+0x0/0xdc) from [<c0234d20>] (panic+0x40/0x110)
[<c0234d20>] (panic+0x40/0x110) from [<c0008fa8>] (mount_block_root+0x25c/0x2ac)

[<c0008fa8>] (mount_block_root+0x25c/0x2ac) from [<c00091c0>] (prepare_namespace
+0x164/0x1bc)
[<c00091c0>] (prepare_namespace+0x164/0x1bc) from [<c0008598>] (kernel_init+0xb4
/0xe0)
[<c0008598>] (kernel_init+0xb4/0xe0) from [<c004614c>] (do_exit+0x0/0x578)
[<c004614c>] (do_exit+0x0/0x578) from [<00000001>] (0x1)
走的这里不走了 我完成step12 后烧写镜像 出现上述问题 linux不再启动,是什么问题?请赐教!

david826 发表于 2011-4-17 19:19:08

系统可以启动了 根据资料 该资料来自http://blog.sina.com.cn/s/blog_77aea4c60100qsa1.html 在/driver/mtd/nand/s3c2410.c中将chip->ecc.mode = NAND_ECC_SOFT;改为chip->ecc.mode = NAND_ECC_NONE;并在配置内核中将Samsung S3C NAND Hardware ECC选项删掉。系统可以启动 的那是出现很多
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
block 810 is bad
block 852 is bad
block 1472 is bad
Partially written block 93 detected
.
.
.
.
.

Partially written block 91 detected
Partially written block 91 detected
Partially written block 91 detected
Partially written block 91 detected
Partially written block 91 detected
Partially written block 91 detected
yaffs_read_super: isCheckpointed 0
不知道如何解决!

david826 发表于 2011-4-17 20:16:37

54# ztm521314


.内核启动时,出现Failed to execute /linuxrc的错误,原因是:
(1)文件系统中没有包含linuxrc的可执行文件。在文件系统中添加linuxrc就可完成linux的启动。
(2)在/driver/mtd/nand/s3c2410.c中将chip->ecc.mode = NAND_ECC_SOFT;改为chip->ecc.mode = NAND_ECC_NONE;并在配置内核中将Samsung S3C NAND Hardware ECC选项删掉

jerry200 发表于 2011-9-19 10:47:25

我的情况同72楼一样,请问这是什么原因啊?
页: 1 2 3 4 [5] 6
查看完整版本: 统计Linux移植不成功的症状(以4.0版本的移植手册为基准)