2013年03月05日
来源:互联网 发布:java引用另外一个文件 编辑:程序博客网 时间:2024/05/19 16:33
linux移植
目录(?)[+]
以前一直都是只移过u-boot没有移过linux,这次尝试下。
一、关于机器码
r0=0
r1=平台编号
r2=参数地址
MACHINE_START()
MACHINE_END
MACHINE_START(S3C2440, "TQ2440")
MACHINE_END
可以看到有添加的EmbedSky选项了,当我们需要添加自己的开发板时,修改arch/arm/mach-s3c2440/Kconfig文件
在arch/arm/plat-s3c24xx/Kconfig中有配置选项,
arch/arm/plat-s3c24xx/Makefile:48:
obj-$(CONFIG_MACH_EMBEDSKY)
如何添加自己的开发板
1.
2.
3.
4.
setup_linux_param(boot_mem_base + LINUX_PARAM_OFFSET);0x30000100
5.
添加自己的的设备
1.
2.
3.
“arch/arm/plat-s3c24xx/common-smdk.c”为“common-zhuanxu.c”,复制“arch/arm/plat-s3c24xx/include/plat/common-smdk.h”为“common-zhuanxu.h”。
#ifdef CONFIG_ARCH_S3C2440
# ifdef machine_arch_type
#
#
# else
#
# endif
# definemachine_is_s3c2440()
#else
# definemachine_is_s3c2440()
#endif
晶振的配置问题:
下面是第一次下载内核后出现的打印信息
Booting Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000... Copy Kernel to SDRAM done,NOW, Booting Linux......
UncompressingLinux..............................................................................................................done, booting the kernel.
Linux version 2.6.32.2-zhuanxu (zhuanxu@zhuanxu-desktop) (gccversion 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #2 PREEMPT Sun Jun10 12:23:15 CST 2012
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update yourbootloader.
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.000MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility groupingon.
Kernel command line: console=ttySAC0 root=/dev/nfsnfsroot=10.42.0.21:/work/nfs_root/fs_miniip=10.42.0.11:10.42.0.21:10.42.0.11:255.255.255.0:SKY2440.embedsky.net:eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384bytes)
Memory: 64MB = 64MB total
Memory: 61236KB available (3088K code, 353K data, 100K init, 0Khighmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1,Nodes=1
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 SimtecElectronics
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 at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096bytes)
TCP established hash table entries: 2048 (order: 2, 16384bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transportmodule.
JFFS2 version 2.2. (NAND) (SUMMARY)
JFFS2: default compression mode: priority
msgmni has been set to 119
alg: No test for stdrng (krng)
io scheduler noop registered (default)
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is aS3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is aS3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is aS3C2440
loop: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=220ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 217 at 0x000001b20000
Bad eraseblock 282 at 0x000002340000
Bad eraseblock 1089 at 0x000008820000
Bad eraseblock 1232 at 0x000009a00000
Bad eraseblock 1335 at 0x00000a6e0000
Bad eraseblock 1602 at 0x00000c840000
Creating 8 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000004000 : "Boot Agent"
mtd: partition "Boot Agent" doesn't end on an erase block -- forceread-only
0x000000000000-0x000000200000 : "S3C2410 flash partition1"
0x000000400000-0x000000800000 : "S3C2410 flash partition2"
0x000000800000-0x000000a00000 : "S3C2410 flash partition3"
0x000000a00000-0x000000e00000 : "S3C2410 flash partition4"
0x000000e00000-0x000001800000 : "S3C2410 flash partition5"
0x000001800000-0x000003000000 : "S3C2410 flash partition6"
0x000003000000-0x000004000000 : "S3C2410 flash partition7"
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 busnumber 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 driverusbserial_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.5.0: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, irqenabled
TCP cubic registered
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
IP-Config: Device `eth0' not found.
Looking up port of RPC 100003/2 on 10.42.0.21
rpcbind: server 10.42.0.21 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, usingdefault
Looking up port of RPC 100005/1 on 10.42.0.21
rpcbind: server 10.42.0.21 not responding, timed out
Root-NFS: Unable to get mountd port number from server, usingdefault
Root-NFS: Server returned error -5 while mounting/work/nfs_root/fs_mini
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the availablepartitions:
1f00
1f01
1f02
1f03
1f04
1f05
1f06
1f07
Kernel panic - not syncing: VFS: Unable to mount root fs onunknown-block(2,0)
[] (unwind_backtrace+0x0/0xe8) from [](panic+0x4c/0x134)
[] (panic+0x4c/0x134) from [](mount_block_root+0x16c/0x224)
[] (mount_block_root+0x16c/0x224) from [](prepare_namespace+0xf8/0x190)
[] (prepare_namespace+0xf8/0x190) from [](kernel_init+0xec/0x120)
[] (kernel_init+0xec/0x120) from [](kernel_thread_exit+0x0/0x8)
- 2013年03月05日 工作总结
- 2013年03月05日
- 2013年03月05日
- 2013年03月05日
- 2013年05月03日
- 2012年03月05日----周记
- 2017年05月03日
- 2017年05月03日
- 2017年05月03日
- 2017年05月03日
- 2013年01月05日 工作总结
- 2013年05月18日
- 2013年08月05日日志
- 2013年05月08日
- 2013年12月05日
- 2013年12月05日
- 2013年12月05日
- 2013年12月05日
- 比特币是否有未来?~
- 【Learning】Thinking in Architecture
- uboot的使用:tftp下载内核,直接…
- linux驱动移植(nand,yaffs2)&nb…
- [ARM笔记]unable to ope…
- 2013年03月05日
- 2013年03月05日
- 2013年03月05日
- 2013年03月06日
- ubuntu 开启nfs服务
- mkyaffs2image128M
- Kernel panic - no…
- 数据结构之栈和队列
- 解决无法挂载Linux文件系统的问题