|
我也正在做linux的移植,按照V4.1手册做到了step12,其间按手册的步骤做,用的源码包是天嵌光盘附带的linux-2.6.30.4_20091030.tar.bz2,root_qtopia_2.2.0_2.6.30.4_20091216.tar.bz2,busybox是手册上给出的下载链接下的,busybox-1.13.0.tar.bz2。看过教程里面要修改的部分天嵌附带的源码都已经修改好了,所以就直接用了。。在/opt/EmbedSky/linux-2.6.30.4 make menuconfig ,调用arch/arm/configs/s3c2410_defconfig,手册上写出的要修改的配置已经按要求修改了,没有说到的我直接按默认做了..
之后做到STEP8,手册上说common-smdk.c140行左右结构体smdk_nand_info这个步骤可以不做,自己就没做了..STEP8要修改的天嵌源码已经修改好了,仔细检查了遍,没问题,配置也是按手册做..把自己编译出来的内核烧进开发板终端是这样显示的:
##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !
Booting Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kern
el to SDRAM done,NOW, Booting Linux......
Uncompressing Linux.............................................................
.......................................................... done, booting the ker
nel.
Linux version 2.6.30.4-EmbedSky (root@localhost.localdomain) (gcc version 4.3.3
(Sourcery G++ Lite 2009q1-176) ) #4 Tue Jan 26 21:48:16 CST 2010
CPU: ARM920T [41129200] 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 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] 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: 60896KB available (3356K code, 383K data, 124K 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: 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)
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
GPIO-Control initialized
PWM-Test initialized
adc initialized
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
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
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
Now use the default MAC address: 10:23:45:67:89:ab
eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c4872000,c4876004 IRQ 51 MAC: 10:23:45:67:89:ab (EmbedSky)
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bi
t)
Scanning device for bad blocks
Bad eraseblock 108 at 0x000000d80000
Bad eraseblock 213 at 0x000001aa0000
Bad eraseblock 304 at 0x000002600000
Bad eraseblock 603 at 0x000004b60000
Bad eraseblock 841 at 0x000006920000
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "EmbedSky_Board_uboot"
0x000000200000-0x000000400000 : "EmbedSky_Board_kernel"
0x000000400000-0x00000ff80000 : "EmbedSky_Board_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-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
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.
Advanced Linux Sound Architecture Driver Version 1.0.18a.
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2440-sdi s3c2440-sdi: powered down.
s3c2410-rtc s3c2410-rtc: setting system clock to 2008-11-15 03:24:16 UTC (122671
9456)
List of all partitions:
1f00 256 mtdblock0 (driver?)
1f01 2048 mtdblock1 (driver?)
1f02 257536 mtdblock2 (driver?)
No filesystem could mount root, tried: cramfs vfat msdos iso9660 romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[<c002d718>] (unwind_backtrace+0x0/0xdc) from [<c028a120>] (panic+0x40/0x110)
[<c028a120>] (panic+0x40/0x110) from [<c0008fcc>] (mount_block_root+0x1d0/0x210)
[<c0008fcc>] (mount_block_root+0x1d0/0x210) from [<c0009264>] (prepare_namespace
+0x164/0x1bc)
[<c0009264>] (prepare_namespace+0x164/0x1bc) from [<c0008598>] (kernel_init+0xb4
/0xe0)
[<c0008598>] (kernel_init+0xb4/0xe0) from [<c004a8b0>] (do_exit+0x0/0x578)
[<c004a8b0>] (do_exit+0x0/0x578) from [<00000000>] (0x0)
到STEP9,天嵌的源码已经打好补丁了..???(看起来似乎是),就没理会,继续make menuconfig,保存(同样的,手册上没有强调的配置是按默认的)
STEP10所用的的busybox是自己在手册上给出的链接下的..busybox-1.13.0.tar.bz2 因为天嵌附带的源码编译出错,需要屏蔽掉些东西(不记得是哪错了,只记得是个结构体报错)自己下busybox没关系的吧..??哈哈~当然..STEP10中需要修改Makefile也修改了..在busybox目录下make menuconfig,配置(手册强调的修改了,未强调的按默认..) make make install 均成功,在_install目录下生成bin,sbin,usr,linuxrc.
接着做step12(很好,天嵌的源码已经修改好了,很方便初次使用),按手册配置,其他的默认..之后make zImage...
再来STEP11,在/opt/EmbedSky/新建了root_2.6.30.4目录,把_install目录的东西复制到root_2.6.30.4目录下,然后新建手册上说的目录及文件,内容仔细对照过两次了,添加的文件里的内容和手册是一样的...仅仅是在46页usr/bin/那里把rx删除,再把/opt/EmbedSky/root_qtopia_2.2.0_2.6.30.4/usr/bin目录下的rb,rx,rz,sb,sx,sz复制到/opt/EmbedSky/root_2.6.30.4/usr/bin下.. |
|